US7609693B2 - Multicast packet queuing - Google Patents
Multicast packet queuing Download PDFInfo
- Publication number
- US7609693B2 US7609693B2 US10/443,505 US44350503A US7609693B2 US 7609693 B2 US7609693 B2 US 7609693B2 US 44350503 A US44350503 A US 44350503A US 7609693 B2 US7609693 B2 US 7609693B2
- Authority
- US
- United States
- Prior art keywords
- packet
- pointer
- cell
- multicast
- sop
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related, expires
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/901—Buffering arrangements using storage descriptor, e.g. read or write pointers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/15—Flow control; Congestion control in relation to multipoint traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9084—Reactions to storage capacity overflow
- H04L49/9089—Reactions to storage capacity overflow replacing packets in a storage arrangement, e.g. pushout
- H04L49/9094—Arrangements for simultaneous transmit and receive, e.g. simultaneous reading/writing from/to the storage element
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/54—Store-and-forward switching systems
- H04L12/56—Packet switching systems
- H04L12/5601—Transfer mode dependent, e.g. ATM
- H04L2012/5638—Services, e.g. multimedia, GOS, QOS
- H04L2012/564—Connection-oriented
- H04L2012/5642—Multicast/broadcast/point-multipoint, e.g. VOD
Definitions
- the present invention relates generally to packet-based traffic forwarding, and more particularly to the queuing of multicast packets.
- Packet-switched networks are responsible for forwarding packet-based traffic.
- packets are broken into fixed-length cells and forwarded from an ingress module, across a switching fabric, to an egress module, where the cells are typically reassembled into packets. After reassembly, the packets are typically enqueued in packet queues for transmission to a destination that is dependent upon the information in the packet headers.
- Packets are either unicast (UC) or multicast (MC).
- a MC packet has multiple destinations. Typically, a MC packet is enqueued one time for each destination. Enqueuing a MC packet one time for each destination uses up memory resources. Moreover, writing packets to memory one time per destination consumes write memory bandwidth resources.
- a technique for efficiently queuing multicast (MC) packets for transmission involves allocating a MC pointer for the first cell of a MC packet.
- the advantages of utilizing this technique include storing a MC packet only one time in packet memory, thereby improving memory and write bandwidth resource utilization to, for example, allow more packets to be written per unit of time.
- An embodiment of the invention includes associating a multicast pointer with a multicast packet, keeping track of valid destinations to which the multicast packet is directed, but to which a copy of the multicast packet has not been sent, and recycling the multicast pointer after a copy of the multicast packet is sent to each of the valid destinations.
- Another embodiment of the invention includes maintaining a first queue associated with a first destination, maintaining a second queue associated with a second destination, enqueuing a multicast start-of-packet (SOP) pointer associated with a packet on the first queue, and enqueuing the multicast SOP pointer on the second queue.
- SOP start-of-packet
- Another embodiment of the invention is a system that includes a receive module configured to receive cells, including a first cell and a second cell, determine that the first cell is a multicast start-of-packet (SOP) cell, establish that the second cell is a unicast SOP cell, associate a first type of pointer with the first cell in accordance with said determination, and associate a second type of pointer with the second cell in accordance with said establishing.
- SOP multicast start-of-packet
- the system further includes a plurality of packet queues configured to enqueue the first cell in a subplurality of the plurality of packet queues and enqueue the second cell in one of the plurality of packet queues, wherein the first cell is associated with a first reassembled packet and the second cell is associated with a second reassembled packet.
- the system includes a transmit module configured to transmit the reassembled packets.
- FIG. 1 is a block diagram of a traffic forwarding system in accordance with an embodiment of the invention.
- FIG. 2 is a block diagram of an exemplary cell for use with the system of FIG. 1 in accordance with an embodiment of the invention.
- FIG. 3 is a block diagram of an egress module for use with the system of FIG. 1 in accordance with an embodiment of the invention.
- FIGS. 4A and 4B are a block diagrams of exemplary queues for use with the egress subsystem of FIG. 3 in accordance with an embodiment of the invention.
- FIGS. 5A to 5D are flowcharts of methods in accordance with embodiments of the invention.
- FIGS. 6A and 6B are flowcharts of methods in accordance with embodiments of the invention.
- an embodiment of the invention is a system for reassembling packets using cells received across a plurality of switching fabrics.
- FIG. 1 is a block diagram of a traffic forwarding system 100 in accordance with an embodiment of the invention.
- the system 100 includes media modules 152 , 154 , 156 , and 158 , packet processor modules 102 - 1 to 102 -N (referred to collectively as the packet processor modules 102 ) and 162 - 1 to 162 -N (referred to collectively as the packet processor modules 162 ), and switching fabric modules 130 - 1 to 130 -N (referred to collectively as the switching fabric modules 130 ).
- the media modules 152 , 154 , 156 , and 158 are respectively coupled to the packet processor modules 102 - 1 , 102 -N, 162 - 1 , and 162 -N.
- each packet processor module might be coupled to two or more media modules (not shown).
- the packet processor modules 102 and 162 are coupled to the switching fabric modules 130 .
- the switching fabric modules 130 include circuitry to replicate cells by writing to multiple buffers. This functionality may be used with multicast (MC) cells that target a plurality of destinations.
- the packet processor module 102 - 1 includes an interface module 104 - 1 for forwarding packets to and from the media module 152 , an ingress module 106 - 1 for forwarding cells to the switching fabric modules 130 , and an egress module 108 - 1 for receiving cells from the switching fabric modules 130 .
- the packet processor modules 102 and 162 have comparable components and couplings.
- the interface modules 104 are configured to receive packets.
- the system 100 handles traffic in discrete units, often referred to as datagrams.
- the system 100 is an Ethernet switch or an Ethernet router that forwards traffic within the system 100 using Layer 2, Layer 3, and/or Layer 4 header information.
- the system 100 may include line cards that support network protocols such as Ethernet, ATM, and Frame Relay. Although an Ethernet-based switch/router is described, the disclosed cell reassembly techniques can be applied to any system that has multiple switching fabrics.
- FIG. 2 is a block diagram of an exemplary cell 200 for use with the system 100 ( FIG. 1 ) in accordance with an embodiment of the invention.
- the cell 200 includes a 64-byte cell portion 210 .
- the 64-byte cell portion 210 includes a start-of-packet (SOP) flag 212 , a MC flag 214 , a priority field 216 , an end-of-packet (EOP) flag 218 , a test flag 220 , a read OK (RDOK) flag 222 , optional control data 224 , and a payload 230 - 1 to 230 - 62 (collectively referred to as the payload 230 ).
- the data other than the payload may be referred to as header information.
- the SOP flag 212 is set if a packet is broken into portions and the payload 230 of the cell 200 includes the first portion of the packet. A use for the SOP flag 212 is described with reference to FIG. 3 , below.
- the MC flag 214 is set if the packet is a MC packet and not set if the packet is a unicast (UC) packet.
- the priority field 216 contains the priority of the packet. In an embodiment, different priorities are indicative of different traffic classes. In another embodiment, packets having different traffic classes are forwarded to and from and reassembled in different queues, as described with reference to FIG. 3 , below.
- the EOP flag 218 is set if the payload 230 of the cell 200 includes the last portion of a packet. In an embodiment, the EOP flag 218 is optional. A use for the EOP flag 218 is described with reference to FIG. 3 , below.
- the test flag 220 is set if the cell 200 includes a hardware test packet. Hardware test packets may be used to determine whether switching fabrics are available, or for other purposes.
- the RDOK flag 222 is set if reading of the cell 200 is allowed. The RDOK flag 222 is set during normal operation.
- the optional control data 224 is used to identify an egress port, check for and correct errors, or other uses. The details of the control data are not critical for the purpose of disclosing embodiments of the invention.
- the payload 230 includes a packet or a portion of a packet.
- FIG. 3 is a block diagram of an egress module 300 for use with the system 100 ( FIG. 1 ) in accordance with an embodiment of the invention.
- the egress module 300 is analogous to one of the egress modules 108 ( FIG. 1 ).
- the egress module 300 includes a receive module 312 , a packet memory 314 , a transmit module 316 , a destination mask lookup table 322 , reassembly queues 324 , a packet constructor 326 , an optional random early discard (RED) block 332 , packet queues 334 , an allocation count engine 342 , and free pointers buffer 344 .
- RED random early discard
- the ingress modules 106 send cells in order.
- the switching fabrics 130 FIG. 1 ) then forward the cells to the egress module 300 .
- the receive module 312 receives cells from one or more switching fabrics on one or more high-speed interfaces (HSI) 302 .
- the receive module 312 includes a simple streaming buffer.
- the cells are stored in the packet memory 314 .
- the packet memory 314 may be a dynamic random access memory (DRAM).
- the packet memory 314 is an external DRAM (e.g., the DRAM is not on-chip).
- the cells are written to the packet memory 314 once upon arrival from the HSI 302 and read once when transmitted on interface 350 from the transmit module 316 .
- MC packets are read once per transmission. Except for writes by the receive module 312 and reads by the transmit module 316 , operations on cells or packets are actually on the pointers to the corresponding cells or packets.
- a MC packet is treated a bit differently than a UC packet. Accordingly, a different pointer is used to represent a cell depending upon whether the cell is a MC SOP cell or not.
- the free pointers buffer 344 includes pointers 346 and MC SOP pointers 348 .
- the MC SOP pointer structure includes a main pointer, auxiliary pointers, and control information, which may include a SOP flag, EOP flag, and MC flag.
- the MC SOP pointer structure enables the egress module 300 to link a single packet onto more than one of the packet queues 334 , as described later with reference to FIG. 4B .
- the receive module 312 When the receive module 312 receives a MC SOP cell, in addition to assigning one of the MC SOP pointers, the receive module 312 consults the destination mask lookup table 322 to determine each destination of the cell.
- the destination mask lookup table 322 is implemented in software.
- a MC SOP cell includes data from which the destinations of the MC packet can be determined. The data may be header information that is extracted from the MC SOP cell.
- An assigned MC SOP pointer is associated with one of the masks of the destination mask lookup table 322 according to this data.
- the destination mask is included in control information associated with the MC SOP pointer.
- the pointer structure includes a cell token pointer and control information, which may include a SOP flag, EOP flag, and MC flag.
- the cell-(or, more specifically, the pointer to the cell) is directed to a reassembly queue of the reassembly queues 324 to await the arrival of more cells.
- the egress module 300 includes a reassembly queue for cells from each of the ingress modules 106 of each traffic class received via each switching fabric module 130 , for a total of up to 2048 (64 ingresses*8 traffic classes*4 fabrics) reassembly queues 324 .
- each reassembly queue set includes queues respectively associated with each fabric.
- each queue set includes four queues.
- the cells of a packet are maintained with a linked list with each node having a link to the next cell of the same packet and a link to the next packet in the same queue.
- the assignment of a pointer to a cell may be referred to as token assignment; the relatively small pointer (a token) represents the relatively large cell while the cell is stored in the packet memory 314 .
- cells are 64 bytes in size while pointers are only four bytes.
- the tokenized cells are maintained in external static random access memory (SRAM).
- SRAM static random access memory
- pointers are assigned to each cell of a packet. The tokens are provided at the receive module 312 from the free pointers buffer 344 .
- the packet constructor 326 includes in-progress buffers 328 and a reassembly engine 330 .
- the in-progress buffers 328 include head pointer array 304 and tail pointer array 306 .
- the head pointer array 304 and tail pointer array 306 are used to keep track of packets as the reassembly engine 330 reassembles the packets from their component cells, as described with reference to FIG. 5B .
- the packet constructor 326 receives cells from the reassembly queues 324 when a reassembly queue set is complete.
- the packet constructor 326 considers the cells received from the reassembly queues 324 one at a time (rather than four at a time). In an alternative, the packet constructor 326 both receives the cells one at a time and considers the cells one at a time.
- the head pointer array 304 points to the SOP cell of packets that are being reassembled and the tail pointer array 306 points to the tails of the packets.
- Each head pointer of the head pointer array 304 is associated with a respective tail pointer of the tail pointer array 306 .
- the reassembly engine 330 links the cells of the packet together in the packet memory starting with a SOP cell.
- a head pointer of the head pointer array 304 points to the SOP cell. Until the packet has been reassembled, however, since packets are reassembled cell-by-cell, the respective tail pointers do not point to an EOP cell.
- a next pointer associated with the last cell received for the packet is used to link the cell that was just received.
- the tail pointer is modified to point to the newly added cell.
- the head pointer points to the SOP cell and the tail pointer points to the last cell added to the linked list.
- Packets that have been reassembled at the packet constructor 326 may be dropped at the RED block 332 .
- the RED block 332 is an optional mechanism for managing traffic congestion in a manner that is well known in the art of packet-based traffic congestion management. For the purposes of RED, each destination of a MC packet is treated separately. Accordingly, one or more of the destinations may be dropped at the RED block 332 , while other destinations are not dropped.
- the use of RED to determine which packets are either dropped or enqueued at the packet queues 334 is described with reference to FIG. 5C .
- FIG. 5C is also used to illustrate how the allocation count engine 342 transforms the destination mask of a multicast packet into an allocation count.
- the allocation count engine 342 includes a 3-bit allocation count for each allocated MC head pointer, which corresponds to up to 8 destinations.
- the allocation count indicates the number of destinations of the MC packet minus the number of destinations that were dropped by the RED block 332 .
- An alternative embodiment without the optional RED block 332 involves enqueuing reassembled packets in the packet queues 334 without using a RED algorithm to control traffic flow. Other traffic congestion control mechanisms may or may not be used instead of RED.
- Another alternative involves using the destination mask instead of the allocation count.
- the allocation count engine 342 modifies the destination mask. Accordingly, for the purposes of this application, the term allocation count is defined broadly to include either a count or a mask, such as the destination mask.
- the packet queues 334 include columns 336 - 1 to 336 -N (collectively referred to as columns 336 ) and rows 338 - 1 to 338 -N (collectively referred to as rows 338 ). There is a packet queue at each intersection of columns 336 and rows 338 .
- Each packet queue is configured to queue packets that are directed to an associated destination. In an embodiment, there are five associated destinations.
- Each packet queue is also configured to queue packets that have an associated traffic class. In an embodiment, there are eight associated traffic classes.
- each column 336 of the packet queues 334 corresponds to a destination and a traffic class
- the transmit module 316 is configured to transmit a packet having one of eight traffic classes to one of five destinations, then there are 40 packet queues 334 (8 traffic classes*5 destinations).
- the packet queues 334 are implemented using linked lists in an external SRAM.
- the MC SOP pointer is configured to occupy each column of the columns 336 across a single row of the rows 338 of the packet queues 334 ; this corresponds to every destination queue for a given traffic class.
- each of the more than one of the packet queues 334 are associated with the same traffic class. This is because a MC packet with a first priority associated with a first destination does not have a second priority associated with a second destination. Rather, the MC packet will have the same priority associated with both the first and the second destinations.
- the MC SOP pointer only refers to one cell in the packet memory 314 , but the MC SOP pointer occupies more than one of the packet queues 334 .
- MC SOP pointers are somewhat expensive because the MC SOP pointers include pointers associated with each of the packet queues 334 .
- MC SOP pointers are also more expensive due to the need to maintain an allocation count, as explained later with reference to FIG. 5C .
- the enqueuing of a MC packet is described later with reference to FIG. 4B .
- the transmit module 316 includes an optional MC SOP buffer 318 and an optional MC packet cleanup engine 320 , both of which are used when transmitting a MC packet.
- the MC SOP buffer 318 remembers (e.g., stores for possible future use) a MC SOP.
- the MC SOP buffer 318 is optional because many methods of remembering the MC SOP are acceptable.
- the MC packet cleanup engine 320 recycles MC pointers after an MC packet is sent to each destination for which the MC packet has been enqueued.
- the MC packet cleanup engine 320 is optional because in an alternative, pointers associated with a packet are recycled as a cell is sent to the last of a set of destinations for which the packet is enqueued. The transmission of cells and recycling of pointers is described later with reference to FIG. 5D .
- the MC SOP buffer 318 and MC packet cleanup engine 320 are valuable to facilitate maintaining a MC packet in the packet memory 314 until the cells associated with the MC packet have been transmitted to each destination to which the packet is directed.
- An alternative embodiment involves sending a packet to each valid destination, then releasing memory used to store the packet as each cell is sent.
- packet transmissions may occur in parallel. When packets are transmitted in parallel, there is no guarantee that starting to transmit to a first destination before a second destination means the first transmission will be completed before the second. Therefore, if memory is released when the transmission to the second destination begins, the second transmission could release memory before the first transmission reaches it, resulting in possible error. Accordingly, this alternative embodiment is less effective when packet transmission occurs in parallel.
- FIG. 4A is a block diagram of an exemplary queue 400 A for use with the egress module 300 ( FIG. 3 ) in accordance with an embodiment of the invention.
- the queue 400 A is analogous to one of the packet queues 334 ( FIG. 3 ) at three exemplary times, t 0 , t 1 , and t 2 .
- FIG. 4A is intended to illustrate the appending of a linked list associated with a reassembled UC packet to a packet queue, in an embodiment where the packet queue is represented as a linked list.
- the queue 400 A includes a linked list 401 with cells 402 - 0 to 402 -N (collectively referred to as cells 402 ), a head pointer 408 that is associated with cell 402 - 0 , and a tail pointer 409 - 0 that is associated with cell 402 -N.
- the tail pointer designation is 409 - 0 at time t 0 , 409 - 1 at time t 1 , and 409 - 2 at time t 2 .
- Each of the cells (other than the cell 402 -N) is linked to a next cell with a next pointer.
- a packet 404 including a head cell 405 , data cells 406 , and a tail cell 407 , is linked to the linked list 401 via a link 403 .
- the link 403 is the next pointer of the cell at which the tail pointer 409 - 1 points.
- the linked list 401 and packet (represented as a linked list) is accomplished with a single write operation to the next pointer of the last cell of the linked list 401 .
- the linkage is completed at time t 2 when the tail pointer 409 - 2 points at the tail cell 407 .
- the cells 402 may or may not be associated with a plurality of packets.
- the linked list 401 could also be empty, in which case, at time t 2 , the head pointer 408 would point to the head cell 405 and the tail pointer 409 - 2 would point to the tail cell 407 .
- the packet 404 could be a single-cell packet. In this case, the head cell 405 , data cells 406 , and tail cell 407 would be included in a single head/tail cell (not illustrated). Similarly, the packet 404 may be a two-cell packet that does not have any data cells 406 .
- FIG. 4B is a block diagram of exemplary queues 400 B for use with the egress module 300 ( FIG. 3 ) in accordance with an embodiment of the invention.
- the queues 400 B are analogous to the packet queues 334 ( FIG. 3 ).
- FIG. 4B is intended to illustrate the appending of a linked list associated with a reassembled MC packet to one or more packet queues, where the packet queues are also represented as linked lists.
- the queues 400 B include linked lists 410 - 1 to 410 -N and 410 -X (collectively referred to as the linked lists 410 ) coupled to a MC linked list 430 via links 420 - 1 to 420 -N and 420 -X (collectively referred to as the links 420 ), and reassembled packet linked lists 440 - 1 to 440 -N and 440 -X (collectively referred to as linked lists 440 ). Each of the queues 410 is associated with a different destination.
- the MC linked list 430 includes a MC SOP pointer 432 including auxiliary pointers 434 - 1 to 434 -N (collectively referred to as auxiliary pointers 434 ) and a main pointer 454 .
- Links 420 respectively couple the linked lists 410 to the auxiliary pointers 434 and main pointer 454 .
- the main pointer 454 acts as a head cell and is linked to the data cells 455 and tail cell 456 associated with the head cell. In other words, the main pointer 454 , data cells 455 , and tail cell 456 together represent a packet much like the linked list 404 ( FIG. 4A ) represents a packet.
- the linked list 440 - 1 includes head cell 417 , data cells 418 , and tail cell 419 ; the linked list 440 -N includes head cell 427 , data cells 428 , and tail cell 429 ; and the linked list 440 -X includes head cell 457 , data cells 458 , and tail cells 459 .
- the auxiliary pointers 434 and the tail cell 456 are respectively coupled to packets represented as linked lists 440 .
- the MC linked list 430 was assembled in much the same manner as the linked list 404 ( FIG. 4A ), where the main pointer 454 , data cells 455 , and tail cell 456 are respectively analogous to the head cell 405 , data cells 406 , and tail cell 407 ( FIG. 4A ).
- the main pointer 454 is associated with a first destination and the auxiliary pointers 434 are associated with other destinations. Until linked in the manner described below, however, the auxiliary pointers 434 are null.
- the queues 400 B include the linked lists 410 , but do not include links 420 , MC linked list 430 , or linked lists 440 .
- each of the linked lists 410 that have a destination to which the packet is directed are linked to the MC linked list 430 .
- the linked lists 410 , other than linked list 410 -X, are respectively associated with the auxiliary pointers 434 . Accordingly, if one of the linked lists 410 , other than linked list 410 -X, is linked to the MC linked list 430 , it is by arbitrary definition linked to a predetermined one of the auxiliary pointers 434 .
- Linked list 410 -X is coupled to the main pointer 454 .
- linked list 410 e.g., linked list 410 - 2 (not illustrated)
- the link 420 - 2 would not link to the auxiliary pointer 434 - 2 .
- the link 420 -X would not link to the main pointer 454 .
- the tail cell 456 would have a null next cell pointer.
- a tail pointer associated with the linked list 410 points to the tail cell 456 .
- the tail pointers associated with the linked lists 410 - 1 to 410 -N respectively point to the auxiliary pointers 434 - 1 to 434 -N.
- their respective tail pointers do not point to any part of the linked list 430 .
- additional linked lists 440 are linked via the next pointer of an auxiliary pointer 434 or via the next pointer of the tail cell 456 .
- FIG. 4B illustrates additional UC linked lists 440 , but MC linked lists (not illustrated) may also be linked in a manner that is apparent from the above descriptions of FIGS. 4A and 4B .
- FIG. 5A is a flowchart 500 A of a method in accordance with an embodiment of the invention.
- the flowchart 500 A is intended to illustrate the receipt of cells of a packet until a reassembly queue set is full. Then the cell is sent, along with the other cells in the same reassembly queue set, to packet reassembly.
- the flowchart 500 A starts with receiving a cell at step 502 . Then it is determined at decision point 504 whether the cell is a SOP cell. If so, then it is determined at decision point 506 whether the SOP cell is a MC SOP cell. If so, then a MC SOP pointer is associated with the cell at step 508 and a destination mask is determined by checking the MC SOP cell header information or payload for the destinations of the MC SOP cell at step 510 . If either the cell is not a SOP cell ( 504 -N) or the cell is not multicast ( 506 -N), then a pointer is associated with the cell that is not a MC SOP pointer.
- each cell of a reassembly queue set has been received. If so, then the cell is sent to packet reassembly at step 516 and the flowchart ends. If not, then the flowchart 500 A returns to step 502 to receive another cell and the flowchart 500 A continues as described previously until the reassembly queue set is full. It should be noted that in an alternative, the reassembly queue set could be full when only one cell is received. In this alternative, steps 510 and 512 would proceed directly to step 516 .
- FIG. 5B is a flowchart 500 B of a method in accordance with an embodiment of the invention.
- the flowchart 500 B is intended to illustrate the reassembly of cells into packets.
- the flowchart 500 B starts with receiving a cell and ends when the packet with which the cell is associated is reassembled. It should be noted that even if a plurality of cells are received as a reassembly queue set, in accordance with the description of FIG. 5A , the cells are considered one at a time for the purposes of packet reassembly.
- the flowchart 500 B starts at step 518 with considering a cell. It is determined at decision point 520 whether the cell is a SOP cell. Regardless of whether the cell is an SOP cell, it is determined whether the cell is an EOP. If the cell is a SOP cell, then it is determined at decision point 522 whether the cell is an EOP cell. If the cell is not a SOP cell, then it is determined at decision point 532 whether the cell is an EOP cell. If the SOP cell is not an EOP cell ( 522 -N), then the SOP cell is associated with a head pointer at step 524 , the SOP cell is associated with a tail pointer at step 526 , and a next cell is considered at step 518 .
- the SOP cell Since the SOP cell is the only cell in the in-progress packet, it is both the first cell, which is why it is associated with the head pointer, and the last cell, which is why it is associated with the tail pointer. If the SOP cell is an EOP cell ( 522 -Y), then the SOP cell is a single-cell packet at step 528 , the packet is sent to RED at step 530 , and the flowchart 500 B ends. In an embodiment, a head pointer is not associated with single-cell packets, because no reassembly is required. When the cell received is not an SOP cell ( 520 -N) and is also not an EOP cell ( 532 -N), the cell is a MOP cell.
- the MOP cell is associated with the next pointer of a last cell of the same packet at step 534
- the MOP cell since it is the last cell to be added, is associated with the tail pointer at step 536
- a next cell is considered at step 518 .
- the cell received is not an SOP cell ( 520 -N), but is an EOP cell ( 532 -Y)
- the EOP cell is associated with the next pointer of the last cell at step 538
- the EOP cell is associated with the tail pointer at step 539
- the flowchart 500 B ends.
- FIG. 5C is a flowchart 500 C of a method in accordance with an embodiment of the invention.
- the flowchart 500 C is intended to illustrate the queuing of a packet for transmission.
- the flowchart 500 C starts with considering a packet and ends with the packet being enqueued.
- the flowchart 500 C starts at step 540 with considering a packet. It is determined at decision point 542 whether the packet is a MC packet. If not, then the packet is a UC packet and it is determined at decision point 544 whether to drop the packet according to a RED algorithm. If the packet is dropped, the pointers associated with the packet are recycled at step 546 and the flowchart 500 C ends. In an embodiment, all of the pointers associated with a UC packet are the same data structure. Accordingly, when the pointers are recycled, they are placed back into the same pool of pointers for use by other packets. If the packet is not dropped, the packet is enqueued in the queue associated with the destination and traffic class of the packet at step 548 and the flowchart 500 C ends.
- the packet is a MC packet ( 542 -Y)
- an allocation count associated with the packet is initialized to zero at step 550 .
- destinations associated with the packet are considered at step 552 .
- the valid destinations are determinable from a destination mask.
- An alternative includes a destination bit mask where each bit represents a destination. If a bit is set to ‘1’, then the destination is valid. If a bit is set to ‘0’, then the destination is not valid. It is determined at decision point 554 whether any valid destinations remain. If so, it is determined at decision point 556 whether to drop the valid destination according to a RED algorithm.
- the allocation count is incremented at step 558 , the packet is stitched into a queue for transmission at step 560 , and the destinations are considered again at step 552 .
- a destination mask is modified such that the destination is no longer valid. This ensures that the packet will not be stitched into the same queue more than once.
- the packet has an MC SOP pointer that includes auxiliary pointers (and, in an alternative, a main pointer) associated with each destination. When the packet is stitched into a queue at step 560 , the auxiliary pointer associated with the destination being considered is used.
- the destination is dropped at step 557 .
- a destination mask is modified such that the destination is no longer valid.
- the remaining destinations are considered at step 552 and the flowchart 500 C continues as described above until at decision point 554 it is determined that no valid destinations remain.
- decision point 562 it is determined at decision point 562 whether the packet has been enqueued. In an embodiment, the packet has not been enqueued if the allocation count is zero. If the packet has been enqueued, then the flowchart 500 C ends. Otherwise, the pointers associated with the packet are recycled.
- a MC SOP pointer is different from the rest of the pointers. Accordingly, the MC SOP pointer is placed in a first pool of pointers and the rest of the pointers (MOP and EOP) are placed in a second pool of pointers.
- FIG. 5D is a flowchart 500 D of a method in accordance with an embodiment of the invention.
- the flowchart 500 D is intended to illustrate the dequeuing of a packet for transmission and recycling of pointers associated with the packet.
- the flowchart 500 D represents a single queue. Accordingly, for a UC packet, the flowchart 500 D ends with dequeuing the cells of the packet and recycling of the associated pointers. However, since a MC packet may be stitched across multiple queues, the flowchart 500 D ends with dequeuing the cells, but may or may not end with recycling the associated pointers.
- the flowchart 500 D starts at step 564 with considering a packet. It is determined at decision point 566 whether the packet is a MC packet. If not, then the packet is a UC packet so a cell is dequeued at step 568 , the pointer associated with the cell is recycled at step 570 and it is determined at decision point 572 whether the cell was an EOP cell. If not, then steps 568 to 572 are repeated for subsequent cells of the packet until the EOP cell is dequeued, at which point the flowchart 500 D ends.
- the packet is a MC packet ( 566 -Y)
- the location of the MC SOP pointer is remembered for the packet at step 574
- the SOP cell is dequeued at step 576
- the allocation count represents the number of destinations to which the packet is directed, but not yet sent.
- the linked list returns to the MC SOP pointer at step 584 , and continues from the next pointer of the auxiliary pointer at step 586 . If not, then the linked list continues from the next pointer of the last cell (the EOP cell) dequeued. In either case, it is determined at decision point 588 whether the packet has been sent to all destinations to which it is directed. If not, the flowchart 500 D ends (and the linked list continues as indicated at step 586 or 590 , as applicable). If so, the MC SOP pointer and other pointers are recycled at step 592 and the flowchart 500 D ends.
- step 592 one reason to execute step 592 after a packet has been dequeued for all valid destinations is that packets may be transmitted in parallel.
- a MC packet with two valid destinations a first and a second.
- the SOP cell is transmitted to the first destination.
- the SOP cell is transmitted to the second destination.
- the memory associated with the SOP cell is released, since the cell has been transmitted to all valid destinations, there will likely be no error even if the memory location is overwritten before the EOP cell is transmitted to the first and second destinations.
- the clean-up entails returning to the SOP and releasing the memory associated with cells as the clean-up procedure progresses to the EOP. Therefore, even though it may be more efficient to recycle pointers as cells are sent, in an embodiment where packets are transmitted in parallel, an alternative includes a clean-up procedure.
- FIG. 6A is a flowchart 600 A of a method in accordance with an embodiment of the invention.
- FIG. 6A is intended to illustrate that a MC pointer is recycled after a copy of the MC packet associated with the MC pointer is sent to every valid destination.
- the flowchart 600 A starts with associating a multicast pointer with a multicast packet at step 602 . Then, at step 604 , keeping track of valid destinations to which the multicast packet is directed, but to which a copy of the multicast packet has not been sent. And, at step 606 , recycling the multicast pointer after a copy of the multicast packet has been sent to each of the valid destinations.
- FIG. 6B is a flowchart 600 B of a method in accordance with an embodiment of the invention.
- FIG. 6B is intended to illustrate that a MC SOP pointer is enqueued on each queue associated with a valid destination of the packet associated with the MC SOP pointer.
- the flowchart 600 B starts with maintaining a first queue associated with a first destination at step 612 and maintaining a second queue associated with a second destination at step 614 . Then, at step 616 , enqueuing a MC SOP pointer associated with a packet on the first queue and, at step 618 enqueuing the multicast SOP pointer on the second queue.
- the method steps described above are embodied in a computer-readable media as computer instruction code. It shall be appreciated that not all methods steps described must be performed, nor must they be performed in the order stated.
- packet is defined broadly to include fixed-length cells, variable length packets, and encapsulated data.
- a packet could be broken into a plurality of smaller cells.
- packet could refer to a flow of the plurality of cells or a single cell of such a flow.
- the term destination is defined broadly to include a final destination for a packet or a next hop in a transmission path.
- pointer is defined broadly to include data structures having one or more token cell pointer fields. Packets may also include a header. The header may include control information.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/443,505 US7609693B2 (en) | 2002-06-04 | 2003-05-22 | Multicast packet queuing |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US38595302P | 2002-06-04 | 2002-06-04 | |
US10/443,505 US7609693B2 (en) | 2002-06-04 | 2003-05-22 | Multicast packet queuing |
Publications (2)
Publication Number | Publication Date |
---|---|
US20040017810A1 US20040017810A1 (en) | 2004-01-29 |
US7609693B2 true US7609693B2 (en) | 2009-10-27 |
Family
ID=30772913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/443,505 Expired - Fee Related US7609693B2 (en) | 2002-06-04 | 2003-05-22 | Multicast packet queuing |
Country Status (1)
Country | Link |
---|---|
US (1) | US7609693B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036606A1 (en) * | 2004-08-11 | 2006-02-16 | Tekelec | Methods, systems, and computer program products for multicast compression and pacing of database update messages transmitted between processing modules in a distributed processing system |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7286565B1 (en) * | 2000-06-28 | 2007-10-23 | Alcatel-Lucent Canada Inc. | Method and apparatus for packet reassembly in a communication switch |
US20050190779A1 (en) * | 2004-03-01 | 2005-09-01 | Cisco Technology, Inc., A California Corporation | Scalable approach to large scale queuing through dynamic resource allocation |
US8199764B2 (en) * | 2003-08-25 | 2012-06-12 | Cisco Technology, Inc. | Scalable approach to large scale queuing through dynamic resource allocation |
JP4550728B2 (en) * | 2005-12-14 | 2010-09-22 | アラクサラネットワークス株式会社 | Packet transfer apparatus and multicast deployment method |
US9189303B2 (en) * | 2006-08-10 | 2015-11-17 | International Business Machines Corporation | Shadow queues for recovery of messages |
US9268621B2 (en) * | 2011-11-02 | 2016-02-23 | Red Hat, Inc. | Reducing latency in multicast traffic reception |
US9722810B2 (en) * | 2014-02-03 | 2017-08-01 | International Business Machines Corporation | Computer-based flow synchronization for efficient multicast forwarding for products and services |
US20160212070A1 (en) * | 2015-01-15 | 2016-07-21 | Mediatek Inc. | Packet processing apparatus utilizing ingress drop queue manager circuit to instruct buffer manager circuit to perform cell release of ingress packet and associated packet processing method |
CN108494546B (en) * | 2018-02-13 | 2021-10-15 | 北京梆梆安全科技有限公司 | White box encryption method and device and storage medium |
US20230344777A1 (en) * | 2022-04-20 | 2023-10-26 | Oracle International Corporation | Customized processing for different classes of rdma traffic |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5592476A (en) * | 1994-04-28 | 1997-01-07 | Hewlett-Packard Limited | Asynchronous transfer mode switch with multicasting ability |
US5602841A (en) * | 1994-04-07 | 1997-02-11 | International Business Machines Corporation | Efficient point-to-point and multi-point routing mechanism for programmable packet switching nodes in high speed data transmission networks |
US5898687A (en) | 1996-07-24 | 1999-04-27 | Cisco Systems, Inc. | Arbitration mechanism for a multicast logic engine of a switching fabric circuit |
US6272567B1 (en) * | 1998-11-24 | 2001-08-07 | Nexabit Networks, Inc. | System for interposing a multi-port internally cached DRAM in a control path for temporarily storing multicast start of packet data until such can be passed |
US6335935B2 (en) * | 1998-07-08 | 2002-01-01 | Broadcom Corporation | Network switching architecture with fast filtering processor |
US20020089977A1 (en) | 2000-11-17 | 2002-07-11 | Andrew Chang | Network switch cross point |
US20030053470A1 (en) * | 2001-09-18 | 2003-03-20 | Divivier Robert J. | Multicast cell buffer for network switch |
US6560237B1 (en) * | 1999-07-15 | 2003-05-06 | 3Com Corporation | Packet order assurance mechanism |
US20040008716A1 (en) * | 2002-07-15 | 2004-01-15 | Dimitrios Stiliadis | Multicast scheduling and replication in switches |
US6707817B1 (en) * | 1999-03-17 | 2004-03-16 | Broadcom Corporation | Method for handling IP multicast packets in network switch |
US6795886B1 (en) * | 2000-12-22 | 2004-09-21 | Ncr Corporation | Interconnect switch method and apparatus |
US6977930B1 (en) * | 2000-02-14 | 2005-12-20 | Cisco Technology, Inc. | Pipelined packet switching and queuing architecture |
US7110415B1 (en) * | 2002-05-17 | 2006-09-19 | Marvell International Ltd. | Apparatus and method for dynamically limiting output queue size in a quality of service network |
US7209440B1 (en) * | 2002-05-07 | 2007-04-24 | Marvell International Ltd. | Method and apparatus for preventing blocking in a quality of service switch |
-
2003
- 2003-05-22 US US10/443,505 patent/US7609693B2/en not_active Expired - Fee Related
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5602841A (en) * | 1994-04-07 | 1997-02-11 | International Business Machines Corporation | Efficient point-to-point and multi-point routing mechanism for programmable packet switching nodes in high speed data transmission networks |
US5592476A (en) * | 1994-04-28 | 1997-01-07 | Hewlett-Packard Limited | Asynchronous transfer mode switch with multicasting ability |
US5898687A (en) | 1996-07-24 | 1999-04-27 | Cisco Systems, Inc. | Arbitration mechanism for a multicast logic engine of a switching fabric circuit |
US6335935B2 (en) * | 1998-07-08 | 2002-01-01 | Broadcom Corporation | Network switching architecture with fast filtering processor |
US6272567B1 (en) * | 1998-11-24 | 2001-08-07 | Nexabit Networks, Inc. | System for interposing a multi-port internally cached DRAM in a control path for temporarily storing multicast start of packet data until such can be passed |
US6707817B1 (en) * | 1999-03-17 | 2004-03-16 | Broadcom Corporation | Method for handling IP multicast packets in network switch |
US6560237B1 (en) * | 1999-07-15 | 2003-05-06 | 3Com Corporation | Packet order assurance mechanism |
US6977930B1 (en) * | 2000-02-14 | 2005-12-20 | Cisco Technology, Inc. | Pipelined packet switching and queuing architecture |
US20020089977A1 (en) | 2000-11-17 | 2002-07-11 | Andrew Chang | Network switch cross point |
US6795886B1 (en) * | 2000-12-22 | 2004-09-21 | Ncr Corporation | Interconnect switch method and apparatus |
US20030053470A1 (en) * | 2001-09-18 | 2003-03-20 | Divivier Robert J. | Multicast cell buffer for network switch |
US7209440B1 (en) * | 2002-05-07 | 2007-04-24 | Marvell International Ltd. | Method and apparatus for preventing blocking in a quality of service switch |
US7110415B1 (en) * | 2002-05-17 | 2006-09-19 | Marvell International Ltd. | Apparatus and method for dynamically limiting output queue size in a quality of service network |
US20040008716A1 (en) * | 2002-07-15 | 2004-01-15 | Dimitrios Stiliadis | Multicast scheduling and replication in switches |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060036606A1 (en) * | 2004-08-11 | 2006-02-16 | Tekelec | Methods, systems, and computer program products for multicast compression and pacing of database update messages transmitted between processing modules in a distributed processing system |
US7716175B2 (en) * | 2004-08-11 | 2010-05-11 | Tekelec | Methods, systems, and computer program products for multicast compression and pacing of database update messages transmitted between processing modules in a distributed processing system |
Also Published As
Publication number | Publication date |
---|---|
US20040017810A1 (en) | 2004-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7433363B2 (en) | Low latency switch architecture for high-performance packet-switched networks | |
US8218546B2 (en) | Interleaved processing of dropped packets in a network device | |
US7050440B2 (en) | Method and structure for variable-length frame support in a shared memory switch | |
US8001335B2 (en) | Low latency request dispatcher | |
US6542502B1 (en) | Multicasting using a wormhole routing switching element | |
US7558270B1 (en) | Architecture for high speed class of service enabled linecard | |
JP4070610B2 (en) | Manipulating data streams in a data stream processor | |
JP3606565B2 (en) | Switching device and method | |
AU750787B2 (en) | Arbitration method and apparatus for a non-blocking switch | |
US20040151197A1 (en) | Priority queue architecture for supporting per flow queuing and multiple ports | |
US8090869B2 (en) | Priority-biased exit queue arbitration with fairness | |
US7859999B1 (en) | Memory load balancing for single stream multicast | |
US20100158031A1 (en) | Methods and apparatus for transmission of groups of cells via a switch fabric | |
US6345040B1 (en) | Scalable scheduled cell switch and method for switching | |
JPH1127291A (en) | Method and device for extension of on-chip fifo to local memory | |
US7609693B2 (en) | Multicast packet queuing | |
US7110405B2 (en) | Multicast cell buffer for network switch | |
US7522620B2 (en) | Method and apparatus for scheduling packets | |
US20040218592A1 (en) | Method and apparatus for fast contention-free, buffer management in a multi-lane communication system | |
US7675930B2 (en) | Chip circuit for combined and data compressed FIFO arbitration for a non-blocking switch | |
US20050190779A1 (en) | Scalable approach to large scale queuing through dynamic resource allocation | |
US6947413B2 (en) | Switching apparatus, communication apparatus, and communication system | |
US20050243825A1 (en) | Methods and systems for efficient multicast across a mesh backplane | |
US7733888B2 (en) | Pointer allocation by prime numbers | |
US7394822B2 (en) | Using reassembly queue sets for packet reassembly |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: RIVERSTONE NETWORKS, INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ANDERSON, ERIC;FEROLITO, PHILIP;MORRISON, MIKE;REEL/FRAME:014497/0809;SIGNING DATES FROM 20030812 TO 20030815 Owner name: RIVERSTONE NETWORKS, INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:CHEN, MINDONG;REEL/FRAME:014497/0807 Effective date: 20030905 |
|
FEPP | Fee payment procedure |
Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
AS | Assignment |
Owner name: LUCENT TECHNOLOGIES INC., NEW JERSEY Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:RIVERSTONE NETWORKS, INC.;REEL/FRAME:023174/0585 Effective date: 20060427 |
|
AS | Assignment |
Owner name: ALCATEL-LUCENT USA INC., NEW JERSEY Free format text: MERGER;ASSIGNOR:LUCENT TECHNOLOGIES INC.;REEL/FRAME:023204/0042 Effective date: 20081101 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
CC | Certificate of correction | ||
AS | Assignment |
Owner name: CREDIT SUISSE AG, NEW YORK Free format text: SECURITY INTEREST;ASSIGNOR:ALCATEL-LUCENT USA INC.;REEL/FRAME:030510/0627 Effective date: 20130130 |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
AS | Assignment |
Owner name: ALCATEL-LUCENT USA INC., NEW JERSEY Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:CREDIT SUISSE AG;REEL/FRAME:033950/0261 Effective date: 20140819 |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
AS | Assignment |
Owner name: PROVENANCE ASSET GROUP LLC, CONNECTICUT Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:NOKIA TECHNOLOGIES OY;NOKIA SOLUTIONS AND NETWORKS BV;ALCATEL LUCENT SAS;REEL/FRAME:043877/0001 Effective date: 20170912 Owner name: NOKIA USA INC., CALIFORNIA Free format text: SECURITY INTEREST;ASSIGNORS:PROVENANCE ASSET GROUP HOLDINGS, LLC;PROVENANCE ASSET GROUP LLC;REEL/FRAME:043879/0001 Effective date: 20170913 Owner name: CORTLAND CAPITAL MARKET SERVICES, LLC, ILLINOIS Free format text: SECURITY INTEREST;ASSIGNORS:PROVENANCE ASSET GROUP HOLDINGS, LLC;PROVENANCE ASSET GROUP, LLC;REEL/FRAME:043967/0001 Effective date: 20170913 |
|
AS | Assignment |
Owner name: NOKIA US HOLDINGS INC., NEW JERSEY Free format text: ASSIGNMENT AND ASSUMPTION AGREEMENT;ASSIGNOR:NOKIA USA INC.;REEL/FRAME:048370/0682 Effective date: 20181220 |
|
FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
LAPS | Lapse for failure to pay maintenance fees |
Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20211027 |