WO2002098066A2 - Cell-based switch fabric architecture on a single chip - Google Patents
Cell-based switch fabric architecture on a single chip Download PDFInfo
- Publication number
- WO2002098066A2 WO2002098066A2 PCT/CA2002/000810 CA0200810W WO02098066A2 WO 2002098066 A2 WO2002098066 A2 WO 2002098066A2 CA 0200810 W CA0200810 W CA 0200810W WO 02098066 A2 WO02098066 A2 WO 02098066A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- switch fabric
- cell
- data packet
- data
- packet
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/15—Interconnection of switching modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/201—Multicast operation; Broadcast operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3036—Shared queuing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/45—Arrangements for providing or supporting expansion
Definitions
- the present invention relates generally to the switching of packets and, more particularly, to a high capacity switch fabric that can be implemented on a single semiconductor substrate.
- a routing algorithm is performed by the hosts in the network in order to determine the path to be followed by packets having various combinations of source and destination host.
- a path typically consists of a number of "hops" through the network, each such hop designating a host with a capacity to continue forwarding the packet along the determined path. The outcome of the routing algorithm thus depends on the state and topology of the network.
- each packet has a protocol address and a label switch address.
- the protocol address identifies the destination host, while the label switch address identifies the host to which the packet is to be transmitted via the next "hop".
- the label switch address is modified but its protocol address remains unchanged.
- each host typically comprises a device known as a router, which has a routing layer for performing several basic functions for each received packet, including determining a routing path through the network and modifying the label switch address of the packet according to the determined routing path.
- the router also has a switching layer for switching the packet according to its new label switch address.
- the switching layer may be implemented by a packet switch forming part of the router.
- the packet switch commonly includes a plurality of input ports for receiving streams of packets, a switch fabric for switching each packet according to a local switch address and a plurality of output ports connected to the switch fabric and also connected to adjacent hosts in the network.
- the router upon receipt of a packet, the router analyzes the packet's protocol address or label switch address, calculates a local switch address and sends the packet to an input port of the packet switch.
- the packet switch then examines the label switch address of the packet and forwards the packet to the corresponding output port which leads to the next hop, and so on. Often, a new label switch address is applied at each hop.
- packet switches face problems inherent to the random nature of packet traffic.
- a first problematic situation may arise when two packets with different destination output ports arrive at the same input port of the switch. For example, let the destination output port of the first-arriving packet be blocked but let the destination output port of the second-arriving packet be available. If the packets are restricted to being transmitted in order of their arrival, then neither packet will be transmitted, at least until the destination output port associated with the first- arriving packet becomes free.
- This problem can be solved by providing a mechanism for transmitting packets in a different order from the one in which they arrive. This is commonly referred to in the art as "scheduling" and is performed by a scheduling processor in a central location, since decisions taken with regard to the transmission of packets to a given output port will affect the availability of that output port and will therefore affect the decisions taken with regard to the transmission of packets to that output port from other input ports.
- contention A second problematic situation, known as "contention", arises when two or more packets from different input ports are destined for the same output port at the same time. If an attempt is made to transmit both packets at the same time or within the duration of a packet interval, then either one or both packets will be lost or corrupted. Clearly, if lossless transmission is to be achieved, it is necessary to provide some form of contention resolution.
- a packet switch can be designed so as to select which input port will be allowed to transmit its packet to the common destination output port.
- the selected input port will be given permission to transmit its packet to the destination output port while the other packets remain temporarily “stalled” in their respective buffers.
- This is commonly referred to in the art as “arbitration” and is performed by a processor in a central location, since decisions taken with regard to the transmission of packets from input port A affect the throughput at the output ports, which affects the decisions taken with regard to the transmission of packets from input port B.
- the present invention provides a compact and efficient switch fabric with distributed scheduling, arbitration and buffering, as well as a relatively low requirement for memory, allowing the switch fabric to be implemented on a single mass-producible semiconductor chip.
- the invention may be summarized as a switch fabric implemented on a chip, including an array of cells and an I/O interface in communication with the array of cells for permitting exchange of data packets between the array of cells and components external to the array of cells.
- Each cell includes a transmitter in communication with the I/O interface and in communication with every other cell of the array, the transmitter being operative to process a data packet received from the I/O interface to determine a destination of the data packet and forward the data packet to at least one cell of the array selected on a basis of the determined destination.
- Each cell further includes a plurality of receivers associated with respective cells from the array, each receiver being in communication with a respective cell allowing the respective cell to forward data packets to the receiver, where the receivers are in communication with the I/O interface for releasing data packets to the I/O interface.
- the transmitter in a given cell functionally extends into those cells where dedicated receivers are located, reducing transmitter memory requirements and allowing the switch fabric to be implemented on a single chip.
- the invention may be summarized as a switch fabric implemented on a chip, including an array of cells and an I/O interface in communication with the array of cells for permitting exchange of data packets between said array of cells and components external to said array of cells.
- Each cell communicates with at least one other cell of the array, thereby permitting an exchange of data packets to take place between the cells of the array.
- Each cell includes a memory for receiving a data packet from another cell of the array as well as a control entity to control release of a data packet toward a selected destination cell of the array at least in part on a basis of a degree of occupancy of the memory in the destination cell. In this way, scheduling is distributed amongst the cells of the switch fabric.
- the invention may be summarized as a switch fabric implemented on a chip, including an array of cells and an I/O interface in communication with the array of cells permitting exchange of data packets between the array of cells and components external to the array of cells.
- Each cell communicates with at least one other cell of the array, thereby permitting exchange of data packets between the cells of the array.
- Each cell includes a memory for holding a plurality of data packets for transmission to other cells of said array.
- Each data packet of the plurality of data packets has a characteristic element represented by a parameter, the parameter allowing one data packet to be distinguished from another data packet in the plurality of data packets.
- Each cell further includes a control entity operative to select at least one data packet from the plurality of data packets at least in part on a basis of the parameter and to transmit the selected data packet to another cell of said array of cells. In this way, arbitration is distributed throughout the cells of the switch fabric.
- the invention may be summarized as a switch fabric implemented on a chip, including an array of cells and an I/O interface in communication with the array of cells for permitting exchange of data packets between the array of cells and components external to the array of cells.
- Each cell communicates with at least one other cell of the array, permitting an exchange of data packets between the cells of the array and an exchange of control information between the cells of the array.
- Each cell is operative to control transmission of data packets to other cells of the array at least in part on a basis of the control information. The control information is thus used to regulate the flow of data packets between cells.
- the invention may be summarized as a router, including a routing layer and a switching layer.
- the routing layer includes a plurality of I/O ports for exchanging data with components external to the router.
- the switching layer is adapted to switch data packets between I/O ports of the routing layer.
- the switching layer includes an array of cells in communication with the routing layer for permitting exchange of data packets between the array of cells and the routing layer.
- Each cell includes a memory for receiving a data packet from the routing layer.
- the routing layer includes a controller to control release of a data packet toward a cell of the array at least in part on a basis of a degree of occupancy of the memory in the cell.
- the invention provides a switch fabric implemented on a chip, including an array of cells and an I/O interface in communication with the array of cells for permitting exchange of data packets between the array of cells and components external to the array of cells.
- Each cell communicates with at least one other cell of the array permitting exchange of data packets between the cells of the array.
- Each cell includes a memory for receiving a data packet from the I/O interface and a control signal path for transporting a control signal to a component external to the array of cells, the control signal being indicative of a degree of occupancy of the memory.
- the invention may be summarized according to a seventh broad aspect as a router, including a routing layer and a switching layer.
- the routing layer includes a plurality of I/O ports for exchanging data with components external to the router.
- the switching layer is in communication with the routing layer in order to switch data packets between I/O ports of the routing layer.
- the routing layer includes a controller responsive to reception of a control signal containing information indicating that the switching layer is capable of accepting a data packet, to release a data packet to the switching layer.
- Fig. 1 shows, in schematic form, a switch fabric formed by an interconnection of cells, in accordance with an embodiment of the present invention
- Fig. 2 shows, in schematic form, functional modules of a cell of the switch fabric in Fig. 1 , including a transmitter, a plurality of receivers and an arbiter;
- Fig. 3 shows the format of a packet used in the switch fabric of Fig. 1 ;
- Fig. 4 shows, in schematic form, the arbiter of Fig. 2
- Fig. 5 shows, in schematic form, a receiver of Fig. 2;
- Fig. 6 shows, in schematic form, an arrangement of functional modules used in the administration of an aging policy with respect to packets stored in the receiver of Fig. 5;
- Fig. 7 shows, in schematic form, the transmitter of Fig. 2;
- Fig. 8 is a flowchart representing the operational steps executed by the queue controller of Fig. 6 in administering the aging policy
- Fig. 9 shows, in schematic form, the transmitter of Fig. 2 adapted to provide multicast functionality
- Figs. 10-12 show, in schematic form, other embodiments of the switch fabric formed by an interconnection of cells
- Fig. 13 shows a packet switch that utilizes multiple switch cards, each containing a switch fabric in accordance with the present invention
- Fig. 14 shows, in schematic form, a cell adapted to provide transmission of system packets to and from a central processing unit
- Fig. 15 shows potential path that may be taken by system packets and traffic packets through the cell of Fig. 14;
- Fig. 16 shows, in schematic form, the transmitter of Fig. 14;
- Figs. 17A and 17B show, in schematic form, a receiver of Fig. 14;
- Fig. 18 shows the format of a system packet used in the cell of Fig. 14;
- Fig. 19 shows, in schematic form, yet another embodiment of the switch fabric formed by an interconnection of cells;
- Fig. 20 shows interaction between a packet-forwarding module, an input interface and an output interface in accordance with an embodiment of the invention.
- a packet switch 105 comprising one or more line cards 106, 108, also referred to in the art as tributary cards.
- the line cards 106, 108 are connected at one end to a core network 107 or to other packet switches or routers.
- the line cards 106, 108 are connected at another end to one or more switch cards 109.
- Line cards 106 receive packets from the core network 107 and transmit them to the switch cards 109, while line cards 108 receive switched packets from the switch cards 109 and transmit them to the core network 107.
- the line cards 106 are bi-directional.
- a mid-plane (not shown) may be provided to facilitate interconnection between the line cards 106, 108 and the switch card(s) 109.
- Each switch card 109 has a plurality of input ports and a plurality of output ports. From the point of view of an individual switch card 109, the line cards 106 are input line cards as they supply packets to the input ports of the switch card 109, while the line cards 108 are output line cards as they receive packets from the output ports of the switch card 109.
- the function of a switch card 109 is to send each packet received at one of its input ports to an output port specified by or within the packet itself. In this sense, a switch card 109 exhibits self-routing functionality. To provide this functionality, in a preferred embodiment, the switch card 109 comprises a semiconductor substrate (or "wafer” or "chip”) 110 on which resides a self-routing switch fabric.
- the chip 110 may be a CMOS silicon chip to balance memory density, logic speed and development cost, but other embodiments need not be limited to CMOS, to silicon, to semiconductors or even to electronics.
- switch fabric has a meaning not restricted to traditional routing and/or packet switching applications but extends to cover other applications where a signal path is required to be established, either temporarily or permanently, between a sender and a receiver.
- Fig. 1 shows a switch fabric 100 in accordance with an embodiment of the present invention, comprising N "cells” 114j, 1 ⁇ j ⁇ N, implemented on a single chip 110 within a switch card 109.
- a "cell” is an entity that performs processing on a data packet. The processing may be switching of the data packet or another type of processing.
- the cells 114 are equipped with an input/output (I/O) interface for interfacing with an off-chip environment.
- the I/O interface refers globally to the functional element of the cell that allows it to communicate with the external world, in one example this world being the off-chip line cards 106.
- each cell 114 includes an input interface 116 for receiving packets from one or more of the input line cards 106 and an output interface 118 for providing switched packets to one or more of the output line cards 108.
- the I/O interface may be the collection of individual I/O ports on the cell.
- the input interface 116 is connected to pins on the chip 110, which pins are connected to traces 116" on the line card 109, which traces 116" connect to line cards 106 through a releasable connector 116'.
- the traces 116" need not be contained or embedded within the switch card 109 and need not be electronic; for example, in embodiments where indium phosphide based switch fabrics are contemplated, guided or free-space optical inputs and outputs may be preferred.
- the cells 114 are each equipped with one or more transmitters 140 and one or more receivers 150. Communication between the transmitters and receivers in different cells is achieved by way of a predetermined interconnect pattern 112 which includes "forward" channels and "reverse” (or “back") channels.
- the forward channels are arranged in such a way as to allow the transmitter 140 in a given cell to send packets to dedicated receivers 150 in its own cell and/or in one or more other cells.
- each receiver 150 in a given cell is dedicated to receiving packets from the transmitter 140, either in its own cell or in one of the other cells, via the appropriate forward channel.
- a transmitter functionally extends into those cells where its dedicated receivers are located, the end result being that a transmitter on a given cell need not compete with other transmitters on other cells when sending a packet.
- the back channels include dedicated connections which transport control information from a particular receiver to the associated transmitter from which it receives packets along the forward channel.
- the individual transmitters in different cells are functionally independent.
- the interconnect pattern 112 defines one or more arrays of cells.
- array is meant to designate the set of cells that are connected to one another. Therefore, a chip may have a plurality of arrays, in the instance where interconnections are such that each cell does not communicate directly with every other cell. The most basic form of array is two cells connected to one another.
- the interconnect pattern 112 allows each cell to transmit data to, receive data from, and access control information from, itself and every other cell of the switch fabric 100.
- FIG. 11 there is shown an alternative interconnect pattern 112 in which there are provided sixteen cells, each having two transmitters 140 ⁇ , 140 ⁇ and eight receivers 150.
- the sixteen cells 114 are arranged in a square matrix formation, whereby the transmitter 140A belonging to each cell located in a given row is connected to a receiver in each other cell located in the same row and the transmitter 140 ⁇ belonging to each cell located in a given column is connected to a receiver in each other cell located in the same column.
- the fact that there is one transmitter for eight receivers facilitates scaling to larger numbers of cells.
- there are two loopback receivers per cell although embodiments in which there is only one loopback receiver or no loopback receiver are also within the scope of the present invention.
- Fig. 12 partially shows yet another possible interconnect pattern within the scope of the present invention, wherein asymmetry among cells or among groups of cells is incorporated into the design.
- sixteen cells 114 again arranged in a matrix formation, each with a single transmitter 140 and one or more receivers 150.
- the structure of the interconnect of Fig. 12 is "tree"-like in nature, which may be advantageous under certain circumstances. Specifically, the tree-like structure consists of several interlinked arrays of cells.
- cell #1 is adapted to transmit packets to cells #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 and #13, while in the other array, cell #7 is adapted to transmit packets to cells #5, #6, #8, #9, #10, #11 , #12, #13, #14, #15 and #16.
- Fig. 12 shows only the connections enabling the transmission from cell #1 and cell #7.
- the cells may be physically implemented as an N/2 by 2 array as this provides an advantageous balance between the simpler wiring of an Nx1 physical implementation and the shorter wiring of a N x N physical implementation.
- a wide variety of interconnect patterns would then be possible within such a structure.
- each cell would be designed so as to contain three transmitters (one for the "column", one for the "row” and one for the "line"), as well as 24 receivers, one for each of the cells in the same column, row or line as the cell in question. If the cells are also connected in a diagonal fashion, the number of transmitters and receivers will differ amongst the cells. For example, the cell at the center of the cube will contain an additional four transmitters and 32 receivers, while the eight cells located at the apexes of the cube will each contain an additional eight receivers and one transmitter.
- Cell 114-j is seen to comprise a transmitter 140, N receivers 150-
- Other embodiments of the invention may include a central processing unit (CPU, not shown in Fig. 2) in each cell for generating and processing specialized control information.
- CPU central processing unit
- the input interface 116 and output interface 118 may communicate with the off-chip environment using a variety of media and techniques, including but not limited to sonic, radio frequency and mechanical communication.
- the input interface 116 receives packets from an off-chip packet-forwarding module 226 via a data path 252 and forwards them to the transmitter 140 via a data path 230. Occupancy information regarding the transmitter 140 is provided to the input interface 116 via a set of free_slot lines 207; the input interface 116 provides this information to the off-chip packet-forwarding module 226 along a control path 254.
- the receivers 150 are connected to the arbiter 260, which is connected to the output interface 118 via a data path 202.
- the output interface 118 supplies packets to an off-chip input queue 228 via a data path 256.
- Occupancy information regarding the off-chip input queue 228 is provided to the receivers 150 in the form of an almost Jull flag 208 that runs through the output interface 118 in the opposite direction of traffic flow. This functionality may also be provided by an external back channel.
- the interconnect pattern 112 includes "forward" channels 21 Oj, 1 ⁇ j ⁇ N, and "reverse" (or "back") channels 212 ⁇ , 1 ⁇ j ⁇ N, 1 ⁇ k ⁇ N.
- Forward channel 210j is employed by the transmitter 140 in cell 114j to send packets to a corresponding receiver 150j located on each of the cells 114 ⁇ , 1 ⁇ k ⁇ N.
- ⁇ is used by the -transmitter 140 in cell 114
- N forward channels one for each cell
- N 2 back channels one for each combination cell pairs.
- the switch fabric 100 processes data organized into packets. Each such packet has one or more words, where the size of a word is generally fixed.
- the forward channels 210 are selected to be one bit wide so as to allow data to be transferred serially.
- the forward channels 210 are selected to be at least as wide as to allow a parallel data transfer involving two or more bits in an individual word.
- the forward channels 210 are selected to be sufficiently wide so as to allow a parallel data transfer involving all the bits in an individual word.
- the back channels 212 convey control information of relatively low bandwidth compared to the required capacity of the forward channels 210, and therefore an individual back channel may be designed as a serial link or one with a low degree of parallelism compared to that of a forward channel.
- an individual back channel may be designed as a serial link or one with a low degree of parallelism compared to that of a forward channel.
- the N 2 back channels 212 carry much less information than the main data paths, they can be much narrower (i.e., one to a few bits wide) or slower than the forward channels 210; alternatively, data from multiple back channels can be multiplexed onto a single physical channel, etc. It will be noted that arrangements where the back channel is designed to convey information in a parallel fashion are within the scope of the present invention.
- packet is intended to designate, in a general sense, a unit of information.
- the scope of this definition includes, without being limited to, fixed-length datagrams, variable-length datagrams, information streams and other information formats.
- the various characteristics of a packet such as its length, priority level, destination, etc. can be supplied within the packet itself or can be provided separately.
- Fig. 3 shows in more detail the structure of a packet 350 suitable for use with the present invention.
- a first word (or group of words) of the packet 350 makes up the so-called “header” 360 and the remaining words of the packet 350 make up the so-called "payload” 370.
- the size of the header 360 is a single word and the size of the payload 370 ranges from 7 to 23 words.
- the number of words in each packet may be fixed or it may vary from one packet to another.
- the header 360 has various fields that contain control information.
- the header 360 may include a destination field 362, a priority field 364 and a source field 366.
- the destination field 362 specifies the cell from which it is desired that the packet eventually exit the switch fabric 100. This cell may be referred to as the "destination cell”.
- the destination field 362 may encode the destination cell in any suitable way, for example using a binary code to represent the destination cell or using a binary mask with a logic "1" in the position of the destination cell.
- the priority field 364 encodes a priority level associated with the packet 350.
- the priority level associated with a packet 350 basically indicates to the switch fabric 100 the relative urgency with which the packet in question is to be forwarded to its destination cell.
- the set of possible priority levels may include a finely graduated range encoded by, say, 8 bits (representing values between 0 and 255, inclusively). In other embodiments, the set of possible priority levels may consist simply of "high”, “medium” and "low” priority levels.
- the source field 366 is optional in the case where a single switch fabric is considered in isolation. However, when multiple switch fabrics 100 of the type shown in Fig. 1 are interconnected, it may be useful for a downstream switch fabric that processes a packet received from an upstream switch fabric to know which cell on the upstream switch fabric actually sent the packet. Such information may suitably be contained in the source field 366 of the header 360 of the packet 350.
- header fields may be used to store additional control information related to the packet 350.
- a packet destined for the CPU in the destination cell may be so identified in the header, as will a packet that has been generated by the CPU in a given cell.
- the header 360 may also contain a series of one or more "switch fabric chip" exit ports defining a predetermined path through a multi-stage fabric.
- switch fabric chip exit ports defining a predetermined path through a multi-stage fabric.
- there may be one or more sub-ports. The sub-port for which a particular packet is destined may be identified in a field of the packet's header 360.
- each word generally has a fixed number of bits (i.e., each word is of a fixed "width").
- a word may include, say, 33 bits, among which 32 bits may carry actual information (which is of a different type for the header 360 and for the payload 370), and the 33 rd bit may be an "end-of-packet" bit 368 that is set for a particular word when that word is a predetermined number of words from the end of the packet to which it belongs.
- EOP end-of-packet
- a packet travelling through the switch fabric 100 of Fig. 2 undergoes three main stages of transmission.
- the first stage involves the packet being transmitted from the off-chip environment to a given cell, say cell 114j, via that cell's input interface 116; upon receipt, the transmitter 140 begins the process of writing the packet into a memory location in that cell.
- the second stage involves the packet being sent from the transmitter 140 in cell 114j along the corresponding forward channel 21 Oj to receiver 150j residing in the destination cell; upon receipt, the packet is written into a memory location by receiver 150j in the destination cell.
- the third stage involves the packet being sent from receiver 150j in the destination cell via the arbiter 260 and through output interface 118 of that cell.
- the output interface 118 is connected to the off-chip input queue 228 which provides additional buffering and feedback on the state of this buffering, thus allowing an over-provisioned switch fabric to deliver bursts that temporarily exceed the capacity of the next link.
- a packet having a given priority level is transmitted at a particular stage only if there is sufficient room downstream to accommodate the packet, taking into consideration its priority level.
- This functionality is achieved by providing a packet transmission control mechanism at each stage of transmission in order to regulate packet flow and achieve the most desired overall functionality.
- the off-chip packet-forwarding module 226 controls the flow of packets to cell 114j from the off-chip environment by consulting occupancy information provided by the transmitter 140 via control path 254.
- occupancy information provided by the transmitter 140 via control path 254.
- An example off-chip packet-forwarding module 226 will be described in greater detail later on; for now, it is sufficient to mention that it is advantageous to use the occupancy information in order to ensure that transmission of a packet to cell 114j only occurs if the transmitter 140 can accommodate that packet.
- the control mechanism if lossless transmission is to be supported, it is advantageous for the control mechanism to ensure that the transmitter 140 in cell 114j does not send the packet to receiver 150 j in the destination cell unless the receiver in question can accommodate that packet.
- the destination cell may be cell 114j itself but is more generally denoted 114j, 1 ⁇ j ⁇ N).
- An example embodiment of such a control system is described herein below; for now, it is sufficient to mention that the transmitter 140 in cell 114j uses back channel 212j j to monitor the status (occupancy) of individual memory locations in receiver 150j in cell 114,, thereby to determine whether a packet can be accommodated by that receiver.
- receiver 150j in the destination cell relies on the almost_full flag 208 that provides occupancy information regarding the off-chip input queue 228.
- This control mechanism is described herein below in greater detail; for now, it is sufficient to mention that receiver 150j in the destination cell is prevented from requesting transmission of a packet unless it can be accommodated by the off-chip input queue 228.
- the transmitter 140 has a memory which includes various storage areas, including a data memory 702, a plurality of control memories 712, any memory used by a plurality of queue controllers 710 and any other memory used by the transmitter 140.
- the transmitter 140 receives words from the input interface 116 along the data path 230.
- the words are fed to the data memory 702 via a set of data input ports.
- the data memory 702 is writable in response to receipt of a write address and a write enable signal from a packet insertion module 704 via a write_address line 716 and a write_enable line 718, respectively.
- the write_address line 716 carries the address in the data memory 702 to which the word presently on the data path 230 is to be written, while asserting a signal on the writejenable line 718 triggers the actual operation of writing this word into the specified address.
- the data path 230 may pass through an optional delay element 706 before entering the data input ports of the data memory 702.
- the data memory 702 comprises N segments 713, one for each of the N cells on the chip 110.
- the j th segment 713j has the capacity to store a total of M packets destined for cell 114j. More specifically, the j" 1 segment 713; includes M slots 708J A, 708J B, ..., each slot being of such size as to accommodate a packet. It should be understood that the invention is applicable to any suitable combination of N and M, depending on the operational requirements of the invention.
- the data memory 702 may include a pool of memory that is capable of storing portions of incoming data streams.
- each segment 713j of the data memory 702 is a dedicated one of the queue controllers 710, specifically queue controller 710j.
- Queue controller 71 Oj has access to an associated control memory 712j.
- the control memory 712 holds data representative of a degree of occupancy of the corresponding segment 713j of the data memory 702.
- the term "degree of occupancy" should be understood to include information indicative of the amount of space in the data memory 702 and includes any data that can directly or indirectly provide such information. In some embodiments, this information may be expressed as a degree of vacancy or occupancy.
- control memory 712 includes a plurality of entries 714j A.
- control memory 712j and/or the entries 714J A. 714 j,B> • ⁇ •> 7 ⁇ M ma y ta ke tne form °f registers, for example.
- Different slots can be associated with different priority levels or, if there is a large number of possible priority levels, different slots can be associated with different priority "classes", such as "low”, “medium” and “high”. For example, given 256 possible priority levels (0 to 255), the low and medium priority classes could be separated by a "low-medium” priority threshold corresponding to a priority level of fabric 100, while the medium and high priority classes could be separated by a "medium-high" priority threshold corresponding to a priority level of 200.
- each segment includes at least one slot per priority class.
- the j" 1 segment 713j of the data memory 702 may contain five slots 708J I A, 708J J EJ, 7 08j,C> 708j rj. 708j E, where slots 708J A and 708j B are associated with a high priority class, slots 708J C and 708J D are associated with a medium priority class and slot 708J E is associated with a low priority class.
- the present invention includes other numbers of slots per segment and other associations of slots and priority classes. For example, an embodiment could allow high-priority packets into any slot while reserving some slots exclusively for high-priority packets.
- the packet insertion module 704 is operable to monitor the EOP bit 368 on each word received via the data path 230 in order to locate the header of newly received packets. It is recalled that the EOP bit 368 undergoes a transition (e.g., falling edge) for the word that occurs in a specific position within the packet to which it belongs. In this way, detection and monitoring of the EOP bit 368 provides the packet insertion module 704 with an indication as to when a new packet will be received and, since the header 360 is located at the beginning of the packet, the packet insertion module 704 will know when the header 360 of a new packet has arrived.
- a transition e.g., falling edge
- the packet insertion module 704 is further operable to extract control information from the header 360 of each newly received packet. Such information includes the destination of a newly received packet and its priority level for the purposes of determining into which slot it should be placed in the data memory 702.
- the packet insertion module 704 first determines into which segment a newly received packet is to be loaded. This is achieved by determining the cell for which the packet is destined by extracting the destination field from the header of the newly received packet.
- the destination field identifies one of the N cells 114 as the destination cell.
- the destination cell may be cell 114j itself but is more generally denoted 114j. Having determined the set of slots associated with the destination cell 114j, the packet insertion module 704 determines the slot into which the received packet should be inserted. This is achieved by determining the priority class of the received packet and verifying the availability of the slot(s) associated with that priority class.
- the packet insertion module 704 determines the priority class of a packet by comparing the priority level of the packet to the previously defined priority thresholds. For example, let slots 708J A> 7 08J B, 708 j,O 708 j,D- 708 j,E be associated with high, high, medium, medium and low priority levels, respectively. Also, let the low-medium priority threshold and the medium-high priority threshold be as defined previously, namely, at 100 and 200, respectively. If the priority level of the received packet is 167, for example, then the appropriate slots into which the packet could be written include slots 708J C and 708j D-
- the packet insertion module 704 determines which of the appropriate slots is available by communicating with queue controller 710j, to which it is connected via a respective queue_full line 726j and a respective new acket line 728j.
- a bus structure could be used to connect the packet insertion module 704 and the queue controllers 710. In either case, the packet insertion module 704 obtains the status (i.e., occupied or unoccupied) of the slots associated with the priority class of the received packet via the queue ull line 726j.
- the status information may take the form of a bit pattern which includes a set of positioned bits equal in number to the number of slots, where a logic value of 0 in a particular position signifies that the corresponding slot is unoccupied and where a logic value of 1 in that position signifies that the corresponding slot is indeed occupied.
- queue controller 710j would supply the occupancy of slots 08J C and 708J D via the queue_full line 726j. This information is obtained by consulting entries 714J C and 714J D in control memory 712j. Of course, it is within the scope of the invention for queue controller 710j to provide, each time, the occupancy of all the slots in memory segment 713j.
- the packet insertion module 704 determines a corresponding base address in the data memory 702. This may be done either by computing an offset that corresponds to the relative position of the segment and the relative position of the slot or by consulting a lookup table that maps segment and slot combinations to addresses in the data memory 702.
- the packet insertion module 704 is adapted to provide the base address to the data memory 702 via the writejaddress line 716 and is further adapted to assert the writejenable line 718. At approximately the same time, the packet insertion module 704 sends a signal to queue controller 710j along the appropriate newjpacket line 728j, such signal being indicative of the identity of the slot that is being written to and the priority level of the packet which is to occupy that slot. Queue controller 710j is adapted to process this signal by updating the status and priority information associated with the identified slot (which was previously unoccupied).
- the address on the writejaddress line 716 is then incremented at each clock cycle (or at each multiple of a clock cycle) as new words are received along the data path 230. This will cause the words of the packet to fill the chosen slot in the data memory 702. Meanwhile, the packet insertion module 704 monitors the EOP bit 368 in each received word. When a new packet is detected, the above process re-starts with extraction of control information from the header 360 of the newly received packet.
- the data memory 702 is also readable in response to a read address supplied by an arbiter 760 along a readjaddress line 792. In one embodiment, this may be implemented as a dual-port random access memory (RAM). In another embodiment, multiple data memories 702 may share a read port while each having an independent write port.
- the arbiter 760 initiates reads from the data memory 702 as a function of requests received from the plurality of queue controllers 710 via a corresponding plurality of request lines 703. A particular request line 703j will be asserted if the corresponding queue controller 710j is desirous of forwarding a packet to receiver 150j in cell 114j.
- queue controller 710j is operable to generate a request for transmitting one of the possible multiplicity of packets occupying the slots 08J . 708 j,B' •••> 708 j,M in tne data memory 702.
- the identity of the slot chosen to be transmitted is provided along a corresponding one of a plurality of slotjd lines 705j while the priority associated with the chosen slot is provided on a corresponding one of a plurality of priority lines 707j.
- Each queue controller 710j implements a function which determines the identity of the occupied slot which holds the highest-priority packet that can be accommodated by the receiver in the destination cell.
- This function can be suitably implemented by a logic circuit, for example.
- each of the queue controllers 710j in the transmitter 140 in cell 114j can be designed to verify the entries in the associated control memory 712j in order to determine, amongst all occupied slots associated with segment 713j in the data memory 702, the identity of the slot holding the highest-priority packet.
- Queue controller 710j assesses the ability of the receiver in the destination cell (i.e., receiver 150j in cell 114j) to accommodate the packet in the chosen slot by processing information received via the corresponding back channel 212j j.
- receiver 150j in cell 114j will comprise a set of M* slots similar to the M slots in the j th segment 713j of the data memory 702, although M* may be different from M.
- the information carried by back channel 212j j in such a case will be indicative of the status (occupied or unoccupied) of each of these M * slots. (Reference may be had to Fig. 5, where the receiver slots are denoted 508. This Figure will be described in greater detail later on when describing the receiver.)
- queue controller 71 Oj in cell 114j has knowledge of whether or not its highest- priority packet can be accommodated by the associated receiver 150j in cell 114j.
- queue controller 71 Oj places the identity of the associated slot on the corresponding slotjd line 705j, places the priority level of the packet on the corresponding priority line 707j and submits a request to the arbiter 760 by asserting the corresponding request line 703j. However, if the highest-priority packet cannot indeed be accommodated, then queue controller 71 Oj determines, among all occupied slots associated with the segment 713j in the data memory 702, the identity of the slot holding the next-highest-priority packet. As before, this can be achieved by processing information received via the corresponding back channel 212j j.
- queue controller 710j places the identity of the associated slot on the corresponding slotjd line 705j, places the priority level of the packet on the corresponding priority line 707j and submits a request to the arbiter 760 by asserting the corresponding request line 703j.
- queue controller 71 Oj determines, among all occupied slots associated with the segment 713j in the data memory 702, the identity of the slot holding the next-next-highest-priority packet, and so on. If none of the packets can be accommodated or, alternatively, if none of the slots are occupied, then no request is generated by queue controller 710j and the corresponding request line 703j remains unasserted.
- queue controller 710j Assuming that queue controller 710j has submitted a request and has had its request granted, it will be made aware of this latter fact by the arbiter 760.
- This exchange of information can be achieved in many ways.
- the arbiter 760 may identify the queue controller whose request has been granted by sending a unique code on a grant line 711 and, when ready, the arbiter 760 may assert a grantjenable line 715 shared by the queue controllers 710.
- Queue controller 710j may thus establish that its request has been granted by (i) detecting a unique code in the signal received from the arbiter via the grant line 711; and (ii) detecting the asserted grantjenable line 715.
- queue controller 71 Oj Upon receipt of an indication that its request has been granted, queue controller 71 Oj accesses the entry in the control memory 712j corresponding to the slot whose packet now faces an imminent exit from the data memory 702 under the control of the arbiter 760. Specifically, queue controller 710j changes the status of that particular slot to "unoccupied", which will alter the result of the request computation logic, resulting in the generation of a new request that may specify a different slot. The changed status of a slot will also be reflected in the information subsequently provided upon request to the packet insertion module 704 via the corresponding queue_full line 726j.
- queue controller 710j asserts a corresponding pointer jjpdate line 729j which returns back to the arbiter 760.
- assertion of one of the pointerjjpdate lines 729j indicates to the arbiter 760 that the grant it has issued has been acknowledged, allowing the arbiter 760 to proceed with preparing the next grant, based on a possibly new request from queue controller 710j and on pending requests from the other queue controllers 710.
- the function of the arbiter 760 is to grant one of the requests received from the various queue controllers 710 and to consequently control read operations from the data memory 702.
- the arbiter 760 comprises a request- processing module 770, an address decoder 780 and a packet-forwarding module 790.
- the request-processing module 770 receives the request lines 703, the priority lines 707 and the pointerjjpdate lines 729 from the queue controllers 710.
- the request-processing module 770 functions to grant only one of the possibly many requests received from the queue controllers 710.
- the request-processing module 770 has an output which is the grant line 711.
- the grant line 711 is connected to each of the queue controllers 710, as well as to the address decoder 780. In one embodiment of the present invention, the grant line 711 utilizes a unique binary code to identify the queue controller whose request has been granted.
- the address decoder 780 receives the grant line 711 from the request-processing module 770 and the slotjd lines 705 from the queue controllers 710. The address decoder 780 computes a base address in the data memory 702 that stores the first word of the packet for which transmission has been granted. The base address is provided to the packet-forwarding module 790 via a basejaddress line 782.
- the packet-forwarding module 790 receives, via the basejaddress line 782, the location of the first word of the next packet that it is required to extract from the data memory 702.
- the packet-forwarding module 790 stores the initial address on the basejaddress line 782. Once it has finished reading the current packet from the data memory 702, the packet-forwarding module 790, asserts the grantjenable line 715 and proceeds to cause words to be read from the data memory 702, starting at the initial address.
- the request processing section 770 comprises a request generator 420, which is connected to the queue controllers 710 via the request lines 703 and the priority lines 707.
- the request generator 420 is also connected to a programmable round-robin arbiter (PRRA) 422 via a plurality of request lines 424 and may further be connected to a pointer control entity 412 via a control line 413.
- PRRA programmable round-robin arbiter
- the request generator 420 is adapted to admit only those requests associated with the maximum priority level amongst all the priority levels specified on the priority lines 707.
- the request generator 420 may be implemented as a maximum comparator that outputs the maximum value of the (up to N) received priority levels; this maximum value is then compared to all of the received priority levels on the priority lines 707, which would result in an individual one of the request lines 424 being asserted when the corresponding one of the request lines 703 is associated with the maximum priority level; the other request lines 424 would remain unasserted.
- the queue controllers 710 will generate new requests on the request lines 703, causing the output of the request generator 420 to change over time.
- the requests on the request lines 424 are processed by the PRRA 422.
- the PRRA 422 has an output that is the shared grant line 711 that is provided to the queue controllers 710, to the pointer control entity 412 and to an address decoder 780.
- the grant line 711 identifies the queue controller whose request has been granted, suitably in the form of a binary code which can uniquely identify each of the queue controllers 710.
- a pointer and a mask are defined for each of one or more possible priority levels.
- the mask associated with a given priority level indicates which queue controllers associated with that priority level remain as yet ungranted, while the pointer associated with a given priority level indicates which of the queue controllers 710 was the most recent one to have its request granted.
- the pointer control entity 412 submits only one pointer and one mask to the PRRA 422 at any given time.
- the pointer control entity 412 requires knowledge of the information on the request lines 703 and the priority lines 707. This knowledge may be obtained either directly or from the request generator 420 via the control line 413.
- the pointer control entity 412 requires knowledge of the information circulating on the pointerjjpdate lines 729 received from the queue controllers 710. As may be appreciated from the following, the pointer and mask submitted to the PRRA 422 allow it to be "fair” in deciding which should be the next queue controller to see its request granted.
- a pointer and a mask are not defined for each possible priority level, but rather for each of a set of priority classes, namely high, medium and low. Also, there are assumed to be four queue controllers 710 ⁇ , 7102, 71 ⁇ 3. 7104 that submit requests to the request generator 420.
- the requests from queue controllers 710-j , 7102, 7103, 7104 be associated with medium, NONE, low and medium priority classes, respectively. That is to say, queue controller 7102 has not submitted a request. Accordingly, the initial "high” mask would be 0000 (as no request has a high priority class), the initial "medium” mask would be 1001 (as queue controllers 710-
- the maximum priority class is medium.
- the request generator 420 submits only queue controller 710-
- the pointer control entity 412 provides the medium pointer and the medium mask to the PRRA 422.
- the first request to be granted would thus be the either one submitted by either queue controller 710-] or the one submitted by queue controller 7104.
- the medium pointer is zero, the PRRA 422 has the choice of which request to grant; this can be resolved by providing simple, passive logic to make the selection. Without loss of generality, let the very first granted request be that submitted by queue controller 710-
- the signal on the grant line 711 could accordingly be set to encode the value "1", indicative of the subscript 1 in 710-j .
- queue controller 710- is adapted to acknowledge the grant of its request by way of the pointerjjpdate line 729-j . Receipt of any acknowledgement by the pointer control entity 412 causes it to update its "active" pointer (namely, the one being provided to the PRRA 422). In this case, the acknowledgement received from queue controller 710-j causes the pointer control entity 412 to update the medium pointer to 1000.
- will update the occupancy information in the appropriate entry in control memory 712-
- 's request has the same priority class as before, namely, medium. This causes the medium mask to become 0001 , indicating that queue controller 7104's request still has not been granted in this round.
- queue controller 7103 submits a high-priority request. This causes only queue controller 7103's request to make it past the request generator 420.
- the PRRA 422 therefore has no choice but to grant queue controller 7103's request.
- the signal on the grant line 711 could accordingly be set to encode the value "3", indicative of the subscript 1 in 7103.
- Queue controller 7103 subsequently acknowledges the grant of its request by asserting the corresponding pointerjjpdate line 7293. Receipt of this acknowledgement by the pointer control entity 412 causes it to update its active pointer, in this case the high pointer, which will become 0010. Note that since its request has been granted, queue controller 71O3 may now submit a new request but assume for the purposes of this example that it does not. The situation reverts to the previous one where the requests having the maximum priority class are again those coming from queue controllers 710-
- the request generator 420 submits only queue controller 7103's request and queue controller 71 ⁇ 4's request to the inputs of the PRRA 422, while the pointer control entity 412 provides the medium pointer (1000) and the medium mask (0001) to the PRRA 422.
- the PRRA 422 has no choice but to grant queue controller 7104, even though queue controller 710 ⁇ also submitted a request having the same priority class. Still, this outcome is fair because queue controller 710-
- pointer control entity 412 allows the PRRA 422 to grant requests in a truly fair manner; in the above example, queue controller 710-
- pointer control entity 412 is useful in transforming the PRRA 422 into a fair round robin arbitrator, it is not an essential requirement of the invention. In fact, even a simple priority comparator would achieve the task of admitting only one of the requests and blocking the rest.
- the output of the grant line 711 at the output of the PRRA could be set to encode a value that does not identify any of the queue controllers, for example "FFFFFFFF” or "deadcode” in hexadecimal.
- the code specified in the signal on the grant line 711 is also provided to the address decoder 780.
- the address decoder 780 is adapted to compute a base address as a function of the code specified on the grant line 711 and on the contents of the particular slotjd line indexed by the code specified on the grant line 711. That is to say, the address decoder 780 uses the grant line to identify a segment in the data memory 702 and to index the slotjd lines 705 in order to identify a slot within the identified segment.
- the address decoder 780 may comprise a multiplexer 784 and a combiner 786.
- the multiplexer 784 receives the slotjd lines 705 and is selectable by the grant line 711.
- the grant line 711 and the output of the multiplexer 784 feed into the combiner 786.
- the combiner 786 is operable to output a base address which is equal to the sum of the segment size (i.e., M x the packet size) times the code specified on the grant line and the packet size times the output of the multiplexer 784.
- the base address is provided to the packet-forwarding module 790 along the basejaddress line 782.
- the signal provided on the basejaddress line 782 can also be set to encode a predetermined code that does not refer to any address in the data memory 702, for example "FFFFFFFF” or “deadcode” in hexadecimal.
- the packet-forwarding module 790 receives the base address from the address decoder 780 along the basejaddress line 782.
- the base address indicates the starting address of the next packet to be read out of the data memory 702 by the packet-forwarding module 790.
- the packet-forwarding module 790 in the arbiter 760 in cell 114j may be in the process of placing a current packet onto the forward channel 21 Oj and thus the packet-forwarding module 790 is operable to wait until it has finished reading out the current packet before beginning to cause the next packet to be read from the data memory.
- the packet-forwarding module 790 monitors the EOP bit 368 of each word being forwarded along forward channel 21 Oj by the data memory 702.
- the EOP bit 368 from successive words forms a EOP bit stream which will undergo a transition (e.g., falling edge) at a predetermine number of words prior to the end of the packet. In this way, the packet-forwarding module 790 knows when it is near the end of a packet.
- the packet-forwarding module 790 Upon detecting a falling edge in the EOP bit stream, the packet-forwarding module 790 records the base address provided on the basejaddress line 782 and triggers the next grant via the grantjenable line 715. The packet-forwarding module 790 then proceeds to cause the words of the next packet to be read from the data memory 702. This is achieved by providing a read address along a readjaddress line 792. The first address placed on the readjaddress line 792 is the base address and the address is incremented until the end of this next packet is detected, and so on.
- Assertion of the grantjenable line 715 causes the following chain reaction. Specifically, assertion of the grantjenable line 715 will affect only the queue controller whose request has been granted. Assume, for the sake of this example, that this queue controller is queue controller 710j, and that it had requested transmission of the packet in slot 708j ⁇ . Upon detection of the grantjenable line 715 being asserted, queue controller 710j will send an acknowledgement via the corresponding pointerjjpdate line 729j, which will trigger an update in the active pointer stored by the pointer control entity 412 and used by the PRRA 422. In addition, queue controller 710j will access entry 714j ⁇ , which is associated with slot 708J B- More specifically, it will modify the occupancy status of slot 708j g to indicate that this slot is no longer occupied.
- Modification of the occupancy status of slot 708j ⁇ may cause one or more of the following: (i) Firstly, the change in occupancy status may cause the logic in the queue controller 71 Oj to update the signals on the corresponding request line 703j, slotjd line 705j and priority line 707J; (ii) Secondly, the change in occupancy status will be signaled to the packet insertion module 704 via the queue ull line 726j, which may change the outcome of the decision regarding where a received packet may be inserted; (iii) Thirdly, the change in occupancy status will be sent to the input interface 116 via the freejslot line 207J; the input interface 116 subsequently alerts the off-chip packet-forwarding module 226 that there is room in slot 708j B, which may trigger the transmittal of a new packet to the transmitter 140 via the input interface 116.
- a packet transmitted from one cell 114j arrives at the corresponding receiver 150j in one or more cells (possibly including cell 114j itself) by virtue of the corresponding shared forward channel 210j.
- some of the cells receiving the packet will be destination cells for that packet while others will not.
- the structure and operation of a receiver, say, receiver 150j in cell 114j is now described with reference to Fig. 5.
- the receiver 150j has a memory which includes various storage areas, including a data memory 502, a control memory 512, any memory used by a queue controller 510 and any other memory used by the receiver 150j. Words received via forward channel 210j and destined for receiver 150j in cell 114 ⁇ are fed to the data memory 502 via a plurality of data input ports.
- the data memory 502 is writable in response to a write address and a write enable signal received from a packet insertion module 504 via a writejaddress line 516 and a writejenable line 518, respectively.
- the writejaddress line 516 carries the address in the data memory 502 to which the word presently on the forward channel 210j is to be written, while the actual operation of writing this word into the specified address is triggered by asserting a signal on the writejenable line 518.
- the forward channel 21 Oj may pass through an optional delay element 506 before entering the data input ports of the data memory 502.
- the data memory 502 contains M * slots 508A. 508 ⁇ 508
- the data memory 502 may be referred to as a sector of memory and slots 508 may be referred to as subdivisions.
- the total data memory requirement for the chip 110 is on the order of N x ((N x M) + (N x M*)) packets, which is equal to N 2 x (M + M*) packets, not counting the memory requirement of the other components such as the queue controllers, PRRA, etc.
- the total memory requirement for the chip 110 is a quadratic function of the number of cells and a linear function of both M and M * . Given a fixed number of cells, the memory requirement can be tamed only by varying M and M*. It is therefore of importance to pay attention to the values of M and M * when aiming for a design that requires all the cells to fit on a chip.
- M* and M are also important. For instance, to make M * greater than M would mean that more packets can be stored in the receiver than in the segment of the transmitter dedicated to that receiver. Although this option is within the scope of the present invention, it is does not allow all M * slots of the receiver to be kept busy, thereby missing out on an otherwise available degree of parallelism. A borderline case, also within the scope of the invention, arises where M* is equal to M, although even a single-cycle latency will put a high degree of parallelism out of reach.
- the preferred approach is to make M * (the receiver data memory size) less than M (the transmitter per-segment data memory size).
- M * the receiver data memory size
- M the transmitter per-segment data memory size
- M* just slightly less than M in order to minimize overall memory.
- M* just large enough to accommodate a small number of packets associated with each priority "rank" (e.g., high, medium low) to allow additional packets of a given priority to be received while status information is returned via the appropriate back channel, while making M equal to or slightly less than the double of M*.
- suitable values of M and M* include, but are not limited to 3 and 5, respectively or 4 and 7, respectively.
- the data memory 502 includes three slots 508A, 508B, 508C, where slot 508A is associated with a high priority class, slot 508 ⁇ is associated with a medium priority class and slot 508c is associated with a low priority class.
- the receiver 150j also comprises queue controller 510.
- Queue controller 510 has access to control memory 512 which is subdivided into a plurality of entries 514A, 514 ⁇ , ..., 514
- the entries 514A, 514 ⁇ , .... 514M* may take the form of registers, for example.
- the control memory 512 may store a degree of occupancy or vacancy of the data memory 502.
- the packet insertion module 504 is operable to monitor the EOP bit 368 on each word received via the forward channel 210j in order to locate the header of newly received packets. It is recalled that the EOP bit 368 undergoes a transition (e.g., falling edge) for the word that occurs in a specific position within the packet to which it belongs. In this way, detection and monitoring of the EOP bit 368 provides the packet insertion module 504 with an indication as to when a new packet will be received and, since the header 360 is located at the beginning of the packet, the packet insertion module 504 will know where to find the header 360 of a newly received packet. The packet insertion module 504 extracts control information from the header 360 of each newly received packet.
- a transition e.g., falling edge
- Such information includes the destination of a newly received packet and its priority level for the purposes of determining into which slot it should be placed in the data memory 502.
- the packet insertion module 504 accepts packets destined for cell 114 ⁇ and ignores packets destined for other cells.
- the packet insertion module 504 also determines the slot into which an accepted and received packet should be inserted. This is achieved by determining the priority class of the received packet and verifying the availability of the slot(s) associated with that priority class.
- the packet insertion module 504 in cell 114 ⁇ is operable to verify whether the destination specified in the destination field 360 of the received packet corresponds to cell 114 - In the case where all packets are non-multicast packets, each packet specifies but a single destination cell and hence this portion of the packet insertion module 504 functionality may be achieved by a simple binary comparison. Packets found to be destined for cell 114j ⁇ are accepted for further processing while others are ignored.
- the packet insertion module 504 is operable to determine the priority class of the packet by comparing the priority level of the packet to the previously defined priority thresholds.
- the priority level of the packet is 83, for example, then the slot into which it should be written would be slot 508c-
- the packet insertion module 504 knows that it can write the received packet into slot 508c because, it will be recalled, the packet could only be transmitted on the forward channel 210j if the corresponding slot were available in the first place. Nonetheless, it is within the scope of the present invention to include larger numbers of slots where more than one slot would be associated with a given priority class, which may require the packet insertion module 504 to verify the occupancy of the individual slots 508 by consulting a queue Jull line 526 received from the queue controller 510.
- the packet insertion module 504 determines a corresponding base address in the data memory 502 into which the first word of the packet is to be written. This may be done either by computing an offset which corresponds to the relative position of the chosen slot (in this case slot 508c) or by consulting a short lookup table that maps slots to addresses in the data memory 502.
- the packet insertion module 504 is operable to provide the base address to the data memory 502 via the writejaddress line 516 and is further operable to assert the writejenable line 518. At approximately the same time, the packet insertion module 504 sends a signal to the queue controller 510 along a newj acket line 528, such signal being indicative of the identity of the slot which is being written to and the priority level of the packet which shall occupy that slot.
- the queue controller 510 is adapted to process this signal by updating the status and priority information associated with the identified slot (which was previously unoccupied).
- the address on the writejaddress line 516 is then incremented at each clock cycle (or at each multiple of a clock cycle) as new words are received along the forward channel 210j. This will cause the words of the packet to fill the chosen slot in the data memory 502. Meanwhile, the EOP bit 368 in each received word is monitored by the packet insertion module 504. When a new packet is detected, the above process re-starts with extraction of control information from the header 360 of the newly received packet.
- the data memory 502 is also readable in response to receipt of a read address supplied along a corresponding readjaddress line 593j by an arbiter 260 common to all receivers 150 in the cell 114j .
- the arbiter 260 initiates reads from the data memory 502 as a function of requests received from the queue controller 510 on each of the receivers 150 via a corresponding plurality of request lines 503.
- a particular request line 503j will be asserted if the queue controller 510 in the corresponding receiver 150j is desirous of forwarding a packet to the off-chip input queue 228.
- Embodiments of the invention may include, without being limited to the use of, dual ported RAM or single ported RAM.
- the queue controller 510 in receiver 150j which is adapted to generate a request for transmission of a received packet.
- the queue controller 510 is operable to generate a request for transmitting one of the possible multiplicity of packets occupying the slots 508A, 508B, ••-, 508
- the identity of the slot chosen to be transmitted is provided along a corresponding slotjd line 505j, while the priority associated with the chosen slot is provided on a corresponding priority line 507 'J;-
- the queue controller 510 implements a function which verifies the entries in the control memory 512 in order to determine the identity of the occupied slot which holds the highest-priority packet that can be accommodated by the off-chip input queue 228.
- This function can be suitably implemented by a logic circuit, for example.
- the queue controller 510 is designed to determine, amongst all occupied slots in the data memory 502, the identity of the slot holding the highest-priority packet. The queue controller 510 then assesses the ability of the off-chip input queue 228 to accommodate that packet by processing information received via the almost Jull flag 208.
- the almost ull flag 208 may consist of a plurality of almostjull flags, one for each priority class (high, medium, low). This allows preferential treatment for high-priority packets by setting the occupancy threshold for asserting the high-priority almostjull flag higher than the threshold for asserting the low-priority almost Jull flag.
- the queue controller 510 places the identity of the associated slot on the corresponding slotjd line 505j, places the priority level of the packet on the corresponding priority line 507j and submits a request to the arbiter 260 by asserting the corresponding request line 503j.
- the queue controller 510 determines, among all occupied slots in the data memory 502, the identity of the slot holding the next- highest-priority packet. As before, this can be achieved by processing information received via the almost Jull ⁇ ag 208.
- queue controller 510 places the identity of the associated slot on the corresponding slotjd line 505j, places the priority, level of the packet on the corresponding priority line 507j and submits a request to the arbiter 260 by asserting the corresponding request line 503j.
- the queue controller 510 determines, among all occupied slots in the data memory 502, the identity of the slot holding the next-next-highest-priority packet, and so on. If none of the packets can be accommodated or, alternatively, if none of the slots are occupied, then no request is generated by the queue controller 510 and the corresponding request line 503j remains unasserted.
- the arbiter 260 may identify the receiver containing the queue controller whose request has been granted by sending a unique code on a common grant line 511 and, when ready, the arbiter 260 may assert a grantjenable line 515 shared by the queue controller 510 in each of the receivers 150.
- the queue controller 510 may thus establish that its request has been granted by (i) detecting a unique code in the signal received from the arbiter 260 via the grant line 511 ; and (ii) detecting the asserted grantjenable line 515.
- the queue controller 510 Upon receipt of an indication that its request has been granted, the queue controller 510 accesses the entry in the control memory 512 corresponding to the slot whose packet now faces an imminent exit from the data memory 502 under the control of the arbiter 260. Specifically, the queue controller 510 changes the status of that particular slot to "unoccupied", which will alter the result of the request computation logic, resulting in the generation of a new request which may specify a different slot. In the case where the packet insertion module 504 needs to know the status of a slot, the changed status of a slot will be reflected in the information provided via the queue Jull line 526.
- the queue controller 510 asserts a corresponding pointerjjpdate line 529j which runs back to the arbiter 260.
- assertion of one of the pointerjjpdate lines 529j indicates to the arbiter 260 that the grant it has issued has been acknowledged, allowing the arbiter 260 to proceed with preparing the next grant, based on a possibly new request from the queue controller 510 in receiver 150j and on pending requests from queue controllers in other ones of the receivers 150.
- the function of the arbiter 260 is to receive a request from the queue controller 510 in each of the receivers 150, to grant only one of the requests and to control read operations from the data memory 502.
- the arbiter 260 comprises a request-processing module 570, an address decoder 580 and a packet-forwarding module 590.
- the arbiter 260 is very similar to the arbiter 760 previously described with reference to Fig. 4, with some differences in the implementation of the address decoder 580 and the packet-forwarding module 590.
- the request-processing module 570 receives, from the queue controller 510 in receiver 150j, the corresponding request line 503j, the corresponding priority lines 505j and the corresponding pointerjjpdate line 529j.
- the request-processing module 570 functions to grant only one of the possibly many requests received in this fashion.
- the request-processing module 570 has an output which is the grant line 511.
- the grant line 511 is connected to each of the queue controller 510 in each receiver, as well as to the address decoder 580. In one embodiment of the present invention, the grant line 511 utilizes a unique binary code to identify the queue controller whose request has been granted.
- the address decoder 580 receives the grant line 511 from the request-processing module 570 and the slotjd lines 505 from the queue controller 510 in each of the receivers 150.
- the address decoder 580 computes a base address in the data memory 502 that stores the first word of the packet for which transmission has been granted.
- the base address is computed as a function of the code specified on the grant line 511 and on the contents of the particular slotjd line indexed by the code specified on the grant line 511. That is to say, the address decoder 580 uses the grant line to identify the receiver and to index the slotjd lines 505 in order to identify a slot within the data memory 502 of the identified receiver.
- the base address is provided to the packet-forwarding module 590 via a basejaddress line 582.
- the packet-forwarding module 590 receives a base address via the basejaddress line 582. In addition, the packet-forwarding module 590 receives the grant line 511 from the request-processing module 570.
- the base address indicates the location of the first word of the next packet that is required to be extracted from the data memory 502 of the receiver identified on the grant line 511.
- the packet-forwarding module 590 Since the packet-forwarding module 590 may be in the process of reading a current packet from the data memory of another one of the receivers, the packet- forwarding module 590 is programmed to wait until it has finished reading out the current packet before beginning to read the next packet. After it has finished reading the current packet from whichever data memory it is currently reading, the packet-forwarding module 590 stores the initial address on the basejaddress line 582, asserts the grantjenable line 515 and proceeds to read from the data memory 502 identified by the grant line 511 , starting from the base address.
- the output of the data memory 502 in the various receivers 150 arrives at a respective input port of a multiplexer 592.
- the multiplexer has an output which is placed onto the data path 202. Selection of which input port appears on the output port is controlled by a select line 595 received from the packet forwarding module 590.
- the select line 595 is a latched version of the grant line 511. Latching of the select line 595 occurs upon receipt of the grantjenable line 515.
- the packet-forwarding module 590 monitors the EOP bit 368 of each word traveling along the data path 202.
- the EOP bit 368 from successive words forms an EOP bit stream which will undergo a transition (e.g., falling edge) at a predetermine number of words prior to the end of the packet. In this way, the packet-forwarding module 590 knows when it is near the end of a packet.
- the packet-forwarding module 590 Upon detecting a falling edge in the EOP bit stream, the packet-forwarding module 590 records the base address provided on the basejaddress line 582 and triggers the next grant via the grantjenable line 515.
- the packet-forwarding module 590 then proceeds to cause the words of a packet to be read from the data memory 502 of the receiver indexed by the grant line 511. This is achieved by providing a read address along the corresponding readjaddress line 593j.
- the first address placed on the readjaddress line 593; is the base address and the address is incremented until the end of the next packet is detected, and so on. It will be appreciated that rather than providing a separate readjaddress line for each receiver, there may be a single readjaddress line which passes through a demultiplexer (not shown) that is under control of the signal on the grant line 511. Assertion of the grantjenable line 515 causes the following chain reaction.
- assertion of the grantjenable line 515 will affect only the queue controller 510 on the receiver identified by the signal on the grant line 511. Assume, for the sake of this example, that the queue controller in question is the one in receiver 150j, and that it had requested transmission of the packet in slot 508c- Upon detection of the grantjenable line 515, the queue controller 510 will send an acknowledgement to the arbiter 260 via the corresponding pointerjjpdate line 529;, which will trigger an update in the active pointer stored by the pointer control entity and used by the PRRA in the request-processing module 570. In addition, the queue controller 510 will access entry 514c, which is associated with slot 508c- More specifically, it will modify the occupancy status of slot 508c to indicate that this slot is no longer occupied.
- Modification of the occupancy status of slot 508c may cause one or more of the following:
- the change in occupancy status may cause the logic in the queue controller 510 to update the signals on the corresponding request line 503j, slotjd line 505j and priority line 507J;
- the change in occupancy status will be signaled to the packet insertion module 504 via the queue Jull line 526j, which may change the outcome of the decision regarding where a received packet may be inserted;
- the change in occupancy status is sent by the queue controller 510 along the back channel 212j ⁇ j to the transmitter 140 in cell 114j.
- the transmission of a packet is an atomic action that is at least as fast receipt of a new packet
- the occupancy status of the slot corresponding to the old packet can be set to "no longer occupied" as soon transmission begins. If receipt can be up to twice as fast as transmission, the occupancy status may be reset when one-half of the packet is transmitted, etc.
- the features of the transmitter 140 will prevent transmission of a packet to occur unless the packet can be accommodated by a receiver, thereby advantageously avoiding contention at the receiver which may arise if the transmission were effected without regard to the availability of space further downstream.
- a packet entering the switch fabric 100 has a priority level which is identified in the priority field 364 of the packet's header 360. That same priority level is associated with the packet upon exit from the switch fabric 100. Nonetheless, it is within the scope of the present invention to provide a mechanism for temporarily modifying the priority level of the packet while the it is being processed by the transmitter or receiver in a given cell. More specifically, it is within the scope of the invention for the transmitter or receiver on a given cell to maintain a "virtual" priority level associated with a packet and to use the virtual priority level in its decision-making process, without altering the actual priority level of the packet as defined in the packet's header 360.
- ⁇ or in an entry of the control memory 712j of the th queue controller 710j of the transmitter 140 in the k* 1 cell 114 ⁇ may refer either to the actual priority level of the packet or to its virtual priority level.
- a queue controller 610 which is a modified version of queue controller 510 which was previously described with reference to the transmitter 140 in Fig. 5.
- the queue controller 610 has access to a "time stamp" from a time stamp counter 620 via a timejstamp line 605.
- the time stamp counter 620 is operable to track an ongoing measure of time, such as clock cycles. In other embodiments, time may be measured in terms of a number of elapsed atomic events, a number of transmitted or received packets, etc. Accordingly, the time stamp counter 620 may be driven by the signal on a clock line 615 or on the aforedescribed grantjenable line 515, among others.
- the queue controller 610 has access to the control memory 512. It is recalled that the control memory 512 comprises a plurality of entries 514A, 514g 514
- Each entry stores information pertaining to a corresponding slot 508 in the data memory 502. As has been previously described, the information in each entry is indicative of the availability of the corresponding slot and the priority level of the packet occupying that slot, if applicable. In order to implement an aging policy, additional information is stored in each of the entries 514.
- entry 514A includes a status field 632, a virtual priority field 634, a time stamp field 636 and an age mask field 638.
- the status field 632 is indicative of whether slot 508A is occupied or unoccupied.
- the virtual priority field is indicative of the current virtual priority of the packet in slot 508A-
- the time stamp field 636 is indicative of the time stamp which was in force at the time the packet currently occupying slot 508A was written thereto.
- the age mask field 638 holds an increment which is added to the virtual priority at specific times as the packet ages. The increment may be fixed or variable, depending on the aging policy being implemented. If it is envisaged that the aging policy will always utilize a fixed aging mask (or if there is no aging policy), then the age mask field 638 is optional.
- the queue controller 610 implements an aging policy (e.g., none, linear, exponential, logarithmic) by modifying the virtual priority of a packet as a function of a variety of parameters, including the age of the packet and one or more of the following: the contents of the age mask field 638, the kill limit value (the maximum age for a packet before the packet is eliminated from the data memory, regardless of its priority level), the time interval and the maximum allowable virtual priority level.
- an aging policy e.g., none, linear, exponential, logarithmic
- Fig. 8 illustrates the steps involved in administering an aging policy, in accordance with an embodiment of the present invention.
- the queue controller 610 checks the newjpacket line 528 in order to determine whether a new packet is about to be written into a slot in the data memory 502. If so, the newjpacket line 528 will indicate the identity of the slot and its priority level.
- the queue controller 610 inserts the time stamp (received from the time stamp counter 620 via the timejstamp line 605) into the time stamp field 636 of the identified slot.
- the queue controller 610 selects a value to insert into the age mask field 638 of the identified slot. This value may be determined as a function of the * priority level of the new packet, as received along the newjpacket line 528.
- the queue controller 610 returns to step 802.
- step 802 the queue controller 610 proceeds to step 806, where the queue controller 610 begins by selecting a first slot, say slot 508A-
- the queue controller then executes step 808, which consists of obtaining the value in the time stamp field 636 of the corresponding entry (in this case 514A) ar, d subtracting it from the present time stamp as received from the time stamp counter 620. This produces an age value for the packet in the selected slot (in this case 508A).
- step 808 the queue controller 610 compares the age of the packet in the selected slot to a "kill limit", which represents the maximum allowable age of a packet.
- step 810 the queue controller 610 proceeds to step 812, where the packet is effectively "eliminated” from the data memory 502. "Elimination" of a packet from the data memory 502 can encompass actual erasure of the packet from the corresponding slot in the data memory, as well as resetting of the status field 362 in the entry corresponding to the selected slot. After having eliminated the packet from the data memory 502, the queue controller 610 returns to step 802.
- the queue controller proceeds to step 814, where the contents of the age mask field 368 may or may not be added to the contents of the virtual priority field 364. If the contents of the age mask field 368 is indeed added to the contents of the virtual priority field 364, this results in a higher virtual priority level for the packet in the selected slot (in this case slot 508A)- Whether the contents of the age mask field 368 is added to the contents of the virtual priority field 364 depends on the aging policy in place. Also dependent on the aging policy is the extent to which the age mask field 638 is updated at step 816.
- the virtual priority level of a packet does not change over time.
- a change is effected to the virtual priority level of a packet at fixed time intervals of duration 7 by a constant value V.
- the output of the time stamp counter 620 can be consulted in order to establish whether yet another time interval has elapsed, at which point it would be appropriate to update the virtual priority of the packet.
- the constant value V may be specified in the age mask field 638 or it may be pre-determined.
- the virtual priority level is incremented by an exponentially increasing value V(t) at fixed time intervals of duration T.
- the output of the time stamp counter 620 can be consulted in order to establish whether yet another time interval has elapsed, at which point it would be appropriate to update the virtual priority of the packet.
- a dynamic parameter is needed and this is provided by the age mask field 638. Specifically, adding the contents of an ever- increasing age mask field 638 to the contents of the virtual priority field 634 at evenly spaced apart time intervals will result in an exponentially increasing value for the contents of both the age mask field 638 and the virtual priority field 634.
- the contents of the age mask field 638 is doubled every time the virtual priority level of the packet is updated.
- the virtual priority level is incremented by a constant value V at time intervals which increase in duration as a function of time.
- the constant value V may be pre-determined or it may be a function of the actual priority level of the packet.
- a dynamic parameter is needed and this is provided by the age mask field 638. Specifically, by comparing the contents of an ever-increasing age mask field 638 to the time stamp received from the time stamp counter 620 in order to decide whether to update the virtual priority level of the packet will result in such updates happening at a logarithmically decreasing rate.
- the contents of the age mask field 638 is doubled every time the virtual priority level of the packet is updated. This effectively results in a slower aging process for the packet.
- aging policies include but are not limited to policies quadratic and one-time increments or aging tables indexed off of a function of the packet age. Those skilled in the art will be appreciate that a plurality of such aging policies can be implemented, with a different policy applied based on a packet property such as destination, priority, etc.
- the queue controller 610 determines whether it has considered all the slots 508 in the data memory 502 (i.e., whether it has considered all the entries 514 in the control memory 512). If so, the queue controller 610 returns to step 802;, if not, the next slot is selected at step 820 and the queue controller 610 proceeds to execute step 808 (and subsequent steps) using this next selected slot.
- the invention provides so-called "multicast” functionality, by virtue of which a packet entering the transmitter 140 in a given cell of the switch fabric 100 (say, cell 114j) is sent via the corresponding forward channel 21 Oj to the corresponding receiver 150j on multiple destination cells, possibly including cell 114j itself.
- a packet is referred to as a multicast packet; a special case of a multicast packet is a broadcast packet, whose destination cells include all of the cells in the switch fabric 100.
- the destination field 362 of the header 360 of a multicast packet is designed so as to be capable of specifying the two or more destination cells associated with the multicast packet. In one embodiment of the invention, this may be achieved by encoding the set of destination cells by way of a binary mask with a logic "1" in the position of each destination cell.
- a multicast packet travelling through the switch fabric 100 of Fig. 2 undergoes three main stages of transmission, similar to the aforedescribed stages of transmission which are experienced by a non-multicast packet.
- the first stage involves the packet being transmitted from the off-chip environment to a given cell, say cell 114j, via that cell's input interface 116; upon receipt, the packet is written into a memory location by the transmitter 140 in that cell.
- the second stage involves the packet being sent from the transmitter 140 in cell 114j via the corresponding forward channel 21 Oj to the corresponding receiver 150j residing in each of the two or more destination cells associated with the packet; upon receipt of the packet at each of the destination cells, the packet is written into a memory location by receiver 150j in that destination cell. This operation is performed independently by the receiver in each destination cell.
- the third stage involves the packet being sent from receiver 150j in each destination cell to the off-chip input queue 228 via the arbiter 260 and the output interface 118 of that destination cell.
- Fig. 9 shows an example non-limiting implementation of a transmitter 940 adapted to provide multicast functionality. Without loss of generality, the transmitter 940 is assumed to reside in cell 114j.
- the transmitter 940 receives words from the input interface 116 along the data path 230.
- the transmitter 940 has a memory which includes various storage areas, including a data memory 902, a plurality of control memories 712, 912 a set of registers used by a plurality of queue controllers 710, 910 and any other memory used by the transmitter 940.
- the words are fed to the data memory 902 via a plurality of data input ports.
- the data memory 902 is writable in response to a write address signal and a write enable signal, which continue to be received from a packet insertion module 904 via the writejaddress line 716 and the writejenable line 718, respectively.
- the writejaddress line 716 carries the address in the data memory 902 to which the word presently on the data path 230 is to be written, while the actual operation of writing this word into the specified address is triggered by asserting a signal on the writejenable line 718.
- the data path 230 may pass through an optional delay element 706 before entering the data input ports of the data memory 902.
- the data memory 902 comprises the previously described segments 713, one for each of the N cells on the chip 110.
- the j* 1 segment 713j includes M slots 708J A > 708J B, •-•, 7 0 8 j,M> eacn s ' ot being of such size as to accommodate a packet destined for cell 114j.
- Each of the segments 713 is represented by a corresponding one of the queue controllers 710.
- Queue controller 710j has access to an associated control memory 712j comprising a plurality of entries 714J A, 714 j,B.
- ⁇ ••' 714 j,M which store the occupancy status (i.e., occupied or unoccupied) of the respective slots 708J A, 7 0 ⁇ j,B> ⁇ • ⁇ > 7 0 8 j,M > n tn e j" 1 segment 713; of the data memory 902.
- the corresponding entry For each slot that is occupied, the corresponding entry also stores the priority level of the packet occupying that slot.
- the data memory 902 comprises an N+1 01 segment 913 for storing multicast packets.
- the different multicast packets stored in segment 913 may be destined for different combinations of two or more destination cells.
- Segment 913 includes M slots 908A, 908 ⁇ 908M , eacn s,ot being of such size as to accommodate a packet. In one embodiment of the invention, at least one slot is reserved for each priority class.
- Segment 913 of the data memory 902 is represented by a multicast queue controller 910.
- Multicast queue controller 910 has access to an associated control memory 912 comprising a plurality of entries 914A, 914 ⁇ 914M which store the occupancy status (i.e., occupied or unoccupied) of the respective slots 908A, 908 ⁇ , • ⁇ -. 908 in segment 913 of the data memory 902. Each entry also stores the priority level of the corresponding packet as well as an address mask identifying the set of destination cells for which the corresponding packet is destined. The occupancy status is provided to the input interface 116 via a freejslot line 901.
- the packet insertion module 904 is operable to monitor the EOP bit 368 on each word received via the data path 230 in order to locate the header of newly received packets. Because the EOP bit 368 undergoes a transition (e.g., falling edge) for the word that occurs in a specific position within the packet to which it belongs, detection and monitoring of the EOP bit 368 provides the packet insertion module 904 with an indication as to when a new packet will be received and, since the header 360 is located at the beginning of the packet, the packet insertion module 904 will know when the header 360 of a new packet has been received.
- a transition e.g., falling edge
- the packet insertion module 904 extracts control information from the header 360 of each received packet. Such information includes the destination cell (or cells) of a received packet and its priority level for the purposes of determining into which slot it should be placed in the data memory 902.
- the packet insertion module 904 first determines into which segment a received packet is to be written. This is achieved by extracting the destination 362 field from the header of the received packet in order to determine the destination cell (or cells) associated with the packet.
- the received packet is a non-multicast packet and operation of the packet insertion module 904 in the case of a non-multicast cell is identical to that previously described with reference to the packet insertion module 704.
- the receiver packet is a multicast packet and the packet insertion module 904 operates differently. Specifically, the mere fact that a received packet is a multicast packet causes it to be written into segment 913. Selection of the particular slot into which the packet is written is achieved in a manner similar to that described with reference to the packet insertion module 704 of Fig. 7, namely by determining the priority class of the received packet and verifying the availability of the slot(s) associated with that priority class.
- the packet insertion module 904 is operable to determine the priority class of a multicast packet by comparing the priority level of the packet to one or more priority thresholds. For example, let slots 908A, 908 B. 908C, 908D, 908 ⁇ be associated with high, high, medium, medium and low priority levels, respectively. Also, let the low-medium priority threshold and the medium-high priority threshold be as defined previously, namely, at 100 and 200, respectively. If the priority level of a received multicast packet is 229, for example, then the potential slots into which the packet could be written include slots 908A and 908 ⁇ .
- the packet insertion module 904 is operable to determine which of the potential slots is available by communicating with the multicast queue controller 910, to which it is connected via a queue Jull line 926 and a newj acket line 928.
- a bus structure could be used to connect the packet insertion module 904, the multicast queue controller 910 and the queue controllers 710. In either case, the packet insertion 904 module obtains the status (i.e., occupied or unoccupied) of the slots whose associated priority class matches the priority class of the received packet.
- the status information may take the form of a bit pattern which includes a set of positioned bits equal in number to the number of slots, where a logic value of 0 in a particular position signifies that the corresponding slot is unoccupied and where a logic value of 1 in that position signifies that the corresponding slot is indeed occupied.
- the multicast queue controller 910 would supply the occupancy of slots 908A and 908 ⁇ via the queue Jull line 926. This information is obtained by consulting entries 914A and 914 ⁇ in control memory 912. Of course, it is within the scope of the invention for the multicast queue controller 910 to provide, each time, the occupancy of all the slots in memory segment 913, not just those associated with the packet's priority class.
- the packet insertion module 904 is free to choose any of these slots as the one to which the received packet will be written. Note that it is advantageous to regulate transmission of packets to the transmitter 940 by the off-chip packet-forwarding module 226 in order to avoid the situation in which none of the slots would be available for the packet's priority class. This may be done by configuring the off- chip packet-forwarding module 226 so that it transmits the multicast packet to cell 114j (viz. the illustrated cell) only if it knows that there is room in the transmitter 940 for a multicast packet having the priority class in question.
- the packet insertion module 904 is operable to determine a corresponding base address in the data memory 902. This may be done either by computing an offset which corresponds to the relative position of the slot or by consulting a lookup table which maps slots to addresses in the data memory 902.
- the packet insertion module 904 is adapted to provide the base address to the data memory 902 via the writejaddress line 716 and is further adapted to assert the writejenable line 718.
- the packet insertion module 904 sends a signal to the multicast queue controller 910 along the newjpacket line 928, such signal being indicative of the identity of the slot which is being written to and the priority level of the packet which is to occupy that slot.
- the multicast queue controller 910 is adapted to process this signal by updating the status and priority information associated with the identified slot (which was previously unoccupied).
- the address on the writejaddress line 716 is then incremented at each clock cycle (or at each multiple of a clock cycle) as new words are received along the data path 230. This will cause the words of the packet to fill the chosen slot in the data memory 902. Meanwhile, the EOP bit 368 in each received word is monitored by the packet insertion module 904. When a new packet is detected, the above process re-starts with extraction of control information from the header 360 of the newly received packet. In addition to being writable, the data memory 902 is also readable in response to a read address supplied by an arbiter 960 along the aforedescribed readjaddress line 792.
- the arbiter 960 initiates reads from the data memory 902 as a function of requests received from the plurality of queue controllers 710, 910 via a corresponding plurality of request lines 703, 903.
- a particular request line 703j will be asserted if the corresponding queue controller 710j is desirous of forwarding a non-multicast packet to receiver 150j in cell 114j, while request line 903 will be asserted if the multicast queue controller 910 is desirous of forwarding a multicast packet to receiver 150j in a multicplicity of cells 114j-
- the queue controllers 710 have already been described with reference to Fig. 7.
- the multicast queue controller 910 for its part, is implemented differently.
- the multicast queue controller 910 is adapted to generate a request for transmission of a received multicast packet to receiver 150j residing in two or more destination cells 114j-
- the multicast queue controller 910 is operable to generate a request for transmitting one of the possible multiplicity of packets occupying the slots 908A, 908 ⁇ , ..., 908M in segment 913 of the data memory 902.
- the identity of the slot chosen to be transmitted is provided along a slotjd line 905 while the priority associated with the chosen slot is provided on a priority line 907.
- the multicast queue controller 910 implements a function which determines the identity of the occupied slot which holds the highest-priority packet that can be accommodated by the destination receiver.
- This function can be suitably implemented by a logic circuit, for instance.
- the multicast queue controller 910 can be designed to verify the entries in the associated control memory 912 in order to determine, amongst all occupied slots associated with segment 913 in the data memory 902, the identity of the slot holding the highest-priority packet.
- the multicast queue controller 910 then assesses the ability of receiver 150j in each of the destination cells 114j-
- the chosen multicast packet be a high-priority packet stored in slot 908A a d ' et tn e a ddress mask of the packet be 1011 , indicating that the multicast packet is destined for cells 114-
- the required occupancy information would be relevant to slots 508A - ⁇ - > the high- priority slot) in receiver 150j in cells 114-
- the multicast queue controller 910 finds that the chosen multicast packet can indeed be accommodated by the receiver in each destination cell, it will attempt to seize control of forward channel 21 Oj before any of the affected (non-multicast) queue controllers 710 makes another request to the arbiter 960. Therefore, the multicast queue controller 910 makes a multicast request to the arbiter 960.
- the multicast request is associated with a priority level associated with the packet. In other embodiments, the multicast request is given a higher priority in view of the probability associated with receiver 150j being available in all of the destination cells.
- the multicast queue controller 910 places the identity of the chosen slot on the slotjd line 905, places the priority level of the multicast request on the priority line 907 and submits a request to the arbiter 960 by asserting the request line 903.
- the multicast queue controller 910 will be made aware of the grant by the arbiter 960.
- This exchange of information can be achieved in many ways. For example, in a manner similar to that previously described with reference to the arbiter 760, the arbiter 960 may identify the queue controller whose request has been granted by sending a unique code on a grant line 911 and, when ready, the arbiter 960 may assert a grantjenable line 915 shared by the queue controllers 710, 910. A given queue controller would thus know that its request has been granted upon (i) detecting a unique code in the signal received from the arbiter via the grant line 911 ; and (ii) detecting the asserted grantjenable line 915.
- the multicast queue controller 910 Upon receipt of an indication that its request has been granted, the multicast queue controller 910 accesses the entry in the control memory 912 corresponding to the slot whose packet now faces an imminent exit from the data memory 902 under the control of the arbiter 960. Specifically, the multicast queue controller 910 changes the status of that particular slot to "unoccupied", which will alter the result of the request computation logic, possibly resulting in the generation of a new request specifying a different slot. The changed status of a slot will also be reflected in the information provided to the packet insertion module 904 via the queue Jull line 926.
- the multicast queue controller 910 asserts a pointerjjpdate line 929 which returns back to the arbiter 960.
- assertion of the pointerjjpdate line 929 indicates to the arbiter 960 that the grant it has issued has been acknowledged, allowing the arbiter 960 to proceed with preparing the next grant, based on a possibly new request from the multicast queue controller 910 and on pending requests from the other queue controllers 710.
- the multicast queue controller 910 may do one of three things, depending on the operational requirements of the invention. It can either (i) attempt to transmit the next-highest-priority multicast packet to all of the associated destination receivers; (ii) make a request to the arbiter 960 to transmit the multicast packet on the forward channel 21 Oj so that it is received by receiver 150j on those destination cells which have an available slot, while being ignored by receiver 150j on other destination cells; (iii) wait some time before making another request to the arbiter 960.
- the multicast controller 910 makes an attempt to transmit the next-highest-priority multicast packet. This can be done by consulting the back channels 212 in order to assess the availability of receiver 150j in each destination cell to accommodate the next-highest-priority multicast packet occupying one of the slots 908. If the multicast queue controller 910 again finds that one or more destination cells cannot accommodate the multicast packet, the multicast queue controller 910 may attempt to transmit the next-next-highest- priority multicast packet, and so on.
- the multicast controller 910 makes a request to the arbiter 960 to transmit the multicast packet on forward channel 210j so that it is received by receiver 150j in those destination cells which have an available slot. This may be achieved in the same way as if all the destination cells were able to accommodate the packet, i.e., by placing the identity of the chosen slot on the slotjd line 905, placing the appropriate priority level on the priority line 907 and submitting a request to the arbiter 960 by asserting the request line 903. However, upon receipt of an indication that its request has been granted, the multicast queue controller 910 would assert the pointerjjpdate line 929 but would not yet change the status of the slot to "unoccupied".
- the multicast queue controller 910 would reset the bits in the address mask of the corresponding entry in those bit positions corresponding to destination cells that were found to have an available slot for accommodating the multicast packet.
- the chosen multicast packet be a high-priority packet stored in slot 908A and let the address mask of the packet be 1011 , as before.
- j, 2122.J, and 2124 J be the following: "occupied, unoccupied, unoccupied”. This would mean that there is room in slot 508A in receiver 150j in cells 1143 and 1144, but not in cell 114-j . If a request to transmit the multicast packet is granted, cells 1143 and 1144 will process the packet, but cell 114 ⁇ will not. Consequently, the address mask would become 1000 and may be referred to as "residual address mask".
- the residual address mask therefore indicates the destination cells of the multicast packet which have yet to receive the multicast packet.
- the multicast queue controller 910 is operable to make another request with the new address mask in the above described manner until the address mask has been reduced to "0000", at which point the multicast queue controller 910 would proceed with changing the status of the slot (in this case, slot 908A) to "unoccupied” in the appropriate entry (in this case 914A) in the control memory 912.
- the multicast queue controller 910 must indicate to the packet-forwarding module in the arbiter 960 that the multicast packet has been transmitted to only some of the destination cells so that when the multicast packet is re-transmitted to the remaining destination cells by virtue of a subsequent request being granted, it is not picked up a second time by the destination cells which already received the packet.
- an alreadyjsent mask is provided via a control line 995 to the packet-forwarding module 990 in the arbiter.
- the packet-forwarding module 990 uses the alreadyjsent mask to modify the destination field 362 of the multicast packet in a manner to be described in greater detail herein below.
- the destination field 362 of a multicast packet transmitted the first time to an incomplete set of destination cells will identify the original set of destination cells, while the destination field 362 of the same multicast packet, re-transmitted a second time due to some destination cells having had receivers that were not available the first time around, will identify only those destination cells which are known to have an available slot for accommodating the packet. It is also within the scope of the invention, however, to modify the destination field 362 of a multicast packet transmitted the first time so that it specifies only those destination cells which are known to have an available slot for accommodating the packet.
- the multicast queue controller 910 can be adapted to wait an amount of time (or a number of transmitted packets) before making a delayed request to the arbiter 960 along the request line 903.
- the delayed request follows a re-verification of the availability of receivers which were initially found to be unavailable. Upon re-verification, it may be discovered that some additional receivers may have developed an availability to accommodate the packet.
- the delayed request may be submitted in the same way as described with regard to case (ii) above.
- the multicast queue controller 910 to manipulate the request generation process in each of the non-multicast queue controllers 710 in such a way as to tentatively reserve a slot in receiver 150j on those destination cells which can accommodate the multicast packet in question.
- the information regarding the availability of a given slot in receiver 150j in cell 114j, as received via back channel 212j j might ordinarily be represented by logic "1" to indicate that the slot is available and by logic "0" to indicate that the slot is occupied. If that slot needs to be tentatively reserved by the multicast queue controller 910, then a two-input logical AND gate 999j may be placed in the path of back channel 212j j prior to entry into any of the queue controllers 710.
- a first input of the AND gate would be the line 212j_j leading from receiver 150j in cell 114j, while a second input of the AND gate may be supplied by the multicast queue controller 910 via a logical inverter (not shown).
- the multicast queue controller 910 would set the input to the inverter to logical "1" when making a tentative reservation for that slot, which would make the slot appear unavailable to the other queue controllers 710.
- the multicast queue controller 910 would reset the input to the inverter (thereby rendering the output of each AND gate 999j transparent to information received via the corresponding back channel) after it has been granted a delayed request that followed the tentative reservation.
- the multicast queue controller 910 proceeds as in case (i) above. If, however, receiver 150j in some destination cells is still unable to accommodate the multicast packet, the multicast controller 910 proceeds as in case (ii) above.
- the arbiter 960 is now described with continued reference to Fig. 9.
- the function of the arbiter 960 is to grant one of the requests received from the various queue controllers 710, 910 and to consequently control read operations from the data memory 902.
- the arbiter 960 comprises a request-processing module 970, an address decoder 980 and a packet-forwarding module 990.
- the arbiter 960 may be essentially identical to the arbiter 760 previously described with reference to Fig. 4, with some differences in the implementation of the request- processing module 970, the address decoder 980 and the packet-forwarding module 990.
- the request-processing module 970 receives the request lines 703, 903, the priority lines 707, 907 and the pointerjjpdate lines 729, 929 from the queue controllers 710, 910, respectively.
- the request-processing module 970 functions to grant only one of the possibly many requests received from the queue controllers 710, 910 along the request lines 703, 903.
- the request-processing module 970 has an output which is the grant line 911.
- the grant line 911 is connected to each of the queue controllers 710, 910 as well as to the address decoder 980. In one embodiment of the present invention, the grant line 911 utilizes a unique binary code to identify the queue controller whose request has been granted. It will be noted that the request-processing module 970 in the arbiter 960 differs from the request-processing module 770 in the arbiter 760 merely in the number of inputs.
- the address decoder 980 receives the grant line 911 from the request-processing module 970 and the slotjd lines 705, 905 from the queue controllers 710, 910, respectively.
- the address decoder 980 computes a base address in the data memory 902 that stores the first word of the packet for which a request for transmission has been granted.
- the base address is provided to the packet- forwarding module 990 via a basejaddress line 982.
- the address decoder 980 in the arbiter 960 differs from the address decoder 780 in the arbiter 760 merely in its ability to process an additional code on the grant line 911 and in its ability to generate a base address over a wider range incorporating segment 913 in the data memory 902.
- the packet-forwarding module 990 receives, via the basejaddress line 982, the location of the first word of the next packet that it is required to extract from the data memory 902.
- the packet-forwarding module 990 also receives the alreadyjsent mask via the control line 995 from the multicast queue controller 910. It is recalled that the alreadyjsent mask is indicative of one or more destination cells whose corresponding receiver 150j has already received the packet to be extracted from the data memory 902 by the packet-forwarding module 990.
- the packet-forwarding module 990 is operable to wait until it has finished reading out the current packet before beginning to read the next packet from the data memory. After it has finished reading the current packet from the data memory 902, the packet-forwarding module 990 stores the initial address on the basejaddress line 982, asserts the grantjenable line 915 and proceeds to read from the data memory 902 starting from the initial address. In addition, the packet-forwarding module 990 applies the alreadyjsent mask to the destination field of the packet extracted from the data memory 902.
- the packet-forwarding module 990 in the arbiter 960 differs from the packet-forwarding module 790 in the arbiter 760 in its ability to index larger data memory 902 and in its ability to apply the alreadyjsent mask to the destination field of a packet extracted from the data memory 902.
- the packet insertion module 704 (or 904) in the transmitter 140 controls where words are written into the data memory 702 (or 902), but it does not control the rate at which words arrive at the data input ports of the data memory 702 (or 902).
- This level of control is provided by an off-chip packet- forwarding module 226 as described herein below.
- the non-multicast case is considered for the purposes of the following but it should be appreciated that the concepts described herein below are equally applicable to the transmission of multicast packets.
- the off-chip packet-forwarding module 226 is not allowed to send the words of a packet to the transmitter in a given cell unless there is room in that transmitter's data memory 702 to accommodate the packet, as this prevents having to discard packets in the switch fabric chip.
- a feature of the present invention which allows such control to be executed locally at the off-chip packet-forwarding module 226 stems from the use of the entries 714 stored in the control memories 712. Specifically, by providing the status of slots 708 in the data memory 702 of the transmitter of each cell via the control path 254, the off-chip packet-forwarding module 226 can be alerted as to the status (occupied or unoccupied) of each slot associated with a particular category of priority level.
- the off-chip packet-forwarding module 226 is connected to the input interface 116 in cell 114j via data path 252 and a control path 254 (which flows in the opposite direction).
- the data path 252 can be of sufficient width to accommodate all the bits in a word or it may be narrower (and, therefore, also narrower than the data path 230) so as to accommodate only a subset of the bits in a word, thereby lowering the pin count of the chip 110.
- the input interface 116 should be configured to provide a rate matching functionality so that the total information transfer rate remains the same on both data paths.
- the control path 254 may be as narrow as one or two bits in order to keep the pin count to a minimum.
- the off-chip packet-forwarding module 226 comprises a buffer 2010, a controller 2020 and a memory 2030.
- a data path 2060 provides the buffer 2010 with a stream of packets for transmission to the transmitter 140 in cell 114 .
- the controller 2020 which is connected to the buffer 2010 via a control line 2040, is adapted to control the release of words from the buffer 2010 onto the data path 252.
- the memory 2030 stores a plurality (N x M) of entries 2080.
- Entries 2080 may also be referred to as "zones”.
- Entries 2080J A through 2080J M correspond to slots 708J A through 708J M > 1 ⁇ j ⁇ N, in the data memory 702 of the transmitter 140.
- Each entry may include one or more bits which are indirectly indicative of whether the corresponding slot in the data memory 702 is occupied or unoccupied.
- directly it is meant that the memory 2030 might not be accurate with regard to the occupancy status of a particular slot in the data memory 702 of the transmitter 140, but it will nevertheless contain an accurate version of the number of slots for a given destination and priority level which are occupied.
- the controller 2020 receives updated occupancy information from the transmitter 140 via the input interface 116 and the control path 254.
- the controller 2020 has access to the memory 2030 via a control line 2050.
- the controller 2020 performs the tasks of updating the occupancy information in the memory 2030 and controlling the release of packets from the buffer 2010.
- the two tasks may be performed asynchronously.
- this is performed as a function of the contents of the buffer 2010 and as a function of the occupancy information stored in the memory 2030. Specifically, when the buffer 2010 contains a packet that is ready for transmission to the transmitter 140, the controller 2020 verifies the destination cell associated with that packet and verifies its priority class, in a similar manner to the packet insertion module 704 in the transmitter 104.
- the priority level of the packet may further narrow the selection of appropriate slots into which the packet may be inserted once it arrives at the transmitter 140. Since the memory 2030 knows which slots are occupied and which ones are not, the controller 2020 can therefore determine whether the packet can be accommodated by an appropriate slot in the data memory 702. In one embodiment, the controller 2020 does not allow the packet to be transmitted to the input interface 116 via the data path 252 unless at least one appropriate slot is found to be unoccupied.
- the controller 2020 would effectively reserve one of the appropriate slots by setting one of the appropriate (and unoccupied) entries in the memory 2030 to "occupied" prior to or during transmission of the packet to the transmitter 140. It is not important which slot is reserved in this manner, as long as the priority class and destination are consistent with the slot into which the packet will actually be inserted once it arrives at the data memory 702.
- the freejslot lines 207 provide the input interface 116 with information as to the release of packets from the data memory. If, while monitoring the freejslot line 207, the input interface 116 determines the slot position of a packet being transmitted to its destination receiver, the input interface 116 will send a "token release" message to the controller 2020 via the control path 254. Such a token release message may specify the precise slot which has been vacated. However, because reservations in the memory 2030 are made as a function of destination and priority class, the input interface 116 need only send the segment (i.e., destination cell) and the priority class associated with the slot being liberated. Upon receipt of the "token release" message, the controller 2020 changes the information in one of entries in the memory 2030 which is associated with that destination and priority class and whose slot had been previously "reserved".
- a slot will be reserved for a packet before the packet has a chance to arrive at the transmitter 140. This is advantageous when compared to the situation in which a slot is marked "occupied" once it is actually occupied, as it prevents the occurrence of a situation in which two packets are transmitted when there is room for only one.
- a "token release" message is sent back to the controller 2020 on control path 254. This indicates to the controller 2020 that there is room in the transmitter 140 for a packet having a particular destination and priority class and an appropriate packet can be sent to the transmitter 140.
- This new packet will arrive after the old packet has begun to be read and, provided the write operation does not catch up to the read operation, advantageously resulting in efficient data pipelining, which is even more advantageous when combined with the efficient data pipelining that occurs between the transmitters 140 and receivers 150.
- the controller 2020 may be advantageous to configure the controller 2020 so that it is capable of requesting the status of each slot in the data memory 702 of the transmitter 140, so as to perform a "refresh" of the memory 2030.
- This type of refresh operation may be performed at an initial phase or at other times during operation. This can be achieved by sending a "refresh request” message to the input interface 116 via a forward-traveling control path (not shown).
- the input interface 116 can be adapted to respond to a "refresh request” message by sending the occupancy status of each slot 708 in its data memory 702. This information is obtained from the entries 714 in the control memories 712.
- the controller 2020 updates the contents of the entries 2080 in the memory
- the controller 2020 is able to gather information regarding the occupancy of each slot in the data memory 702.
- the input interface 116 prefferably has continuous access to up-to-date occupancy information by providing discrete or bussed signal connections between the input interface 116 and the entries 714 in the control memories 712 of the queue controllers 710.
- a bus may be N x M bits wide in some embodiments.
- FIG. 14 shows a cell 1414-j in accordance with another embodiment of the present invention, in which there is provided a central processing unit (CPU) 1400.
- Cell 1414-j is a modified version of cell 114-j described previously with reference to Fig. 2.
- comprises an arrangement of functional modules including the previously described input and output interfaces 116, 118, as well as a modified transmitter 1440, N modified receivers 1450-J ...1450N, and two arbiters 260, 1460, among which arbiter 260 has already been described with reference to Fig. 5.
- the main purpose of the CPU 1400 is to process, originate and/or respond to so- called "system packets".
- System packets generally do not carry data traffic; rather, they carry control information.
- Examples of control information which may be carried by a system packet generated by the CPU 1400 include the number of packets sent by the transmitter 1440, the number of occupied slots in the data memory of the transmitter 1440, the number of occupied slots in the data memory of one or more receivers 1450, the total number of packets sent or received by the external ports 116, 118, the number of packets killed by the transmitter 1440 or any receiver 1450, etc.
- control information which may be carried by a system packet destined for the CPU 1400 include instructions for changing the parameters used in the aging mechanism or setting the delay of a request by the multicast queue controller 910 in the transmitter (see Fig. 9) or instructing the time stamp counter 620 (see Fig. 6) to count packets sent rather than clock cycles (or vice versa).
- the CPU 1400 can be a 32-bit 4-stage pipelined RISC processor with access to a CPU random access memory (RAM).
- the CPU RAM is divided into scratch RAM, insert RAM and forward RAM.
- the scratch RAM is used for general computations of a temporary nature, while the insert RAM is used to store system packets arriving from the receivers 1450 and the forward RAM is used to store system packets to be transmitted along the appropriate forward channel by the transmitter 1440.
- the size of both the insert RAM and the forward RAM can be one, two or more slots each, where each slot is of sufficient size to store a packet.
- the total RAM size may be on the order of 2 kilobytes, for example. Of course, other CPU types and memory sizes are within the scope of the present invention.
- the CPU 1400 in cell 1414-) is also connected to other CPUs in other cells via an asynchronous peripheral bus 1472, which utilizes an internal peripheral bus interface 1470 in each cell, including cell 1414-1 , and a common external peripheral bus interface (not shown) elsewhere on the chip 100.
- the internal peripheral bus interface 1470 in cell 1414-j communicates the with external peripheral bus interface via the peripheral bus 1472.
- the purpose of the peripheral bus is to allow the CPU 1400 in each cell to exchange information with an external device (e.g., flash RAM, FPGA, UART, etc.)
- the peripheral bus is useful when downloading the initial CPU code from an external memory device.
- the destination field of the header of all packets is designed so as to be capable of specifying whether the packet is a system packet, i.e., is either destined for the CPU of a given destination cell or has been generated by the CPU of a given source cell.
- a packet 1850 is provided with an additional "to CPU” (or TCPU) field 1810 and an additional "from CPU” (or FCPU) field 1820 in the packet's header 1860.
- the TCPU field 1810 or the FCPU field 1820 is set (or both), as appropriate. If the packet 1850 is not a system packet, i.e., the packet 1850 is neither destined for the CPU of a given cell nor generated by the CPU of a given cell, then both the TCPU and FCPU fields 1810, 1820 remain blank.
- the second, third or other word of a system packet may contain a "type" field 1880.
- the type field 1880 identifies the nature of the control information carried by a system packet.
- a system packet may also contain a password field 1890, which is encodable and decodable in software.
- a system packet may include a query bit 1892, which indicates whether a response to the system packet is required from the CPU 1400. Either or both of the password field 1890 and the query bit 1892, if used, may appear in the header 1860 of the packet 1850 or in a subsequent word in the payload of the packet 1850.
- Fig. 15 is simplified version of Fig. 14 in which the solid line represents the path that may be traveled by traffic packets, while the dashed line represents the path that may be traveled by system packets.
- the arbiters 260, 1460 have been omitted for simplicity of illustration.
- the input interface 116 receives system packets and traffic packets from the off-chip packet-forwarding module 226 via a data path 252 and forwards them to the transmitter 1440 via a data path 230 (previously described with reference to Fig. 2). Occupancy information regarding the transmitter 1440 is provided to the input interface 116 along a set of freejslot lines 207, which forwards this information to the off-chip packet-forwarding module 226 along an external back channel 254 (also previously described with reference to Fig. 2) running in the opposite direction of traffic flow.
- the transmitter 1440 controls the transmission of system packets and traffic packets received from the off-chip packet-forwarding module 226 onto the corresponding forward channel, in this case forward channel 210-j .
- the transmitter 1440 also controls the transmission of system packets generated by the CPU 1400, either independently or in response to a received system packet containing a query, onto forward channel 210-
- One way of achieving the desired functionality will be described in greater detail later on.
- the receivers 1450 receive packets, word by word, along the forward channels 210.
- Each such received packet may be a traffic packet, a system packet destined for the CPU 1400 or a system packet not destined for the
- System packets destined for the CPU 1400 are stored in a different area than traffic packets or system packets that are not destined for the CPU 1400.
- Requests for transmission of packets stored by the receivers 1450 may be made to arbiter 260 or to arbiter 1460.
- arbiter 260 is connected to the output interface 118 via the data path 202.
- the output interface 118 supplies packets to the off-chip input queue 228.
- Occupancy information regarding the off-chip input queue 228 is provided to the receivers 1450 in the form of the almostjull flag 208 (previously described) that runs through the output interface 118 in a direction opposite to that of traffic flow. This functionality may be provided by an external back channel.
- arbiter 1460 has an output connected to the CPU 1400 via a data path 1402.
- Occupancy information regarding the CPU 1400 is provided to the receivers 1450 in the form of a cpujalmost Jull flag 1408.
- system packets destined for the CPU 1400 in cell 1414-j, and which arrive via the off-chip packet-forwarding module 226, will reach the CPU 1400 via receiver 1450 ⁇ in cell 1414-
- a transmitter 1440 adapted to allow the transmission of system packets and traffic packets along the appropriate forward channel. Without loss of generality, the transmitter 1440 is assumed to reside in cell 1414j and hence the transmitter 1440 is connected to forward channel 21 Oj and back channels 212-
- the transmitter 1440 receives words from the input interface 116 along the data path 230.
- the words are fed to the data memory 702 via a plurality of data input ports.
- the data memory 702 is writable in response to a write address signal and a write enable signal, which are received from a packet insertion module 704 via the writejaddress line 716 and the writejenable line 718, respectively.
- the writejaddress line 716 carries the address in the data memory 702 to which the word presently on the data path 230 is to be written, while the actual operation of writing this word into the specified address is triggered by asserting a signal on the writejenable line 718.
- the data path 230 may pass through an optional delay element 706 before entering the data input ports of the data memory 702.
- the data memory 702 comprises the previously described segments 713, one for each of the N cells on the chip 110.
- Each of the segments 713 is represented by a corresponding one of a plurality of queue controllers 1610.
- Queue controller 1610j has access to an associated control memory 712j comprising a plurality of entries 714J A, 714 j,B 714 j,M which store the occupancy status (i.e., occupied or unoccupied) of the respective slots 708J A, 7 0 8 j,B 7 0 8 j,M in tr *e 1 th segment
- the corresponding entry For each slot that is occupied, the corresponding entry also stores the priority level of the packet occupying that slot.
- the packet insertion module 704 is operable to monitor the EOP bit 368 on each word received via the data path 230 in order to locate the header of newly received packets. Because the EOP bit 368 undergoes a transition (e.g., falling edge) for the word that occurs in a specific position within the packet to which it belongs, detection and monitoring of the EOP bit 368 provides the packet insertion module 704 with an indication as to when a new packet will be received and, since the header 360 is located at the beginning of the packet, the packet insertion module 704 will know when the header 360 of a new packet has been received.
- a transition e.g., falling edge
- the packet insertion module 704 extracts control information from the header 360 of each received packet. Such information includes the destination cell (or cells) of a received packet and its priority level for the purposes of determining into which slot it should be placed in the data memory 702. This information is obtained by extracting the destination field 362 from the header of the received packet in order to determine the destination cell (or cells) associated with the packet. This automatically determines the segment into which the received packet is to be written. In addition, selection of the particular slot into which the packet belongs is achieved in the manner described with reference to the packet insertion module 704 of Fig. 7, namely, by determining the priority class of the received packet and verifying the availability of the slot(s) associated with that priority class. It is noted that the transmitter 1440 draws no distinction between system packets and traffic packets received from the input interface 116 along the data path 230.
- the data memory 702 is also readable in response to a read address supplied by an arbiter 1660 along the readjaddress line 792.
- the arbiter 1660 initiates reads from the data memory 702 as a function of requests received from a plurality of queue controllers 1610, 1610 cp U via a corresponding plurality of request 1603, 1603 cpu .
- request lines 1603j will be asserted if the corresponding queue controller 1610j is desirous of forwarding a traffic packet or a system packet to receiver 1450j in cell 1414j (possibly even cell 1414j itself), while request line 1603 cp U will be asserted if the CPU queue controller 1610CPU is desirous of forwarding a system packet from the CPU 1400 to receiver 1450j in one of the cells (possibly even cell 1414j itself).
- the queue controllers 1610 generate requests in a manner similar to that of the queue controllers 710 described previously with respect to Fig. 7. Specifically, queue controller 1610; is operable to generate a request for transmitting one of the possible multiplicity of packets occupying the slots 708J A, 7 0 8 j,B- ⁇ ⁇ > 708 j,M in the data memory 702.
- the identity of the slot chosen to be transmitted is provided along a corresponding one of a plurality of slotjd lines 1605j while the priority associated with the chosen slot is provided on a corresponding one of a plurality of priority lines 1607j.
- Queue controller 1610j implements a function which determines the identity of the occupied slot which holds the highest-priority packet that can be accommodated by the receiver in the destination cell. This function can be suitably implemented by a logic circuit, for example.
- queue controllers 1610j in the transmitter 1440 in cell 1414j can be designed to verify the entries in the associated control memory 712j in order to determine, amongst all occupied slots associated with segment 713j in the data memory 702, the identity of the slot holding the highest-priority packet.
- Queue controller 1610j then assesses the ability of the receiver in the destination cell (i.e., receiver 1450j in cell 1414j) to accommodate the packet in the chosen slot by processing information received via the corresponding back channel 212j j.
- receiver 1450j in cell 1414j includes a set of M ** slots similar to the M slots in the j th segment 713j of the data memory 702, but M** will be different from M. At least one of these slots will be reserved for accommodating packets destined for the CPU in that cell.
- the information carried by back channel 212j j in such a case will be indicative of the status (occupied or unoccupied) of each of these M * * slots. (Reference may be had to Figs. 17A and 17B, where the receiver slots not reserved for the CPU are denoted 508 and where the receiver slots reserved for the CPU are denoted 1708.
- queue controller 1610j in cell 1414j has knowledge of whether or not its highest-priority packet can be accommodated by the associated receiver 1450j in cell 1414j.
- queue controller 1610j places the identity of the associated slot on the corresponding slotjd line 1605j, places the priority level of the packet on the corresponding priority line 1607j and submits a request to the arbiter 1660 by asserting the corresponding request line 1603j. However, if the highest-priority packet cannot indeed be accommodated, then queue controller 1610j determines, among all occupied slots associated with the segment 713j in the data memory 702, the identity of the slot holding the next-highest-priority packet. As before, this can be achieved by processing information received via the corresponding back channel 212j j.
- queue controller 1610j places the identity of the associated slot on the corresponding slotjd line 1605j, places the priority level of the packet on the corresponding priority line 1607j and submits a request to the arbiter 1660 by asserting the corresponding request line 1603j.
- queue controller 1610j determines, among all occupied slots associated with the segment 713j in the data memory 702, the identity of the slot holding the next-next-highest-priority packet, and so on. If none of the packets can be accommodated or, alternatively, if none of the slots are occupied, then no request is generated by queue controller 1610j and the corresponding request line 1603j remains unasserted.
- the CPU queue controller 1610CPU j s implemented quite differently from the queue controllers 1610.
- the CPU queue controller 1610CPU has access to an associated control memory 1612CPU.
- the control memory 1612CPU comprises one or more entries 1614CPU which store the occupancy status (i.e., occupied or unoccupied) of the respective slots in the forward RAM of the CPU 1400. For each slot in the forward RAM that is occupied (by a system packet), the corresponding entry in the control memory 1612 ⁇ P,J also stores the priority level and the destination cell of that system packet.
- the CPU queue controller 161 ⁇ CPU is operable to generate a request for transmitting a chosen one of the possible multiplicity of system packets occupying the forward RAM of the CPU 1400. Selection of the system packet to be transmitted is based upon the priority level of the packet and on the ability of receiver 1450j in the destination cell to accommodate the chosen system packet. This is achieved by processing information received via the appropriate one of the back channel 212j-
- the CPU queue controller 1610 ⁇ PU finds that the chosen system packet can indeed be accommodated by the receiver in the destination cell, it will make a request to the arbiter 1660.
- such request is associated with a priority level identical to that of the system packet to be transmitted.
- such request is given a lower priority in view of the fact that it is merely a system packet.
- the request to transmit a system packet may be given a relatively high priority.
- the CPU queue controller 1610CPU places the priority level of the request on the cpujpriority line 1607 ( ⁇ 'P , ⁇ ' and submits a request to the arbiter 1660 by asserting the cpujrequest line 1603CPU.
- queue controllers 1610, 1610CPU will be made aware of this fact by the arbiter 1660.
- This exchange of information can be achieved in many ways. For example, in a manner similar to that previously described with reference to the arbiter 760, the arbiter 1660 may identify the queue controller whose request has been granted by sending a unique code on a grant line 1611 and, when ready, the arbiter 1660 may assert a grantjenable line 1615 shared by the queue controllers 1610, 1610CPU.
- the targeted queue controller would thus know that its request has been granted upon (i) detecting a unique code in the signal received from the arbiter via the grant line 1611 ; and (ii) detecting the asserted grantjenable line 1615.
- queue controller 1610j Upon receipt of an indication that its request has been granted, queue controller 1610j accesses the entry in the control memory 712j corresponding to the slot whose packet now faces an imminent exit from the data memory 702 under the control of the arbiter 1660. Specifically, queue controller 1610j changes the status of that particular slot to "unoccupied", which will alter the result of the request computation logic, resulting in the generation of a new request that may specify a different slot. The changed status of a slot will also be reflected in the information subsequently provided upon request to the packet insertion module 704 via the corresponding queue Jull line 726j.
- the CPU queue controller 1610CPU accesses the entry 1614CPU jn the control memory 1612 ⁇ U corresponding to the system packet to be transmitted. Specifically, the CPU queue controller 1610CPU changes the status of that particular slot to "unoccupied", which will alter the result of the request computation logic, resulting in the generation of a new request that may specify a different slot.
- the CPU queue controller 1610CPU places the system packet in the corresponding slot in the forward RAM of the CPU 1400 onto an output line 1621.
- Output line 1621 is multiplexed, at a multiplexer 1620, with the data exiting the data memory 702.
- the multiplexer 1620 is controlled by a signal on a select line 1689 which indicates whether or not the CPU queue controller 1610CPU has been granted. This could be via a bit on the grant line 1611.
- the state of the grant line 1611 may regulate whether the packet being sent along forward channel 21 Oj is taken from the data memory 702 or from the CPU queue controller 161 OcPU- Also upon receipt of an indication that its request has been granted, the target queue controller 1610j, 1610 ⁇ PU asserts a corresponding pointerjjpdate line 1629j, 1629 cpu , which returns back to the arbiter 1660.
- assertion of one of the pointerjjpdate lines 1629j, 1629 CPU indicates to the arbiter 1660 that the grant it has issued has been acknowledged, allowing the arbiter 1660 to proceed with preparing the next grant, based on a possibly new request from the target queue controller and on pending requests from the other queue controllers.
- the arbiter 1660 is now described with continued reference to Fig. 16.
- the function of the arbiter 1660 is to grant one of the requests received from the various queue controllers 1610, 1610 ⁇ PU and to consequently control read operations from the data memory 702 and from the forward RAM in the CPU 1400.
- the arbiter 1660 comprises a request-processing module 1670, an address decoder 1680 and the above-mentioned packet-forwarding module 1690.
- the arbiter 1660 may be similar to the arbiter 760 previously described with reference to Fig. 4, with some differences in the implementation of the request- processing module 1670, the address decoder 1680 and the packet-forwarding module 1690.
- the request-processing module 1670 receives the request lines 1603, 1603 ⁇ PU ) the priority lines 1605, 1605 CPU and the pointerjjpdate lines 1629, 1629CPU from the queue controllers 1610, 1610 ⁇ PU
- the request-processing module 1670 functions to grant only one of the possibly many requests received from the queue controllers 1610, 1610CPU along the request lines 1603, 1603CPU
- the request-processing module 1670 has an output which is the grant line 1611.
- the grant line 1611 is connected to each of the queue controllers 1610, 1610 cp ⁇ -' as well as to the address decoder 1680. In one embodiment of the present invention, the grant line 1611 utilizes a unique binary code to identify the queue controller whose request has been granted.
- the address decoder 1680 receives the grant line 1611 from the request- processing module 1670 and the slotjd lines 1605 from the queue controllers 1610, respectively. If the grant line 1611 identifies a queue controller 1610 that is not the CPU queue controller 1610 ⁇ P U , then the address decoder 1680 computes, as a function of the slot specified on the appropriate slotjd line, a base address in the data memory 702 that stores the first word of the packet for which a request for transmission has been granted. The base address is provided to the packet-forwarding module 1690 via a basejaddress line 1682.
- the packet-forwarding module 1690 is operable to wait until it has finished placing the current packet onto the forward channel 21 Oj before placing the next packet onto the forward channel 21 Oj. After it has finished placing the current packet onto the forward channel 21 Oj, the packet-forwarding module 1690 consults the grant line 1611. If it indicates that the granted queue controller is not the CPU queue controller 1610cPU- tnen tne packet-forwarding module 1690 stores the initial address on the basejaddress line 1682, asserts the grantjenable line 1615 and proceeds to read from the data memory 702 starting from the initial address.
- the packet-forwarding module 1690 controls the multiplexer 1620 via the select line 1689 so that it admits words coming from the data memory 702 and blocks words coming from the forward RAM of the CPU 1400.
- the grant line 1611 indicates that the granted queue controller is the CPU queue controller 1610CPU > tnen t ne packet-forwarding module 1690 asserts the grantjenable line 1615 and initiates a read operation from the forward RAM in the CPU 1400.
- the packet-forwarding module 1690 controls the multiplexer 1620 via select line 1689 so that it admits words coming from the forward RAM of the CPU 1400 and blocks words coming from the data memory 702.
- all received packets along the corresponding forward channel which are either traffic packets or system packets not destined for the CPU are processed as previously described with reference to the receiver of Fig. 5.
- the way in which system packets whose destination cell corresponds to the cell in which the receiver is located and which are specifically destined for the CPU 1400 in the destination cell are processed differently and hence it is necessary to modify the receiver previously described with reference to Fig. 5.
- Figs. 17A and 17B show a receiver 1450j adapted to process system packets received via forward channel 210j.
- the receiver 1450j has a memory which includes various storage areas, including a data memory 1702, a control memory 1712, any memory used by a queue controller 1710 and any other memory used by the receiver 1450j.
- Received cells are fed to the data memory 1702 via a plurality of data input ports.
- the data memory 1702 is writable in response to a write address and a write enable signal received from a packet insertion module 1704 via the previously described writejaddress line 516 and a writejenable line 518, respectively.
- the writejaddress line 516 carries the address in the data memory 1702 to which the word presently on the forward channel 210j is to be written, while the actual operation of writing this word into the specified address is triggered by asserting a signal on the writejenable line 518.
- the forward channel 210j may pass through the previously described optional delay element 506 before entering the data input ports of the data memory 1702.
- the data memory 1702 contains M* * slots 508, 1708, including the M * previously described slots 508A, 508 ⁇ , ⁇ ⁇ , 508M*, as well as one or more additional slots 1708, where each slot is large enough to accommodate a packet as described herein above. Slots 508A, 508 ⁇ , ... and 508M* are reserved for packets destined for the off-chip input queue 228 and slot(s) 1708 are reserved for system packets destined for the CPU 1400.
- the data memory 1702 includes four slots 508A, 508 ⁇ , 508c, 1708, where slot 508A may be associated with a high priority class, slot 508 ⁇ may be associated with a medium priority class, slot 508c ma y be associated with a low priority class and slot 1708 may be associated with a system packet of any priority destined for the CPU 1400.
- the queue controller 1710 in receiver 1450j has access control memory 1712, which comprises a plurality of entries 514A, 514 ⁇ 514M*, 1714 for storing the occupancy status (i.e., occupied or unoccupied) of the respective slots 508A, 508 ⁇ , •••, 508M*, 7 08 in the data memory 1702.
- the corresponding entry stores the priority level of the packet occupying that slot.
- the entries 514A, 514 ⁇ , ..., 514M*, 1 14 may take the form of registers, for example.
- the fill level or vacancy status may be stored by the control memory 1712.
- the packet insertion module 1704 is operable to monitor the EOP bit 368 on each word received via the forward channel 210j in order to locate the header of newly received packets. It is recalled that the EOP bit 368 undergoes a transition (e.g., falling edge) for the word that occurs in a specific position within the packet to which it belongs. In this way, detection and monitoring of the EOP bit 368 provides the packet insertion module 1704 with an indication as to when a new packet will be received and, since the header 360 is located at the beginning of the packet, the packet insertion module 1704 will know where to find the header 360 of a newly received packet.
- a transition e.g., falling edge
- the packet insertion module 1704 extracts control information from the header 360 of each newly received packet. Such information includes the destination of a newly received packet and an indication as to whether the received packet is a system packet that is destined for the CPU 1400.
- the packet insertion module 1704 accepts packets destined for which the destination cell is cell 114j and ignores packets for which the destination cell is not cell 114j.
- the packet insertion module 1704 also determines the slot into which a received and accepted packet should be inserted. In the case of a received packet being a system packet, such packet will not require special treatment unless the TCPU field in the header of the packet is set.
- the received packet needs to be placed into the slot reserved for system packets, which would be slot 1708 in the above example.
- the TCPU field 1810 in the header 1860 of a system packet 1850 is not set (i.e., if only the FCPU 1820 field of the system packet is set), then the receiver 1450j is to treat such system packet like a traffic packet.
- the header 360 of a traffic packet 350 will indicate the priority level of the packet for the purposes of determining into which slot it should be placed in the data memory 1702.
- the packet insertion module 1704 is operable to determine the priority class of the packet by comparing the priority level of the packet to the previously defined priority thresholds.
- the priority level of the received packet is 12, for example, then the slot into which it should be written would be slot 508c-
- the packet insertion module 1704 knows that it can write the received traffic packet into slot 508c because, it will be recalled, the packet could only be transmitted on the forward channel 210j if the corresponding slot were available in the first place. Nonetheless, it is within the scope of the present invention to include larger numbers of slots where more than one slot would be associated with a given priority class, which may require the packet insertion module 1704 to verify the occupancy of the individual slots 508 by consulting the queuejull line 526 (previously described) received from the queue controller 1710.
- the packet insertion module 1704 determines a corresponding base address in the data memory 1702 into which the first word of the packet is to be written. This may be done either by computing an offset which corresponds to the relative position of the chosen slot or by consulting a short lookup table that maps slots to addresses in the data memory 1702.
- the packet insertion module 1704 is operable to provide the base address to the data memory 1702 via the writejaddress line 516 and is further operable to assert the writejenable line 518.
- the packet insertion module 504 sends a signal to the queue controller 1710 along the newjpacket line 528 (previously described with reference to Fig. 5), such signal being indicative of the identity of the slot which is being written to and the priority level of the packet which shall occupy that slot.
- the queue controller 1710 is adapted to process this signal by updating the status and priority information associated with the identified slot (which was previously unoccupied).
- the address on the writejaddress line 516 is then incremented at each clock cycle (or at each multiple of a clock cycle) as new words are received along the forward channel 210j. This will cause the words of the packet to fill the chosen slot in the data memory 1702. Meanwhile, the EOP bit 368 in each received word is monitored by the packet insertion module 1704. When a new packet is detected, the above process re-starts with extraction of control information from the header 360 of the newly received packet.
- the data memory 1702 is also readable in response to receipt of a read address supplied along a corresponding readjaddress line 1793j.
- dual ported RAM may be used to allow simultaneous reading and writing, although a single-ported RAM could be used in order to reduce chip real estate.
- the readjaddress line 1793j is the output of a 1x2 demultiplexer 1794 which is controlled by a control signal received from the queue controller 1710 via a control line 1795.
- the demultiplexer 1794 also has two data inputs, one of which (denoted 1791) stems from an arbiter 260 and another of which (denoted 1792) stems from an arbiter 1760.
- the arbiter 260 operates as previously described, i.e., it initiates reads from the data memory 1702 as a function of requests received from the queue controller 1710 in each of the receivers 1450 via the corresponding plurality of request lines 503 (previously described). A particular request line 503j will be asserted if the queue controller 1710 in the corresponding receiver 1450j is desirous of forwarding a packet to the off-chip input queue 228.
- the arbiter 1760 initiates reads from the data memory 1702 as a function of requests received from the queue controller 1710 in each of the receivers 1450 via a corresponding plurality of tcpujrequest lines 1703.
- a particular tcpujrequest line 1703j will be asserted if the queue controller 1710 in the corresponding receiver 1450j is desirous of putting a system packet into the insert RAM of the CPU 1400.
- the two arbiters 260, 1760 operate in parallel and can concurrently process two different requests from two different receivers 1450.
- the queue controller 1710 in each of the receivers 1450 only allows one granted request to be processed at any given time.
- the following provides one possible implementation of the queue controller 1710 in receiver 1450j which is adapted to generate up to two requests for the transmission of two packets, one for off-chip transmission of one from one of the slots 508A, 508 ⁇ , •••, 508M* in the data memory 1702 and one for CPU-bound transmission of one of the packets occupying the slot(s) 1708.
- the queue controller 1710 implements a function which verifies the entries in the control memory 1712 in order to determine the identity of the occupied slot which holds the highest-priority packet that can be accommodated by the off-chip input queue 228.
- This function can be suitably implemented by a logic circuit, for example.
- the queue controller 1710 is designed to determine, amongst all occupied slots amongst slots 508 in the data memory 1702, the identity of the slot holding the highest-priority packet. The queue controller 1710 then assesses the ability of the off-chip input queue 228 to accommodate that packet by processing information received via the almostjull flag 208.
- the almostjull flag 208 may consist of a plurality of almostjull flags, one for each priority class (high, medium, low). This allows preferential treatment for high-priority packets by setting the occupancy threshold for asserting the high-priority almostjull flag higher than the threshold for asserting the low-priority almostjull flag.
- the queue controller 1710 places the identity of the associated slot on the corresponding slotjd line 505j, places the priority level of the packet on the corresponding priority line 507j and submits a request to the arbiter 260 by asserting the corresponding request line 503j. However, if the highest-priority packet cannot indeed be accommodated, then the queue controller 1710 determines, among all occupied slots in the data memory 1702, the identity of the slot holding the next- highest-priority packet. As before, this can be achieved by processing information received via the almostjull flag 208.
- queue controller 1710 places the identity of the associated slot on the corresponding slotjd line 505j, places the priority level of the packet on the corresponding priority line 507j and submits a request to the arbiter 260 by asserting the corresponding request line 503j. However, if the next-highest-priority packet cannot indeed be accommodated, then the queue controller 1710 determines, among all occupied slots in the data memory 1702, the identity of the slot holding the next-next-highest-priority packet, and so on.
- the queue controller 1710 places the identity of slot 1708 on the corresponding tcpujslotjd line 705;, places the priority level of the packet on the corresponding tcpujpriority line 1707j and submits a request to the arbiter 1760 by asserting the corresponding tcpujrequest line 1703j.
- the queue controller 1710 may identify the receiver containing the queue controller whose request has been granted by sending a unique code on a common grant line 511 and, when ready, the arbiter 260 may assert a grantjenable line 515 shared by the queue controller 1710 in each of the receivers 1450.
- the queue controller 1710 may thus establish that its request has been granted by (i) detecting a unique code in the signal received from the arbiter 260 via the grant line 511 ; and (ii) detecting the asserted grantjenable line 515.
- the arbiter 1460 may identify the receiver containing the queue controller whose request has been granted by sending a unique code on a common cpujgrant line 1711 and, when ready, the arbiter 1460 may assert a cpujgrantjenable line 1715 shared by the queue controller 1710 in each of the receivers 1450.
- the queue controller 1710 may thus establish that its request has been granted by (i) detecting a unique code in the signal received from the arbiter 1460 via the cpujgrant line 1711 ; and (ii) detecting the asserted cpujgrantjenable line 1715.
- the queue controller 1710 Upon receipt of an indication that either or both of its requests have been granted, the queue controller 1710 processes at most one of these. In one embodiment, a granted request to arbiter 260 has priority over a granted request to arbiter 1460. Depending on which granted request is accepted, the queue controller 1710 reacts differently.
- the queue controller 1710 accesses the entry in the control memory 1712 corresponding to the slot whose packet now faces an imminent exit from the data memory 1702 under the control of the arbiter 260. Specifically, the queue controller 1710 changes the status of that particular slot to "unoccupied", which will alter the result of the request computation logic, resulting in the generation of a new request which may specify a different slot. In the case where the packet insertion module 1704 needs to know the status of a slot, the changed status of a slot will be reflected in the information provided via the queue Jull line 526.
- the queue controller 1710 asserts the corresponding pointerjjpdate line 529j (previously described) which runs back to the arbiter 260. Assertion of one of the pointerjjpdate lines 529j indicates to the arbiter 260 that the grant it has issued has been acknowledged, allowing the arbiter 260 to proceed with preparing the next grant, based on a possibly new request from the queue controller 1710 in receiver 1450; and on pending requests from queue controllers in other ones of the receivers 1450.
- the queue controller 1710 controls the signal on the control line 1795 leading to the multiplexer 1794 so that the address provided along the readjaddress line 1793j is the read address output by arbiter 260.
- the queue controller 1710 asserts a corresponding pointerjjpdate line 1729j which runs back to the arbiter 1460. Assertion of one of the pointerjjpdate lines 1729j indicates to the arbiter 1460 that the grant it has issued has been acknowledged, allowing the arbiter 1460 to proceed with preparing the next grant, based on a possibly new request from the queue controller 1710 in receiver 1450j and on pending requests from queue controllers in other ones of the receivers 1450. Additionally, the queue controller 1710 controls the signal on the control line 1795 leading to the multiplexer 1794 so that the address provided along the readjaddress line 1793j is the read address output by arbiter 1460.
- the function of the arbiter 260 is to receive a request from the queue controller 1710 in each of the receivers 1450, to grant only one of the requests and to control read operations from the data memory 1702.
- the arbiter 260 comprises a request-processing module 570, an address decoder 580 and a packet-forwarding module 590.
- the arbiter 260 is identical to the arbiter 260 previously described with reference to Fig. 5 and therefore no further description is necessary.
- the function of the arbiter 1460 is to receive a request from the queue controller 1710 in each of the receivers 1450, to grant only one of the requests and to control read operations from the data memory 1702.
- the arbiter 1460 comprises a request-processing module 1770, an address decoder 1780 and a packet-forwarding module 1790.
- the arbiter 1460 is very similar to the arbiter 260 previously described with reference to Fig. 5, with a minor variation in the implementation of the address decoder 1780.
- the address decoder 1780 receives the cpujgrant line 1711 from the request-processing module 1770 but and the slotjd lines 1705 from the queue controllers 1710 in the various receivers 1450.
- the address decoder 1780 computes a base address in the data memory 1702 that stores the first word of the system packet for which transmission has been granted.
- the base address is computed as a function of the code specified on the cpujgrant line 1711.
- the base address is provided to the packet-forwarding module 1790 via a base address line 1782.
- memory should be understood to refer to any data storage capability, either distributed, or in one single block.
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 (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU2002302279A AU2002302279A1 (en) | 2001-06-01 | 2002-05-31 | Cell-based switch fabric architecture on a single chip |
EP02729739A EP1396117A2 (en) | 2001-06-01 | 2002-05-31 | Cell-based switch fabric architecture on a single chip |
CA2448978A CA2448978C (en) | 2001-06-01 | 2002-05-31 | Cell-based switch fabric architecture |
Applications Claiming Priority (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US09/870,703 US20020181453A1 (en) | 2001-06-01 | 2001-06-01 | Cell-based switch fabric with distributed arbitration |
US09/870,767 US6990097B2 (en) | 2001-06-01 | 2001-06-01 | Cell-based switch fabric with inter-cell control for regulating packet flow |
US09/870,766 | 2001-06-01 | ||
US09/870,767 | 2001-06-01 | ||
US09/870,766 US6990096B2 (en) | 2001-06-01 | 2001-06-01 | Cell-based switch fabric architecture implemented on a single chip |
US09/870,703 | 2001-06-01 | ||
US09/870,800 | 2001-06-01 | ||
US09/870,841 US7197042B2 (en) | 2001-06-01 | 2001-06-01 | Cell-based switch fabric with cell-to-line-card control for regulating injection of packets |
US09/870,800 US7277429B2 (en) | 2001-06-01 | 2001-06-01 | Cell-based switch fabric with distributed scheduling |
US09/870,841 | 2001-06-01 |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2002098066A2 true WO2002098066A2 (en) | 2002-12-05 |
WO2002098066A3 WO2002098066A3 (en) | 2003-09-25 |
Family
ID=27542275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CA2002/000810 WO2002098066A2 (en) | 2001-06-01 | 2002-05-31 | Cell-based switch fabric architecture on a single chip |
Country Status (5)
Country | Link |
---|---|
EP (1) | EP1396117A2 (en) |
CN (1) | CN100579057C (en) |
AU (1) | AU2002302279A1 (en) |
CA (1) | CA2448978C (en) |
WO (1) | WO2002098066A2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019046075A1 (en) | 2017-08-30 | 2019-03-07 | Arista Networks Inc. | Distributed core switching with orthogonal fabric card and line cards |
CN112044081A (en) * | 2020-08-26 | 2020-12-08 | 杭州电魂网络科技股份有限公司 | Method and system for updating and inquiring player list |
US11601734B2 (en) | 2019-04-11 | 2023-03-07 | Arista Networks, Inc. | Network device with compact chassis |
US11737204B2 (en) | 2019-09-18 | 2023-08-22 | Arista Networks, Inc. | Linecard system using riser printed circuit boards (PCBS) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103765816A (en) * | 2011-09-28 | 2014-04-30 | 惠普发展公司,有限责任合伙企业 | Managing a switch fabric |
CN104641609B (en) * | 2012-09-10 | 2018-03-09 | 马维尔国际贸易有限公司 | Method and apparatus for transmitting packet between the interface control module of Line cards |
KR101519743B1 (en) * | 2013-11-29 | 2015-05-12 | 엘에스산전 주식회사 | Bi-directional Packet Transfer Fail-over Switch for Serial Communication |
CN113868172B (en) * | 2021-09-28 | 2024-06-18 | 上海兆芯集成电路股份有限公司 | Interconnect interface |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0241152A2 (en) * | 1986-04-10 | 1987-10-14 | Stc Plc | Automatic telecommunication switching system |
WO1998026539A2 (en) * | 1996-12-12 | 1998-06-18 | Integrated Telecom Technology, Inc. | Method and apparatus for high-speed, scalable communication system |
US5790539A (en) * | 1995-01-26 | 1998-08-04 | Chao; Hung-Hsiang Jonathan | ASIC chip for implementing a scaleable multicast ATM switch |
US5831980A (en) * | 1996-09-13 | 1998-11-03 | Lsi Logic Corporation | Shared memory fabric architecture for very high speed ATM switches |
US6069895A (en) * | 1997-08-29 | 2000-05-30 | Nortel Networks Corporation | Distributed route server |
EP1051001A2 (en) * | 1993-01-29 | 2000-11-08 | Telefonaktiebolaget Lm Ericsson | Controlled access ATM switch |
-
2002
- 2002-05-31 AU AU2002302279A patent/AU2002302279A1/en not_active Abandoned
- 2002-05-31 CA CA2448978A patent/CA2448978C/en not_active Expired - Fee Related
- 2002-05-31 EP EP02729739A patent/EP1396117A2/en not_active Withdrawn
- 2002-05-31 CN CN02814443.0A patent/CN100579057C/en not_active Expired - Fee Related
- 2002-05-31 WO PCT/CA2002/000810 patent/WO2002098066A2/en not_active Application Discontinuation
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0241152A2 (en) * | 1986-04-10 | 1987-10-14 | Stc Plc | Automatic telecommunication switching system |
EP1051001A2 (en) * | 1993-01-29 | 2000-11-08 | Telefonaktiebolaget Lm Ericsson | Controlled access ATM switch |
US5790539A (en) * | 1995-01-26 | 1998-08-04 | Chao; Hung-Hsiang Jonathan | ASIC chip for implementing a scaleable multicast ATM switch |
US5831980A (en) * | 1996-09-13 | 1998-11-03 | Lsi Logic Corporation | Shared memory fabric architecture for very high speed ATM switches |
WO1998026539A2 (en) * | 1996-12-12 | 1998-06-18 | Integrated Telecom Technology, Inc. | Method and apparatus for high-speed, scalable communication system |
US6069895A (en) * | 1997-08-29 | 2000-05-30 | Nortel Networks Corporation | Distributed route server |
Non-Patent Citations (1)
Title |
---|
NOTANI H ET AL: "An 8*8 ATM switch LSI with shared multi-buffer architecture" PROCEEDINGS OF THE SYMPOSIUM ON VLSI CIRCUITS. SEATTLE, JUNE 4 - 6, 1992, SYMPOSIUM ON VLSI CIRCUITS, NEW YORK, IEEE, US, 4 June 1992 (1992-06-04), pages 74-75, XP010064987 ISBN: 0-7803-0701-1 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019046075A1 (en) | 2017-08-30 | 2019-03-07 | Arista Networks Inc. | Distributed core switching with orthogonal fabric card and line cards |
EP3677104A4 (en) * | 2017-08-30 | 2021-06-02 | Arista Networks, Inc. | Distributed core switching with orthogonal fabric card and line cards |
US11601734B2 (en) | 2019-04-11 | 2023-03-07 | Arista Networks, Inc. | Network device with compact chassis |
US11737204B2 (en) | 2019-09-18 | 2023-08-22 | Arista Networks, Inc. | Linecard system using riser printed circuit boards (PCBS) |
CN112044081A (en) * | 2020-08-26 | 2020-12-08 | 杭州电魂网络科技股份有限公司 | Method and system for updating and inquiring player list |
CN112044081B (en) * | 2020-08-26 | 2023-11-10 | 杭州电魂网络科技股份有限公司 | Method and system for updating and inquiring player list |
Also Published As
Publication number | Publication date |
---|---|
EP1396117A2 (en) | 2004-03-10 |
CN1533655A (en) | 2004-09-29 |
AU2002302279A1 (en) | 2002-12-09 |
CA2448978C (en) | 2011-08-09 |
CN100579057C (en) | 2010-01-06 |
CA2448978A1 (en) | 2002-12-05 |
WO2002098066A3 (en) | 2003-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7277429B2 (en) | Cell-based switch fabric with distributed scheduling | |
US6990097B2 (en) | Cell-based switch fabric with inter-cell control for regulating packet flow | |
US20060239259A1 (en) | Cell-based switch fabric with distributed arbitration | |
US10853282B2 (en) | Arbitrating portions of transactions over virtual channels associated with an interconnect | |
US7197042B2 (en) | Cell-based switch fabric with cell-to-line-card control for regulating injection of packets | |
US6771596B1 (en) | Backpressure mechanism for a network device | |
US9742630B2 (en) | Configurable router for a network on chip (NoC) | |
US7342889B2 (en) | Means and a method for switching data packets or frames | |
TWI390913B (en) | Apparatus, method, and machine-readable storage medium for transferring data between data modules using a buffered crossbar switch system | |
KR100620835B1 (en) | Optimized scalable network switch | |
US20030107996A1 (en) | Fibre channel arbitrated loop bufferless switch circuitry to increase bandwidth without significant increase in cost | |
Chrysos et al. | SCOC: High-radix switches made of bufferless clos networks | |
US7356628B2 (en) | Packet switch with multiple addressable components | |
US9185026B2 (en) | Tagging and synchronization for fairness in NOC interconnects | |
US6990096B2 (en) | Cell-based switch fabric architecture implemented on a single chip | |
CA2448978C (en) | Cell-based switch fabric architecture | |
CN102546417A (en) | Scheduling method of network-on-chip router based on network information | |
US5883895A (en) | Arbitration ring with automatic sizing for a partially populated switching network | |
US20060256793A1 (en) | Efficient multi-bank buffer management scheme for non-aligned data | |
US6819675B2 (en) | Self-route multi-memory expandable packet switch with overflow processing means | |
US7254139B2 (en) | Data transmission system with multi-memory packet switch | |
US20040066791A1 (en) | Asynchronous expansible switching system for switching packet with different length | |
US7130302B2 (en) | Self-route expandable multi-memory packet switch | |
Abts et al. | Scalable Switch Microarchitecture | |
KR20000033361A (en) | Method for setting up path of multi-connecting multi-layer switch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A2 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TN TR TT TZ UA UG US UZ VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A2 Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM 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 TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWE | Wipo information: entry into national phase |
Ref document number: 2448978 Country of ref document: CA |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2002729739 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 20028144430 Country of ref document: CN |
|
WWP | Wipo information: published in national office |
Ref document number: 2002729739 Country of ref document: EP |
|
REG | Reference to national code |
Ref country code: DE Ref legal event code: 8642 |
|
WWW | Wipo information: withdrawn in national office |
Ref document number: 2002729739 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: JP |
|
WWW | Wipo information: withdrawn in national office |
Country of ref document: JP |