Method and apparatus for flexible frame processing and classification engine
First Claim
1. A method of handling data packets in a network device, said method comprising:
- receiving an incoming data packet;
parsing the incoming data packet to obtain a portion of the incoming data packet;
comparing said portion with rules stored in a rule table, where each rule of said rules specifies a set of actions;
selecting a match between said portion and a particular rule of said rules; and
executing a particular set of actions specified by said particular rule;
wherein each rule field of said rules includes a mask and a selection flag used in the comparing said portion with each rule.
6 Assignments
0 Petitions
Accused Products
Abstract
A method of handling data packets in a network device and an apparatus for handling data packets in a network device are disclosed. The method includes receiving an incoming data packet and the incoming data packet is parsed to obtain a portion of the incoming data packet. That portion is compared with rules stored in a rule table, where each rule specifies a set of actions. A match between the portion and a particular rule of the rules is selected and a particular set of actions, specified by that particular rule is executed. Each rule includes a mask, a selection flag and a validity check that are used in the comparison of the portion with each rule. The rules may be compared with the packet portion serially or in a parallel fashion and if more than one rule matches the portion, the highest priority is selected as the matching rule.
215 Citations
46 Claims
-
1. A method of handling data packets in a network device, said method comprising:
-
receiving an incoming data packet;
parsing the incoming data packet to obtain a portion of the incoming data packet;
comparing said portion with rules stored in a rule table, where each rule of said rules specifies a set of actions;
selecting a match between said portion and a particular rule of said rules; and
executing a particular set of actions specified by said particular rule;
wherein each rule field of said rules includes a mask and a selection flag used in the comparing said portion with each rule. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A network device for handling data packets comprising:
-
a rules table;
means for receiving an incoming data packet;
means for parsing the incoming data packet to obtain a portion of the incoming data packet;
means for comparing said portion with rules stored in said rule table, where each rule of said rules specifies a set of actions;
means for selecting a match between said portion and a particular rule of said rules; and
means for executing a particular set of actions specified by said particular rule;
wherein each rule field of said rules includes a mask and a selection flag used by the means for comparing said portion with each rule. - View Dependent Claims (25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46)
-
Specification