Congestion control method, device, equipment, medium and program product

By adopting a differentiated congestion control strategy in the data center network, giving priority to internal traffic and inserting external traffic packets, the problem of performance degradation caused by the undifferentiated congestion control of internal and external traffic by routing and switching equipment in the DCN is solved, and the control of internal and external traffic is realized. Effective optimization of DCN internal traffic.

CN118540272APending Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310202979.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When the routing and switching equipment in the data center network (DCN) is congested, it adopts an undifferentiated congestion control method for internal and external traffic packets, which leads to the degradation of DCN internal traffic transmission performance, the external traffic transmission performance is not effectively optimized, and the internal traffic burden Major congestion pressure.

Method used

A differentiated congestion control strategy is adopted to prioritize internal traffic in the data center network. By inserting external traffic packets into the packet buffer queue, the packet loss rate of internal traffic is reduced and the transmission performance of internal traffic in the DCN is improved.

Benefits of technology

It effectively reduces the packet loss rate of DCN internal traffic, optimizes internal traffic transmission performance, and improves the overall transmission efficiency of the data center network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540272A
    Figure CN118540272A
Patent Text Reader

Abstract

The invention provides a congestion control method, device and equipment, a medium and a program product. The method comprises the following steps: receiving a first flow message sent by a first sending end in a data center network; if the message buffering queue is congested and the first flow message is an external flow message of the data center network, or if the message buffering queue is congested and the first flow message is an internal flow message of the data center network and the external flow message of the data center network does not exist in the message buffering queue, the first flow message is the internal flow message of the data center network; if so, discarding the first traffic message; and if the message buffering queue is congested, the first flow message is the internal flow message of the data center network, and the external flow message of the data center network exists in the message buffering queue, discarding the second flow message in the message buffering queue, and inserting the first flow message into the message buffering queue. The packet loss of the traffic in the DCN is reduced, so that the traffic transmission performance in the DCN is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of cloud technology, and in particular to a congestion control method, apparatus, device, medium and program product. Background Art

[0002] Data Center Network (DCN) is an important foundation for building cloud service technology, and an important condition for improving customer service experience and enhancing corporate competitiveness. DCN is usually composed of multiple servers connected through a network. The communication between these servers is achieved through the routing and switching equipment inside the DCN. Low latency, high throughput, and packet loss sensitivity are typical characteristics of DCN internal communication; at the same time, the servers inside the DCN will also provide services directly to customers through the internal network and the external wide area network (WAN). For example, the servers inside the DCN can respond to client requests and send traffic packets to the client. In this case, high latency, low throughput, and relatively insensitive to packet loss are important characteristics of cross-WAN communication.

[0003] The traffic message sent from the sender inside the DCN to the receiver inside the DCN can be called the internal traffic message of the DCN. The traffic message sent from the sender inside the DCN to the receiver inside the WAN can be called the external traffic message of the DCN. At present, when the routing switching equipment in the DCN has message congestion, it adopts the same congestion control method for internal traffic messages and external traffic messages, that is, it discards internal traffic messages and external traffic messages indiscriminately. When the routing switching equipment adopts the same congestion control method, due to the small internal communication delay of the DCN, the receiver of the internal traffic message can quickly send a message confirmation message to the sender to confirm whether the traffic message is received. At this time, the sender quickly adjusts the sending window for the internal traffic to relieve the congestion pressure of the routing switching equipment. However, due to the increased communication delay from DCN to WAN, the receiver of the external traffic message may not have received the message confirmation message. Based on this, the sender does not adopt a congestion control strategy for external traffic, which will cause the congestion to be mainly borne by the DCN internal traffic, affecting the performance of DCN internal traffic transmission. Summary of the invention

[0004] The present application provides a congestion control method, device, equipment, medium and program product to reduce the packet loss of DCN internal traffic, thereby optimizing the DCN internal traffic transmission performance.

[0005] In a first aspect, an embodiment of the present application provides a congestion control method, which is applied to a routing switching device in a data center network, and the method includes: receiving a first flow message sent by a first sending end in the data center network; if there is congestion in the message buffer queue, and the first flow message is an external flow message of the data center network, or if there is congestion in the message buffer queue, and the first flow message is an internal flow message of the data center network, and there is no external flow message of the data center network in the message buffer queue, then discarding the first flow message; if there is congestion in the message buffer queue, and the first flow message is an internal flow message of the data center network, and there is an external flow message of the data center network in the message buffer queue, then discarding the second flow message in the message buffer queue, and inserting the first flow message into the message buffer queue; wherein, the second flow message is an external flow message of the data center network in the message buffer queue.

[0006] In the second aspect, an embodiment of the present application provides a congestion control device, which is located inside a data center network, and includes: a transceiver module and a processing module. The transceiver module is used to receive a first flow message sent by a first sending end in the data center network; the processing module is used to: if there is congestion in the message buffer queue, and the first flow message is an external flow message of the data center network, or if there is congestion in the message buffer queue, and the first flow message is an internal flow message of the data center network, and there is no external flow message of the data center network in the message buffer queue, then discard the first flow message; if there is congestion in the message buffer queue, and the first flow message is an internal flow message of the data center network, and there is an external flow message of the data center network in the message buffer queue, then discard the second flow message in the message buffer queue, and insert the first flow message into the message buffer queue; wherein, the second flow message is an external flow message of the data center network in the message buffer queue.

[0007] In a third aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute a method as in the first aspect or its various implementations.

[0008] In a fourth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute the method in the first aspect or its various implementations.

[0009] In a fifth aspect, an embodiment of the present application provides a computer program, which enables a computer to execute the method in the first aspect or its various implementations.

[0010] Through the technical solution provided in the embodiments of the present application, differentiated congestion control strategies can be adopted for internal traffic packets and external traffic packets, that is, when the message buffer queue of the routing switching device is congested, the priority of the DCN internal traffic is guaranteed to be higher than the priority of the external traffic across the WAN, and the high-priority DCN internal traffic is supported to borrow the external traffic across the WAN to reduce the packet loss of the DCN internal traffic, thereby optimizing the DCN internal traffic transmission performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 It is a schematic diagram of DCN internal communication and WAN external communication;

[0013] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0014] Figure 3 A flowchart of a congestion control method provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of a message buffer queue provided in an embodiment of the present application;

[0016] Figure 5 A flowchart of another congestion control method provided in an embodiment of the present application;

[0017] Figure 6 A schematic diagram of a congestion control device 600 provided in an embodiment of the present application;

[0018] Figure 7 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0021] Before introducing the technical solution of the present application, the professional terms involved in the technical solution of the present application will be explained below:

[0022] 1. Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.

[0023] 2. DCN is an important foundation for building cloud service technology and an important condition for improving customer service experience and enhancing enterprise competitiveness. DCN is usually composed of multiple servers connected by a network. The communication between these servers is achieved through the routing and switching equipment inside the DCN. Low latency, high throughput, and packet loss sensitivity are typical characteristics of DCN internal communication.

[0024] 3. WAN, also known as extranet or public network, is a long-distance network that connects computer communications in local area networks or metropolitan area networks in different regions. It mainly uses packet switching technology and is different from the Internet.

[0025] 4. Internal traffic messages: traffic messages sent from the sender inside the DCN to the receiver inside the DCN.

[0026] 5. External traffic messages are traffic messages sent from the sender inside the DCN to the receiver inside the WAN.

[0027] 6. Send window refers to the number of traffic packets that the sender can send at one time.

[0028] The technical problems and inventive concepts to be solved by this application are described below:

[0029] At present, when the routing switching equipment in the DCN is congested, it adopts the same congestion control method for internal traffic messages and external traffic messages. In order to better understand the different effects of packet loss in the DCN on the transmission of internal DCN (i.e., the traffic from the sender in the DCN to the receiver in the DCN) and external WAN traffic (i.e., the traffic from the sender in the DCN to the receiver in the WAN), the following is combined with Figure 1 To explain it:

