# US 2016/0255000 A1 · System and method for bgp sflow export

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0255000 A1
- Document ID: US20160255000A1
- Status: Published application
- Kind: A1
- Application number: 14/730,004
- Filed: 2015-06-03
- Published: 2016-09-01
- Earliest claimed: 2015-02-27
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Akshay K. Gattani; Shuo Guo; Yitao Wu; Forhad Ahmed
- Web page: https://patentgrep.com/patent/US20160255000A1

## CPC

- H04L 45/7453: using hashing
- H04L 45/021: Ensuring consistency of routing table updates, e.g. by using epoch numbers
- H04L 45/748: using longest matching prefix
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and apparatus of a device that exports Border Gateway Protocol (BGP) data in sFlow samples. The device generates separate tables for BGP attribute information, community list information, and autonomous systems path (AS_PATH) attribute information, where each entry in the BGP attribute information table is associated with an entry in the community list information table and an entry in the AS_PATH attribute information table. The device further populates a BGP route information table that defines a mapping from a network address prefix to an entry in the BGP attribute information table. The device generates a sFlow sample related to the network address prefix using the BGP attribute information table, the community list information table, the AS_PATH attribute information table, and the BGP route information table.

## Claims

### Claim 1

A non-transitory machine-readable medium having executable instructions to cause one or more processing units to export Border Gateway Protocol (BGP) data in sFlow samples, the method comprising:
generating separate tables for BGP attribute information, community list information, and autonomous systems path (AS_PATH) attribute information, each entry in the BGP attribute information table associated with an entry in the community list information table and an entry in the AS_PATH attribute information table;
populating a BGP route information table that defines a mapping from a network address prefix to an entry in the BGP attribute information table; and
generating a sFlow sample related to the network address prefix using the BGP attribute information table, the community list information table, the AS_PATH attribute information table, and the BGP route information table.

### Claim 2 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in the BGP attribute information table comprises a next hop address for reaching a certain destination and a local preference value.

### Claim 3 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in the community list information table comprises a list of community values.

### Claim 4 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in the AS_PATH attribute information table comprises a segment type, a segment length, and a segment data for each AS_PATH segment of an AS_PATH corresponding to the entry.

### Claim 5 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in the BGP attribute information table is associated with an entry in the community list information table and an entry in the AS_PATH attribute information table by referencing the entry in the community list information table and the entry in the AS_PATH attribute information table.

### Claim 6 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the BGP attribute information table comprises a partial copy of an AS_PATH hash table of a routing agent and each entry in the BGP attribute information table is associated with an AS_PATH instance of the routing agent.

### Claim 7 (depends on 6)

The non-transitory machine-readable medium of claim 6, wherein the community list information table comprises a copy of a community hash table of the routing agent.

### Claim 8 (depends on 6)

The non-transitory machine-readable medium of claim 6, wherein the AS_PATH attribute information table comprises a copy of an AS_PATH attribute hash table of the routing agent.

### Claim 9 (depends on 6)

The non-transitory machine-readable medium of claim 6, wherein each entry in the BGP attribute information table is updated in response to the corresponding AS_PATH instance of the routing agent being updated.

### Claim 10 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein an entry in the BGP route information table is updated in response to a corresponding route of a routing agent being updated.

### Claim 11

A computer implemented method to export Border Gateway Protocol (BGP) data in sFlow samples, the method comprising:
performing a longest prefix match using a network address to get a network address prefix;
looking up the network address prefix in a BGP route information table to obtain a BGP attribute information entry;
retrieving a community list information entry and an autonomous systems path (AS_PATH) attribute information entry based on the BGP attribute information entry; and
generating a sFlow sample using the BGP attribute information entry, the community list information entry, and the BGP attribute information entry.

### Claim 12 (depends on 11)

The method of claim 11, wherein the method further comprises sending the sFlow sample to a sFlow collector.

### Claim 13 (depends on 11)

The method of claim 11, wherein the network address is associated with a routing path and the sFlow sample is related to the routing path.

### Claim 14 (depends on 11)

The method of claim 11, wherein the BGP attribute information entry comprises a next hop address for reaching a certain destination and a local preference value.

### Claim 15 (depends on 11)

The method of claim 11, wherein the community list information entry comprises a list of community values.

### Claim 16 (depends on 11)

The method of claim 11, wherein the AS_PATH attribute information entry comprises a segment type, a segment length, and a segment data for each AS_PATH segment of an AS_PATH corresponding to the AS_PATH attribute information entry.

### Claim 17

A networking device comprising:
a processor;
a memory coupled to the processor though a bus; and
a process executed from the memory by the processor which causes the processor to generate separate tables for Border Gateway Protocol (BGP) attribute information, community list information, and autonomous systems path (AS_PATH) attribute information, populate a BGP route information table that defines a mapping from a network address prefix to an entry in the BGP attribute information table, and generate a sFlow sample related to the network address prefix using the BGP attribute information table, the community list information table, the AS_PATH attribute information table, and the BGP route information table, wherein each entry in the BGP attribute information table is associated with an entry in the community list information table and an entry in the AS_PATH attribute information table.

### Claim 18 (depends on 17)

The device of claim 17, wherein the BGP attribute information table comprises a partial copy of an AS_PATH hash table of a routing agent of the device and each entry in the BGP attribute information table is associated with an AS_PATH instance of the routing agent.

### Claim 19 (depends on 18)

The device of claim 18, wherein each entry in the BGP attribute information table is updated in response to the corresponding AS_PATH instance of the routing agent being updated.

### Claim 20 (depends on 17)

The device of claim 17, wherein an entry in the BGP route information table is updated in response to a corresponding route of a routing agent being updated.
