CN116032853A - Flow control method, device, electronic equipment and storage medium - Google Patents

Flow control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116032853A
CN116032853A CN202211714487.0A CN202211714487A CN116032853A CN 116032853 A CN116032853 A CN 116032853A CN 202211714487 A CN202211714487 A CN 202211714487A CN 116032853 A CN116032853 A CN 116032853A
Authority
CN
China
Prior art keywords
flow control
data message
control queue
sending
value
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
CN202211714487.0A
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.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co 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 Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202211714487.0A priority Critical patent/CN116032853A/en
Publication of CN116032853A publication Critical patent/CN116032853A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application provides a flow control method, a flow control device, an electronic device and a storage medium, wherein the flow control method comprises the following steps: receiving a data message sent by a receiving end; matching the flow control queues associated with the data messages; analyzing the data message to obtain the numerical value of the window field; obtaining the residual storage capacity of the flow control queue based on the data message; comparing the remaining storage capacity of the flow control queue with the value of the window field to determine a minimum value; updating the data message based on the minimum value; and sending the modified data message to a sending end so that the sending end adjusts the sending rate based on the minimum value. The method and the device can dynamically adjust the receiving window, further enable the sending end to timely adjust the sending rate according to the maximum transmission capacity on the message transmission path, and further avoid the situation that a large number of messages are sent to the network to cause network congestion. Meanwhile, the sending rate is timely adjusted through the sending end, the possibility of network packet loss is reduced, and the waste of network resources is avoided.

Description

