Network congestion control method and equipment

By setting the priority queue mapping relationship table and setting the congestion notification threshold in the lossless network, the linkage between PFC and ECN protocols is realized, solving the problem of low efficiency of network congestion management in the prior art, and improving the network's traffic control and congestion management capabilities.

CN119996313APending Publication Date: 2025-05-13NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510225198.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In existing lossless networks, the settings of the low threshold and high threshold of the priority queue of the ECN protocol are complex, and the PFC protocol and the ECN protocol are not linked, resulting in low network congestion management efficiency.

Method used

By setting the priority queue mapping relationship table, the correspondence between the outgoing priority queue and the incoming priority queue is recorded, and the maximum and minimum values ​​of the congestion notification are set based on the marking probability slope and queue length, the congestion notification is realized for the outgoing priority queue, and the upstream equipment is linked to the counter-pressure notification message.

Benefits of technology

The priority-based traffic control technology and display congestion notifications are realized, which reduces the message transmission rate, suppresses upstream devices from stopping sending Ethernet data packets of a certain priority, and improves the efficiency of network congestion management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996313A_ABST
    Figure CN119996313A_ABST
Patent Text Reader

Abstract

The invention provides a network congestion control method and equipment. In the method, a priority queue mapping relation table is set to record an in-direction priority queue of a second port mapped by a specified out-direction priority queue of a first port; wherein the first port and the second port are respectively connected with downstream equipment reaching the target equipment and upstream equipment reaching the source equipment; setting a congestion notification maximum value and a congestion notification minimum value of the specified direction priority queue based on the marking probability slope and the queue length of the specified direction priority queue; based on the congestion notification maximum value and the congestion notification minimum value, setting and displaying a congestion notification identifier for the cached Ethernet data message of the specified direction priority queue; searching and mapping a direction priority queue based on a priority queue mapping relation table; sending a back pressure notification message through the second port; wherein the back pressure notification message carries the priority identifier corresponding to the searched mapping direction priority queue.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to communication technology, and in particular to a network congestion control method and device. Background Art

[0002] PFC (Priority-based Flow Control) and ECN (Explicit Congestion Notification) are two different network congestion management technologies that can be used in lossless networks.

[0003] The PFC protocol works at the data link layer. When the number of cached messages in the inbound priority queue of a port of a network device reaches the transmission stop (XOFF) threshold, the network device sends a back pressure notification message to the upstream device connected to the port to perform traffic back pressure, notifying the upstream device to suspend sending messages of the same priority level in the congested priority queue. When the number of cached messages in the congested inbound priority queue is lower than the transmission start (XON) threshold, a back pressure stop notification message is sent, and the upstream device resumes sending.

[0004] At the network layer and transport layer, the ECN protocol sets a display congestion notification flag for the cached messages of the priority queue in the outbound direction of the port of the network device when the number of cached messages is lower than the lower threshold value. The cached messages of the priority queue are sent through the port. When the number of cached messages is higher than the lower threshold value (QL min) but lower than the upper threshold value (QL max), the cached messages of the priority queue are set to display congestion notification flags according to the marking probability. When the number of cached messages is higher than the upper threshold value, the cached messages of the priority queue are all set to display congestion notification flags.

[0005] However, currently, the setting of the low threshold and the high threshold of the priority queue of the ECN protocol of the network device in the lossless network is complicated, and the PFC protocol of the network device is not linked with the ECN protocol. Summary of the invention

[0006] The purpose of the present disclosure is to provide a network congestion control method and device to realize the linkage between priority-based flow control technology and display congestion notification.

[0007] To achieve the above-mentioned purpose, the present disclosure provides a network congestion control method, which includes: setting a priority queue mapping relationship table to record the inbound priority queue of the second port mapped to the specified outbound priority queue of the first port; wherein the first port and the second port are respectively connected to a downstream device reaching a destination device and an upstream device reaching a source device; based on the marking probability slope and queue length of the specified outbound priority queue, setting a maximum congestion notification value and a minimum congestion notification value of the specified outbound priority queue; based on the maximum congestion notification value and the minimum congestion notification value, setting a display congestion notification flag for the cached Ethernet data message of the specified outbound priority queue; searching for the mapped inbound priority queue based on the priority queue mapping relationship table; sending a back pressure notification message through the second port; wherein the back pressure notification message carries a priority flag corresponding to the searched mapped inbound priority queue.

