Methods and apparatus to implement except condition during data packet classification
First Claim
1. A non-transitory processor-readable medium storing code representing instructions to cause a processor to:
- receive a value associated with a portion of a data packet;
identify one of a first data set from a plurality of data sets or a default data set based on the value, each data set from the plurality of data sets being associated with a range of values, the plurality of data sets representing routing action triggering instructions, the default data set representing a routing action triggering instruction, the first data set being associated with a first range of values including the value if the first data set is identified, the default data set being associated with a default range of values, an except data set being associated with an excluded range of values, the except data set representing a routing action triggering instruction;
combine, if the first data set is identified, the first data set and the default data set to produce a first combined data set;
combine, if the default data set is identified, the default data set with the except data set to produce a second combined data set;
send the first combined data set if the first combined data set is produced; and
send the second combined data set if the second combined data set is produced.
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.
147 Citations
18 Claims
-
1. A non-transitory processor-readable medium storing code representing instructions to cause a processor to:
-
receive a value associated with a portion of a data packet; identify one of a first data set from a plurality of data sets or a default data set based on the value, each data set from the plurality of data sets being associated with a range of values, the plurality of data sets representing routing action triggering instructions, the default data set representing a routing action triggering instruction, the first data set being associated with a first range of values including the value if the first data set is identified, the default data set being associated with a default range of values, an except data set being associated with an excluded range of values, the except data set representing a routing action triggering instruction; combine, if the first data set is identified, the first data set and the default data set to produce a first combined data set; combine, if the default data set is identified, the default data set with the except data set to produce a second combined data set; send the first combined data set if the first combined data set is produced; and send the second combined data set if the second combined data set is produced. - View Dependent Claims (2, 3, 4, 5)
-
-
6. 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 bit sequence and associated with a set of keys, each policy vector from the plurality of policy vectors being associated with at least one action triggering instruction in a switch fabric based on a bit value of each bit element in that policy vector; a processor operatively coupled to the memory, the processor configured to produce an indicator associated with an availability of a policy vector from the plurality of policy vectors, the policy vector from the plurality of policy vectors being associated with a set of keys including a key, associated with a portion of a data packet received at a multi-stage switch; and the processor configured to produce a composite policy vector, the composite policy vector being a logical bit combination of a first default policy vector from the plurality of policy vectors with one of, based on the indicator, the policy vector from the plurality of policy vectors or a second default policy vector from the plurality of policy vectors, the first default policy vector being associated with a default set of keys, the second default policy vector being associated with an excepted set of keys, the excepted set of keys including a second set of keys to be excepted from the default set of keys. - View Dependent Claims (7, 8, 9, 10, 11)
-
-
12. A method, comprising:
-
receiving a key based on a portion of a data packet received at a multi-stage switch; accessing a first policy vector associated with one of a first set of keys including the key or a default set of keys, the first policy vector having a plurality of bit elements, each bit element from the plurality of bit elements of the first policy vector being uniquely associated with an action triggering instruction in a switch fabric of the multi-stage switch; accessing a second policy vector based on the first set of keys or the default set of keys, the second policy vector being associated with an excepted set of keys including a second set of keys associated with an except condition, the second policy vector having a plurality of bit elements, each bit element from the plurality of bit elements of the second policy vector being uniquely associated with an action triggering instruction in the switch fabric; and producing a composite policy vector based on a logical combination of the first policy vector with the second policy vector. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
Specification