[0030] Figure 1 The diagram is a schematic diagram of DCN internal communication and WAN external communication. Figure 1 As shown, the DCN server (such as the sending end 1 and 2) can be through the routing switching device inside the DCN, that is, Figure 1 R1 in the figure sends traffic packets to the servers (receiving ends 1 and 2) inside the DCN, and can also send traffic packets to the clients (such as receiving ends 3 and 4) inside the WAN through the routing switching devices inside the DCN and the routing switching devices inside the WAN. Figure 1 Different connections are marked with different numbers, and one connection corresponds to one sending window. In this process, after receiving the traffic from the senders 1 and 2, the receivers 1 and 2 in the DCN can send these traffic packets to other user terminals. Assume that the communication delay within the DCN is less than 10 milliseconds (ms); and the communication delay from the DCN to the WAN is 50ms to 200ms. In this case, if the routing switching device R1 is congested and packet loss occurs, on the one hand, the senders 1 and 2 will quickly respond to the internal traffic of the DCN, such as reducing the sending window, thereby alleviating the congestion at R1; on the other hand, due to the large communication delay, the senders 1 and 2 fail to receive the message confirmation messages from the receivers 3 and 4 in the WAN in time for the external traffic of the WAN. Based on this, the sender will not perform congestion control on the external traffic sent to the receivers 3 and 4. This results in a decrease in the traffic transmission performance within the DCN, while the traffic transmission performance outside the WAN is not effectively reduced. Instead, the sender mistakenly believes that there is no packet loss in the external traffic, and thus increases the external traffic transmission, which causes the congestion to be mainly borne by the DCN internal traffic, affecting the performance of the DCN internal traffic transmission.

[0031] In order to solve the above technical problems, the present application proposes that differentiated congestion control strategies can be adopted for internal traffic messages and external traffic messages, that is, the priority of internal traffic messages is increased to reduce the packet loss of DCN internal traffic, thereby optimizing the DCN internal traffic transmission performance.

[0032] Figure 2 A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 2 As shown, each server 210 in the DCN is connected through a network formed by multiple routing switching devices, and these servers 210 can communicate with each other in the DCN through these routing switching devices, wherein the communication between any two servers 210 in the DCN must be realized through the routing switching device 220. In addition, the server 210 in the DCN can also communicate with the client 230 in the WAN through the routing switching device 220 and the routing switching device in the WAN.

[0033] In some possible implementations, server 210 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0034] In some implementations, the routing and switching device 220 may be a router, a switch, etc., but is not limited thereto.

[0035] In some implementations, the client 230 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.

[0036] It should be understood that Figure 2 Three servers and one client are shown exemplarily. Optionally, the application scenario may include other numbers of servers and clients, which is not limited in the embodiments of the present application. Each server may be connected to at least one client to send a flow message to the corresponding client through the connection. In other words, each server may serve as a sender of a flow message or as a receiver of a flow message, and each client may serve as a receiver of a flow message.

[0037] The technical solution of this application will be described in detail below:

[0038] Figure 3A flowchart of a congestion control method provided in an embodiment of the present application, the method is applied to a routing switching device in a data center network, for example, Figure 2 The routing switching device 220 in Figure 3 As shown, the method may include:

[0039] S301: The routing switching device receives a first traffic message sent by a first sending end in a data center network;

[0040] S302: The routing switching device detects whether the message buffer queue is congested; if the message buffer queue is not congested, S303 is executed; if the message buffer queue is congested, S304 is executed;

[0041] S303: The routing switching device forwards the first traffic message normally;

[0042] S304: The routing switching device detects whether the first flow message is an internal flow message of the data center network; if the first flow message is an internal flow message of the data center network, execute S305; if the first flow message is not an internal flow message of the data center network, that is, the first flow message is an external flow message of the data center network, execute S308;

[0043] S305: The routing switching device detects whether there is an external traffic message of the data center network in the message buffer queue; if there is an external traffic message of the data center network in the message buffer queue, execute S306; if there is no external traffic message of the data center network in the message buffer queue, execute S308;

[0044] S306: The routing switching device discards the second flow message in the message buffer queue, wherein the second flow message is an external flow message of the data center network in the message buffer queue;

[0045] S307: The routing switching device inserts the first traffic message into the message buffer queue;

[0046] S308: The routing switching device discards the first traffic message.

[0047] The following is a detailed description of S301:

[0048] Assume that the receiving end of the first traffic message is called the first receiving end. In order to facilitate understanding of the first sending end and the first receiving end, Figure 2 The application scenario shown illustrates these two devices: For example, in Figure 2 In the application scenario shown, the first sending end may be Figure 2 Any server 210 in the example, the receiving end of the first traffic message may be Figure 2Another server 210 different from the first sending end, or Figure 2 Any client 230 in .

[0049] The first sending end may send the first traffic message in a passive sending mode and an active sending mode, but is not limited thereto:

[0050] In some possible implementations, the first receiving end may first send a flow request message to the first sending end, based on which the first sending end responds to the flow request message to send a first flow message to the first receiving end.

[0051] In some other possible implementations, the first receiving end may actively send the first traffic message to the first sending end.

[0052] In some implementations, the first traffic message includes at least one of the following: an Internet Protocol (IP) address and port number of a first sending end, an IP address and port number of a first receiving end, other data information, etc.

[0053] It should be understood that in the embodiment of the present application, the traffic message may also be referred to as a message, and the message may be a message of any form and any content, and the embodiment of the present application does not impose any limitation on this.

[0054] The following is a detailed description of S302:

[0055] The routing switching device can detect whether the message buffer queue is congested in the following achievable ways, but is not limited to these:

[0056] In some implementations, the routing switching device may detect whether the message buffer queue is fully loaded. If the message buffer queue is fully loaded, it indicates that the message buffer queue is congested. If the message buffer queue is not fully loaded, it indicates that the message buffer queue is not congested.

[0057] For example, assuming that the message buffer queue can carry a maximum of 20 traffic messages, when the routing switching device detects that the current message buffer queue has carried 20 traffic messages, it means that the message buffer queue is congested. If the message buffer queue is less than 20 traffic messages, it means that the message buffer queue is not congested.

[0058] In other possible implementations, the routing switching device can detect whether the carrying capacity in the message buffer queue reaches the preset carrying capacity. If the carrying capacity in the message buffer queue reaches the preset carrying capacity, it indicates that there is congestion in the message buffer queue. If the carrying capacity in the message buffer queue does not reach the preset carrying capacity, it indicates that there is no congestion in the message buffer queue.

[0059] In some possible implementations, the carrying capacity in the message buffer queue can be the ratio between the number of traffic messages currently carried in the message buffer queue and the maximum carrying capacity of the message buffer queue, or it can be the number of traffic messages currently carried in the message buffer queue; accordingly, the preset carrying capacity can be a preset ratio, or it can be a preset number of traffic messages.

[0060] In some possible implementations, the value of the preset load capacity can be 80%, 85%, 90%, 95%, etc., or the value of the preset load capacity can be 18, 19, etc. In short, if the load capacity in the message buffer queue reaches the preset load capacity, it means that the message buffer queue is about to be full.

[0061] For example, assuming that the message buffer queue can carry a maximum of 20 traffic messages, and the number of traffic messages currently carried in the message buffer queue is 10, and assuming that the preset carrying capacity is 80%, since 10 / 20<80%, it means that there is no congestion in the message buffer queue.

[0062] For example, assuming that the message buffer queue can carry a maximum of 20 traffic messages, and the number of traffic messages currently carried in the message buffer queue is 19, and assuming that the preset carrying capacity is 18, since 19>18, it means that the message buffer queue is congested.

[0063] The following is a detailed description of S304:

[0064] The routing switching device may detect whether the first traffic message is an internal traffic message of the data center network in the following achievable manner, but is not limited thereto:

