CN117614908A - Data transmission control method and device, electronic equipment and storage medium - Google Patents

Data transmission control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117614908A
CN117614908A CN202311630224.6A CN202311630224A CN117614908A CN 117614908 A CN117614908 A CN 117614908A CN 202311630224 A CN202311630224 A CN 202311630224A CN 117614908 A CN117614908 A CN 117614908A
Authority
CN
China
Prior art keywords
forwarding node
data
forwarding
data packet
network quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311630224.6A
Other languages
Chinese (zh)
Inventor
高达
康亚京
王磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202311630224.6A priority Critical patent/CN117614908A/en
Publication of CN117614908A publication Critical patent/CN117614908A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a data transmission control method, a data transmission control device, electronic equipment and a storage medium, and relates to the technical field of data communication. The method comprises the following steps: transmitting a network quality polling data packet to each forwarding node on the data transmission link; receiving network quality response data packets fed back by all forwarding nodes on a data transmission link; determining whether the transmission quality of the data transmitted by each forwarding node meets a preset transmission control condition according to the network quality response data packet fed back by each forwarding node; when the transmission quality of the first forwarding node meets the preset transmission control condition, a transmission control frame is sent to the second forwarding node so as to control the second forwarding node to send a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on the data transmission link, and the second forwarding node is an upstream node of the first forwarding node. The method and the device can avoid the problem of data transmission quality degradation caused by data congestion of the forwarding node.

Description

