# US 2017/0302578 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 2017/0302578 A1
- Document ID: US20170302578A1
- Status: Published application
- Kind: A1
- Application number: 15/638,230
- Filed: 2017-06-29
- Published: 2017-10-19
- Earliest claimed: 2015-02-27
- Assignees: Arista Networks, Inc.
- Applicants: Arista Networks, Inc.
- Inventors: Akshay K. Gattani; Shuo Guo; Yitao Wu
- Web page: https://patentgrep.com/patent/US20170302578A1

## 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 implement a method to export routing protocol data, the method comprising:
generating a plurality of separate tables for the routing protocol data, wherein the routing protocol data is de-duplicated and at least one of the entries in a first one of the plurality of separate tables references a plurality of entries in other ones of the plurality of the separate tables;
populating a second one of the plurality of the separate tables with mapping information that defines a mapping from a network address prefix to an entry in the first one of the plurality of separate tables; and
generating a routing protocol export sample related to the network address prefix using the plurality of separate tables.

### Claim 2 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in the first one of the plurality of separate tables includes 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 a third one of the plurality of separate tables comprises a list of community values.

### Claim 4 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in a fourth one of the plurality of separate tables comprises a segment type, a segment length, and a segment data for each autonomous system path segment of an autonomous system path corresponding to the entry.

### Claim 5 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein each entry in the first one of the plurality of separate tables is associated with an entry in the community list information table and an entry in the fourth one of the plurality of separate tables by referencing the entry in the third one of the plurality of separate tables and the entry in the autonomous system path attribute information table.

### Claim 6 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the first one of the plurality of separate tables comprises a partial copy of an autonomous system path hash table of a routing agent and each entry in the first one of the plurality of separate tables is associated with an autonomous system path instance of the routing agent.

### Claim 7 (depends on 6)

The non-transitory machine-readable medium of claim 6, wherein the third one of the plurality of separate tables 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 fourth one of the plurality of separate tables comprises a copy of the autonomous system 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 first one of the plurality of separate tables is updated in response to the corresponding autonomous system 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 second one of the plurality of separate tables is updated in response to a corresponding route of a routing agent being updated.

### Claim 11 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the routing protocol is Border Gateway Protocol.

### Claim 12

A method to export routing protocol data, the method comprising:
generating a plurality of separate tables for the routing protocol data, wherein the routing protocol data is de-duplicated and at least one of the entries in a first one of the plurality of separate tables references a plurality of entries in other ones of the plurality of the separate tables;
populating a second one of the plurality of the separate tables with mapping information that defines a mapping from a network address prefix to an entry in the first one of the plurality of separate tables; and
generating a routing protocol export sample related to the network address prefix using the plurality of separate tables.

### Claim 13 (depends on 12)

The method of claim 12, wherein each entry in the first one of the plurality of separate tables includes a next hop address for reaching a certain destination and a local preference value.

### Claim 14 (depends on 12)

The method of claim 12, wherein each entry in a third one of the plurality of separate tables comprises a list of community values.

### Claim 15 (depends on 12)

The method of claim 12, wherein each entry in a fourth one of the plurality of separate tables comprises a segment type, a segment length, and a segment data for each autonomous system path segment of an autonomous system path corresponding to the entry.

### Claim 16 (depends on 12)

The method of claim 12, wherein each entry in the first one of the plurality of separate tables is associated with an entry in the community list information table and an entry in the fourth one of the plurality of separate tables by referencing the entry in the third one of the plurality of separate tables and the entry in the autonomous system path attribute information table.

### Claim 17 (depends on 12)

The method of claim 12, wherein the first one of the plurality of separate tables comprises a partial copy of an autonomous system path hash table of a routing agent and each entry in the first one of the plurality of separate tables is associated with an autonomous system path instance of the routing agent.

### Claim 18 (depends on 17)

The method of claim 17, wherein the third one of the plurality of separate tables comprises a copy of a community hash table of the routing agent.

### Claim 19 (depends on 17)

The method of claim 17, wherein the fourth one of the plurality of separate tables comprises a copy of the autonomous system path attribute hash table of the routing agent.

### Claim 20 (depends on 12)

The method of claim 12, wherein the routing protocol is Border Gateway Protocol.
