Data transmission method and device, computer equipment, storage medium and program product

By recording the congestion status information of the reverse message data in the forward message data and updating the transmission parameters, the problem of high equipment update cost and network congestion in traditional technology is solved, and the data transmission performance and user experience are improved.

CN118694716APending Publication Date: 2024-09-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310318572.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In traditional technology, improving data transmission performance requires updating equipment, which results in high costs and long deployment time. It is also unable to effectively deal with network congestion and affects user experience.

Method used

By recording the congestion status information of the reverse message data in the forward message data and updating the transmission parameters, the data transmission performance is improved and equipment updates are avoided, thus saving costs.

Benefits of technology

It improves data transmission performance, reduces the cost of device updates, and can adjust transmission parameters in a timely manner to cope with network congestion and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694716A
    Figure CN118694716A
Patent Text Reader

Abstract

The invention relates to a data transmission method and device, computer equipment, a storage medium and a computer program product, which can be applied to a routing node in the field of network communication. The method comprises the following steps: receiving message data which is sent by first equipment and of which the destination address is second equipment, and determining that the message data is forward message data; determining that the message data sent from the second device to the first device is reverse message data, and determining a message queue where the reverse message data is located; under the condition that the message queue is in a congestion state, recording target information used for representing the congestion state in the forward message data to obtain updated forward message data; and sending the updated forward message data to the second device, so that the second device determines a message data transmission parameter when performing message data transmission to the first device according to the target information. By adopting the method provided by the invention, the data transmission performance can be improved at relatively low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a data transmission method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of network communication technology, various business scenarios have paid more attention to the performance of data transmission. High-performance data transmission can better improve the business experience on the user side. Taking audio and video transmission as an example, high-throughput, low-latency and low-packet-loss traffic transmission can bring users a better viewing experience. For example, the duration and number of freezes will be significantly reduced. On the contrary, if the audio and video traffic encounters a large number of packet loss during the transmission process, users will frequently be waiting for buffering during the viewing process.

[0003] In traditional technology, data transmission performance is improved by improving the transmission performance of the equipment and enhancing the equipment's ability to process message data (such as caching and forwarding). However, equipment upgrades face problems such as increased overhead and long scale deployment time, and the cost of performance improvement is high. Summary of the invention

[0004] Based on this, it is necessary to provide a data transmission method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve data transmission performance at a lower cost in response to the above technical problems.

[0005] On the one hand, the present application provides a data transmission method. The method includes: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; determining that the message data sent from the second device to the first device is reverse message data, and determining the message queue where the reverse message data is located; when the message queue is in a congested state, recording target information used to characterize the congested state in the forward message data to obtain updated forward message data; sending the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting message data to the first device according to the target information.

[0006] On the other hand, the present application also provides a data transmission device. The device includes: a message data receiving module, used to receive message data sent by a first device and whose destination address is a second device, and determine that the message data is forward message data; a message queue determination module, used to determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located; a message data updating module, used to record target information used to characterize the congestion state in the forward message data when the message queue is in a congested state, and obtain updated forward message data; a message data sending module, used to send the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting message data to the first device according to the target information.

[0007] On the other hand, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; determining that the message data sent from the second device to the first device is reverse message data, and determining the message queue where the reverse message data is located; when the message queue is in a congested state, recording target information used to characterize the congested state in the forward message data to obtain updated forward message data; sending the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting message data to the first device according to the target information.

[0008] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; determining that the message data sent from the second device to the first device is reverse message data, and determining the message queue where the reverse message data is located; when the message queue is in a congested state, recording target information used to characterize the congested state in the forward message data to obtain updated forward message data; sending the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting message data to the first device according to the target information.

[0009] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, which implements the following steps when executed by a processor: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; determining that the message data sent from the second device to the first device is reverse message data, and determining the message queue where the reverse message data is located; when the message queue is in a congested state, recording target information used to characterize the congested state in the forward message data to obtain updated forward message data; sending the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information.

[0010] In the above-mentioned data transmission method, apparatus, computer equipment, storage medium and computer program product, a routing node receives message data sent by a first device and whose destination address is a second device, and determines that the message data is forward message data, determines that the message data sent from the second device to the first device is reverse message data, and determines the message queue where the reverse message data is located. When the message queue is in a congested state, target information used to characterize the congestion state is recorded in the forward message data to obtain updated forward message data, and sends the updated forward message data to the second device so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information. Since the target information can be recorded in the forward message data, the first device can perceive the congestion state in the reverse message data sending process in advance, so that the message data transmission parameters can be adjusted in time according to the congestion state, which not only improves the performance of data transmission, but also avoids updating the equipment, greatly saving the cost overhead caused by updating the equipment.

[0011] On the other hand, the present application provides a data transmission method. The method includes: receiving message data sent by a first device and having a destination address of a second device, and determining that the message data is forward message data; when there is target information in the forward message data, determining the queue state of a first target message queue in a first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes; when the queue state is a congested state, adjusting the message data transmission parameters when transmitting the message data to the first device; and transmitting the message data to the first device according to the adjusted message data transmission parameters.

[0012] On the other hand, the present application also provides a data transmission device. The device includes: a message data receiving module, which is used to receive message data sent by a first device and whose destination address is a second device, and determine that the message data is forward message data; a queue state determination module, which is used to determine the queue state of a first target message queue in a first target routing node according to the target information when there is target information in the forward message data; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes; a transmission parameter adjustment module, which is used to adjust the message data transmission parameters when transmitting message data to the first device when the queue state is a congested state; and a message data sending module, which is used to transmit message data to the first device according to the adjusted message data transmission parameters.

[0013] On the other hand, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; when there is target information in the forward message data, determining the queue state of a first target message queue in a first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes; when the queue state is a congested state, adjusting the message data transmission parameters when transmitting message data to the first device; and transmitting message data to the first device according to the adjusted message data transmission parameters.

[0014] On the other hand, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; when there is target information in the forward message data, determining the queue state of a first target message queue in a first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes; when the queue state is a congested state, adjusting the message data transmission parameters when transmitting message data to the first device; and transmitting message data to the first device according to the adjusted message data transmission parameters.

[0015] On the other hand, the present application also provides a computer program product. The computer program product includes a computer program, which implements the following steps when executed by a processor: receiving message data sent by a first device and whose destination address is a second device, and determining that the message data is forward message data; when there is target information in the forward message data, determining the queue state of a first target message queue in a first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes; when the queue state is a congested state, adjusting the message data transmission parameters when transmitting message data to the first device; and transmitting message data to the first device according to the adjusted message data transmission parameters.

[0016] The above-mentioned data transmission method, device, computer equipment, storage medium and computer program product receive message data sent by a first device and whose destination address is a second device. When there is target information in the forward message data, the queue state of the first target message queue in the first target routing node is determined according to the target information, wherein the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes. When the queue state is a congested state, the message data transmission parameters when transmitting message data to the first device are adjusted, and the message data transmission is performed to the first device according to the adjusted message data transmission parameters. Since the target information can be recorded in the forward message data, the first device can perceive the congestion state in the reverse message data sending process in advance, so that the message data transmission parameters can be adjusted in time according to the congestion state, which not only improves the performance of data transmission, but also avoids updating the equipment, greatly saving the cost of updating the equipment.

[0017] On the other hand, the present application provides a data transmission system. The system includes a first device, a second device and at least one routing node, wherein:

[0018] The first device is used to send message data with a destination address of the second device;

[0019] The at least one routing node is used to receive the message data and determine that the message data is forward message data; determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located, and when the message queue is in a congested state, record the target information used to characterize the congested state in the forward message data to obtain updated forward message data;

[0020] The second device is used to receive the forward message data, and when the forward message data contains target information, determine the queue state of the first target message queue in the first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the transmitted reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the transmitted reverse message data passes;

[0021] The second device is further configured to adjust message data transmission parameters when transmitting message data to the first device when the queue state is a congested state; and transmit message data to the first device according to the adjusted message data transmission parameters.

[0022] The above-mentioned data transmission system can record target information in the forward message data, so that the first device can perceive the congestion state in the reverse message data sending process in advance, and can adjust the message data transmission parameters in time according to the congestion state, which not only improves the data transmission performance, but also avoids updating the equipment, greatly saving the cost overhead brought by updating the equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is an application environment diagram of a data transmission method in an embodiment;

[0024] Figure 2 A schematic diagram of a data transmission method in one embodiment;

[0025] Figure 3 A schematic diagram of forward message data and reverse message data in one embodiment;

[0026] Figure 4 A schematic diagram of an uplink queue and a downlink queue in one embodiment;

[0027] Figure 5 A schematic diagram of a flow chart of a data transmission method in another embodiment;

[0028] Figure 6 A schematic diagram related to a weak network environment in an embodiment;

[0029] Figure 7 A schematic diagram of a flow chart of a data transmission method in another embodiment;

[0030] Figure 8 A schematic diagram of a flow chart of a data transmission method in another embodiment;

[0031] Fig. 9 is a structural block diagram of a data transmission system in one embodiment;

[0032] Fig.10 is a structural block diagram of a data transmission device in one embodiment;

[0033] Fig.11 is a structural block diagram of a data transmission device in one embodiment;

[0034] Fig.12 is an internal structure diagram of a computer device in one embodiment;

[0035] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data calculation, 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 application, which can form a resource pool and be used on demand, flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system 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, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing. The data transmission method provided in the embodiment of the present application can be applied to application scenarios involving cloud technology to improve the performance of traffic transmission between various business end clouds.

