Methods and apparatus to implement except condition during data packet classification
First Claim
1. A method, comprising:
- receiving, via a processor, a value associated with a portion of a data packet;
identifying, via the processor, one of a first data set or a default data set from a plurality of data sets based on the value, each data set from the plurality of data sets being associated with a range of values each associated with an instruction to trigger a routing action associated with a condition, the first data set being associated with a first range of values including the value, the default data set being associated with a default range of values each associated with an instruction to trigger a routing action associated with a default condition;
when the first data set is identified;
combining, via the processor, the first data set and the default data set to produce a first combined data set including a plurality of values each associated with an instruction to trigger a routing action associated with at least one of the condition or the default condition; and
sending the first combined data set; and
when the first data set is not identified;
sending the default data set.
1 Assignment
0 Petitions
Accused Products
Abstract
In one embodiment, a method includes receiving a value associated with a data packet and identifying a data set based on the value. The data set is associated with a range of values and represents routing actions. The data set is a first data set from a plurality of data sets if the value is included in the range of values associated with the first data set. The data set is a default data set if the value is not included in a range of values associated with a data set from the plurality of data sets. The method includes combining the first data set with the default data set if the first data set is identified. The method includes combining the default data set with an except data set if the default data set is identified.
141 Citations
20 Claims
-
1. A method, comprising:
-
receiving, via a processor, a value associated with a portion of a data packet; identifying, via the processor, one of a first data set or a default data set from a plurality of data sets based on the value, each data set from the plurality of data sets being associated with a range of values each associated with an instruction to trigger a routing action associated with a condition, the first data set being associated with a first range of values including the value, the default data set being associated with a default range of values each associated with an instruction to trigger a routing action associated with a default condition; when the first data set is identified; combining, via the processor, the first data set and the default data set to produce a first combined data set including a plurality of values each associated with an instruction to trigger a routing action associated with at least one of the condition or the default condition; and sending the first combined data set; and when the first data set is not identified; sending the default data set. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A non-transitory processor-readable medium storing code representing instructions to cause a processor to:
-
define a key associated with a portion of a data packet received at a multi-stage switch; generate a first policy vector based on the key and a set of keys, the first policy vector being represented by a plurality of bit values, each bit value from the plurality of bit values associated with an instruction to trigger a routing action associated with a first condition; when the first policy vector does not include bit values associated with instructions to trigger routing actions associated with a default condition, generate a second policy vector associated with a set of default keys including the key, the second policy vector being represented by a plurality of bit values associated with instructions to trigger routing actions associated with the default condition; and produce a composite policy vector, the composite policy vector being based on a logical combination of the plurality of bit values of the first policy vector and the plurality of bit values of the second policy vector when the first policy vector does not include bit values associated with instructions to trigger routing actions associated with the default condition, and the composite policy vector being the first policy vector when the first policy vector includes at least one value associated with instructions to trigger routing actions associated with the default condition. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14)
-
-
15. An apparatus, comprising:
-
a memory configured to store a policy vector database including a plurality of policy vectors, each policy vector from the plurality of policy vectors being represented by a plurality of bit values associated with instructions to trigger routing actions associated with a condition in a multi-stage switch; and a processor operatively coupled to the memory, the processor configured to define a key associated with a portion of a data packet received at the multi-stage switch; the processor configured to generate a first policy vector based on the key and a set of keys, the processor configured to generate a second policy vector when the first policy vector does not include bit values associated with instructions to trigger routing actions associated with a default condition, the second policy vector being associated with a set of default keys including the key, and the processor configured to produce a composite policy vector, the composite policy vector being based on a logical combination of the plurality of bit values of the first policy vector and the plurality of bit values of the second policy vector when the first policy vector does not include bit values associated with instructions to trigger routing actions associated with the default condition, and the composite policy vector being the first policy vector when the first policy vector includes at least one bit value associated with an instruction to trigger a routing action from the instructions to trigger routing actions associated with the default condition. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification