# US 2003/0210702 A1 · Configurable packet processor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0210702 A1
- Document ID: US20030210702A1
- Status: Published application
- Kind: A1
- Application number: 10/465,236
- Filed: 2003-06-20
- Published: 2003-11-13
- Earliest claimed: 2001-11-21
- Assignees: Alcatel
- Inventors: Chad William Kendall
- Web page: https://patentgrep.com/patent/US20030210702A1

## CPC

- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L 45/00: Routing or path finding of packets in data switching networks (routing or path finding in wireless networks H04W40/00)
- H04L 45/54: {Organization of routing tables}
- H04L 45/7453: using hashing
- H04L 69/12: Protocol engines
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L 69/161: {Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields}
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A packet processing device has an on-board match engine memory. Actions to be taken on a packet can be looked up in the match engine memory using a key comprising a match engine index and a protocol field from the packet. The match engine index is obtained from either a relatively small on-board parser memory or a larger context memory. The parser memory contains match engine indices for sparse protocols. Performance approaching that of hard-wired packet processors can be obtained. New protocols or changes in protocols can be accommodated by writing new values into the match engine, parser and context memories. The packet processing device can be provided in a pipelined architecture.

## Claims

### Claim 1

A method for packet processing comprising,
a) obtaining first information regarding a packet;
b) using the first information as an index into a parser memory;
c) retrieving from the parser memory an entry comprising a location in the packet of one or more protocol bits specifying a protocol associated with the packet;
d) obtaining a match engine index; and,
e) using the protocol bits and the match engine index as a key to retrieve a match engine entry from a match engine memory, the match engine entry comprising an action to take on the packet.

### Claim 2 (depends on 1)

The method of claim 1 wherein the match engine index is included in the parser memory entry.

### Claim 3 (depends on 1)

The method of claim 1 wherein the parser memory entry comprises a context memory base address and either a location in the packet of a set of label bits or an indication that there are no label bits,
wherein, if the parser memory entry includes a location of a set of label bits, the method comprises retrieving from the packet the label bits, and obtaining the match engine index comprises using the context memory base address and label bits to retrieve from a context memory an entry comprising the match engine index.

### Claim 4 (depends on 3)

The method of claim 3 wherein, if the location in the packet of a set of label bits indicates that there are no label bits, obtaining the match engine index comprises retrieving a match engine index included in the parser memory entry.

### Claim 5 (depends on 4)

The method of claim 4 wherein the match engine memory comprises a content-addressable memory.

### Claim 6 (depends on 4)

The method of claim 4 wherein the match engine memory comprises a ternary content-addressable memory.

### Claim 7 (depends on 1)

The method of claim 1 wherein the match engine memory comprises a content-addressable memory.

### Claim 8 (depends on 1)

The method of claim 1 wherein obtaining the first information comprises identifying a channel with which the packet is associated.

### Claim 9

A method for packet processing in a packet processing system, the method comprising:
a step for obtaining first information regarding a packet;
a step for retrieving an entry corresponding to the first information from a parser memory;
a step for retrieving from the packet one or more protocol bits identified by the parser memory entry;
a step for retrieving from a match engine memory a match engine memory entry comprising an action to perform using a match engine key comprising a combination of the protocol bits and a match engine index; and,
a step for performing the action specified in the retrieved match engine entry.

### Claim 10 (depends on 9)

The method of claim 9 wherein the action comprises extracting information relating to another protocol from the packet.

### Claim 11 (depends on 9)

The method of claim 9 wherein the action is selected from the group consisting of forwarding the packet, discarding the packet, adding additional header information to the packet, associating the packet with a quality of service level, and extracting information relating to another protocol from the packet.

### Claim 12

A packet processing apparatus comprising:
a control logic circuit;
a parser memory accessible to the control logic circuit the parser memory comprising a plurality of entries each specifying a location in a packet of one or more protocol bits and at least some of which specifying a match engine index;
a match engine memory accessible to the control logic circuit, the match engine memory comprising a plurality of entries each specifying an action to be taken; and,
a context memory accessible to the control logic circuit, the context memory comprising a plurality of entries each specifying a match engine index;
wherein the control logic circuit is configured to generate a match engine key by combining protocol bits of a packet identified in a parser memory entry with a match engine index from an entry of either the parser memory or the context memory, to retrieve from the match engine memory an entry corresponding to the match engine key, and to perform an action specified in the match engine entry.

### Claim 13 (depends on 12)

The apparatus of claim 12 wherein the control logic circuit comprises an integrated circuit and the parser memory is integrated with the control logic circuit.

### Claim 14 (depends on 12)

The apparatus of claim 12 wherein the control logic circuit comprises an integrated circuit and the match engine memory is integrated with the control logic circuit.

