Message order preserving forwarding method, device and equipment and computer readable storage medium

By listening to and absorbing the ordered message queue, the problems of high message data flow latency and high storage resource consumption are solved, and low-latency, high-efficiency multi-path load balancing forwarding is achieved.

CN117221253BActive Publication Date: 2026-11-24YUSUR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311261413.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2026-11-24
Estimated Expiration
2043-09-27

AI Technical Summary

Technical Problem

In existing technologies, message data transfer has high latency and consumes a lot of storage resources, making it difficult to achieve low-latency, high-performance, order-preserving forwarding.

Method used

By monitoring whether preemption occurs at the target node's exit point, the system absorbs the queue of packets about to pass through in an ordered manner, and removes them from the queue in a preset order when the exit point's load is idle, thus achieving ordered forwarding with load balancing across multiple paths.

Benefits of technology

There is no need to pre-store the dimension order table. Flow control is performed in real time based on egress preemption and load conditions, which reduces packet data flow latency and improves forwarding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117221253B_ABST
    Figure CN117221253B_ABST
Patent Text Reader

Abstract

This disclosure relates to a message order-preserving forwarding method, apparatus, device, and computer-readable storage medium. The method includes: monitoring whether a target exit of a target node in an order-preserving network is preempted; in response to a preemption of the target exit, absorbing a queue of order-preserving messages about to pass through the target exit; and when the target exit is idle, pushing the queue of order-preserving messages out of the target exit according to a preset order. This disclosure, through its order-preserving logic and absorption operation, eliminates the need for pre-storing a sequence table and enables real-time flow control of the queue of order-preserving messages about to pass through the target exit based on the preemption and load conditions of the target exit, achieving multi-path load-balanced order-preserving message forwarding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of network data transmission technology, and in particular to a message order-preserving forwarding method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] Ordered Torus Network (OTN) is a Torus-based topology, a multi-dimensional mesh structure that can be used to build high-concurrency computing and communication systems on a single chip. A key feature of OTN is that it guarantees the order in which data packets are transmitted within the network; that is, the order in which data packets are transmitted in the network is the same as the order in which they enter the network. Ordered message queues achieve this by ensuring that the input and output ports of each node are routed identically.

[0003] In existing technologies, message order preservation is usually based on message hash classification, looking up the pre-stored dimension order table of each node, determining the dimension order path, thereby ensuring that messages belonging to the same order pass through the switching network along the exact same path.

[0004] However, this scheme is based on a high-latency table lookup model, which is not conducive to low-latency, high-performance data transfer. Furthermore, storing the dimension table entries for each node requires additional storage resources. Summary of the Invention

[0005] To address the aforementioned technical problems, this disclosure provides a message order-preserving forwarding method, apparatus, device, and computer-readable storage medium to effectively reduce the delay in message data flow.

[0006] In a first aspect, embodiments of this disclosure provide a message order-preserving forwarding method, including:

[0007] Monitor whether preemption occurs at the target exit of the target node in the order-preserving network;

[0008] In response to a preemption at the target exit, the queue of ordered messages about to pass through the target exit is absorbed;

[0009] When the target egress is idle, the ordered message queue is pushed out of the target egress in a preset order.

[0010] In some embodiments, the step of absorbing the queue of ordered messages about to pass through the target exit in response to preemption at the target exit includes:

[0011] In response to a preemption at the target exit, the message members in the ordered message queue that are stuck before the target exit are identified, and the ordered message queue includes multiple message members;

[0012] Absorb the delayed message members in the ordered message queue that are stuck before the target exit.

[0013] In some embodiments, after absorbing packets that are stuck before the target egress in the ordered message queue, the method further includes:

[0014] Monitor the target message member following the delayed message member in the ordered message queue;

[0015] If a new target message member is added to the first entry channel corresponding to the ordered message queue, the target message member is retrieved and absorbed in order.

[0016] In some embodiments, before monitoring whether a preemption occurs at the target exit of a target node in the order-preserving network, the method further includes:

[0017] The target exit is determined from multiple exits of the target node based on the network routing hash value of the ordered message queue.

[0018] Secondly, embodiments of this disclosure provide a message order-preserving forwarding apparatus, comprising:

[0019] The monitoring module is used to monitor whether preemption has occurred at the target exit of the target node in the order-preserving network.

[0020] The absorption module is used to absorb the queue of ordered messages that are about to pass through the target exit in response to a preemption of the target exit;

[0021] The ejection module is used to eject the ordered message queue from the target egress in a preset order when the target egress is idle.