[0065] In a first achievable method, the routing switching device detects whether the first traffic packet carries a fourth identifier for identifying that the first traffic packet is an internal traffic packet of the data center network, so as to detect whether the first traffic packet is an internal traffic packet of the data center network.

[0066] It should be understood that the premise of implementing method 1 is that any flow message may carry the fourth identifier used to identify that the first flow message is an internal flow message of the data center network, or may not carry the fourth identifier. Based on this, if the first flow message carries the fourth identifier, it means that the first flow message is an internal flow message of the data center network. If the first flow message does not carry the fourth identifier, it means that the first flow message is not an internal flow message of the data center network, that is, the first flow message is an external flow message of the data center network.

[0067] In some implementations, for any traffic message, a bit can be set for the fourth identifier, the length of the bit can be 1 bit (bit), and can be located in the extension field of the traffic message header. When the bit is not empty, it means that it carries the fourth identifier, and when the bit is empty, it means that it does not carry the fourth identifier.

[0068] In a second implementation method, the routing switching device detects the value of the fifth identifier in the first traffic message; and based on the value of the fifth identifier, detects whether the first traffic message is an internal traffic message of the data center network.

[0069] In some implementations, for any traffic message, a bit may be set for the fifth identifier, the length of the bit may be 1 bit, and the bit may be located in an extension field of the traffic message header.

[0070] In some possible implementations, if the value of the fifth identifier in the first traffic message is 1, it indicates that the first traffic message is an internal traffic message of the data center network; if the value of the fifth identifier in the first traffic message is 0, it indicates that the first traffic message is not an internal traffic message of the data center network, that is, the first traffic message is an external traffic message of the data center network.

[0071] In other possible implementations, if the value of the fifth identifier in the first traffic message is 0, it indicates that the first traffic message is an internal traffic message of the data center network; if the value of the fifth identifier in the first traffic message is 1, it indicates that the first traffic message is not an internal traffic message of the data center network, that is, the first traffic message is an external traffic message of the data center network.

[0072] A third achievable method is that the routing switching device detects whether the first traffic packet carries a sixth identifier for identifying that the first traffic packet is an external traffic packet of the data center network, so as to detect whether the first traffic packet is an external traffic packet of the data center network, and further determine whether the first traffic packet is an internal traffic packet of the data center network.

[0073] It should be understood that the premise of implementing the third method is that any flow message may carry the sixth identifier used to identify that the first flow message is an external flow message of the data center network, or may not carry the sixth identifier. Based on this, if the first flow message carries the sixth identifier, it means that the first flow message is an external flow message of the data center network. If the first flow message does not carry the sixth identifier, it means that the first flow message is not an external flow message of the data center network, that is, the first flow message is an internal flow message of the data center network.

[0074] In some implementations, for any traffic message, a bit can be set for the sixth identifier, the length of the bit can be 1 bit, and can be located in the extension field of the traffic message header. When the bit is not empty, it means that it carries the sixth identifier, and when the bit is empty, it means that it does not carry the sixth identifier.

[0075] The fourth implementation method is that the routing switching device detects the value of the seventh identifier in the first traffic message; and based on the value of the seventh identifier, detects whether the first traffic message is an external traffic message of the data center network, and further determines whether the first traffic message is an internal traffic message of the data center network.

[0076] In some implementations, for any traffic message, a bit may be set for the seventh identifier, the length of the bit may be 1 bit, and the bit may be located in an extension field of the traffic message header.

[0077] In some possible implementations, if the value of the seventh identifier in the first traffic message is 1, it indicates that the first traffic message is an external traffic message of the data center network; if the value of the seventh identifier in the first traffic message is 0, it indicates that the first traffic message is not an external traffic message of the data center network, that is, the first traffic message is an internal traffic message of the data center network.

[0078] In other possible implementations, if the value of the seventh identifier in the first traffic message is 0, it indicates that the first traffic message is an external traffic message of the data center network; if the value of the seventh identifier in the first traffic message is 1, it indicates that the first traffic message is not an external traffic message of the data center network, that is, the first traffic message is an internal traffic message of the data center network.

[0079] The following is a detailed description of S305:

[0080] The routing switching device can detect whether there are external traffic packets of the data center network in the packet buffer queue in the following ways, but not limited to these:

[0081] In some implementations, the routing switching device may scan each flow message in the message buffer queue and detect whether the scanned flow message is an external flow message of the data center network. The detection method of detecting whether the flow message is an external flow message of the data center network is similar to the detection method of detecting whether the flow message is an internal flow message of the data center network in S304, and the embodiments of the present application will not be repeated here.

[0082] In some implementations, the routing switching device may start scanning from the end of the message buffer queue until the head of the message buffer queue is scanned, but the scanning method of the routing switching device on the message buffer queue is not limited thereto.

[0083] The following is a detailed description of S306 and S307:

[0084] The routing switching device may determine the second traffic message in the following achievable manner, but is not limited thereto:

[0085] In a first implementation method, the routing switching device starts scanning from the end of the message buffer queue; and uses the first scanned external flow message of the data center network as the second flow message.

[0086] A second implementation method is that the routing switching device starts scanning from the head of the message buffer queue; the first scanned external traffic message of the data center network is used as the second traffic message, or the last scanned external traffic message of the data center network is used as the second traffic message.

[0087] In some implementations, after discarding the second traffic packet, the routing switching device may insert the first traffic packet into the tail of the packet buffer queue.

[0088] For example, Figure 4 A schematic diagram of a message buffer queue provided in an embodiment of the present application, such as Figure 4 As shown, the routing switching device starts scanning from the end of the message buffer queue. The first external traffic message of the data center network scanned is the traffic message pointed to by the downward arrow. At this time, the routing switching device can discard the traffic message and insert the internal traffic message to be inserted into the end of the message buffer queue.

[0089] The embodiment of the present application proposes that differentiated congestion control strategies can be adopted for internal traffic packets and external traffic packets, that is, when the message buffer queue of the routing switching device is congested, the priority of the DCN internal traffic is guaranteed to be higher than the priority of the external traffic across the WAN, and the high-priority DCN internal traffic is supported to borrow the external traffic across the WAN to reduce the packet loss of the DCN internal traffic, thereby optimizing the DCN internal traffic transmission performance.

[0090] It should be understood that when the message buffer queue of the routing switching device is congested, the receiving end can currently send a message confirmation message to the sending end to feedback whether the traffic message has been received. Furthermore, if the sending end confirms that the receiving end has not received the traffic message based on the message, that is, there is packet loss, then the sending end can adjust the congestion control strategy, such as adjusting the sending window, and retransmitting the lost packet. However, this feedback mechanism is slow, making it impossible for the sending end to adjust the congestion control strategy in time, or making the sending end's congestion response speed slow, or causing the sending end's packet loss repair speed to be slow, resulting in low resource utilization at the sending end, and then resulting in a low traffic transmission rate.

[0091] In order to solve this technical problem, the embodiment of the present application proposes a packet loss timely feedback mechanism, which will be described in detail below based on the previous embodiment:

[0092] like Figure 5 As shown, the above congestion control method also includes:

[0093] In some implementations, after S308: the routing switching device discards the first traffic message, the congestion control method further includes:

[0094] S309: The routing switching device sends a first congestion feedback message to the first sending end;

[0095] S310: The first sending end adjusts the sending window of the first sending end based on the first congestion message, and retransmits the lost packets of the first sending end.

[0096] It should be understood that the first congestion message is used by the first sending end to adjust the sending window of the first sending end and to retransmit the lost packets of the first sending end.

[0097] In some implementations, the first congestion feedback message includes at least one of the following, but is not limited thereto: a message type, a first identifier, a first value, and a first message number of the first congestion feedback message. The first identifier is used to identify whether there is a congestion packet loss situation; the first value is the number of packets lost by the first transmitting end within a first preset time length; and the first message number is the message number of packets lost by the first transmitting end within the first preset time length.