Flow control method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a flow control method, a flow control device, an electronic device, and a storage medium.
Background
At present, the existing flow control method comprises the following steps: the transmitting end controls the transmission of the message according to the parameters of the transmitting window swnd, the receiving window rwnd, the congestion window cwnd and the like.
However, in this flow control manner, the sending end cannot timely sense the bottleneck in the transmission path of the message, and continuously sends the message to the network, so as to cause network congestion; meanwhile, the bottleneck of the message transmission path can discard the message exceeding the sending capability of the message, so that the sending end retransmits the lost message, and unnecessary network resource waste is caused.
Disclosure of Invention
An object of the embodiments of the present application is to provide a flow control method, a device, an electronic apparatus, and a storage medium, which are used to dynamically adjust a receiving window, so that a transmitting end can timely adjust a transmitting rate according to a maximum transmission capability on a message transmission path, and further avoid a situation that a large number of messages are transmitted to a network, and network congestion is caused. Meanwhile, the sending rate is timely adjusted through the sending end, the possibility of network packet loss is reduced, and the waste of network resources is avoided.
In a first aspect, the present invention provides a flow control method, the method comprising:
receiving a data message sent by a receiving end;
matching the flow control queues associated with the data messages;
analyzing the data message to obtain a numerical value of a window field, wherein the numerical value of the window field represents the size of a receiving window of the receiving end;
obtaining the residual storage capacity of the flow control queue based on the data message;
comparing the remaining storage capacity of the flow control queue with the value of the window field to determine a minimum value;
updating the data message based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value;
and sending the modified data message to a sending end so that the sending end adjusts the sending rate based on the minimum value.
In the first aspect of the present application, a data packet sent by a receiving end is received, so that a flow control queue associated with the data packet can be matched, and further the data packet can be analyzed to obtain a value of a window field, where the value of the window field characterizes a size of a receiving window of the receiving end, and further a remaining storage capacity of the flow control queue can be obtained based on the data packet, and further a minimum value can be determined by comparing the remaining storage capacity of the flow control queue with the value of the window field, and further the data packet can be updated based on the minimum value, where in the modified data packet, the value of the window field is the minimum value, and further the modified data packet can be sent to a sending end, so that the sending end adjusts a sending rate based on the minimum value, and finally informs the sending end of network transmission capacity in real time by dynamically adjusting the size of the receiving window based on the remaining size of the flow control queue, so that the sending end can timely adjust the sending rate, and further realize that the sending end carries out control according to a network situation, thereby realizing that the sending end perceives that a network traffic is controlled, and the network congestion is not capable of sending a network congestion, and a network congestion is caused in a network, and a problem is solved.
In an optional embodiment, after the matching the flow control queue associated with the data packet, before the parsing the data packet to obtain the value of the window field, the method further includes:
and judging whether the data message is an ACK message, if the data message is the ACK message, triggering and executing the analysis of the data message to obtain the numerical value of the window field, and if the data message is not the ACK message, not triggering and executing the analysis of the data message to obtain the numerical value of the window field.
In the above optional implementation manner, by determining whether the data packet is an ACK packet, it is further possible to trigger the execution of the analysis of the data packet to obtain the value of the window field if the data packet is the ACK packet, and not trigger the execution of the analysis of the data packet to obtain the value of the window field if the data packet is not the ACK packet, so that the processing of the non-ACK packet can be avoided.
In an optional implementation manner, the matching the flow control queue associated with the data packet includes:
extracting quintuple information in the data message;
and determining the flow control queue based on the quintuple information.
In the above optional embodiment, the flow control queue may be further determined based on the quintuple information by extracting the quintuple information in the data packet.
In an optional implementation manner, the obtaining the remaining storage capacity of the flow control queue based on the data packet includes:
identifying a protocol version of the data message;
acquiring attribute information of the flow control queue;
and calculating the residual storage capacity of the flow control queue based on the attribute information of the flow control queue and the protocol version of the data message.
In the above optional embodiment, by identifying the protocol version of the data packet and acquiring the attribute information of the flow control queue, the remaining storage capacity of the flow control queue may be further calculated based on the attribute information of the flow control queue and the protocol version of the data packet.
In an alternative embodiment, the attribute information of the flow control queue includes a configuration element capacity of the flow control queue, a current used element capacity of the flow control queue, and a maximum byte number of queue elements of the flow control queue.
In an optional implementation manner, the calculation formula corresponding to the remaining storage capacity of the flow control queue based on the attribute information of the flow control queue and the protocol version of the data packet is as follows:
Q=(K-C)*(MSS);
wherein Q represents the remaining storage capacity of the flow control queue, K represents the configuration element capacity of the flow control queue, C represents the current use element capacity of the flow control queue, MSS represents the maximum byte number of the queue element storage of the flow control queue, and MSS is determined based on the protocol version of the data message.
In an alternative embodiment, when the protocol version of the data packet is IPV6, mss=mtu-60;
when the protocol version of the data message is IPV4, mss=mtu-40;
wherein, MTU represents the maximum transmission unit of the flow control queue associated network device.
In the above alternative embodiment, when the protocol version of the data packet is IPV6, the MSS may be calculated by the formula mss=mtu-60, and when the protocol version of the data packet is IPV4, the MSS may be calculated by the formula mss=mtu-40;
in a second aspect, the present invention provides a flow control device, the device comprising:
the receiving module is used for receiving the data message sent by the receiving end;
the matching module is used for matching the flow control queues associated with the data messages;
the analyzing module is used for analyzing the data message to obtain the numerical value of a window field, wherein the numerical value of the window field represents the size of a receiving window of the receiving end;
the acquisition module is used for acquiring the residual storage capacity of the flow control queue based on the data message;
the comparison module is used for comparing the residual storage capacity of the flow control queue with the numerical value of the window field so as to determine a minimum numerical value;
the updating module is used for updating the data message based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value;
and the sending module is used for sending the modified data message to a sending end so that the sending end adjusts the sending rate based on the minimum value.
According to the device of the second aspect of the application, by executing the flow control method, the data message sent by the receiving end can be received, and then the flow control queue associated with the data message can be matched, and then the value of the window field can be obtained by analyzing the data message, wherein the value of the window field characterizes the size of a receiving window of the receiving end, and then the residual storage capacity of the flow control queue can be obtained based on the data message, and then the minimum value can be determined, and then the data message can be updated based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value, and then the modified data message can be sent to the sending end, so that the sending end can be informed of the network transmission capacity of the sending end in real time by dynamically adjusting the size of the receiving window based on the residual size of the flow control queue, and the sending end can be adjusted in time, and then the sending end can realize the transmission rate adjustment, so that the network congestion of the network can not be perceived in time due to the network congestion caused by the network traffic control of the network.
In a third aspect, the present invention provides an electronic device comprising:
a processor; and
a memory configured to store machine readable instructions that when executed by the processor perform the flow control method of any of the preceding embodiments.
According to the electronic equipment, the data message sent by the receiving end can be received by executing the flow control method, the flow control queue associated with the data message can be matched, the data message can be analyzed to obtain the value of the window field, the value of the window field characterizes the size of a receiving window of the receiving end, the residual storage capacity of the flow control queue can be obtained based on the data message, the minimum value can be determined by comparing the residual storage capacity of the flow control queue with the value of the window field, the data message can be updated based on the minimum value, the value of the window field is the minimum value in the modified data message, the modified data message can be sent to the sending end, the sending end can be informed of the sending rate based on the minimum value, and finally, the network transmission capacity of the sending end can be timely adjusted by dynamically adjusting the size of the receiving window based on the residual size of the flow control queue, so that the sending end can timely realize the sending rate adjustment, and further realize the network congestion control of the network congestion caused by the network congestion, and the network congestion caused by the network congestion.
In a fourth aspect, the present invention provides a storage medium storing a computer program that is executed by a processor to perform the flow control method according to any one of the preceding embodiments.
According to the storage medium, by executing the flow control method, a data message sent by a receiving end can be received, and then the flow control queue associated with the data message can be matched, and then the value of a window field can be obtained by analyzing the data message, wherein the value of the window field characterizes the size of a receiving window of the receiving end, and then the remaining storage capacity of the flow control queue can be obtained based on the data message, and then the remaining storage capacity of the flow control queue is compared with the value of the window field, the minimum value can be determined, and then the data message can be updated based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value, and then the modified data message can be sent to a sending end, so that the sending end can adjust the sending rate based on the minimum value, and finally the network transmission capacity of the sending end can be informed in real time by dynamically adjusting the size of the receiving window based on the remaining size of the flow control queue, and the sending end can adjust the sending rate in time, and then the sending end can realize the control of the sending network congestion in a network, and thus the network congestion problem of network resources can be solved in time, and the network congestion is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of a flow control method disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of a flow control device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a flow control method disclosed in an embodiment of the present application, and as shown in fig. 1, the method in the embodiment of the present application includes the following steps:
101. receiving a data message sent by a receiving end;
102. matching the flow control queues associated with the data messages;
103. analyzing the data message to obtain a numerical value of a window field, wherein the numerical value of the window field represents the size of a receiving window of the receiving end;
104. obtaining the residual storage capacity of the flow control queue based on the data message;
105. comparing the remaining storage capacity of the flow control queue with the value of the window field to determine a minimum value;
106. updating the data message based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value;
107. and sending the modified data message to a sending end so that the sending end adjusts the sending rate based on the minimum value.
In the embodiment of the application, a data message sent by a receiving end is received, so that a flow control queue associated with the data message can be matched, the data message can be analyzed to obtain a numerical value of a window field, wherein the numerical value of the window field characterizes the size of a receiving window of the receiving end, the residual storage capacity of the flow control queue can be obtained based on the data message, the residual storage capacity of the flow control queue is compared with the numerical value of the window field, a minimum numerical value can be determined, the data message can be updated based on the minimum numerical value, the numerical value of the window field is the minimum numerical value in the modified data message, the modified data message can be sent to a sending end, the sending end can adjust the sending rate based on the minimum numerical value, and finally, the network transmission capacity of the sending end is informed in real time in a mode of dynamically adjusting the size of the receiving window based on the residual size of the flow control queue, so that the sending end can timely adjust the sending rate, and further realize that the sending end can control the flow according to the network situation, and the network situation can timely sense the network congestion, and the problem of resources in a network can not be transmitted to a network is solved, and the network congestion is avoided.
In this embodiment of the present application, for step 101, the data packet refers to an ACK (Acknowledge character, acknowledgement character) packet, where the ACK packet is a transmission type control character sent by the receiving end to the transmitting end, and is used to indicate that the sent data has been acknowledged and received without errors.
In this embodiment, for step 102, the flow control queue is a data queue for implementing flow control, where the flow size of the network can be controlled through the flow control queue.
In this embodiment, for step 102, each flow control queue corresponds to one five-tuple, and accordingly, the flow control queues associated with the data packet may be matched through the five-tuple of the data packet. It should be noted that, the five-tuple refers to a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol.
In the embodiment of the application, the steps are aimed at
In the present embodiment, as an alternative implementation, in step 102: after the matching of the flow control queues associated with the data packets, step 103: before the data message is parsed to obtain the numerical value of the window field, the method of the application further comprises the following steps:
and judging whether the data message is an ACK message, if the data message is the ACK message, triggering and executing the analysis of the data message to obtain the numerical value of the window field, and if the data message is not the ACK message, not triggering and executing the analysis of the data message to obtain the numerical value of the window field.
In the above optional implementation manner, by determining whether the data packet is an ACK packet, it is further possible to trigger the execution of the analysis of the data packet to obtain the value of the window field if the data packet is the ACK packet, and not trigger the execution of the analysis of the data packet to obtain the value of the window field if the data packet is not the ACK packet, so that the processing of the non-ACK packet can be avoided.
In the embodiment of the present application, as an optional implementation manner, the steps include: the matching the flow control queue associated with the data message comprises the following steps:
extracting quintuple information in the data message;
and determining the flow control queue based on the quintuple information.
In the above optional embodiment, the flow control queue may be further determined based on the quintuple information by extracting the quintuple information in the data packet.
In the embodiment of the present application, as an optional implementation manner, step 104: the obtaining the residual storage capacity of the flow control queue based on the data message comprises the following substeps:
identifying a protocol version of the data message;
acquiring attribute information of the flow control queue;
and calculating the residual storage capacity of the flow control queue based on the attribute information of the flow control queue and the protocol version of the data message.
In the above optional embodiment, by identifying the protocol version of the data packet and acquiring the attribute information of the flow control queue, the remaining storage capacity of the flow control queue may be further calculated based on the attribute information of the flow control queue and the protocol version of the data packet.
In this embodiment of the present application, as an optional implementation manner, the attribute information of the flow control queue includes a configuration element capacity of the flow control queue, a current usage element capacity of the flow control queue, and a maximum byte number of queue elements of the flow control queue.
Further optionally, the step of: the calculation formula corresponding to the residual storage capacity of the flow control queue based on the attribute information of the flow control queue and the protocol version of the data message is as follows:
Q=(K-C)*(MSS);
wherein Q represents the remaining storage capacity of the flow control queue, K represents the configuration element capacity of the flow control queue, C represents the current use element capacity of the flow control queue, MSS represents the maximum byte number of the queue element storage of the flow control queue, and MSS is determined based on the protocol version of the data message.
In an alternative embodiment, when the protocol version of the data packet is IPV6, mss=mtu-60;
when the protocol version of the data message is IPV4, mss=mtu-40;
wherein, MTU represents the maximum transmission unit of the flow control queue associated network device.
In this embodiment, as an alternative implementation manner, when the protocol version of the data packet is IPV6, the MSS may be calculated by the formula mss=mtu-60, and when the protocol version of the data packet is IPV4, the MSS may be calculated by the formula mss=mtu-40.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of a flow control device according to an embodiment of the present application, and as shown in fig. 2, the device according to the embodiment of the present application includes the following functional modules:
a receiving module 201, configured to receive a data packet sent by a receiving end;
a matching module 202, configured to match the flow control queues associated with the data packets;
the parsing module 203 is configured to parse the data packet to obtain a value of a window field, where the value of the window field characterizes a size of a receiving window of the receiving end;
an obtaining module 204, configured to obtain a remaining storage capacity of the flow control queue based on the data packet;
a comparison module 205, configured to compare the remaining storage capacity of the flow control queue with the value of the window field to determine a minimum value;
an updating module 205, configured to update the data packet based on the minimum value, where in the modified data packet, the value of the window field is the minimum value;
and a sending module 206, configured to send the modified data packet to a sending end, so that the sending end adjusts a sending rate based on the minimum value.
According to the device, the data message sent by the receiving end can be received by executing the flow control method, the flow control queue associated with the data message can be matched, the data message can be analyzed to obtain the value of the window field, the value of the window field characterizes the size of a receiving window of the receiving end, the residual storage capacity of the flow control queue can be obtained based on the data message, the minimum value can be determined by comparing the residual storage capacity of the flow control queue with the value of the window field, the data message can be updated based on the minimum value, the value of the window field is the minimum value in the modified data message, the modified data message can be sent to the sending end, the sending end can be informed of the network transmission capacity of the sending end based on the minimum value, and the sending end can be enabled to adjust the sending rate in time by dynamically adjusting the size of the receiving window based on the residual size of the flow control queue, so that the sending end can sense the network congestion of the network in time, and the network congestion caused by the network congestion can be avoided.
It should be noted that, for other detailed descriptions of the apparatus in the embodiments of the present application, please refer to the related descriptions in the first embodiment of the present application, which are not repeated herein.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, and as shown in fig. 3, the electronic device in the embodiment of the present application includes:
a processor 301; and
a memory 302 configured to store machine readable instructions that, when executed by the processor 301, perform a flow control method as in any of the preceding embodiments.
According to the electronic equipment, the data message sent by the receiving end can be received through executing the flow control method, the flow control queue associated with the data message can be matched, the data message can be analyzed to obtain the value of the window field, the value of the window field characterizes the size of a receiving window of the receiving end, the residual storage capacity of the flow control queue can be obtained based on the data message, the minimum value can be determined through comparing the residual storage capacity of the flow control queue with the value of the window field, the data message can be updated based on the minimum value, the value of the window field is the minimum value in the modified data message, the modified data message can be sent to the sending end, the sending end can be informed of the sending rate based on the minimum value, and finally, the network transmission capacity of the sending end can be timely adjusted by dynamically adjusting the size of the receiving window based on the residual size of the flow control queue, so that the sending end can timely realize the sending rate adjustment, and further realize the network congestion control of the network congestion caused by the network congestion, and the network congestion caused by the network congestion.
Example IV
The present embodiments disclose a storage medium storing a computer program that is executed by a processor to perform the flow control method according to any of the foregoing embodiments.
According to the storage medium, the data message sent by the receiving end can be received by executing the flow control method, the flow control queue associated with the data message can be matched, the data message can be analyzed to obtain the value of the window field, the value of the window field characterizes the size of a receiving window of the receiving end, the residual storage capacity of the flow control queue can be obtained based on the data message, the minimum value can be determined by comparing the residual storage capacity of the flow control queue with the value of the window field, the data message can be updated based on the minimum value, the value of the window field is the minimum value in the modified data message, the modified data message can be sent to the sending end, the sending end can be informed of the sending rate based on the minimum value, and finally, the network transmission capacity of the sending end can be timely adjusted by dynamically adjusting the size of the receiving window based on the residual size of the flow control queue, so that the sending end can timely sense the sending rate is adjusted, and the network congestion of the network can not be caused by the network congestion caused by the network traffic control, and the network congestion can be avoided.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of flow control, the method comprising:
receiving a data message sent by a receiving end;
matching the flow control queues associated with the data messages;
analyzing the data message to obtain a numerical value of a window field, wherein the numerical value of the window field represents the size of a receiving window of the receiving end;
obtaining the residual storage capacity of the flow control queue based on the data message;
comparing the remaining storage capacity of the flow control queue with the value of the window field to determine a minimum value;
updating the data message based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value;
and sending the modified data message to a sending end so that the sending end adjusts the sending rate based on the minimum value.
2. The method of claim 1, wherein after said matching the flow control queue associated with the data message, before said parsing the data message to obtain the value of the window field, the method further comprises:
and judging whether the data message is an ACK message, if the data message is the ACK message, triggering and executing the analysis of the data message to obtain the numerical value of the window field, and if the data message is not the ACK message, not triggering and executing the analysis of the data message to obtain the numerical value of the window field.
3. The method of claim 1, wherein said matching the flow control queue associated with the data message comprises:
extracting quintuple information in the data message;
and determining the flow control queue based on the quintuple information.
4. The method of claim 1, wherein the obtaining the remaining storage capacity of the flow control queue based on the data message comprises:
identifying a protocol version of the data message;
acquiring attribute information of the flow control queue;
and calculating the residual storage capacity of the flow control queue based on the attribute information of the flow control queue and the protocol version of the data message.
5. The method of claim 4, wherein the attribute information of the flow control queue comprises a configuration element capacity of the flow control queue, a current use element capacity of the flow control queue, and a maximum number of bytes stored by a queue element of the flow control queue.
6. The method of claim 3, wherein the calculating a calculation formula corresponding to the remaining storage capacity of the flow control queue based on the attribute information of the flow control queue and the protocol version of the data packet is:
Q=(K-C)*(MSS);
wherein Q represents the remaining storage capacity of the flow control queue, K represents the configuration element capacity of the flow control queue, C represents the current use element capacity of the flow control queue, MSS represents the maximum byte number of the queue element storage of the flow control queue, and MSS is determined based on the protocol version of the data message.
7. The method of claim 4, wherein MSS = MTU-60 when the protocol version of the data packet is IPV 6;
when the protocol version of the data message is IPV4, mss=mtu-40;
wherein, MTU represents the maximum transmission unit of the flow control queue associated network device.
8. A flow control device, the device comprising:
the receiving module is used for receiving the data message sent by the receiving end;
the matching module is used for matching the flow control queues associated with the data messages;
the analyzing module is used for analyzing the data message to obtain the numerical value of a window field, wherein the numerical value of the window field represents the size of a receiving window of the receiving end;
the acquisition module is used for acquiring the residual storage capacity of the flow control queue based on the data message;
the comparison module is used for comparing the residual storage capacity of the flow control queue with the numerical value of the window field so as to determine a minimum numerical value;
the updating module is used for updating the data message based on the minimum value, wherein in the modified data message, the value of the window field is the minimum value;
and the sending module is used for sending the modified data message to a sending end so that the sending end adjusts the sending rate based on the minimum value.
9. An electronic device, comprising:
a processor; and
a memory configured to store machine readable instructions that, when executed by the processor, perform the flow control method of any of claims 1-7.
10. A storage medium storing a computer program for executing the flow control method according to any one of claims 1 to 7 by a processor.
CN202211714487.0A 2022-12-27 2022-12-27 Flow control method, device, electronic equipment and storage medium Pending CN116032853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211714487.0A CN116032853A (en) 2022-12-27 2022-12-27 Flow control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211714487.0A CN116032853A (en) 2022-12-27 2022-12-27 Flow control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116032853A true CN116032853A (en) 2023-04-28