[0022] In some embodiments, the absorption module includes a determining unit and an absorption unit;

[0023] The determining unit is used to determine the message members in the ordered message queue that are stuck before the target exit in response to the preemption of the target exit. The ordered message queue includes multiple message members.

[0024] The absorption unit is used to absorb the delayed message members in the ordered message queue that are stuck before the target exit.

[0025] In some embodiments, the absorption module further includes a listening unit, which is used to listen to the target message members following the delayed message members in the ordered message queue;

[0026] The absorption unit is also used to retrieve and absorb the target message member in order if a new target message member is added to the first entry channel corresponding to the ordered message queue.

[0027] In some embodiments, the apparatus further includes a determining module, which is configured to determine a target exit from a plurality of exits of the target node based on the network routing hash value of the ordered message queue.

[0028] Thirdly, embodiments of this disclosure provide an electronic device, including:

[0029] Memory;

[0030] Processor; and

[0031] Computer programs;

[0032] The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in the first aspect.

[0033] Fourthly, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method described in the first aspect.

[0034] Fifthly, embodiments of this disclosure also provide a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the message order-preserving forwarding method as described above.

[0035] The message order-preserving forwarding method, apparatus, device, and computer-readable storage medium provided in this disclosure, through order-preserving logic and absorption operation, do not require pre-storing a sequence table. They can perform flow control on the queue of ordered messages about to pass through the target exit in real time based on the preemption and load conditions of the target exit, thereby achieving multi-path load-balanced ordered message forwarding. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0037] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is a schematic diagram of an order-preserving Torus network;

[0039] Figure 2 A diagram illustrating the disorderly competition for exit channels;

[0040] Figure 3A flowchart of the message order-preserving forwarding method provided in this embodiment of the disclosure;

[0041] Figure 4 A schematic diagram illustrating an application scenario provided by an embodiment of this disclosure;

[0042] Figure 5 Simulation waveform diagram of message order-preserving forwarding provided for embodiments of this disclosure;

[0043] Figure 6 A flowchart of a message order-preserving forwarding method provided in another embodiment of this disclosure;

[0044] Figure 7 A simulation waveform diagram of message order-preserving forwarding provided for another embodiment of this disclosure;

[0045] Figure 8 A schematic diagram of the structure of the message order-preserving forwarding device provided in the embodiments of this disclosure;

[0046] Figure 9 A schematic diagram of another message order-preserving forwarding device provided in this embodiment of the present disclosure;

[0047] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0048] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0049] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0050] OTN is a high-performance, high-reliability network topology suitable for applications requiring guaranteed data transmission order, such as real-time data transmission applications like network video and audio streams. A key feature of OTN is its guarantee of data transmission order within the network; that is, the order in which data packets are transmitted in the network is the same as the order in which they enter the network. Ordered message queues achieve this by ensuring consistent routing across the input and output ports of each node. For example, in a 2D OTN, each node has two input ports and two output ports, numbered i0, i1 and o0, o1 respectively. A queue q0, q1, q2 requiring ordered transmission will have consistent routing across all nodes in the Torus network, i0, i1, o0, o1, thus achieving ordered transmission. OTN routing algorithms typically employ shortest path routing algorithms, finding the shortest path from the source node to the destination node.

[0051] Figure 1 This is a schematic diagram of an order-preserving Torus network. (Example) Figure 1 As shown, the Torus network has Ingress0, 1, and 2 as its entry points. Each cluster is a node, numbered from 00 to 33. Each node has traffic entry points i0 and i1 and exit points o0 and o1. The ordered message queues q0, q1, and q2 enter the Torus network from the i0 entry point of Cluster00 node, flow through each Cluster node, and finally reach Cluster33 node. Taking node Cluster00 as an example, when flowing through Cluster00 node, according to the shortest path principle, the exit point can be selected as o0 or o1. o0, o1. In order to achieve load balancing of each path in the Torus network, the exit route selection is determined based on the hash value of the 5-tuple data of the message during the routing selection. At each Torus network entry point (Ingress0, 1, 2), the routing logic module calculates a 16-bit hash[4][4] value (4x4 Torus network routing hash value) based on the 176-bit 5-tuple data. When the ordered message queue flows through any Cluster node, the routing selection is completed by the hash bit value of the corresponding node. For example, when the flow passes through Cluster10 node, the single bit value of hash[1][0] is used to determine the next route. When there are no multiple shortest path options, the route is selected directly based on the shortest path. For example, when the order-preserving logic flows through Cluster30 node, exit o0 is selected directly.

[0052] Figure 2 A diagram illustrating the disorderly competition for exit channels. (For example...) Figure 2As shown, when the ordered queues q0, q1, and q2 enter the i0 inlet and flow through the Cluster12 node, they encounter a route contention at the o1 exit with another ordered queue at the i1 inlet of the Cluster12 node. q0 and q1 become delayed. However, when q2 flows through, the o1 exit does not experience preemption, and q2 is successfully routed through the o1 exit without delay. When queues q0, q1, and q2 pass through the next Torus node, Cluster22, at the i1 inlet, they are out of order as q2, q0, and q1.

[0053] Real-world application scenarios are more complex. Each node not only has i0, i1, o0, o1, but also virtual input / output channels vi0, vi1, vo0, vo1, etc., added to achieve non-blocking routing. Furthermore, to achieve load balancing in the Torus network, under the shortest path principle, route selection not only exhibits randomness but also queue interleaving behavior. For example, the interleaving of ordered queues q0, q1, q2 and qq0, qq1, ..., qq7 on the same path should result in an interleaved ordered queue q0, q1, qq0, qq1, qq3, q2, qq4, ..., qq7. Therefore, a method that balances multi-path load balancing and packet-ordered forwarding is urgently needed.

[0054] To address this issue, this disclosure provides a message order-preserving forwarding method, which will be described below with reference to specific embodiments.

[0055] Figure 3 A flowchart illustrating the message order-preserving forwarding method provided in this embodiment of the disclosure. This method can be applied to... Figure 4 The application scenario shown includes node Cluster12 and the Order_Keep module. Cluster12 has traffic ingress points i0 and i1 and egress points o0 and o1. Ordered queues from node Cluster11 enter node Cluster12 via ingress point i0, and ordered queues from node Cluster02 enter node Cluster12 via ingress point i1. Ordered queues in node 12 exit via egress points o0 or o1. The Order_Keep module is used to execute the packet ordered forwarding method.

[0056] It is understood that the message order-preserving forwarding method provided in this disclosure can also be applied in other scenarios.

[0057] The following is combined with Figure 4 The application scenarios shown are for Figure 3 The message order preservation forwarding method shown is introduced below, and the specific steps of this method are as follows:

[0058] S301. Monitor whether the target exit of the target node in the order-preserving network has been preempted.

[0059] In a pre-order network, there are multiple nodes. This embodiment of the disclosure uses one of these nodes as the target node for illustration, for example... Figure 4 The node shown is Cluster12. It is understood that the target node can be any node in the order-preserving network that needs to perform message order-preserving forwarding, and this embodiment of the disclosure does not limit this.

[0060] The target node may have multiple traffic exits. This embodiment only uses one of the multiple traffic exits as the target exit as an example. Load monitoring is performed on the target exit among the multiple traffic exits. When different order-preserving queues are about to flow out of the target exit at the same time, it is determined that the target exit has been preempted.

[0061] S302. In response to a preemption at the target exit, the queue of ordered messages about to pass through the target exit is absorbed.

[0062] When a preemption occurs at the target exit, the order preservation logic is triggered, which means that the order preservation message queue that is about to pass through the target exit is absorbed.

[0063] Specifically, the ordered message queue includes multiple message members with a fixed order. In response to preemption at the target exit, it absorbs message members in the ordered message queue that are about to pass through the target exit, and listens for and absorbs subsequent message members in the ordered message queue.

[0064] like Figure 4 As shown, when the ordered message queues q0, q1, and q2 are about to pass through node Cluster12, the corresponding traffic exit for these ordered message queues has been determined to be o1. Assuming that message member q0 experiences exit route preemption due to the o1 exit channel, the Order_Keep module triggers the order preservation logic. This logic will absorb the q0 message and simultaneously enter the listening mode for subsequent q1 and q2. Once q1 and q2 pass through this path, they will be absorbed. The Order_Keep module will also monitor the load status of the o1 exit of Cluster12 node to determine whether the exit load is idle.

[0065] S303. When the target egress is idle, the ordered message queue is pushed out of the target egress in a preset order.

[0066] The preset order is the original order of message members in the order-preserving message queue.

[0067] When the target egress is in an idle state, no preemption event will occur when the ordered message queue is pushed out of the target egress, and the ordered message queue will be pushed out of the target egress in a preset order.