### Claim 15 (depends on 14)

The apparatus of claim 14 wherein the control logic circuit comprises an integrated circuit and the parser memory is integrated with the control logic circuit.

### Claim 16 (depends on 15)

The apparatus of claim 15 wherein the context memory is external to the control logic circuit and the control logic circuit comprises an integrated interface to the context memory.

### Claim 17 (depends on 16)

The apparatus of claim 16 wherein the parser memory comprises 512 or fewer entries.

### Claim 18 (depends on 17)

The apparatus of claim 17 wherein the match engine memory comprises 512 or fewer entries.

### Claim 19 (depends on 16)

The apparatus of claim 16 wherein the control logic circuit comprises a pipelined architecture.

### Claim 20

A configurable device for processing packets, the device supporting a plurality of protocols, the device comprising:
a first internal memory comprising a plurality of entries;
a second internal memory comprising a plurality of entries each comprising an action to be taken on the packet;
logic circuitry for identifying a channel value associated with the packet, retrieving an entry from the first memory using the channel value as an index, and obtaining from the entry address information identifying a set of entries in an external context memory applicable to the channel value;
logic circuitry for using the address information and one or more bit values from the packet to retrieve from the external context memory one entry from the set of entries; and,
logic circuitry for using information from the one entry retrieved from the external context memory to retrieve from the second memory an action to be taken on the packet.

### Claim 21 (depends on 20)

The device of claim 20 wherein the action to be taken on the packet comprises extracting information relating to a protocol from the packet.

### Claim 22 (depends on 21)

The device of claim 21 wherein the second memory comprises a content addressable memory.

### Claim 23 (depends on 22)

The device of claim 22 wherein the first memory comprises a random access memory.

### Claim 24

A packet processing device comprising:
means for retrieving first information about a received packet;
means for retrieving an entry corresponding to the first information, the entry comprising a location in the packet of one or more protocol bits specifying a protocol associated with the packet and a match engine index;
means for generating a match engine key; and,
means for retrieving an action corresponding to one of a plurality of match engine entries which matches the match engine key; and,
means for performing the action.

### Claim 25 (depends on 24)

The packet processing device of claim 24 wherein the first information comprises an ATM channel associated with the packet.

### Claim 26 (depends on 25)

The packet processing device of claim 25 wherein the means for performing the action included means for forwarding the packet to another packet processing device.

### Claim 27 (depends on 24)

The packet processing device of claim 24 comprising
means for determining from the entry whether to retrieve an entry from an external context memory and, means for retrieving an entry from the external context memory, wherein the means for generating the match engine key is adapted to generate the match engine key using information in the entry from the external context memory.

### Claim 28 (depends on 27)

The packet processing device of claim 27 wherein the means for generating a match engine key, the means for retrieving an action and the means for retrieving an entry from the external context memory are incorporated on a single integrated circuit.

### Claim 29

A method for processing packets in which a plurality of protocols are supported, comprising the steps of:
providing in a processing device, first and second internal memories;
obtaining from said first internal memory, based on a channel on which said packet is received, address information to access an external memory containing context information associated with said packet; and
obtaining from said second internal memory, based on matching label and index information obtained from said external memory, an action to be executed with respect to said packet.

### Claim 30 (depends on 29)

The method of claim 29, wherein said external memory further contains state information associated with said packet.

### Claim 31 (depends on 29)

The method of claim 29, wherein said first internal memory further contains state information associated with said packet.

### Claim 32 (depends on 30)

The method of claim 30, wherein said action is provided by said second internal memory based further on said state information.

### Claim 33 (depends on 31)

The method of claim 31, wherein said action is provided by said second internal memory based further on said state information.

### Claim 34 (depends on 29)

The method of claim 29, wherein said first internal memory is a RAM and said second internal memory is a CAM.

### Claim 35

A device for processing packets in which a plurality of protocols are supported, the device comprising:
first and second internal memories wherein;
said first internal memory provides, based on a channel on which said packet is received, address information to access an external memory containing context information associated with said packet; and
said second internal memory provides, based on matching label and index information obtained from said external memory, an action to be executed with respect to said packet.

### Claim 36 (depends on 35)

The device of claim 35, wherein said external memory further contains state information associated with said packet.

### Claim 37 (depends on 36)

The device of claim 36, wherein said action is provided by said second internal memory based further on said state information.

### Claim 38 (depends on 36)

The device of claim 36, wherein said first internal memory is a RAM and said second internal memory is a CAM.

### Claim 39 (depends on 35)

The device of claim 35, wherein said first internal memory further contains state information associated with said packet.

### Claim 40 (depends on 39)

The device of claim 39, wherein said action is provided by said second internal memory based further on said state information.
