This application is a continuation of International Application No. PCT/CN2008/070232, filed Feb. 1, 2008, which claims priority to Chinese Patent Application No. 200710073276.2, filed Feb. 10, 2007 and entitled “Backpressure Method, System and Node of Multistage Switching Network and Intermediate Stage Switching Node”, both of which are hereby incorporated by reference in their entireties.
The present invention relates to communication technologies, and in particular, to a method and system for backpressure in a multistage switching network and an intermediate stage switching node.
In a multistage switching network, some or all switching nodes need a buffer for temporary storage of packets to solve the inconsistency between the transmit rate and the receive rate. However, the capacity of a buffer is limited. Therefore, the backpressure mechanism is often used for input traffic control to avoid packet loss caused by buffer overflow.
Backpressure means that according to the buffer usage, a lower stage node sends backpressure information to an upper stage node, instructing the upper stage node not to send packets until it is instructed to do so. According to the causes of generation, backpressure information can be classified into global backpressure and queue backpressure. When the number of the packets in a buffer reaches or exceeds a certain threshold, global backpressure information is generated. For the purposes of solving problems, the packets in the buffer are queued according to certain rules, to form multiple queues, and in each of the queues, packets are sent in order. When the length of a queue reaches or exceeds a certain threshold, queue backpressure information is generated.
The backpressure transfer and response mechanism in the related art is to send backpressure information among the switching nodes with a buffer stage by stage. In other words, a switching node with a buffer responds to all backpressure information sent by the lower stage switching node, but does not forward such backpressure information to the upper stage switching node.
During the invention, the inventor finds that the related art has at least the following weaknesses:
In the backpressure transfer and response mechanism, a complex internal structure and corresponding processing modules are needed to enable the intermediate stage node in a multistage switching network to respond to all received backpressure information, which raises the design complexity and increases the realization costs.
Various embodiments of the present invention provide a backpressure method, system and node of a multistage switching network and an intermediate stage switching node to simplify the internal structure of the intermediate stage switching node, reduce the design complexity and design costs.
An embodiment of the present invention discloses a backpressure method in a multistage switching network. The backpressure method includes: an intermediate stage switching node receives backpressure information, does not respond to at least some of the received backpressure information, and sends the non-responded backpressure information to an upper stage switching node; and a stage 1 switching node responds to the received backpressure information.
An embodiment of the present invention discloses a backpressure system in a multistage switching network. The backpressure system includes: at least one intermediate stage switching node and a stage 1 switching node. The intermediate stage switching node is adapted to receive backpressure information, make no response to at least some of the received backpressure information, and send the non-responded backpressure information to the stage 1 switching node. The stage 1 switching node is adapted to respond to the received backpressure information.
An embodiment of the present invention discloses an intermediate stage switching node in a multistage switching network. The intermediate stage switching node includes: an input module, a buffer module, a backpressure information response module, and an output module. The input module is adapted to receive packets, parse out data information and backpressure information from the packets, classify the backpressure information into responded and non-responded backpressure information, and send the responded backpressure information to the backpressure information response module. The buffer module is adapted to store the data information parsed out from the packets. The backpressure information response module is adapted to instruct the output module to stop sending corresponding packets to a lower stage switching node according to the responded backpressure information. The output module is adapted to obtain the data information parsed out from the packets from the buffer module, recombine the packets according to the non-responded backpressure information, send the recombined packets, and stop sending corresponding packets to the lower stage switching node as instructed by the backpressure information response module.
An embodiment of the present invention discloses an intermediate stage switching node in a multistage switching network. The intermediate stage switching node includes: an input module, a buffer module, and an output module. The input module is adapted to receive packets and parse out data information and backpressure information from the packets. The buffer module is adapted to store the data information parsed out from the packets. The output module is adapted to obtain the data information parsed out from the packets from the buffer module, recombine the packets according to the backpressure information, and send the recombined packets.
An embodiment of the present invention discloses a backpressure method of the intermediate stage switching node in a multistage switching network. The backpressure method includes: receiving backpressure information; making no response to at least some of the received backpressure information; and sending the at least some of backpressure information to an upper stage switching node.
An embodiment of the present invention discloses an intermediate stage switching node in a multistage switching network. The intermediate stage switching node includes: a unit adapted to receive backpressure information, and a unit adapted to make no response to at least some of the received backpressure information and send the at least some of backpressure information to an upper stage switching node.
According to embodiments of the present invention, in a multistage switching network, an intermediate stage switching node with a buffer does not respond to the backpressure information from the lower stage switching node or only responds to some of backpressure information, and sends the non-responded backpressure information to the upper stage switching node.
The embodiments of the present invention are hereinafter described in detail by reference to the accompanying drawings. The backpressure transfer and response mechanism in a multistage switching network are described as follows taking a three-stage switching network as an example.
To improve the performance of the switching network, S1, S2, and S3 switching units use a queue structure to queue packets. The packets in the S1 switching unit are often queued in a virtual output queue (VOQ) mode.
When the length of a VIMQ in the S3 switching unit reaches or exceeds a certain threshold, queue backpressure information is generated. When the number of the packets in an S3 switching unit reaches or exceeds a certain threshold, global backpressure information is generated. The S3 switching unit sends the backpressure information to all S2 switching units.
The S2 switching unit also adopts the queue structure. Like the S1 switching unit, the S2 switching unit organizes the packets in the VOQ mode into four big queues VOQ0-VOQ3, corresponding to the four output ports of the switching network. These four VOQs can be further classified according to the queue structure of the S3 switching unit. Each VOQ in the S2 switching unit corresponds to one VIMQ in the S3 switching unit. Each VOQ in the S1 switching unit corresponds to one VOQ in the S2 switching unit.
The S2 switching unit responds to the backpressure information sent by the S3 switching unit, but does not forward such information to the S1 switching unit. When receiving the global backpressure information from an S3 switching unit, the S2 switching unit decides whether to continue sending the packets (namely, the packets in all VOQs in the S2 switching unit) to the S3 switching unit. For example, after receiving a request for global backpressure information from an S3 switching unit, the S2 switching unit stops sending the packets (namely, the packets in all VOQs corresponding to the S3 switching unit) to the S3 switching unit. After receiving the queue backpressure information from an S3 switching unit, the S2 switching unit decides whether to continue sending the packets in VOQs of the S2 switching unit. According to the mapping shown in
Similarly, the backpressure information generated by an S2 switching unit is sent to all S1 switching units. If an S2 switching unit sends global backpressure information to an S1 switching unit, the S1 switching unit no longer sends the packets (namely, the packets in all queues corresponding to the S2 switching unit) to this S2 switching unit. If a VOQ in the S2 switching unit generates backpressure information, the packets in the corresponding VOQs in the S1 switching unit stop being sent.
In the foregoing technical solution, because the queue backpressure information needs to be sent through the three-stage switching network, the S2 switching unit must adopt a more complex queue structure, and the queue backpressure generation and response modules must be added. Consequently, the S2 switching unit is harder to be implemented.
The following describes another embodiment of the present invention. For descriptive purposes, a 4×4 three-stage switching network is used as an example, supposing only global backpressure information and queue backpressure information are generated in the network. The technical solution provided in the present invention may be applied to, but not limited to, 4×4 three-stage switching networks, and the backpressure information includes, but not limited to, global backpressure information and queue backpressure information (for example, priority backpressure information).
As shown in
An embodiment of the present invention provides a backpressure method of the multistage switching network. As shown in
Block 501: The S3 switching node generates the first global backpressure information and the first queue backpressure information and sends such information to the S2 switching node.
Block 502: The S2 switching node responds to the first global backpressure information and sends the first queue backpressure information to the S1 switching node.
Block 503: The S1 switching node responds to the first queue backpressure information.
The S2 switching node may respond to the first queue backpressure information and send the first global backpressure information to the S1 switching node; or, the S2 switching node may respond to neither the first global backpressure information nor the first queue backpressure information, but send such information to the S1 switching node. Accordingly, the S1 switching node responds to the received first global backpressure information, or the received first global backpressure information and the first queue backpressure information.
The method may further include the following process:
the S2 switching node generates the second global backpressure information and sends it to the S1 switching node; or, the S2 switching node generates the second queue backpressure information, or the second global backpressure information and the second queue backpressure information; and
the S1 switching node responds to the second global backpressure information and/or the second queue backpressure information from the S2 switching node.
In another multistage switching network, there may be multiple intermediate switching nodes, each of which does not respond to the backpressure information sent from the lower stage switching node or only responds to some of the backpressure information, and sends the non-responded backpressure information to an upper stage switching node. The stage 1 switching node responds to all received backpressure information.
According to an embodiment of the present invention, the intermediate stage switching node does not respond to the backpressure information sent by the lower stage switching node or only responds to some of the backpressure information, and sends the non-responded backpressure information to the upper stage switching node. The specific process includes:
receiving packets, parsing out data information and backpressure information from the packets, and classifying the backpressure information into responded and non-responded backpressure information;
stopping sending the corresponding packets to the lower stage switching node according to the responded backpressure information; and
recombining the packets and sending the recombined packets according to the non-responded backpressure information, specifically, loading the non-responded backpressure information to the data information to be sent, recombining the packets, and sending the recombined packets.
According to another embodiment of the present invention, the intermediate stage switching node does not respond the backpressure information sent by the lower stage switching node or only responds to some of the backpressure information, and sends the non-responded backpressure information to an upper stage switching node. The specific process includes:
receiving packets and parsing out data information and pressure information from the packets; and
recombining the packets and sending the recombined packets according to the backpressure information, specifically, loading the backpressure information to the data information to be sent, recombining the packets, and sending the recombined packets.
When the intermediate stage switching node generates backpressure information, it can also send such information to an upper stage switching node. In this case, the backpressure information generated by the intermediate stage switching node is also loaded to the data information to be sent during the packet recombining. The backpressure information generated by the intermediate stage switching node, and the non-responded backpressure information sent by the lower stage switching node can be loaded to the data information respectively or after such information is merged according to preset rules.
A backpressure system provided in an embodiment of the present invention includes: S1, S2, and S3 switching nodes.
The S3 switching node is adapted to generate the first global backpressure information and the first queue backpressure information and send such information to the S2 switching node.
The S2 switching node is adapted to receive the first global backpressure information and the first queue backpressure information, respond to the first global backpressure information, send the first queue backpressure information to the S1 switching node, and generate the second global backpressure information and/or the second queue backpressure information; or, the S2 switching node may respond to the first queue backpressure information and send the first global backpressure information to the S1 switching node; or, the S2 does not respond to the first global backpressure information or the first queue backpressure information, but sends such information to the S1 switching node.
The S1 switching node is adapted to respond to the received backpressure information.
If the S2 switching node does not respond to queue backpressure information but responds to global backpressure information, complex queue structures or queue backpressure information response modules are not needed. This simplifies the structure of the S2 switching node.
In another multistage switching network, there may be multiple intermediate stage switching nodes. An N-stage (N>2) switching network includes a stage 1 switching node, a stage 2 switching node, . . . , a stage N−1 switching node, and a stage N switching node. Among them, the stage 2 switching node, . . . , and the stage N−1 switching node are intermediate stage switching nodes. As shown in
The stage N switching node is adapted to generate backpressure information and send the backpressure information to an upper stage switching node.
The intermediate stage switching node is adapted to receive the backpressure information from the lower stage switching node, make no response to at least one kind of the backpressure information, and send the non-responded backpressure information to an upper stage switching node.
The stage 1 switching node is adapted to respond to the received backpressure information.
As shown in
The input module 71 is adapted to receive packets, parse out data information and backpressure information from the packets, classify the backpressure information into responded and non-responded backpressure information, and send the responded backpressure information to the backpressure information response module 73.
The buffer module 72 is adapted to store the data information parsed out from the packets.
The backpressure information response module 73 is adapted to instruct the output module 74 to stop sending corresponding packets to the lower stage switching node according to the responded backpressure information.
The output module 74 is adapted to obtain the data information parsed out from the packets from the buffer module 72, recombine the packets according to the non-responded backpressure information, send the recombined packets, and stop sending corresponding packets to the lower stage switching node as instructed by the backpressure information response module 73.
The output module 74 further includes a first packet recombining unit 741 and a transmitting unit 742.
The first packet recombining unit 741 is adapted to receive the non-responded backpressure information, obtain the data information from the buffer module 72, load the non-responded information to the data information to be sent, recombine packets, and stop obtaining data information from the buffer module 72 for packet recombining as instructed by the backpressure information response module 73.
The transmitting unit 742 is adapted to transmit recombined packets, receive notifications from the backpressure information response module 73, and stop transmitting packets to the lower stage switching node according to notifications.
The intermediate stage switching node may further include: a backpressure information generating module 75, adapted to generate backpressure information according to the usage of the buffer module.
In this case, the output module 74 includes a second packet recombining unit 743, adapted to load the backpressure information generated by the backpressure information generating module 75 to the data information to be sent. The backpressure information generated by the generating module 75 and the non-responded backpressure information parsed out from the backpressure information by the input module 71 can be loaded to the data information respectively or after they are merged according to preset rules.
The intermediate stage switching node may further include: a backpressure information storage module 76, adapted to store the non-responded backpressure information parsed out from the backpressure information by the input module.
In this case, the output module 74 further includes a reading unit 744, adapted to read the non-responded backpressure information from the backpressure information storage module 76, and send the non-responded backpressure information to the first packet recombining unit 741. The backpressure information storage module is optional. The backpressure information storage module 75 and the buffer module 72 may be the same storage device, or two independent storage units in one storage device, or two independent storage devices.
As shown in
The input module 81 is adapted to receive packets and parse out data information and backpressure information from the packets.
The buffer module 82 is adapted to store the data information parsed out from the packets.
The output module 83 is adapted to obtain the data information parsed out from the packets, recombine the packets according to the backpressure information, and send the recombined packets.
The output module 83 further includes a first packet recombining unit 831 and a transmitting unit 832.
The first packet recombining unit 831 is adapted to receive the backpressure information, obtain the data information parsed out from the packets from the buffer module 82, load the backpressure information to the data information to be sent, and recombine the packets.
The transmitting unit 832 is adapted to transmit the recombined packets.
The intermediate stage switching node may further include: a backpressure information generating module 84, adapted to generate backpressure information according to the usage of the buffer module.
In this case, the output module 83 includes a second packet recombining unit 833 which is adapted to load the backpressure information generated by the backpressure information generating module 84 to the data information to be sent. The backpressure information generated by the generating module 84 and the backpressure information parsed out by the input module 81 can be loaded to the data information respectively or after they are merged according to preset rules.
The intermediate stage switching node may further include: a backpressure information storage module 85, adapted to store the non-responded backpressure information parsed out by the input module.
In this case, the output module 83 further includes a reading unit 834 which is adapted to read the non-responded backpressure information from the backpressure information storage module 85, and send such information to the first packet recombining unit 831. The backpressure information storage module is optional. The backpressure information storage module 85 and the buffer module 82 may be the same storage device, or two independent storage units in a storage device, or two independent storage devices.
According to embodiments of the present invention, in a multistage switching network, the intermediate stage switching node forwards the non-responded backpressure information from the lower stage switching node to the upper stage switching node. This can simplify the structure of the intermediate stage switching node and reduce costs.
In actual applications, the method for transferring backpressure information between the switching nodes may be implemented in multiple ways. Taking the multistage switching network shown in
Similarly, S2 can send the received non-responded backpressure information, namely, the backpressure information generated by S3, to the upper stage switching node S1 (which may be one S1 or multiple S1 switching units in the same stage) in an indirect mode. That is, S2 loads the non-responded backpressure information to a packet to be sent to S3 (which may be one S3 or multiple S3 switching units in the same stage), and then S3 sends the backpressure information finally to S1 (in the same switching chip as S3) through the internal channel between S3 and S1; or, S2 directly sends the non-responded backpressure information to S1.
The embodiments described above are only exemplary ones of the invention, and are not meant to limit the scope of protection of the invention. It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. The invention is intended to cover the modifications and variations provided that they fall in the scope of protection defined by the following claims or their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2007 1 0073276 | Feb 2007 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
4153916 | Miwa et al. | May 1979 | A |
5787071 | Basso et al. | Jul 1998 | A |
6011779 | Wills | Jan 2000 | A |
6671255 | Buhrgard et al. | Dec 2003 | B1 |
6973032 | Casley et al. | Dec 2005 | B1 |
Number | Date | Country |
---|---|---|
1180576 | Dec 2004 | CN |
1288876 | Jun 2006 | CN |
1848803 | Oct 2006 | CN |
101035076 | Jun 2009 | CN |
100591047 | Feb 2010 | CN |
Number | Date | Country | |
---|---|---|---|
20090161685 A1 | Jun 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2008/070232 | Feb 2008 | US |
Child | 12391115 | US |