[0068] Specifically, whenever the target egress is detected to be idle, at least one message member in the ordered message queue is pushed out of the target egress in a preset order.

[0069] like Figure 4 As shown, once the o1 egress of Cluster12 node is in an idle state, the absorbed q0, q1, and q2 will be pushed to the o1 egress in sequence.

[0070] In some embodiments, the above-described message order-preserving forwarding method can achieve order preservation in multipath interleaving transmission. For example... Figure 4 As shown, the ordered message queues qq0, qq1, ..., qq7 enter from the i1 entry point of node Cluster12 and need to exit from the o1 exit point of node Cluster12. At this point, it is assumed that a preemption event occurs between the ordered message queues qq0, qq1, ..., qq7 and the ordered message queues q0, q1, q2 at the o1 exit point of node Cluster12. Specifically, message member qq2 preempts message member q0, triggering the ordered message logic. Message member q0 is absorbed, and the system simultaneously enters the listening mode for subsequent messages q1 and q2. Once q1 and q2 pass through this path, they are absorbed. At this point, after message member qq2 flows out of the Cluster12 node o1 exit, the Cluster12 node o1 exit is temporarily in an idle state. It pushes out message member q0 from the already absorbed ordered message queues q0, q1, and q2. Then, it detects that qq3 is occupying Cluster12 node o1, maintaining the absorption state of q1 and q2. After qq3 flows out of Cluster12 node o1, q1 is pushed out according to a preset order. Then, it detects that qq4 and qq5 are occupying Cluster12 node o1 in sequence, maintaining the absorption state of q2. After qq4 and qq5 pass through Cluster12 node o1 in sequence, it is detected that the output of Cluster12 node o1 is temporarily idle, so q2 is pushed out. Then qq6 and qq7 pass through the output of Cluster12 node o1 in sequence. At this point, the ordered message queues qq0, qq1, ..., qq7 and the ordered message queues q0, q1, q2 are interleaved at the output of Cluster12 node o1, resulting in the interleaved ordered message queues qq0, qq1, qq2, q0, qq3, q1, qq4, qq5, q2, qq6, qq7.

[0071] Figure 5 The simulation waveform diagram of message order preservation forwarding provided in the embodiments of this disclosure shows that q0, q1, and q2 are absorbed into the order preservation module and then pushed out when the Cluster12 o1 egress channel is not occupied.

[0072] This embodiment of the disclosure monitors whether a preemption occurs at the target exit of a target node in the ordered network; in response to a preemption at the target exit, it absorbs a queue of ordered packets about to pass through the target exit; when the target exit is idle, it pushes the queue of ordered packets out of the target exit in a preset order. Through the ordered logic and absorption operation, without the need to pre-store the ordering table, it can perform flow control on the queue of ordered packets about to pass through the target exit in real time according to the preemption and load status of the target exit, thereby achieving multi-path load balancing for ordered packet forwarding.

[0073] Figure 6 A flowchart of a message order-preserving forwarding method provided in another embodiment of this disclosure is shown below. Figure 6 As shown, the method includes the following steps:

[0074] S601. Determine the target exit from multiple exits of the target node based on the network routing hash value of the ordered message queue.

[0075] The target node has multiple traffic exits. To achieve load balancing across paths in the Torus network, the exit route selection is determined based on the hash value of the packet's 5-tuple data during routing. Specifically, a network routing hash value is calculated based on the 5-tuple data of the ordered packet queue. This network routing hash value is represented as an array, with the number of elements matching the number of nodes in the Torus network. When passing through a node in the network, a specific element in the network routing hash value is determined based on the node's unique ID within the Torus network, and the routing path is determined by a single bit value of this element.

[0076] S602. Monitor whether the target exit of the target node in the order-preserving network is preempted.

[0077] Specifically, the implementation process and principle of S602 and S101 are the same, and will not be repeated here.

[0078] S603. In response to a preemption at the target exit, determine the message members in the order-keeping message queue that are stuck before the target exit, wherein the order-keeping message queue includes multiple message members.

[0079] S603. Absorb the delayed message members in the ordered message queue that are stuck before the target exit.

[0080] When a preemption occurs at the target exit, a message member in the order-keeping message queue may be stuck before the target exit due to the current target exit being busy. In this embodiment of the disclosure, this message member is referred to as the stuck message member.

[0081] When a preemption occurs at the target exit, the order preservation logic is triggered. After identifying the delayed message members before the target exit, these delayed message members are absorbed. It is understood that the delayed message member may not be the first message member in its ordered message queue, and at this time, the message members preceding the delayed message member have already flowed out of the target exit in order, therefore there is no need to absorb the message members preceding the delayed message member.