[0008] To achieve the above-mentioned purpose, the present disclosure also provides a network congestion control device, which includes: a setting module, which sets a priority queue mapping relationship table to record the mapping of the specified outbound priority queue of the first port connected to the downstream device to the inbound priority queue of the second port connected to the upstream device; based on the marking probability slope and queue length of the specified outbound priority queue, the maximum congestion notification value and the minimum congestion notification value of the specified outbound priority queue are set; a queue management module, which sets a display congestion notification flag for the cached Ethernet data message of the specified outbound priority queue based on the maximum congestion notification value and the minimum congestion notification value, and searches for the mapped inbound priority queue based on the priority queue mapping relationship table; a sending module, which sends a back pressure notification message through the second port; wherein the back pressure notification message carries a priority flag corresponding to the found mapped inbound priority queue.

[0009] The beneficial effect of the present disclosure is that it will realize the linkage between priority-based flow control technology and explicit congestion notification, and while notifying the source end to reduce the message sending rate, it will inhibit the upstream device from stopping sending Ethernet data messages of a certain priority level, and the communication equipment will absorb passing messages and send the Ethernet data messages cached in the outbound direction to the downstream device. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A flowchart of an embodiment of a network congestion control method provided by the present disclosure;

[0011] Figure 2 A schematic diagram of a first embodiment of the upstream and downstream linked network congestion control provided by the present disclosure;

[0012] Figure 3 A schematic diagram of a second embodiment of the upstream and downstream linked network congestion control provided by the present disclosure;

[0013] Figure 4The present invention provides a flowchart of a network congestion control method embodiment. DETAILED DESCRIPTION

[0014] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present disclosure. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.

[0015] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.

[0016] Figure 1 The flowchart of the network congestion control method embodiment provided by the present disclosure is shown; the embodiment includes:

[0017] Step 101, setting a priority queue mapping relationship table to record the mapping of a specified outbound priority queue of a first port to an inbound priority queue of a second port;

[0018] Step 102, setting a maximum congestion notification value and a minimum congestion notification value of the specified outbound priority queue based on a marking probability slope and a queue length of the specified outbound priority queue;

[0019] Step 103, based on the maximum congestion notification value and the minimum congestion notification value, setting a display congestion notification flag for the cached Ethernet data message of the priority queue in the designated outgoing direction;

[0020] Step 104, searching for a mapped inbound priority queue based on a priority queue mapping relationship table;

[0021] Step 105: Send a back pressure notification message through the second port; wherein the back pressure notification message carries a priority identifier corresponding to the searched mapped inbound priority queue.

[0022] The beneficial effect of the present disclosure is that it will realize the linkage between priority-based flow control technology and explicit congestion notification, and while notifying the source end to reduce the message sending rate, it will inhibit the upstream device from stopping sending Ethernet data messages of a certain priority, absorb passing messages through the communication equipment on the forwarding path, and send the Ethernet data messages cached in the outbound direction to the downstream device.

[0023] Figure 2 A schematic diagram of a first embodiment of the upstream and downstream linked network congestion control provided by the present invention. Figure 2In the figure, network device 21 is the message sending end; network device 24 is the message receiving end; network devices 22 and 23 are message forwarding devices on the message forwarding path.