[0038] The data transmission method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in FIG. 1 , the first device 102 communicates with the routing node 106 through the network, and the routing node 106 communicates with the second device 104 through the network. The routing node 106 may include one or more routing nodes. It is understandable that Figure 1 Only possible forms of the first device and the second device are illustrated. In a specific application, the first device 102 may be a terminal, and the second device 104 may be a server; or the first device 102 is a server, and the second device 104 is a terminal. The routing node 106 may receive message data sent by the first device and whose destination address is the second device and determine that the message data is forward message data, determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located. When the message queue is in a congested state, target information for characterizing the congested state is recorded in the forward message data, and updated forward message data is obtained, and the updated forward message data is sent to the second device, so that the second device determines the message data transmission parameters when transmitting message data to the first device according to the target information.

[0039] The server may be an independent physical server, a server cluster or a 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, CDN, and big data and artificial intelligence platforms. The terminal may be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, car terminal, smart TV, etc., but is not limited thereto.

[0040] In one embodiment, Figure 2 As shown, a data transmission method is provided, which is applied to Figure 1 Taking the routing node 106 in FIG. 1 as an example, the method includes the following steps:

[0041] Step 202: Receive message data sent by the first device and whose destination address is the second device, and determine that the message data is forward message data.

[0042] The forward message data refers to the forward message data, and the reverse message data refers to the reverse message data. Figure 3 , the forward and reverse directions in the embodiment of the present application are relative to the first device. The message data sent by the first device is forward relative to the first device, and is forward message data; correspondingly, the message data received by the first device is reverse relative to the first device, and is reverse message data. The message data here can be a traffic message or a confirmation message. In a specific application, the message data sent by the server is a traffic message. The traffic message can be a message carrying business data in various business scenarios. For example, in the audio and video business, the traffic message can be a message carrying audio and video data. In the business scenario of accessing the server page, the traffic message can be page data; the message data sent by the terminal is a confirmation message, namely an ACK (Acknowledge character) message. The ACK message is a confirmation character, which is a transmission control character sent by the receiving end to the sending end.

[0043] The message data carries the destination address and the source address, where the destination address refers to the IP address (Internet Protocol Address) of the receiving end of the message data, and the source address is the IP address of the sending end of the message data. In a specific application, when the first device is a server and the second device is a terminal, the source address of the forward message data is the IP address of the server, and the destination address is the IP address of the terminal. When the first device is a terminal and the second device is a server, the source address of the forward message data is the IP address of the terminal, and the destination address is the IP address of the server.

[0044] Specifically, the routing node can receive message data sent by the first device and whose destination address is the second device, and determine that the message data is forward message data. It can be understood that if there are multiple routing nodes, the routing node connected to the first device through the network receives the forward message data sent by the first device, and transmits it hop by hop through the intermediate routing nodes. When it is transmitted to the last routing node, the last routing node transmits the forward data message to the second device. When each routing node receives the forward message data, it can execute the steps of the data transmission method provided in the embodiment of the present application.

[0045] Step 204: determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located.

[0046] Among them, the message queue where the reverse message data is located, that is, the message queue where the message data sent by the second device to the first device is located in the current routing node, the message data sent by the second device to the first device is arranged in the form of a queue in the current routing node, and the current routing node sends the message data in the order of the queue. In specific applications, refer to Figure 4 , the traffic message sent by the server is sent to the terminal via the downlink routing node path, then the message queue where the traffic message is located is the downlink queue, and the ACK message sent by the terminal is sent to the server via the uplink routing node path, then the message queue where the ACK message is located is the uplink queue, then when the first device is the server and the second device is the terminal, the message queue where the forward message data is located is the downlink queue, and the message queue where the reverse message data is located is the uplink queue; when the first device is the terminal and the second device is the server, the message queue where the forward message data is located is the uplink queue, and the message queue where the reverse message data is located is the downlink queue.

[0047] Specifically, the destination address of each message data in the message queue where the reverse message data is located is the IP address of the first device, and the IP address of the first device is the source address carried in the forward message data. Therefore, after receiving the forward message data, the routing node can determine the message queue where the reverse message data sent to the first device is located based on the source address carried in the forward message data.

[0048] Step 206: When the message queue is in a congested state, target information for characterizing the congested state is recorded in the forward message data to obtain updated forward message data.

[0049] The queue state of the message data includes a congestion state and a normal transmission state. The congestion state indicates that the message data in the message queue is congested or about to be congested, while the normal transmission state indicates that the message data in the message queue is not congested. The target information used to characterize the congestion state may be the state identification information of the queue state or the IP address of the current routing node. The state identification information is used to provide state information of the queue state of the message queue. The state identification information may specifically be letters or numbers. For example, a binary 1 may be used to identify a congestion state, and a binary 0 may be used to identify a normal transmission state.

[0050] Specifically, after determining the message queue where the reverse message data is located, the routing node determines the queue state of the message queue where the reverse message data is located. When the queue state is a congested state, the routing node can record the target information used to characterize the congested state in the received forward message data to obtain updated forward message data.

[0051] In some specific embodiments, the routing node may analyze the number of reverse message data in the message queue, and when the number of reverse message data is too large, for example, greater than a set number threshold, it is determined that the message queue is in a congested state, and the state identification information used to characterize the congestion state is recorded in the forward message data to obtain updated forward message data, so that after the second device receives the forward message data, it can determine which nodes are in a congested state in the process of transmitting message data to the first device according to the state identification information. In some other embodiments, when the message queue is in a congested state, the routing node may record the IP address of the current routing node in the forward message data to obtain updated forward message data, so that after the second device receives the forward message data, it can determine which nodes are in a congested state in the process of transmitting message data to the first device according to the recorded IP address.

[0052] In some embodiments, when the message queue is in a normal transmission state, the server may also record target information used to characterize the normal transmission state in the forward message data, so that the second device can better understand the transmission status information during the message data transmission process to the first device based on the status identification information in the forward message data.

[0053] Step 208: Send the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information.

[0054] Among them, the message data transmission parameters refer to the parameters used to control the transmission of message data. In the case where the first device is a server and the second device is a terminal, the message data transmission parameters for message data transmission to the first device are used to control the transmission of ACK messages sent by the terminal, and specifically can be parameters for controlling the reply frequency of ACK messages and parameters for controlling the execution of redundant packet sending operations. In the case where the first device is a terminal and the second device is a server, the message data transmission parameters for message data transmission to the first device are used to control the transmission of traffic messages sent by the server, and specifically can be the sending window cwnd or the sending rate pacing_rate.

[0055] Specifically, if there are other routing nodes next to the current routing node, the current routing node will send the updated forward message data to the routing node of the next hop. After the routing node of the next hop receives the updated forward message data, it can update the forward message data again by executing steps 202 to 206 until the forward message data reaches the routing node of the last hop. After executing steps 202 to 206, the routing node of the last hop sends the updated message data to the second device. After receiving the forward message data, the second device can determine the message data transmission parameters when transmitting the message data to the first device according to the target information in the forward message data.

[0056] In the above data transmission method, the routing node receives message data sent by the first device and whose destination address is the second device and determines that the message data is forward message data, determines that the message data sent from the second device to the first device is reverse message data and determines the message queue where the reverse message data is located. When the message queue is in a congested state, the target information used to characterize the congestion state is recorded in the forward message data to obtain updated forward message data, and sends the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information. Since the target information can be recorded in the forward message data, the first device can perceive the congestion state in the reverse message data sending process in advance, so that the message data transmission parameters can be adjusted in time according to the congestion state, which not only improves the performance of data transmission, but also avoids updating the equipment, greatly saving the cost overhead caused by updating the equipment.

[0057] In one embodiment, when a message queue is in a congested state, target information used to characterize the congested state is recorded in the forward message data to obtain updated forward message data, including: when the message queue is in a congested state, determining state identification information corresponding to the congested state; recording the state identification information in the forward message data to obtain updated forward message data.

[0058] The state identification information corresponding to the congestion state is identification information that can be used to identify the congestion state, for example, it can be binary 1. The state identification information corresponding to the normal transmission state is identification information that can be used to identify the normal transmission state, for example, it can be binary 0.

[0059] Specifically, when the first device sends forward message data, it can reserve a field in the forward message data for recording status identification information. The reserved field can be in the extension field of the message header or in the payload of the message. After receiving the forward message data, the routing node can record the target information used to characterize the congestion state in the reserved field when it determines that the message queue where the reverse message data is located is in a congested state, thereby obtaining updated forward message data.

[0060] In some specific embodiments, when the first device sends forward message data, it may reserve a field in the forward message data for recording the state identification information corresponding to the congestion state, so that the routing node may record the state identification information corresponding to the congestion state in the field. In some other embodiments, when the first device sends forward message data, it may also reserve a field in the forward message data for recording the state identification information corresponding to the normal transmission state, so that the routing node may record the state identification information corresponding to the normal transmission state in the field.

[0061] In this embodiment, when the message queue is in a congested state, the state identification information corresponding to the congested state is determined, and the state identification information is recorded in the forward message data to obtain updated forward message data. By recording the state identification information, the congestion state of each routing node can be accurately reflected.

