Hierarchical metering in a virtual router-based network switch
First Claim
1. A method comprising:
- storing, within a shared memory system a routing platform, a plurality of metering contexts, each of the plurality of metering contexts containing information regarding a status and a state of one or more packet flows of a plurality of packet flows;
applying, by a metering procedure operable within the routing platform, a first level of metering of a set of hierarchical levels of metering associated with a first packet flow of the plurality of packet flows to the first packet flow by comparing a packet rate of the first packet flow against a first set of traffic rate parameters established for the first packet flow and stored in a first metering context of the plurality of metering contexts;
applying, by the metering procedure, a next level of metering of the set of hierarchical levels of metering associated with the first packet flow to the first packet flow and a second packet flow of the plurality of packet flows by comparing packet rates of both the first packet flow and the second packet flow against a second set of traffic rate parameters established for the first packet flow and the second packet flow and stored in a second metering context of the plurality of metering contexts;
selectively dropping, by the routing platform, packets of the first packet flow when (i) the packet rate of the first packet flow exceeds a traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first packet flow and the second packet flow when combined together exceed a traffic rate parameter of the second set of traffic rate parameters; and
refraining from dropping, by the routing platform, packets of the first packet flow when (i) the packet rate of the first packet flow exceeds the traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first packet flow and the second packet flow when combined together do not exceed the traffic rate parameter of the second set of rate parameters;
whereby a metering policy of the routing platform may allow packets at lower levels of the set of hierarchical levels of metering to exceed a predefined packet profile provided that a higher-level packet profile has not been exceeded.
3 Assignments
0 Petitions
Accused Products
Abstract
Methods and systems are provided for applying metering and rate-limiting in a virtual router environment and supporting a hierarchy of metering/rate-limiting contexts per packet flow. According to one embodiment, multiple first level metering options and multiple second level metering options associated with a hierarchy of metering levels are provided. A virtual routing engine receives packets associated with a first packet flow and packets associated with a second packet flow. The virtual routing engine performs a first type of metering of the first level metering options on the packets associated with the first packet flow using a first metering control block (MCB) and performs a second type of metering of the second level metering options on the packets associated with the first packet flow and the packets associated with the second packet flow using a second MCB.
275 Citations
19 Claims
-
1. A method comprising:
-
storing, within a shared memory system a routing platform, a plurality of metering contexts, each of the plurality of metering contexts containing information regarding a status and a state of one or more packet flows of a plurality of packet flows; applying, by a metering procedure operable within the routing platform, a first level of metering of a set of hierarchical levels of metering associated with a first packet flow of the plurality of packet flows to the first packet flow by comparing a packet rate of the first packet flow against a first set of traffic rate parameters established for the first packet flow and stored in a first metering context of the plurality of metering contexts; applying, by the metering procedure, a next level of metering of the set of hierarchical levels of metering associated with the first packet flow to the first packet flow and a second packet flow of the plurality of packet flows by comparing packet rates of both the first packet flow and the second packet flow against a second set of traffic rate parameters established for the first packet flow and the second packet flow and stored in a second metering context of the plurality of metering contexts; selectively dropping, by the routing platform, packets of the first packet flow when (i) the packet rate of the first packet flow exceeds a traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first packet flow and the second packet flow when combined together exceed a traffic rate parameter of the second set of traffic rate parameters; and refraining from dropping, by the routing platform, packets of the first packet flow when (i) the packet rate of the first packet flow exceeds the traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first packet flow and the second packet flow when combined together do not exceed the traffic rate parameter of the second set of rate parameters; whereby a metering policy of the routing platform may allow packets at lower levels of the set of hierarchical levels of metering to exceed a predefined packet profile provided that a higher-level packet profile has not been exceeded. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method comprising:
-
storing, within a shared memory system a routing platform, a plurality of metering contexts, each of the plurality of metering contexts containing information regarding a status and a state of one or more categories of packets of a plurality of categories of packets; applying, by a metering procedure operable within the routing platform, a first level of metering of a set of hierarchical levels of metering associated with a first category of packets of the plurality of categories of packets to the first category of packets by comparing a packet rate of the first category of packets against a first set of traffic rate parameters established for the first category of packets and stored in a first metering context of the plurality of metering contexts; applying, by the metering procedure, a next level of metering of the set of hierarchical levels of metering associated with the first category of packets to the first category of packets and a second category of packets of the plurality of categories of packets by comparing packet rates of both the first category of packets and the second category of packets against a second set of traffic rate parameters established for the first category of packets and the second category of packets and stored in a second metering context of the plurality of metering contexts; selectively dropping, by the routing platform, packets of the first category of packets when (i) the packet rate of the first category of packets exceeds a traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first category of packets and the second category of packets when combined together exceed a traffic rate parameter of the second set of traffic rate parameters; and refraining from dropping, by the routing platform, packets of the first category of packets when (i) the packet rate of the first category of packets exceeds the traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first category of packets and the second category of packets when combined together do not exceed the traffic rate parameter of the second set of rate parameters; whereby a metering policy of the routing platform may allow packets at lower levels of the set of hierarchical levels of metering to exceed a predefined packet profile provided that a higher-level packet profile has not been exceeded. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium tangibly embodying a set of instructions, which when executed by one or more processors of a routing platform, cause the one or more processors to perform a method for applying hierarchically metering to categories of packets, the method comprising:
-
storing, within a shared memory system the routing platform, a plurality of metering contexts, each of the plurality of metering contexts containing information regarding a status and a state of one or more categories of packets of a plurality of categories of packets; applying a first level of metering of a set of hierarchical levels of metering associated with a first category of packets of the plurality of categories of packets to the first category of packets by comparing a packet rate of the first category of packets against a first set of traffic rate parameters established for the first category of packets and stored in a first metering context of the plurality of metering contexts; applying a next level of metering of the set of hierarchical levels of metering associated with the first category of packets to the first category of packets and a second category of packets of the plurality of categories of packets by comparing packet rates of both the first category of packets and the second category of packets against a second set of traffic rate parameters established for the first category of packets and the second category of packets and stored in a second metering context of the plurality of metering contexts; selectively dropping packets of the first category of packets when (i) the packet rate of the first category of packets exceeds a traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first category of packets and the second category of packets when combined together exceed a traffic rate parameter of the second set of traffic rate parameters; and refraining from dropping packets of the first category of packets when (i) the packet rate of the first category of packets exceeds the traffic rate parameter of the first set of traffic rate parameters, and (ii) the packet rates of the first category of packets and the second category of packets when combined together do not exceed the traffic rate parameter of the second set of rate parameters. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification