Method and apparatus for efficiently processing data packets in a computer network
According to an embodiment of the invention, a network device such as a router or switch provides efficient data packet handling capability. The network device includes one or more input ports for receiving data packets to be routed, as well as one or more output ports for transmitting data packets. The network device includes an integrated port controller integrated circuit for routing packets. The integrated circuit includes an interface circuit, a received packets circuit, a buffer manager circuit for receiving data packets from the received packets circuit and transmitting data packets in one or more buffers and reading data packets from the one or more buffers. The integrated circuit also includes a rate shaper counter for storing credit for a traffic class, so that the integrated circuit can support input and/or output rate shaping. The integrated circuit may be associated with an IRAM, a CAM, a parameter memory configured to hold routing and/or switching parameters, which may be implemented as a PRAM, and an aging RAM, which stores aging information. The aging information may be used by a CPU coupled to the integrated circuit via a system interface circuit to remove entries from the CAM and/or the PRAM when an age count exceeds an age limit threshold for the entries.
The present invention relates to routing in a computer network. More particularly, the present invention relates to a system for efficiently routing and monitoring packets in a computer network.
BACKGROUNDModern networking environments provide enormously enhanced data transmission capabilities over environments available only a few years ago. However, the demand for bandwidth is constantly increasing, as is the demand for more routing and monitoring capabilities. In order to meet this demand, network devices such as routers need to increase the number of ports serviced and the features they provide.
For example, network devices need to implement Quality of Service (QOS) features, which can provide better and more predictable network service by ensuring a dedicated bandwidth to be available, improving loss characteristics, avoiding and managing network congestion, shaping network traffic, and setting traffic priorities across the network. Currently, many QOS features are implemented using software. However, software implementation is impractical for the large bandwidth routers needed to handle the increasing amount of network traffic. Similarly, network devices need to be able to route broadcast or multicast packets and jumbo packets, and to provide network monitoring capability.
Therefore, there is a need for a large bandwidth network device that can efficiently route packets with, for example, “the Internet protocol” (IPv4) type of service (TOS) fields for QOS services. Additionally, the network device should efficiently route jumbo packets and broadcast or multicast packets (including multicast packets with different VLAN IDs). Finally, the network device should be configured to perform network monitoring without the use of additional probes.
SUMMARYAccording to an embodiment of the invention, a network device such as a switch or a router provides large bandwidth as well as efficiency for data packet handling capability. The network device includes multiple input and output ports for receiving and transmitting data packets. According to an embodiment, the network device performs switching or routing of data packets for numerous auto-sensing multi-speed (10/100 megabit) Ethernet ports and very high speed (e.g., gigabit) ports. According to another embodiment, the network device performs switching or routing of data packets for multiple very high speed ports.
According to one embodiment, the network device provides a port controller integrated circuit for switching or routing packets. The integrated circuit includes a packet input circuit for receiving data packets from at least one of the input ports, and a buffer manager circuit for receiving data packets from the packet input circuitry, transmitting data packets to one or more buffers, and reading data packets from the one or more buffers. The integrated circuit also includes a rate shaper counter for storing credit for a traffic class, so that the integrated circuit can support input and/or output rate shaping.
The integrated circuit may be implemented as an application specific integrated circuit (ASIC) or in a programmable logic device (e.g., an FPGA). The input ports may be 10/100 megabit Ethernet ports, gigabit Ethernet ports, Packet over SONET (POS) ports, ATM ports, or other ports. The packet input circuitry is configured to provide an interface with the appropriate port type.
The integrated circuit may be associated with one or more memories which provide a buffer pool for storing data packets. In some embodiments, the buffer pool is implemented using a random access memory (RAM). (The buffer pool is sometimes also referred to as an IRAM.) In other embodiments, other types of memory may be used. The integrated circuit may be associated with one or more content-addressable memories (CAMs) for storing information about the packets (“packet information”) being handled in a memory array. The integrated circuit may include a CAM interface used to perform lookups on the CAM.
In one embodiment, the integrated circuit may be associated with an additional memory provided for storing packet parameters (“PRAM”). Each PRAM stores packet information in a memory array, including switching or routing parameters. The integrated circuit may include a PRAM interface used to perform lookups on the PRAM. The PRAM may be sized to provide values of a predetermined set of packet parameters for each CAM entry.
The integrated circuit may further include an aging RAM, which stores aging information regarding the CAM and PRAM entries. The aging information may be used by a host CPU, which may be coupled to the integrated circuit via a system interface circuit, to determine for removal entries from either the CAM, the PRAM, or both, when an age count exceeds an age limit threshold for the entries. Age counts are incremented periodically for a CAM entry, unless the entry is referenced, which resets its age count.
The integrated circuit may include a packet evaluation circuit. The packet evaluation circuit may include a port tracker circuit. The packet evaluation circuit may also include a programmable lookup processor, which may be a RISC processor. The programmable lookup processor may include a register file, a register select circuit for selecting the contents of registers as operands, an arithmetic logic unit for operating on the operands, and a feedback select circuit for providing, alternatively, as operand an output value of the ALU. In one embodiment, the register file is configured such that some of the registers are assigned to particular packet parameters, such that a snapshot of the register file provides without further processing a key for a CAM lookup. The output value of the ALU may be written into one or more of the registers.
The packet evaluation circuit may also include a CAM lookup handler for submitting lookup requests to the CAM, and a PRAM lookup handler for submitting lookup requests to the PRAM based on the values returned from a CAM lookup. The packet evaluation circuit may include packet evaluation logic circuits for performing packet processing using the results of a CAM lookup and a PRAM lookup.
The port tracker circuit may identify valid packet contexts (to filter corrupted packet data), copy a VLAN tag to a status word, and remove a VLAN tag from a packet header, in order to facilitate packet processing. The port tracker circuit may also perform TOS field lookups under the IPv4 protocol, or another suitable protocol.
The packet input circuit may include an 8 B/10 B decoder. Additionally, the packet input circuit may include logic circuits for CRC verification and auto-negotiation.
The integrated circuit may further include a polling logic circuit, which may perform time slot polling of the input ports of the network device. The integrated circuit may further include a received data FIFO circuit to receive data packets from the polling logic circuit. The integrated circuit may further include an internal VLAN table.
The buffer manager circuit may perform rate shaping, including input rate shaping and output rate shaping. The rate shaping may be based on port, both port and priority, or L3/L4 (network level) information. The buffer manager circuit may also be configured to route jumbo packets, which are variable-length packets for very high speed ports.
A priority may be assigned to a data packet by default, and according to whether the data packet is specified with a VLAN priority or a TOS priority. The packet priority may be further modified from the results of a CAM lookup or a PRAM lookup.
The processed data packet may be transferred to a buffer in an IRAM by the buffer manager circuit for forwarding. The buffer manager circuit may perform rate shaping. Rate shaping may be achieved by defining traffic classes, and storing credit in a counter corresponding to the traffic class. Credits are added to each counter periodically according to a credit interval. The amount of additional credit added to each counter may be different. The amount of credit is decreased when the buffer manager forwards a packet for the traffic class.
An interface adapter may be used with a port controller integrated circuit as described above, in order to interface multiple port controller integrated circuits with a backplane having multiple backplane slots. The interface adapter may provide data rate matching where the combined bandwidth of the multiple port controller integrated circuits is different from the bandwidth of the backplane. The interface adapter may transmit packets to and receive packets from any of the backplane slots and any of the port controller integrated circuits. The received data packets and the data packets to be transmitted may be stored in backplane queues. A buffer manager may be provided in the interface adapter for managing buffers used to mediate data packet traffic among the backplane and the port controller integrated circuits. A backplane RAM can be provided to provide buffers for storing data packets in transit among the backplane slots and the port controller integrated circuits.
A more complete understanding of the present invention and its advantages will be afforded to those skilled in the art upon consideration of the following detailed description of the exemplary embodiments therein. Reference will be made to the appended drawing that will first be described briefly.
Use of the same or similar reference numbers in different figures indicates the same or like elements.
DETAILED DESCRIPTIONAccording to an embodiment of the invention, a network device includes one or more integrated port controllers, each implemented in an integrated circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA), to manage and monitor packet flow efficiently.
Network Device with Integrated Port Controller
In
ASIC 100 may be associated with one or more memories, such as an integrated packet controller memory (“IRAM”) 120, aging memory 130, parameter memory (PRAM) 140, and content addressable memory (CAM) 150. (Functions of these memories are explained in further detail below). IRAM 120, aging memory 130 may be implemented by random access memories. Although
ASIC 100 may interact with its associated memories as follows. ASIC 100 provides to CAM 150 packet information extracted from a packet received into ASIC 100, to initiate a search in CAM 150 to determine how to forward the packet to its destination and to initiate other packet processing functions. If a match is found, CAM 150 returns corresponding parameter values; in addition, or alternatively, CAM 150 returns an index into another memory array, where the corresponding data is stored. For example, in a destination address (DA) search, ASIC 100 uses the returned index to retrieve forwarding data from PRAM 140. For a source address (SA) search, ASIC 100 uses the returned index to retrieve source port information from PRAM 140, which is then used to age CAM entries.
PRAM 140 includes additional information for further processing the packet. PRAM 140 may be implemented by a 32-bit synchronous DRAM (SDRAM), sized to match CAM 150. According to an embodiment of the invention, PRAM 140 includes four separate tables implemented in different SDRAM banks. Destination address table records are in one table, source address table records are in another table, L3 (network level) records are in another table, and L4/session (network/session level) records are in another table. This banked table structure permits CAM lookups according to many supported packet types to receive different services at different levels. The associated PRAM data provide destination address/source address lookups and support network monitoring and management functions.
According to an embodiment of the invention, PRAM 140 implements address aging, which allows a CPU such as CPU 300 of
When CAM 150 performs a successful address lookup (that is, locates a matching entry in the CAM array), a PRAM lookup cycle at that CAM index is performed. The information retrieved from PRAM 140 is incorporated into the 16-byte packet status word, and the age count may be zeroed, which is performed after a source address lookup in this embodiment. If the age count is zeroed, it is zeroed both in the PRAM record and the AGERAM record. The aging function is initiated by CPU 300, which commences an aging cycle by issuing an age cycle command to ASIC 100. When the age cycle command is received, an aging controller on ASIC 100 scans the AGERAM entries, incrementing the age count whenever the age-disable flag is not set, and the age value is less than an age-limit threshold in the PRAM aging configuration register. An active aging cycle is indicated in the status field of the PRAM control register. PRAM entries that age-out (the age count exceeds the age-limit threshold) have their indices stored in an aging FIFO, so that CPU 300 can take appropriate action; for example, over-writing the CAM and PRAM indices.
Once all required packet type decoding, CAM, and PRAM lookups are complete, a buffer manager controller such as buffer manager controller 440 of
Besides forwarding packets to their destinations, packet input circuit 410 performs further functions. Packet input circuit 410 may be configured to perform packet classification, prepare packet modifications, and generate packet headers, which are functions that can be used to support routing at higher protocol levels, network traffic management and monitoring. Further, packet input circuit 410 prepares sixteen-byte encapsulation, which used in forwarding packets through router 10. In
Received packet headers are forwarded to received packet header FIFO memory 520. In an embodiment, received packet header FIFO memory 520 has a capacity of 256×36 bits. Received packet data is forwarded to a received packet data FIFO memory 560. According to an embodiment, received packet data FIFO memory 560 has a capacity of 256×36 bits.
Packet header data is forwarded from received packet header FIFO memory 520 to a programmable lookup processor (PLP) 530 for further processing. PLP 530 forms CAM lookups, creates part of the 16-byte packet header for the outgoing packet to be forwarded, and generates information needed for packet evaluation to function properly. Based on packet type (e.g., IP, IPX or L2), PLP 530 also computes a trunk index to support trunking. This trunk index is used to logically 'ORed with a MAC destination address FID.
In one embodiment, PLP 530 is a 16-bit RISC processor, able to access anything from the first 60 bytes of a packet. A program drives the specific operations of PLP 530, which directs the types of CAM lookups to be carried out, according to the packet type and values of system parameters. Some registers in the RISC processor of that embodiment are assigned to specific parameters that comprise the packet context, so that their contents can directly compose specific L2/L3/L4 CAM targets or contain packet header fields. Once processing is complete the packet context is transferred to the CAM lookup handler 540.
Register select block 620 chooses a target register's contents from register file 610 as operands into ALU 650. Feedback select block 630, which selects either the operands from the register select block 620, or an output value of ALU 620, permits back-to-back use of modified registers. In this implementation, the registers in register file 610 are pipelined such that a write operation into a register in register file 610 takes two processor clock cycles. However, if processor 640 detects that a result from ALU 640 is used in the following instruction, feedback select block 630 selects the result from ALU 640 as operand for this following instruction, rather than from register file 610. ALU 640 supports load and store operations, and arithmetic and logic binary operators including and, or, xor, neg, add, compare, inline rotate and mask operations. Constants, or immediates, can be substituted for register values in places.
Once PLP 530 completes its operation, the contents of register file 610 are transferred to CAM lookup handler 540. CAM lookup handler 540 takes a snapshot copy of all the PLP registers and submits these values to initiate one or more CAM look-up requests via CAM interface 545. With CAM lookup handler 540 controlling CAM lookup operations, PLP 530 can begin to work on another packet. When the CAM returns the lookup results, the context is transferred to a PRAM lookup handler 550.
Like CAM lookup handler 540, PRAM lookup handler 550 is also a placeholder. Specifically, PRAM lookup handler 550 maintains the packet contexts while PRAM lookups are performed. CAM handler 540 and PRAM lookup handler 550 allow a pipelined operation in the units of packet evaluation circuit 500, so that useful work (instead of stalling) is carried out while the memory accesses (e.g., such as PRAM data transfers) are performed. PRAM lookups are submitted to the PRAM via PRAM interface 555. After PRAM lookups are complete, further packet processing may be performed in packet evaluation block 590.
In most packet types, CAM lookups are carried out for the destination address and the source address. Additional lookups may be carried out for some packet types. For example, if the packet type is IPv4 or IPX, another CAM lookup (for level 3, or network layer routing information) may be done. If the packet type is IPv4, a level 4 or session lookup may also be carried out. After a successful CAM lookup, a PRAM lookup may be performed to obtain additional information used in packet forwarding. During the CAM and PRAM lookups, a number of status word flags may be set up, as an aid to software packet forwarding, hardware packet forwarding, or both. For some packet forwarding, the destination address may be replaced, or the packet header may be modified, or both in order to support hardware packet routing.
Received IRAM port handler 580 transfers data in received packet data FIFO 560 to received IRAM accumulator block 570, which is then provided to IRAM 120 (
Referring again to
In one embodiment, packet routing circuit 420 implements queue management using, for example, FIFO memories. For example, a FIFO memory may be configured to store data subsequent to the packet polling logic circuit, and to provide an asynchronous boundary between received packet processing in packet routing circuit 420 and IRAM 450 of IRAM 420 (
Buffer manager controller 440 handles transmit port queuing and rate shaping of the packet data streams. In one embodiment, buffer manager controller 440 receives RXDONE messages from port and backplane logic blocks, each indicating a complete packet evaluation. Buffer manager controller 440 extracts the packet's forwarding identifier (FID) and requests a lookup from IRAM interface 450. IRAM interface 450 may be separate from packet routing circuit 420 or may be implemented elsewhere in the switch or router. In some embodiments, buffer manager controller 440 is configured to perform source port suppression or to merge CPU and monitor masks. Buffer manager controller 440 may then add packets to individual port queues at, for example, 22 million packets per second (Mpps). In some embodiments, buffer manager controller 440 also directs port transmit activity. For example, buffer manager controller 440 may explicitly informs IRAM interface 450 to send packets in a particular buffer pool data to particular ports, such as ports 485 of
In some embodiments, buffer manager controller 440 may support input rate shaping. Input rate shaping allows for a large number of different traffic classes to be defined and independently controlled based on programmable bandwidth limits. For example, Table 1 shows three modes of operation for an embodiment incorporating input rate shaping.
A number of parameters I, V, C, B and T are used to configure and control the input rate shaping for each class. Interval time I is the amount of time between the adding of credits for each traffic (rate shape) class. According to one embodiment of the invention, a single interval time applies to all traffic classes. In that embodiment, the selected interval period spans the entire range of traffic patterns to shape. In one embodiment, a maximum value of the interval time may be 19.66 ms, while a minimum value, which may be a default, may be chosen as 19.2 μs. Credit value V equals to the number of bytes each credit represents. According to one embodiment of the invention, a single credit value applies to all traffic classes and may have values ranging from 32 to 256 bytes per credit, in powers of 2. Credit per interval C is the amount of credit to give at the end of each interval time. Credit per interval C may be programmed to be different for each traffic class. Credits may be added to a class in two ways: fixed mode, where the programmed credit is stored in a rate shaper counter which is decremented as packets arrive, or accumulate mode, where the programmed credit is added to any credit that was left over from the previous interval. According to an embodiment of the invention, credit per interval C may range from 0 to 4096 in powers of 2. Maximum burst B sets the maximum number of credits that can be accumulated for a port operating in the accumulate mode described above. In effect, it sets a maximum burst value when a port goes from idle to sending packets. According to one embodiment of the invention, the maximum burst may be programmed individually for each traffic class and may range from 0 to 4096 in powers of 2. Credit total T is a counter per port which keeps track of the current amount of credit the port has for packets to pass and, in one embodiment, may range from 0 to 4096 in powers of 2.
According to an embodiment, at the end of each interval time I, the input rate shaper scans through all 128 traffic classes and either add (accumulate mode) or store (fixed mode) programmed credit C into a counter for each class. Total credit T in the counter cannot exceed maximum burst B. As packets arrive for a given class, the input rate shaper divides the packet length by credit value V, deducts the quotient from total credit T in the counter for that class—if total credit T is greater than the quotient—and allows the packet to be forwarded. Otherwise, the packet is dropped and not counted.
According to some embodiments, buffer manager controller 440 may support output rate shaping in a similar fashion.
In one embodiment, IRAM interface block 450, which accepts data transfer requests from six sources and performs data transfers using a time slot driven rotation, provides access to a wide high bandwidth memory pool in IRAM 120. The six sources are, respectively, (1) a port received packet path request, where data and address are provided by a port received block; (2) a backplane received packet path request, where data and address are provided by the backplane received block; (3) a buffer manager circuitry FID lookup, where a target FID is provided by the buffer manager circuitry; (4) a buffer manager controller port transmission request, where the buffer pool address and destination backplane slot are provided by the buffer manager circuitry; (5) a CPU read, where the buffer pool address is provided by a command bus interface, and (6) a CPU write request, where the data and address are provided by a command bus interface. CPU operations over a command bus interface may be pipelined.
Backplane receive interface circuitry 445 receives packets from the backplane and routes them to IRAM interface 450 and packet routing circuit 420.
The processing of transmit packets is simpler than that of received packets, since there are no CAM or PRAM lookups to perform. According to an embodiment of the invention, transmit packet processing circuit 480 of
Once the packet header has been processed it is passed to transmit interface circuit 485. Transmit interface circuit 485 may be a MAC interface controller for transmission to an external MAC. Packets may be transmitted to a backplane of a switch or a router via backplane transmit interface circuit 470 (
According to some embodiments, an integrated port controller such as ASIC 100 of
According to some embodiments, ASIC 100 has an internal VLAN table. L2 VLAN lookups are performed from the internal table. The VLAN lookup can override, for example, the default FID, the QOS (Quality of Service) index, and enforce per-port VLAN blocking.
Packet Priority HandlingA network device such as router 10 of
In step 760, the highest of the applicable priorities is selected. The highest priority may be the port default priority, the VLAN priority, or the priority in the TOS field.
In step 770, the PRAM produces a 3-bit merge value. In step 780, a resulting packet priority is determined from the 3-bit merge value and the 2-bit priority from step 760. Table 2 below lists the results obtained for different merge values.
According to an embodiment of the invention, a network device such as router 10 of
A network device such as router 10 of
In addition to the RD adjustment based on packet address and packet type, FID adjustment to support trunking can also be based on the physical port number. In one embodiment, selected bits (e.g., bits [4:1]) of the physical port number can be used to modify the FID by an logical 'OR. Alternatively, masked source port suppression on a per-port basis allows portions of the port number to be ignored during segment filtering. Packets arriving from any of the trunked ports segment filters to the same destination.
Statistical Packet SamplingA network device such as router 10 of
According to some embodiments, an integrated port controller such as ASIC 100 described above may be used with an interface adapter (IA), which is implemented in an integrated circuit such as an ASIC 800 shown in
An interface adapter such as ASIC 800 may be used to transmit data when more than one integrated port controller such as ASIC 100 of
An integrated port controller receive interface block 810 interfaces with an integrated port controller such as ASIC 100 of
Similarly, an integrated port controller transmit interface block 820 interfaces with an integrated port controller such as ASIC 100 of
Backplane transmit interface block 830 interfaces with a backplane on a network device such as router 10 of
Similarly, a backplane receive interface block 840 interfaces with a backplane on a network device such as router 10 of
Interface adapter 800 includes a buffer manager 850. Buffer manager 850 manages one or more buffers, which receive incoming data from the backplane. According to an embodiment, buffer manager 850 manages buffers that are 256 bytes wide and support 512 KB of data.
Buffers are allocated using a free buffer list. According to an embodiment, the free buffer list is a 2048-entry circular queue initialized by software during a software reset initialization. Buffer manager 850 allocates a new buffer when the start of a packet is detected from any backplane slot, and when the first bytes arrive from a slot needing another buffer to accommodate the remaining portion of the packet. When a buffer is full, or an end of packet is detected, the header queues corresponding to that packet are updated, as is information in the usage buffer. According to an embodiment, the usage buffer is 2 K by 4 bits, where the 4 bits each correspond to an integrated port controller that the buffer contents may be sent to. When the header queue is updated, the buffer entry in the usage buffer is updated with information from an FID RAM, indicating which integrated port controller the buffer contents will be sent to.
Buffer manager 850 controls the header queues. According to an embodiment, there are 28 header queues, each corresponding to a combination including one of seven backplane source slots and one of four integrated port controllers. Each of the 28 header queues contains 1024 entries. When a header queue fills up, buffer manager 850 sends a hold request to the corresponding backplane slot. A header queue entry is updated when a buffer fills up or when an end of packet is detected.
Backplane RAM Control Interface Block and Backplane Data RAMAccording to an embodiment, a backplane RAM control interface block 860 provides an interface to a backplane data RAM 870. Data arrives from the backplane during each cycle. Backplane receive interface block 840 packs two 64-bit data blocks to form a line, which is written to backplane data RAM 870. The data, as well as an address, are sent to backplane data RAM 870. According to an embodiment, this write request is considered the highest request and the controller guarantees that the request is honored every time. A FIFO is not used between backplane receive interface block 840 and backplane RAM control interface block 860, since the write requests are always honored and never delayed or dropped. Data received from the backplane is stored in one or more backplane queues 880.
Backplane RAM control interface block 860 is also responsible for interfacing with the read queues which contain addresses from which to read data and place in queues going to integrated port controller transmit interface blocks 820. Buffer manager 850 provides source slot number and header information corresponding to the data to be read from integrated port controller transmit interface block 820 to the backplane RAM control interface block 860. Unlike write requests, read requests are arbitrated in a round-robin scheme. When no data is being sent from the backplane, all of the bandwidth is available to process read requests.
CPU InterfaceInterface adapter 800 may interface with a CPU such as CPU 300 of
While particular embodiments of the present invention have been shown and described, it will be obvious to those skilled in the art that changes and modifications may be made without departing from this invention in its broader aspects and, therefore, the appended claims are to encompass within their scope all such changes and modifications as fall within the true spirit and scope of this invention.
Claims
1. The network device of claim 38 wherein the programmable processor is a RISC processor.
2. The network device of claim 38, wherein the CAM is searched to determine forwarding information for the packet.
3. (canceled)
4. The network device of claim 38, wherein the integrated circuit further comprises a CAM lookup handler configured to submit a lookup request to the CAM using the lookup target stored in the at least one register in the plurality of registers.
5. The network device of claim 38, wherein the integrated circuit further comprises a parameter memory handler, configured to access a set of parameters from a parameter memory.
6. The network device of claim 5, wherein the set of parameters are selected from a group consisting of routing parameters and switching parameters.
7. The network device of claim 38, wherein the integrated circuit is configured to perform packet processing using results of the lookup in the CAM.
8. The network device of claim 5, wherein the integrated circuit is configured to perform packet processing using values of said set of parameters.
9. The network device of claim 38, wherein the integrated circuit is further configured to identify a valid packet context.
10. The network device of claim 38, wherein the integrated circuit is further configured to remove a VLAN tag from a header of the packet.
11. The network device of claim 10, wherein the integrated circuit is further configured to copy said VLAN tag to a packet status word.
12. The network device of claim 38, wherein the integrated circuit is further configured to perform type of service (TOS) field lookups.
13. The network device of claim 38, wherein the programmable processor is configured to determine information for forwarding the packet based upon a header of the packet.
14. (canceled)
15. The network device of claim 38, further comprising:
- a media access controller (MAC) coupled with the integrated circuit; and
- a register for storing a status bit, the status bit being set when a destination address (DA) specified in the packet matches a MAC address.
16. The network device of claim 15 further comprising a host interface circuit to a host central processing unit, wherein when the status bit is set, the packet is routed to the host central processing unit over the host interface circuit.
17-37. (canceled)
38. A network device comprising:
- a content addressable memory (CAM); and
- an integrated circuit separate from the CAM, the integrated circuit comprising: a programmable processor comprising a plurality of registers and a random access memory (RAM), the programmable processor operating under control of a program; and
- wherein the programmable processor is configured to form a lookup target in at least one register in the plurality of registers based upon contents of a packet received by the network device;
- wherein the integrated circuit is configured to perform a lookup in the CAM using the lookup target;
- wherein the CAM is separate from the programmable processor.
39. The network device of claim 38 wherein the programmable processor further comprises a unit configured to perform arithmetic or logic operations on one or more values stored in one or more registers from the plurality of registers to generate a result that is stored in the at least one register and used for performing a lookup in the CAM.
40-41. (canceled)
42. The network device of claim 38 wherein the integrated circuit is an application specific integrated circuit (ASIC).
43. The network device of claim 38 wherein the integrated circuit is implemented in a programmable logic device.
44. A system comprising:
- a content addressable memory (CAM); and
- an integrated circuit separate from the CAM, the integrated circuit comprising: a programmable processor comprising a plurality of registers and an arithmetic logic unit (ALU); and
- wherein the programmable processor is configured to form a lookup target in at least one register in the plurality of registers based upon contents of a packet received by the system;
- wherein the integrated circuit is configured to perform a lookup in the CAM using the lookup target;
- wherein the CAM is separate from the programmable processor.
45. The system of claim 44 wherein the programmable processor further comprises a register select block configured to choose a register from the plurality of registers whose contents are to be sent to the ALU as operands.
Type: Application
Filed: May 6, 2002
Publication Date: Jun 21, 2012
Inventor: Ian Edward Davis (Fremont, CA)
Application Number: 10/140,751
International Classification: H04L 12/56 (20060101);