[0062] In one embodiment, the forward message data includes a first target field for recording status identification information; the status identification information is recorded in the forward message data to obtain updated forward message data, including: when the current value of the first target field is less than the maximum value of the first target field, the numerical value in the status identification information and the current value of the first target field are added to obtain updated forward message data; the method also includes: when the current value of the first target field is greater than or equal to the maximum value of the first target field, the current value of the first target field is kept unchanged.

[0063] In this embodiment, the first device reserves a first target field in the forward message data sent for recording the state identification information. The initial value of the first target field is binary 0. The first target field occupies a preset number of bits. For example, the first target field may occupy 4 bits, and the initial value of the first target field is 0000. The state identification information corresponding to the congestion state may be 1. At each routing node, when the message queue where the reverse message data is located is in a congested state, the routing node may determine whether the current value of the first target field has reached a maximum value. If it has not reached the maximum value, the current value of the first target field and the value of the state identification information corresponding to the congestion state may be added to update the current value of the first target field. When the current value of the first target field reaches the maximum value, the routing node no longer updates the current value of the first target field. At this time, even if the message queue where the reverse message data is located in the current routing node is in a congested state, the current routing node keeps the current value of the first target field unchanged.

[0064] In the above embodiment, the congestion status is recorded by adding the numerical value in the status identification information and the current value of the first target field, and the current value of the first target field is kept unchanged when the current value of the first target field reaches the maximum value, which can save the width occupied by the message data transmission process and improve the message data transmission efficiency.

[0065] In one embodiment, the data transmission method also includes: when the message queue is in a congested state, obtaining the Internet Protocol address of the routing node where the message queue is located; recording the status identification information in the forward message data to obtain updated forward message data, including: recording the status identification information and the Internet Protocol address in the forward message data to obtain updated forward message data.

[0066] Specifically, the routing node path through which the first device sends a forward data message to the second device may be asymmetric with the routing node path through which the second device sends a reverse data message to the first device. Therefore, when the message queue is in a congested state, the routing node can record the status identification information used to characterize the congestion state while also embedding the IP address of the current routing node into the forward message data. After receiving the forward message data, the second device can determine whether a congested message queue will be encountered in the routing node path for transmitting message data to the first device based on the recorded status identification information and IP address, thereby adjusting the message data transmission parameters in a timely manner according to the congestion state.

[0067] In the above embodiment, when the message queue where the reverse message data is located is in a congested state, by recording the IP address of the routing node in the forward message data, the second device can accurately determine the message data transmission status during the reverse message data sending process when the upstream and downstream node paths are asymmetric.

[0068] In some embodiments, the first device is a server, the second device is a terminal, the forward message data is a flow message sent from the server to the terminal, and the reverse message data is a confirmation message for the terminal to confirm the flow message sent by the server. Specifically, in this case, the routing node records the congestion status of the message queue where the uplink ACK message is located in the downlink flow message. When the downlink flow message reaches the terminal, the terminal can adjust the transmission parameters of the ACK message in time according to the congestion status recorded in the flow message to reduce the congestion of the uplink ACK message. In addition, when the routing node receives the ACK message returned by the terminal, it can also record the congestion status of the message queue where the downlink flow message is located in the ACK message, so that the server can adjust the transmission parameters of the flow message in time according to the congestion status recorded in the ACK message to reduce the congestion of the downlink flow message.

[0069] In some other embodiments, the first device is a terminal, the second device is a server, the forward message data is a confirmation message for the terminal to confirm the traffic message sent by the server, and the reverse message data is the traffic message sent by the server to the terminal. Specifically, in this case, the routing node records the congestion status of the message queue where the downstream traffic message is located in the upstream ACK message. When the downstream traffic message reaches the server, the server can adjust the transmission parameters of the traffic message in time according to the congestion status recorded in the ACK message to reduce the congestion of the downstream traffic message. In addition, when the routing node receives the traffic message sent by the server, it can also record the congestion status of the message queue where the upstream ACK message is located in the traffic message, so that the terminal can adjust the transmission parameters of the ACK message in time according to the congestion status recorded in the traffic message to reduce the congestion of the upstream ACK message.

[0070] In summary, through the data transmission method provided in the embodiment of the present application, the congestion status of the routing node can quickly reach the data sending end (i.e., the server) through the uplink ACK message, and quickly adjust the traffic transmission parameters; the congestion status of the routing node can quickly reach the data receiving end (i.e., the terminal) through the downlink traffic message, and quickly adjust the ACK transmission parameters. For example, Figure 4As shown, if the cloud server encounters network congestion at routing node R2 while sending a traffic message (such as message 100) to a user terminal, the congestion status can be "incidentally" carried to the cloud server through the ACK message of the previously sent traffic message (such as message 10), thereby avoiding excessive delay consumption caused by the network congestion status first reaching the user terminal and then returning to the cloud server.

[0071] In one embodiment, Figure 5 As shown, a data transmission method is provided, which is applied to Figure 1 The routing node 106 in FIG. 1 is used as an example for explanation. Figure 5 , the data transmission method comprises the following steps:

[0072] Step 502: Receive message data sent by the first device and whose destination address is the second device, and determine that the message data is forward message data.

[0073] Step 504: Determine the network status of the terminal according to the forward message data.

[0074] The network status is information used to characterize whether the network is in a weak network environment.

[0075] Step 506: when the network status indicates that the terminal is in a weak network environment, determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located.

[0076] Step 508: When the message queue is in a congested state, target information for characterizing the congested state is recorded in the forward message data to obtain updated forward message data.

[0077] Step 510: Send the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information.

[0078] Step 512: When the network status indicates that the terminal is in a normal network environment, forward message data is sent to the second device, so that the second device transmits message data to the first device according to the current message data transmission parameters.

[0079] From the perspective of cloud service providers, there is an obvious "long tail effect" in the existing service quality, that is, the vast majority of users can enjoy a good service experience; only a small number of users often encounter video freezes, screen distortion, mosaics, etc. (taking audio and video as an example). At present, various CDN manufacturers use various transmission protocols and congestion control algorithms to achieve "general optimization" of traffic transmission performance, but lack special means to optimize the small number of users with poor service experience. In fact, the service experience of these users often becomes a bottleneck factor that restricts various CDN manufacturers from further improving their service performance.

[0080] The small number of users with poor service experience are often in a "weak network" environment, which has the characteristics of low throughput, high latency, and high packet loss rate. In the relevant technology, whether network congestion and other phenomena occur is determined based on the message confirmation (ACK) message fed back by the user side, but it is ignored that the ACK message fed back by users in the "weak network" environment also faces the characteristics of low throughput, high latency, and high packet loss rate. In this case, the data sender cannot grasp the latest network status in time, or cannot make timely adjustments to network congestion, resulting in the packet loss rate and other QoS (Quality of Services) deterioration phenomena have remained high, and the user experience is further aggravated when the network bandwidth is insufficient.

[0081] For example, Figure 6 As shown, after receiving the traffic request from the terminal, the sender (i.e., the server) sends traffic messages to these terminals (i.e., the receivers), where the receiver 1 is in a high-performance network, and the receiver 2 is in a weak network environment. In the above example, the network quality (bidirectional) between the sender and the receiver 1 is: 10MBps bandwidth, 20ms delay, 0.5% packet loss rate; and the network quality (bidirectional) between the sender and the receiver 2 is: 1MBps bandwidth, 100ms delay, 20% packet loss rate. Without considering the retransmission message is lost again, for a packet loss data, the receiver 1 can "regain" the data after 40ms (the packet loss detection time is not considered here, the same below), while the receiver 2 has to wait for 200ms to get the data again; under different waiting times, the receivers 1 and 2 obviously have different service experiences. For audio and video services, the receiver 1 may not experience freezes, while the receiver 2 may experience screen distortion, mosaics, black screens, etc.

[0082] The main reason for the above phenomenon is that the relevant technology cannot make real-time and rapid adjustments to the weak network environment. Figure 6When congestion and packet loss occur at routing node R1, the sender will be aware of the phenomenon at the earliest after (100+t1) ms (where t1 is the delay from R1 to receiving end 2). During this process, the sender still sends traffic packets based on its "belief" that the network is not congested, which will cause more congestion and packet loss.

[0083] In this embodiment, considering that the impact of a weak network environment on user experience is a bottleneck factor restricting data transmission performance, after receiving the forward message data, the routing node determines the network status of the terminal based on the forward message data, and transmits the forward message data for a normal network environment normally to save resource overhead during the transmission process. The forward message data for a weak network environment can record the congestion status of the message queue where the reverse message data is located, thereby improving the efficiency of the data sender and receiver in obtaining the network congestion status; for different congestion states, the data sender and receiver can respectively adjust the corresponding traffic transmission and message reply strategies.

[0084] In the above embodiment, by performing differentiated data transmission for weak network environments and normal network environments, it is possible to save resource overhead while improving the response speed of the data sender and receiver to congestion conditions in weak network environments, which is beneficial to optimizing the "long tail effect" of cloud service business experience and improving the core factors that restrict the business performance of CDN manufacturers.

[0085] In one embodiment, the network status of the terminal is determined according to the forward message data, including: when the forward message data includes a second target field for indicating the network status of the terminal and the current value of the second target field is a first value, determining that the network status of the terminal is a first state; the first state indicates that the terminal is in a weak network environment; when the forward message data includes a second target field for indicating the network status of the terminal and the current value of the second target field is a second value, determining that the network status of the terminal is a second state; the second state indicates that the terminal is in a normal network environment.

