System for aggregating statistics associated with interfaces
AssigneeNicira, Inc.
InventorsSomik Behera, Henry Mai
Life of this patent
Estimating the term…
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.
Claims21
1-22. (canceled)
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.
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.
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.
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.
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.
Dependencies are inferred from the claim text.