[0098] In some implementations, the message type of the first congestion feedback message may occupy 2 bits, but is not limited thereto. For example, the value of the message type field in the first congestion feedback message may be binary 00.

[0099] In some implementations, the first identifier may occupy 1 bit, but is not limited thereto.

[0100] In some implementations, when the value of the first identifier is 1, it indicates that congestion and packet loss exist; when the value of the first identifier is 0, it indicates that congestion and packet loss do not exist.

[0101] In some other possible implementations, when the value of the first identifier is 0, it indicates that congestion and packet loss exist; when the value of the first identifier is 1, it indicates that congestion and packet loss do not exist.

[0102] In some implementations, the routing switching device can count the packet loss of the first sending end within a period of time, such as within 10ms from the time when the first traffic message is received, and feedback the congestion packet loss to the first sending end through the first congestion feedback message. Based on this, the value of the first value can be an integer greater than or equal to 0.

[0103] In some implementations, the value of the first preset duration may be 10 ms, 20 ms, etc., but is not limited thereto.

[0104] In some implementations, the length of the first value is fixed, such as 8 bits, but not limited thereto. For example, the first value may be 00000011.

[0105] In other implementations, the length of the first value is variable. For example, if the first congestion feedback message carries both the first identifier and the first value, and the first identifier indicates that there is no congestion packet loss, the first value may occupy 1 bit and may be 0. If the first identifier indicates that there is congestion packet loss, the first value may occupy 8 bits and may be 00000011.

[0106] It should be understood that the number of the above-mentioned first message numbers is a first value.

[0107] In some implementations, the length of the first value of the first message numbers is fixed, for example, 80 bits. The length of each first message code may be fixed, for example, 16 bits.

[0108] In some implementations, the length of the first value number of first message numbers is variable. For example, if the first congestion feedback message carries the above-mentioned first identifier and the first value number of first message numbers at the same time, and the first identifier indicates that there is no congestion packet loss, then the first value number of first message numbers may occupy 1 bit, and the value may be 0. If the first identifier indicates that there is congestion packet loss, then the first value number of first message numbers may occupy the first value * 16 bits.

[0109] The first sending end may adjust the sending window of the first sending end in the following manner, but is not limited thereto:

[0110] In some implementations, the first sending end reduces the sending window of the first sending end to a first preset size.

[0111] It should be understood that, as described above, the routing switching device sends the first congestion feedback message to the first sending end after discarding the first traffic message. In other words, when the first sending end receives the first congestion feedback message, it indicates that there is a congestion packet loss situation. In this case, no matter what information the first congestion feedback message carries, the first sending end can reduce the sending window of the first sending end to the first preset size.

[0112] In some implementations, the first preset size may be half the size of the original sending window of the first sending end, but is not limited thereto. For example, assuming that the original sending window of the first sending end can send 10 traffic packets each time, the sending window adjusted by the first sending end can send 5 traffic packets each time.

[0113] In some implementable manners, if the first congestion feedback message includes the first message number, the message retransmitted by the first transmitting end is the message with the first message number. For example, the first congestion feedback message includes two first message numbers, 00000001 and 00000011. After receiving the first congestion feedback message, the first transmitting end can parse the two message numbers and retransmit the traffic messages corresponding to the two message numbers.

[0114] In some possible implementations, if the first congestion feedback message does not include the first message number, then after receiving the first congestion feedback message, the first sending end may send a request message to the routing switching device to request the first message number, and the routing switching device responds to the request message and sends the first message number to the first sending end.

[0115] In some implementations, S307: after the routing switching device inserts the first traffic message into the message buffer queue, the congestion control method further includes:

[0116] S311: The routing switching device sends a second congestion feedback message to the first sending end;

[0117] S312: The first sending end adjusts the sending window of the first sending end based on the second congestion feedback message, and transmits the traffic message to be transmitted.

[0118] It should be understood that the second congestion feedback message is used by the first sending end to adjust the sending window of the first sending end and transmit the traffic message to be transmitted.

[0119] In some implementations, the second congestion feedback message includes at least one of the following, but is not limited thereto: a message type, a second identifier, a second value, and a second message number of the second congestion feedback message. The second identifier is used to identify whether the connection between the first transmitter and the receiving end of the first traffic message borrows other connection transmission resources within the second preset time period; the second value is the number of messages transmitted by the connection between the first transmitter and the receiving end of the first traffic message borrowing other connection transmission resources within the second preset time period; the second message number is the message number of the message transmitted by the connection between the first transmitter and the receiving end of the first traffic message borrowing other connection transmission resources within the second preset time period.

[0120] It should be understood that in an embodiment of the present application, the process of deleting external traffic messages in the message buffer queue and inserting internal traffic messages can be referred to as the connection where the internal traffic message is located "borrowing" the transmission resources of the connection where the external traffic message is located.

[0121] Assume that the receiving end of the first traffic message is called the first receiving end.

[0122] In some implementations, the routing switching device may count whether the connection between the first transmitting end and the first receiving end uses other connection transmission resources within a period of time, such as within 10ms from the time when the first traffic message is received.

[0123] In some implementations, the message type of the second congestion feedback message may occupy 2 bits, but is not limited thereto. For example, the value of the message type field in the second congestion feedback message may be binary 10.

[0124] In some implementations, the second identifier may occupy 1 bit, but is not limited thereto.

[0125] In some possible implementations, when the value of the second identifier is 1, it indicates that the connection between the first transmitting end and the first receiving end borrows transmission resources from other connections within a second preset time period; when the value of the second identifier is 0, it indicates that the connection between the first transmitting end and the first receiving end does not borrow transmission resources from other connections within the second preset time period.

[0126] In other possible implementations, when the value of the second identifier is 0, it indicates that the connection between the first transmitting end and the first receiving end borrows transmission resources from other connections within the second preset time period; when the value of the second identifier is 1, it indicates that the connection between the first transmitting end and the first receiving end does not borrow transmission resources from other connections within the second preset time period.

[0127] In some implementations, the value of the second preset duration may be 10 ms, 20 ms, etc., but is not limited thereto.

[0128] In some implementations, the length of the second value is fixed, such as 8 bits, but is not limited thereto. For example, the second value may be 00000011, indicating that the connection between the first transmitting end and the first receiving end borrows other connection transmission resources within the second preset time length, and the number of messages transmitted by the first transmitting end is 3, where 3 is the binary value corresponding to 00000011.

[0129] In other possible implementations, the length of the second value is variable. For example, if the second congestion feedback message carries the second identifier and the second value at the same time, and the second identifier indicates that the connection between the first transmitting end and the first receiving end does not borrow transmission resources from other connections within the second preset duration, then the second value may occupy 1 bit and may be 0. If the second identifier indicates that the connection between the first transmitting end and the first receiving end borrows transmission resources from other connections within the second preset duration, then the second value may occupy 8 bits and may be 00000011.

[0130] It should be understood that the number of the second message numbers is a second value.

[0131] In some implementations, the length of the second value of the second message number is fixed, for example, 80 bits. The length of each second message code may be fixed, for example, 16 bits.

[0132] In some implementations, the length of the second value times the second message number is variable. For example, if the second congestion feedback message carries the above-mentioned second identifier and the second value times the second message number at the same time, and the second identifier indicates that the connection between the first transmitting end and the first receiving end does not borrow other connection transmission resources within the second preset time length, then the second value times the second message number can occupy 1 bit, and the value can be 0. If the second identifier indicates that the connection between the first transmitting end and the first receiving end borrows other connection transmission resources within the second preset time length, then the second value times the second message number can occupy the second value * 16 bits.

[0133] The first sending end may adjust the sending window of the first sending end in the following manner, but is not limited thereto:

[0134] In some implementations, the first sending end reduces the sending window of the first sending end to a second preset size.

[0135] It should be understood that, as described above, the routing switching device sends the second congestion feedback message to the first sending end after discarding the second traffic message and inserting the first traffic message into the message buffer queue. In other words, when the first sending end receives the second congestion feedback message, it indicates that there is a congestion packet loss situation. In this case, no matter what information the second congestion feedback message carries, the first sending end can reduce the sending window of the first sending end to the second preset size.