[0086] Specifically, when the first device sends the forward message data, it may reserve a second target field in the forward message data for indicating the network status of the terminal. The second target field may be a first value or a second value. The first data indicates that the terminal is in a weak network environment, and the second value indicates that the terminal is in a normal network environment. The first value may be, for example, 1, and the second value may be, for example, 0. When the routing node receives the forward message data, if it is found that the forward message data includes the second target field for indicating the network status of the terminal and the current value of the second target field is the first value, it may be determined that the terminal is in a weak network environment. If the forward message data includes the second target field for indicating the network status of the terminal and the current value of the second target field is the second value, it may be determined that the terminal is in a normal network environment.

[0087] In some embodiments, if the forward message data does not include the second target field for indicating the network status of the terminal, the routing node may assume that the terminal is in a normal network environment and perform data transmission according to a normal data transmission process.

[0088] In the above embodiment, by adding a second target field in the forward message data to identify the network environment of the terminal, the routing node can quickly learn whether the terminal is in a weak network state, thereby improving data transmission efficiency.

[0089] In one embodiment, the data transmission method further includes: determining a message queue where the forward message data is located; when the message queue where the forward message data is located is in a congested state, determining target information used to characterize that the message queue where the forward message data is located is in a congested state; when the message queue is in a congested state, recording the target information used to characterize the congested state in the forward message data to obtain updated forward message data, including: recording the target information used to characterize that the message queue where the forward message data is located is in a congested state, and the target information used to characterize that the message queue where the reverse message data is located is in a congested state in the forward message data to obtain updated forward message data. Among them, the message queue where the forward message data is located can be understood as a forward queue, and the message queue where the reverse message data is located can be understood as a negative queue or a reverse queue.

[0090] The target information used to indicate that the message queue where the forward message data is located is in a congested state may be state identification information corresponding to the congested state or the IP address of the current routing node.

[0091] Specifically, after receiving the forward message data, the routing node can record the congestion status of the bidirectional queue in the forward message data, that is, the routing node can also determine the message queue where the forward message data is located, and when the message queue where the forward message data is located is in a congested state, determine the target information used to characterize that the message queue where the forward message data is located is in a congested state (hereinafter referred to as the forward target information), and record the forward target information together with the target information characterizing that the message queue where the reverse message data is located is in a congested state (hereinafter referred to as the reverse target information) in the forward message data. After receiving the forward message data, the second device can adjust the data transmission parameters of the reverse message data sent to the first device according to the reverse target information recorded in the forward message data, and can carry the forward target information in the reverse message data sent to the first device. The first device can obtain the congestion situation in the process of sending message data in the historical time period according to the forward target information, and thus can adjust the message data transmission parameters according to the congestion situation in the historical time period.

[0092] In a specific application, the destination address of each message data in the message queue where the forward message data is located is the IP address of the second device, and the IP address of the second device is the destination address carried in the forward message data. Therefore, after receiving the forward message data, the routing node can determine the message queue where the forward message data sent to the first device is located based on the destination address carried in the forward message data.

[0093] In the above embodiment, by recording the congestion situation of the message queue where the forward message data is located in the forward message data, the congestion situation in the process of sending message data in the historical time period of the first device can be recorded, so that the first device can adjust the message data transmission parameters according to the congestion situation in the historical time period.

[0094] In one embodiment, Figure 7 As shown, a data transmission method is provided, which is applied to Figure 1 Taking the second device 104 in the example as an example, the method includes the following steps:

[0095] Step 702: Receive message data sent by the first device and whose destination address is the second device, and determine that the message data is forward message data.

[0096] Specifically, the message data sent by the first device can eventually reach the second device after being forwarded by the routing node. The second device receives the message data and determines that the message data is forward message data.

[0097] Step 704, when there is target information in the forward message data, determine the queue state of the first target message queue in the first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is the message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes.

[0098] Specifically, when the target information is obtained from the forward message data, it means that in the routing node that forwards the forward message data, the message queue where the reverse message data is located is in a congested state, but the routing node that forwards the forward message data and the routing node that the next reverse message data will pass through may be the same or may be different. Therefore, when the second device obtains the target information, it needs to determine whether the message queue where the reverse message data is located in the queue status of the routing node that the reverse message data is to pass through is in a congested state based on the target information.

[0099] In a specific application, if the uplink routing node path and the downlink routing node path are symmetrical, the routing node that forwards the forward message data and the routing node that the subsequent reverse message data passes through are the same. At this time, the second device can determine that the queue state of the first target message queue for transmitting the reverse message data in the first target routing node is a congested state. For example, refer to Figure 4 The downlink routing node path that the traffic message sent from the server to the terminal passes through is R1-R2-R3, and the uplink routing node path that the ACK message sent from the terminal to the server passes through is R3-R2-R1. The uplink routing node path and the downlink routing node path are symmetrical.

[0100] In some embodiments, if the uplink routing node path and the downlink routing node path are asymmetric, the second device can determine whether a congested message queue will be encountered during the reverse transmission of message data based on the target information, and if so, it can be determined that the first target message queue for transmitting reverse message data in the first target routing node is in a congested state. Optionally, when the target information is the IP address of the routing node where the congested queue is located, the second device can compare the IP address of the routing node that the reverse message data is to pass through with the IP address in the target information, and if the IP address of the routing node that the reverse message data is to pass through contains an IP address that is consistent with the IP address in the target information, it is determined that the first target message queue for transmitting reverse message data in the first target routing node is in a congested state. For example, if a forward message data passes through three routing nodes, namely R1, R2 and R3, where the message queues where the reverse message data is located in routing nodes R2 and R3 are both in a congested state, then routing nodes R2 and R3 can both record their own IP addresses in the forward message data. After receiving the forward message data, the second device compares the IP addresses of the routing nodes R4, R2 and R3 through which the reverse message data is to be sent with the IP addresses recorded in the forward message data. If it is found that the IP addresses of two routing nodes are the same, it can be determined that the sending of the reverse message data will pass through the congested queue, that is, the queue state of the first target message queue used to transmit the reverse message data in the first target routing node is a congested state.

[0101] Step 706: When the queue state is a congested state, adjust the message data transmission parameters when transmitting the message data to the first device.

[0102] Step 708: Transmit the message data to the first device according to the adjusted message data transmission parameters.

[0103] The above-mentioned data transmission method receives message data sent by the first device and whose destination address is the second device and determines that the message data is forward message data. When there is target information in the forward message data, the queue state of the first target message queue in the first target routing node is determined according to the target information, wherein the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes. When the queue state is a congested state, the message data transmission parameters are adjusted, and the message data transmission is performed to the first device according to the adjusted message data transmission parameters. Since the target information can be recorded in the forward message data, the first device can perceive the congestion state in the reverse message data sending process in advance, so that the message data transmission parameters can be adjusted in time according to the congestion state, which not only improves the performance of data transmission, but also avoids updating the equipment, greatly saving the cost overhead caused by updating the equipment.

[0104] In one embodiment, the queue state of the first target message queue in the first target routing node is determined according to the target information, including: when there are multiple first target routing nodes, determining the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state according to the target information; and determining the queue state of the first target message queue that is used to transmit reverse message data according to the cumulative number.

[0105] In this embodiment, when the first device sends forward message data, it can reserve a first target field in the message data, the first target field is a binary value, and the initial value is 0. In the process of sending the forward message data, when each routing node receives the forward message data, if the queue state of the message queue where the reverse message data is located is a congested state, the routing node can determine that the state identification information of the congested state is 1, and add the current value of the first target field and the value 1 in the state identification information to obtain the updated forward message data, so that when the forward message data reaches the second target device, the second device can know the cumulative number of routing nodes in which the message queue where the reverse message data is located is in a congested state among the routing nodes that forward the forward message data according to the target information in the forward message data. If the routing node path that the reverse message data to be sent by the second device is to pass through and the path of the received routing node are symmetrical, then the cumulative number is the cumulative number of the first target message queues in each first target routing node that are used to transmit the reverse message data and are in a congested state. If the routing node path that the reverse message data to be sent by the second device will pass through and the path of the received routing nodes are not symmetrical, the IP addresses of the routing nodes whose message queues where the reverse message data are located in each routing node that forwards the forward message data are in a congested state can be obtained from the forward message data, and these IP addresses can be compared with the IP addresses of the routing node paths that the reverse message data to be sent will pass through to determine the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state.

[0106] After obtaining the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state, the second device determines the queue state of the first target message queue for transmitting reverse message data according to the cumulative number. In a specific implementation, if the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state is greater than 0, it means that the routing node through which the reverse message data to be sent by the second device is to pass contains a congested queue, and the queue state of the first target message queue for transmitting reverse message data can be determined to be a congested state; if the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state is equal to 0, it means that the routing node through which the reverse message data to be sent by the second device is to pass contains a congested queue, and the queue state of the first target message queue for transmitting reverse message data can be determined to be a normal transmission state.

[0107] In the above embodiment, when there are multiple first target routing nodes, the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state can be determined based on the target information, thereby determining the queue state based on the cumulative number, thereby improving the efficiency of determining the queue state.

[0108] In one embodiment, according to the target information, the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state is determined, including: according to the target information, determining the first cumulative number of second target message queues in each second target routing node that the forward message data passes through and are in a congested state; obtaining the Internet Protocol address of the second target routing node where the second target message queue is located from the forward message data, and determining the second cumulative number of second target routing nodes that the reverse message data will not pass through according to the Internet Protocol address; subtracting the second cumulative number from the first cumulative number to obtain the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state.

[0109] In this embodiment, if the routing node path that the reverse message data to be sent by the second device is to pass through and the path of the received routing node are not symmetrical, and the forward message data received by the second device carries the IP address of the routing node in which the message queue where the reverse message data is located in each routing node that forwards the forward message data is in a congested state, then the second device can determine, based on the target information, the first cumulative number of second target message queues that are used to transmit reverse message data and are in a congested state in each second target routing node that the forward message data passes through, and then obtain the IP address of the second target routing node where each second target message queue is located from the forward message data, determine the second cumulative number of second target routing nodes that the reverse message data will not pass through based on these IPs, and subtract the second cumulative number from the first cumulative number to obtain the final cumulative number.

[0110] For example, assuming that the target information is recorded through the first target field, and the value of the first target field in the forward message data received by the second device is 0011, it can be determined that the first cumulative number is 3. If the IP addresses of the second routing nodes R1, R2 and R3 are recorded in the forward message data, and the first routing nodes through which the reverse message data to be sent by the second device is to pass are R2, R3 and R4, then the second cumulative number is 1. Finally, the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state is 2. Based on the cumulative number, it can be determined that the queue state of the first target message queue used to transmit reverse message data is a congested state.

[0111] In the above embodiment, the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state is determined by determining the first cumulative number and the second cumulative number, and the obtained cumulative number is more accurate.

[0112] In one embodiment, the data transmission method also includes: obtaining target information within a historical time period from forward message data; the target information within the historical time period is obtained by the first device from the received message data and recorded in the forward message data; according to the target information within the historical time period, determining the historical queue state of the message queue used to transmit reverse message data in the routing node through which the message data is transmitted to the first device within the historical time period; when the historical queue state is a congested state, adjusting the message data transmission parameters; and transmitting the message data to the first device according to the adjusted message data transmission parameters.

[0113] In this embodiment, during the historical time period, when the routing node receives reverse message data, it can also record in the reverse message data the target information used to characterize the congestion state of the message queue where the reverse message data is located, so that when the first device receives the reverse message data, it can carry the target information in the forward message data sent, and when the second device receives the forward message data, it can also obtain the target information within the historical time period from the forward message data, and determine the historical queue state of the message queue used to transmit reverse message data in the routing node through which the message data is transmitted to the first device during the historical time period according to the target information within the historical time period, and when the historical queue state is a congestion state, adjust the message data transmission parameters, and transmit the message data to the first device according to the adjusted message data transmission parameters.

[0114] In this embodiment, since the message data transmission parameters can also be adjusted according to the historical queue status, the flexibility in the process of determining the message data transmission parameters is improved.

[0115] In one embodiment, the first device is a server, the second device is a terminal, the forward message data is a traffic message sent from the server to the terminal, and the reverse message data is a confirmation message in which the terminal confirms the traffic message sent by the server; or the first device is a terminal, the second device is a server, the forward message data is a confirmation message in which the terminal confirms the traffic message sent by the server, and the reverse message data is the traffic message sent from the server to the terminal.

[0116] In one embodiment, the data transmission method further comprises the following steps:

[0117] 1. Receive message data sent by a first device and whose destination address is a second device, and determine that the message data is forward message data.

[0118] 2. Determine the network status of the terminal based on the forward message data.

[0119] 3. When the network status indicates that the terminal is in a weak network environment and when there is target information in the forward message data, the queue status of the first target message queue in the first target routing node is determined according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes.

[0120] 4. When the queue status is congested, adjust the message data transmission parameters.

[0121] 5. Perform message data transmission to the first device according to the adjusted message data transmission parameters.

[0122] 6. When the network status indicates that the terminal is in a normal network environment, transmit the message data to the first device according to the current message data transmission parameters.

[0123] In the above embodiment, differentiated processing is performed for weak network environments and normal network environments, which can save resource overhead while improving the response speed of the data sender and receiver to congestion conditions in weak network environments, which is beneficial to optimizing the "long tail effect" of cloud service business experience and improving the core factors that restrict the business performance of CDN manufacturers.

[0124] In a specific embodiment, a data transmission method is provided, wherein one of the first device and the second device is a cloud server and the other is a terminal. This embodiment can solve the problems of low user experience due to the "weak network" environment and the "long tail effect" of the quality of cloud service providers in the business scenarios of related technologies. In this embodiment, the routing node performs a two-way queue congestion mark for messages sent to or from the weak network environment, thereby improving the response speed of the data sender and receiver to the "weak network" congestion, which is conducive to optimizing the performance long tail of the end-to-cloud business and improving the key user experience that affects the CDN evaluation. Reference Figure 8 In this embodiment, the following steps are specifically included:

[0125] Step 802: The cloud server determines whether the user terminal is in a weak network environment. If yes, a flow message carrying a weak network identifier is sent; if no, a normal operation is performed.

[0126] Step 804: The routing node carries the congestion status of the uplink and downlink queues.

[0127] Specifically, after receiving a traffic message from the cloud server, the routing node detects whether the message has a weak network identifier; if so, it detects whether the forwarding queue (downlink queue) and reply queue (uplink queue) of the message are (about to be) congested; if so, it adds a corresponding congestion identifier to the traffic message.

[0128] Step 806: The terminal adjusts ACK sending parameters according to the uplink queue status in the traffic message.

[0129] Specifically, after receiving the traffic message from the cloud server, the terminal checks whether it carries a weak network identifier; if so, it checks whether the message carries an uplink queue congestion identifier from the routing node; if the above congestion identifier exists, the reply strategy of the ACK message is adjusted, and the weak network identifier and the bidirectional queue congestion identifier of the routing node are carried in the ACK message.

[0130] Step 808: The routing node carries the congestion status of the uplink and downlink queues.

[0131] Specifically, when the routing node receives the ACK message fed back from the user terminal, it adds a two-way queue congestion indicator to the message containing the weak network indicator. The two-way congestion feedback mechanism designed in this application can well solve the problem of slow traffic transmission adjustment and poor user experience in a weak network environment, and is also of great significance for optimizing the existing business caused by the poor user experience due to the weak network environment.

[0132] Step 810: The cloud server adjusts the traffic message sending parameters according to the downlink queue status in the traffic message.

[0133] Specifically, the cloud server adjusts the traffic transmission parameters (such as the sending window or the sending rate) corresponding to the traffic message according to the congestion indicator carried in the ACK message.

[0134] Step 812, determine the interval.

[0135] Specifically, the cloud server determines whether the set time interval has been reached. If so, the step of "the cloud server determines whether the user terminal is in a weak network environment" is executed. If not, the step of "sending a traffic message carrying a weak network identifier" is continued.

[0136] In a specific embodiment, the present application also provides an application scenario, in which a terminal is installed with a video application. For weak network environments, the data sending end in the related technology cannot quickly adjust the transmission strategy for network congestion, which leads to an increase in traffic packet loss and a decrease in effective throughput, which makes the user side often encounter video freezes, screen distortion, mosaics and other phenomena when using the video application. In this embodiment, the routing node performs a device congestion identification operation on traffic messages sent to or from a weak network environment, so as to achieve rapid adjustment of the transmission parameters of traffic messages and reply messages, which greatly improves the response speed of network congestion in a weak network environment, is conducive to optimizing the long-tail effect of end-to-cloud services, and enhances the competitiveness of cloud service providers. And because no equipment updates are required, the cost overhead is significantly reduced. In this application scenario, the data transmission method of the present application mainly includes the following steps:

[0137] (1) The cloud server (sender) determines whether each terminal is in a weak network environment based on the network quality, and carries a weak network mark in the traffic message sent to the terminal in the weak network environment. Specifically:

[0138] 1) The time points at which the cloud server determines whether the terminal of each session is in a weak network environment include but are not limited to the following:

[0139] a) Make a judgment every T, where T can be configured by the administrator and reflected in the configuration manual; or T is determined by the RTT (Round-Trip Time) of the session, for example, T = a*RTT means that the cloud server judges whether the terminal is in a weak network environment every a RTT;

[0140] b) Make a judgment every a certain number N of messages, where N can be configured by the administrator and reflected in the configuration manual; or N is determined by the sending window cwnd of the current session, for example, N = b*cwnd means that the server judges whether the terminal is in a weak network environment every b cwnd number of messages;

[0141] c) At the beginning of the session, the cloud server cannot make a judgment based on the above time interval T or the number of messages N. Therefore, it can judge whether it is in a weak network environment based on the quality of the terminal's historical sessions. That is, when the terminal establishes a connection with the cloud server, the cloud server determines whether it is in a weak network environment by querying the network quality of the historical sessions corresponding to the terminal IP (such as the session 5 minutes ago);

[0142] 2) The cloud server determines whether the terminal of each session is in a weak network environment. The network quality includes but is not limited to: throughput Thput, delay delay, and packet loss rate loss_rate. The specific judgment conditions are as follows:

[0143] a) Sort all sessions from high to low according to the throughput Thput, and take the last K% of sessions to form a set Set_thput_k;

[0144] b) Sort all the sessions by delay from low to high, and take the last K% of the sessions to form a set Set_delay_k;

[0145] c) Sort all sessions from low to high according to the packet loss rate loss_rate, and take the last K% of sessions to form a set Set_loss_k;

[0146] d) K can be configured by the administrator and reflected in the configuration manual; by default, K = 10;

[0147] e) Take the union of the above three sets to obtain the set Set_weak, as shown in formula (1):

