# US 2019/0173771 A1 · System for aggregating statistics associated with interfaces

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

- Number: US 2019/0173771 A1
- Document ID: US20190173771A1
- Status: Published application
- Kind: A1
- Application number: 16/252,647
- Filed: 2019-01-20
- Published: 2019-06-06
- Earliest claimed: 2014-12-31
- Assignees: Nicira, Inc.
- Applicants: Nicira, Inc.
- Inventors: Somik Behera; Henry Mai
- Web page: https://patentgrep.com/patent/US20190173771A1

## CPC

- H04L 43/0882: Utilisation of link capacity
- G06F 16/951: Indexing; Web crawling techniques
- H04L 41/142: using statistical or mathematical methods
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 43/026: using flow identification
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04L 43/0823: Errors, e.g. transmission errors
- Y02D 30/50: in wire-line communication networks, e.g. low power modes or reduced link rate
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Some embodiments provide a statistics collection framework that is used to aggregate statistic for interfaces such as logical ports and logical port pairs. Flows that are related with these interfaces are tagged with the identifier of the logical entities for which statistics are being collected. The interface statistics is periodically sent in the background to a statistics aggregator. The read queries for the interface statistics are directed to the statistics aggregator. The statistics aggregator, therefore, acts as a cumulative cache for the interface statistics.

## Claims

### Claim at position 1

1-22. (canceled)

### Claim 23

A method of collecting statistics for a set of interfaces associated with a logical forwarding element (LFE) implemented by a plurality of physical forwarding elements (PFEs) operation on a plurality of devices, the method comprising:
at a particular PFE operating on a particular device:
receiving at least one flow entry relating to a particular interface associated with the LFE that is associated with the particular PFE, the flow entry comprising (i) a set of matching fields that store flow-identifying parameters for matching with attributes of packets and (ii) a tag identifier that identifies the particular interface and that is not part of a matching field to match with packet attributes;
generating statistics relating to packets that matched the set of matching fields and were processed by reference to the flow entry; and
sending the statistics to a computer operating outside of the device for the computer to aggregate the statistics with statistics received from other PFEs to produce overall statistics relating to the particular interface associated with the LFE.

### Claim 24 (depends on 23)

The method of claim 23, wherein sending the statistics comprises sending statistics collected in a time interval.

### Claim 25 (depends on 23)

The method of claim 23, wherein the statistics are aggregated by adding a difference between new statistics received for the particular flow entry and prior statistics previously received for the particular flow.

### Claim 26 (depends on 23)

The method of claim 23, wherein at least a subset of the devices on which at least a subset of PFEs operate are host computers on which data compute nodes associated with the LFE execute.

### Claim 27 (depends on 26)

The method of claim 26, wherein an interface in the set of interfaces comprises one of a virtual network interface card (VNIC) connecting a data compute node (DCN) that executes on a host computer to a PFE operating on the host computer, and an uplink interface connecting a physical network interface card (PNIC) to the PFE operating on the host computer.

### Claim 28 (depends on 23)

The method of claim 23, wherein the tag identifier of the interface is a universally unique identifier (UUID) of the particular interface.

### Claim 29 (depends on 23)

The method of claim 23, wherein the tag identifier that identifies the particular interface comprises an identifier of a port connecting the particular interface to a physical or logical forwarding element.

### Claim 30 (depends on 23)

The method of claim 23, wherein sending statistics comprises sending statistics along with the tag identifier in order to allow the computer to identify the particular interface.

### Claim 31 (depends on 23)

The method of claim 23, wherein generating the statistics comprises:
matching different packets to the received flow entry;
incrementing a statistic maintained for the packets matching the flow entry;
providing the incremented statistic to a data collector on the particular device along with the tag identifier to identify the statistics collected for the particular interface.

### Claim 32 (depends on 23)

The method of claim 23, wherein sending the statistics further comprises sending statistics stored by the data collector to the computer.

### Claim 33

A non-transitory machine readable medium storing a program that when executed by at least one processing unit of a particular device collects statistics for a set of interfaces associated with a logical forwarding element (LFE) implemented by a plurality of physical forwarding elements (PFEs) operation on a plurality of devices, the program comprises sets of instructions for:
receiving at least one flow entry relating to a particular interface associated with the LFE that is associated with the particular PFE, the flow entry comprising (i) a set of matching fields that store flow-identifying parameters for matching with attributes of packets and (ii) a tag identifier that identifies the particular interface and that is not part of a matching field to match with packet attributes;
generating statistics relating to packets that matched the set of matching fields and were processed by reference to the flow entry; and
sending the statistics to a computer operating outside of the device for the computer to aggregate the statistics with statistics received from other PFEs to produce overall statistics relating to the particular interface associated with the LFE.

### Claim 34 (depends on 43)

The non-transitory machine readable medium of claim 43, wherein the set of instructions for sending the statistics comprises a set of instructions for sending statistics collected in a time interval.

### Claim 35 (depends on 43)

The non-transitory machine readable medium of claim 43, wherein the statistics are aggregated by adding a difference between new statistics received for the particular flow entry and prior statistics previously received for the particular flow.

### Claim 36 (depends on 43)

The non-transitory machine readable medium of claim 43, wherein at least a subset of the devices on which at least a subset of PFEs operate are host computers on which data compute nodes associated with the LFE execute.

### Claim 37 (depends on 36)

The non-transitory machine readable medium of claim 36, wherein an interface in the set of interfaces comprises one of a virtual network interface card (VNIC) connecting a data compute node (DCN) that executes on a host computer to a PFE operating on the host computer, and an uplink interface connecting a physical network interface card (PNIC) to the PFE operating on the host computer.

### Claim 38 (depends on 33)

The non-transitory machine readable medium of claim 33, wherein the tag identifier of the interface is a universally unique identifier (UUID) of the particular interface.

### Claim 39 (depends on 33)

The non-transitory machine readable medium of claim 33, wherein the tag identifier that identifies the particular interface comprises an identifier of a port connecting the particular interface to a physical or logical forwarding element.

### Claim 40 (depends on 33)

The non-transitory machine readable medium of claim 33, wherein the set of instructions for sending statistics comprises a set of instructions for sending statistics along with the tag identifier in order to allow the computer to identify the particular interface.

### Claim 41 (depends on 33)

The non-transitory machine readable medium of claim 33, wherein the set of instructions for generating the statistics comprises sets of instructions for:
matching different packets to the received flow entry;
incrementing a statistic maintained for the packets matching the flow entry;
providing the incremented statistic to a data collector on the particular device along with the tag identifier to identify the statistics collected for the particular interface.

### Claim 42 (depends on 33)

The non-transitory machine readable medium of claim 33, wherein the sets of instructions for sending the statistics further comprises a set of instructions for sending statistics stored by the data collector to the computer.