[0136] In some implementations, the second preset size may be half the size of the original sending window of the first sending end, but is not limited thereto. For example, assuming that the original sending window of the first sending end can send 10 traffic packets each time, the sending window adjusted by the first sending end can send 5 traffic packets each time.

[0137] It should be understood that since the connection between the first transmitting end and the first receiving end borrows the transmission resources of other connections, in order to ensure that the traffic packets on other connections can be transmitted normally in the future, the first transmitting end can adjust the congestion control strategy to return its transmission resources. This elastic congestion control strategy can make full use of network transmission resources and ensure that both the internal traffic of DCN and the external traffic across WAN can be better transmitted. The elastic control strategy executed by the first transmitting end is described below:

[0138] In some other possible implementations, if the second congestion feedback message includes a second value, the first sending end adjusts the sending window by first reducing the sending window of the first sending end to a second preset size, and then subtracting the second value from the sending window of the first sending end.

[0139] It should be understood that the value of the second preset size can be referred to above, and the embodiments of the present application will not be elaborated on this.

[0140] For example, assuming that the original sending window of the first sending end is capable of sending 10 traffic packets each time, the first sending end can first halve the sending window, and the resulting sending window is capable of sending 5 traffic packets each time. Furthermore, assuming that the second value is 2, the final sending window is capable of sending 3 traffic packets each time.

[0141] It should be understood that the traffic message to be transmitted in S312 refers to the traffic message after the message sent by the connection between the first transmitting end and the first receiving end using the transmission resources of other connections. For example, if the message number sent by the connection between the first transmitting end and the first receiving end using the transmission resources of other connections is 00000001, then the traffic message to be transmitted may be 00000010.

[0142] In some implementations, S306: after the routing switching device discards the second traffic message in the message buffer queue, the congestion control method further includes:

[0143] S313: The routing switching device sends a third congestion feedback message to the second sending end of the second traffic message;

[0144] S314: The second sending end adjusts the sending window of the second sending end based on the third congestion feedback message, and retransmits the lost packets of the second sending end.

[0145] It should be understood that the third congestion feedback message is used by the second sending end to adjust the sending window of the second sending end and to retransmit the lost packets of the second sending end.

[0146] In some possible implementations, the third congestion feedback message includes at least one of the following: a message type, a third identifier, a third value, and a third message number of the third congestion feedback message; wherein the third identifier is used to identify whether the connection between the second sending end and the receiving end of the second traffic message has any transmission resources borrowed by other connections within a third preset time period; the third value is the number of packet losses caused by the second sending end due to the borrowing of transmission resources by other connections between the second sending end and the receiving end of the second traffic message within the third preset time period; the third message number is the message number of the packet loss caused by the second sending end due to the borrowing of transmission resources by other connections between the second sending end and the receiving end of the second traffic message within the third preset time period.

[0147] It is assumed that the receiving end of the second traffic message is called a second receiving end.

[0148] In some implementations, the routing switching device may count whether the connection between the second transmitting end and the second receiving end has any transmission resources borrowed by other connections within a period of time, such as within 10ms from the time when the second traffic message is received.

[0149] In some implementations, the message type of the third congestion feedback message may occupy 2 bits, but is not limited thereto. For example, the value of the message type field in the third congestion feedback message may be binary 01.

[0150] In some implementations, the third identifier may occupy 1 bit, but is not limited thereto.

[0151] In some possible implementations, when the value of the third identifier is 1, it indicates that the connection between the second sending end and the receiving end of the second traffic message has its transmission resources borrowed by other connections within a third preset time period; when the value of the third identifier is 0, it indicates that the connection between the second sending end and the receiving end of the second traffic message has not had its transmission resources borrowed by other connections within the third preset time period.

[0152] In other possible implementations, when the value of the third identifier is 0, it indicates that the connection between the second sending end and the receiving end of the second traffic message has its transmission resources borrowed by other connections within a third preset time period; when the value of the third identifier is 1, it indicates that the connection between the second sending end and the receiving end of the second traffic message has not had its transmission resources borrowed by other connections within the third preset time period.

[0153] In some implementations, the value of the third preset time length may be 10ms, 20ms, etc., but is not limited thereto.

[0154] In some implementations, the length of the third value is fixed, such as 8 bits, but is not limited thereto. For example, the third value may be 00000011, indicating that the number of packet losses caused by the second transmitting end due to other connections borrowing transmission resources from the connection between the second transmitting end and the second receiving end within the third preset time length is 3, where 3 is the binary value corresponding to 00000011.

[0155] In other possible implementations, the length of the third value is variable. For example, if the third congestion feedback message carries the third identifier and the third value at the same time, and the third identifier indicates that the connection between the second transmitting end and the second receiving end does not have any transmission resources borrowed by other connections within the third preset time length, then the third value may occupy 1 bit and may be 0. If the third identifier indicates that the connection between the second transmitting end and the receiving end of the second traffic message has any transmission resources borrowed by other connections within the third preset time length, then the third value may occupy 8 bits and may be 00000011.

[0156] It should be understood that the number of the third message numbers is a third value.

[0157] In some implementations, the length of the third value of the third message number is fixed, for example, 80 bits. The length of each third message code may be fixed, for example, 16 bits.

[0158] In some implementations, the length of the third value times the third message number is variable. For example, if the third congestion feedback message carries the third identifier and the third value times the third message number at the same time, and the third identifier indicates that the connection between the second transmitting end and the second receiving end does not have any transmission resources borrowed by other connections within the third preset time length, then the third value times the third message number may occupy 1 bit, and the value may be 0. If the third identifier indicates that the connection between the second transmitting end and the second receiving end has any transmission resources borrowed by other connections within the third preset time length, then the third value times the third message number may occupy the third value * 16 bits.

[0159] The second sending end may adjust the sending window of the second sending end in the following manner, but is not limited thereto:

[0160] In some implementations, the second sending end reduces the sending window of the second sending end to a third preset size.

[0161] It should be understood that, as described above, the routing switching device sends the third congestion feedback message to the second sending end after discarding the second traffic message. In other words, when the second sending end receives the third congestion feedback message, it indicates that there is a congestion packet loss situation. In this case, no matter what information the third congestion feedback message carries, the second sending end can reduce the sending window of the second sending end to the third preset size.

[0162] In some implementations, the third preset size may be half the size of the original sending window of the second sending end, but is not limited thereto. For example, assuming that the original sending window of the second sending end can send 10 traffic packets each time, the sending window adjusted by the second sending end can send 5 traffic packets each time.

[0163] It should be understood that since the connection between the second transmitting end and the second receiving end is borrowed by other connections, in order to ensure that the traffic messages on the connection between the second transmitting end and the second receiving end can be transmitted normally in the future, the second transmitting end can adjust the congestion control strategy to get back its transmission resources. This elastic congestion control strategy can make full use of network transmission resources and ensure that both DCN internal traffic and external traffic across WAN can be better transmitted. The elastic control strategy executed by the second transmitting end is described below:

[0164] In other possible implementations, if the third congestion feedback message includes a third value, the sending window of the second sending end is adjusted by first reducing the sending window of the second sending end to a third preset size, and then increasing the third value of the sending window of the second sending end.

[0165] It should be understood that the value of the third preset size can be referred to above, and the embodiments of the present application will not be elaborated on this.

[0166] For example, assuming that the original sending window of the second sending end is capable of sending 10 traffic packets each time, the second sending end can first halve the sending window, and the resulting sending window is capable of sending 5 traffic packets each time. Furthermore, assuming that the third value is 2, the final sending window is capable of sending 7 traffic packets each time.