[0148] Set_weak = Set_thput_k ∩ Set_delay_k ∩ Set_loss_k (1)

[0149] f) The terminal corresponding to the session in Set_weak is judged as a terminal in a weak network environment, and the following step 3) is executed;

[0150] 3) The cloud server adds a weak network identifier Mark_weak to the traffic message Pkt_traffic sent to the terminal in the weak network environment, and reserves the relevant downlink queue congestion identifier Mark_cong_down field and the uplink queue congestion identifier Mark_cong_up, as follows:

[0151] a) The weak network marker Mark_weak and the congestion markers Mark_cong_down and Mark_cong_up are located in the extension field of the message header, or in the payload of the message;

[0152] b) The weak network mark Mark_weak occupies 1 bit. When its value is binary 1, it indicates that the terminal corresponding to the message is in a weak network environment;

[0153] c) Congestion marks Mark_cong_down and Mark_cong_up occupy 4 bits respectively, and their initial values ​​are both binary 0000;

[0154] d) The cloud server sends the Pkt_traffic message to the network until it reaches the corresponding terminal;

[0155] (2) After receiving the traffic message Pkt_traffic from the cloud server, the routing node performs differentiated message processing operations according to whether the corresponding terminal is in a weak network environment, as follows:

[0156] 1) The routing node detects whether Pkt_traffic contains the Mark_weak flag;

[0157] 2) If Mark_weak is not included or the Mark_weak value is binary 0, the message is forwarded to the next-hop network node according to the existing forwarding mechanism until it reaches the corresponding terminal;

[0158] 3) If Mark_weak is included (i.e., the Mark_weak value is binary 1), perform the following operations:

[0159] a) According to the destination address dst of the Pkt_traffic message, obtain whether the forwarding queue (downlink queue) is in (or about to be in) a congested state Cong_down (the value is binary 0 or 1, where 1 represents that the queue is in or about to be in a congested state);

[0160] b) According to the source address src of the Pkt_traffic message, obtain whether the corresponding ACK forwarding queue (uplink queue) is in (or about to be in) a congested state Cong_up (the value is binary 0 or 1, where 1 represents that the queue is in or about to be in a congested state);

[0161] c) The intermediate router updates the Mark_cong_down and Mark_cong_up flags of the Pkt_traffic message according to the obtained Cong_down and Cong_up, respectively. The updating method is shown in formulas (2) and (3):

[0162] Mark_cong_down = Mark_cong_down + Cong_down (2)

[0163] Mark_cong_up = Mark_cong_up + Cong_up (3)

[0164] Formulas (2) and (3) indicate that Mark_cong_down and Mark_cong_up respectively record whether the downlink and uplink queues recorded during the forwarding process of the traffic packet are in (or about to be in) a congested state;

[0165] d) If Cong_down = 1, the routing node can embed its own IP address (IP_down_i) into the Pkt_traffic message; if Cong_up = 1, the routing node can embed its own IP address (IP_up_i) into the Pkt_traffic message; Step d) is optional embedded information used by the sender or receiver to distinguish the congestion information of the upstream and downstream queues;

[0166] e) When the Mark_cong_down or Mark_cong_up flag is updated to the maximum value (ie, the value is binary 1111), the above steps c) and d) are no longer executed;

[0167] f) The intermediate router forwards the Pkt_traffic message to the next-hop routing node, and executes the above step (2) at the next-hop routing node until the message reaches the terminal;

[0168] (3) After receiving the traffic message Pkt_traffic sent by the cloud server, the terminal performs differentiated message feedback operations according to whether the message carries a weak network flag and a congestion flag, as follows:

[0169] 1) Check whether the Pkt_traffci message carries the weak network identifier Mark_weak; if not (that is, Mark_weak is not 1), execute the following step 2);

[0170] 2) Process the traffic message according to the existing method and send a message confirmation message to the cloud server;

[0171] 3) If Pkt_traffic carries a weak network identifier (i.e., the value of Mark_weak is 1), then Mark_cong_down and IP_down_i (if any) are written into the message confirmation message (Pkt_ack); and the following step 4) is executed;

[0172] 4) The terminal reads Mark_cong_up and IP_up_i (if any) in Pkt_traffic to determine whether the Pkt_ack message sent by the terminal (previously) to the cloud server will experience a "congested" uplink queue, as follows:

[0173] a) The terminal selects the routing nodes that the Pkt_ack message will not pass through from IP_up_i, and records the number of these nodes IP_up_not. It is worth mentioning that if the uplink and downlink paths between the terminal and the cloud server are symmetrical, IP_up_not = 0;

[0174] b) The terminal calculates the number of congested uplink queues experienced by Pkt_ack, Cong_queue_amount, as shown in formula (4):

[0175] Cong_queue_amount = Mark_cong_up - IP_up_not (4)

[0176] c) If Cong_queue_amount=0, the terminal executes the above step 2); if Cong_queue_amount>0, it means that the message confirmation message Pkt_ack will experience a congested uplink queue during the process of being transmitted back to the cloud server. At this time, the terminal performs one of the following operations to reduce the packet loss rate of Pkt_ack:

[0177] i. Reduce the frequency of Pkt_ack replies to prevent further congestion in the upstream queue and reduce the Pkt_ack packet loss rate;

[0178] ii. Perform redundant packet sending operation on Pkt_ack, where the number of redundant packets sent for each Pkt_ack is Cong_queue_amount, which cannot exceed the threshold Threshold_more_num. This value is configured by the administrator and declared in the configuration file;

[0179] d) The terminal sends a message confirmation message Pkt_ack to the cloud server, wherein the message carries the above-mentioned weak network identifier Mark_weak, the downlink queue congestion identifier Mark_cong_down and IP_down_i (if any), and reserves the relevant downlink queue congestion identifier Mark_cong_down_ack field and the uplink queue congestion identifier Mark_cong_up_ack;

[0180] i. The congestion markers Mark_cong_down_ack and Mark_cong_up_ack are located in the extension field of the message header, or in the payload of the message;

[0181] ii. The congestion flags Mark_cong_down_ack and Mark_cong_up_ack occupy 4 bits each, and their initial values ​​are both binary 0000;

[0182] (4) After receiving the Pkt_ack message, the router performs differentiated message processing according to whether the terminal is in a weak network environment, as follows:

[0183] 1) The routing node detects whether Pkt_ack contains the Mark_weak flag;

[0184] 2) If Mark_weak is not included or the Mark_weak value is binary 0, the message is forwarded to the next-hop network node according to the existing forwarding mechanism until it reaches the corresponding cloud server;

[0185] 3) If Mark_weak is included (i.e., the Mark_weak value is binary 1), perform the following operations:

[0186] a) Obtain whether the forwarding queue (uplink queue) is in (or about to be in) a congested state Cong_up_ack (the value is binary 0 or 1, where 1 represents that the queue is in or about to be in a congested state) according to the destination address dst of the Pkt_ack message;

[0187] b) According to the source address src of the Pkt_ack message, obtain whether the corresponding ACK forwarding queue (downlink queue) is in (or about to be in) a congested state Cong_down_ack (the value is binary 0 or 1, where 1 represents that the queue is in or about to be in a congested state);

[0188] c) The intermediate router updates the Mark_cong_up_ack and Mark_cong_down_ack identifiers of the Pkt_ack message according to the obtained Cong_up_ack and Cong_down_ack, respectively. The updating method is shown in formulas (5) and (6):

[0189] Mark_cong_up_ack = Mark_cong_up_ack + Cong_up_ack (5)

[0190] Mark_cong_down_ack = Mark_cong_down_ack + Cong_down_ack (6)

[0191] Formulas (5) and (6) indicate that Mark_cong_up_ack and Mark_cong_down_ack respectively record whether the uplink and downlink queues recorded during the forwarding process of the ACK message are in (or about to be in) a congested state;

[0192] d) If Cong_up_ack=1, the routing node can embed its own IP address (IP_up_ack_i) into the Pkt_ack message; if Cong_down_ack=1, the routing node can embed its own IP address (IP_down_ack_i) into the Pkt_ack message; Step d) is optional embedded information used by the sender or receiver to distinguish the congestion information of the uplink and downlink queues;

[0193] e) When the Mark_cong_up_ack or Mark_cong_down_ack flag is updated to the maximum value (ie, the value is binary 1111), the above steps c) and d) are no longer executed;

[0194] 4) The intermediate router forwards the Pkt_ack message to the next-hop routing node, and executes the above step (4) at the next-hop routing node until the message reaches the cloud server;

[0195] (5) After receiving the Pkt_ack message, the cloud server adopts differentiated congestion control strategies according to whether the message carries the congestion mark Mark_cong, as follows:

[0196] 1) If Pkt_ack carries a weak network identifier (i.e., the Mark_weak value is 1), Mark_cong_up_ack and IP_up_ack_i (if any) are sent to the corresponding terminal through the next traffic message Pkt_traffic or a separate control message Pkt_ctl;

[0197] 2) The cloud server reads Mark_cong_down_ack and IP_down_ack_i (if any) in Pkt_ack to determine whether the Pkt_traffic message sent by the cloud server (previously) to the terminal will experience a "congested" downlink queue, as follows:

[0198] a) The cloud server selects the routing nodes that the Pkt_traffic message will not pass through from IP_down_ack_i, and records the number of these nodes IP_down_ack_not; if the uplink and downlink paths between the terminal and the cloud server are symmetrical, IP_down_ack_not = 0;