[0024] The network device 22 sets a priority queue mapping table to record the port 22b ( Figure 2 The inbound priority queue 7 of the port 22a connected to the network device 21 is mapped to the outbound priority queue 0 (not shown); based on the marking probability slope and queue length of the specified outbound priority queue 0, the congestion notification maximum value of the specified outbound priority queue 0 is set to be approximately the congestion notification minimum value.

[0025] The network device 23 sets a priority queue mapping table to record the port 23b ( Figure 2 The inbound priority queue 7 of the port 23a connected to the network device 22 is mapped to the outbound priority queue 0 (not shown); based on the marking probability slope and queue length of the specified outbound priority queue 0, the congestion notification maximum value of the specified outbound priority queue 0 is set to be approximately the congestion notification minimum value.

[0026] In this embodiment, the priorities of the outgoing priority queues 0-7 of the network devices 21-24 are from high to low only for illustrating the implementation of the scheme, but are not used to limit the protection scope of the present disclosure. In the embodiments of the present disclosure and other embodiments, the setting of the priority queue mapping relationship in the network device can be flexibly set according to the network service requirements.

[0027] Network device 21 sends Ethernet data packet 201 and forwards it based on the egress port corresponding to the destination MAC address of Ethernet data packet 201; network device 22 receives Ethernet data packet 201 through port 22a, searches for the egress port 22b corresponding to the destination MAC address, and forwards it to network device 23.

[0028] Network device 23 receives Ethernet data packet 201 through port 23a, searches for the egress port 23b corresponding to the destination MAC address, identifies that the message priority of Ethernet data packet 201 corresponds to the egress priority queue 0 of egress port 23b, and schedules Ethernet data packet 201 to be cached in the egress priority queue 0 of egress port 23b.

[0029] When network devices 22 and 23 receive Ethernet data packet 201, the destination MAC address found can be the original destination MAC address; or it can be the destination MAC address re-encapsulated according to the next hop found based on the destination IP of Ethernet data packet 201. The present disclosure does not make any limitation on this. The implementation methods of other devices in this embodiment are the same, and after the network devices in other embodiments of the present disclosure receive Ethernet data packets, they forward them according to the original destination MAC address or according to the re-encapsulated destination MAC address, without any limitation.

[0030] The network device 23 determines that the number of packets buffered in the outbound priority queue 0 of the outbound port 23b has exceeded the minimum congestion notification value, and sets the ECN field of the IP header of the buffered Ethernet data packet 201 to 11, ie, the congestion indicator, based on the marking probability.

[0031] The network device 23 searches for the mapping of the outbound priority queue 0 of the outbound port 23b to the inbound priority queue 7 of the inbound port 23a based on the priority queue mapping relationship table;

[0032] The network device 23 generates a back pressure notification message 202 carrying the priority identifier corresponding to the mapped inbound priority queue 7 found, and sends it through the port 23a.

[0033] The network device 22 receives the back pressure notification message 202 through the port 22b, and suspends the Ethernet data message buffered by the outgoing priority queue 7 of the port 22b. In this way, when the outgoing priority queue of the port 23b of the network device 23 is congested, the passing data message is absorbed by the upstream network device through ECN and PFC.

[0034] The network device 23 calculates the pause time based on the queue length (Queue length) of the outbound priority queue 0 of the port 23b and the traffic of the outbound priority queue 0 of the port 23b; and performs timing based on the calculated pause time of the outbound priority queue 0.

[0035] The network device 23 schedules the Ethernet data message 201 buffered in the priority queue 0 of the outgoing direction of the port 23b, and sends the Ethernet data message 201 with the ECN mark through the port 23b.

[0036] The network device 24 receives the Ethernet data message 201 with the ECN mark through the port 24a; obtains the source IP address from the IP header of the Ethernet data message 201, and generates the ECN notification message 203; wherein the destination IP address is the source IP address of the Ethernet data message 201, and the destination IP address is the MAC address of the network device 23 of the next hop to the destination IP address (the present disclosure takes the network device 23 as the next hop to the message sending end as an example, but is not limited to this). The network device 24 sends the ECN notification message 203 through the port 24a.

[0037] Network device 23 receives ECN notification message 203, performs Layer 2 forwarding according to the destination MAC address, and sends it through port 23a; or finds the next hop as network device 22 based on the destination IP address, re-encapsulates the next hop MAC address as the MAC address of network device 22, and sends it through port 23a.

[0038] Network device 22 receives ECN notification message 203, performs Layer 2 forwarding according to the destination MAC address, and sends it through port 22a; or finds the next hop as network device 21 based on the destination IP address, re-encapsulates the next hop MAC address as the MAC address of network device 21, and sends it through port 22a.

[0039] Network device 21 receives ECN notification message 203 and reduces the message sending rate. Network device 21 transmits the message to the network device 21 through port 21b ( Figure 2 The network device may also send Ethernet data packets 204 and 205 through port 21b (not shown) before receiving the ECN notification message 203. Figure 2 (not shown) sends Ethernet datagrams 204, 205, the present disclosure Figure 2 It is only for illustration and does not limit the protection scope of the present disclosure.

[0040] Network device 22 receives Ethernet data packets 204 and 205 through port 22a, determines the egress port as 22b based on the destination MAC address, and schedules the Ethernet data packets 204 and 205 to the corresponding egress priority queue 7 cache of egress port 22b based on the message priority. The Ethernet data packets in the egress priority queue 7 cache of egress port 22b are not scheduled to be sent through egress port 22b.

[0041] The network device 23, when the pause time of the outbound priority queue 0 of the timing port 23b arrives, generates a back pressure stop notification message 204 and sends it through the port 23a. The present disclosure, through the linkage of ECN and PFC, dynamically calculates the pause time based on the queue length and message flow of the outbound priority queue of the port, and avoids the excessive number of caches of the outbound priority queue 7 of the port 22b of the network device 22, and continues to perform back pressure upward step by step.

[0042] The network device 22 receives the back pressure stop notification message 204, schedules the Ethernet data messages 204 and 205 buffered in the outgoing priority queue 7 of the port 22b, and sends them to the network device 23 through the port 22b.

[0043] The network device 23 receives the Ethernet data packets 204 and 205 through the port 23a, searches for the egress port 23b corresponding to the destination MAC address, identifies that the message priorities of the Ethernet data packets 204 and 205 correspond to the egress priority queue 7 of the egress port 23b, and schedules the Ethernet data packets 204 and 205 to be cached in the egress priority queue 7 of the egress port 23b. The network device 23 schedules the Ethernet data packets 204 and 205 cached in the egress priority queue 7 of the egress port 23b, and sends them to the network device 24 through the port 23b.

[0044] Figure 2 The beneficial effect is that it will realize the linkage between priority-based flow control technology and explicit congestion notification. While notifying the source end to reduce the message sending rate, it will inhibit the upstream device from stopping sending Ethernet data messages of a certain priority level, absorb passing messages through the communication equipment on the forwarding path, and send the Ethernet data messages cached in the outbound direction to the downstream device.

[0045] Figure 3 A schematic diagram of a second embodiment of the upstream and downstream linked network congestion control provided by the present disclosure; Figure 3 In the figure, network device 31 is the message sending end; network device 34 is the message receiving end; network devices 32 and 23 are message forwarding devices on the message forwarding path.

[0046] The network device 32 sets a priority queue mapping table to record the port 32b ( Figure 3 The inbound priority queue 7 of the port 32a connected to the network device 31 is mapped to the outbound priority queue 0 (not shown); based on the marking probability slope and queue length of the specified outbound priority queue 0, the congestion notification maximum value of the specified outbound priority queue 0 is set equal to the congestion notification minimum value.

[0047] The network device 33 sets a priority queue mapping table to record the port 33b ( Figure 3 The inbound priority queue 7 of the port 33a connected to the network device 32 is mapped to the outbound priority queue 0 (not shown); based on the marking probability slope and queue length of the specified outbound priority queue 0, the congestion notification maximum value of the specified outbound priority queue 0 is set equal to the congestion notification minimum value.

[0048] Network device 31 sends Ethernet data packet 301 and forwards it based on the egress port corresponding to the destination MAC address of Ethernet data packet 301; network device 32 receives Ethernet data packet 301 through port 32a, searches for the egress port 32b corresponding to the destination MAC address, and forwards it to network device 33.

[0049] The network device 33 receives the Ethernet data packet 301 through the port 33a, searches for the egress port 33b corresponding to the destination MAC address, identifies that the message priority of the Ethernet data packet 301 corresponds to the egress priority queue 0 of the egress port 33b, and schedules the Ethernet data packet 301 to be cached in the egress priority queue 0 of the egress port 33b.

[0050] The network device 33 determines that the number of buffered packets in the outbound priority queue 0 of the outbound port 33b has exceeded the minimum congestion notification value, and sets the ECN field of the IP header of the buffered Ethernet data packet 301 to 11, ie, the congestion indicator, based on the marking probability.

[0051] The network device 33 searches for the mapping of the outbound priority queue 0 of the outbound port 33b to the inbound priority queue 7 of the inbound port 33a based on the priority queue mapping relationship table;

[0052] The network device 33 generates a back pressure notification message 302 carrying the priority identifier corresponding to the mapped inbound priority queue 7 found, and sends it through the port 33a.

[0053] The network device 33 obtains the source IP address from the IP header of the marked Ethernet data message 301, and generates an ECN notification message 303; wherein the destination IP address is the source IP address of the Ethernet data message 301, and the destination IP address is the MAC address of the network device 32 of the next hop to the destination IP address (the present disclosure takes the network device 33 as the next hop to the message sending end as an example, but is not limited to this). The network device 33 sends through port 33a.

[0054] The network device 32 receives the back pressure notification message 302 through the port 32b, and stops the Ethernet data messages buffered in the priority queue 7 in the outgoing direction of the port 32b, and absorbs the passing data messages.

[0055] The network device 32 receives the ECN notification message 303, finds the port 33a to send according to the destination MAC, and sends it through the port 33a.

[0056] The network device 31 receives the ECN notification message 303 and performs the first transmission speed reduction.

[0057] The network device 33 calculates the pause time based on the queue length (Queue length) of the outbound priority queue 0 of the port 33b and the traffic of the outbound priority queue 0 of the port 33b; and performs timing based on the calculated pause time of the outbound priority queue 0.

[0058] The network device 33 schedules the Ethernet data message 301 buffered in the priority queue 0 of the outgoing direction of the port 33b, and sends the Ethernet data message 301 with the ECN mark through the port 33b.

[0059] The network device 34 receives the Ethernet data message 301 with the ECN mark through the port 34a; obtains the source IP address from the IP header of the Ethernet data message 301, generates the ECN notification message 304, and sends the ECN notification message 304 through the port 34a.

[0060] The network device 33 receives the ECN notification message 304, finds the port 33a according to the destination MAC address, and sends it through the port 33a.

[0061] The network device 32 receives the ECN notification message 304, finds the port 32a to send according to the destination MAC address, and sends it through the port 32a.

[0062] Network device 31 receives ECN notification message 304 and reduces the message sending rate for the second time. Network device 31 sends Ethernet data messages 305 and 306 through port 31b. Network device 31 may also reduce the message sending rate through port 31b before receiving ECN notification message 303. Figure 3 (not shown) sends Ethernet datagrams 304, 305, the present disclosure Figure 3 It is only for illustration and does not limit the protection scope of the present disclosure.

[0063] Network device 32 receives Ethernet data packets 305 and 306 through port 32a, determines that the egress port is 22b based on the destination MAC address, and schedules the Ethernet data packets 305 and 306 to the corresponding egress priority queue 7 cache of egress port 32b based on the message priority. The Ethernet data packets in the egress priority queue 7 cache of egress port 32b are not scheduled to be sent through egress port 32b.

[0064] The network device 33 times the pause time of the priority queue 0 in the outgoing direction of the port 33b, generates a back pressure stop notification message 307, and sends it through the port 33a.

[0065] The network device 32 receives the back pressure stop notification message 307, schedules the Ethernet data messages 305 and 306 buffered in the outgoing priority queue 7 of the port 32b, and sends them to the network device 33 through the port 32b.

[0066] The network device 33 receives the Ethernet data packets 305 and 306 through the port 33a, searches for the egress port 33b corresponding to the destination MAC address, identifies that the message priorities of the Ethernet data packets 305 and 306 correspond to the egress priority queue 7 of the egress port 33b, and schedules the Ethernet data packets 305 and 306 to be cached in the egress priority queue 7 of the egress port 33b. The network device 33 schedules the Ethernet data packets 305 and 306 cached in the egress priority queue 7 of the egress port 33b, and sends them to the network device 34 through the port 33b.

[0067] Figure 3 The beneficial effect of the illustrated embodiment is that it realizes the linkage between priority-based flow control technology and explicit congestion notification, notifies the source end multiple times in a step-by-step manner to reduce the message sending rate, and inhibits the upstream device from reducing the sending rate, reduces the sending of Ethernet data messages of a certain priority, absorbs passing messages through the communication equipment on the forwarding path, and sends the Ethernet data messages cached in the outbound direction to the downstream device.

[0068] Figure 2 , Figure 3 In the embodiment, by setting the marking probability slope of the outbound priority queue of the port to a high slope, the low threshold and the high threshold of the outbound priority queue of the port are close to or equal to each other, thereby simplifying the setting of the ECN threshold. When the network device receives the back pressure notification message from the downstream device, it does not suppress the forwarding of other priority messages.

[0069] Figure 4 The flowchart of the network congestion control method embodiment provided by the present disclosure. The device 40 includes: a network interface 41, a CPU 42, a memory 43 and a switching chip 44. The switching chip 44 includes at least a queue management module 441 and a sending module 442. The processor 43 executes the setting module 431 by running the processor executable instructions in the memory 44.

[0070] A setting module 431 is used to set a priority queue mapping relationship table to record the mapping of the designated outbound priority queue of the first port connected to the upstream device to the inbound priority queue of the second port connected to the downstream device; based on the marking probability slope and queue length of the designated outbound priority queue, a maximum congestion notification value and a minimum congestion notification value of the designated outbound priority queue are set;

[0071] The queue management module 441 sets a display congestion notification flag for the cached Ethernet data message of the designated outgoing priority queue based on the maximum congestion notification value and the minimum congestion notification value, and searches for a mapped ingoing priority queue based on the priority queue mapping relationship table;

[0072] The sending module 442 sends an Ethernet data message with a congestion notification indicator through the first port; sends a back pressure notification message through the second port; wherein the back pressure notification message carries a priority indicator corresponding to the mapped inbound priority queue found.

[0073] The queue management module 441 obtains the source IP address of the cached Ethernet data message with the display congestion notification flag set; generates a display congestion notification message; the destination IP address of the generated display congestion notification message is the obtained source IP address;

[0074] The sending module 442 sends the generated explicit congestion notification message through the second port.

[0075] The queue management module 441 is further used to calculate the pause time based on the queue length of the specified outgoing priority queue and the flow of the specified outgoing priority queue; to time based on the calculated pause time; to time based on the calculated pause time; and to generate a back pressure stop notification message when the pause time is reached;

[0076] The sending module 442 is further configured to send a back pressure stop notification message through the second port.

[0077] The setting module 431 sets the maximum value of the congestion notification close to the minimum value of the congestion notification based on the marking probability slope of the priority queue in the outgoing direction being designated as a high marking probability slope;

[0078] The queue management module 441 determines that the number of cached Ethernet data packets of the designated outgoing priority queue is greater than the minimum congestion notification value, and sets a display congestion notification flag for the cached Ethernet data packets of the designated outgoing priority queue according to the marking probability; determines that the number of cached Ethernet data packets of the designated outgoing priority queue is greater than the maximum congestion notification value, and sets a display congestion notification flag for each cached Ethernet data packet of the designated outgoing priority queue.

[0079] The setting module 431 sets the maximum value of the congestion notification equal to the minimum value of the congestion notification based on specifying the marking probability slope of the outgoing priority queue as a high marking probability slope.

[0080] The queue management module 441 determines that the number of buffered Ethernet data packets in the designated outgoing priority queue is greater than the minimum congestion notification value, and sets a display congestion notification flag for each buffered Ethernet data packet in the designated outgoing priority queue.

[0081] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

1. A network congestion control method, characterized in that: The method comprises: A priority queue mapping relationship table is set to record the mapping of the specified outbound priority queue of the first port to the inbound priority queue of the second port; wherein the first port and the second port reach the downstream device of the destination device and the upstream device of the source device respectively; Based on the marking probability slope and queue length of the designated outbound priority queue, setting the maximum congestion notification value and the minimum congestion notification value of the designated outbound priority queue; Based on the maximum congestion notification value and the minimum congestion notification value, setting a display congestion notification flag for the cached Ethernet data message of the designated outgoing priority queue; Searching for a mapped inbound priority queue based on the priority queue mapping relationship table; A back pressure notification message is sent through the second port; wherein the back pressure notification message carries a priority identifier corresponding to the mapped inbound priority queue that is searched.

2. The method according to claim 1, characterized in that: The method further comprises, Get the source IP address of the cached Ethernet datagram with the congestion notification flag set; Generate a congestion notification message; the destination IP address of the generated congestion notification message is the obtained source IP address; The generated explicit congestion notification message is sent through the second port.

3. The method according to claim 1 or 2, characterized in that: The method further comprises, The pause time is calculated based on the queue length of the specified outbound priority queue and the flow of the specified outbound priority queue; timing based on the calculated pause time; When the pause time is reached, a back pressure stop notification message is generated; The back pressure stop notification message is sent through the second port.

4. The method according to claim 3, characterized in that: The marking probability slope of the designated outbound priority queue is a high marking probability slope, and the maximum congestion notification value is close to the minimum congestion notification value; The step of setting a display congestion notification flag for the cached Ethernet data message of the designated outgoing priority queue based on the maximum congestion notification value and the minimum congestion notification value includes: The number of cached Ethernet data packets of the designated outbound priority queue is greater than the minimum congestion notification value, and a display congestion notification mark is set for the cached Ethernet data packets of the designated outbound priority queue according to the marking probability; The number of buffered Ethernet data packets in the designated outbound priority queue is greater than the maximum congestion notification value, and a display congestion notification flag is set for each buffered Ethernet data packet in the designated outbound priority queue.

5. The method according to claim 3, characterized in that: The marking probability slope of the designated outbound priority queue is a high marking probability slope, and the congestion notification maximum value is equal to the congestion notification minimum value; The step of setting a display congestion notification flag for the cached Ethernet data message of the designated outgoing priority queue based on the maximum congestion notification value and the minimum congestion notification value includes: The number of buffered Ethernet data packets in the designated outbound priority queue is greater than the minimum congestion notification value, and a display congestion notification flag is set for each buffered Ethernet data packet in the designated outbound priority queue.

6. A network congestion control device, characterized in that: The device comprises: A setting module is used to set a priority queue mapping relationship table to record the mapping of the designated outbound priority queue of the first port connected to the upstream device to the inbound priority queue of the second port connected to the downstream device; based on the marking probability slope and queue length of the designated outbound priority queue, set the maximum congestion notification value and the minimum congestion notification value of the designated outbound priority queue; A queue management module, based on the maximum congestion notification value and the minimum congestion notification value, sets a display congestion notification flag for the cached Ethernet data message of the specified outgoing priority queue, and searches for a mapped ingoing priority queue based on the priority queue mapping relationship table; A sending module sends a back pressure notification message through the second port; wherein the back pressure notification message carries a priority identifier corresponding to the mapped inbound priority queue that is searched.

7. The device according to claim 6, characterized in that The queue management module obtains the source IP address of the cached Ethernet data message with the display congestion notification flag set; generates a display congestion notification message; the destination IP address of the generated display congestion notification message is the obtained source IP address; The sending module sends the generated explicit congestion notification message through the second port.

8. The device according to claim 6 or 7, characterized in that The queue management module is further used to calculate the pause time based on the queue length of the designated outgoing priority queue and the flow of the designated outgoing priority queue; to time based on the calculated pause time; to time based on the calculated pause time; When the pause time is reached, a back pressure stop notification message is generated; The sending module is further used to send the back pressure stop notification message through the second port.

9. The device according to claim 6, characterized in that The marking probability slope of the designated outbound priority queue is a high marking probability slope, and the maximum congestion notification value is close to the minimum congestion notification value; The queue management module determines that the number of cached Ethernet data packets of the designated outgoing priority queue is greater than the minimum congestion notification value, and sets a display congestion notification flag for the cached Ethernet data packets of the designated outgoing priority queue according to the marking probability; It is determined that the number of buffered Ethernet data packets in the designated outbound priority queue is greater than the maximum congestion notification value, and a display congestion notification flag is set for each buffered Ethernet data packet in the designated outbound priority queue.

10. The device according to claim 6, characterized in that The marking probability slope of the designated outbound priority queue is a high marking probability slope, and the congestion notification maximum value is equal to the congestion notification minimum value; The queue management module determines that the number of buffered Ethernet data packets in the designated outbound priority queue is greater than the congestion notification minimum value, and sets a display congestion notification flag for each buffered Ethernet data packet in the designated outbound priority queue.