[0167] In some implementable manners, if the third congestion feedback message includes a third message number, the message retransmitted by the second transmitting end is the message with the third message number. For example, the third congestion feedback message includes two third message numbers, which are 00000001 and 00000011. After receiving the third congestion feedback message, the second transmitting end can parse the two message numbers and retransmit the traffic messages corresponding to the two message numbers.

[0168] In some implementations, after receiving the third congestion feedback message, the first transmitting end can count the third value 16 bits at the starting position corresponding to the third message number, and then parse all the third message numbers. For example, assuming that the format of the third congestion feedback message is: {message type, third identifier, third value, third message number of the third congestion feedback message}, where the message type occupies 2 bits, the third identifier occupies 1 bit, the third value occupies 8 bits, and the third value is 2, then starting from the 12th bit of the third congestion feedback message, the first 16 bits are a third message code, and the second 16 bits are another third message code.

[0169] The following is an example to illustrate the embodiment of the present application:

[0170] (1) After receiving the traffic request message, the sender sends a traffic message pkt_new to the corresponding receiver;

[0171] In some implementations, it is assumed that the identifier for identifying the internal traffic message of the data center network is represented by pkt_in, where pkt_in occupies 1 bit and is located in the extension field of the traffic message header. In this case, the pkt_in corresponds to the fourth identifier above.

[0172] In some other implementations, it is assumed that the identifier used to identify whether it is an internal flow message of the data center network is represented by pkt_in, when pkt_in is binary 1, it indicates that the flow message pkt_new is an internal flow message; when pkt_in is binary 0, it indicates that the flow message pkt_new is an external flow message. In this case, the pkt_in corresponds to the fifth identifier above.

[0173] (2) The routing switching device detects the congestion of the message buffer queue. If there is no congestion (i.e., the buffer queue is not full or is not about to be fully loaded), the traffic message pkt_new is forwarded to the next-hop network device. If there is congestion (i.e., the buffer queue is full or is about to be fully loaded), differentiated processing is performed according to the type of the traffic message pkt_new and whether there are external traffic messages in the message buffer queue, as follows:

[0174] 1) If the pkt_in identifier does not exist in the extension field of the traffic message pkt_new header or its value is binary 0, execute step (3);

[0175] 2) If the pkt_in flag exists in the extension field of the traffic message pkt_new header, or its value is binary 1, execute step (5);

[0176] (3) The routing switching device discards the traffic packet pkt_new and sends a congestion feedback message pkt_cong_ack to the sender of the traffic packet pkt_new. The message carries the following information:

[0177] 1) The message type ack_type of the congestion feedback message pkt_cong_ack occupies 2 bits. At this time, ack_type is binary 00. The format of pkt_cong_ack is shown in formula (1):

[0178] Pkt_cong_ack = {ack_type, cong_mark, loss_amount, pkt_loss_num} (1)

[0179] Among them, the cong_mark corresponds to the first mark in the above text, the loss_amount corresponds to the first value in the above text, and the pkt_loss_num corresponds to the first message number in the above text. That is, cong_mark is used to identify whether there is congestion packet loss; loss_amount is the number of packets lost by the above sender within the first preset time length; pkt_loss_num is the message number of the packet lost by the above sender within the first preset time length.

[0180] 2) In formula (1), cong_mark occupies 1 bit. When cong_mark is binary 1, it indicates that congestion packet loss occurs. When cong_mark is binary 0, it indicates that congestion packet loss does not occur. At this time, the values ​​of loss_amount and pkt_loss_num are both binary 0.

[0181] 3) In formula (1), when cong_mark is binary 1, loss_amount occupies 8 bits;

[0182] 4) In formula (1), when cong_mark is binary 1 and loss_amount is non-zero, the length of the pkt_loss_num field is 16*loss_amount;

[0183] 5) After receiving the congestion feedback message pkt_cong_ack from the routing switch device, the sender of the traffic message pkt_new performs a packet loss retransmission operation. For details, see step (4);

[0184] (4) The sender of the traffic message pkt_new adjusts the congestion control parameters (such as halving the sending window) according to the received congestion feedback message pkt_cong_ack and retransmits the traffic message pkt_new;

[0185] (5) If the routing switching device detects that the message buffer queue is congested and the received traffic message pkt_new is an internal traffic message, the routing switching device needs to further detect whether the message buffer queue contains an external traffic message and perform differentiated processing based on the above detection results, as follows:

[0186] 1) If it is detected that the message buffer queue contains external traffic messages, execute step (6);

[0187] 2) If it is detected that the message buffer queue does not contain any external traffic message, then execute step (3);

[0188] (6) The routing switch device deletes an external traffic message from the message buffer queue and inserts the traffic message pkt_new, as follows:

[0189] 1) The routing switching device starts scanning external traffic messages from the tail of the message buffer queue;

[0190] 2) Locate and scan the external traffic message location, and delete the external traffic message from the message buffer queue;

[0191] 3) Insert the traffic message pkt_new into the tail of the message buffer queue;

[0192] 4) If Figure 4 As shown, the routing switching device detects that the message buffer queue is congested, wherein the queues from the tail to the head are: internal, internal, external, internal, external and other traffic messages;

[0193] In the present application, after the routing switching device deletes the located external traffic message (pkt_buffer), it adds the traffic message pkt_new to the tail of the message buffer queue. This process is called "borrowing" of transmission resources.

[0194] 5) The routing switching device forwards the traffic message in the latest message buffer queue to the next-hop network node;

[0195] 6) The message buffer queue returns the congestion feedback message pkt_cong_ack to the sender of the deleted external traffic message pkt_buffer. For details, see step (7);

[0196] 7) The routing switching device returns the congestion feedback message pkt_cong_ack to the sender of the traffic message pkt_new. For details, see step (9);

[0197] (7) The routing switch device returns a congestion feedback message pkt_cong_ack to the sender of the pkt_buffer message. The message carries the following information:

[0198] 1) Congestion feedback message type ack_type, occupies 2 bits. At this time, ack_type is binary 01. The format of pkt_cong_ack is shown in formula (2):

[0199] Pkt_cong_ack = {ack_type, lend, lend_amount, pkt_lend_num} (2)

[0200] Among them, the lend corresponds to the third identifier mentioned above, the lend_amount corresponds to the third numerical value mentioned above, and the pkt_lend_num corresponds to the third message number mentioned above. That is, lend is used to identify whether the connection between the sender and the receiver of the pkt_buffer message has been borrowed by other connections for transmission resources within the third preset time period; lend_amount is the number of packets lost by the sender due to the borrowing of transmission resources by other connections between the sender and the receiver of the pkt_buffer message within the third preset time period; pkt_lend_num is the message number of packets lost by the sender due to the borrowing of transmission resources by other connections between the sender and the receiver of the pkt_buffer message within the third preset time period.

[0201] 2) In formula (2), the identifier lend occupies 1 bit. When lend is binary 1, it indicates that the connection between the sender and the receiver of the pkt_buffer message has a situation where the transmission resources are borrowed by other connections within the third preset time length. See steps 3) and 4) below for details. When lend is binary 0, it indicates that the connection between the sender and the receiver of the pkt_buffer message has no situation where the transmission resources are borrowed by other connections within the third preset time length. At this time, the values ​​of lend_amount and pkt_lend_num are both binary 0.

[0202] 3) In formula (2), when lend is binary 1, the lend_amount occupies 8 bits;

[0203] 4) In formula (2), when lend is binary 1 and lend_amount is non-zero, the total length of pkt_lend_num is 16*lend_amount, where 16 represents the length of each message number;

[0204] 5) In the present application, after receiving the congestion feedback message pkt_cong_ack from the routing switching device, the sender of the pkt_buffer message performs a packet loss retransmission operation and sets the corresponding congestion control parameters according to step (8);

[0205] (8) After receiving the congestion feedback message pkt_cong_ack sent by the routing switch device, the sender of the Pkt_buffer message performs the following operations:

[0206] 1) Determine the specific number of the lost message based on information such as lend_amount and pkt_lend_num;

[0207] 2) Recalculate the congestion control window cwnd_cpt; it is worth mentioning that in the congestion control algorithm based on packet loss, this value is reduced (such as halved) compared with the original window value;

[0208] 3) Based on the calculated cwnd_cpt, combined with the transmission resources "borrowed" by other connections, the final congestion window value cwnd_final is calculated, as shown in formula (3):

[0209] cwnd_final = cwnd_cpt + lend_amount (3)

[0210] 4) The sender of the Pkt_buffer message retransmits the lost messages based on cwnd_final, which are the messages corresponding to the pkt_lend_num message number;

[0211] (9) The routing switching device returns a congestion feedback message pkt_cong_ack to the sender of the traffic message pkt_new. The message carries the following information:

[0212] 1) Congestion feedback message type ack_type, occupies 2 bits. In this case, ack_type is binary 10. The format of pkt_cong_ack is shown in formula (4):

[0213] Pkt_cong_ack = {ack_type, borrow, borrow_amount, pkt_borrow_num}(4)

[0214] Among them, the borrow corresponds to the second identifier mentioned above, the borrow_amount corresponds to the second numerical value mentioned above, and the pkt_borrow_num corresponds to the second message number mentioned above. That is, borrow is used to identify whether the connection between the sender and the receiver of the traffic message pkt_new borrows other connection transmission resources within the second preset time period; borrow_amount is the number of messages transmitted by the connection between the sender and the receiver of the traffic message pkt_new using other connection transmission resources within the second preset time period; pkt_borrow_num is the message number of the message transmitted by the connection between the sender and the receiver of the traffic message pkt_new using other connection transmission resources within the second preset time period.

[0215] 2) In formula (4), borrow occupies 1 bit. When borrow is binary 1, it indicates that the connection between the sender and the receiver of the traffic message pkt_new borrows transmission resources from other connections within the second preset time length. See steps 3) and 4) below for details. When borrow is binary 0, it indicates that the connection between the sender and the receiver of the traffic message pkt_new does not borrow transmission resources from other connections within the second preset time length. At this time, the values ​​of borrow_amount and pkt_borrow_num are both binary 0.

[0216] 3) In formula (4), when borrow is binary 1, borrow_amount occupies 8 bits;

[0217] 4) In formula (4), when borrow is binary 1 and borrow_amount is non-zero, the total length of pkt_borrow_num is 16*borrow_amount, where 16 represents the length of each message number;

[0218] 5) In the present application, after receiving the congestion feedback message pkt_cong_ack from the routing switching device, the sender of the traffic message pkt_new performs a packet loss retransmission operation and sets the corresponding congestion control parameters according to step (10);

[0219] (10) After receiving the congestion feedback message pkt_cong_ack sent by the routing switching device, the sender of the Pkt_new message performs the following operations:

[0220] 1) Calculate the congestion control window cwnd_cpt; it is worth mentioning that in the packet loss-based congestion control algorithm, this value is reduced (such as halved) compared to the original window value;

[0221] 2) Based on the calculated cwnd_cpt, combined with the transmission resources "borrowed" from other connections, the final congestion window value cwnd_final is calculated, as shown in formula (5):

[0222] cwnd_final = cwnd_cpt - borrow_amount (5)

[0223] 3) The sender of the traffic message Pkt_new transmits the subsequent messages to be transmitted based on cwnd_final.

[0224] In an embodiment of the present application, the routing switching device can feed back congestion feedback messages to the sending end, so that the sending end can adjust the congestion control strategy in time, or can improve the congestion response speed of the sending end, or can improve the packet loss repair speed of the sending end, thereby improving the resource utilization of the sending end and further improving the traffic transmission rate.

[0225] Furthermore, in an embodiment of the present application, the sender can adopt an elastic congestion control strategy, including: for a sender that borrows transmission resources from other connections, it can adjust the congestion control strategy to return the transmission resources. For a sender that borrows transmission resources from other connections, it can adjust the congestion control strategy to get back the transmission resources. This elastic congestion control strategy can make full use of network transmission resources to ensure that both DCN internal traffic and external traffic across WAN can be better transmitted.

[0226] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.

[0227] It should also be understood that in the various method embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0228] The method provided in the embodiment of the present application is described above, and the device provided in the embodiment of the present application is described below.

[0229] Figure 6 A schematic diagram of a congestion control device 600 provided in an embodiment of the present application, wherein the device 600 is located inside a data center network, such as Figure 6 As shown, the device 600 includes: a transceiver module 610 and a processing module 620. The transceiver module 610 is used to receive a first flow message sent by a first sending end in a data center network; the processing module 620 is used to: if there is congestion in the message buffer queue, and the first flow message is an external flow message of the data center network, or if there is congestion in the message buffer queue, and the first flow message is an internal flow message of the data center network, and there is no external flow message of the data center network in the message buffer queue, then discard the first flow message; if there is congestion in the message buffer queue, and the first flow message is an internal flow message of the data center network, and there is an external flow message of the data center network in the message buffer queue, then discard the second flow message in the message buffer queue, and insert the first flow message into the message buffer queue; wherein, the second flow message is an external flow message of the data center network in the message buffer queue.

[0230] In some possible implementations, the transceiver module 610 is also used to send a first congestion feedback message to the first sending end after the processing module 620 discards the first traffic message; wherein the first congestion message is used by the first sending end to adjust the sending window of the first sending end and retransmit the lost packets of the first sending end.

[0231] In some possible implementations, the first congestion feedback message includes at least one of the following: a message type, a first identifier, a first value, and a first message number of the first congestion feedback message; wherein the first identifier is used to identify whether there is congestion packet loss; the first value is the number of packet losses at the first transmitting end within a first preset time length; and the first message number is the message number of the packet lost by the first transmitting end within the first preset time length.

[0232] In some possible implementations, the sending window of the first sending end is adjusted by reducing the sending window of the first sending end to a first preset size.

[0233] In some implementations, if the first congestion feedback message includes a first message number, the message retransmitted by the first sending end is the message with the first message number.

[0234] In some possible implementations, the transceiver module 610 is also used to send a second congestion feedback message to the first sending end after the processing module 620 inserts the first traffic message into the message buffer queue; wherein the second congestion feedback message is used by the first sending end to adjust the sending window of the first sending end and transmit the traffic message to be transmitted.

[0235] In some possible implementations, the second congestion feedback message includes at least one of the following: a message type, a second identifier, a second value, and a second message number of the second congestion feedback message; wherein the second identifier is used to identify whether the connection between the first sending end and the receiving end of the first traffic message borrows transmission resources from other connections within a second preset time period; the second value is the number of messages transmitted by the connection between the first sending end and the receiving end of the first traffic message using transmission resources from other connections within the second preset time period; the second message number is the message number of the message transmitted by the connection between the first sending end and the receiving end of the first traffic message using transmission resources from other connections within the second preset time period.

[0236] In some possible implementations, if the second congestion feedback message includes a second value, the first sending end adjusts the sending window by first reducing the sending window of the first sending end to a second preset size, and then subtracting the second value from the sending window of the first sending end.

[0237] In some possible implementations, the transceiver module 610 is also used to send a third congestion feedback message to the second sending end of the second traffic message after the processing module 620 discards the second traffic message in the message buffer queue; wherein the third congestion feedback message is used by the second sending end to adjust the sending window of the second sending end and retransmit the lost packets of the second sending end.

[0238] In some possible implementations, the third congestion feedback message includes at least one of the following: a message type, a third identifier, a third value, and a third message number of the third congestion feedback message; wherein the third identifier is used to identify whether the connection between the second sending end and the receiving end of the second traffic message has any transmission resources borrowed by other connections within a third preset time period; the third value is the number of packet losses caused by the second sending end due to the borrowing of transmission resources by other connections between the second sending end and the receiving end of the second traffic message within the third preset time period; the third message number is the message number of the packet loss caused by the second sending end due to the borrowing of transmission resources by other connections between the second sending end and the receiving end of the second traffic message within the third preset time period.

