The present invention is directed, in general, to routing traffic through a multi-stage switch mesh or a switch fabric having multiple paths between each pair of input and output ports and, more specifically, to selecting cell paths within such a multi-stage switch mesh or multi-path switch fabric employing input queue to minimize head of line blocking and improve throughput for large numbers of independent traffic flows.
A switch (or “switch fabric”) routes data traffic from one of N input ports to one of N output ports. A multi-stage switch mesh includes a plurality of switches inter-connects via inputs and outputs to provide a non-blocking architecture effectively acting like a large switch fabric with a large number of input and output ports.
In connection-oriented (as opposed to packet-oriented) technologies such as asynchronous transfer mode (ATM), a cell path is computed from an input port through the switch or switch mesh to an output port during the connection setup time and remains the same throughout the lifetime of the connection (e.g., until a requested data transfer is complete). The path is uniquely identified by a label and each cell presented at the input port of the first switch within the path has this routing label attached, together with an assigned or requested priority. The switch fabric or switch mesh fabric places queues received cells in the input queues of the corresponding priority for the input port identified in the routing label, where each input port has associated therewith more than one input queue each having a different priority. The cell scheduler within the switch fabric identifies the output port from the routing label and transfers the cell based on the associated priority.
The input queues of a switch fabric are typically of a fixed size, with one input queue for each possible priority associated with each input port. Each port and each input queue is normally independent, with no sharing of resources. If for some reason an input queue becomes full and cannot receive any more cells, the upstream traffic source is informed utilizing a flow control mechanism such as “back-pressure,” which effectively reduces the congestion in the forward direction by blocking the traffic at the source itself.
Input queues become congested when cells cannot be placed to the output port because higher or equal priority queues from the same input port or a different input port are scheduled for transfer to the desired output port before the subject cell. Cell departure must therefore be delayed or rescheduled for a later time.
One effect of cell congestion is “head of line” blocking, where cells queued at an input port cannot be serviced even if the corresponding output port is free because another cell ahead of the blocked cell(s) is still waiting for resources from a different output port. Congestion thus spreads very quickly within the system and reduces overall switching throughput.
In a multi-stage switch mesh, or a switch fabric including multiple paths between each input and output port, the overall performance depends heavily on the traffic path of various cell streams through the switch or switch mesh. There is, therefore, a need in the art for a method of selecting cell flows with switch fabric or a switch mesh to minimize head of line blocking and improve overall performance.
To address the above-discussed deficiencies of the prior art, it is a primary object of the present invention to provide, for use in selecting a path for traffic flow within a multi-stage switch mesh, a head of line (HOL) blocking count value, which is directly proportional to the committed traffic load through an output port and is computed for a path by adding the values associated with all output ports within the path. In selecting a route, all paths from the source to the destination are identified and sorted by head of line blocking count value. Rather than selecting a path based on traffic load, the path having the lowest head of line blocking count value and sufficient capacity for the requested traffic is selected, with selection between paths having equal head of line blocking count values being made based on traffic load.
The foregoing has outlined rather broadly the features and technical advantages of the present invention so that those skilled in the art may better understand the detailed description of the invention that follows. Additional features and advantages of the invention will be described hereinafter that form the subject of the claims of the invention. Those skilled in the art will appreciate that they may readily use the conception and the specific embodiment disclosed as a basis for modifying or designing other structures for carrying out the same purposes of the present invention. Those skilled in the art will also realize that such equivalent constructions do not depart from the spirit and scope of the invention in its broadest form.
Before undertaking the DETAILED DESCRIPTION OF THE INVENTION below, it may be advantageous to set forth definitions of certain words or phrases used throughout this patent document: the terms “include” and “comprise,” as well as derivatives thereof, mean inclusion without limitation; the term “or” is inclusive, meaning and/or; the phrases “associated with” and “associated therewith,” as well as derivatives thereof, may mean to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, or the like; and the term “controller” means any device, system or part thereof that controls at least one operation, whether such a device is implemented in hardware, firmware, software or some combination of at least two of the same. It should be noted that the functionality associated with any particular controller may be centralized or distributed, whether locally or remotely. Definitions for certain words and phrases are provided throughout this patent document, and those of ordinary skill in the art will understand that such definitions apply in many, if not most, instances to prior as well as future uses of such defined words and phrases.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, wherein like numbers designate like objects, and in which:
Input queues 103a–103n and/or schedulers 104a–104n within switch 100, and within each switch 100aa–100lm within switch mesh 105, are coupled to a cell routing server 108, a centralized controller for determining cell routing through the switch 100 or switch mesh 105 and selecting the cell path from the input port receiving the subject cell to the target output port.
The traditional approach for selecting cell paths through a switch or switch mesh is based on selection of a “least loaded path” between the input ports and output ports. Although this approach provides sufficient throughput under normal circumstances, switch fabrics or meshes which employ input queuing and flow control based on back pressure can experience congestion as described above, with throughput worsening as the number of independent traffic flows through the switch fabric or mesh increases.
Selection of paths according to the present invention follows a two-dimensional approach where both head of line blocking effects and traffic load are considered for path calculation. Path selection by cell routing server 108 in the present invention relies on two assumptions:
Cell routing server 108 is linked to connections table or database 109 containing an identification of all currently active path connections from input port(s) to output port(s) through switch 100 or switch mesh 105, including bandwidth statistics. For each output port 102a–102n or 107 of switch 100 or switch mesh 105, cell routing controller 108 maintains a used capacity count 110, the cell stream data transfer rate expressed in cells/second, and head of line blocking counts 111 for each priority in that port.
For each output port 102a–102n or 107, one input port is designated as the “desired” input port, with traffic from that input port 101a–101n or 106 having a head of line blocking count value of zero (i.e., no effect). All remaining input ports are considered “undesired” input ports for the subject output port. The head of line (HOL) blocking count value for a traffic flow is directly proportional to the committed traffic load (e.g., equal to the traffic load in cells/second).
When a connection to an output port from an undesired input port is added, the head of line count for the new traffic flow is added to the current sum of head of line counts for the corresponding priority at the target output port. Thus, connections table 109 will contain a plurality of head of line blocking count values for each output port 102a–102n or 107, one for each possible priority. The head of line blocking count value for a given priority is the sum of all head of line blocking counts for the existing connections to the subject output port with higher or equal priorities.
Thus, if a given output port 102n is, at the moment of interest, the subject of connection paths A, B and C having committed remaining traffic loads of CA, CB and CC cells/second, respectively, where each of connection paths A, B and C have a priority higher than or equal to a particular priority X, the head of line blocking count value for that particular priority X at the output port 102n is the sum of the head of line blocking count values of connection paths A, B and C, which equals to
HOLtotal=HOLA+HOLB+HOLC
Where:
For a single switch having multiple paths between each pair of input and output ports, the head of line blocking count is determined individually for each path. For a multi-stage switch mesh, the head of line blocking count for any path between an input port and an output port is the sum of the head of line blocking counts for all output ports within that path. Thus, for example, the head of line blocking counts for various paths from input port IN_AAA to output port OUT_LMN within multi-stage switch mesh 105 in
In selecting a path for a cell stream, the optimal route is identified by cell routing server 108 by identifying all routes from the source input port to the destination output port and sorting those routes in order of the associated head of line blocking counts. The path having the smallest head of line blocking count—and sufficient capacity for the requested cell traffic in addition to existing traffic flows within that path—is selected. If more that one path has the same head of line blocking count and sufficient capacity, the path with the least traffic load is selected.
In either case, the head of line blocking count(s) for any path(s) affected by the newly added routing are updated (step 207) and the process becomes idle (step 208) until another request for routing traffic is received.
The present invention provides improved overall throughput in multi-stage switch fabrics, or individual switches, which includes multiple paths between each input and output port and employs input queuing with flow control based on back-pressure. The present invention can also support priority queues and may therefore be easily adapted to support various service levels or categories.
It is important to note that while the present invention has been described in the context of a fully functional switch or multi-stage switch mesh, those skilled in the art will appreciate that the mechanism of the present invention is capable of being implemented and distributed in the form of a computer usable medium of instructions in a variety of forms, and that the present invention applies equally regardless of the particular type of signal bearing medium is used to carry out the distribution. Examples of suitable computer usable mediums include: nonvolatile, hard-coded or programmable type mediums such as read only memories (ROMs) or erasable, electrically programmable read only memories (EEPROMs), recordable type mediums such as floppy disks, hard disk drives, and read/write (R/W) compact disc read only memories (CD-ROMs) or digital versatile discs (DVDs), and transmission type mediums such as digital and analog communications links.
Although the present invention has been described in detail, those skilled in the art will understand that various changes, substitutions, and alterations herein may be made without departing from the spirit and scope of the invention it its broadest form.
Number | Name | Date | Kind |
---|---|---|---|
6795432 | Lee | Sep 2004 | B1 |
20030035432 | Sreejith et al. | Feb 2003 | A1 |
20030118013 | Steele et al. | Jun 2003 | A1 |
Number | Date | Country | |
---|---|---|---|
20030035432 A1 | Feb 2003 | US |