[0199] b) The cloud server calculates the number of downlink queues that may experience congestion in the future Pkt_traffic, Cong_queue_traffic_amount, as shown in formula (4):

[0200] Cong_queue_traffic_amount = Mark_cong_down_ack -IP_down_ack_not (4)

[0201] c) The cloud server obtains the number of congested downlink queues Mark_cong_down actually experienced by the previously sent Pkt_traffic from the Pkt_ack message;

[0202] d) The cloud server performs the following operations according to the values ​​of Cong_queue_traffic_amount and Mark_cong_down:

[0203] i. If Cong_queue_traffic_amount>0 or Mark_cong_down>0, it is considered that the next Pkt_traffic may be congested or even lose packets. At this time, the cloud server actively reduces the congestion control parameters, where the congestion control parameters include the sending window cwnd or the sending rate pacing_rate;

[0204] ii. If Cong_queue_traffic_amount = 0 and Mark_cong_down = 0, the cloud server considers that the traffic packet has not yet experienced congestion in the downlink queue, and there is no need to reduce the congestion control parameters cwnd or pacing_rate;

[0205] (6) The cloud server executes step (1) at regular intervals (step (1-1)) to determine whether the current terminal is still in a weak network environment. If so, steps (2) and (6) are executed, the routing node executes steps (3) and (5), and the terminal executes step (4).

[0206] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0207] Based on the same inventive concept, an embodiment of the present application also provides a data transmission system. The implementation solution for solving the problem provided by the data transmission system is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in the data transmission system embodiment provided below can be referred to the limitations on the data transmission method above, and will not be repeated here.

[0208] In one embodiment, Fig. 9 As shown, a data transmission system 900 is provided, the system includes a first device 902, a second device 904 and at least one routing node 906, wherein:

[0209] The first device is used to send message data with the destination address being the second device;

[0210] At least one routing node is used to receive the message data and determine that the message data is forward message data; determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located, and when the message queue is in a congested state, record the target information used to characterize the congestion state in the forward message data to obtain updated forward message data;

[0211] The second device is used to receive forward message data, and when the forward message data contains target information, the queue state of the first target message queue in the first target routing node is determined according to the target information; the first target message queue is used to transmit reverse message data, the transmitted reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the transmitted reverse message data passes;

[0212] The second device is further configured to adjust message data transmission parameters when transmitting message data to the first device when the queue state is a congested state; and transmit message data to the first device according to the adjusted message data transmission parameters.

[0213] The above-mentioned data transmission system can record target information in the forward message data, so that the first device can perceive the congestion state in the reverse message data sending process in advance, and can adjust the message data transmission parameters in time according to the congestion state, which not only improves the data transmission performance, but also avoids updating the equipment, greatly saving the cost overhead brought by updating the equipment.

[0214] Based on the same inventive concept, the embodiment of the present application also provides a data transmission device for implementing the data transmission method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations on the data transmission method above, and will not be repeated here.

[0215] In one embodiment, Fig.10 As shown, a data transmission device 1000 is provided, comprising:

[0216] The message data receiving module 1002 is used to receive message data sent by the first device and whose destination address is the second device, and determine that the message data is forward message data;

[0217] The message queue determination module 1004 is used to determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located;

[0218] The message data updating module 1006 is used to record the target information used to characterize the congestion state in the forward message data when the message queue is in a congested state, and obtain the updated forward message data;

[0219] The message data sending module 1008 is used to send the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information.

[0220] In the above-mentioned data transmission device, a routing node receives message data sent by a first device and whose destination address is a second device, and determines that the message data is forward message data, determines that the message data sent from the second device to the first device is reverse message data, and determines the message queue where the reverse message data is located. When the message queue is in a congested state, target information used to characterize the congestion state is recorded in the forward message data, and updated forward message data is obtained. The updated forward message data is sent to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information. Since the target information can be recorded in the forward message data, the first device can perceive the congestion state in the reverse message data sending process in advance, so that the message data transmission parameters can be adjusted in time according to the congestion state, which not only improves the performance of data transmission, but also avoids updating the equipment, greatly saving the cost overhead brought by updating the equipment.

[0221] In one embodiment, the message data updating module is further used to determine the state identification information corresponding to the congestion state when the message queue is in a congestion state; record the state identification information in the forward message data to obtain updated forward message data.

[0222] In one embodiment, the forward message data includes a first target field for recording status identification information; the message data update module is also used to add the numerical value in the status identification information and the current value of the first target field to obtain updated forward message data when the current value of the first target field is less than the maximum value of the first target field; and to keep the current value of the first target field unchanged when the current value of the first target field is equal to the maximum value of the first target field.

[0223] In one embodiment, the data transmission device also includes: a protocol address acquisition module, which is used to obtain the Internet Protocol address of the routing node where the message queue is located when the message queue is in a congested state; a message data update module, which is also used to record the status identification information and the Internet Protocol address in the forward message data to obtain updated forward message data.

[0224] In one embodiment, the first device is a server, the second device is a terminal, the forward message data is a traffic message sent from the server to the terminal, and the reverse message data is a confirmation message in which the terminal confirms the traffic message sent by the server; or the first device is a terminal, the second device is a server, the forward message data is a confirmation message in which the terminal confirms the traffic message sent by the server, and the reverse message data is the traffic message sent from the server to the terminal.

[0225] In one embodiment, the data transmission device also includes: a network status determination module, which is used to determine the network status of the terminal based on the forward message data; when the network status indicates that the terminal is in a weak network environment, enter the step of determining that the message data sent from the second device to the first device is reverse message data; when the network status indicates that the terminal is in a normal network environment, the forward message data is sent to the second device, so that the second device performs message data transmission according to the current message data transmission parameters.

[0226] In one embodiment, a network status determination module is used to determine that the network status of the terminal is a first status when the forward message data includes a second target field for indicating the network status of the terminal and the current value of the second target field is a first value; the first status indicates that the terminal is in a weak network environment; when the forward message data includes a second target field for indicating the network status of the terminal and the current value of the second target field is a second value, the network status of the terminal is determined to be a second status; the second status indicates that the terminal is in a normal network environment; when the forward message data does not include the second target field for indicating the network status of the terminal, the network status of the terminal is determined to be the second status.

[0227] In one embodiment, the message queue determination module is also used to determine the message queue where the forward message data is located; when the message queue where the forward message data is located is in a congested state, determine the target information used to characterize that the message queue where the forward message data is located is in a congested state; the message data update module is also used to record the target information used to characterize that the message queue where the forward message data is located is in a congested state, and the target information used to characterize that the message queue where the reverse message data is located is in a congested state in the forward message data, to obtain updated forward message data.

[0228] In one embodiment, Fig.11 As shown, a data transmission device 1100 is provided, including:

[0229] The message data receiving module 1102 is used to receive message data sent by the first device and whose destination address is the second device, and determine that the message data is forward message data;

[0230] The queue state determination module 1104 is used to determine the queue state of the first target message queue in the first target routing node according to the target information when there is target information in the forward message data; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the reverse message data passes;

[0231] A transmission parameter adjustment module 1106, configured to adjust a message data transmission parameter when transmitting message data to the first device when the queue state is a congested state;

[0232] The message data sending module 1108 is used to transmit the message data to the first device according to the adjusted message data transmission parameters.

[0233] The above-mentioned data transmission device receives message data sent by the first device and whose destination address is the second device. When there is target information in the forward message data, the queue state of the first target message queue in the first target routing node is determined according to the target information, wherein the first target message queue is used to transmit reverse message data, and the reverse message data is message data sent from the second device to the first device. The first target routing node is the routing node through which the reverse message data passes. When the queue state is a congested state, the message data transmission parameters when transmitting the message data to the first device are adjusted, and the message data transmission is performed to the first device according to the adjusted message data transmission parameters. Since the target information can be recorded in the forward message data, the first device can perceive the congestion state in the reverse message data sending process in advance, so that the message data transmission parameters can be adjusted in time according to the congestion state, which not only improves the performance of data transmission, but also avoids updating the equipment, greatly saving the cost of updating the equipment.

[0234] In one embodiment, the queue status determination module is also used to determine, when there are multiple first target routing nodes, the cumulative number of first target message queues in each first target routing node that are used to transmit reverse message data and are in a congested state based on the target information; and determine the queue status of the first target message queues that are used to transmit reverse message data based on the cumulative number.

[0235] In one embodiment, the queue state determination module is further used to determine, based on the target information, a first cumulative number of second target message queues that are used to transmit reverse message data and are in a congested state in each second target routing node that the forward message data passes through; obtain, from the forward message data, the Internet Protocol address of the second target routing node where the second target message queue is located, and determine, based on the Internet Protocol address, the second cumulative number of second target routing nodes that the reverse message data will not pass through; and subtract the second cumulative number from the first cumulative number to obtain the cumulative number of first target message queues that are used to transmit reverse message data and are in a congested state in each first target routing node.

[0236] In one embodiment, the queue status determination module is also used to obtain target information within a historical time period from forward message data; the target information within the historical time period is obtained by the first device from the received message data and recorded in the forward message data; according to the target information within the historical time period, determine the historical queue status of the message queue used to transmit reverse message data in the routing node through which the message data is transmitted to the first device within the historical time period; when the historical queue status is a congestion state, adjust the message data transmission parameters; and transmit the message data to the first device according to the adjusted message data transmission parameters.