[0239] In some possible implementations, if the third congestion feedback message includes a third value, the sending window of the second sending end is adjusted by first reducing the sending window of the second sending end to a third preset size, and then increasing the third value of the sending window of the second sending end.

[0240] In some implementations, if the third congestion feedback message includes a third message number, the message retransmitted by the second sending end is the message with the third message number.

[0241] In some possible implementations, the processing module 620 is also used to: detect whether the first flow packet carries a fourth identifier for identifying that the first flow packet is an internal flow packet of the data center network, so as to detect whether the first flow packet is an internal flow packet of the data center network; or, detect the value of the fifth identifier in the first flow packet; and detect whether the first flow packet is an internal flow packet of the data center network based on the value of the fifth identifier.

[0242] In some implementations, the processing module 620 is further used to: start scanning from the end of the message buffer queue before discarding the second traffic message in the message buffer queue; and use the first scanned external traffic message of the data center network as the second traffic message.

[0243] In some implementations, the processing module 620 is specifically configured to: insert the first traffic message into the tail of the message buffer queue.

[0244] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 6 The device 600 shown may perform Figure 3 and Figure 5 The corresponding method embodiments, and the aforementioned and other operations and / or functions of each module in the device 600 are respectively to implement Figure 3 and Figure 5 For the sake of brevity, the corresponding processes in each method are not repeated here.

[0245] The above describes the device 600 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0246] Figure 7 It is a schematic block diagram of an electronic device provided in an embodiment of the present application.

[0247] like Figure 7 As shown, the electronic device may include:

[0248] The memory 710 and the processor 720, the memory 710 is used to store the computer program and transmit the program code to the processor 720. In other words, the processor 720 can call and run the computer program from the memory 710 to implement the method in the embodiment of the present application.

[0249] For example, the processor 720 may be configured to execute the above method embodiments according to instructions in the computer program.

[0250] In some embodiments of the present application, the processor 720 may include but is not limited to:

[0251] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0252] In some embodiments of the present application, the memory 710 includes but is not limited to:

[0253] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0254] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 710 and executed by the processor 720 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0255] like Figure 7 As shown, the electronic device also includes:

[0256] The transceiver 730 may be connected to the processor 720 or the memory 710 .

[0257] The processor 720 may control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include an antenna, and the number of antennas may be one or more.

[0258] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0259] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0260] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.

[0261] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0262] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0263] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0264] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A congestion control method, characterized in that: The method is applied to a routing switching device in a data center network, and the method comprises: Receiving a first traffic message sent by a first sending end in a data center network; If the message buffer queue is congested and the first traffic message is an external traffic message of the data center network, or if the message buffer queue is congested and the first traffic message is an internal traffic message of the data center network, and there is no external traffic message of the data center network in the message buffer queue, then the first traffic message is discarded; If the message buffer queue is congested, and the first traffic message is an internal traffic message of the data center network, and there is an external traffic message of the data center network in the message buffer queue, the second traffic message in the message buffer queue is discarded, and the first traffic message is inserted into the message buffer queue; The second traffic message is an external traffic message of the data center network in the message buffer queue.

2. The method according to claim 1, characterized in that: After discarding the first traffic message, the method further includes: Sending a first congestion feedback message to the first sending end; The first congestion message is used by the first sending end to adjust the sending window of the first sending end and to retransmit lost packets of the first sending end.

3. The method according to claim 2, characterized in that The first congestion feedback message includes at least one of the following: a message type, a first identifier, a first value, and a first message number of the first congestion feedback message; Among them, the first identifier is used to identify whether there is congestion and packet loss; the first value is the number of packets lost by the first sending end within the first preset time length; the first message number is the message number lost by the first sending end within the first preset time length.

4. The method according to claim 2 or 3, characterized in that: The sending window of the first sending end is adjusted in a manner of: reducing the sending window of the first sending end to a first preset size.

5. The method according to claim 3, characterized in that: If the first congestion feedback message includes the first message number, the message retransmitted by the first sending end is the message with the first message number.

6. The method according to claim 1, characterized in that After inserting the first traffic message into the message buffer queue, the method further includes: Sending a second congestion feedback message to the first sending end; The second congestion feedback message is used by the first sending end to adjust the sending window of the first sending end and transmit the traffic message to be transmitted.

7. The method according to claim 6, characterized in that The second congestion feedback message includes at least one of the following: a message type, a second identifier, a second value, and a second message number of the second congestion feedback message; Among them, the second identifier is used to identify whether the connection between the first sending end and the receiving end of the first traffic message borrows other connection transmission resources within the second preset time period; the second value is the number of messages transmitted by the connection between the first sending end and the receiving end of the first traffic message using other connection transmission resources within the second preset time period; the second message number is the message number of the message transmitted by the connection between the first sending end and the receiving end of the first traffic message using other connection transmission resources within the second preset time period.

8. The method according to claim 7, characterized in that If the second congestion feedback message includes the second value, the sending window of the first sending end is adjusted by first reducing the sending window of the first sending end to a second preset size, and then subtracting the second value from the sending window of the first sending end.

9. The method according to claim 1, characterized in that: After discarding the second flow message in the message buffer queue, the method further includes: Sending a third congestion feedback message to a second sending end of the second traffic message; The third congestion feedback message is used by the second sending end to adjust the sending window of the second sending end and to retransmit lost packets of the second sending end.

10. The method according to claim 9, characterized in that The third congestion feedback message includes at least one of the following: a message type, a third identifier, a third value, and a third message number of the third congestion feedback message; Among them, the third identifier is used to identify whether the connection between the second sending end and the receiving end of the second traffic message has transmission resources borrowed by other connections within a third preset time period; the third numerical value is the number of packets lost by the second sending end due to transmission resources borrowed by other connections between the second sending end and the receiving end of the second traffic message within the third preset time period; the third message number is the message number of the packet lost by the second sending end due to transmission resources borrowed by other connections between the second sending end and the receiving end of the second traffic message within the third preset time period.

11. The method according to claim 10, characterized in that If the third congestion feedback message includes the third value, the sending window of the second sending end is adjusted by first reducing the sending window of the second sending end to a third preset size, and then increasing the sending window of the second sending end by the third value.

12. The method according to claim 11, characterized in that If the third congestion feedback message includes the third message number, the message retransmitted by the second sending end is the message with the third message number.

13. The method according to any one of claims 1 to 3, characterized in that: Also includes: Detecting whether the first flow message carries a fourth identifier for identifying that the first flow message is an internal flow message of the data center network, so as to detect whether the first flow message is an internal flow message of the data center network; or, Detect the value of the fifth identifier in the first traffic message; and based on the value of the fifth identifier, detect whether the first traffic message is an internal traffic message of the data center network.

14. The method according to any one of claims 1 to 3, characterized in that: Before discarding the second flow message in the message buffer queue, the method further includes: Start scanning from the tail of the message buffer queue; The first scanned external flow message of the data center network is used as the second flow message.

15. The method according to any one of claims 1 to 3, characterized in that: The inserting the first traffic message into the message buffer queue includes: Insert the first traffic message into the tail of the message buffer queue.

16. A congestion control device, characterized in that: The device is located inside a data center network, and includes: A transceiver module, used to receive a first traffic message sent by a first sending end in a data center network; Processing modules for: If the message buffer queue is congested and the first traffic message is an external traffic message of the data center network, or if the message buffer queue is congested and the first traffic message is an internal traffic message of the data center network, and there is no external traffic message of the data center network in the message buffer queue, then the first traffic message is discarded; If the message buffer queue is congested, and the first traffic message is an internal traffic message of the data center network, and there is an external traffic message of the data center network in the message buffer queue, the second traffic message in the message buffer queue is discarded, and the first traffic message is inserted into the message buffer queue; The second traffic message is an external traffic message of the data center network in the message buffer queue.

17. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 15.

19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 15 is implemented.