[0082] In other words, for a message queue that maintains its order, if the first few message members pass through the target exit without preemption, there is no need to trigger the order maintenance logic, thus achieving a "no triggering unless necessary" mode.

[0083] For example, Figure 7 A simulation waveform diagram of message order-preserving forwarding provided for another embodiment of this disclosure. For example... Figure 7 As shown, when the exit channel of the Torus node is preempted, the queue members of the ordered message queues q0, q1, and q2 are delayed. q0 passes through without preemption, while q1 preempts. At this time, only q1-q2 are absorbed, and then q1-q2 are pushed out in order.

[0084] S604. Monitor the target message member following the delayed message member in the ordered message queue.

[0085] S605. If a new target message member is added to the first entry channel corresponding to the ordered message queue, the target message member is retrieved and absorbed in order.

[0086] After absorbing the delayed message members, the system simultaneously begins monitoring the target message members following the delayed message members in the ordered message queue. When a target message member passes through the first entry channel corresponding to the ordered message queue, the system pulls and absorbs the target message member from the first entry channel.

[0087] It is understandable that there may be multiple target message members. When multiple target message members pass through the first entry channel corresponding to the ordered message queue in sequence, it is necessary to pull and absorb multiple target message members in order, that is, to pull and absorb them in the original order in the ordered message queue.

[0088] S606. When the target egress is idle, the ordered message queue is pushed out of the target egress in a preset order.

[0089] Specifically, the implementation process and principle of S606 and S103 are the same, and will not be repeated here.

[0090] This embodiment of the disclosure determines the target exit from multiple exits of the target node based on the network routing hash value of the ordered message queue; monitors whether the target exit of the target node in the ordered network is preempted; in response to the preemption of the target exit, it determines the message members in the ordered message queue that are stuck before the target exit, the ordered message queue including multiple message members; absorbs the stuck message members in the ordered message queue that are stuck before the target exit; monitors the target message members after the stuck message members in the ordered message queue; if a new target message member is added to the first entry channel corresponding to the ordered message queue, the target message member is pulled and absorbed in order; when the target exit is idle, the ordered message queue is pushed out of the target exit in a preset order. Through the ordering logic and absorption operation, there is no need to pre-store the ordering table, and the ordering message queue that is about to pass through the target exit can be controlled in real time according to the preemption and load of the target exit, realizing multi-path load balancing of ordered message forwarding. Meanwhile, by adopting the "no triggering unless necessary" mode, the forwarding latency and the order preservation buffer usage are minimized to the maximum extent while achieving the order preservation goal, thereby further improving the efficiency of message order preservation forwarding.

[0091] Figure 8 This is a schematic diagram of the structure of the message order-preserving forwarding device provided in the embodiments of this disclosure. The message order-preserving forwarding device can be the Order_Keep module as described in the above embodiments, or it can be a component or part of the Order_Keep module. The message order-preserving forwarding device provided in the embodiments of this disclosure can execute the processing flow provided in the embodiments of the message order-preserving forwarding method, such as... Figure 8 As shown, the message order preservation forwarding device 80 includes: a monitoring module 81, an absorption module 82, and an ejection module 83; wherein, the monitoring module 81 is used to monitor whether the target exit of the target node in the order preservation network is preempted; the absorption module 82 is used to absorb the order preservation message queue that is about to pass through the target exit in response to the preemption of the target exit; the ejection module 83 is used to eject the order preservation message queue from the target exit in a preset order when the target exit is idle.

[0092] Optionally, the absorption module 82 includes a determining unit 821 and an absorption unit 822; the determining unit 821 is used to determine the message members in the ordered message queue that are stuck before the target exit in response to the preemption of the target exit, the ordered message queue including multiple message members; the absorption unit 822 is used to absorb the stuck message members in the ordered message queue that are stuck before the target exit.

[0093] Optionally, the absorption module 82 further includes a listening unit 823, which is used to listen to the target message member after the delayed message member in the ordered message queue; the absorption unit 822 is also used to pull and absorb the target message member in order if the target message member is added to the first entry channel corresponding to the ordered message queue.

[0094] Optionally, the message ordering forwarding device 80 further includes a determination module 84, used to determine the target exit from multiple exits of the target node based on the network routing hash value of the ordering message queue.

