WO1999059078A9 - Digital communications processor - Google Patents
Digital communications processorInfo
- Publication number
- WO1999059078A9 WO1999059078A9 PCT/US1999/010002 US9910002W WO9959078A9 WO 1999059078 A9 WO1999059078 A9 WO 1999059078A9 US 9910002 W US9910002 W US 9910002W WO 9959078 A9 WO9959078 A9 WO 9959078A9
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- processor
- data stream
- data
- packet
- processors
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/50—Circuit switching systems, i.e. systems in which the path is physically permanent during the communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
Definitions
- the invention concerns digital packet networks generally and more particularly concerns the switches used in such networks.
- FIG. 1 Description of the prior art: FIG. 1
- a packet is shown at 113 in Fig. 1.
- a packet is simply a sequence of bits whose meaning is determined by a protocol. The protocol defines how the digital devices which process the packet are to interpret the bits in the packet. Regardless of protocol, most packets have a header 115, which indicates how that particular packet is to be processed according to the protocol, and a payload 117, which is the actual information being communicated by the packet.
- a packet may also have a trailer 119, which may simply indicate the end of the packet, but may also contain information which permits detection and/or correction of errors that have occurred during transmission or processing of the packet.
- a packet may have a fixed length or a varying length.
- protocol data the contents of the header 115 and trailer 119
- payload data the contents of payload 117
- Packets for certain protocols are often termed frames or cells.
- IP packet 121 is a packet which is interpreted according to the IP protocol. IP packets 121 have an IP header 123 and a varying-length IP payload 125. Included in the information in IP header 123 is the length of IP payload 125.
- IP packet 121 When IP packet 121 is transported across a physical network, it is carried in the payload of a stream 135 of transport packets 127. Each transport packet 127 has its own header 129, payload 131, and trailer 133. What are termed transport packets herein are packets at the link layer of the ISO seven-layer model. Transport packets may have fixed or varying lengths, depending on the protocol used in the link layer.
- IP payload 125 may be a packet for another, still higher level. For example, it may be a packet destined for a decrypter, and the payload of that packet may be an encrypted IP packet 121.
- the component that deals with IP packet 121 passes the payload to the decrypter, which decrypts the encrypted IP packet 121 and returns the decrypted IP packet to the component that deals with IP packets for further processing. That processing may of course include sending the decrypted IP packet to another destination, and if communication with that destination is via the protocol for transport packets 127, the component that deals with IP packets will provide the decrypted IP packet to the component that produces transport packet streams and the decrypted IP packet will be carried in the payload of the transport packets 127.
- the packets When packets are used to communicate between digital systems that are located remotely from each other, the packets move on digital networks that connect the systems.
- the digital network may employ any medium to transmit a signal between two devices, for example, the ether, a conducting wire, or an optical cable.
- Packets are routed among transmission paths by packet switches.
- the packet switch routes the packet according to information that is typically contained in the packet header.
- each kind of protocol has its own routing rules.
- the IP protocol uses logical routing; each source or destination of an IP packet has a logical IP address, and an IP packet intended for a given destination has that destination's logical IP address in its header.
- the header does not indicate the physical location of the destination.
- IP packet switch must translate the IP address into a physical address that will get the packet at least part of the way to its destination and must also make a stream 135 of transport packets directed to that physical address that carry the IP packet as their payload 131.
- IP node 109(n) is on Ethernet node 107(n) on Ethernet LAN 105(a) and an IP packet switch that is connected to LAN 105(a) must respond to an IP packet addressed to IP node 109(n) by making a stream of Ethernet packets directed to Ethernet node 107(n) that carry the IP packet as their payload.
- a typical packet switch is shown at 101.
- Packet switch 101 is connected to a number of physical media 106, by means of which packet switch 101 may receive and transmit data.
- Examples of such media may be fiber optic cables or cables made up of electrical conductors.
- Each such medium 106 has its own protocol for defining the data sent via the medium; for example, one widely-used protocol for sending data via an optical cable is the SONET protocol.
- media 106(a..m) are optical cables using the SONET protocol
- media 106(n..z) are electrical cables.
- Packets at the level of the medium termed herein medium packets, have as their payload transport packets. In terms of the ISO 7-layer model, the medium packets are physical-layer packets.
- the transport packets that are sent and received on the optical cables are packets made according to the ATM protocol used in ATM wide-area network 111, while the transport packets that are sent and received on the electrical cables are made according to the EthernetTM protocol used in local area networks 109.
- the transport packets have IP packets as their payloads, and in those cases, packet switch 103 routes the IP packets to IP nodes 109. As described above, it does so by determining the medium 106(i) upon which the IP packet should move to reach its destination and then making a stream of packets according to the protocol required for the medium that have the transport packet stream used with that medium as their payloads, and these in turn have the IP packet as their payload.
- packet switch 103 receives an IP packet from WAN 111 that is directed to IP node 109(n) and IP node 109(n) is in Ethernet node 107(n) on Ethernet LAN 105(a), packet switch 103 must make a stream of packets in the form required by medium 106(n) whose payload is a stream of Ethernet packets directed to Ethernet node 107(n) that in turn carry the IP packet as their payload.
- Switch 103 must thus be able to do the following: • Read incoming streams of packets that have the form required by the input medium's protocol and retrieve the transport packets that are their payloads and the other kinds of packets that are the transport packets' payloads;
- Such routing may require translation from one kind of transport packet to another kind of transport packet. For example, if an IP packet comes in from ATM WAN 111 and has as its destination Ethernet node 109(n) in Ethernet LAN 105(a), packet switch 103 must extract the IP packet from the payloads of the ATM transport packets and then put it into the payloads of Ethernet packets directed to Ethernet node 107(n).
- Packet switch 103 is shown here as being at the boundary between a private network 104 and a public network 102.
- the header of each IP packet 121 contains the source IP address and destination IP address for the packet, and the security policies of private network 104 bar access by IP packets from public network 102 with certain source addresses to private network 104 and also bar access by packets from private network 104 with certain source addresses to public network 102.
- Switch 103 filters each incoming IP packet by comparing its source address with a list of source addresses which are to be barred, and if the incoming packet is on the list, it is discarded.
- Switch 103 filters outgoing packets in a similar fashion.
- packet switch 103 may receive an IP packet from public network 102 whose payload is an encrypted IP packet destined for an IP address in private network 104. In such a case, packet switch 103 will take the encrypted IP packet, decrypt it, and then send it on to its destination in private network 104.
- packet switch 103 may receive an IP packet which will be sent to a destination belonging to private network 104 via public network 102 and may encrypt the IP packet and place it as payload in another IP packet before sending the other IP packet via public network 102.
- a packet switch must perform complex actions such as locating payload in incoming packet streams and producing outgoing packet streams, routing at the transport level and higher, translation of information in packets, filtering, and encryption/decryption. The packet switch must do these actions both quickly and with high throughput.
- the packet switch must also be able to handle classes of service ranging from services such as e-mail where all that is required is that the e-mail arrive at a reasonable time (measured in hours) after it has been posted through services such as digital TV, in which the packets must arrive at their destination within fixed time intervals of each other, to packet telephony, where there are strict constraints not only on the time intervals between packets, but also on the total length of time it takes a packet to traverse the network from its source to its destination.
- services such as e-mail where all that is required is that the e-mail arrive at a reasonable time (measured in hours) after it has been posted through services such as digital TV, in which the packets must arrive at their destination within fixed time intervals of each other, to packet telephony, where there are strict constraints not only on the time intervals between packets, but also on the total length of time it takes a packet to traverse the network from its source to its destination.
- High-speed packet switches have thus been based on special-purpose hardware. As one would expect, such packet switches have been fast, have had high throughput, and have been able to satisfy timing constraints, but they have also been expensive, inflexible, and unable to perform complex functions such as filtering or encryption/decryption. Moreover, each kind of transport protocol has required its own special hardware, and for that reason, a change in the transport protocols used in a high-speed switch has required that the switch's special-purpose hardware be changed. Lower-speed packet switches have been based on programmable processors. Again, as one would expect, these switches have been relatively cheap to begin with, have been able to perform functions of any desired complexity, and need only to be reprogrammed to deal with changes in transport or other protocols. Packet switches based on programmable processors have not, however, had the speed, throughput, or ability to satisfy time constraints found in packet switches made with special-purpose hardware.
- packet switches that have the flexibility, low cost, and ability to perform complex functions characteristic of packet switches based on programmable processors, but are also able to satisfy time constraints and to provide high speed and high throughput. It is an object of the digital communications processor described herein to provide such packet switches.
- the invention overcomes the foregoing problems of packet switches and of devices in general which process streams of data by providing an integrated circuit which includes a number of data stream processors, a stream context processor, a queue manager, and a buffer manager.
- a data stream processor that is receiving a data stream extracts control information from the data stream, provides it to the context processor to be interpreted as required by the data stream's context, and uses the result provided by the context processor to process the data stream.
- the data stream processor provides the payload from the incoming data stream to the buffer manager for storage in a buffer and sends an enqueue command to the queue manager.
- the enqueue command includes a descriptor including at least a tag identifying the buffer and a queue specifier for a queue which is being read by the data stream processor that is transmitting the data stream.
- the queue manager enqueues the descriptor on the proper queue.
- the transmitting data stream processor When the transmitting data stream processor dequeues the descriptor from the queue, it uses the tag to fetch the payload from the buffer and makes an output data stream using the payload, adding control information as required for the output data stream.
- the descriptor is completely defined by the program running on the data stream processor, and consequently, the queue manager provides a general mechanism for passing information in an ordered manner between a receiving data stream processor and a transmitting data stream processor.
- a data stream processor includes a receive processor, a transmit processor, a control data processor, local memory, and a DMA engine which provides DMA access between the receive processor, the transmit processor, and the buffer manager as well as between the local memory and the buffer manager.
- the local memory belonging to each of the data stream processors, as well as local memory belonging to the buffer manager and the queue manager are all part of a single global address space and may be read or written by any device which has access to the global address space.
- the receive processor and the control data processor cooperate to process the stream as follows: the transmit processor receives the stream, extracts the control information from the stream and passes it to the control data processor, and DMAs the payload to the buffer manager.
- the control data processor uses the context processor to process any context information for the portion that has been DMA'd and sends an enqueue command with the descriptor for the DMA'd payload to the queue manager.
- a data structure called a data scope simplifies the exchange of information between the control data processor and the receive processor. The interaction between the transmit processor and the control data processor is substantially the same, but with the payload moving in the reverse direction.
- the data stream processors include serial data stream processors and at least one parallel data stream processor.
- the parallel data stream processor may be used to connect the integrated circuit to another integrated circuit of the same type, to a bus, or to a switching fabric.
- serial data processors are highly configurable. Configuration is done by means of registers in the global address space. Each serial data processor may receive and/or transmit separate data streams or groups of serial data processors may be aggregated to cooperate in processing one data stream.
- the I/O pins of a serial data processor may be configured to meet the electrical requirements of different physical media and may also be configured such that all of the serial data processors in an aggregation receive the same input.
- Various devices within a receive processor or a transmit processor may be enabled or disabled as required to deal with the particular kind of serial input stream being received or transmitted and the receive or transmit processor may also recirculate a data stream it has already processed.
- FIG. 1 is a block diagram of a packet switch in a network
- FIG. 2 is a high-level block diagram of a packet switch that includes the digital signal processor of the invention
- FIG. 3 is a high-level block diagram of the digital communications processor of the invention.
- FIG. 4 is a high-level block diagram of a channel processor in the digital communications processor
- FIG. 5 is a map of global address space
- FIG. 6 is a map of a channel processor's local memory
- FIG. 7 is a flowchart of the processing of packets received in a channel processor
- FIG. 8 is a flowchart of the processing of packets output by a channel processor
- FIG. 9 shows receive and transmit data scopes
- FIG. 10 is a detailed block diagram of a receive processor 421 ;
- FIG. 11 is a block diagram of a receive byte processor;
- FIG. 12 is a detailed block diagram of a transmit processor 427
- FIG. 13 is a block diagram of a cluster of channel processors
- FIG. 14 is a block diagram of local and shared memory for a cluster of channel processors;
- FIG. 15 is a block diagram of execute processor 313;
- FIG. 16 is a block diagram of fabric processor 303
- FIG. 17 is a detailed block diagram of the Rx and Tx fabric data processors
- FIG. 18 shows a switch made by connecting two DCPs together
- FIG. 19 shows a switch made by connecting multiple DCPs to a switching fabric
- FIG. 20 shows how a switch may be made by connecting a DCP and another type of digital switching logic to a switching fabric
- FIG. 21 shows details of table memory 207 in a preferred embodiment
- FIG. 22 shows the internal architecture of TLE 301;
- FIG. 23 shows details of register store 2205 and control store 2215;
- FIG. 24 shows the commands executed by TLE 301
- FIG. 25 shows how a receiving channel processor 307(i) and a transmitting channel processor 307(j) cooperate to switch a sequence of transport packets
- FIG. 26 is an example of aggregation of RxSDPs 421 in a cluster
- FIG. 27 is an example of aggregation of TxSDPs 427 in a cluster
- FIG. 28 shows a ring bus message
- FIG. 29 shows the channel processor interface to QME 305
- FIG. 30 shows the queue commands employed in a preferred embodiment
- FIG. 31 shows the queue data structures in a preferred embodiment
- FIG. 32 shows multicast data structures in a preferred embodiment
- FIG. 33 is a detail of MCL 3123 in a preferred embodiment
- FIG. 34 shows various configurations for managing queues
- FIG. 35 shows QME 305's expansion interface
- FIG. 36 shows details of the scheduler expansion interface
- FIG. 37 shows timing for messages on the scheduler interface
- FIG. 38 is a logical overview of buffer management
- FIG. 39 shows details of BME 305's commands
- FIG. 40 shows details of the hardware of BME 305;
- FIG. 41 shows details of the contents of SDRAM 229;
- FIG. 42 shows details of the ring bus node interface
- FIG. 43 shows a bus structure upon which global bus 319 and payload bus 317 are implemented
- FIG. 44 shows long and short operations on the bus structure of FIG. 43;
- FIG. 45 shows details of the implementation of global bus 319 and payload bus 317;
- FIG. 46 shows details of various configurations of configurable pin logic 443.
- FIG. 47 shows the registers used to configure the pins and the receive and transmit processors.
- Reference numbers in the drawing have three or more digits: the two right-hand digits are reference numbers in the drawing indicated by the remaining digits. Thus, an item with the reference number 203 first appears as item 203 in FIG. 2.
- FIG. 2 A digital packet switch that includes the digital communications processor: FIG. 2
- FIG. 2 is a block diagram of a packet switch 201 that is built using a digital communications processor integrated circuit 203 which implements the digital communications processor of the invention.
- Integrated circuit 201 has interfaces for the following external devices:
- digital communications processor 203 may be programmed so that the serial inputs and outputs in a single DCP 203 may be used for many different medium and transport protocols. If the network(s) in which the DCP 203 is being used change, the DCP 203 may be reprogrammed to deal with the new network arrangements. High-speed protocols may be handled by connecting several serial inputs or outputs to the transmission medium for the high-speed protocol.
- the medium and transport protocols include 10Mb Ethernet; 100Mb Ethernet; 1Gb Ethernet; Tl/El interface; • T3/E3 interface;
- DCP 203 receives medium packets in the inputs 204 and outputs medium packets from the outputs 206. What happens between the time a medium packet is received at an input 204 and transmitted at an output 206 depends on how the DCP has been programmed.
- the ways in which DCP 203 is programmable include the following: • each input has a receive processor and each output has a transmit processor; these processors may be individually programmed to deal with different types of medium packets, transport packets, and packets that are payloads of transport packets;
- the information passed from a packet source to a packet destination is programmable, as is the manner in which it is interpreted at the destination.
- DCP 203 is programmed to operate as follows: As each medium packet is received in an input 204, DCP 203 stores data from the medium packet's payload in a buffer 231 in buffer memory 229; This stored data is termed herein a protocol data unit or PDU; in many cases, the PDU will be a transport packet that is part of the medium packet's payload. When a medium packet is output, DCP 203 retrieves the PDU from a buffer 231 , makes any necessary modifications in it (for example, changing routing information in the transport packet or changing the kind of transport packet), and adds the protocol data for the medium packet.
- PDU protocol data unit
- DCP 203 routes transport and higher-level packets using translation tables 209 in translation table memory 207. Once the packet is routed, DCP 203 places a descriptor 217 for the buffer 231 that contains the PDU for the packet at the tail of a queue 215 in queue memory 213 for the output 206 from which the packet is to be output. In general, each queue 215 is associated with a single output 206, but packets received at an input 204 may be placed at the tail of any queue 215, thus permitting packets received at one input 204 to be output via a number of outputs 206. A packet may also be multicast, that is, enqueued on more than one queue 215.
- DCP 203 then takes descriptors 217 from the head of a queue associated with an output 206 and outputs the contents of buffer 231 identified by the descriptor to the queue's output 206.
- DCP 203 may also receive packet data from and provide the packet data to an optional digital switching fabric, as shown at 221.
- the switching fabric may be another packet switch like packet switch 201, or it may be any other device which is capable of routing streams of digital data.
- packet switch 201 may be connected with other packet switches to a crossbar switch or even to a bus. Routing of packet data received from or output to interface 221 is essentially as described above for packets received in a serial input 204.
- DCP 203 may receive packet data from and provide packet data to optional host 227 via PCI bus 225.
- External control interfaces include GPIO interface 223 and PCI bus interface 225.
- GPIO interface 223 is a utility interface for monitoring and control of external system elements such as LEDs, nonvolatile memory, physical layer serial transmission and receiving components, and power supplies.
- PCI bus interface 225 communicates between DCP 203 and a host processor which may control switching system 201 and which may also perform higher-level operations such as access checking on packet contents received in system 201.
- serial input 204(i) of serial pair 205(i) is receiving a stream of SONET packets that have as their payload a stream of ATM transport packets.
- the ATM transport packets have as their payload an IP packet directed to IP node 109(n), which is on a device 107(n) attached to Ethernet LAN 105(a).
- Ethernet LAN 105(a) is connected to serial output 206(j) of serial pair 205(j)- Since packet switch 201 is being used to route IP packets, DCP 203 has been programmed to scan incoming transport packets on serial input 204(i) for payloads containing headers for IP packets. When an IP packet header is found, DCP 203 begins directing the payload from the ATM transport packets to a buffer 231 in buffer memory 229 that is specified by a buffer tag 233. If the IP packet is longer than the buffer, additional buffers are employed.
- DCP 203 processes information in the IP packet's header to determine how the IP packet is to be routed and then routes the IP packet.
- the processing of the header information is done using the translation tables in translation table memory 207.
- two translations have to be made: the IP destination address in the header of the IP packet has to be translated into the Ethernet address of device 107(n) at which the IP node with the destination address is located and the Ethernet address of device 107(n) has to be translated into an identifier for the queue in queue memory 213 from which serial output 206(j) is outpurting Ethernet packets.
- the translation table entry 211(i) for one of these, the translation from IP destination address (IP A) to Ethernet address (ENA) is shown in translation table 209(a).
- DCP 203 uses the information from the IP packet's header and the translation table(s) 209 to make a descriptor 207 for the IP packet. Included in the descriptor are the Ethernet address and the buffer tag 233 for the buffer 231 that contains the packet. DCP 203 then puts the descriptor 207 on the tail 221 of queue 215(j) for packets being output from serial output 206(j). When descriptor 207 reaches the head of queue 215(j), DCP 203 fetches the contents of the buffer 231 that contains the transport packets and makes the content into a stream of packets having the medium protocol proper for serial output 206(j). These medium packets have as their payload Ethernet transport packets. Using information descriptor 207, DCP 203 gives the Ethernet transport packets the Ethernet address of device 107(n). The payload for the Ethernet transport packets in turn is the IP packet stored in the buffer specified by the buffer tag.
- DCP 203 is of course performing the operations described above or variations on them simultaneously for up to 16 serial streams of incoming and 16 streams of outgoing transport packets and in some cases is at the same time transferring streams of data between itself and a digital switch at interface 221 and/or between itself an external host 227 via PCI interface 227. Moreover, as explained above, in many cases, the packet switching operations are governed by strict timing constraints. As will be explained in more detail in the following, a key element in the design of DCP 203 is providing data paths and memory structures inside DCP 203 that have the speed and latency properties necessary for the kind of operation that has just been described.
- FIG. 3 is a high-level block diagram of the internal structure of DCP 203. Components of FIG. 2 that appear in FIG. 3 have the reference numbers they bore in FIG. 2. Beginning with the serial inputs and outputs 205 upon which transport packets are sent and received, each serial pair 205 is connected to its own programmable channel processor 307, which processes the serial input from and serial output to the pair. There are thus 16 channel processors 307 in the preferred embodiment. For very high-speed transport protocols, up to 4 channel processors 307 may be combined in a channel processor cluster, as shown at 309.
- Fabric processor 303 is like the channel processors, except that it processes parallel data that it receives from and provides to interface 221.
- Table look up engine 301 does the address translation using the tables in translation table memory 207.
- Queue management engine 305 manages the queues 215 of descriptors. In some embodiments, the queues are stored in memory in DCP IC 203; in others, queue memory 213 is a separate external memory.
- Buffer management engine 315 manages the buffers 231 in buffer memory 229.
- Executive processor 313 initializes and maintains data in the other components, manages the PCI bus interface with the optional external host 227 and the GPIO interface, and performs higher-level processing where needed. Programs and data for executive processor 313 are stored in SDRAM 229.
- Executive processor 313, the channel processors 309, and fabric processor 303 all use the facilities of TLE 301, QME 305, and BME 315 to process packets and/or frames and will be collectively termed herein packet processors. It should be pointed out here, however, that a packet processor may be used to process not only packets, but any other stream of data, and could be considered a general piupose bit nybble/byte/ or (in the case of the fabric processor) 32-bit word stream processor.
- DCP 203 All of the processing components of DCP 203 are programmable.
- the channel processors 307 are individually programmable to handle different kinds of medium packets, transport packets, and transport packet payloads and fabric processor 303 is programmable to handle the data employed in the different switching devices.
- the tables in table storage 207 may be written as well as read and table lookup engine 301 may be programmed to do different kinds of lookups on the tables.
- Queue management engine 305 may be programmed to set up different numbers of queues and to use different-sized descriptors in the queues and buffer management engine 315 may be programmed to buffer pools of different sizes, with different buffer sizes within the pools.
- XP 313, finally, is a general-purpose processor and may be programmed to perform any function.
- the programs for the components are loaded when DCP 203 is initialized.
- the program code may be loaded into SDRAM 229 by external host 227 or it may be stored in an external PROM that is part of the address space managed by BME 315. In either case, XP 313 loads the code into the components' memories.
- the bus and memory structure of digital communications processor 203 make it possible for DCP 203 to satisfy the speed and time constraints of packet switching while employing table lookup engine 301, queue management engine 305, and buffer management engine 315 as shared resources. All of the components of digital communications processor 203 except table look up engine 301 share a single global address space 321. Each of the packet processors has its own local memory in global address space 321 and can access the local memory of the other packet processors whose local memory belongs to global address space 321 as well as memory belonging to BME 315 and QME 305. Each of the packet processors has direct access to its own local memory and access via a 32-bit global bus 319 to the local memory of the other components. Additionally, fabric processor 303 has its own path 304 to queue management engine 305.
- FIG. 5 provides an overview of global address space 321. There is first the portion 504 of global address space that is made up of the local memories 501 of channel processors 307(0..15). Portion 504 is further subdivided into cluster memory 503 for each of the clusters 309 of channel processors. A given channel processor 307(i) has fastest access to its own local memory 501(i), next fastest access to the local memories of the other channel processors in its cluster, which together make up its cluster memory 503, and the least fast access to the remainder of global address space 321.
- the other components whose local memory is part of global address space 321 are fabric processor 303, whose local memory is seen at 505, QME 305, whose local memory is seen at 507, BME 315, whose local memory is seen at 513, and XP 313, whose local memory is seen at 517.
- the processors that share global address space can in general use global address space for inter-processor communication, for example, processors may set up semaphores in global address space to coordinate their operations. In order to make and use such semaphores, the processors in the preferred embodiment have a test-and-set-bit instruction.
- queue status information 505 in QME local memory 507 includes queue status information 505 in QME local memory 507, buffer status information 515 in buffer management engine local memory 513, and global configuration registers 519 and system interface configuration information 521 in XP local memory 517.
- QME 305 finally, writes queue status information for the queues read by a packet processor to the packet processor's local memory.
- each of the components' local memory is coupled to buffer management engine 315 by payload bus 317. It is a 128-bit wide bus that operates in fourcycle bursts to transfer up to 64 bytes of data between SDRAM 229 and the other components.
- the data transferred via payload bus 317 includes the following:
- Transfers between SDRAM 229 and the local memories are done by means of a direct memory access (DMA) mechanism.
- the component doing the transfer provides a DMA instruction for the transfer to the DMA mechanism and the DMA mechanism then performs the transfer without further intervention from the component.
- DMA direct memory access
- This arrangement permits transfers of protocol data units and other processing by a component to occur in parallel, which greatly increases the speed of operation and throughput of DCP 203.
- Ring bus 311 is 64 bits wide and is time-multiplexed among the nodes it connects. At any given moment, each of these components has between 1 and 5 ring bus slots allocated to it. Each slot can carry a 64-bit message. Because the bus is time-multiplexed among its nodes and each node has a predetermined maximum number of slots, it is possible to guarantee that a message will travel from one node to another on ring bus 311 within a fixed amount of time.
- executive processor 313 uses ring bus messages to configure and read the tables in table storage 207 and the packet processors use ring bus messages to provide information to table look up engine 301 for translation, and table look up engine 301 uses ring bus messages to provide the results of the translation to the packet processors.
- Any device coupled to ring bus 311 can send ring bus messages to and receive them from any other device coupled to ring bus 311, so in other embodiments, ring bus messages may, for example, be used to coordinate activities of the channel processors 307 making up a cluster 309. Example of cooperation of the components of DCP 203
- the stream of ATM packets is being received on input line 204(i).
- Input line 204(i) belongs to channel processor 307(i).
- channel processor 307(i) begins a series of DMA transfers that first transfer the packets to channel processor 307(i)'s local memory and then to a buffer 231 that is specified by a buffer tag 233 that is in possession of channel processor 307(i). While this is going on, channel processor 307(i) scans the payload of the ATM packets for IP packets.
- channel processor 307(i) When it finds the start of an IP packet, channel processor 307(i) extracts the destination address for the IP packet from the IP packet header and makes a message containing the destination address for table lookup engine 301. In this case, the destination address specifies IP node 109(n) on device 107(n) which is connected to Ethernet LAN 105(a). Ethernet LAN 105(a) receives packets output from serial output 2060). Channel processor 307(i) then places the message in one of its slots in ring bus 311.
- channel processor 307(i) When channel processor 307(i) receives the reply to the message with the Ethernet address of device 107(n) and the number m of the queue which is served by serial output 206(j), it makes a descriptor 217(k) which contains at least the Ethernet address and the buffer tag 233 of the buffer. Channel processor 307(i) then writes an enqueue command via payload bus 317 to a mailbox belonging to channel processor 307(i). The enqueue command includes at least the descriptor 217(k) and the queue number m. Queue management engine 305 responds to the command by placing descriptor 217(k) at the tail 221 of queue 215(m).
- Serial output 206(j) belongs to channel processor 307(j), to which queue management engine 305 provides descriptors from the head 219 of queue 215(m). It does so by writing a dequeue command specifying queue 215(m) via payload bus 317 to its mailbox. Queue management engine 305 responds to the dequeue command by providing the descriptor 217 at the head 219 of queue 215(m) to channel processor 307(j) via payload bus 317.
- channel processor 307(j) uses buffer tag 233 in descriptor 217(k) to begin a DMA transfer of the IP packet from the buffers 231 that contain it to channel processor 307(j)'s local memory.
- channel processor 307(j) makes a stream of Ethernet transport packets which are addressed to Ethernet device 107(n) and have the IP packet as their payload and outputs the stream of Ethernet packets to serial output 206(j).
- the Ethernet address in the packets of course comes from descriptor 217(k).
- the bus and memory architecture of DCP 203 permit a packet processor to do packet header processing, protocol data unit transfer, and enqueueing and dequeuing in parallel; moreover, the different buses not only provide different paths, but provide paths that meet the latency requirements of the operations that are performed over them.
- the most time-sensitive operation is the translation of information in the packet headers, since routing cannot be done until the results of the translation are available. Because every one of the packet processors has slots in ring bus 311, each packet processor has access to table lookup engine 301 within a guaranteed amount of time, and consequently, the time constraints for translation can be satisfied.
- the transfer of protocol data units between packet processors and SDRAM 229 requires high-bandwidth bursts, and exactly that is provided by the DMA transfers via payload bus 317 between the local memory and SDRAM 229.
- the transfer of buffer tags from buffer management engine 315 and a channel processor 307(i) and the transfer of descriptors between queue management engine 305 to a channel processor 307(i) are also time-critical, so they, too, are done on payload bus 317.
- the time required for such reads and writes depends on where they are in global address space. The time is least for reads and writes to a given processor's own local portion of global address space, next least for reads and writes to processors that belong to the given processor's cluster 309, and longest for reads and writes to processors that do not belong to the given processor's cluster 309.
- processors of DCP 203 except TLE 301 share global address space 321 makes interprocessor communications easy.
- executive processor 313 can initialize and/or reconfigure the other components simply by writing data to their portions of global address space 321
- a packet processor 307 can obtain status information about the queues 215 being managed by queue management engine 305, the buffers 231 being managed by buffer management engine 315, or the status of other packet processors in its cluster 309 simply by reading the status information from the portion of global address space belonging to those devices, and the processors can coordinate their behavior by means of semaphores in global address space.
- a receiving packet processor can further use global address space in some applications to write protocol data units which it receives directly to the local memory of the transmitting packet processor which is to output the protocol data unit.
- Executive processor 313 can finally use global address space to determine the status of each of the processors with which executive processor 313 shares global address space.
- fabric processor 303 has its own private access to queue management engine 305's global address space and can thus obtain queue status information without burdening global bus 319.
- each packet processor has status bits for its mailbox in QME 305 in its portion of global address space and these bits are directly wired to queue management engine 305, so that each packet processor can determine the status of its mailbox without burdening global bus 319.
- channel processors 307(0..n) in detail, then describe fabric processor 303, and finally describe executive processor 313.
- FIG. 4 is a block diagram of the components of a channel processor 307(i).
- channel processor 307(i) receives serial packet inputs via serial input 204(i), provides serial packet outputs via serial output 206(i), is connected to and has slots in ring bus 311, and is connected to payload bus 317 and global bus 319.
- Aggregation paths 433 and 435 and cluster paths 437 and 439 permit channel processor 307(i) to be aggregated with other channel processors 307 in its cluster 309 in order to handle extremely high-speed transmission media.
- channel processor 307(i) has three components: channel processor rise core (CPRC) 401, which is a general-purpose processor that controls operation of the other components and has access to global address space 321, serial data processor (SDP) 420, which does the processing involved in receiving packets from serial input 204(i) and outputting packets to serial output 206(i), and DMA engine 411, which handles data transfers via global bus 317 between channel processor 307(i) and BME 315 or QME 305.
- Both SDP 420 and CP RISC core 401 are connected via ring bus interface 415 to ring bus 311.
- SDP 420 has two subcomponents: RxSDP 421, which processes incoming packets, and TxSDP 427, which processes outgoing packets.
- CPRC 401 is a general-purpose microprocessor that employs a subset of the well-known MIPS1 instruction set. It can send and receive messages on ring bus 311 and shares two register files with SDP 420. Extract space 417 is used to store protocol data extracted from incoming packets by SDP 420 for use by CPRC 401, while merge space 419 is used to store protocol data provided by CPRC 401 to SDP 420 for use in making outgoing packets.
- CPRC has four contexts, i.e., independent sets of register files.
- CPRC 401 can switch among the contexts, either in response to a BREAK command in a program or in response to a hardware interrupt.
- the contexts are prioritized according to their number, with context 0 having the highest priority and context 3 having the lowest.
- Each context has a context entry register and a context return register; when a context is changed, the address of the next instruction to be executed in the current context is stored in the current context's context return register and execution continues with the instruction at the address stored in the new context's context entry register .
- the settings of the context entry registers for the master reset event and the debug interrupt event are system-defined; for the other events, they are programmable.
- Instruction memory 403 contains code for execution by CPRC 401. It may be read and written only by CPRC 401 and the CPRCs of the other CPs 307 in the cluster 309 to which CP 307(i) belongs.
- code is loaded into IMEM 403 as follows: first, executive processor 313 loads the code into DMEM 407 via global bus 319 and then CPRC 401 transfers the code from DMEM 407 to IMEM 403.
- DMEM 405 is channel processor 307(i)'s local data memory. It is used both for local storage by CPRC 401 and for DMAing data via payload bus 413.
- DMEM 405, extract space 417, and merge space 419 are all part of global address space 321 and are accessible to other channel processors 307 in channel processor 307(i)'s cluster 309 and to other processors in DCP 203 via global bus 317.
- the memory components in addition to DMEM 405 which implement this arrangement in a preferred embodiment are request FIFO 406, MUX 407, global bus interface 413, and payload bus interface 411.
- MUX 407 multiplexes access to DMEM 405 among RxSDP 421, TxSDP 427, payload bus interface 411, and Request FIFO 406.
- Request FIFO 406 in turn permits the other processors in CCP 203 that are coupled to global bus 319 access to DMEM 405, access by CPRC 401 to DM405 and global address space 321, and access by the other CPRCs 401 in the channel processors 307 in CP 307(i)'s cluster 309 to DMEM 405.
- Mux 407, DMEM 405, and payload bus interface 411 together make up DMA engine 441, which performs DMA operations via payload bus 317 between SRAM 229 and CPRC 401 and SDP 420.
- RxSDP 421 , TxSDP 427, and payload bus interface 411 have first priority of access to DMEM 411, while global bus interface 413, CPRC 401, and the other CPRCs 401 must contend for the remaining access.
- the arrangement thus gives first priority to DMA transfers of protocol data units between SDP 420 and DMEM 405 on the one hand and between DMEM 405 and SDRAM 229 on the other.
- RxSDP 421 is specialized for the processing of streams of incoming packets. It extracts fields containing protocol data from the incoming stream and provides the contents of a field either to ring bus 311 via ring bus interface 413 or to CPRC 401 via extract space 417. It provides the protocol data units from the packet stream via DMA transfers to DMEM 405.
- RxSDP 421 has three main subcomponents: pin logic 443, which receives the physical signals that represent the packet stream in the transmission medium, framing support processor 407, which locates the medium packets and transport packets in the packet stream, and byte processor 453, which extracts protocol information from the transport packets and their payloads while passing the transport packets on to DMEM 405 via path 425.
- pin logic 443 which receives the physical signals that represent the packet stream in the transmission medium
- framing support processor 407 which locates the medium packets and transport packets in the packet stream
- byte processor 453 which extracts protocol information from the transport packets and their payloads while passing the transport packets on to DMEM 405 via path 425.
- Byte processor 451 can place the extracted protocol information in extract space 417 and/or place it in a ring bus message via ring bus interface 415.
- TxSDP 427 is specialized for producing a stream of outgoing transport packets that carry protocol data units which TxSDP 427 obtains via DMA from DMEM 405. To do this, it merges the protocol data which CPRC 401 has placed in merge space 419 into the protocol data units.
- the components of TxSDP 427 are functionally comparable to those of RxSDP 421.
- byte processor 453 manipulates protocol data in the transport packets and their payloads
- framing support processor 449 provides the protocol information needed for the medium packets
- pin logic 445 puts the data into the form required for the physical medium to which it is being output.
- SDP 420 Further interesting features of SDP 420 are recirculation path 441 and aggregation paths 433 and 435.
- Recirculation path 441 permits packets stored in DMEM 405 to be returned to RxSDP 421 for further processing and output to DMEM 405.
- Aggregation paths 433 permits all of the RxSDPs 421 in a cluster 309 to receive the same input data and aggregation paths 435 permit TxSDP 427 to receive data for output from the TxSDPs in the other CPs 307 of the cluster to which CP 307(i) belongs.
- FIG. 25 shows how a receiving channel processor 307(i) can cooperate with a transmitting channel processor 3070) t0 receive a stream of medium packets containing a sequence of transport packets at an input 204(i) belonging to receiving channel processor 307(i) and output a sequence of medium packets containing a sequence of transport packets at an output 2060) belonging to transmitting channel processor 3070) whose payload is the payload of the transport packets received in channel processor 307(i).
- the received and transmitted medium packets and transport packets may of course belong to different protocols.
- the received medium packets are received in RxSDP 421 in channel processor 307(i).
- RxSDP 421 extracts protocol data from the transport packets and their payload to extract space 417 and DMAs protocol data units made up of the transport packets via DMEM 405 and payload bus 317 to BME 315, which places the protocol data units in buffer 231 in SDRAM 229, where the protocol data units are seen at 2503.
- CPRC 401 in channel processor 307(i) uses the protocol data to make a descriptor 217, which it forwards to QME 305 for enqueueing via payload bus 317.
- CPRC 401 sends descriptor 217 to be enqueued, CPRC 401 specifies that it be enqueued at the tail of a queue 215 whose head is being read by transmitting channel processor 3070).
- QME 305 enqueues descriptor 207 at the tail of the specified queue 215.
- channel processor 3070 When channel processor 3070) dequeues a descriptor 207 from the head of queue 215, QME 305 sends it via payload bus 317 to channel processor 3070).
- Channel processor 3070) uses descriptor 207 to make protocol data for the stream of packets that is to be output and places the protocol data in merge space 419. It then initiates a DMA operation that transfers protocol data units 2503 from buffer 231 in SDRAM 229 via pay load bus 317 and DMEM 405 to serial data processor 420. There, TxSDP 427 adds the protocol data necessary to create a stream of medium packets 2505 for output 2060) which carries the protocol data units 2503 from the packets received at 204(i).
- FIG. 6 shows local memory 501(i) for channel processor 307(i). As previously indicated, all of local memory 501(i) may be read or written by any of the components of digital communications processor 203 which share global address space 321.
- RxSDP 421 DMAs the incoming packet stream to SDRAM 229 and as it does so, extracts protocol data from the incoming packet stream and provides it to CPRC 401 for processing, while TxSDP 421 receives the outgoing protocol data unit from SDRAM 229 and as it does so, receives protocol data from CPRC 40 land places it in the proper places in the outgoing packet stream. For a given transport packet, then, the processing involves two steps. In the case of an incoming packet, they are:
- channel processor 307 In channel processor 307, these two steps are pipelined: in the case of the incoming packet stream, CPRC 401 processes the protocol data extracted from the previous protocol data unit while RxSDP 421 extracts protocol data from the packet stream and DMAs the current protocol data unit from the packet stream. Transmissions are handled the same way, with TxSDP 421 transmitting the current protocol data unit while CPRC 401 processes the protocol data to be included with the next protocol data unit.
- data scopes 625(0) and 625(1) are data structures which are visible to and accessible by CPRC 401 and which control operation of SDP 420 and the interaction between CPRC 401 and SDP 420.
- a given data scope 625(i) contains a set of data scope registers 624 and a set of flags 632(i) in datascope event registers 632.
- Data scope registers 624 are further made up of a Tx data scope 641 and an Rx data scope 643.
- Rx data scope 643 receives the protocol data extracted by RxSDP 421 from the incoming packet stream during the first step and CPRC 401 processes the protocol data in the second step; similarly, Tx data scope 643 receives the protocol data which CPRC 401 processes for the outgoing packet stream during the first step and TxSDP 427 outputs the protocol data from Tx data scope 643 during the second step.
- the data scopes 625 also provide a uniform interface for programs executing on CPRC 401 to the stream of packets currently being received by the SDP's RxSDP 421 or transmitted by TxSDP 427.
- the number of data scopes can be increased. For example, RxSDP processing that involved processing an incoming stream, storing the resulting PDU in DMEM 405, then using recirculation path 441 to again process the PDU stored in DMEM 405, and then DMAing the final PDU to SDRAM 229 might involve four data scopes.
- Programs executing on CPRC 401 determine which of the data scopes is currently being used by SDP 420. While SPD 420 is extracting protocol data to and merging protocol data from data scope 625(0), CPRC 401 is processing protocol data in data scope 621(1). When SDP 420 is done with data scope 625(0), it signals CPRC 401 and CPRC 401 sets up data scope 625(1) so that SDP 420 can begin working on it and begins working itself on data scope 621(0).
- Rx data scope 643 includes extract registers 601, which contain the protocol information extracted by RxSDP 601, RxCB 633, which contains the information necessary to DMA the packets being received by RxSDP 421 to SDRAM 229, and Rx status 635, which contains status information about RxSDP 421, including whether it is finished DMAing the packet it is working on.
- Tx data scope 641 contains analogous registers for packet transmission.
- Merge registers 603 contain the protocol data to be merged with the outgoing packets
- TxCB 633 contains the information necessary to DMA the packets being transmitted by TxSDP from SDRAM 229
- Tx status contains status information about TxSDP 427, including whether it is finished with the packet it is working on.
- Control block registers 611 are a set of four registers that control DMA transfers between CPRC 401 and SDRAM 229.
- a WrCB 610 controls DMA transfers from CPRC 401 to SDRAM 229 and a RdCB controls DMA transfers to CPRC 401.
- registers are part of ring bus interface 415. They permit RxSDP 421 and CPRC 401 to send messages on the ring bus and CPRC 401 to receive messages on the ring bus. There are 4 registers for sending messages, 8 registers for receiving replies to messages sent by CP 307(i), and a queue of registers for receiving unsolicited messages.
- This register contains the SONET overhead bits for SONET packets being output by CP 307(i).
- registers contain parameters which control the operation of RxSDP 421 and TxSDP 427 respectively.
- This register contains parameters which control operation of CP 307(i).
- This register contains parameters which control operation of SDP 420. Queue status 621
- Queue status 621 contains information about the status of channel processor 307(i)'s mailbox in QME 305 and about the status of queues being read by channel processor 307(i).
- the hardware for the register indicating the status of channel processor 307(i)'s mailbox is controlled directly by QME 305. Reading and writing the register thus does not result in traffic on global bus 319.
- QME 305 DMAs the status of the queues being read by channel processor 307(i) via payload bus 317 to DMEM 405.
- Event timer 620 This register contains an event timer that can be set and started by software executing in CPRC 401 ; when the timer expires, an event results to which CPRC 401 's event mechanism responds.
- Cycle counter register 619 contains a counter value, a clock division value, and a CC enable bit.
- CPRC 401 can set the counter value, the clock division value, and the CC enable bit.
- the clock division value specifies the rate at which the counter value increments relative to the CPRC 401's clock.
- This register contains flags that indicate whether an asynchronous event that CPRC 401 must respond to has occurred.
- a CPRC 401 can also access data in its local data memory 405 and can set up DMA transfers as described above between SDRAM 229 and local data memory 405 and between an SDP and SDRAM 229 via local memory 405.
- FIG. 7 provides an overview of how RxSDP 421 and CPRC 401 can be programmed to interact in dealing with a stream of incoming packets.
- Flowchart 701 indicates not only the actions performed, but which of RxSDP 421, CPRC 401, and QME 305 performs the actions.
- RxSDP 421(705) an incoming packet is read by RxSDP 421(705). What RxSDP 421 does with what it reads depends on the position of the material in the packet.
- RxSDP 421 There are three kinds of information RxSDP 421 has to deal with: protocol data units, protocol information that must be translated by TLE 301, and protocol information that must be processed by CPRC 401. As shown at box 707, RxSDP 421 uses DMA to transfer the protocol data unit as it reads it to SDRAM 229 via DMEM 405; as shown at 709, RxSDP 421 uses ring bus 311 to send a message to TLE 301 with the protocol information that TLE 301 must translate; as shown at 711, finally, RxSDP 421 uses extract space 601 to transfer the information that CPRC 401 needs to process the protocol information to CPRC 401.
- CPRC 401 uses the information it receives from RxSDP 421 and the reply it receives from TLE 301 in response to RxSDP 421 's message to determine what should be done with the transport packet. If the transport packet is invalid, either because its contents have been corrupted or because its payload is from a source that is filtered out by the packet switch, CPRC 401 marks the packet for discarding. In response to the mark (contained in a trailer that is added during DMA), the DMA engine stops transmitting and BME 315 frees the buffer 231 that was receiving the packet.
- CPRC 401 uses the information it has received from TLE 301 and the information in extract space 601 to determine the queue 215 that the protocol data unit from the packet is to be placed in and to make a descriptor 217 for the queue. Then, at 751, it places an enqueue command containing the descriptor and the number of the queue in which the protocol data unit is to be placed on payload bus 317.
- QME 305 responds to the enqueue command by putting the descriptor 217 in the proper queue 215.
- queues read by XP processor 313 queues read by a channel processor 307; and queues read by fabric processor 303.
- the protocol data unit corresponding to the descriptor may go to host 227; in the case of the queues read by fabric processor 303, the protocol data unit corresponding to the descriptor goes to a switch fabric.
- RxSDP 421, CPRC 401, and QME 305 are all independently-operating processors, the processing shown in flowchart 701 can be done in parallel. Pipelining with RxSDP 421 and CPRC 401 has already been explained; moreover, CPRC 401 does not have to wait for QME 305 to respond to CPRC 401 's enqueue command.
- Rx status register 635 that register indicates the state of the interaction between RxSDP 421 and CPRC 401; the register has four fields that are of interest: OWN field 935 is set by hardware; the bit indicates whether RxSDP 421 or CPRC 401 is presently using the data scope 625 to which Rx status 635 presently belongs.
- L5:L0 937 are six handshake bits that are set and reset by RxSDP 421 and CPRC 401 under program control.
- Busy 941 is set by RxSDP 941 and indicates whether RxSDP 421 is busy.
- Tx Status 639 is similar in function and contents to RxStatus 635.
- RxCB 633 governs the interaction between RxSDP 421 and DMA engine 441 during DMA of the incoming packets.
- CPRC 401 sets up RxCB 633 when it owns the data scope 625(i) to which RxCB 633 belongs and RxSDP 421 uses RxCB 633 to continue DMAing incoming packets while it and CPRC 401 are alternating ownership of data scope 625(i).
- Most of the fields in RxCB 633 contain the various kinds of addressing information needed to perform the DMAs.
- Buffer pool number 909, BTAG 933, and Offset 931 together specify the location in DRAM 229 to which DMA engine 441 is currently writing the packets received by RxSDP 421.
- DRAM 229 is divided into buffer pools.
- BTAG 933 is the buffer tag 233 for the buffer in the pool, and offset 931 is the offset in the buffer to which data is presently being written.
- DMA engine 441 writes data, it updates offset 931.
- DMEM DMA address 907 is the address of the 16-byte line of data in DMEM 405 from which DMA engine 441 is currently DMAing data to DRAM 229.
- Txrcy address 905 and Rxrcy address 903 are special addresses that RxSDP 421 uses when it is recycling data from DMEM 405.
- Txrcy address 905 specifies the DMEM 405 line to which data is currently being written by DMA engine 441 for TxSDP 427, while Rxrcy address 903 specifies the DMEM 405 line for which RxSDP 421 is currently writing data.
- the addresses thus permit RxSDP 421 to recycle packets either before they have been written to SDRAM 229 or after they have been written to SDRAM 229.
- DMEM byte address 901 is the line in DMEM 405 for which RxSDP 421 is currently writing data.
- RxDBCTL 913 contain control and status fields which govern the interaction between CPRC 401, RxSDP 421, and DMA engine 441 :
- Avail 929 indicates whether RxCB 633 is available for use;
- NR 927 indicates the number of requests that DMA engine 441 should make to transfer data to DRAM 229 before giving up on the transfer;
- Error 925 indicates whether an error has occurred during the transfer currently represented by RxCB 933;
- EOP 917 is set by RxSDP 421 when it encounters an end of packet indicator in the data to be written to the line in DMEM 405;
- Length 911 is set by RxSDP 421. It is the length of the data in the line in DMEM 405 which RxSDP 421 is writing to.
- TxCB 637 is substantially like RxCB 633, except that the DMA transfers it governs are going in the opposite direction and the fields have the meanings corresponding to that direction.
- RxSDP 421 sets OWN bit 935, L2 Done 937, or LI done 939 in Rx status register 636 or Avail bit 929 in RxCB 633, the result is an interrupt to CPRC 401; which action produced the interrupt is indicated by bits in data scope event registers 632 for the scope in which RxSDP is in when it sets the bit in question.
- the same arrangement is used for the corresponding bits in Tx data scope 641.
- CPRC 401 has set up data scope 625(0) and given ownership to RxSDP 421.
- CPRC 401 now owns data scope 625(1).
- RxSDP 421 extracts protocol data and writes it to extract space registers 601(0). It sends a message containing protocol data that requires translation to TLE 301 in Txmsg 645(0). The results of the lookup will appear in a R-xResp register 647(0,i). While this is going on, RxSDP 421 begins writing the protocol data unit to the line in DMEM 405 specified in RxCB 633(0).
- RxSDP 421 sets owner bit 935 in Rx status 635 to indicate that CPRC 401 now has ownership of data scope 625(0), sets owner bit 921 in RxCB633(0) to indicate that DMA engine 411 may now read the line it has written, and produces a signal which automatically switches RxSDP 421 to data scope 910(1).
- RxSDP 421 then examines data scope 625(l)'s owner bit 935 bit to see whether CPRC 401 still has control of it. If CPRC 401 has control, RxSDP 421 waits until CPRC 401 relinquishes control of data scope 625(1) before it begins processing the next packet. Processing is as above, except that RxSDP 421 uses the resources of data scope 625(1) instead of data scope 625(0).
- CPRC 401 processes receive data scope 625(0). It examines and/or removes the protocol data which RxSDP 421 placed in extract space registers 601(0), examines RxCB 633(0) to determine whether the DMA to SDRAM 229 finished without error and sets up RxCB 633(0) for its next use by RxSDP 421. It then uses the protocol data which RxSDP 421 placed in extract registers 601 and any translations received from TLE 301 in RxRsp structure 647(0,i) to make a descriptor for the data being written to SDRAM 229 and places the descriptor in channel processor 307's mailbox in QME 305.
- owner bit 935(0) sets owner bit 935(0) so that receive data scope 625(0) is again available to RxSDP 421. If owner bit 935(1) is set, indicating that RxSDP 421 is finished with receive data scope 625(1), CPRC 401 works on receive data scope 625(1) in the same fashion as described for receive data scope 625(0).
- FIG. 8 provides an overview of how CPRC 401 and TxSDP 429 interact in transmitting a stream of transport protocols. Transmitting is much simpler than receiving since the outgoing packets need only be assembled and transmitted, not interpreted. Most of the work on transmission is done by CPRC 401. Beginning at 803, CPRC 401 first executes loop 805; that is, it checks the queue status information it has received from QME 305 to see whether there is a descriptor in a queue 217 being read by channel processor 307(i). As indicated at 807, if there is one, CPRC 401 places a dequeue command on payload bus 317 and receives the descriptor from QME 305, also via payload bus 317.
- CPRC 401 then uses the information in the descriptor to set up merge registers 603 as required for the packets being transmitted ( 811), uses the buffer tag in the descriptor to set up registers in Tx control block register 637 to transfer the contents of the buffer from SDRAM 229 to TxSDP 427 (813), and then initiates the transfer (815).
- status 915 or EOP 917 indicate the end of the transfer
- CPRC 401 frees TxSDP 427 and the other resources involved in the transfer (817).
- TxSDP 427 and CPRC 401 alternate in the use of data scopes 625(0) and (1) in the same fashion as RxSDP 421 and CPRC 401. Since alternation between data scopes is under control of the program being executed by CPRC 401, the program can do whatever is necessary to allocate the resources represented by a data scope between TxSDP 427 and RxSDP 421.
- RxSDP 421 and TxSDP 427 provide each channel processor 307(i) with a programmable interface between serial input 204(i), serial output 206(i), and the other components of channel processor 307(i).
- a given serial input 204(i) can thus be programmed as required to deal properly with medium and transport packets belonging to given protocols and a given serial output 2040) can De programmed to output medium and transport packets belonging to given protocols.
- Each SDP 421 or 427 has its own microprogram store and independent register sets.
- FIG. 10 is a block diagram of RxSDP 421.
- the components are a sequence of processors and FIFOS that convert the serial input to parallel and process the input first at the medium packet level and then at the transport packet level or higher. Some of the processors are specialized for dealing with particular protocols.
- a bypass path may be programmed to permit data to bypass any of the processors and or FIFOs.
- the components are the following: • configurable physical logic 443, which receives serial input from the physical layer and interprets it to produce a stream of 10-bit codes.
- pin interface 204(i) which receives the 10-bit codes from the physical layer.
- • 8b/10b decode 1001 which produces bytes from the 10-bit codes received from pin logic 443; • small FIFO 1003, which is an asynchronous FIFO (queue) with different programmable write and read clocks. The write clock runs at a frequency required for the input data stream and the read clock runs at the speed of CPRC 401. In a presently-preferred embodiment, FIFO 1003 is eight 9-bit words deep. • receive bit processor 1005, which does pattern matching and field extraction on the stream of bytes it receives from small FIFO 1003, with the extracted fields going via path 1005 to extract space 417.
- receive sync processor 1009 which processes ATM cells. It finds the cell boundaries, removes the protocol data, starts a TLE operation with the protocol data, descrambles the payload, and writes the protocol data to extract space 417 via path 1019.
- large receive asynchronous FIFO 1011 which is an asynchronous FIFO. In a presently- preferred embodiment, FIFO 1011 is 64 10-bit words deep. FIFO 1011 is used mainly for staging an ATM cell while its VPI/NCI is being looked up by TLE 301 and for providing elasticity with high-speed receive packets.
- receive byte processor 1013 operates under microcode control to do pattern matching and field extraction on nine-bit words of data.
- Bypass path 1015 is implemented by means of the muxes 1002, 1006, 1014, and 1010.
- Mux 1010 also implements recirculation path 441.
- the bypass and recirculation paths are dynamically reconfigurable by setting bits in SDP mode 627. Data may be passed directly between CPRC 401 and bit processor 1005, sync processor 1009, or byte processor 1013 by means of registers in RxSDP control 613.
- channel processors 307 may be aggregated to process very highspeed streams of data.
- the aggregated channel processors operate as a pipeline, with each of the aggregated channel processors processing a portion of the data stream in turn.
- Coordination between RxSDPs 421 of an aggregation is achieved by means of token buses 1027, 1017, and 1028.
- an enabled Rx bit processor 1005 will process the incoming data stream only when it has the token provided by token bus 1004.
- token buses are necessary because the components of RxSDP 421 used to process an input stream will vary with the kind of input stream.
- FIGs. 46 and 47 Details of configurable pin logic 443: FIGs. 46 and 47
- Configurable pin logic 443 can be configured in two ways: • to provide an input stream to or receive an output stream from one, two, or four of the SDPs 420 in a cluster; and
- the first kind of configuration is one of the elements which permits aggregation of channel processors 307 in a cluster 309 for purposes of processing very high-speed input or output streams;
- the second kind of configuration permits DCP 203 to be used with different transmission media without the addition of devices external to DCP 203 to adapt signals received from the media for use by DCP 203.
- Both kinds of configuration are controlled by a registers in the channel processors' local memory. The registers may be set by the channel processor itself or by XP 313.
- FIG. 46 is a table 4601 showing how a cluster 309 in a DCP 203 may be configured to receive and produce serial data streams conforming to the RMII, OC-3, DS1, DS3, GMII, TBI, and OC-12 standards.
- Column 4603 lists the I/O pins for each of the channel processors in the cluster;
- column 4605 indicates the general purpose of the pin; thus, in each channel processor, 1/0 pins 0 and 1 are for clock signals, while the remaining pins are for data.
- column 4607 indicates how they are used in RMII; 4609 how they are used in OC-3; 4611 how they are used in DS3; 4615 how they are used in GMII when two of the channel processors in the cluster are used to receive data and two to transmit; 4617 how they are used in TBI when the channel processors are used in the same fashion; and 4619 how they are used in OC-12, where the channel processors in a cluster alternate between being transmitters and receivers.
- each I/O pin in configurable pin logic 443 has a tri-state driver, a TTL driver, and a PECL driver.
- media such as OC-3, which used PECL logic pairs of I/O pins are configured as differential pairs, as shown in column 4609.
- FIG. 47 shows pin mode register 4701 and SDP mode register 4713. Each channel processor 307 has one of each of these registers.
- Register 4701 determines how that channel processor's I/O pins are configured.
- Data Cnfg bits 4703 are four bits that determine whether the 1/0 pins will be driven by a tri-state driver, a TTL driver, or a PECL driver.
- RxClk Mux 4705 and TxClk Mux 4707 respectively specify which pins are being used to carry receive and/or transmit clock signals.
- Rx data enable 4709 specifies which pins will be used to receive data.
- Tx data enable 4711 specifies which pins will be used to transmit data.
- SDP mode register 4713 contains bits that control which of the components of RxSDP 421 are enabled, what of the recirculation circuitry is enabled, and what kind of aggregation is being presently employed in the cluster to which channel processor 309 belongs. There is a similar register for the channel processor's TxSDP427.
- RxEn bit 4715 indicates whether the channel processor's RxSDP 421 is enabled; bit 4717 indicates whether its byte processor 1013 is enabled; bit 4719 indicates whether its bit processor 1005 is enabled; bit 4721 indicates whether Rx Sonet framer 1007 is enabled; bit 4723 indicates whether Rx sync processor 1009 is enabled.
- Aggregation mode field 4731 is a two-bit field that specifies whether there is no aggregation in the cluster, two-way aggregation (i.e., two channel processors receiving and two transmitting) or four-way aggregation (all four channel processors either receiving or transmitting).
- FIG. 11 shows how the processors in the SDPs are implemented.
- the processor shown here in detail is RxByte processor 1013, but the processors in Rxbit processor 1005 and receive synch processor 1009 are similar.
- Sonet framer 1007 is a configurable state machine that is implemented using a processor like the one in FIG. 11.
- RxByte processor 1013 receives external inputs from large FIFO 1011.
- RxByte processor 1013 may provide external outputs via MUX 1123 to ring bus interface 415, extract space 417, or buffer 1025, which in turn provides protocol data units to DMEM 405.
- Components internal to RxByte processor 1013 include:
- control store 1101 which contains the microcode executed by processor 1013 and responds to the currently-addressed microinstruction by providing control signals (dotted arrows) controlling the other components of processor 1013.
- Control store 1101 may be loaded by XP 313.
- Next address logic 1105 which responds to control signals from control store 1105 and inputs from condition code mux 1121 and content-addressable memory (CAM 1 117) by selecting the next microinstruction to be executed from control store 1101.
- Counters 1109 and general registers 1115 The counters keep track of the bit locations in the packet at which processing is currently taking place. There are four 8-bitcounters,
- CAM content-addressable memory
- a CAM is a memory which is used in pattern matching. Each cell in the CAM contains a pattern, and when data is presented to the CAM which matches a pattern stored in a CAM cell, the CAM outputs the location of the cell in the CAM.
- the microcode may specify actions that depend on the values output by the CAM.
- CAM 1117 is loaded by CPRC 401 and XP 313. There are 64 9-bit words in the CAM and the CAM can be programmably divided into up to 16 "logical CAMs.
- CRC 1111 is specialized hardware for performing cyclic redundancy checks. Other specialized hardware may be included for descrambling packets.
- ALU 1119 is an eight-bit ALU incorporating a barrel rotator.
- XP 313 sets up Rx byte processor 1013 for operation by loading CTL store 1101 and CAM 1117.
- CPRC 401 stops and starts byte processor 1013 with a reset signal.
- byte processor 1013 Once byte processor 1013 is set going, it presents each byte it receives to CAM 1117. If a match indicating the beginning of a transport packet is found, control logic 1105 begins executing the microcode for handling the transport packet. Counters are set, and byte processor 1013 processes the packet as indicated by further matches found by CAM 117 and the counter values. Matches may be specified in the microcode either by (pattern, mask, length) or by (offset, pattern, mask, length), where offset is the offset in the packet, mask specifies "don't care" bits, and length specifies the number of bits in the match.
- the protocol data from the transport packet is extracted and directed to extract space 417 or to ring bus interface 415 via path 1019 and the protocol data unit is extracted and sent via path 425 to 16 byte buffer 1025, from whence it is DMA'd to a line in DMEM 405. Extractions are specified in the microcode by (offset, length, register address), where offset is again the offset in the packet, length is the length in bits of the field to be extracted, and register address is the address of a register in general registers 1115 in which the field is to be stored.
- Rx bit processor 1005 Continuing in more detail with the functions performed by the components of RxSDP 421, Rx bit processor 1005 is like Rx byte processor 1013 except that it has a linear feedback shift register instead of CRC 1111.
- the linear feedback shift register may be configured to lengths up to 32 bits and has polynomial and position relative to the data stream.
- the linear feedback register is used to generate hash values or other checksums.
- Rx bit processor 1105 deals with the stream of bytes received by RxSDP 421 at the lowest level. Thus, it may be programmed to detect HDLC frames and invalid sequences, to remove stuffed zeroes, to find the STS frame in an OC-3 data stream and to find and delete the preambles of incoming Ethernet frames.
- Receive SONET framer 1007 deals with SONET frames.
- Framer 1007 may receive the frame either from Rx bit processor 1005 or directly from pin interface 204(i) via bypass 1015.
- Inputs to SONET framer 1007 include the receive clock frame sync signal recovered by the physical layer interface chip connected to pin interface 204(i) and the eight-bit data contained in the frame.
- a SONET frame contains transport overhead and a synchronous payload envelope (SPE) which contains the frame's payload. Included in the transport overhead is an STS pointer which points to the synchronous payload envelope.
- the synchronous payload envelope contains path overhead bytes.
- Receive SONET framer 1007 descrambles the bytes in the SONET frame, checks parity, and writes the transport overhead to extract space via path 1008. Receive SONET framer 1007 further interprets the STS pointer to find the SPE . Having found it, it checks parity and writes the SPE's path overhead to extract space.
- the payload in the SPE is passed to further components of RxSDP 421 as required by the kind of payload. For example, if the payload is ATM cells, they are passed on to receive sync processor 1009. In the preferred embodiment, receive SONET framer 1007 does no demultiplexing of the SPE payload.
- Receive Sync Processor 1009 is specialized to deal with ATM cells.
- An ATM cell contains 53 bytes. 5 bytes are a header which contains a virtual path indicator, a virtual channel indicator, a payload type indicator, a cell loss priority indicator, generic flow control information and a header error check byte. The remaining 48 bytes are payload.
- Receive Sync Processor 1009 determines that a stream of bytes is a stream of ATM cells by applying the header error check sequentially to five-byte sequences, taking the fifth byte in the sequence as the header error check byte for the preceeding four bytes in the sequence. If the header error check fails, receive sync processor 1009 continues trying it.
- receive sync processor 1009 has found an ATM cell. If it finds a programmable number of cells in a row, it is synchronized on a stream of ATM cells. It remains synchronized until a programmable number of consecutive header error checks fail, indicating that sync processor 1009 is no longer synchronized on a stream of ATM cells.
- receive sync processor 1009 When receive sync processor 1009 is in synchronization on an ATM stream, it parses the ATM cell's header and outputs the contents of the header to extract space. Receive sync processor 1009 further processes the payload by descrambling it and by appending a status byte to the payload so that it can be discarded if the header check for the cell fails. Generally speaking, the payload output from receive sync processor 1009 goes to large FIFO 1011, which has enough depth to permit the TLE look up on the VPI-VCI before further processing of the payload is required.
- Receive byte processor 1013 may be programmed to perform several functions:
- receive byte processor 1013 does Ethernet delimiter recognition; using the recirculation path, receive byte processor 1013 may be aggregated with others to handle Tl and T3 data rates.
- the recirculation path also permits processing of multi-channel HDLC and encryption/decryption;
- receive byte processor 1013 writes a status word to extract space when it detects an end-of- frame.
- receive byte processor 1013 extracts the VPI/NCI from the header of an ATM cell and sends a message containing the virtual path indicator and the virtual channel indicator via ring bus 311 to TLE 301.
- TLE 301 responds to the message by returning a message to channel processor 307(i) indicating the output queue for ATM streams having that VPI- NCI combination.
- Receive byte processor 1013 processes 9-bit words. Its operation has already been explained in detail.
- RxSDP 421's pin interface 204(i) is connected to an optical cable upon which payload data is being transmitted using the SONET protocol.
- the payload data in the SONET frame is ATM cells
- the payload in the ATM cells whose headers have a particular VPI/VCI pair is an IP packet.
- RxSDP 421 has been programmed to extract the ATM cells from the SONET frame and process the ATM cells.
- Rx bit processor 1005 The bytes from the SONET frame go first to Rx bit processor 1005, which sends them on to SONET framer 1007.
- Rx bit processor 1005 also detects the beginning of the frame and sends a signal indicating its arrival to receive SONET framer 1007
- Receive SONET framer 1007 descrambles, does parity checking, and locates the payload data in the SONET frame.
- the payload of ATM cells goes to receive sync processor 1009, which detects the ATM cells, reads their headers, and sends the information in them to extract space 417.
- the payload of ATM cells goes to Rx byte processor 1013, which sends the ATM cell's VPI/VCI pair to TLE 301 for translation and reads information from the headers of any packets contained in the payload of the ATM packets to extract space 417.
- TxSDP 427 does the reverse of RxSDP 421 : namely, it receives a protocol data unit from SDRAM 229 and adds the protocol data necessary to output the protocol data unit in the form required by its destination and the physical interface to which pin interface 206(i) is connected. Again, operation is hierarchical, with the protocol data for the transport packets being added ahead of the protocol data for the medium packets.
- FIG. 12 shows the details of TxSDP 427.
- the protocol data unit comes via path 431 from DMEM 405 to 16 byte buffer 1229, from which it is read by TxByte processor 1213; the protocol data comes via path 429 from merge space 419 and goes to Tx SONET framer 1207 and Tx bit processor 1205 as well as to TxByte processor 1213.
- the recirculation path to RxSDP 421 is at 441; Muxes 1206, 1204, and 1202 implement bypass path 1215.
- Aggregation paths 1223 permit a given TxSDP 427 to add medium protocol data to streams of transport packets produced by other TxSDPs 427 that are aggregated with the given TxSDP 427.
- TxByte processor 1213 When a given TxSDP 427 is part of an aggregation, output of TxByte processor 1213 is controlled by the token on TxByte token bus 1225.
- the components of TxSDP 427 are analogous to the similarly-named components of RxSDP 427, except that their function is to add protocol data to a stream of protocol data units, rather than extracting it.
- One consequence of the difference in function is that there is no provision in TxSDP 427 for sending ring bus messages.
- TxStatus 639 and TxCB 637 have functions similar to the corresponding components of Rx data scope 643, except again for the difference in direction.
- Registers in TxSDP ctl 615 further permit CPRC 401 to communicate with TxSDP 427 and registers in SDP mode 627 configure the bypass path.
- Tx byte processor 1213 is programmable to read a protocol data unit from DMEM 405 and implement field inserts, deletes, and replacements. Tx byte processor 1213 is also programmable to create ATM cells by prepending the ATM header to 48-byte chunks of the protocol data unit and optionally scrambling the cell content. When there are no protocol data units to transmit, Tx byte processor 1213 generates idle ATM cells.
- asynchronous FIFO 1211 is 64 words deep and 9 bits wide, and provides the elasticity necessary for the field inserts and deletes performed by processor 1213.
- FIFO 1211 is written at the core clock rate and may be read either at the core clock or the serial clock rate.
- SONET framer 1207 produces SONET frames in which the output of TxByte processor 1213 is the payload.
- Tx bit processor 1205 is an intelligent parallel-to-serial processor. Under program control, it implements field inserts, deletes, and replacements on the data it receives. The input data is 8 bits wide and the output data is 1 , 2, or 4 bits at a time, depending on the physical interface. Processor 1205 contains a general purpose linear feedback shift register.
- Processors 1213, 1207, and 1205 are programmable and have the same general internal structure as Rx byte processor 1013, described above.
- the input is a protocol data unit that is an IP packet
- the output is a SONET frame which has as its payload ATM cells which in turn have as their payload the IP packet.
- the IP packet is stored ultimately in SRAM 229, from whence it is DMAed to DMEM 405; the protocol data needed to form the ATM cells and the SONET frame are in merge space 419.
- the IP packet is read from DMEM 405 in 48-byte chunks; Tx byte processor 1213 makes an ATM header for each 48-byte chunk, and the resulting ATM cells go to large FIFO 1211, from whence they are read by SONET framer 1207.
- SONET framer 1207 packages the ATM cells as the payload of the ATM frame and adds the necessary SONET protocol data.
- the SONET frame is then output to Tx bit processor 1205, which serializes it and outputs it to small FIFO 1203, from whence it goes to encode 1201 and from there to pin interface 206(i).
- the receiving channel processor 307(i) takes advantage of the fact that it shares global address space 321 with the transmitting channel processorO) and simply writes each sample to a queue in DMEM 405 of the transmitting channel processor 3070) CPRC 401 in the transmitting channel processor 3070) manages the queue.
- channel processors 307 are arranged in clusters 309 of four channel processors 307.
- the arrangement of the channel processors in clusters permits them to be aggregated so that they can receive or transmit at rates faster than would be possible for a single channel processor 307.
- aggregation is used to transmit and receive OC-12c and gigabit Ethernet protocols.
- OC-12c protocols two of the four channel processors in the cluster may be used to receive data and the other two may be used to transmit data or two clusters may be used, one for receiving data and one for transmitting data.
- the gigabit Ethernet protocols two clusters are used, the four channel processors in one of the clusters being used to receive according to the protocol and the four channel processors in the other cluster being used to transmit according to the protocol.
- receive aggregation aggregating a group of channel processors to transmit a protocol
- transmit aggregation aggregating a group of channel processors to transmit a protocol
- receive aggregation each of the channel processors receives all of the input from the protocol, but only processes part of it.
- transmit aggregation each of the channel processors receives part of the output for the protocol and outputs its part when required to the channel processor that actually provides the output to the transmission medium.
- the serial I/O pins of the channel processors in the cluster are wired in a fashion such that all of the channel processors in the cluster receive the same serial input. It is also possible to configure aggregated channel processors so that all of them are controlled by the same timer. Tokens implemented as sempahores in shared memory, finally, are used to coordinate operation of the channel processors in the cluster. Aggregation is done by setting configuration registers in the channel processors belonging to the cluster.
- FIG. 13 gives details of the arrangements that permit aggregation in a preferred embodiment.
- a cluster 3090 of four channel processors 3070,0..3). Input to a cluster is aggregated as follows: each channel processor 3070,k) has seven I/O pins CPP(0..6), giving 28 cluster I/O pins 1301.
- Cluster 1/0 pin 1301(0) is channel processor I/O pin 1303(0,0)
- CLP 1301(2) is CPP 1303(0,1)
- CLP 1301(27) which is CPP 1303(3,6).
- the pins are interconnected such that input at any of CLP 1301(0), CLP 1301(7), CLP 1301(14), and CLP 1301(21) is received simultaneously at all of CPP 1303(0,0), 1303(1,0), 1303(2,0), and 1303(3,0). Output is aggregated by means of cell/frame aggregation paths 1223, shown in FIG. 12.
- output 1441,1223 from each TxSDP 4250,i) is connected to mux 1208 in each of the other TxSDPs 427 in the cluster, and a given TxSDP 425 j,i) can thus receive output from large FIFO 2122 in any of the cluster's other TxSDPs 427 and can process the output in the devices following large FIFO 1023.
- How a given RxSDP 421 or TxSDP 427 relates to its cluster is determined by setting bits in SDP mode 627.
- Each channel processor 307 further has a clock mux 1307 which permits it to select one of 11 clock inputs.
- Eight of the clock inputs, external global clock inputs 1309(0..7), are for clocks external to digital channel processor IC 203;
- two of the clock inputs, CPGLC 1311, are global clock inputs which are recovered by one channel processor and provided to the other channel processors, and one of the inputs, local clock 1313, is for a clock local to digital channel processor IC 203.
- TxSDP token ring 1225 coordinates output from TxByte processor 1213 in the TxSDPs 427 of the cluster. Only the TxSDP 427 with the token outputs to large FIFO 1211.
- which devices in RxSDP 421 provide is determined by three token rings, ring 1027 for Rx bit processor 1005, ring 1017 for Rx sync processor 1017, and ring 1028 for Rx byte processor 1013.
- a device in RxSDP 421 which has a token ring and which is enabled will provide output only if it has the token. Which token rings are used depends on which of the devices in RxSDP 421 are enabled.
- Channel processor token ring 1315 controls write access to global bus 319 by channel processors in the aggregation. Only the channel processor which currently has ring 1315's token may have write access to global bus 319.
- Channel processor token ring 1315 is implemented by means of semaphores in the cluster memory 503 shared by the channel processors of the cluster.
- Cluster memory 503 includes channel processor local memory 503 for each of the channel processors (0..3) in cluster 3090).
- Each channel processor memory 50304) includes channel processor 301Q, ⁇ ) memory 1403 for the serial data processors, DMEM 405, bus control memory 1405, memory 1407 for CPRC 401, and part of instruction memory 403.
- Each channel processor 307 in the cluster has access via cluster paths 439 to DMEM 405 in each of the other channel processors in the cluster. Access to DMEM 405 in another channel processor has a 1 -cycle latency.
- the instruction memory may be configured when communications processor 203 is initialized so that the instruction memory is shared among all four channel processors as shared IMEM 1409, or may be divided among all four channel processors (IMEM 403).
- shared IMEM 1409 each of the four channel processors in the cluster is given access to the shared IMEM 1409, one per cycle, in a fixed round-robin order.
- Shared IMEM 403 permits the programmer of a channel processor or a cluster thereof to trade off larger programs for channel processors against increased flexibility of the individual channel processors.
- FIGs. 26 and 27 Example of operation of aggregated channel processors: FIGs. 26 and 27
- the receiver is a cluster 309(i) of four channel processors and the transmitter is another cluster 3090) °f f° ur channel processors.
- FIG. 26 shows how the RxSDPs 421(i,0..3) are configured and
- FIG. 27 shows how the TxSDPs 427 (j,0..3) are configured.
- Both clusters 309(i) and 3090) are configured so that the receive clock of one of the channel processors in the transmitter is the master receive clock for both clusters. All of the channel processors in the transmit cluster select the signal in external global clocks 1309 for the gigabit Ethernet clock. Synchronization among the CPRCs 401 in the CPs 307 of the cluster is achieved by means of semaphores in cluster memory 503.
- each of the RxSDPs is configured so that processors other than decoder 1001, Rxbit processor 1005, and Rxbyte processor 1013 are bypassed.
- Decoder 1001 provides a 3 -bit synchronization loss output 2603 to CPRC 401.
- Reception of input by Rxbit processor 1005 is controlled by token bus 1027, and output by Rxbyte processor 1013 is controlled by token bus and 1028.
- Rx bit processor outputs the results of its processing of the contents of small FIFO 1003 to large FIFO 1011 only when it has the token and similarly, Rx byte processor 1013 outputs the results of its processing of the contents of large FIFO 1011 only when it has the token.
- each channel processor receives one frame of gigabit Ethernet data while it has the token, and when it has received the frame, it passes the token to the next channel processor in the cluster and processes the frame it has just received.
- one result of the processing of the data is a descriptor for the data.
- the channel processor writes an enqueue command via global bus 319 to its mailbox 511 in queue management engine 305, and queue management engine 305 responds to the command by enqueueing the descriptor.
- Tokens implemented as semaphores in shared memory, finally, are used to regulate access by the members of the receive cluster to global bus such that a given channel processor in the receive cluster may write to global bus 319 only when it has the token.
- FIG. 27 shows how TxSDPs 4270,0.3) in the outputting cluster are set up.
- TxSDPs 1..3
- Tx byte processor 1213 large FIFO 1223
- aggregation paths 1223 The remainder of the processing of the output stream is done by TxSDPO,0), in which Tx bit processor 1205 and encoder 1201 are enabled as well as Tx byte processor 1213.
- TxSDP 427 Q,k When a given TxSDP 427 Q,k) has the token on token bus 1225, its Tx byte processor 1213 outputs data via large FIFO and aggregation path 1223 to TxSDP 4270,0), which then selects the proper input at mux 1228 and processes the input in the enabled processors following mux 1208.
- each channel processor 307 in the cluster in turn outputs a frame of gigabit Ethernet data.
- a channel processor 307 begins a transmission by issuing a dequeue command to QME 305 to obtain a descriptor for the protocol data unit for the frame which is to be transmitted.
- CP token ring 1315 is used to ensure that the channel processors in the transmit cluster obtain the descriptors in the correct order.
- a channel processor in the transmit cluster may access global bus 319 to provide a dequeue command to queue management engine 305 only if the channel processor has the token in CP token ring 1315.
- the data can be output from Tx byte processor 1213 only when tx byte processor 1213 has the token provided by token ring 1305. Output from Tx byte processor 1213 goes via aggregation path 1223 to TxSDPO,0), where it is output. Again, the arrangement permits a given channel processor in the cluster to process the frame it is to output while the other channel processors in the transmit cluster are outputting their frames.
- the cluster for OC-12c works substantially as described above, except that two channel processors in a cluster of four are configured for receiving and two are configured for transmission.
- the token rings are used as explained above, except that when OC-12c is being used to transmit ATM cells, token ring 11017 controls receive sync processor 1009 in the receive channel processors.
- XP 313 is a general purpose CPU that implements the MIPS IV instruction set. It performs the following functions in digital communications processor 203 :
- Interfacing with host 227 includes providing host 227 with a variable-sized window into global address space 321 and may also include processing packets that XP 313 receives from or transmits to host 227.
- FIG. 15 is a block diagram of XP 313.
- XP 313 has many of the same components as a channel processor 307. Like the channel processors, it is coupled to ring bus 311, payload bus 313, and global bus 319.
- the basic processing element is XP RISC core processor 1501, which is like CPRC 401.
- Both DMEM 1507 and DMEM 1508 are accessible via payload bus interface 1511, and are indeed separate nodes on payload bus 315. Only DMEM 1507 is accessible via global bus interface 1513.
- Interfaces in XP 313 that are not present in a channel processor include general purpose I/O interface 1517, PROM interface 1525, and PCI interface 1523.
- Instruction memory 1503 has three components: loadable instruction memory 1503, instruction read only memory 1504, and instruction memory loader 1506, which contains the program which XPRC 1501 executes to load IMEM 1503 from DRAM 229.
- the code executed by XP RISC core 1501 and data used in execution of the code are stored in SDRAM 229 and are moved via DMA from SDRAM 229 to DMEM 1507, DMEM 1508, and IMEM 1503 as needed by XP RISC core 1501.
- XP 313 has access to global address space 321.
- XP/CP configuration registers 1517 are part of global address space 321 in XP 313.
- Executive processor 313 responds to a chip reset signal received in digital communications processor 203 by sending a reset signal to each channel processor 307. Thereupon, XP 313 begins executing initialization code.
- the initialization code may have been previously loaded via PCI interface 1523 and global bus 317 into SDRAM 229 or it may be contained in an optional external PROM that is coupled to PROM interface 1521.
- the initialization code loads IMEM 403 for each channel processor, as well as shared IMEM 1409 for a cluster, loads the programs executed by RxSDP 421 and TxSDP 427, and loads configuration information into registers in global address space 321.
- XP 313 executes a real-time operating system for digital communications processor 203, supports network monitoring protocols, and deals with exceptions signaled by the channel processors.
- XP 313 further uses its access to global address space 321 to manage the channel processors, fabric processor 303, queue management engine 305, and buffer management engine 315. It uses the interface to ring bus 311 to manage table look up engine 301.
- One management function is inserting and deleting translation table entries 211 in translation tables 209; another is managing tables of statistics.
- the ability to manage translation tables 209 and buffer management engine 315 gives XP 313 the power to configure the relationship between input and output ports in DCP 203.
- XP 313 gives the host visibility into DCP 203 's global address space and can read the tables managed by TLE 301 for it.
- XP 313 can further serve as a packet transceiver for packets received from or destined for host 226.
- host 227 may be an Internet Protocol node, and may therefore receive or transmit internet packets.
- XP 313 operates in substantially the same fashion as a channel processor, except that its I/O interface is a PCI bus.
- Fabric processor 303 FIGs. 16-20 As shown in FIG. 3, fabric processor (FP) 303 manages the interface between a digital communications processor 203 and a switching fabric 222. Switching fabric 222 is used to communicate between a number of switching devices such as communications processor 203.
- Fig. 19 shows at 1901 how a number of DCPs 203(1..x) may be coupled, each by its FP 303(i), to switching fabric 222. Packets which are received at a serial input 204(ij) belonging to a DCP 203 (i) may be routed via FP 303(i) and switching fabric 222 to another DCP (k), where they are received in FP 303(k) and output at a serial output 206(k,l).
- fabric frames Data moves through fabric 222 as, fabric frames.
- the exact form of a fabric frame will vary with the switching fabric, but fabric frames generally have the parts shown in FIG. 18:
- fabric header 1803 contains information that fabric 222 uses for routing and flow control within fabric 222;
- frame header 1805 contains information that the source device which inputs fabric frame 1801 into fabric 222 provides for the destination device which receives frame 1801 from fabric 222;
- payload 1807 is the payload which was received in the source device from the network and is to be output by the destination device to the network.
- fabric processor 303 may be programmed to deal with different kinds of fabric frames.
- fabric processor 303 can be programmed to deal with frames that have a fixed length (FL 1809).
- the fixed length may range between 32 bytes and 128 bytes.
- a fabric processor 303 has essentially the same functions as a channel processor 307, except that it receives inputs from and provides outputs to switching fabric 222 instead of serial ports. That difference has important consequences.
- switching fabric 222 receives parallel inputs and provides parallel outputs, instead of serial inputs and outputs.
- the width of the input or output depends on the switching fabric; in a preferred embodiment, fabric processor 303 may be programmed to output data in widths of 8, 16, or 32 bits per clock cycle.
- fabric processor 303 must handle data at a higher rate than do channel processors 307.
- One reason for this is that the input and output are parallel instead of serial; another is that switch fabric 222 is shared with other devices, and the speeds at which a fabric processor 303 can receive data from switch fabric 222 and provide it to switch fabric 222 affects the speed and throughput of all of those devices as well.
- fabric processor 303 is implemented as a pair of finite state machines. The finite state machines in a preferred embodiment work with fabric frames 1801 that have the following properties:
- the switching fabric implements multicasting (simultaneously routing a packet to more than one destination) by means of a destination bit mask in the fabric header; • congestion information can be extracted from the fabric header by means of a simple state machine; and
- FIG. 16 is a block diagram of fabric processor 303; its general similarity to FIG. 4, showing a channel processor, will immediately be apparent.
- fabric processor 303 is coupled to payload bus 317, global bus 319, and ring bus 311; it can thus provide protocol data units to and receive protocol data units from SDRAM 229, can access global address space 321, and can provide messages to and receive messages from table lookup engine 301.
- payload bus 317 global bus 319
- ring bus 311 it can thus provide protocol data units to and receive protocol data units from SDRAM 229, can access global address space 321, and can provide messages to and receive messages from table lookup engine 301.
- Rx fabric processor 1617 and Tx fabric processor 1621 are connected by 32-bit buses 1619 and 1623 to fabric 222;
- fabric control engine 1601 is not a fully-programmable RISC processor, but is instead two parameterizable state machines: Rx fabric control engine 1604, which processes frames 1801 received in fabric processor 303 and Tx fabric control engine 1602, which process frames 1801 to be output from fabric processor 303; and; and
- fabric control engine 1601 has direct connections 1625 and 1627 to queue management engine 305, thereby achieving access to queue management engine 305 which has less temporal variation than the access available via global bus 319.
- fabric processor 303 Operation of fabric processor 303 is in general similar to that of a channel processor 307.
- fabric frames 1801 are received in Rx fabric data processor 1617 in 8, 16, or 32-bit chunks.
- Rx fabric data processor 1617 separates headers 1803 and 1805 from payload 1807. Some of the information in the headers goes to extract space 1613, where it is available for use by Rx fabric control engine 1604; Rx fabric data processor 1617 uses other of the information to make a message for TLE 301; this is sent via ring bus interface 1611 and ring bus 311 to TLE 301.
- Protocol data units are DMA'ed via MUX 1605, DMEM 1603, and payload bus 317 to a buffer 231 (i) in SDRAM 229.
- Rx fabric control engine 1604 uses buffer tag 233 for buffer 231(i), the header information in extract space 1513, and information received from TLE 301 in response to the ring bus message sent by Rx fabric data processor 1617 to make a descriptor 217 for the protocol data unit; using private connection 1625 to queue management engine 305, fabric control engine 1601 performs an enqueue operation for the descriptor.
- Tx engine 1602 reads descriptors from the queue(s) 215 which queue management engine 305 maintains for descriptors 217 specifying destinations that are reachable by switching fabric 222.
- Fabric processor 303 reads descriptors from the head of the queue.
- each descriptor uses information in the descriptor to set up merge space 1615 with the information required to make the headers 1803 and 1805 for the fabric frames 1801 for that data specified by the descriptor's buffer tag 233 and uses the descriptor's buffer tag 233 to initiate a DMA from buffer memory 229 via payload bus 317, DMEM 1603, and MUX 1605 to Tx fabric data processor 1621, which then uses the information in merge space 1615 to make headers 1803 and 1805 and the DMA'ed protocol data unit to make the payload.
- Tx fabric data processor 1621 makes fabric frame 1801, it outputs it in 8, 16, or 32-bit chunks via bus 1623 to switch fabric 222.
- FIG. 17 is a detailed block diagram of Rx fabric data processor 1717 and Tx fabric data processor 1621.
- Rx fabric data processor 1717 includes an input FIFO 1708 which is coupled to input data bus 1619, a fabric header interpreter 1707, a header-payload separator 1703, a payload FIFO 1705, and a header extractor and interpreter 1701.
- Payload FIFO 1705 is coupled via bus 1616 to MUX 1605 and header extractor and interpreter 1701 is coupled by path 1614 to extract space 1613 and path 1616 to ring bus interface 1611.
- Components 1701, 1703, and 1707 are implemented using programmable microsequencers of the same type used in RxSDP 421 and TxSDP 427. Operation of Rx fabric data processor 1617 is in general similar to that of RxSDP 421, except that no serial-to-parallel data conversion is done.
- Bytes of a fabric frame 1801 received from switch fabric 222 go first to FIFO 1708, which permits fabric processor 303 and fabric 222 to run at different clock rates.
- Switch fabric 222 writes to the tail of FIFO 1708, while fabric header interpreter 1707 reads from the head of FIFO 1708. Fabric header interpreter 1707 reads fabric header 1803 and outputs selected portions of fabric header 1803 to extract space 1613.
- header-payload separator 1703 which separates frame header 1808 from payload 1807 and sends the payload to FIFO 1705, from whence it is DMA'ed to buffer memory 229.
- FIFO 1705 is large enough to hold the payload until DMA access to DMEM 1603 is possible.
- Frame header 1808 then goes to header extractor and interpreter 1701, which interprets the header and outputs information from the header to extract space 1613 and/or ring bus interface 1611.
- Tx fabric data processor 1621 has three programmable components and two FIFOs. As with the Rx fabric data processor, the programmable components are implemented using microsequencers.
- the programmable components include header generator 1709, which generates frame header 1805 using information that fabric control engine 1601 has placed in merge space 1615, header and payload merge 1711, which merges header 1805 with payload 1807 DMA'ed via path 1620 from buffer memory 229, and fabric header generator 1715, which generates fabric header 1803 and adds it to frame 1801 before frame 1801 is output to switch fabric 222.
- FIFO 1717 permits fabric processor 303 and switch fabric 222 to run at different speeds, and FIFO 1713 provides the flexibility needed to deal with delays in access to DMEM 1603.
- FIGs. 19 and 20 Configurations of switching systems using DCP 203: FIGs. 19 and 20
- Fabric processor 303 permits a DCP 203 to easily interact with any switching component that is capable of sending and receiving frames 1801 which conform to the restrictions set out above.
- FIGs. 19 and 20 show three of the many possible configurations.
- Configuration 1901 in which a number of DCPs share a switching fabric 222 has already been discussed in detail; in configuration 1905, there is no separate switching fabric; instead, a switch is made by connecting two DCPs 203 to each other via their fabric processors 303.
- Such a system could be expanded by connecting the fabric processors of several DCPs 203 to a bus and providing a token ring or some other mechanism for regulating access by transmitting DCPs 203 to the bus.
- configuration 2001 there are connected to switching fabric 222 not only a number of DCPs 203, but also non-DCP logic 2002 for line interfaces 2003 that are not handled by DCPs 203.
- Such a configuration 2001 might be used to integrate pre-existing devices into a switching system employing DCPs 203.
- table look up engine 301 performs table look up operations on the translation tables 209 in translation table memory 207 in response to messages received on ring bus 311 from channel processors 307, fabric processor 303, and executive processor 313 and returns ring bus messages with the results of the operations to the devices from which it received the messages.
- FIG. 21 is a detail of a presently-preferred embodiment of translation table memory 207.
- Translation table memory 207 is implemented using 64-bit wide pipelined bursting static RAM modules.
- Memory 207 is subdivided into eight table pools 2101(0..7).
- the table pools may be of different sizes and may be subdivided into table entries of different sizes, though all of the table entries in a given table pool must be the same size.
- Two such table entries are shown in FIG. 21 : link table entry 2111 and data table entry 2119.
- a table pool 2101 is further subdivided into component tables 2106 made up of contiguous table entries. Two of these are shown in FIG. 21 : link table 2107 in table pool 2101(1) and data table 2117 in table pool 2101(7).
- Each table entry has an index in the component table 2106 to which it belongs; thus, LTE 2111 has a link index 2109 and DTE 2119 has a data index 2114.
- An entry in a component table 2106 is located by multiplying its index by the size of the entries in the table pool and adding the result to the location of the beginning of its component table 2106.
- component tables 2106 There are two general types of component tables 2106: link tables and data tables. Both kinds of component tables 2106 are used with keys that are associated with the data in the data tables.
- a translation table 209 may translate the VPI/NCI pair in an ATM packet's header into the number of the queue 215 in queue memory 213 which is to receive the descriptor for the ATM packet.
- the VPI/NCI pair is the key, and the data table entry 2119 located by the key contains the number of the queue.
- a search algorithm determines how the key is used in the translation table.
- a link table contains indexes of other index table entries or data table entries; it is used with the key that is being translated to locate data table entry 2119.
- link table entry 2111 contains control information 2113 and link information 2115.
- Control information 2113 is used with the key being translated to determine which of the indices in link information 2115 are to be followed. The precise nature of the control information 2113 and link information 2115 is determined by the search algorithm for the translation table 2109 to which link table 2107 belongs.
- Data table entry 2119 contains key 2120 and data 2121. When the key being translated matches key 2120, then data 2121 in entry 2119 contains the translation of the key, for example, the queue number for the VPI/NCI pair.
- a translation table 209 is specified in a preferred embodiment by a search algorithm number 2125.
- the search algorithm number identifies a data structure 2124 which contains virtual table numbers 2127 specifying the translation table's component tables 2106 and an algorithm specifier 2129 specifying the kind of search algorithm to be used with translation table 209.
- the virtual table number identifies a component table 2106 by means of a number which TLE 301 resolves into a table pointer 2105 for the component table.
- the use of virtual table numbers makes it possible to keep more component tables 2106 in table memory 207 than are currently being used by the channel processors and the fabric processor and to swap one component table 2106 for another simply by changing the table pointer 2105 that is represented by the virtual table number.
- executive processor 313 can build a new component table while the channel processors and the fabric processor are using a given component table and can then replace the given table with the new table simply by sending a ring bus message with a writer eg command 2415 that changes table pointer 2105 in the register in TLE 301 that relates the virtual table number to table pointer 2105.
- a given translation table 209 may be made up of up to four component tables 2106.
- One of the component tables must be a data table 2117; the others are link tables 2107.
- Translation table 209 shown in FIG. 21 has two component tables: link table 2107 and data table 2117. The component tables are identified by their virtual table numbers in translation table descriptor 2124.
- a translation done by means of a hashing algorithm can serve as an example of how a translation table 209 may be used to translate a key into data.
- Hashing algorithms are well known. What they do is map a long string of bits onto a shorter string of bits. In this case, the long string of bits is a key and the shorter string of bits is an index for a table entry. Hashing algorithms may be used with translation tables 209 that contain only data table components 2117. When the data table 2117 is set up, the key that data table entry 2119 contains data for is hashed and the data table entry for the key is created at the index ( ) produced by the hash algorithm if that is possible, and otherwise at the first available index following the index i.
- a key that hashes to index i will be termed in the following key(i).
- key(i) When key(i) is provided to the hashing algorithm, the hashing algorithm returns data index 2114(i).
- DTE 2119 corresponding to key is either at index 2114(i), in which case, the search is over, or there has been a hash collision, that is, more than one key hashes to the same index (i).
- data table 2117 may be set up so that DTES whose keys hash to the same index ( ) have indexes following 2114(i), so the search algorithm begins at index 2114(i) and compares key with key 2120 in the following data table entries 2119 until it finds one in which key 2120 matches key or until it reaches the end of data table 2117 without finding a match, in which case it reports the lack of a match.
- a link table may be set up with LTEs for indexes 2114 for which collisions occur and the index may be applied to the link table after the collision has occurred. The link table would then give the index of the entry corresponding to the index in the DTE.
- Table look up engine 301 performs search and maintenance operations on search tables 209 in response to ring bus messages.
- Table look up engine 301 does the searching using various search algorithms, including hashing algorithms, binary trie algorithms, and Patricia trie algorithms.
- Table maintenance is done using searching and the indexes of table entries. In general, messages specifying table maintenance operations come from executive processor 313.
- FIG. 28 shows a ring bus message in a preferred embodiment.
- Message 2801 has two main components, data 2817 and control 2803. Data can be 64 bits of any kind of data.
- data 2817 contains a TLE command.
- TLE 301 executes the command and returns the results in data 2817 of a ring bus message delivered to the source of the TLE command.
- Control 2803 has the following fields:
- M field 2805 is set by hardware and indicates that the message is longer than 64 bits and is therefore contained in a sequence of messages in contiguous slots; • TY field 2807 indicates the type of the message; there are four types:
- the ring bus slot contains no message
- ⁇ the message is an indication
- ⁇ the message is a confirmation
- LEN field 2809 indicates the length of the message in data 2817
- SEQ field 2811 is a sequence number that can be set by the sender so that the order of response messages can be determined
- DEST field 2813 indicates the device on ring bus 311 which is the destination of the message
- SRC field 2815 indicates the device that is the source.
- the indication and confirmation message types are simply used to determine whether the ring bus interfaces of the devices connected to the ring bus are working; if a device receives an indication message from another device, it returns a confirmation message to that device.
- a device on the ring bus sends a request message to another device when it wants the other device to perform an operation for the sending device; when the other device has performed the operation, it uses a result message to send the result back to the sending device.
- the channel processor wishing to perform the table look up sends a request message of the request type in which the channel processor specifies itself as the source and TLE 301 as the destination.
- Data 2817 contains the TLE command for the operation and SEQ 2811 may be set to a value which will permit the channel processor to identify the response message.
- TLE 301 responds to the request message by executing the message's TLE command and sending the results of the execution to the channel processor in a response message. The results are in data 2817, the TLE specifies itself as the source and the channel processor as the destination, and SEQ 2811 has the value it had in the request message.
- Table look ups are done using FindR command 2409; the remainder of the commands are used to set up and maintain translation tables 209, initialize table look up engine 301, and test whether the TLE is functioning.
- the commands can be further subdivided by how they locate entries in tables and the operations they perform on the located entries.
- Key commands 2423 use keys to locate entries:
- • Find command 2405 takes a key and an algorithm number as arguments, uses the translation table 209 and search algorithm specified by the algorithm number to search for data table entry 2119 for the key and returns data entry 2119's contents or an error if no entry for the key is found;
- FindW command 2407 takes the key, the algorithm number, data to be written, and offset and length specifiers as arguments; it uses the key and algorithm to find data entry 2119 for the key and writes the length of the data specified by the length to the entry beginning at the location in the entry specified by the offset;
- FindR command 2409 takes the same arguments as FindW, but reads the length of data beginning at the offset from the entry 2119 for the key and returns it.
- Index commands 2421 and 2425 use virtual table numbers and indexes to locate entries in component tables 2106.
- the commands belonging to group 2421 read data from and write data to the entry specified in the command; the commands belonging to group 2425 modify the data in the entry specified in the command:
- Write command 2401 has as arguments a virtual table number specifying a component table 2106, an index specifying an entry in the component table, the data to be written, a mask specifying the part of the data to be written, the offset at which the write is to begin, and the length of the data to be written; it writes the data as specified in the command
- Read command 2403 has the same arguments except for the mask; it reads the data at the specified location in the specified entry of the specified table and returns the data;
- XOR command 2411 does an XOR operation or a CRC calculation using the data in the command on the data at the specified location in the specified entry of the specified table; in the case of the CRC calculation, it returns the CRC.
- Add command 2423 adds the data in the command to the data at the specified location in the specified entry of the specified table.
- the register commands 2427 read (2417) and write (2415) registers in TLE 301; the registers are specified by register addresses. These commands are used to initialize TLE 301 with the information needed to locate translation tables, component tables 2106, and the code for the search algorithms and to simply write context information to and read it from TLE 301.
- Echo command 2419 simply returns the data in the command to the sender; it is used to check whether ring bus 311 and the ring bus interfaces of the attached devices are working properly.
- Nop command 2420 is a command that does nothing when executed.
- TLE 301 executes the following basic loop:
- the step of executing the command includes the steps of: a) Determining the index of the table entry; and b) performing the indicated operation on the data at the specified location in the table entry.
- the step of determining the index of the table entry includes the steps of: i. translating the key into a first index value; ii. fetching the key stored at the translation table entry specified by the index value; iii. if the key and the fetched key match, go to step v; iv. if they don't, compute a new index according to the search algorithm; go to step ii; and v. perform the operation on the data stored at the table entry specified by the index value.
- FIG. 22 shows the internal architecture of table lookup engine 301.
- a ring bus message that is addressed to table look up engine 301 is received in ring bus node 2201; the command in the message is processed by command processor 2203 and the other components of table look up engine 301.
- the information needed to do the processing is stored in register store 2205 and programs for the algorithms are stored in control store 2215.
- FIG. 23 shows details of register store 2205 and control store 2215.
- four classes of registers in register store 2205 are of interest: algorithm configuration registers 2301, table configuration registers 2311, virtual table configuration registers 2341, and message context registers 2319.
- Algorithm configuration registers 2301 relate the algorithm numbers used in the commands to the tables 209 and hash code 2323 in control store 2215.
- a single ACR 230 l(i) is shown in FIG. 23.
- a given ACR 2301 contains virtual table numbers for the component tables making up table 207.
- LNT1 2325 is the virtual table number for the first index table
- LVT2 2327 is the virtual table number for the second index table
- LVT3 2329 is the virtual table number for the third index table
- DVT 2333 finally, is the virtual table number for the data table.
- HASHF# 2331 is the number of the hash function used in searching the virtual table.
- Component table configuration registers 2311 describe the component tables 2106 in SRAM 207.
- CTCR 231 l(i) for each component table 2106, and the index of the table's CTCR 2311 is the table's physical table number 2343.
- Each CTCR 2335 indicates the type 2335 of its table, the size 2337 of the table's entries, and the offset 2339 of the beginning of the table in SRAM 207.
- VTCRs 2341 finally, describe the virtual tables that are currently in use.
- To switch the component table represented by a given VT# 2127 all that need be done is change PT# 2323 in the VTCR 2341 corresponding to VT# 2127.
- Message context registers 2319 contain data that is relevant to a ring bus message currently being processed by table look up engine 301. There are four such message context registers; thus, TLE 301 can process four ring bus messages simultaneously; waiting messages may be stored in input FIFO 2202 or on ring bus 311 itself. Only one message context register, message context register 2319(k), is shown in FIG. 23. Each message context register 2319 has three kinds of data in it: message information 2321, from the ring bus message, processing information 2327, which is produced and used during processing of the ring bus message in table look up engine 301, and result 2329, which contains the current result of the processing. When processing is finished, the result will be returned in a ring bus message to the source of the message being processed.
- Message information 2321 includes the kind of command, the information sent with the command, the processor that is the source of the ring bus message, and a sequence number for the message.
- Processing information 2327 includes a program counter in algorithm code 2323, the contents of the last link table entry 2111 to be retrieved by the search, and the address in SRAM 207 of the next link table entry 2111 to be fetched.
- Result 2329 contains the information which results from the execution of the command. In the case of a FindR command, the result will contain the data that the command specifies be read from data table entry 2119 associated with the key or a null value if no data table entry 2119 was found for the key.
- components 2203, 2207, 2213, 2209, 2211, and 2219 are implemented by means of processing elements that have access to control store 2215 and register store 2205.
- Component 2209 is able to perform read operations via SRAM memory controller 2217 on table memory 207 and component 2219 is able to perform read and write operations via SRAM memory controller 2217 on table memory 207.
- ring bus node 2201 places the message at the tail of input FIFO 2202; command processor 2203 reads the head of FIFO 2202.
- Command processor 2203 stores information from the message in a set of message context registers 2319(i).
- the set of message context registers 2319(i) is then used by the other components as they execute the message's command.
- initial index generator 2207 generates an initial index for a component table entry from a key in a set of context registers 2319(k);
- address generation component 2209 generates the address of the component table entry from the index and fetches a key from the component table entry;
- compare and register fetch component 2211 fetches the key stored in set of context registers 2319(k);
- SRAM data latch 2219 compares the fetched key and stored key and decides on the basis of the comparison whether the data table entry 2119 for the stored key has been found. If it has been, it fetches the data table entry and sends a ring bus message with the contents of the data table entry to output FIFO 2221; otherwise, it fetches the link table entry and places it in context registers 22319(k) and processing continues at index generation 2213; • index generation component 2213 uses the stored key and the fetched link table entry to generate the index of the next table entry 2111(1), and places the index in context registers 2319(k); address generation component 2219 then uses it to generate the address of the next table entry.
- initial index generation 2207 executes the hashing algorithm with key from the command to obtain the value /.
- Address generation 2209 uses / to compute the address of data table entry 2119(1) and SRAM data latch 2219 fetches entry 2119(1). If its key field 2120 contains key, the search is done and SRAM data latch 2219 makes a ring bus response message containing the data in data field 2121.
- index generation 2213 increments DIX 2114
- address generation 2209 generates the address of the next DTE 2119, it is fetched, and the test made as above. Execution continues in this fashion until a DTE 2119 is found whose key field 2120 matches key or the end of the data table is reached.
- table look up engine 301 Other uses of table look up engine 301
- TLE 301 can do more than maintain tables and look up information in them. Because each of the packet processors has rapid access with a fixed maximum latency to TLE 301, TLE 301 and translation table memory 207 can be used generally to store and process context information related to the stream of incoming packets being processed by a packet processor, and thus to overcome the limitations imposed by the relatively small amount of DMEM 405 available to a packet processor. The information needed to do address translation is one example of such context information. Another is the information needed to check the correctness of a packet that is being carried as another packet's payload.
- Correctness checking in packets is done by means of a cyclic redundancy code (CRC) at the end of the packet.
- CRC cyclic redundancy code
- the CRC is computed from the packet's contents when the packet is created, and when the packet arrives at its destination, the CRC is recomputed and compared with the CRC that is included in the packet. If they are the same, the probability is very high that the packet has arrived uncorrupted; if they are different, the probability is equally high that the packet has been corrupted. In the latter case, the packet is discarded and a message sent to the sender requesting that the packet be resent.
- CRC cyclic redundancy code
- An SDP 420 must be able to compute the CRC for a packet, both to check the CRC in an incoming packet and to provide the CRC for an outgoing packet.
- Many algorithms are known for computing CRCs on the fly, as a packet is received or output.
- computing the CRC in SDP 420 requires that CRC information concerning a packet be maintained for the entire time that the packet is passing through SDP 420.
- the matter is made even more complex in situations where the packets whose CRCs are being computed are higher-level packets that are payload in transport packets and transport packets carrying payload belonging to different higher-level packets are interleaved in the packet streams being received in and/or transmitted from SDP 420. In such a situation, a separate CRC computation must be made for each of the higher-level packets.
- DCP IC 203 the problem of computing the CRCs is solved by using the TLE to process and store intermediate results.
- CPRC 401 gathers the information needed to compute the intermediate CRC for that portion of the higher level packet and sends a ring bus message to TLE 301 with the information and a command that specifies how the information is to be applied to the prior intermediate CRC for the higher-level packet.
- the last ring bus message with the information is sent and TLE 301 executes the command to complete the CRC computation.
- CPRC 401 then sends a read command 2403 which reads the result, and compares the result returned in the ring bus message which TLE 301 sends with the result at the end of the packet to determine whether the packet has been corrupted.
- TLE 301 can be used to store packet stream context. These statistics can be accumulated in TLE 301 in response to ring bus messages from the packet processors and can then be read by executive processor 313 and either used by executive processor 313 or a host processor 227 to configure DCP 203 as required for the current state of traffic over the network to which DCP 203 belongs. Details of Queue Management Engine 305
- Queue management engine 305 enqueues descriptors 217 in queues 215 as specified by the packet processors and dequeues descriptors from queues, again as specified by the packet processors.
- a packet processor When a packet processor is operating singly, it typically enqueues descriptors in more than one queue but dequeues them from only a single queue.
- packet processors When packet processors are aggregated, all of the aggregated packet processors generally read from a single queue.
- QME 305 further provides status information concerning individual enqueue and dequeue operations and concerning the queues themselves to the packet processors. QME 305 neither reads the descriptors that it enqueues nor determines which queue a given packet processor will dequeue from next.
- the queues may be stored completely within DCP 203, may be stored there and/or within an external queue memory 213, or may be stored in and managed by an external queueing and scheduling unit.
- QME 305 employs a command interface to pass enqueue and dequeue commands from the packet processors on to the external queueing and scheduling unit and pass the results of the commands and status information back to the packet processors.
- the manner in which the queues are arranged in this case is of course completely up to the external queueing and scheduling unit.
- QME 305 is thus a general system for the ordered passing of messages between packet processors that belong to the switching system that DCP 203 is a component of and for passing of information between the packet processors and the external queueing and scheduling unit.
- FIG. 29 shows the QME interfaces 2901 for a channel processor 307(i), but the other packet processor have the same interfaces, except that fabric processor 303 has its own private connections to QME 305.
- QME 305's local memory is of course part of global address space 321 and consequently accessible by CP 307(i).
- Contained in QME 305's local memory is queue status information 2902.
- queue status information 2902 permits channel processor 307(i) to determine which queues in QME 305 it may dequeue descriptors from as well as the condition of those queues.
- CPRC 401 in channel processor 307(i) can thus access QSI 2901 to determine which of its queues it should next dequeue a descriptor from.
- CP 307(i) sends a queue command 2913 via payload bus 317 to CP 307(i)'s QMB 203.
- QME 305 returns a dequeue message 2907 to CP 307(i) via payload bus 317.
- Dequeue message 2907 contains the dequeued descriptor and information about the protocol data unit represented by the descriptor and the condition of the queue the descriptor was dequeued from.
- QME 305 further uses spare cycles in global bus 319 to transmit queue status reports (BQSR) 2915 to the individual packet processors concerning the queues served by the packet processor. These reports indicate which queues served by the packet processor have become empty and which have ceased being empty. They appear as received queue status reports (RQSR) 2915 in queue status registers 601 in the local address space of the packet processor.
- RQSR received queue status reports
- There is finally a queue operation status register in CP 307(i) which contains two bits that indicate the status of execution of the last queue command that QME 305 received from CP 307(i). The four possible statuses are:
- CP 307(i) Assuming that CP 307(i) is both receiving and transmitting packets, it would typically employ the interface as follows: having obtained the information needed to make and enqueue the descriptor for a received packet, CP 307(i) sets up a write control block 610 to send an enqueue command to CP 307(i)'s QMB 2903(i), checks QOS 2911 to make sure that the mailbox is not busy, and starts the DMA that sends the enqueue command. While thus enqueueing descriptors, it periodically checks RQSR 2915 to determine whether any of the queues that it is transmitting packets from has become non-empty.
- CP 307(i) sends a dequeue command in the manner just described for the enqueue command.
- QME 305 responds to the dequeue command with DEQM 2907, and CP 307(i) can use the descriptor contained in DEQM 2907 to transmit the packet it represents. It can use the other information contained in DEQM 2907 to schedule transmission of the packet represented by the descriptor or to update its own copy of the state of the queue.
- CP 307(i) can do everything that has just been described without accessing QME 305's portion of global address space 321 and thus burdening global bus 319. Of course, should CP 307(i) require more information about the state of the queues it writes to or reads from, it can access QSI 2902.
- a packet processor may command QME 305 to perform four operations:
- the commands for these operations are transmitted to QME 305 via payload bus 317; a transaction on payload bus 317 has two parts: an address and data.
- the address is used to specify the operation and the queue, as shown at 3001.
- Count field (CNT) 3003, transaction number (T#) 3005, and pool identifier (PI) 3007 are common to all payload bus addresses;
- CNT 3003 specifies the number of 16-bit quantities being read or written in the transaction;
- T# 3005 distinguishes among transaction by the same source to a given destination;
- PI 3007 specifies the destination, either a buffer pool in BME 315 or reserved pool numbers for buffer tag operations performed by BME 315 and for queue operations performed by QME 305.
- the address further contains an operation specifier 3009, which specifies one of the above operations, and for operations involving a single queue, queue number 3011.
- the data 3013 specifies the maximum number of descriptors 217 that the queue specified at 3011 of the address may contain at 3015, the descriptor pool in QME 305 from which the descriptors are to be taken at 3017, and descriptor allowance 3019, which specifies the number of descriptors 217 that may be committed to, but not actually in use in the queue.
- the configure queue command permits the packet processor that reads a given queue to dynamically change the amount of resources allocated to the queue as conditions change.
- that channel processor 307 can use the configure queue command to increase the maximum number of descriptors and/or the descriptor allowance for the queue, and when the burst is past, the channel processor 307 can decrease the maximum number of descriptors and/or the descriptor allowance.
- the first contains descriptor weight 3023, which specifies the amount of data in DRAM 229 represented by the descriptor being enqueued.
- the second contains descriptor 217 to be enqueued in the queue specified at 3011.
- the first word contains descriptor weight 3023 for the descriptor being dequeued, queue weight 3027, which is the total of the queue weights for the descriptors still in the queue, and queue length 3029, which is the number of descriptors remaining in the queue.
- the second word contains the descriptor 217 which has been dequeued from the queue specified at 3011.
- the packet processor receiving the dequeued descriptor may use the information in the first word to determine which of the queues it is transmitting from it will next issue a dequeue command for or to issue a configure queue command to change the amount of resources available to a queue.
- the multicast enqueue command whose address portion is shown at 3031 and whose data portion is shown at 3035 enqueues a descriptor for transmission by more than one packet processor.
- address portion 3031 and address portion 3001 contains queue level (QLEV) field 3033 instead of queue number field 3011.
- Queue level field 3033 specifies a minimum service or priority level for the queues that are to receive the descriptor.
- the data portion 3035 of the command contains a multicast vector (MCV) 3037 in its first word that indicates which of the packet processors is to output the queue. Also contained in the first word is the descriptor weight 3023 for the descriptor 217, which is in the second word.
- MCV multicast vector
- the multicast enqueue command specifies packet processors and service levels instead of specific queues, and QME 305 enqueues the descriptor 207 in queues served by the specified packet processors that have at least the minimum service levels.
- the descriptor is not actually copied onto all of the queues, as will be explained in detail in the following.
- the receiving packet processor that sends a multicast enqueue command to QME 305 also sends a command to BME 315 that sets a counter for the BT 233 specified in the multicast enqueue command's descriptor; each time a transmitting packet processor receives a descriptor that has been enqueued for multicast (indicated in the descriptor) and transmits the PDU specified by the descriptor's BT 233, it sends a command to BME 315 that decrements the counter for the BT 233 by 1. Details of queue data structures: FIGs. 31 and 32
- FIGs. 31 and 32 show details of the data structures that implement queues 215 in buffer management engine 305 in a preferred embodiment.
- the data structures may all be in memory internal to DCP 203
- the queue control data structures may be in memory internal to DCP 203 and the queues themselves may be in queue memory 213, or all of the queue data structures may be in queue memory 213.
- the queues 215 are linked lists of descriptor records 3111. All of the descriptor records 3111 are of the same size, but that size may be set by parameter upon system initialization.
- the descriptor records are stored in a number of descriptor pools 3109(0..q), with the size and number of pools being determined by the amount of storage available to QME 305.
- Descriptor records 3111 belonging to a given queue must all be from a single descriptor pool 3109(i).
- Each descriptor record 3111 contains at least the following fields:
- IUC in-use count
- descriptor record 3111 will also contain the following:
- descriptor weight (DW) 3137 which indicates the size of the buffer represented by the descriptor's buffer tag 233.
- buffer tag (BT) 233 the buffer tag for the buffer in SDRAM 229 represented by the descriptor
- the contents of the descriptor 217 and therefore of descriptor record 3111 are determined by the packet processor that is the source of the descriptor. For example, if the source packet processor is processing packets in a stream where the ultimate destinations of the packets are a number of Ethernet nodes and the destination packet processor is a transmitting packet processor that outputs the packets to a LAN to which the Ethernet nodes belong, descriptor 217 will include the Ethernet address for the packet that is to be made from the contents of the buffer specified by buffer tag 233. Also shown in FIG. 31 is a pool 3121 of multicast list records (MCLR) 3123. As will be explained in detail later, these records are used in multicasting.
- MCLR multicast list records
- Each queue 215 is represented by a queue record 3103 in queue list 3101.
- Queue list 3101 is in buffer management engine 305's portion of global address space 321 and may consequently be read by the packet processors.
- the queue number 3105 of the queue is the index of its queue record 3103 in list 3101.
- Queue list 3101 is divided into sections 3107, one for each packet processor that transmits paokets. All of the queues for a given packet processor are represented by a contiguous set of queue records in the packet processor's section 3107 of list 3101.
- the configuration information in QME 305's portion of global address space 321 includes the base address 3108 of each packet processor's section of queue list 3101 and the number of queues being read by the packet processor; consequently, a packet processor can determine which queues are being served by which packet processors, and given a queue number, the queue record 3103 may be found.
- Queue list 3101 is further used by QME 305 to determine which queues a given packet processor receives broadcast queue status reports 2915 about.
- Each queue record 3103 contains the following fields:
- HDPTR head pointer
- tail pointer (TPTR) 23113 which points to the descriptor record 3111 which is currently at the tail of the record's queue
- queue length (QL) 3129 which is the number of descriptor records 3111 currently in the record's queue
- total descriptor weight (TDW) 3131 which is the sum of the values in the DW fields 3137 of all of the descriptor records in the record's queue;
- ADA allocated descriptor allowance
- QLL queue length limit
- ADA 3133 and QLL 3135 together with the pool 3809 which is to be the source of the queue's descriptors, are set by the configure queue command.
- Queue 215(0) contains descriptor records 311 l(i..k), with descriptor record 311 l(i) being at the head of the queue and therefore pointed to by HDPTR 3113 in QR 3103(0) and descriptor record 3111 (k) being at the tail and pointed to by TPTR 3117 in QR 3103(0).
- descriptor record 3111 (k) is a linked list 3119 of allocated descriptor records 311 l(q..t). These descriptor records have been allocated to queue 215(0) but are not part of it, since they follow queue 215(0)'s tail.
- ADA field 3133 determines the maximum number of descriptor records which may be in linked list 3119.
- QME 305 sets up a linked list 3119 of allocated descriptor records 3111 and sets queue record 3103 (i) up so that head pointer 3113 and tail pointer 3117 point to the first descriptor record 3111 in linked list 3119 and QL field 3129 is set to 0.
- QME 305 sets QOS register 2911 to indicate its status.
- QME 305 takes the descriptor 217 in the command, writes it into the first descriptor record 3111 in list 3119 belonging to the queue specified in the command, increments QL 319 and updates TPTR 3117 to point to the descriptor record 3111 that the descriptor record 3111 was written to. If there are no descriptor records 3111 in linked list 3119, QME 305 adds the number specified in ADA 3133 to the list. Again, QME 305 uses QOS register 2911 to indicate the operation's status. If the queue 215's queue length was 0 before the descriptor 217 was enqueued, QME 305 sends a broadcast announcement 2905 to the queue's packet processor indicating that the queue is now non-empty.
- QME 305 uses head pointer 3113 to locate the descriptor record 3111 that is at the head of the queue, reads descriptor 217 from it, updates head pointer 3113 to point to the next descriptor record 3111 in the queue, and if there are fewer descriptor records 3111 in list 3119 than is permitted by ADA field 3113, adds the former head descriptor record 3111 to list 3119.
- QOS register 2911 again indicates the status of the operation. Descriptor 217 is returned in the command's return data. If the dequeued descriptor is the last one in the queue, QME 305 sends a BQSR 2905 indicating that the queue is now empty.
- FIGs. 32 and 33 Multicast enqueueing and dequeueing: FIGs. 32 and 33
- the multicast enqueue command permits a packet processor to enqueue a descriptor for consumption by more than one of the transmitting packet processors.
- FIG. 32 shows how multicast enqueueing is implemented in a preferred embodiment.
- queue management engine 305 maintains a single multicast list 3201.
- QME 305 places a descriptor 215 which is received in a multicast enqueue command in a descriptor record 3111 in multicast list 3201 and the descriptor remains in multicast list 3201 until all of the packet processors which are to transmit the protocol data unit indicated by the descriptor have done so.
- multicast list 3201 it is represented by a multicast list record 3203 which points to the first DR 3111(g) in list 3201.
- Any DR 3111 in list 3201 which represents a descriptor 215 for which packet processors still have to transmit the descriptor 215 's protocol data unit will have one or more multicast list records 3123 associated with it.
- the multicast list records 3123 associated with DR 3111 store a list 3209 of pointers; the pointers include a pointer to the next DR 3111 in multicast list 3201 and pointers to DRs 311 in the unicast queues.
- NXTPTR 3115 in DR 3111(a) in queue 215(i) points to DR 3111(h) in multicast list 3201, as does NXTPTR 3115 in DR 3111 (k) in queue 2150).
- DR 3111(h)'s NXTPTR 3115 points to MCLR 3123(r), the first MCLR associated with DR 3111(h).
- MCLR 3123(r) has three pointers; one, pointer 3211, points to the next DR 3111 in multicast list 3201; another, 3212, points to DR 3111(b), the DR following DR 3111(h) in queue 215(i), The third , 3213, pointer points to MCLR 3123(s), which has a fourth pointer 3214, which points to DR 3111(1), the DR following DR 3111(h) in queue 2150).
- the details of MCLR 3123 are shown in FIG. 33.
- Each MCLR 3123 has two queue pointers 3301, each of which specifies a queue number (3203) and a next pointer (NPTR) 3205 to the next DR 3111(h) in the queue specified by queue number 3203 and a next MCLR pointer (NXTMCLR) 3213, which points to the next MCLR associated with the DR 3111.
- the first QPTR 3301 points to the next DR 3111 in the multicast list.
- DR 3111(h) can be made a DR in any number of unicast queues 215 simply by having the preceding DR 3111 in each queue 215 point to DR 3111(h) and including a pointer to the following DR 3111 in each queue in the MCLRs 3123 associated with DR 3111(h).
- the multicast enqueue operation is thus a matter of adding a DR 3111 for the descriptor 217 being enqueued to list 3201, determining which unicast queues 215 the descriptor 217 is to be enqueued in, adding MCLRs 3123 as needed for the unicast queues 215, setting up the pointers in the preceding DRs 31 11 in the unicast queues as shown in FIG. 32, setting the tail pointers in the unicast queues 215 to point to the DR 31 11 in the multicast list, and setting in use count 3139 to indicate the total number of unicast queues the descriptor 217 has been enqueued in.
- a unicast queue When a unicast queue enqueues the DR 3111 following the DR 3111 in the multicast queue, it sets NPTR 3205 in its QPTR 3301 in the MCLRs 3123 to point to the newly-added DR 3111. How QME 305 determines which unicast queues the descriptor is to be enqueued in will be explained in detail below.
- the dequeue operation with a DR 3111 on multicast list 3201 works as follows: as long as the in use count is greater than 1 , the dequeue operation works as described for a DR 3111 that is not on multicast list 3201, except that each dequeue operation decrements the in use count by 1 and NPTR 3115 in the new tail DR 3111 is set from NPTR 3205 in QPTR 3301 for the unicast queue.
- the dequeue operation additionally sets the DR 3111' s use count to 0 and its NPTR 3115 to point to the next DR 3111 in the multicast list and returns its MCLRs 3123 to a free list.
- the multicast enqueue command does not specify the queues that the descriptor is to be enqueued in, but rather transmitting packet processors (MCV field 3037) and a queue or service level (QLEV 3033).
- MCV field 3037 packet processors
- QLEV 3033 queue or service level
- the meaning of a given queue or service level is determined completely by the manner in which the packet processor which is reading the queues has been programmed.
- QME 305 In executing the multicast enqueue command, QME 305 must translate this information into a unicast queue number. This is done by means of queue number mapping table (QNMT) 3303, shown in FIG. 33.
- the transmitting packet processor will not service a queue with a given priority as long as there is a non-empty queue with a higher priority.
- Queue number mapping table 3303 has a portion 3307 for each packet processor. The portions are ordered by the packet processor's number. Each portion 3307 has an entry (QNMTE) 3305 for each service level. In a preferred embodiment, there are eight service levels. An example portion 3307 for packet processor 0 is shown in FIG. 33, where it is assumed that packet processor 0 is using a simple priority system where the higher service level indicates higher priority and that packet processor 0 has queues for service levels 0, 3, and 4.
- Each entry 3305 for a service level for which packet processor 0 has no queues has a NULL value; each entry 3305 for a service level for which packet processor 0 has queues contains QROFF, the offset of the block of queue records 3103 for queues of that service level in queue list 3101, and the number of the packet processor's queues which have the entry's service level.
- QNMTEs 3305 are addressed by the packet processor number and the queueing level number, as shown at 3309.
- address 3309 specifies packet processor number 0 and queueing level 3
- the entry 3305 located by the address is 3305(0,3).
- QROFF specified in entry 3305(0,3) QME 305 can find the first queue record 3103 for that packet processor and queueing level; it may choose to use that queue, or it may choose a queue specified by another of the queue records 3103 for queues having that queuing level.
- address 3309 specifies a QNMTE 3305 with a null value, indicating that the packet processor has no queues for that queueing level
- QME 305 moves up portion 3307 until it finds a QNMTE 3305 for a higher queueing level and chooses a queue at that level as just described.
- FIG. 34 As earlier mentioned, the queues 215 managed by QME 305 may be completely contained within QME 305's memory in DCP IC 203, may be contained in an expansion queue memory 213, or may be managed by an external queueing and scheduling unit in response to commands from QME 305.
- FIG. 34 gives examples of configurations with and without the external scheduling unit. In these figures, flow of descriptors 217 is shown by solid wide light gray arrows; flow of protocol data units is shown by dashed dark gray arrows.
- a stand-alone DCP 203 in which the queues are contained in storage managed directly by QMU 305; at 3403 is shown a stand-alone DCP to which has been added an external queueing and scheduling unit 3405; in such configurations, the external queueing and scheduling unit deals with matters such as the number of queues for a given packet processor, the levels of those queues, and multicasting.
- QME 305 with an external queueing and scheduling unit, QME 305 has only its memory in DCP 203; in that memory there is a single queue for descriptors 217 that are to be sent to external unit 3405 and queues for each of the transmitting packet processor that receives descriptors 217 that are sent from external unit 3405 to QME 305 for transmission by the transmitting packet processor.
- the function of these queues is to provide a buffer between the packet processor and the external queueing and scheduling unit.
- DCP 203(0 and 1) are connected by a switching fabric 222 and the queue management for both DCPs 203 is done by QME 305(1) in DCP 203(1).
- QME 305(0) simply places enqueue commands for descriptors 217 that are to be enqueued on a queue read by fabric processor 303(0), which sends the commands via fabric 222 to fabric processor 303(1).
- Fabric processor 303(1) passes the command on to QME 305(1).
- QME 305(1) then enqueues the descriptors on queues 215 as indicated in the command.
- the queue 215 may be a queue which is read by a transmitting packet processor in either DCP 203(0) or DCP 203(1).
- Queue status information for queues read by packet processors in DCP 203(0) is passed from QME 305(1) via fabric processor 303(1), fabric 222, and fabric processor 303(0) to QME 305(0), which then sets the recipient's QOS register 2911 or sends a broadcast queue status report 2915 to the recipient as required by the circumstances.
- the command is passed to QME 305(1) as just described, and the descriptor that is dequeued in response to the command is passed back to QME 305(0) as described for status information and from QME 305(0) to the transmitting packet processor.
- QME 305 has a 55-pin external interface which may be used either with an external SyncSRAM memory bank or with a queueing and scheduling unit as described above.
- FIG. 35 shows how the external interface is used in each of these cases.
- the memory external interface There are 32 bidirectional data lines 3503, 20 unidirectional address lines 3505, and 4 or 5 control lines 3506. Writes to the memory bank 213 and reads from it are done in the usual way.
- At 3507 is shown how the 55-pin external interface is used with a queueing and scheduling unit 3508.
- QME 305 is the master and scheduler 3508 is the slave.
- scheduler 3508 or QME 305 may transmit a message to the other, but the direction in which a message will be transmitted will be determined by QME 305.
- Transfer of messages is flow controlled, i.e., scheduler 3508 and QME 305 each indicates to the other whether and what messages it can accept and the sender may not send unless the receiver can accept the message.
- QME 305 is also the source of the clock signals for the interface.
- the size of the messages is determined when DCP 203 is initialized.
- the content of the messages is of course determined by the interaction between QME 305 and scheduler 3508, but for the most part they will contain descriptors 217 which are to be enqueued on the queues managed by scheduler 3508 or which have been dequeued from the queues managed by scheduler 3508.
- QME 305 serves as a proxy for all of the transmitting packet processors, and each of these packet processors may or may not be able to accept a descriptor from scheduler 3508 at a given moment.
- Fabric processor 303 has 8 queues because it is responsible for all communication via switching fabric 222, and as seen above, such communication may involve system control information as well as protocol data units.
- devices requiring different kinds of frames may be connected by a single fabric processor.
- QME 305 When used with an external scheduler 3508, QME 305 has a single receiver queue (RQ) 3519, in which it places all of the descriptors 217 that it receives from the receiving packet processors until they can be output to scheduler 3508 for enqueueing and a transmit queue (TQ) 3521 for each of the transmitting packet processors. When a TQ 3521 for a transmitting packet processor is full, QME 305 cannot receive any more descriptors 217 for that queue of the transmitting packet processor.
- RQ receiver queue
- TQ transmit queue
- flow control for messages directed to scheduler 3506 is simple: when the scheduler can accept a message, it activates a signal in control 3513 and scheduler flow control register 3517 indicates the state of the signal, so QME 305 need only wait to transmit the next message until control register 3517 so indicates.
- Flow control for messages directed to QME 305 is done by means of DCP flow control register 3515 in scheduler 3508, which contains 25 flow control bits, one for each of the possible transmitting packet processors.
- Scheduler 3508 may send a message whose ultimate destination is a given transmitting packet processor only if the flow control bit for the transmitting packet processor in DCP flow control register 3515 so indicates.
- a portion of every message sent by QME 305 to scheduler 3508 may be used to set or clear flow control bits in register 3515, and QME 305 sends a message which sets the bit for a transmitting packet processor when the transmitter's transmit queue 3521 is full and sends a message which resets the bit when transmit queue 3521 again has room for descriptors.
- QME 305's external interface will generally be used to communicate with queue management devices, it need not be. Since the contents of a descriptor are determined completely by the packet processor which produces it, the external interface may be used by packet processors to write data to a device accessible via the external interface and/or read data from such a device.
- packet processors One way this capability could be used is to program a packet processor as a "packet sniffer", that is, a device which simply collects information about the packets in a packet stream.
- RxSDP 421 can be programmed to extract the desired information for each packet from the packet stream and provided it to CPRC 401, which can then pack the information into a descriptor and enqueue the descriptor for delivery by QME 305 to an external device which can store and analyze the information.
- FIG. 36 shows how the individual pins of the external interface are used with a scheduler 3508.
- the column labeled pins 3601 shows the number of pins making up a group and the arrows in the column labeled direction 3603 show the direction of flow of information.
- DCP -> SCHED indicates flow from QME 305 to scheduler 3508 and DCP ⁇ - SCHED indicates flow in the opposite direction.
- clock pin 3605 provides a clock signal from QME 305 to scheduler 508;
- D_flow_ctrl 3607 provides three bits of flow control information each cycle from QME 305 to scheduler 3508; scheduler 3508 uses the six bits of D flow ctrl 3607 received on the first two cycles of a message to set or clear a bit in D flow control register 3515;
- S_flow_ctrl 3609 is one bit of flow control information from scheduler 3508 to QME 305; QME 305 uses the value on pin 3609 to set S flow control register 3517;
- Xfer_rqst 3611 is a signal that scheduler 3508 activates when it wishes to send a message to QME 305;
- Xfer_ctrl 3613 is two bits that QME 305 sends to scheduler 3508 to indicate how the data and control signals on the pins are to be interpreted in the following clock cycles; details are given below.
- Command pins 3511 are bidirectional; they include 16 command bits and 1 parity bit.
- Data pins 3509 are also bidirectional; they include 32 data bits and 1 parity bit.
- interface 3507 Operation of interface 3507 is controlled by Xfer_crtl 3613.
- the meanings of the four values of the two lines are as follows:
- a message may be 2,4,6, or 8 cycles long, with each cycle transferring 16 bits of command data and 32 bits of descriptor data.
- the semantics of the command data depend on the manner in which scheduler 3508 and QME 305 have been programmed, except that with a message from scheduler 3508 to QME 305, the command data in the first cycle must take the form shown at 3514: the first six bits must have the pattern 3615 and the last six bits must contain the number of the queue to which the message is destined. This number of course determines which transmit queue 3521 the message will be placed in.
- FIG. 37 shows examples of operation of interface 3507 with 2- and 4-cycle messages.
- the 2- cycle messages are shown at 3701.
- At 3703 there are shown the clock cycles for the interface;
- at 3613 are shown the values on Xfer_Ctrl 3613 during the clock cycle;
- at 3511 is shown what is on command data pins 3511;
- at 3509 is shown what is on descriptor data pins 3509;
- at 3607 is shown what is on D_flow_Ctrl pins 3607.
- Xfer_Ctrl 3613 is set to 01, indicating that the cycle after next (cycle 3) will be the first cycle of a 2-cycle message 3702 directed from QME 305 to scheduler 3509
- Xfer_Ctrl 3613 is set to 00, indicating that the cycle after next will not be the first cycle of a message.
- command 3511 and data 3509 contain the first cycle's worth of command data and descriptor data for the message
- D_flow_Ctrl 3607 contains the first cycle's worth of flow control data for scheduler 3508.
- Xfer_Ctrl 3613 is again set to 01, indicating that the first cycle of another message from QME 305 to scheduler 3508 will begin in cycle 5.
- cycle 4 the second half of message 3702 is sent, with command 3511 and data 3509 containing the second cycle's worth of command data and descriptor data and D_flow_Ctrl 3613 containing the second cycle's worth of flow control data.
- Xfer_ctrl 3613 is again set to 00.
- cycles 5 and 6 the second message is transmitted and in cycle 5, Xfer_Ctrl 3613 indicates that a third message will follow, beginning in cycle 7.
- Xfer_Ctrl 3613 Transmission of two four-cycle messages 3707 from scheduler 3508 to QME 305 is shown at 3705; in cycle 1, Xfer_Ctrl 3613 is set to 10, indicating that the first message to begin in cycle 3 will be directed to QME 305; in cycles 2-4, Xfer_Ctrl 3613 is set to 00, since the message is 4 cycles long. In cycles 3-6, the four cycles' worth of command data 3511 and descriptor data 3509 for the first message are transmitted; D_flow_Ctrl 3613 is transmitted only on the first two cycles of the message, that is, cycles 3 and 4. Xfer_Ctrl 3613 is set to 10 again in cycle 5, and the first cycle of the second message will begin in cycle 7.
- Transmission of flow control information to scheduler 3508 works in the same fashion as transmission of a two-cycle message, except that Xfer_Ctrl 3613 has the value 11 two cycles before the start of the flow control sequence.
- Xfer_Ctrl 3613 has the value 11 two cycles before the start of the flow control sequence.
- the first 3 bits of the flow control information are transmitted on D_flow_Ctrl 3607 and on cycle 4, the second 3 bits are transmitted.
- Scheduler 3508 and QME 305 ignore the values on command data 3511 and descriptor data 3509.
- buffer management engine 315 Detailed description of buffer management engine 315 and buffer memory 229
- buffer management engine 315 The primary function of buffer management engine 315 is to manage the buffers 231 in buffer memory 229 in which protocol data units are stored from the time they are received in DCP 203 to the time they are transmitted from DCP 203. The following description will first describe the interface to buffer memory 229 which buffer management engine 315 presents to the packet processors and will then describe implementation details of the interface and the other functions performed by BME 315.
- FIG. 38 shows the interface to buffer memory 229 that is created by buffer management engine 315.
- Buffer memory 229 in a preferred embodiment may be divided into up to 32 buffer pools 3803. Where n is the number of pools, n-1 of these pools contain buffers 231, which in turn contain protocol data units 2503. The number and size of the n-1 pools and the number and size of the buffers 231 are determined when DCP 203 is initialized; a pool may have up to 64K buffers and all of the buffers 231 are of the same size, which in a preferred embodiment ranges from 64 bytes to 64 Kbytes.
- Each pool 2803 is identified by a pool ID 3819 and each buffer in the pool is identified by a buffer tag 233; within a buffer 233, locations are specified by offsets 3802; here, the offset specifies the beginning of PDU 3804. In a preferred embodiment, the offset specifies the beginning of a 16-byte chunk of data.
- the n th buffer pool 2803 contains the buffer tags 233 for the buffers.
- a buffer tag queue 3805(i) for a buffer pool 2803(i) contains buffer tag entries 3806 for each of the buffers 231 in buffer pool 283(i), and buffer tag entry 3806(i,j) for buffer 231 (i,j) contains buffer 231(i,j)'s buffer tag 233.
- Each queue 2805 has a pointer 3807 to the head of the queue and a pointer 3809 to the tail of the queue. The queues are set up when DCP 203 is initialized.
- a receiving packet processor in DCP 203 needs buffer tags for buffers in a pool 2803(i), it receives them from the head of queue 3805(i); when a transmitting packet processor frees buffer tags, they are returned to the tail of queue 3805(i).
- buffer tag 233(i,j) cannot be returned to the tail of queue 3805(i) until the last copy of buffer tag 233(i,j) has been returned.
- buffer tag counters 3811 There is an entry 3813 in buffer tag counters 3811 for each buffer tag which is in more than one queue 215 in QME 305, and the entry contains the count of queues that the buffer tag is presently in. The entry is addressable by pool ID and buffer tag.
- a receiving processor When a receiving processor makes a multicast enqueue command for a descriptor, it sends a message to BME 315 indicating the number of queues the descriptor is in; the descriptor received by the transmitting packet processor includes the value of INC from DR 3111 for the transmission; when INC is greater than 0, the packet processor sends a counter decrement to BME 315 indicating that the counter for the BTAG in BT counters 3811 should be decremented; when the counter is decremented to 0, the buffer tag 233 is returned to the tail of its buffer tag queue 3805.
- BME 315 receives commands for writing to buffers 231 , reading from buffers 231 , obtaining buffer tags, returning buffer tags, and setting and decrementing entries in BT counters from the packet processors via payload bus 317.
- the commands for reading from and writing to buffers have the form shown in at 3901 in FIG. 39.
- the fields have the following meanings: • CNT field 3903 indicates the number of valid, consecutive, 16 byte quantities in the transfer;
- T# 3905 is used to distinguish among bus transactions by a given packet processor
- Pool ID 3907 identifies the buffer pool 3803(0..n-l);
- Offset 3909 specifies offset 3802 in the buffer identified by BTAG 391 1 ;
- BTAG 3911 identifies the buffer 231 being read or written.
- Pool ID 3907, Offset5 3909, and BTAG 3911 together make up buffer address 3913.
- Pool ID value 0 specifies BT pool 3803(n) and pool ID value OxlF specifies commands for QME 305.
- QME 315 With the read commands, QME 315 returns the specified amount of data from the specified buffer together with transaction # 3905 to the requesting packet processor. The requestor can thus use the transaction number to keep track of what request the returned data corresponds to.
- a packet processor can perform the following BTAG read operations on the BTAGS 233 in BTAG pool 3803(n):
- the BTAG write operations are:
- BT POOL ID 3907 indicates BTAG pool 3803(n), where a BTAG is specified, the BTAG is in BTAG field 3911, where a count is specified, it is in CNT 3903, and OFFSET 3909 contains a command value 3917 that specifies one of the BTAG commands and a pool ID 3919 specifying the buffer pool the BTAGs affected by the BTAG command belong to. Where the command requires a response, transaction number 3905 is returned with the response.
- CNT 3903 indicates the number of BTAGs the packet processor issuing the command is requesting. Depending on the value, the requestor will receive 8, 16, 24, or 32 BTAGs 233 from the pool specified in pool ID 3919; BTAG field 3911 is of course ignored.
- BME 315 returns the BTAGs 233 to the requestor by means of a write to the requestor on the payload bus.
- CNT 3903 is set to 0
- BTAG 3911 contains the BTAG 233 whose count value in BT counters is to be read
- pool ID 3919 contains the pool identifier 3819 for the pool 3803 that BTAG 233 belongs to.
- BME 315 returns the count value by means of a write to the requestor on the payload bus.
- the initialization command is used to set the values of BTAGs 233 in BTEs 3806.
- CNT specifies the number of BTEs 3806 being initialized; possible numbers are 8, 16, 24, and 32.
- Pool ID 3919 specifies the pool 3803 the BTAGs 233 being initialized belong to and thus also the buffer tag queue 3805 that they are being written to.
- the deallocation command returns a single BTAG 233 to BME 315 for reuse.
- pool ID 3919 specifies the buffer pool 3803 the BTAG 233 being returned belongs to and BTAG 3911 contains the BTAG 233.
- pool ID 3919 specifies the buffer pool ID for the BTAG 233 whose counter is being set or decremented and BTAG 3911 specifies the BTAG 233 itself; in the set counter command, CNT 3903 contains the value to which the counter is to be set.
- QME 315 responds to the set counter command by making a CNT entry 3813 in BT counters for the BTAG 233 and setting it to the value specified in the command.
- the set counter command is issued by the receiving packet processor when the receiving packet processor sends a multicast enqueue command to QME 305 with a descriptor for the PDU represented by BTAG 233.
- the decrement counter command is issued by each transmitting packet processor that transmits a protocol data unit that is being multicast when it has transmitted the PDU.
- the BTAG 233 that CNT 3813 belongs to is returned to the tail of BTQ 3805 for the BTAG 233's buffer pool and the entry for the BTAG in counters 3811 is invalidated.
- FIGs. 40 and 41 Details of the implementation of BME 315: FIGs. 40 and 41
- BME 315 serves as the general interface to SDRAM 229.
- FIG. 41 shows the contents of SDRAM 229.
- SDRAM 229 contains:
- memory configuration information 4111 which regulates the configuration of SDRAM 229;
- packet processor code and data 4109 which contains code and data that XP 313 loads into the packet processors when DCP 203 is initialized; with the channel processors, the code and data includes the code and data used to initialize the serial data processors.
- Translation tables 4107 contains the translation tables that XP 313 loads into translation table memory 207 on initialization of DCP 203;
- RTOS 4101 is the code for the real-time operating system executed by XP 313;
- XP data memory 4105 contains the data used by XP 313 in executing RTOS 4101.
- XP 313 fetches instructions from RTOS 4101 and XP data memory 4105 into IMEM 1503 and DMEM 1507 and 1508 as needed.
- Fig. 40 is a block diagram of the hardware of BME 315 in a presently-preferred embodiment.
- BME 315 is coupled both to global bus 319 and payload bus 317.
- BME 315 receives and responds to BTAG and buffer commands via payload bus 317; it receives memory read requests from XP 313 on global bus 319 and responds to the read requests via payload bus 317. Initialization of the packet processors is done in the same fashion.
- Each request for a transaction which BME 315 receives via these buses includes a command 4004 and an address 3913, and write commands also include data 3818. How the address is interpreted depends of course on the kind of command. Commands are parsed in command parser 4003. Commands to configure SDRAM 229 are treated differently from other commands; as shown at 4001, they go to DRAM configuration logic 4035, which passes the data to a configuration FIFO 4037, from whence the data is loaded into DRAM configuration registers 4030.
- address generation block 4011 translates the addresses used in the buffer and BTAG commands into the proper form for SDRAM 229; in order to do this, address generation block 4011 includes a buffer configuration file which specifies how the buffers 231 in SDRAM 229 are currently configured. As currently implemented, an address in SDRAM 2029 corresponding to a given buffer address 3913 is computed as follows:
- SDRAM address pool base address (pool ID) +
- the command, the read address, and the read address go to queues 4067, 4015, and 4025 respectively.
- the command at the head of queue 4067 is read by DRAM CTRL 4009, which interprets it as required by the current settings of DRAM configuration registers 4039 and provides the necessary control signals to mux 4025 and the address drivers 4019 and data transceivers 4041 for SDRAM 229.
- the address at the head of read address queue 415 is read by address generator 4027, which provides the address to drivers 4019 and indicates a read operation.
- the address at the head of write address queue 4025 is read also read by address drivers 4019, which provides the address and a write command to address drivers 419.
- the data at the head of write data queue 4029 is output to data transceivers 4041, so that it can be input to SDRAM 229.
- Address generator 4017 gives priority to read address queue 4015, since provision of PDUs to a transmitting packet processor is more time-critical than storing the PDUs in SDRAM 229.
- BME 315 includes a CAM 4023.
- CAM 4023 When an address is written to the tail of write address queue 4025, an entry for the address is made in CAM 4023; when an address is written to the tail of read address queue 4015, it is also output to CAM 4023; if there is a match, the queue of addresses in write address queue 4025 is emptied before the next address in read address queue 4015 is read by address generator 4017.
- BTAG caches 4031 contain BTAGS 233 from the head end of each of the BTAG queues 3805; the rest of the queue 3805 is in SDRAM 229.
- BTAG caches 4031 When a request for BTAGs 233 arrives from a packet processor, it is satisfied from BTAG caches 4031 if possible; otherwise, it is satisfied from the portion of the queue 3805 in SDRAM 229 and the BTAG cache for the queue is reloaded from the portion in queue 3805.
- BTCNT 3811 implements BT counters 3811.
- the buffer tag count commands set, read, and decrement values in BTCNT 3811; each time a decrement BTAG command is received, the value of CNT in the BTAG's CNT entry is decremented as described above.
- PDUs which are read from SDRAM 229 are output to read data FIFO 4043; the output from FIFO 4043, together with outputs from DRAM configuration 4035, BTAG caches 4031, and BT CNT 3811 all go to MUX 4046, which selects output to read data queue 4045, which in turn outputs to payload bus 317.
- Ring bus 311 is primarily used by the packet processors to send protocol data to TLE 301 for translation and receive the results of the translation from TLE 301. Ring bus 311 may, however, be used to send messages to and receive replies from any of the nodes on ring bus 311.
- the nodes in a preferred embodiment are the packet processors and TLE 301.
- Ring bus 311 is designed to provide guaranteed access bandwidth and bounded latency for messages between the bus's nodes.
- the bus is 91 bits wide, with 27 bits for control information and 64 bits for the data being sent from the transmitting node to the receiving node.
- the bus is time-division multiplexed into a variable number of slots, with each slot comprising one core clock cycle. Each slot is passed from node to node in bucket brigade fashion.
- the node may write a message for one of the nodes in the slot (other embodiments may permit messages for multiple nodes to be written in a slot). The message then circulates from node to node until the destination node removes it from the slot.
- Each node may have between one and five slots in ring bus 311 containing messages whose source is the node. If the node is not using more than one slot, those slots do not exist on ring bus 311. As may be seen from this description, the time required to transmit a message from one node to another on the bus varies with the number of messages on the bus, with the upper bound being the time required when each node has five slots containing messages on the ring node.
- the type of each message is indicated by the value of type field 2807 in the slot.
- the node that is the source of the message is indicated by SRC 2825 and the node that is the destination is indicated by DEST 2813.
- the types are:
- indication used by the source to inquire whether the destination is responding to ring bus messages.
- the indication contains no data.
- FIG. 42 shows ring bus interface 4201 which each node has to the ring bus.
- FIFO 4203 contains request messages
- FIFO 4209 contains response messages whose destination is the node
- both FIFO 4203 and FIFO 4209 are read by the node.
- Overflow FIFO 4211 is used for messages whose source is the node that must continue to circulate on ring bus 311 because their destinations have not read them.
- the node outputs messages to ring bus 311 via buffer 4214, which receives messages from rbus_in 4202, overflow FIFO 4211, and request FIFO 4217, which contains request messages being sent by the node. If overflow FIFO 4211 is empty, when a message whose source is the node is received in the node, it is immediately placed in buffer 4214 for output in the slot in which it arrived; if overflow FIFO 4211 is not empty, the newly-received message whose source is the node is placed at the tail of overflow FIFO 4211 and the message at the head of overflow FIFO 4211 is placed in buffer 4214 for output in the slot in which the newly-arrived message arrived.
- bus structure 4301 is a slotted, multi-channel, shared, arbitrated bus that permits pipelined and overlapped operations. Each operation begins with a request that occupies a five clock cycle slot.
- the bus operates at a clock rate of 166 MHz.
- the packet processors 4303, BME 315, and QME 305 are all connected to the bus structure and will be termed herein bus nodes.
- Bus structure 4301 has two parts, request bus 4305, which is used by bus nodes to make bus requests and provide addresses and data for the requests, and return bus 4317, which is used to return the results of a bus request to the requesting bus node.
- Request bus 4305 has three channels: two command/address channels for carrying commands and addresses, namely global bus command/address channel 4307 for carrying addresses and commands for global bus operations and payload bus command/address channel 4309 for carrying addresses and commands for payload bus operations, and a data channel 4311 for carrying the data for both global bus and payload bus operations.
- each of the command- address channels is 32 bits wide and data channel 4311 is 128 bits wide.
- Return bus 4317 has two channels, return address channel 4321, which carries a request and the address to which the return data is to be returned, and return data channel 4319, which carries the data being returned. Again, return address channel 4321 is 32 bits wide and return data channel 4319 is 128 bits wide.
- a node which has access to a slot places the command and address required for the operation on one of the command-address channels 4307 and any data required for the operation on request data channel 4311.
- bus control 4315 places a request to the source of the return data on return address channel, followed by the address to which the return data is to be returned, and the source of the return data then places the data to be returned on return data channel 4319. Access by a node to bus structure 4301 is controlled by bus control 4315. As will be explained in more detail in the following, bus control 4315 provides each node with a guaranteed portion of the bandwidth of both request bus 4305 and return bus 4317.
- FIG. 44 shows how a bus operation appears to a node. Each slot occupies five bus cycles. On a command-address channel 4307 or 4309, the information on the bus during the cycles of a slot is shown at 4402:
- cycle 0 request 4405, specifying the operation
- cycle 1 address 4407, specifying an address for the operation
- cycle 2 bus grant 4409: bus control 4315 returns a signal during this cycle indicating which requesting node has received access;
- cycle 3 acknowledgement 4411 : if the operation specified in the preceding slot succeeded, bus control 4315 returns an acknowledgement signal in this cycle.
- cycle 4 address 4413, specifying a second address for the operation.
- bus structure 4301 There are two general classes of operations that a node may perform with bus structure 4301 : short operations, which transfer 4 bytes of data, and long operations, which transfer 64 bytes of data. In each of these classes, there is a read operation and a write operation. Within a given slot 4402, one packet processor 4303 may perform a read operation and another a write operation of the class.
- the short operations are specified on global bus command-address channel 4307 and the long operations on payload bus command-address channel.
- the short operations are illustrated at 4425.
- the first address in slot 4402 during which the operation is requested on request command-address channel 4309 is write address 4415, if data is to be written in the operation and the last address is read address 4417, if data is to be read.
- the node that has been granted access to request bus 3305 places 4 bytes of data to be written to the address specified by the write address on request data channel 4311 in the fifth cycle of slot 4402.
- bus controller 4315 When bus controller 4315 has granted the bus for a read operation, it places a request 4421 for a node on return address channel 4321 in the fourth cycle of slot 4402. Bus controller 4315 places return address for the data 4423 on return address channel 4321 in the first cycle of the next slot 4402 and the node specified in request 4421 puts return data 4420 itself on return address channel 4321 in the third cycle of the next slot 4402.
- the long operations are shown at 4427.
- the node places read address 4417 for a long read operation on request address bus in cycle 1; the node places write address 4415 for a long write operation on request address bus in cycle 4.
- the node if the node has been granted access, it places the 64 bytes of data 4429 to be written on request data channel 4311 in 16- byte chunks in cycles 1-4 of the next slot 4402.
- bus controller 4315 places a request specifying the responding node on return address channel 4321 in the fifth cycle of slot 4402; it places the address of the requesting node on return address channel 4321 in the first cycle of the next slot 4402; the responding node places a count value 4435 indicating the number of 16-byte chunks in the return data which are valid on return address channel 4321 in the second cycle of the next slot 4402, and the responding node places the return data 4437 on return data channel 4319 in 4 16-byte chunks beginning in the third cycle of the next slot 4402.
- FIG. 45 Implementing global bus 319 and payload bus 317 on the request and return buses: FIG. 45
- FIG. 45 shows at 4501 how both global bus 319 and payload bus 317 are multiplexed onto bus structure 4301.
- slot 4402 is five cycles long, while long data to be written 4429 and long data 4437 to be returned are each four cycles long and short data to be written 4419 and short data to be returned 4420 are each a single cycle long.
- payload slot 4507 begins one cycle earlier than global slot 4503; thus long data 4429 to be written for payload slot 4507 appears on request data channel 4311 between short data 4419 to be written for global bus slot 4503 and short data 4419 to be written for global bus slot 4505.
- long return data 4437 to be returned for payload request 4509 appears on return data channel 4319 between short data to be returned for global request 4503 and short data to be returned for global request 4505.
- FIG. 45 shows how the slots 4402 for global bus 319 and payload bus 317 are divided into even slots and odd slots.
- An even slot-odd slot pair makes up a ten-cycle period 4502.
- the even and odd slots correspond to even and odd groups of packet processors 4303. Membership in the groups is as follows:
- the tokens are rotated in round-robin fashion among the packet processors in a group, with the packet processor which has the token for an operation having the highest priority for that operation in the group. If that packet processor does not request the transaction for which it has the token, the requesting packet processor nearest the token in ascending order is granted the bus.
- the maximum latency for a packet processor to receive access to the bus is 100 cycles. Slots for which no packet processor has a write request are used by queue management engine 305 to broadcast queue status reports 2915 to the packet processors.
- read address 4417 and write address 4415 are flat 32-bit addresses.
- Address 4423 on return data channel 4319 is a valid bit, followed by a processor identifier identifying the recipient as one of the packet processors, BME 315, or QME 305.
- FIG. 45 Bus access and addressing on payload bus 317: FIG. 45
- Bus access on payload bus 317 works as described above for global bus 319; again, each period 4502 is divided into an odd slot and an even slot, and the packet processors are assigned to odd and even slots as for the global bus. Again, within a single period 4502, there are slots for four payload bus transactions:
- Tokens are employed to determine priority among the packet processors as described for the global bus, except that there are no special arrangements for QME 305 or executive processor 313.
- addresses the addresses for long read and write operations are the payload buffer commands shown in FIG. 39.
- the address for return payload data on return address channel 4321 is like that for return global data, except that it additionally includes a three-bit transaction number, which bus controller 4315 copies from transaction number 3905 in the payload buffer command for which data is being returned.
- DCP 203 as a generalized data stream processor
- DCP 203 may be used in any application in which streams of data are being processed.
- DCP 203 's channel processors 307 can be configured to handle data in serial bit streams, nybble streams, and byte streams
- fabric processor 303 can handle data in streams consisting of 32-bit words.
- TLE 301 provides a mechanism for storing and processing per-data stream context information
- QME 305 provides a mechanism for passing information about payload contained in streams from the packet processor that receives the stream containing the payload to the packet processor that transmits the stream containing the payload, as well as to external units connected to QME 305.
- Fabric processor 303 permits DCP 203 to be connected to another DCP 203, to a parallel bus, or to a switching fabric, and thus permits the construction of large devices for processing data streams from a number of DCPs 203 and permits DCPs 203 to be combined with other devices for processing data streams.
- Packet processors may be programmed to handle any kind of data stream.
- the combination of a programmable SDP 420 with a programmable CPRC 401 and a DMA engine in each packet processor permits separation of the operations of extracting control data in the stream from the stream's payload, processing the control data, and transferring the payload to BME 315.
- the use of data scopes within CPRC 401 to maintain information about the current state of processing of streams by SDP 420 and the DMA engine permits processing the control data to go on in parallel with movement of the payload between BME 315 and the SDP 420 and also enormously simplifies programming of CPRC 401.
- Transmit processors and receive processors in SDP 420 can be programmed to respond to patterns in the input stream and to bit counts, and the bypass provisions permit easy configuration of the transmit processors and receive processors to deal with different types of streams. Further flexibility is gained by the provisions for configuring an SDP to recirculate a stream, the provisions for aggregating channel processors to handle high-speed serial streams or streams consisting of nybbles or bytes, and the provisions for configuring the I/O pins to work with different types of transmission media.
- DCP 203 deals with the timing constraints inherent in the processing of data streams by using a ring bus with guaranteed minimum latency for communication between packet processors and
- TLE 301 by using a slotted bus that transfers bursts of data for transfers of payload between
- BME 315 and the packet processors transfers of buffer tags from BME 315 and to packet processors, and transfers of descriptors between the packet processors and QME 305.
- Coordination between the packet processors, QME 305, and BME 315 is attained by means of a global address space which permits access by these devices to each other's local memory.
- members of the cluster have rapid access to each other's local memory.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP99924144A EP1082668A1 (en) | 1998-05-08 | 1999-05-07 | Digital communications processor |
AU40714/99A AU4071499A (en) | 1998-05-08 | 1999-05-07 | Digital communications processor |
US09/674,864 US7100020B1 (en) | 1998-05-08 | 1999-05-07 | Digital communications processor |
JP2000548818A JP2003527755A (en) | 1998-05-08 | 1999-05-07 | Digital communication processor |
US11/510,545 US7647472B2 (en) | 1998-05-08 | 2006-08-25 | High speed and high throughput digital communications processor with efficient cooperation between programmable processing components |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US8470698P | 1998-05-08 | 1998-05-08 | |
US60/084,706 | 1998-05-08 | ||
US10582398P | 1998-10-27 | 1998-10-27 | |
US60/105,823 | 1998-10-27 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/510,545 Division US7647472B2 (en) | 1998-05-08 | 2006-08-25 | High speed and high throughput digital communications processor with efficient cooperation between programmable processing components |
Publications (2)
Publication Number | Publication Date |
---|---|
WO1999059078A1 WO1999059078A1 (en) | 1999-11-18 |
WO1999059078A9 true WO1999059078A9 (en) | 2000-06-02 |
Family
ID=26771325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US1999/010002 WO1999059078A1 (en) | 1998-05-08 | 1999-05-07 | Digital communications processor |
Country Status (6)
Country | Link |
---|---|
EP (1) | EP1082668A1 (en) |
JP (1) | JP2003527755A (en) |
KR (1) | KR100633755B1 (en) |
CN (1) | CN100422976C (en) |
AU (1) | AU4071499A (en) |
WO (1) | WO1999059078A1 (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7032226B1 (en) | 2000-06-30 | 2006-04-18 | Mips Technologies, Inc. | Methods and apparatus for managing a buffer of events in the background |
US7058064B2 (en) | 2000-02-08 | 2006-06-06 | Mips Technologies, Inc. | Queueing system for processors in packet routing operations |
US7165257B2 (en) | 2000-02-08 | 2007-01-16 | Mips Technologies, Inc. | Context selection and activation mechanism for activating one of a group of inactive contexts in a processor core for servicing interrupts |
US7649901B2 (en) | 2000-02-08 | 2010-01-19 | Mips Technologies, Inc. | Method and apparatus for optimizing selection of available contexts for packet processing in multi-stream packet processing |
US7155516B2 (en) | 2000-02-08 | 2006-12-26 | Mips Technologies, Inc. | Method and apparatus for overflowing data packets to a software-controlled memory when they do not fit into a hardware-controlled memory |
US7075941B2 (en) | 2000-03-01 | 2006-07-11 | Real Communications, Inc. | Scaleable architecture for multiple-port, system-on-chip ADSL communications systems |
US6871257B2 (en) * | 2002-02-22 | 2005-03-22 | Sandisk Corporation | Pipelined parallel programming operation in a non-volatile memory system |
FR2856863B1 (en) * | 2003-06-30 | 2005-08-19 | Thales Sa | METHOD AND DEVICE FOR MANAGING REDUNDANCY OF A REDUNDANT COMMUNICATION NETWORK |
AU2003262927A1 (en) | 2003-08-27 | 2005-04-14 | Thomson Licensing S.A. | Transport network multiplexer background of the invention |
KR20060133581A (en) | 2004-02-19 | 2006-12-26 | 코닌클리즈케 필립스 일렉트로닉스 엔.브이. | An electronic stream processing circuit with test access |
US7370123B2 (en) | 2004-10-12 | 2008-05-06 | Nec Electronics Corporation | Information processing apparatus |
US7831749B2 (en) * | 2005-02-03 | 2010-11-09 | Solarflare Communications, Inc. | Including descriptor queue empty events in completion events |
US8724636B2 (en) * | 2008-03-31 | 2014-05-13 | Qualcomm Incorporated | Methods of reliably sending control signal |
US9129072B2 (en) * | 2012-10-15 | 2015-09-08 | Qualcomm Incorporated | Virtual GPIO |
US10318305B2 (en) | 2013-09-06 | 2019-06-11 | Huawei Technologies Co., Ltd. | System and method for an asynchronous processor with pepelined arithmetic and logic unit |
US9674086B2 (en) | 2013-11-05 | 2017-06-06 | Cisco Technology, Inc. | Work conserving schedular based on ranking |
CN105791296A (en) * | 2016-03-08 | 2016-07-20 | 浪潮集团有限公司 | Method for quickly scrambling and descrambling network message |
CN105847233A (en) * | 2016-03-10 | 2016-08-10 | 浪潮集团有限公司 | Switch for subfield encryption transmission |
CN105978681A (en) * | 2016-05-13 | 2016-09-28 | 浪潮集团有限公司 | Anti-eavesdrop safe switcher |
CN112486704B (en) * | 2020-11-27 | 2024-02-06 | 中船重工(武汉)凌久电子有限责任公司 | Multi-core multiprocessor synchronization and communication system based on shared storage |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4314355A (en) * | 1977-05-18 | 1982-02-02 | Martin Marietta Corporation | Apparatus and method for receiving digital data at a first rate and outputting the data at a different rate |
US4935674A (en) * | 1988-12-27 | 1990-06-19 | Rca Licensing Corporation | Digitally controlled convergence system |
KR100327712B1 (en) * | 1992-08-05 | 2002-09-09 | 디바 시스템즈 코포레이션 | Huge parallel computer device |
US5526051A (en) * | 1993-10-27 | 1996-06-11 | Texas Instruments Incorporated | Digital television system |
US5870436A (en) * | 1997-01-02 | 1999-02-09 | Raytheon Company | Uniform discrete fourier transform filter parameter encoder |
-
1999
- 1999-05-07 KR KR1020007012507A patent/KR100633755B1/en not_active IP Right Cessation
- 1999-05-07 CN CNB998080063A patent/CN100422976C/en not_active Expired - Fee Related
- 1999-05-07 JP JP2000548818A patent/JP2003527755A/en active Pending
- 1999-05-07 AU AU40714/99A patent/AU4071499A/en not_active Abandoned
- 1999-05-07 EP EP99924144A patent/EP1082668A1/en not_active Withdrawn
- 1999-05-07 WO PCT/US1999/010002 patent/WO1999059078A1/en active IP Right Grant
Also Published As
Publication number | Publication date |
---|---|
AU4071499A (en) | 1999-11-29 |
JP2003527755A (en) | 2003-09-16 |
WO1999059078A1 (en) | 1999-11-18 |
CN1319209A (en) | 2001-10-24 |
CN100422976C (en) | 2008-10-01 |
KR20010043460A (en) | 2001-05-25 |
EP1082668A1 (en) | 2001-03-14 |
KR100633755B1 (en) | 2006-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7100020B1 (en) | Digital communications processor | |
US6724767B1 (en) | Two-dimensional queuing/de-queuing methods and systems for implementing the same | |
KR100633755B1 (en) | Digital communications processor | |
US7729351B2 (en) | Pipelined packet switching and queuing architecture | |
US6226267B1 (en) | System and process for application-level flow connection of data processing networks | |
US6522188B1 (en) | High-speed data bus for network switching | |
US9300597B2 (en) | Statistics module for network processors in virtual local area networks | |
JP2003508851A (en) | Network processor, memory configuration and method | |
JP2003508954A (en) | Network switch, components and operation method | |
JP2003508967A (en) | Network switch using network processor and method | |
EP0724794A1 (en) | Error detection and correction apparatus for an asynchronous transfer mode (atm) network device | |
EP1068710A2 (en) | System and process for high-speed pattern matching for application-level switching of data packets | |
EP1072142A2 (en) | System and process for flexible queueing of data packets in network switching | |
JP2003508957A (en) | Network processor processing complex and method | |
JP2003508951A (en) | VLSI network processor and method | |
US7751422B2 (en) | Group tag caching of memory contents | |
US7940764B2 (en) | Method and system for processing multicast packets | |
US20020027909A1 (en) | Multientity queue pointer chain technique |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 99808006.3 Country of ref document: CN |
|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AL AU BA BB BG BR CA CN CU CZ EE GE HR HU ID IL IS JP KP KR LC LK LR LT LV MG MK MN MX NO NZ PL RO SG SI SK SL TR TT UA US VN YU |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): GH GM KE LS MW SD SL SZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
AK | Designated states |
Kind code of ref document: C2 Designated state(s): AL AU BA BB BG BR CA CN CU CZ EE GE HR HU ID IL IS JP KP KR LC LK LR LT LV MG MK MN MX NO NZ PL RO SG SI SK SL TR TT UA US VN YU |
|
AL | Designated countries for regional patents |
Kind code of ref document: C2 Designated state(s): GH GM KE LS MW SD SL SZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG |
|
COP | Corrected version of pamphlet |
Free format text: PAGES 1/47-47/47, DRAWINGS, REPLACED BY NEW PAGES 1/47-47/47; DUE TO LATE TRANSMITTAL BY THE RECEIVING OFFICE |
|
DFPE | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101) | ||
ENP | Entry into the national phase |
Ref document number: 2000 548818 Country of ref document: JP Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 1020007012507 Country of ref document: KR |
|
WWE | Wipo information: entry into national phase |
Ref document number: 1999924144 Country of ref document: EP |
|
WWP | Wipo information: published in national office |
Ref document number: 1999924144 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 09674864 Country of ref document: US |
|
WWP | Wipo information: published in national office |
Ref document number: 1020007012507 Country of ref document: KR |
|
WWG | Wipo information: grant in national office |
Ref document number: 1020007012507 Country of ref document: KR |