[0237] In one embodiment, the first device is a server, the second device is a terminal, the forward message data is a flow message sent from the server to the terminal, and the reverse message data is a confirmation message of the terminal confirming the flow message sent by the server; or

[0238] The first device is a terminal, the second device is a server, the forward message data is a confirmation message for the terminal to confirm the flow message sent by the server, and the reverse message data is the flow message sent by the server to the terminal.

[0239] In one embodiment, the data transmission device also includes: a network status determination module, which is used to determine the network status of the terminal based on the forward message data; when the network status indicates that the terminal is in a weak network environment, enter the step of determining the queue status of the first target message queue in the first target routing node according to the target information when there is target information in the forward message data; when the network status indicates that the terminal is in a normal network environment, perform message data transmission according to the current message data transmission parameters.

[0240] Each module in the above data transmission device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0241] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device can be used to store the sent message data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data transmission method is implemented.

[0242] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data transmission method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0243] Those skilled in the art will understand that Fig.12 , Fig.13The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0244] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the data transmission method in any of the above embodiments when executing the computer program.

[0245] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method in any of the above embodiments are implemented.

[0246] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the data transmission method in any of the above embodiments.

[0247] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0248] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0249] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0250] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data transmission method, characterized in that: The method comprises: receiving message data sent by the first device and whose destination address is the second device, and determining that the message data is forward message data; Determine that the message data sent from the second device to the first device is reverse message data, and determine the message queue where the reverse message data is located; When the message queue is in a congested state, target information for characterizing the congested state is recorded in the forward message data to obtain updated forward message data; The updated forward message data is sent to the second device, so that the second device determines, according to the target information, message data transmission parameters when transmitting the message data to the first device.

2. The method according to claim 1, characterized in that: When the message queue is in a congested state, recording target information used to characterize the congested state in the forward message data to obtain updated forward message data includes: When the message queue is in a congested state, determining state identification information corresponding to the congested state; The state identification information is recorded in the forward message data to obtain updated forward message data.

3. The method according to claim 2, characterized in that The forward message data includes a first target field for recording the status identification information; The step of recording the state identification information in the forward message data to obtain updated forward message data includes: When the current value of the first target field is less than the maximum value of the first target field, adding the value in the state identification information and the current value of the first target field to obtain updated forward message data; The method further comprises: When the current value of the first target field is equal to the maximum value of the first target field, the current value of the first target field is kept unchanged.

4. The method according to claim 2, characterized in that: The method further comprises: When the message queue is in a congested state, obtaining an Internet Protocol address of a routing node where the message queue is located; The step of recording the state identification information in the forward message data to obtain updated forward message data includes: The state identification information and the Internet Protocol address are recorded in the forward message data to obtain updated forward message data.

5. The method according to claim 1, characterized in that The first device is a server, the second device is a terminal, the forward message data is a flow message sent from the server to the terminal, and the reverse message data is a confirmation message of the terminal confirming the flow message sent by the server; or The first device is a terminal, the second device is a server, the forward message data is a confirmation message for the terminal to confirm the flow message sent by the server, and the reverse message data is the flow message sent by the server to the terminal.

6. The method according to claim 5, characterized in that The method further comprises: Determining the network status of the terminal according to the forward message data; When the network status indicates that the terminal is in a weak network environment, entering the step of determining that the message data sent from the second device to the first device is reverse message data; When the network status indicates that the terminal is in a normal network environment, the forward message data is sent to the second device, so that the second device performs message data transmission according to current message data transmission parameters.

7. The method according to claim 6, characterized in that The determining, according to the forward message data, the network status of the terminal includes: When the forward message data includes a second target field for indicating the network state of the terminal and the current value of the second target field is a first value, determining that the network state of the terminal is a first state; the first state indicates that the terminal is in a weak network environment; In a case where the forward message data includes a second target field for indicating the network state of the terminal and the current value of the second target field is a second value, determining that the network state of the terminal is a second state; the second state indicates that the terminal is in a normal network environment; In a case where the forward message data does not include a second target field for indicating the network state of the terminal, it is determined that the network state of the terminal is the second state.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Determine the message queue where the forward message data is located; In a case where the message queue where the forward message data is located is in a congested state, determining target information for characterizing that the message queue where the forward message data is located is in a congested state; When the message queue is in a congested state, recording target information used to characterize the congested state in the forward message data to obtain updated forward message data includes: The target information used to characterize that the message queue where the forward message data is located is in a congested state and the target information used to characterize that the message queue where the reverse message data is located is in a congested state are recorded in the forward message data to obtain updated forward message data.

9. A data transmission method, characterized in that: The method comprises: receiving message data sent by the first device and whose destination address is the second device, and determining that the message data is forward message data; When the forward message data contains target information, determining a queue state of a first target message queue in a first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is a routing node through which the reverse message data passes; When the queue state is a congested state, adjusting a message data transmission parameter when transmitting message data to the first device; The message data is transmitted to the first device according to the adjusted message data transmission parameters.

10. The method according to claim 9, characterized in that The step of determining, according to the target information, a queue state of a first target message queue in the first target routing node includes: When there are multiple first target routing nodes, determining, according to the target information, a cumulative number of first target message queues in each of the first target routing nodes that are used to transmit the reverse message data and are in a congested state; According to the accumulated number, a queue state of a first target message queue for transmitting the reverse message data is determined.

11. The method according to claim 10, characterized in that The step of determining, according to the target information, a cumulative number of first target message queues in each of the first target routing nodes that are used to transmit the reverse message data and are in a congested state comprises: Determine, according to the target information, a first cumulative number of second target message queues in each second target routing node through which the forward message data passes and which are used to transmit reverse message data and are in a congested state; Obtaining, from the forward message data, an Internet Protocol address of a second target routing node where the second target message queue is located, and determining, based on the Internet Protocol address, a second cumulative number of second target routing nodes that the reverse message data will not pass through; The second cumulative number is subtracted from the first cumulative number to obtain the cumulative number of first target message queues in each of the first target routing nodes that are used to transmit the reverse message data and are in a congested state.

12. The method according to claim 9, characterized in that The method further comprises: Obtaining target information within a historical time period from the forward message data; the target information within the historical time period is obtained by the first device from the received message data and recorded in the forward message data; Determine, according to the target information in the historical time period, a historical queue state of a message queue for transmitting reverse message data in a routing node through which the message data is transmitted to the first device in the historical time period; When the historical queue state is a congested state, adjusting message data transmission parameters; The message data is transmitted to the first device according to the adjusted message data transmission parameters.

13. The method according to any one of claims 9 to 12, characterized in that: The first device is a server, the second device is a terminal, the forward message data is a flow message sent from the server to the terminal, and the reverse message data is a confirmation message of the terminal confirming the flow message sent by the server; or The first device is a terminal, the second device is a server, the forward message data is a confirmation message for the terminal to confirm the flow message sent by the server, and the reverse message data is the flow message sent by the server to the terminal.

14. The method according to claim 13, characterized in that The method further comprises: Determining the network status of the terminal according to the forward message data; In the case where the network status indicates that the terminal is in a weak network environment, entering the step of determining the queue status of the first target message queue in the first target routing node according to the target information when there is target information in the forward message data; The method further comprises: When the network status indicates that the terminal is in a normal network environment, message data transmission is performed according to current message data transmission parameters.

15. A data transmission system, characterized in that: The system comprises a first device, a second device and at least one routing node, wherein: The first device is used to send message data with a destination address of the second device; The at least one routing node is used to receive the message data and determine that the message data is forward message data; determine that the message data sent from the second device to the first device is reverse message data, and determine that the message queue where the reverse message data is located is in a congested state, and record the target information used to characterize the congestion state in the forward message data to obtain updated forward message data when the message queue is in a congested state; The second device is used to receive the forward message data, and when the forward message data contains target information, determine the queue state of the first target message queue in the first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the transmitted reverse message data is message data sent from the second device to the first device, and the first target routing node is the routing node through which the transmitted reverse message data passes; The second device is further configured to adjust message data transmission parameters when transmitting message data to the first device when the queue state is a congested state; and transmit message data to the first device according to the adjusted message data transmission parameters.

16. A data transmission device, characterized in that: The device comprises: A message data receiving module, used for receiving message data sent by the first device and having a destination address of the second device, and determining that the message data is forward message data; a message queue determination module, configured to determine that the message data sent from the second device to the first device is reverse message data, and to determine a message queue in which the reverse message data is located; A message data updating module, used for recording target information used to characterize the congestion state in the forward message data when the message queue is in a congested state, so as to obtain updated forward message data; The message data sending module is used to send the updated forward message data to the second device, so that the second device determines the message data transmission parameters when transmitting the message data to the first device according to the target information.

17. A data transmission device, characterized in that: The device comprises: A message data receiving module, used for receiving message data sent by the first device and having a destination address of the second device, and determining that the message data is forward message data; a queue state determination module, configured to determine, when target information exists in the forward message data, a queue state of a first target message queue in a first target routing node according to the target information; the first target message queue is used to transmit reverse message data, the reverse message data is message data sent from the second device to the first device, and the first target routing node is a routing node through which the reverse message data passes; a transmission parameter adjustment module, configured to adjust, when the queue state is a congested state, a message data transmission parameter when transmitting message data to the first device; The message data sending module is used to transmit the message data to the first device according to the adjusted message data transmission parameters.

18. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 or 9 to 14 are implemented.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 or 9 to 14 are implemented.

20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 or 9 to 14 are implemented.