[0095] Figure 8 The message order-preserving forwarding device shown in the embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0096] Figure 9 This is a schematic diagram of another message order-preserving forwarding device provided in an embodiment of this disclosure. This message order-preserving forwarding device can be the Order_Keep module described in the above embodiment. Figure 9 As shown, the Compete module is responsible for determining whether there is preemption at the i1 or i0 entry points or at the o1 or o0 exit point. When preemption occurs, the Order_Ctrl module is responsible for pulling the ordered queue on the i0 channel and saving it to MDI0-MDI7. At the same time, it starts the Watcher to pull subsequent packets from the same queue in order. When the o1 exit point is idle, the Order_Ctrl module is responsible for pushing out the packets buffered in the queues of MDO0-MDO7.

[0097] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. The electronic device may be a device running the Order_Keep module as described in the above embodiment. The electronic device provided in this embodiment of the disclosure can execute the processing flow provided in the embodiment of the message order-preserving forwarding method, such as… Figure 10 As shown, the electronic device 100 includes: a memory 101, a processor 102, a computer program, and a communication interface 103; wherein, the computer program is stored in the memory 101 and is configured to be executed by the processor 102 as described above using the message order-preserving forwarding method.

[0098] In addition, this disclosure also provides a computer-readable storage medium storing a computer program thereon, which is executed by a processor to implement the message order-preserving forwarding method described in the above embodiments.

[0099] Furthermore, this disclosure also provides a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the message order-preserving forwarding method as described above.

[0100] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0101] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A message order-preserving forwarding method, characterized in that, The method includes: Monitor whether preemption occurs at the target exit of the target node in the order-preserving network; In response to a preemption of the target exit, the system absorbs a queue of ordered messages that are about to pass through the target exit. The queue of ordered messages contains multiple message members with a fixed order. When the target egress is idle, the ordered message queue is pushed out of the target egress in a preset order; The response to the preemption of the target exit, absorbing the ordered message queue that is about to pass through the target exit, includes: absorbing the delayed message members in the ordered message queue that are stuck before the target exit; The method further includes, after absorbing the packets that are stuck before the target exit in the ordered message queue: Monitor the target message member following the delayed message member in the ordered message queue; If a new target message member is added to the first entry channel corresponding to the ordered message queue, the target message member is retrieved and absorbed in order.

2. The method according to claim 1, characterized in that, Before absorbing the delayed message members in the ordered message queue that are stuck before the target exit, the process also includes: In response to a preemption at the target exit, the message members in the ordered message queue that are stuck before the target exit are identified.

3. The method according to claim 1, characterized in that, Before monitoring whether a preemption occurs at the target exit of a target node in the order-preserving network, the method further includes: The target exit is determined from multiple exits of the target node based on the network routing hash value of the ordered message queue.

4. A message order-preserving forwarding device, characterized in that, include: The monitoring module is used to monitor whether preemption has occurred at the target exit of the target node in the order-preserving network. An absorption module is used to absorb the ordered message queue that is about to pass through the target exit in response to a preemption of the target exit. The ordered message queue contains multiple message members with a fixed order. The ejection module is used to eject the ordered message queue from the target egress in a preset order when the target egress is idle. The absorption module includes: an absorption unit, which is used to absorb the message members that are stuck in the order-keeping message queue before the target exit; The absorption module also includes a monitoring unit, which is used to monitor the target message members following the delayed message members in the ordered message queue. The absorption unit is also used to retrieve and absorb the target message member in order if a new target message member is added to the first entry channel corresponding to the ordered message queue.

5. The apparatus according to claim 4, characterized in that, The absorption module includes a determining unit and an absorption unit; The determining unit is used to determine the message members in the ordered message queue that are stuck before the target exit in response to the preemption of the target exit. The ordered message queue includes multiple message members. The absorption unit is used to absorb the delayed message members in the ordered message queue that are stuck before the target exit.

6. The apparatus according to claim 5, characterized in that, The absorption module also includes a monitoring unit, which is used to monitor the target message members following the delayed message members in the ordered message queue. The absorption unit is also used to retrieve and absorb the target message member in order if a new target message member is added to the first entry channel corresponding to the ordered message queue.

7. The apparatus according to claim 4, characterized in that, The device further includes a determining module, which is used to determine a target exit from multiple exits of the target node based on the network routing hash value of the ordered message queue.

8. An electronic device, characterized in that, include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in any one of claims 1-3.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Message order-preserving processing method, order-preserving coprocessor and network equipment

    CN102204183A

  • Congestion control method, equipment and system

    CN104283808A