Family

ID=86090895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211714487.0A Pending CN116032853A (en) 2022-12-27 2022-12-27 Flow control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116032853A (en)

Similar Documents

Publication Publication Date Title
US20200358886A1 (en) Data Transmission Method, Apparatus, And System
US9325628B2 (en) Packet handling method, forwarding device and system
US20070025374A1 (en) TCP normalization engine
EP2978171B1 (en) Communication method, communication device, and communication program
US10355961B2 (en) Network traffic capture analysis
CN106612284B (en) Streaming data transmission method and device
JP2014509483A (en) Mechanisms to improve the performance of transmission control protocols in wireless networks
KR20130082070A (en) Communication apparatus and communication method
KR20070080177A (en) Apparatus and method of backward congestion notification on network
US10868839B2 (en) Method and system for upload optimization
US20060133379A1 (en) Method, system and article for improved TCP performance during retransmission in response to selective acknowledgement
WO2017097201A1 (en) Data transmission method, transmission device and receiving device
US20070291782A1 (en) Acknowledgement filtering
CN111740939A (en) Message transmission device, message transmission equipment, message transmission method and storage medium
EP2648383A1 (en) Method and device for data transmission
CN107733903B (en) Data transmission confirmation method based on UDP (user Datagram protocol) and base station
CN116032853A (en) Flow control method, device, electronic equipment and storage medium
WO2017067224A1 (en) Packet processing method and apparatus
CN114051704A (en) Attack mitigation in packet-switched networks
EP4037232A1 (en) Acknowledgement message processing method, communication apparatus, and storage medium
US11134020B1 (en) Flow control of two TCP streams between three network nodes
EP4319094A1 (en) Control method and apparatus, and computing device
US11962517B2 (en) Communications method, apparatus, and system for recovering lost packets
CN111385241B (en) Method, device and system for repairing lost packet of multimedia data and readable storage medium
KR101933175B1 (en) Mediatioin appratus mediating communication betwwen server and client

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