IP Library Granted Patent US 10,574,556
Granted Patent B2
US 10,574,556 · App. 16/252,647 · Granted Feb 25, 2020

System for aggregating statistics associated with interfaces

Inventors: Somik Behera (San Francisco, CA); Henry Mai (Palo Alto, CA)
Assignee: NICIRA, INC.
H04L43/0882G06F16/951H04L41/142H04L43/026H04L43/0823Y02D50/30
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,574,556
App. No.
16/252,647
Granted
Feb 25, 2020
Kind
B2
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 (33)

1. 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) operating 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.

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

3. The method of claim 1 , 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.

4. The method of claim 1 , 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.

5. The method of claim 4 , 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.

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

7. The method of claim 1 , 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.

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

9. The method of claim 1 , 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.

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

11. 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) operating on a plurality of devices, the plurality of PFEs comprising a particular PFE that executes on the particular device, 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.

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

13. The non-transitory machine readable medium of claim 11 , 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.

14. The non-transitory machine readable medium of claim 11 , 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.

15. The non-transitory machine readable medium of claim 14 , 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.

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

17. The non-transitory machine readable medium of claim 11 , 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.

18. The non-transitory machine readable medium of claim 11 , 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.

19. The non-transitory machine readable medium of claim 11 , 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.

20. The non-transitory machine readable medium of claim 11 , 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.

Assignments (1)
MERGER Recorded Jan 27, 2025
From: NICIRA, INC.
To: VMWARE LLC
Reel/Frame 070187/0487 →