Data transmission control method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of data communication, and in particular relates to a data transmission control method, a data transmission control device, electronic equipment and a storage medium.
Background
Modern data center applications require high throughput up to millisecond delays and Gbps levels to meet customer needs. In the context of explosive growth of internet data, network transport for data center applications is faced with very great challenges, including congestion and queue overflow. These problems tend to result in unexpected packet loss from the network transmission, thereby compromising the performance of the network application. In order to solve the problems of packet loss and performance degradation in network transmission, many large-scale data centers have begun to adopt lossless ethernet technology, which can avoid unexpected packet loss in network transmission: the use of PFC (Priority-based Flow Control), also known as class-based flow control, in the network side is used in the network side. Is a queue-based backpressure mechanism that prevents buffer overflow from dropping packets by sending a pause frame that informs an upstream device of a forwarding device to pause sending packets.
However, when the lossless ethernet technology is adopted to perform data transmission, the problem that when a pause frame is triggered, an uncongested port in the forwarding device is stopped by an upstream device to perform data transmission and reduce the data transmission quality is faced, and therefore, a method capable of improving the data transmission quality is needed.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure provides a data transmission control method, a data transmission control device, an electronic device and a storage medium, which at least overcome the technical problem that the data transmission quality is reduced due to the fact that a forwarding node has data congestion in the related art to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, there is provided a data transmission control method including: transmitting a network quality polling data packet to each forwarding node on a data transmission link, wherein the network quality polling data packet is used for triggering each forwarding node to feed back transmission quality information of transmission data; receiving network quality response data packets fed back by all forwarding nodes on the data transmission link, wherein the network quality response data packets fed back by each forwarding node comprise: each forwarding node feeds back transmission quality information of the transmission data; determining whether the transmission quality of the data transmitted by each forwarding node meets a preset transmission control condition according to the network quality response data packet fed back by each forwarding node; when the transmission quality of a first forwarding node meets a preset transmission control condition, a transmission control frame is sent to a second forwarding node so as to control the second forwarding node to send a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on a data transmission link, and the second forwarding node is an upstream node of the first forwarding node.
In some embodiments, the sending the network quality poll packet to each forwarding node on the data transmission link includes: when a network quality polling data packet is sent to each forwarding node on a data transmission link, the network quality polling data packet is sent by a data sending end, wherein when the data sending end does not send a service data packet, the network quality polling data packet is sent to each forwarding node on the data transmission link.
In some embodiments, the sending the network quality poll packet to each forwarding node on the data transmission link includes: and periodically sending the network quality polling data packet to each forwarding node on the data transmission link.
In some embodiments, the receiving the network quality response data packet fed back by each forwarding node on the data transmission link includes: and receiving a network quality response data packet containing the transmission quality information of each forwarding node, wherein the transmission quality information comprises the data processing speed of each forwarding node and the data packet forwarding queue length of each forwarding node.
In some embodiments, the determining whether the transmission quality of the data transmitted by each forwarding node meets the preset transmission control condition according to the network quality response data packet fed back by each forwarding node includes: judging whether target network quality response data packets with the length of a data packet forwarding queue exceeding a preset length threshold exist in the network quality response data packets fed back by each forwarding node; if so, determining that the transmission quality of the transmission data of the forwarding node for transmitting the target network quality response data packet meets the preset transmission control condition.
In some embodiments, after sending the network quality poll packet to each forwarding node on the data transmission link, the method further comprises: if the number of the sent network quality polling data packets reaches a preset network quality polling data packet number threshold value and network quality response data packets fed back by any forwarding node are not received yet, determining that the data transmission link is abnormal, and outputting prompt information that the data transmission link is abnormal.
In some embodiments, when the transmission quality of the first forwarding node meets a preset transmission control condition, the sending a transmission control frame to the second forwarding node to control the data packet sent by the second forwarding node to the first forwarding node includes: acquiring priority information of a data packet sent by the second forwarding node to the first forwarding node; acquiring the occupancy rate of a forwarding queue of the data packet corresponding to the information of different priorities; comparing the acquired occupancy rate of the forwarding queue of the data packet corresponding to the different priority information with a preset occupancy rate threshold of the forwarding queue corresponding to the data packet corresponding to the different priority information; if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a corresponding preset forwarding queue occupancy rate threshold value, controlling the second forwarding node to pause sending the data packet corresponding to the priority information of which the occupancy rate of the forwarding queue reaches the corresponding preset forwarding queue occupancy rate threshold value to the first forwarding node; and if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a preset forwarding stop threshold, controlling the second forwarding node to pause sending the data packet to the first forwarding node.
In some embodiments, after controlling the second forwarding node to suspend sending data packets to the first forwarding node, the method further comprises: and when the forwarding queue occupancy rate of the data packet corresponding to the forwarding queue occupancy rate reaching the preset forwarding stop threshold in the first forwarding node is reduced to the preset forwarding start threshold, the second forwarding node is restored to send the data packet to the first forwarding node.
According to another aspect of the present disclosure, there is also provided a data transmission control apparatus including: the network quality polling data packet sending module is configured to send a network quality polling data packet to each forwarding node on the data transmission link, wherein the network quality polling data packet is used for triggering each forwarding node to feed back transmission quality information of transmission data; the network quality response data packet receiving module is configured to receive the network quality response data packet fed back by each forwarding node on the data transmission link, wherein the network quality response data packet fed back by each forwarding node comprises: each forwarding node feeds back transmission quality information of the transmission data; the node transmission quality determining module is configured to determine whether the transmission quality of the transmission data of each forwarding node meets the preset transmission control condition according to the network quality response data packet fed back by each forwarding node; and the data transmission control module is configured to send a transmission control frame to a second forwarding node when the transmission quality of the first forwarding node meets a preset transmission control condition so as to control the second forwarding node to send a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on the data transmission link, and the second forwarding node is an upstream node of the first forwarding node.
According to another aspect of the present disclosure, there is also provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the data transmission control method of any one of the above via execution of the executable instructions.
According to another aspect of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data transmission control method of any one of the above.
According to another aspect of the present disclosure, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the data transmission control method of any one of the above.
The embodiment of the disclosure provides a data transmission control method, a device, electronic equipment and a storage medium, wherein the method, the device, the electronic equipment and the storage medium trigger each forwarding node to feed back transmission quality information of transmission data by sending a network quality polling data packet to each forwarding node on a data transmission link; after receiving the network quality response data packet of the transmission quality information fed back by each forwarding node on the data transmission link, determining whether the transmission quality of the transmission data of each forwarding node meets the preset transmission control condition according to the network quality response data packet fed back by each forwarding node; when the transmission quality of any forwarding node (first forwarding node) meets the preset transmission control condition, a transmission control frame is sent to an upstream node (second forwarding node) of the forwarding node so as to control a data packet sent by the upstream node to the forwarding node.
According to the embodiment of the disclosure, the data transmission quality of each forwarding node in the data transmission link can be accurately known, so that when a certain forwarding node has data congestion, the upstream node of the forwarding node is controlled to send the data packet to the forwarding node, and the data transmission quality degradation caused by the data congestion of the forwarding node is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 is a schematic diagram showing a system configuration to which a data transmission control method in an embodiment of the present disclosure may be applied in an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a data transmission control method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a data transmitting end transmitting a network quality polling packet to a data receiving end in an embodiment of the disclosure;
Fig. 4 is a flowchart illustrating determining whether transmission quality of data transmitted by each forwarding node satisfies a preset transmission control condition in an embodiment of the present disclosure;
fig. 5 is a step diagram illustrating determining whether transmission quality of data transmitted by each forwarding node satisfies a preset transmission control condition in an embodiment of the present disclosure;
fig. 6 is a flow chart illustrating a transmission control frame being sent to a second forwarding node to control a data packet sent by the second forwarding node to a first forwarding node in an embodiment of the present disclosure;
fig. 7 is a schematic diagram of controlling a data packet sent by a second forwarding node to a first forwarding node when the first forwarding node and the second forwarding node are both switches in an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a data transmission control apparatus according to an embodiment of the disclosure;
fig. 9 is a block diagram showing a structure of an electronic device that performs a data transmission control method in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The following detailed description of embodiments of the present disclosure refers to the accompanying drawings.
Fig. 1 shows a schematic diagram of an exemplary application system architecture to which a data transmission control method in an embodiment of the present disclosure may be applied. As shown in fig. 1, the system architecture may include a server 101, a network 102, and a terminal device 103.
The medium used by the network 102 to provide a communication link between the server 101 and the terminal device 103 may be a wired network or a wireless network.
Alternatively, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible MarkupLanguage, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure sockets layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet security protocol (Internet Protocol Security, IPSec), etc. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
The terminal device 103 may be a variety of electronic devices including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, smart speakers, smart watches, wearable devices, augmented reality devices, virtual reality devices, and the like.
Alternatively, the clients of the applications installed in different terminal devices 103 are the same or clients of the same type of application based on different operating systems. The specific form of the application client may also be different based on the different terminal platforms, for example, the application client may be a mobile phone client, a PC client, etc.
The server 101 may be a server providing various services, such as a background management server providing support for devices operated by the user with the terminal device 103. The background management server can analyze and process the received data such as the request and the like, and feed back the processing result to the terminal equipment.
Optionally, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
Those skilled in the art will appreciate that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative, and that any number of terminal devices, networks, and servers may be provided as desired. The embodiments of the present disclosure are not limited in this regard.
Under the system architecture described above, the embodiments of the present disclosure provide a data transmission control method, which may be performed by any electronic device having a computing processing capability.
In some embodiments, the data transmission control method provided in the embodiments of the present disclosure may be performed by a terminal device of the above system architecture; in other embodiments, the data transmission control method provided in the embodiments of the present disclosure may be performed by a server in the system architecture described above; in other embodiments, the data transmission control method provided in the embodiments of the present disclosure may be implemented by the terminal device and the server in the system architecture in an interactive manner.
Fig. 2 shows a flowchart of a data transmission control method in an embodiment of the present disclosure, and as shown in fig. 2, the data transmission control method provided in the embodiment of the present disclosure includes the following steps:
s202, sending a network quality polling data packet to each forwarding node on the data transmission link, wherein the network quality polling data packet is used for triggering each forwarding node to feed back transmission quality information of transmission data.
The network quality polling data packet is a data packet sent by the data sending end or the network quality polling device to each forwarding node on the data transmission link, and is used for triggering each forwarding node to enable the forwarding node to acquire own transmission quality information.
In some embodiments, when the network quality poll packet is transmitted by the data transmitting end, the data transmitting end transmits the network quality poll packet to each forwarding node while in an idle state in which no traffic packet is transmitted.
In some embodiments, when the network quality polling packet is transmitted by the network quality polling device, the network quality polling device periodically transmits the network quality polling packet to each forwarding node on the data transmission link according to a preset network quality polling packet generation period.
S204, receiving network quality response data packets fed back by each forwarding node on the data transmission link, wherein the network quality response data packets fed back by each forwarding node comprise: each forwarding node feeds back transmission quality information of the transmission data.
Each forwarding node acquires own transmission quality information according to the received network quality polling data packet, wherein the transmission quality information comprises: the data processing speed of each forwarding node when forwarding data, and the length of a data packet forwarding queue of each forwarding node; after the forwarding node generates a network quality response data packet according to the transmission quality information, the network quality response data packet is sent to the data sending end,
S206, determining whether the transmission quality of the data transmitted by each forwarding node meets the preset transmission control condition according to the network quality response data packet fed back by each forwarding node.
When the preset transmission control condition is that the length of a data packet forwarding queue recorded in a network quality response data packet fed back by a forwarding node exceeds a preset length threshold; or when the number of the sent network quality polling data packets reaches a preset threshold value of the number of the network quality polling data packets, no forwarding node feeds back the network quality response data packets.
And S208, when the transmission quality of the first forwarding node meets the preset transmission control condition, transmitting a transmission control frame to a second forwarding node to control the second forwarding node to transmit a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on the data transmission link, and the second forwarding node is an upstream node of the first forwarding node.
It should be noted that, when the transmission quality of any forwarding node (i.e., the first forwarding node) on the data transmission link meets the preset transmission control condition, the length of the data packet forwarding queue in the first forwarding node is reduced by controlling the data packet sent by the second forwarding node (i.e., the upstream node of the first forwarding node) to the first forwarding node, so as to improve the transmission quality.
As an alternative embodiment, when the network quality poll packet is sent by the data sending end, a schematic diagram of the data sending end sending the network quality poll packet to the data receiving end is shown in fig. 3. Referring to fig. 3, a data transmitting end transmits a network quality polling data packet to a data receiving end through a data transmission link, after each forwarding node in the data transmission link receives the network quality polling data packet, the data transmitting end acquires own transmission quality information to construct a corresponding network quality response data packet, and transmits the corresponding network quality response data packet to the data transmitting end, so that the data transmitting end judges the transmission quality of each forwarding node according to the received network quality response data packet.
Fig. 4 is a flowchart illustrating a method for determining whether transmission quality of data transmitted by each forwarding node meets a preset transmission control condition according to an embodiment of the present disclosure, as shown in fig. 4, where the method for determining transmission quality of data transmitted by each forwarding node according to an embodiment of the present disclosure includes the following steps:
s402, judging whether a target network quality response data packet with the length of a data packet forwarding queue exceeding a preset length threshold exists in the network quality response data packets fed back by each forwarding node;
S404, if yes, determining that the transmission quality of the transmission data of the forwarding node for transmitting the target network quality response data packet meets the preset transmission control condition.
The target network quality response data packet is a transmission quality response data packet with the length of a data packet forwarding queue exceeding a preset length threshold, which indicates that more data packets are cached by a forwarding node sending the target network quality response data packet, so that data blocking is easy to generate and the transmission quality is affected.
In some embodiments, after sending the network quality poll packet to each forwarding node on the data transmission link, the data transmission control method provided in the embodiments of the present disclosure may further include: if the number of the sent network quality polling data packets reaches a preset network quality polling data packet number threshold value and network quality response data packets fed back by any forwarding node are not received yet, determining that the data transmission link is abnormal, and outputting prompt information that the data transmission link is abnormal.
The number of the sent network quality polling data packets reaches a preset network quality polling data packet number threshold, and the transmission quality response data packet fed back by any forwarding node is not received yet, so that the occurrence of abnormality of the data link can be determined, and prompt information of the occurrence of abnormality of the data transmission link can be output.
Fig. 5 is a step diagram of determining whether the transmission quality of the data transmitted by each forwarding node meets the preset transmission control condition in the embodiment of the present disclosure, as shown in fig. 5, where determining whether the transmission quality of the data transmitted by each forwarding node meets the preset transmission control condition in the embodiment of the present disclosure includes:
s502, when the task queue is idle or reaches the period of the network quality polling data packet, the network quality polling data packet is generated.
And S504, sending the network quality polling data packet through a data transmission link.
S506, judging whether the number of times of sending the network quality polling data packets reaches a preset threshold value of the number of the network quality polling data packets.
S508, the forwarding nodes in the data transmission link construct transmission quality response data packets, feed the transmission quality response data packets back to the data sending end, and forward the network quality polling data packets to the next forwarding node on the data transmission link.
Fig. 6 is a flowchart illustrating a transmission control frame being sent to a second forwarding node to control a data packet sent by the second forwarding node to a first forwarding node in an embodiment of the present disclosure, as shown in fig. 6, and the step of sending the transmission control frame to the second forwarding node to control the data packet sent by the second forwarding node to the first forwarding node in an embodiment of the present disclosure includes:
S602, acquiring priority information of a data packet sent by a second forwarding node to a first forwarding node.
Among the data packets sent by the second forwarding node to the first forwarding node, the data packet corresponding to the high priority information is prioritized over the data packet corresponding to the low priority information and is transmitted.
S604, acquiring the occupancy rate of a forwarding queue of the data packet corresponding to the information of different priorities.
When the second forwarding node sends the data packets to the first forwarding node, the data packets corresponding to the same priority information are transmitted by adopting the same forwarding queue, and the occupancy rate of the forwarding queues of the data packets corresponding to the different priority information is counted according to the occupancy rate.
S606, comparing the acquired occupancy rates of forwarding queues of the data packets corresponding to the different priority information with preset occupancy rate thresholds of forwarding queues corresponding to the data packets corresponding to the different priority information.
Before starting data transmission, setting corresponding forwarding queue occupancy rate thresholds for different priority information, and after obtaining the forwarding queue occupancy rates of the data packets corresponding to the different priority information, comparing the forwarding queue occupancy rate thresholds with the corresponding forwarding queue occupancy rate thresholds to judge whether to suspend transmission of the data packets corresponding to the priority information.
And S608, if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches the corresponding preset forwarding queue occupancy rate threshold value, controlling the second forwarding node to pause sending the data packet corresponding to the priority information of which the forwarding queue occupancy rate reaches the corresponding preset forwarding queue occupancy rate threshold value to the first forwarding node.
When the occupancy rate of the forwarding queue of the data packet corresponding to the information with different priority reaches the occupancy rate threshold of the forwarding queue corresponding to the data packet, the data transmitting end transmits a pause frame to the second forwarding node through the data transmission link so that the second forwarding node stops transmitting the data packet corresponding to the priority information to the first forwarding node.
And S610, if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a preset forwarding stop threshold, controlling the second forwarding node to pause sending the data packet to the first forwarding node.
Before starting data transmission, a forwarding stop threshold is set, and when the occupancy rate of a forwarding queue of a data packet corresponding to any priority information in the data packet sent by the second forwarding node to the first forwarding node reaches the forwarding stop threshold, the data transmission from the second forwarding node to the first forwarding node is suspended.
As an alternative embodiment, after controlling the second forwarding node to suspend sending the data packet to the first forwarding node, the first forwarding node continues sending the data packet to its downstream node, and resumes the second forwarding node to send the data packet to the first forwarding node when the first forwarding node reduces the occupancy of the forwarding queue, which itself reaches the forwarding stop threshold by sending the data packet to its downstream node, to the forwarding start threshold set before starting the data transmission.
As an alternative embodiment, fig. 7 shows a schematic diagram of controlling, when the first forwarding node and the second forwarding node are both switches, a data packet sent by the second forwarding node to the first forwarding node. The switch 1 is a second forwarding node, the switch 2 is a first forwarding node, and when the occupancy rate of forwarding queues of only the number 3 receiving queues in the switch 2 reaches a preset threshold value of occupancy rate of the forwarding queues, the order pauses the data transmission of the number 3 sending queues of the switch 1; and when the occupancy rate of the forwarding queue of the receiving queue No. 4 in the switch 2 reaches a preset transmission stop threshold value, suspending all data transmission from the second forwarding node to the first forwarding node.
In summary, in the data transmission control method provided in the embodiments of the present disclosure, a network quality polling packet is sent to each forwarding node on a data transmission link, where the network quality polling packet is used to trigger each forwarding node to feed back transmission quality information of transmission data; receiving network quality response data packets fed back by each forwarding node on a data transmission link, wherein the network quality response data packets fed back by each forwarding node comprise: each forwarding node feeds back transmission quality information of the transmission data; determining whether the transmission quality of the data transmitted by each forwarding node meets a preset transmission control condition according to the network quality response data packet fed back by each forwarding node; when the transmission quality of any forwarding node (first forwarding node) meets the preset transmission control condition, a transmission control frame is sent to an upstream node (second forwarding node) of the forwarding node so as to control a data packet sent by the upstream node to the forwarding node. According to the embodiment of the disclosure, the forwarding quality of each forwarding node in the data transmission link can be accurately obtained, and the data packet forwarded by the upstream node of each forwarding node to the forwarding node can be controlled according to the forwarding quality of different forwarding nodes, so that the purpose of guaranteeing the forwarding quality of each forwarding node is achieved. Further, the embodiments of the present disclosure reduce congestion by detecting congestion status of a data transmission link in real time by sending network quality polling packets and receiving network quality response packets fed back by a forwarding node, and dynamically changing the priority and transmission policy of the link.
Based on the same inventive concept, the embodiments of the present disclosure also provide a data transmission control device, as described in the following embodiments. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
Fig. 8 is a schematic diagram of a data transmission control apparatus according to an embodiment of the disclosure, as shown in fig. 8, where the apparatus includes:
a network quality polling packet sending module 802 configured to send a network quality polling packet to each forwarding node on the data transmission link, where the network quality polling packet is used to trigger each forwarding node to feed back transmission quality information of the transmission data;
the network quality response data packet receiving module 804 is configured to receive the network quality response data packets fed back by each forwarding node on the data transmission link, where the network quality response data packets fed back by each forwarding node include: each forwarding node feeds back transmission quality information of the transmission data;
the node transmission quality determining module 806 is configured to determine, according to the network quality response data packet fed back by each forwarding node, whether the transmission quality of the data transmitted by each forwarding node meets a preset transmission control condition;
And the data transmission control module 808 is configured to send a transmission control frame to a second forwarding node when the transmission quality of the first forwarding node meets a preset transmission control condition, so as to control the second forwarding node to send a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on the data transmission link, and the second forwarding node is an upstream node of the first forwarding node.
In some embodiments, the network quality poll packet sending module 802 is further configured to: when a network quality polling data packet is sent to each forwarding node on a data transmission link, the network quality polling data packet is sent by a data sending end, wherein when the data sending end does not send a service data packet, the network quality polling data packet is sent to each forwarding node on the data transmission link.
In some embodiments, the network quality poll packet sending module 802 is further configured to: the network quality poll data packets are periodically transmitted by the network quality poll device while the network quality poll data packets are transmitted to the respective forwarding nodes on the data transmission link.
In some embodiments, the network quality response packet receiving module 804 is further configured to: and receiving a network quality response data packet containing the transmission quality information of each forwarding node, wherein the transmission quality information comprises the data processing speed of each forwarding node and the data packet forwarding queue length of each forwarding node.
In some embodiments, the node transmission quality determination module 806 is further configured to: if a target network quality response data packet with the length of a data packet forwarding queue exceeding a preset length threshold exists in the received network quality response data packet, determining that the transmission quality of the data transmitted by the forwarding node for transmitting the target network quality response data packet meets the preset transmission control condition; if the number of the sent network quality polling data packets reaches a preset network quality polling data packet number threshold, the network quality response data packets are not received yet, and it is determined that the transmission quality of the data transmitted by at least one forwarding node on the data transmission link meets the preset transmission control condition.
In some embodiments, the data transmission control module 808 is further configured to: acquiring priority information of a data packet sent by the second forwarding node to the first forwarding node; acquiring the occupancy rate of a forwarding queue of the data packet corresponding to the information of different priorities; comparing the acquired occupancy rate of the forwarding queue of the data packet corresponding to the different priority information with a preset occupancy rate threshold of the forwarding queue corresponding to the data packet corresponding to the different priority information; if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a corresponding preset forwarding queue occupancy rate threshold value, controlling the second forwarding node to pause sending the data packet corresponding to the priority information of which the occupancy rate of the forwarding queue reaches the corresponding preset forwarding queue occupancy rate threshold value to the first forwarding node; and if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a preset forwarding stop threshold, controlling the second forwarding node to pause sending the data packet to the first forwarding node.
In some embodiments, the data transmission control module 808 is further configured to: and when the forwarding queue occupancy rate of the data packet corresponding to the forwarding queue occupancy rate reaching the preset forwarding stop threshold in the first forwarding node is reduced to the preset forwarding start threshold, the second forwarding node is restored to send the data packet to the first forwarding node.
It should be noted that, the above-mentioned network quality polling packet sending module 802, network quality response packet receiving module 804, node transmission quality determining module 806 and data transmission control module 808 correspond to S202 to S208 in the method embodiment, and the above-mentioned modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above-mentioned method embodiment. It should be noted that the modules described above may be implemented as part of an apparatus in a computer system, such as a set of computer-executable instructions.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to such an embodiment of the present disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, and a bus 930 connecting the different system components (including the storage unit 920 and the processing unit 910).
Wherein the storage unit stores program code that is executable by the processing unit 910 such that the processing unit 910 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 910 may perform the following steps of the method embodiment described above: transmitting a network quality polling data packet to each forwarding node on the data transmission link, wherein the network quality polling data packet is used for triggering each forwarding node to feed back transmission quality information of transmission data; receiving network quality response data packets fed back by each forwarding node on a data transmission link, wherein the network quality response data packets fed back by each forwarding node comprise: each forwarding node feeds back transmission quality information of the transmission data; determining whether the transmission quality of the data transmitted by each forwarding node meets a preset transmission control condition according to the network quality response data packet fed back by each forwarding node; when the transmission quality of the first forwarding node meets the preset transmission control condition, a transmission control frame is sent to a second forwarding node to control the second forwarding node to send a data packet to the first forwarding node, wherein the second forwarding node is an upstream node of the first forwarding node.
The storage unit 920 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 9201 and/or cache memory 9202, and may further include Read Only Memory (ROM) 9203.
The storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 930 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 900, and/or any devices (e.g., routers, modems, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 950. Also, electronic device 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 over the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In particular, according to embodiments of the present disclosure, the process described above with reference to the flowcharts may be implemented as a computer program product comprising: a computer program which, when executed by a processor, implements the above-described data transmission control method.
In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium, which may be a readable signal medium or a readable storage medium, having stored thereon a program product capable of implementing the above method of the present disclosure. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, the program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the description of the above embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (11)

1. A data transmission control method, characterized by comprising:
transmitting a network quality polling data packet to each forwarding node on a data transmission link, wherein the network quality polling data packet is used for triggering each forwarding node to feed back transmission quality information of transmission data;
receiving network quality response data packets fed back by all forwarding nodes on the data transmission link, wherein the network quality response data packets fed back by each forwarding node comprise: each forwarding node feeds back transmission quality information of the transmission data;
determining whether the transmission quality of the data transmitted by each forwarding node meets a preset transmission control condition according to the network quality response data packet fed back by each forwarding node;
when the transmission quality of a first forwarding node meets a preset transmission control condition, a transmission control frame is sent to a second forwarding node so as to control the second forwarding node to send a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on a data transmission link, and the second forwarding node is an upstream node of the first forwarding node.
2. The data transmission control method according to claim 1, wherein the sending the network quality poll packet to each forwarding node on the data transmission link includes:
When a network quality polling data packet is sent to each forwarding node on a data transmission link, the network quality polling data packet is sent by a data sending end, wherein when the data sending end does not send a service data packet, the network quality polling data packet is sent to each forwarding node on the data transmission link.
3. The data transmission control method according to claim 1, wherein the sending the network quality poll packet to each forwarding node on the data transmission link includes:
and periodically sending the network quality polling data packet to each forwarding node on the data transmission link.
4. The method for controlling data transmission according to claim 1, wherein said receiving the network quality response data packet fed back by each forwarding node on the data transmission link comprises:
and receiving a network quality response data packet containing the transmission quality information of each forwarding node, wherein the transmission quality information comprises the data processing speed of each forwarding node and the data packet forwarding queue length of each forwarding node.
5. The data transmission control method according to claim 4, wherein the determining whether the transmission quality of the data transmitted by each forwarding node satisfies the preset transmission control condition according to the network quality response data packet fed back by each forwarding node comprises:
Judging whether target network quality response data packets with the length of a data packet forwarding queue exceeding a preset length threshold exist in the network quality response data packets fed back by each forwarding node;
if so, determining that the transmission quality of the transmission data of the forwarding node for transmitting the target network quality response data packet meets the preset transmission control condition.
6. The data transmission control method according to claim 1, wherein after transmitting the network quality poll packet to each forwarding node on the data transmission link, the method further comprises:
if the number of the sent network quality polling data packets reaches a preset network quality polling data packet number threshold value and network quality response data packets fed back by any forwarding node are not received yet, determining that the data transmission link is abnormal, and outputting prompt information that the data transmission link is abnormal.
7. The data transmission control method according to claim 1, wherein the transmitting a transmission control frame to a second forwarding node to control a data packet transmitted by the second forwarding node to the first forwarding node includes:
acquiring priority information of a data packet sent by the second forwarding node to the first forwarding node;
Acquiring the occupancy rate of a forwarding queue of the data packet corresponding to the information of different priorities;
comparing the acquired occupancy rate of the forwarding queue of the data packet corresponding to the different priority information with a preset occupancy rate threshold of the forwarding queue corresponding to the data packet corresponding to the different priority information;
if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a corresponding preset forwarding queue occupancy rate threshold value, controlling the second forwarding node to pause sending the data packet corresponding to the priority information of which the occupancy rate of the forwarding queue reaches the corresponding preset forwarding queue occupancy rate threshold value to the first forwarding node;
and if the occupancy rate of the forwarding queue of the data packet corresponding to the different priority information reaches a preset forwarding stop threshold, controlling the second forwarding node to pause sending the data packet to the first forwarding node.
8. The data transmission control method according to claim 7, wherein after controlling the second forwarding node to suspend sending of the data packet to the first forwarding node, the method further comprises:
and when the forwarding queue occupancy rate of the data packet corresponding to the forwarding queue occupancy rate reaching the preset forwarding stop threshold in the first forwarding node is reduced to the preset forwarding start threshold, the second forwarding node is restored to send the data packet to the first forwarding node.
9. A data transmission control apparatus, comprising:
the network quality polling data packet sending module is configured to send a network quality polling data packet to each forwarding node on the data transmission link, wherein the network quality polling data packet is used for triggering each forwarding node to feed back transmission quality information of transmission data;
the network quality response data packet receiving module is configured to receive the network quality response data packet fed back by each forwarding node on the data transmission link, wherein the network quality response data packet fed back by each forwarding node comprises: each forwarding node feeds back transmission quality information of the transmission data;
the node transmission quality determining module is configured to determine whether the transmission quality of the transmission data of each forwarding node meets the preset transmission control condition according to the network quality response data packet fed back by each forwarding node;
and the data transmission control module is configured to send a transmission control frame to a second forwarding node when the transmission quality of the first forwarding node meets a preset transmission control condition so as to control the second forwarding node to send a data packet to the first forwarding node, wherein the first forwarding node is any forwarding node on the data transmission link, and the second forwarding node is an upstream node of the first forwarding node.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data transmission control method of any one of claims 1 to 8 via execution of the executable instructions.
11. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the data transmission control method according to any one of claims 1 to 8.
CN202311630224.6A 2023-11-30 2023-11-30 Data transmission control method and device, electronic equipment and storage medium Pending CN117614908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311630224.6A CN117614908A (en) 2023-11-30 2023-11-30 Data transmission control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311630224.6A CN117614908A (en) 2023-11-30 2023-11-30 Data transmission control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117614908A true CN117614908A (en) 2024-02-27

Family

ID=89947843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311630224.6A Pending CN117614908A (en) 2023-11-30 2023-11-30 Data transmission control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117614908A (en)

Similar Documents

Publication Publication Date Title
US10320945B2 (en) Using double buffering for screen sharing
US10594606B2 (en) Wired data-connection aggregation
US8478890B2 (en) System and method for reliable virtual bi-directional data stream communications with single socket point-to-multipoint capability
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
US9419900B2 (en) Multi-bit indicator set according to feedback based on an equilibrium length of a queue
US10791192B2 (en) Hybrid approach for performance enhancing proxies
CN109660467B (en) Method and apparatus for controlling flow
WO2012054347A1 (en) Communication method and server of transmission control protocol
US9509450B2 (en) Snoop virtual receiver time
CN113141314A (en) Congestion control method and equipment
US11444882B2 (en) Methods for dynamically controlling transmission control protocol push functionality and devices thereof
US11044350B1 (en) Methods for dynamically managing utilization of Nagle's algorithm in transmission control protocol (TCP) connections and devices thereof
KR101341668B1 (en) Controlling data flow through a data communications link
CN117614908A (en) Data transmission control method and device, electronic equipment and storage medium
US9450906B2 (en) Managing a messaging queue in an asynchronous messaging system
US20160065453A1 (en) Cooperatively managing role based quality of service
CN114189890A (en) Method, device, equipment and storage medium for updating network service quality model
US20220321444A1 (en) Efficient Heartbeat Mechanism for Cloud Applications
CN117692394A (en) RDMA (remote direct memory access) -supporting data transmission method, device, equipment and storage medium
CN116886627A (en) Intelligent computing network flow control method and device, electronic equipment and storage medium
CN113849756A (en) Information generation method and device, electronic equipment and computer readable medium
CN116016317A (en) Network equipment layout method, device, equipment and storage medium
CN117376212A (en) Network rate adjustment method and device, storage medium and electronic equipment
CN112714127A (en) Data encryption method, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination