Packet routing algorithms fall into different categories. Destination routing is a method where a destination and a source of a packet are carried in a header of the packet. At each switch in the route, a next destination is looked up in a routing table. This is referred to as a turn in the path of the packet. This may result in high latency, or delay in transmission of the packet due to the frequent look-ups in the routing table. Another category of packet routing is referred to as path routing. Each turn taken by a packet is identified in the header of the packet in the form of a list. A pointer is used to separate turns already taken from turns yet to be taken.
Although path routing reduces latency by eliminating turn look-up at every switch, it may still not be optimized. Some path routing methods use a return path that is also stored in the header for error handling. In the event of an error, the source is notified, or a request is sent back to the source using the return path. For packets that are delivered without errors, additional bandwidth consumed to carry the return path is effectively wasted bandwidth, since the return path was not needed.
Some path routing methods do not include return paths. In the case of an error, an absence of an acknowledgment signal from the receiver, an ACK, triggers a resend after a certain amount of time.
A further alternative involves the use of a mathematical routing formula to encapsulate source information in destination information. This is described in a PCE Express Advanced Switching Specification. Calculations using the formula can result in long compute times.
In the following description, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention, and it is to be understood that other embodiments may be utilized and that structural, logical and electrical changes may be made without departing from the scope of the present invention. The following description is, therefore, not to be taken in a limited sense, and the scope of the present invention is defined by the appended claims.
The functions or algorithms described herein are implemented in software or a combination of software and human implemented procedures in one embodiment. The software comprises computer executable instructions stored on computer readable media such as memory or other types of storage devices. The term “computer readable media” is also used to represent carrier waves on which the software is transmitted. Further, such functions correspond to modules, which are software, hardware, firmware or any combination thereof. Multiple functions are performed in one or more modules as desired, and the embodiments described are merely examples. The software is executed on a digital signal processor, ASIC, microprocessor, or other type of processor operating on a computer system, such as a personal computer, switch, server or other computer system.
Some embodiments may implement the functions in two or more specific interconnected hardware modules with related control and data signals communicated between and through the modules, or as portions of an application-specific integrated circuit. Thus, the exemplary process flow is applicable to software, firmware, and hardware implementations.
The switches are coupled to each other by the ports. A path is shown with double arrow lines between switch 1 at 105 through several switches to switch 9 at 145. The path may be described by indicating the ports at each switch that are connected. For instance, switch 1 at 105 uses port 2 to couple to port 6 of switch 2 at 110. Switch 2 at 110 is coupled through port 4 to port 0 of switch 5 at 125. Switch 5 at 125 is coupled via port 2 to port 6 of switch 6 at 130. Switch 6 at 130 is coupled via port 4 to port 0 of switch 9 at 145. The fabric may include many other connections as shown.
The fabric 100 is used to transport communications, such as packets between devices coupled to the fabric. Packets may be fixed length or variable length, or may be a continuous or discontinuous stream. The term “packet” is used to represent information, and is not limited to known formats. In one embodiment, the information is in a digital form, but may also be analog, or a combination of digital and analog in further embodiments. In one embodiment, a forward packet contains a header 200 as shown in
The routing path has groups of three binary digits in this example, capable of specifying the locations of ports on a switch. Three digits are sufficient for an 8 port switch. From left to right, the digit bit positions are numbered 7 through 0 respectively. The left most group of digits is “110”, corresponding to a turn of six clockwise ports. In other words, if a packet enters a switch at port 0, it would exit the switch 6 ports clockwise at port 6. The digits thus specify a clockwise distance of the exit port from the enter port for a forward going packet and may be referred to as routing turns.
Header 200 also has a next turn's least significant bit (LSB) 220, and a destination bit position pointer 230. The next turn's LSB 220 is a pointer to the least significant bit of the routing path where the routing turns bits begin for a switch. Destination bit position pointer 230 in this example is 8, corresponding to the number of bits that describe the routing path. In one example, it corresponds to three groups of routing path digits. The header 200 may also contain implementation specific details 240 or other information not used for the path identification, and may also contain a transaction type 250, such as a “Read” transaction from a host to a storage device coupled to fabric 100.
The next turn's LSB value at this point is 0, and the number of ports is 8. The three bits of the routing path, labeled routing turns in the table of
At switch 5 at 125, the LSB value is now 3, and since it also has 8 ports, the next three bits of the routing path, bits 5, 4 and 3, “010”=two, indicate a clockwise distance to the exit port. Thus, port 2 is the exit port. The LSB value is again incremented by 3, and the packet is sent to port 6 of switch 6 at 130 with a LSB value of 6. It should be noted that if a switch has fewer ports, such as only four ports, only 2 bits of the routing path are used, and the LSB would also be incremented by the number of bits used. For consistency, the same number of bits may be used for each switch, if desired.
Switch 6 at 130 notes the LSB value of 6, and uses bits 8, 7 and 6 of the routing path “110”=six to obtain the clockwise distance to the exit port from the enter port 6. This identifies the exit port as port 4, which is coupled to port 0 of switch 9 at 145. The LSB is incremented to 9. When switch 9 at 145 receives the packet, it checks the LSB, and finds that it is greater than the bit position number. This identifies switch 9 as the destination port.
At 430, the packet is forwarded through the port having a value indicated by the routing turns. In one embodiment, this value is determined from the n bits identified by the LSB value, and is the number of ports that are clockwise from the port of entry of the packet. At 440, if the next turn's LSB value is not greater than the destination bit position value, processing returns to 420 for incrementing the LSB. If the value is greater than the destination bit position value, the destination has been reached, as indicated at 450. Note that decision block 410 may also result in a determination that the destination has been reached at 450.
In the event of an error, or reply being requested, the header may also be used to determine how to route a return packet to the sender. In the above example, assuming that an error occurred at switch 6 and was detected by switch 9, at 130, a return packet is sent from switch 9 at 145 to switch 1 at 105. A header for such a return packet is shown in block form at 500 in
Header 500 comprises multiple fields in one embodiment. A routing path 510 is specified in one field. It may be the first field, and has a length sufficient to support a longest desired path length in one embodiment. Routing path 510 in this specific header 500 describes a path from switch 1 at 105 to switch 9 at 145 when read in one direction, and a return path when read in a different direction.
The routing path has groups of three binary digits in this example, capable of specifying the locations of ports on a switch. Three digits are sufficient for an 8 port switch. From left to right, the digit bit positions are numbered 7 through 0 respectively. The left most group of digits is “110”, corresponding to a turn of six counter-clockwise ports. In other words, if a packet enters a switch at port 6, it would exit the switch 6 ports counter-clockwise at port 0. The digits thus specify a counter-clockwise distance of the exit port from the enter port for a return packet.
Header 500 also has a next turn's most significant bit (MSB) 520, and a destination bit position pointer 230. Destination bit position pointer 530 in this example is 0, corresponding to the number of hops on the routing path, counting down from the original destination. In other words, it corresponds to three groups of routing path digits. The header 500 may also contain implementation specific details 540 or other information not used for the path identification, and may also contain a transaction type 550, such as a “Data response” transaction from a storage device to a host coupled to fabric 100.
At switch 6, at 130, with the MSB value at 8, bits 8, 7 and 6 of the routing path indicate a counter-clockwise distance of the exit port from the enter port. The value is “110”=six, which results in a counter-clockwise rotation of six ports to exit port 6. Switch 6 at 130 decrements the value in the next turn's MSB by n or 3 to value 5, which is the MSB of the next turn to be taken at the next switch.
At Switch 5 at 125, the packet is received on port 2 with an MSB value of 5. Bits 5, 4 and 3 of the routing path indicate a counter-clockwise distance of “010” or two from the enter port 2, to an exit port 0. Switch 5 at 125 thus forwards the packet to switch 2 at 110 after decrementing the MSB to 2. The packet is received at port 4 of switch 2 at 110, and bits 2, 1 and 0 of the routing path specify six as the distance of counter-clockwise rotation to the exit port, which is port 6. The MSB is decremented to value −1, or 0 in this example, and the packet is sent via port 6 to port 2 of switch 1 at 105. Switch 1 compares the next turn's MSB value of 0 and the destination bit position value of 0, indicating that switch 1 at 105 is the packet's destination.
At 730, the packet is forwarded through the port having a value indicated by the routing turns. In one embodiment, this value is determined from the n bits identified by the MSB value, and is the number of ports that are counter-clockwise from the port of entry of the packet. At 740, if the next turn's MSB value is not equal to the destination bit position value, processing returns to 720 for decrementing the MSB. If the value is equal to or in some embodiments, equal to or less than the destination bit position value, the destination has been reached, as indicated at 750. Note that decision block 710 may also result in a determination that the destination has been reached at 750.
In one embodiment, the destination bit position is used to indicate when the destination is reached in both the forward and backward direction. The next turn field is a dual purpose field, indicating a LSB in the forward direction and a MSB in the return or backward direction. The packet is known to be traveling in the forward direction when the destination position pointer is larger than the next turn pointer. The packet is traveling in the backward direction when the destination pointer is less than or equal to the next turn pointer. The values in the routing path are used to describe the position of the exit port from the enter port at each switch in the path. In the forward direction, the values indicate the number of ports to turn in the clockwise direction, and in the backward direction, the values indicate the number of ports to turn in the counter-clockwise direction. Thus, the same path serves a dual routing function, by reversing the rotation between ports at each switch. In further embodiments, the rotation or turns may be counter-clockwise in the forward direction and clockwise in the reverse direction if desired.
Number | Name | Date | Kind |
---|---|---|---|
4621362 | Sy | Nov 1986 | A |
5179558 | Thacker et al. | Jan 1993 | A |
5612952 | Motoyama | Mar 1997 | A |
5852407 | Ishii et al. | Dec 1998 | A |
6147991 | Rogers | Nov 2000 | A |
6163541 | Casey et al. | Dec 2000 | A |
6208662 | O'Neill et al. | Mar 2001 | B1 |
6243026 | Jones et al. | Jun 2001 | B1 |
6526056 | Rekhter et al. | Feb 2003 | B1 |
6578105 | Finn et al. | Jun 2003 | B2 |
6601217 | Smith | Jul 2003 | B1 |
6621820 | Williams et al. | Sep 2003 | B1 |
6735173 | Lenoski et al. | May 2004 | B1 |
6754205 | Sakaue | Jun 2004 | B1 |
6865155 | Wong et al. | Mar 2005 | B1 |
6895531 | Suzuki et al. | May 2005 | B2 |
6920135 | Lea | Jul 2005 | B1 |
6931002 | Simpkins et al. | Aug 2005 | B1 |
6973032 | Casley et al. | Dec 2005 | B1 |
7058010 | Chidambaran et al. | Jun 2006 | B2 |
7133955 | Mayhew et al. | Nov 2006 | B2 |
7161945 | Cummings | Jan 2007 | B1 |
7221676 | Green et al. | May 2007 | B2 |
7260636 | Blumenau et al. | Aug 2007 | B2 |
7307996 | Forbes et al. | Dec 2007 | B2 |
7310319 | Awsienko et al. | Dec 2007 | B2 |
7310688 | Chin | Dec 2007 | B1 |
7352765 | Dai et al. | Apr 2008 | B2 |
7401157 | Costantino et al. | Jul 2008 | B2 |
7509657 | Mehra et al. | Mar 2009 | B2 |
20010053157 | Li | Dec 2001 | A1 |
20030033307 | Davis et al. | Feb 2003 | A1 |
20030108352 | Hellman | Jun 2003 | A1 |
20030154357 | Master et al. | Aug 2003 | A1 |
20040095927 | Chang et al. | May 2004 | A1 |
20040139236 | Mehra et al. | Jul 2004 | A1 |
20040151177 | Burton et al. | Aug 2004 | A1 |
20040151191 | Wu et al. | Aug 2004 | A1 |
20040213151 | Willhite et al. | Oct 2004 | A1 |
20040246991 | Tsuzuki et al. | Dec 2004 | A1 |
20050091358 | Mehra et al. | Apr 2005 | A1 |
20050171937 | Hughes et al. | Aug 2005 | A1 |
20050259665 | Norden | Nov 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20050259665 A1 | Nov 2005 | US |