CN113411264A - Network queue monitoring method and device, computer equipment and storage medium - Google Patents

Network queue monitoring method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113411264A
CN113411264A CN202110743218.6A CN202110743218A CN113411264A CN 113411264 A CN113411264 A CN 113411264A CN 202110743218 A CN202110743218 A CN 202110743218A CN 113411264 A CN113411264 A CN 113411264A
Authority
CN
China
Prior art keywords
message
congestion notification
sending
network
queue
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.)
Granted
Application number
CN202110743218.6A
Other languages
Chinese (zh)
Other versions
CN113411264B (en
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110743218.6A priority Critical patent/CN113411264B/en
Publication of CN113411264A publication Critical patent/CN113411264A/en
Application granted granted Critical
Publication of CN113411264B publication Critical patent/CN113411264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/11Identifying congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for monitoring a network queue, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring state information, wherein the state information represents the storage state of a first message in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment; confirming the sending quantity of the congestion notification messages according to the state information; acquiring congestion notification messages based on the sending number of the congestion notification messages and the address information of the first terminal equipment; and sending the congestion notification message to the first terminal equipment to enable the first terminal equipment to adjust the sending rate of the message based on the congestion notification message. By reflecting the congestion degree through the storage state and actively sending the congestion notification message, the timely speed reduction during congestion can be ensured, the excessive speed reduction during the congestion relief can be avoided, the response is timely and accurate, and finally the low time delay and high throughput of the RoCEv2 service in the long-distance scene of data center interconnection are ensured.

Description

Network queue monitoring method and device, computer equipment and storage medium
Technical Field
The invention belongs to the technical field of information, and particularly relates to a network queue monitoring method and device, computer equipment and a storage medium.
Background
In a network switch, network congestion can occur when ingress traffic is greater than the bandwidth of egress traffic. Dcqcn (data Center Quantized Congestion Notification) is a Congestion control mechanism based on the combination of data Center tcp (dctcp) and a quantization Notification algorithm, and after Congestion is found on a device, the device sends a message carrying a Congestion mark to a receiving end server, and the receiving end server then sends a Congestion Notification message cnp (Congestion Notification Packets cnp) to a sending end server to notify the sending end server of reducing the rate of sending the message, so as to relieve the Congestion.
However, as can be seen from the congestion control mechanism described above, there are several problems in DCQCN:
slow response: the network equipment is congested, however, the receiving end is used for feeding back the congestion, when the network scale is large, the sending end cannot reduce the speed in time due to an overlong congestion feedback path, and even the congestion is aggravated due to the fact that the speed is increased in advance;
response inaccuracy: the network congestion state can only be obtained through the congestion marks in the messages, the receiving end does not know how many CNP messages should be generated, and in the congestion relieving process, the forwarding equipment still continues to perform the congestion marks, which easily causes the throughput to be too low.
Disclosure of Invention
In view of the above-mentioned problems of slow and inaccurate response of conventional network switch congestion control mechanisms, the present invention has been made to provide a method, apparatus, computer device and storage medium for monitoring network queues that overcome or at least partially solve the above-mentioned problems.
According to an aspect of the present invention, there is provided a method for monitoring a network queue, applied to a network device, the method including:
acquiring state information, wherein the state information represents the storage state of a first message in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
confirming the sending quantity of the congestion notification messages according to the state information;
acquiring congestion notification messages based on the sending number of the congestion notification messages and the address information of the first terminal equipment;
and sending the congestion notification message to the first terminal equipment to enable the first terminal equipment to adjust the sending rate of the message based on the congestion notification message.
Preferably, the status information includes: the queue length of the first packet in the network queue, the change of the queue length, and the rate of change of the queue length.
Preferably, the determining the number of congestion notification packets sent according to the status information includes:
when the queue length is a first length and the change of the queue length is increased, determining that the sending number of the congestion notification messages is a first number;
when the queue length is a first length and the change of the queue length is reduced, determining that the sending number of the congestion notification messages is a second number;
when the queue length is a second length and the change of the queue length is increased, determining that the sending number of the congestion notification messages is a third number;
when the queue length is a second length and the change of the queue length is reduced, determining that the sending number of the congestion notification messages is a fourth number;
and when the change rate of the queue length is the first frequency, determining that the sending number of the congestion notification messages is a fifth number.
Preferably, before the status information is acquired, the method includes:
acquiring a confirmation message;
acquiring address information according to the confirmation message, wherein the address information comprises: a source IP address, a destination IP address, and a queue pair;
and establishing a flow table according to the address information.
Preferably, after the flow table is established according to the address information, the method includes:
acquiring a data message;
and updating port information in the flow table based on the data message, wherein the port information represents a target port.
Preferably, the method further comprises: and associating each data stream with a destination port according to the port information.
According to another aspect of the present invention, there is provided a method for monitoring a network queue, applied to a first terminal device, the method including:
receiving a congestion notification message sent by network equipment; the congestion notification message is generated by the network equipment based on the sending quantity of the congestion notification messages and the address information of the first terminal equipment; the sending quantity of the congestion notification messages is confirmed according to state information; the state information represents the storage state of the first message in the network queue; the first message is a message cached in the network equipment in the process of sending the message by the first terminal equipment;
and adjusting the sending rate of the message based on the congestion notification message.
According to another aspect of the present invention, there is provided a network queue monitoring apparatus, applied to a network device, the apparatus including:
the first obtaining unit is used for obtaining state information, and the state information represents the storage state of a first message in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
a first confirming unit, configured to confirm the number of sent congestion notification messages according to the state information;
a second obtaining unit, configured to obtain congestion notification messages based on the number of congestion notification messages sent and address information of the first terminal device;
a first sending unit, configured to send the congestion notification packet to the first terminal device, so that the first terminal device adjusts a sending rate of a packet based on the congestion notification packet.
According to another aspect of the present invention, there is provided a network queue monitoring apparatus, applied to a first terminal device, the apparatus including:
a first receiving unit, configured to receive a congestion notification message sent by a network device; the congestion notification message is generated by the network equipment based on the sending quantity of the congestion notification messages and the address information of the first terminal equipment; the sending quantity of the congestion notification messages is confirmed according to state information; the state information represents the storage state of the first message in the network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
and the first adjusting unit is used for adjusting the sending rate of the message based on the congestion notification.
According to another aspect of the invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of the above when executing the computer program.
According to another aspect of the invention, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the method of any one of the above.
The monitoring method of the network queue provided by the invention is based on an intelligent lossless network, can directly and intelligently identify the congestion state on network equipment, reflects the congestion degree through the storage state, and actively sends the congestion notification message, thereby not only ensuring the timely speed reduction in the case of congestion, but also avoiding the excessive speed reduction in the case of congestion relief, ensuring the timely and accurate response, and finally ensuring the low time delay and high throughput of the RoCEv2 service in the long-distance scene of data center interconnection.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for monitoring a network queue according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for monitoring a network queue according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a monitoring apparatus for network queues according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a monitoring apparatus for network queues according to another embodiment of the present invention;
fig. 5 is a block diagram of a computer device according to an embodiment of the present invention.
[ description of reference ]
301. A first acquisition unit;
302. a first confirmation unit;
303. a second acquisition unit;
304. a first transmitting unit;
401. a first receiving unit;
402. a first adjusting unit;
1002. a computer device;
1004. a processor;
1006. a memory;
1008. a drive mechanism;
1010. an input/output module;
1012. an input device;
1014. an output device;
1016. a presentation device;
1018. a graphical user interface;
1020. a network interface;
1022. a communication link;
1024. a communication bus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following embodiments of the present invention are mainly applicable to a scenario based on the RoCEv2 version in the roce (rdma over converted ethernet) protocol, and any one of the methods described in the present invention may be applicable to other protocols the same as or similar to the present invention. Specifically, an embodiment of the present invention provides a method for monitoring a network queue, which is applied to a network device, and is shown in fig. 1, where the method includes:
step 101, obtaining state information, wherein the state information represents a storage state of a first message in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment. In the embodiment of the present invention, the network queue is set based on a congestion control mechanism, and after congestion occurs, a message that has not been received by a receiving end, that is, a first message, is cached through the network queue. In the embodiment of the invention, the acquired state information is the storage state of the first message in the network queue, and the storage state of the first message can be clearly known through the state information so as to control the sending condition of the congestion notification message in the following. The first terminal device actually corresponds to a data transmitting end.
And 102, confirming the sending quantity of the congestion notification messages according to the state information. The state information reflects the congestion condition, and the sending number of the congestion notification messages is different according to different congestion conditions. For example, when the congestion state is light, a small number of congestion notification messages may be sent, or the number of congestion notification messages sent is zero, that is, no congestion notification message is sent; when the congestion state is serious, a large number of congestion notification messages can be sent, and the sending number of the congestion notification messages is intelligently calculated according to the storage state of the first message in the network queue, so that the congestion condition can be reflected in a quantitative mode through the sending number of the congestion notification messages.
In a preferred embodiment, when it is determined that the transmission number of the congestion notification messages is zero, it indicates that no intervention is currently required for the message transmission, i.e., no subsequent step of reducing the transmission rate is performed. Or in another preferred embodiment, a time node is preset, and step 101 is repeated again when the preset time node comes, so as to achieve the purpose of dynamic monitoring.
Step 103, obtaining the congestion notification messages based on the sending number of the congestion notification messages and the address information of the first terminal device. In a specific embodiment, a corresponding number of congestion notification messages are constructed according to the number of congestion notification messages sent acquired in the previous step and the address information of the first terminal device, in other words, the number of congestion notification messages sent in the embodiment of the present invention is different according to different state information, so as to implement intelligent monitoring.
Step 104, sending the congestion notification message to the first terminal device to enable the first terminal device to adjust the sending rate of the message based on the congestion notification message. Different from the prior art that a congestion notification message is sent to an information receiving end, in the method of the embodiment of the invention, the congestion notification message is directly sent to the information sending end, namely the first terminal device in the embodiment of the invention, so that even if the network scale is large, the situation that the information sending end cannot be notified in time due to too long congestion feedback path to cause the situation that the speed cannot be reduced in time or increased in advance is avoided.
The monitoring method for the network queue provided by the above specific embodiment of the present invention is based on an intelligent lossless network, can directly and intelligently identify the congestion state on the network device, reflect the congestion degree through the storage state, and actively send the congestion notification message, so as to ensure the timely speed reduction during congestion, avoid the excessive speed reduction during congestion relief, respond timely and accurately, and finally ensure the low delay and high throughput of the RoCEv2 service in a long-distance scene, such as data center interconnection.
In the method for monitoring a network queue according to the embodiment of the present invention, preferably, the state information includes: the queue length of the first packet in the network queue, the change of the queue length, and the rate of change of the queue length. Specifically, the status information may include one of a queue length of the first packet in the network queue, a change in the queue length, and a change rate of the queue length, or both the queue length of the first packet in the network queue and the change in the queue length. The queue length of the first packet in the network queue, that is, the buffer occupancy, may represent how many buffered first packets are currently in the network queue. The change of the queue length mainly represents whether the queue length changes and whether the change is increase or decrease, and when the change of the queue length is increased, the current queue length is increased, and the cached first messages are gradually increased; when the change of the queue length is reduced, the current queue length is reduced, and the cached first message is gradually reduced.
In the method for monitoring a network queue according to the embodiment of the present invention, preferably, the determining the number of congestion notification packets sent according to the state information includes:
and when the queue length is a first length and the change of the queue length is increased, determining that the sending number of the congestion notification messages is a first number. In a specific embodiment of the present invention, when the first length is a shallow queue, the number of buffered first packets is small; however, when the queue length increases, it may be shown that the current congestion is not serious, but the congestion degree tends to increase, so that in the current situation, the first number of congestion notification messages is only a small number, and misjudgment of the congestion state is prevented.
And when the queue length is a first length and the change of the queue length is reduced, determining that the sending number of the congestion notification messages is a second number. In a specific embodiment of the present invention, the first length is a shallow queue, and when the length of the queue decreases, it may show that the current congestion is not serious and the congestion degree is also in a tendency of alleviating, and at this time, the second number of the congestion notification messages should be smaller than the first number, or zero, so as to prevent throughput decrease caused by excessive speed reduction.
And when the queue length is a second length and the change of the queue length is increased, determining that the sending number of the congestion notification messages is a third number. In contrast to the case where the first length is a shallow queue, the second length is a deep queue, that is, the number of buffered first messages is large, and when the queue length increases, it indicates that the current congestion is serious and the congestion degree tends to increase, and in the current situation, the number of congestion notification messages of the third number is large and larger than the first number, so as to quickly relieve the queue congestion and reduce the forwarding delay.
And when the queue length is a second length and the change of the queue length is reduced, determining that the sending number of the congestion notification messages is a fourth number. Specifically, the second length is a deep queue, but when the queue length is decreased, it may be shown that although the current congestion is serious, the congestion degree is in a tendency of alleviating, and at this time, the fourth number of congestion notification messages sent is also a small number, which may be greater than or equal to the first number, so that the queue congestion may be alleviated and the influence on the message transmission efficiency may be reduced as much as possible while ensuring throughput and time-delay performance.
And when the change rate of the queue length is the first frequency, determining that the sending number of the congestion notification messages is a fifth number. Specifically, when the change rate of the queue length is that the first frequency reaches a preset threshold, it indicates that the length of the queue suddenly shakes slightly, and a micro-burst scene may occur, and at this time, the fifth number of the congestion notification packets may be smaller or zero, so as to prevent excessive speed reduction.
Through the congestion mechanism designed aiming at different situations, the congestion state can be intelligently identified on the network equipment, the CNP message can be actively sent, the rate of the RoCEv2 message sent by the server at the first terminal is accurately controlled, the timely speed reduction during congestion can be ensured, the excessive speed reduction during the congestion is avoided, and finally the low time delay and high throughput of the RoCEv2 service in a long-distance scene of data center interconnection are ensured.
In the method for monitoring a network queue according to the embodiment of the present invention, preferably, before the status information is acquired, the method includes:
acquiring a confirmation message;
acquiring address information according to the confirmation message, wherein the address information comprises: a source IP address, a destination IP address, and a queue pair;
and establishing a flow table according to the address information.
In a specific embodiment, the acknowledgment message is a RoCEv2 ACK message, and the process of acquiring the acknowledgment message by the network device is to copy and upload the ACK message that passes through. And then extracting the source IP address, the destination IP address and the queue pair in the confirmation message, and establishing a corresponding RoCEv2 flow table according to the source IP address, the destination IP address and the queue pair.
The method for monitoring a network queue according to the embodiment of the present invention preferably further includes:
acquiring a data message;
and updating port information in the flow table based on the data message, wherein the port information represents a target port.
The method for monitoring a network queue according to the embodiment of the present invention preferably further includes: and associating the flow table with a network equipment port according to the port information.
In a specific embodiment, the data packet is a RoCEv2 packet with the packet types of Send, Write, and Read, and the data packet carries valid destination Port (Target Port TP) information, that is, index information of the Port. Therefore, in the embodiment of the present invention, the port information in the flow table is updated according to the data packet carrying the valid destination port information, preferably: and associating each data stream with a destination port according to the port information. The flow table and the port can be associated in real time through the step, namely, each data flow in the flow table and the target port are associated, and the address information and the forwarding path of each RoCEv2 flow can be obtained through continuously maintaining the flow table through the steps, so that the network equipment can accurately send the congestion notification message to the first terminal equipment.
An embodiment of the present invention further provides a method for monitoring a network queue, which is applied to a first terminal device, and as shown in fig. 2, the method includes:
step 201, receiving a congestion notification message sent by a network device; the congestion notification message is generated by the network equipment based on the sending quantity of the congestion notification messages and the address information of the first terminal equipment; the sending quantity of the congestion notification messages is confirmed according to state information; the state information represents the storage state of the first message in the network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
step 202, adjusting the sending rate of the message based on the congestion notification message.
In a specific embodiment, the first terminal device is equivalent to a data sending end, and in a process of sending data by the first terminal device, if a congestion notification message sent by the network device is not received, the first terminal device keeps an original sending rate to send a RoCEv2 message. If a congestion notification message sent by the network device is received, it indicates that the first message is not forwarded in time in a network queue in the network device at the time, and at the time, the first terminal device needs to adjust the sending rate of the message according to the congestion notification message. In a preferred embodiment, the sending rate of the message is adjusted to be different according to the sending number of the congestion notification message to adapt to different situations, so that not only can the timely speed reduction during congestion be ensured, but also the excessive speed reduction during the congestion relief can be avoided, and finally the low delay and high throughput of the RoCEv2 service in the long-distance scene of data center interconnection can be ensured.
An embodiment of the present invention further provides a monitoring apparatus for a network queue, which is applied to a network device, and as shown in fig. 3, the apparatus includes:
a first obtaining unit 301, configured to obtain state information, where the state information represents a storage state of a first packet in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
a first confirming unit 302, configured to confirm the number of congestion notification messages sent according to the state information;
a second obtaining unit 303, configured to obtain congestion notification messages based on the sending number of the congestion notification messages and the address information of the first terminal device;
a first sending unit 304, configured to send the congestion notification packet to the first terminal device, so that the first terminal device adjusts a sending rate of a packet based on the congestion notification packet.
An embodiment of the present invention further provides a monitoring apparatus for a network queue, which is applied to a first terminal device, and as shown in fig. 4, the apparatus includes:
a first receiving unit 401, configured to receive a congestion notification message sent by a network device; the congestion notification message is generated by the network equipment based on the sending quantity of the congestion notification messages and the address information of the first terminal equipment; the sending quantity of the congestion notification messages is confirmed according to state information; the state information represents the storage state of the first message in the network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
a first adjusting unit 402, configured to adjust a sending rate of a packet based on the congestion notification.
In an embodiment herein, as shown in fig. 5, there is also provided a computer device, the computer device 1002 may include one or more processors 1004, such as one or more Central Processing Units (CPUs), each of which may implement one or more hardware threads. The computer device 1002 may also include any memory 1006 for storing any kind of information, such as code, settings, data, etc. For example, and without limitation, the memory 1006 may include any one or more of the following in combination: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information, and the memory 1006 stores a computer program that can be executed on the processor 1004, and when the processor 1004 executes the computer program, the charging and discharging control method of the electric vehicle according to any of the foregoing embodiments is implemented. Further, any memory may represent fixed or removable components of computer device 1002. In one case, when the processor 1004 executes the associated instructions, which are stored in any memory or combination of memories, the computer device 1002 can perform any of the operations of the associated instructions. The computer device 1002 also includes one or more drive mechanisms 1008, such as a hard disk drive mechanism, an optical disk drive mechanism, or the like, for interacting with any memory.
Computer device 1002 may also include an input/output module 1010(I/O) for receiving various inputs (via input device 1012) and for providing various outputs (via output device 1014)). One particular output mechanism may include a presentation device 1016 and an associated graphical user interface 1018 (GUI). In other embodiments, input/output module 1010(I/O), input device 1012, and output device 1014 may also be excluded, as only one computer device in a network. Computer device 1002 can also include one or more network interfaces 1020 for exchanging data with other devices via one or more communication links 1022. One or more communication buses 1024 couple the above-described components together.
Communication link 1022 may be implemented in any manner, such as over a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. Communications link 1022 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
An embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method in any one of the above embodiments is implemented.
Embodiments herein also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for monitoring a network queue according to any of the above embodiments is performed.
Embodiments herein also provide a computer readable instruction, wherein when the instruction is executed by a processor, the program causes the processor to execute the method for monitoring a network queue according to any one of the above examples.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should also be understood that, in the embodiment of the present invention, the term "and/or" is only one kind of association relation describing an associated object, and means that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A monitoring method of network queues is applied to network equipment, and is characterized in that the method comprises the following steps:
acquiring state information, wherein the state information represents the storage state of a first message in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
confirming the sending quantity of the congestion notification messages according to the state information;
acquiring congestion notification messages based on the sending number of the congestion notification messages and the address information of the first terminal equipment;
and sending the congestion notification message to the first terminal equipment to enable the first terminal equipment to adjust the sending rate of the message based on the congestion notification message.
2. The method according to claim 1, wherein the status information comprises: the queue length of the first packet in the network queue, the change of the queue length, and the rate of change of the queue length.
3. The method according to claim 2, wherein the determining the number of congestion notification packets sent according to the status information comprises:
when the queue length is a first length and the change of the queue length is increased, determining that the sending number of the congestion notification messages is a first number;
when the queue length is a first length and the change of the queue length is reduced, determining that the sending number of the congestion notification messages is a second number;
when the queue length is a second length and the change of the queue length is increased, determining that the sending number of the congestion notification messages is a third number;
when the queue length is a second length and the change of the queue length is reduced, determining that the sending number of the congestion notification messages is a fourth number;
and when the change rate of the queue length is the first frequency, determining that the sending number of the congestion notification messages is a fifth number.
4. The method according to claim 1, wherein before obtaining the status information, the method comprises:
acquiring a confirmation message;
acquiring address information according to the confirmation message, wherein the address information comprises: a source IP address, a destination IP address, and a queue pair;
and establishing a flow table according to the address information.
5. The method according to claim 1, wherein after establishing the flow table according to the address information, the method comprises:
acquiring a data message;
and updating port information in the flow table based on the data message, wherein the port information represents a target port.
6. The method of claim 5, further comprising: and associating each data stream with a destination port according to the port information.
7. A monitoring method of network queues is applied to a first terminal device, and is characterized in that the method comprises the following steps:
receiving a congestion notification message sent by network equipment; the congestion notification message is generated by the network equipment based on the sending quantity of the congestion notification messages and the address information of the first terminal equipment; the sending quantity of the congestion notification messages is confirmed according to state information; the state information represents the storage state of the first message in the network queue; the first message is a message cached in the network equipment in the process of sending the message by the first terminal equipment;
and adjusting the sending rate of the message based on the congestion notification message.
8. A monitoring device of network queue is applied to network equipment, and is characterized in that the device comprises:
the first obtaining unit is used for obtaining state information, and the state information represents the storage state of a first message in a network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
a first confirming unit, configured to confirm the number of sent congestion notification messages according to the state information;
a second obtaining unit, configured to obtain congestion notification messages based on the number of congestion notification messages sent and address information of the first terminal device;
a first sending unit, configured to send the congestion notification packet to the first terminal device, so that the first terminal device adjusts a sending rate of a packet based on the congestion notification packet.
9. A monitoring device of network queue is applied to a first terminal device, and is characterized in that the device comprises:
a first receiving unit, configured to receive a congestion notification message sent by a network device; the congestion notification message is generated by the network equipment based on the sending quantity of the congestion notification messages and the address information of the first terminal equipment; the sending quantity of the congestion notification messages is confirmed according to state information; the state information represents the storage state of the first message in the network queue; the first message is a message cached in the network queue in the process of sending the message by the first terminal equipment;
and the first adjusting unit is used for adjusting the sending rate of the message based on the congestion notification.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-7 when executing the computer program.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, is adapted to carry out the method of any of the preceding claims 1-7.
CN202110743218.6A 2021-06-30 2021-06-30 Network queue monitoring method and device, computer equipment and storage medium Active CN113411264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110743218.6A CN113411264B (en) 2021-06-30 2021-06-30 Network queue monitoring method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110743218.6A CN113411264B (en) 2021-06-30 2021-06-30 Network queue monitoring method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113411264A true CN113411264A (en) 2021-09-17
CN113411264B CN113411264B (en) 2023-03-14

Family

ID=77680795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110743218.6A Active CN113411264B (en) 2021-06-30 2021-06-30 Network queue monitoring method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113411264B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872872A (en) * 2021-09-29 2021-12-31 新华三信息安全技术有限公司 Message forwarding method and device and frame type network equipment
CN113938433A (en) * 2021-12-02 2022-01-14 中国人民解放军国防科技大学 High-speed network congestion control method and device based on dynamic threshold
CN113938432A (en) * 2021-12-02 2022-01-14 中国人民解放军国防科技大学 High-speed interconnection network congestion control marking method and device
CN114189477A (en) * 2021-10-22 2022-03-15 新华三大数据技术有限公司 Message congestion control method and device
CN114866477A (en) * 2022-04-21 2022-08-05 浪潮思科网络科技有限公司 Method, system and equipment for testing congestion control mechanism of network equipment
CN116032858A (en) * 2022-12-30 2023-04-28 迈普通信技术股份有限公司 Information synchronization method, device, iNOF switch and readable storage medium
CN116489106A (en) * 2023-06-21 2023-07-25 新华三技术有限公司 Congestion control method, device, forwarding chip and client
CN116545933A (en) * 2023-07-06 2023-08-04 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116886622A (en) * 2023-09-08 2023-10-13 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116915706A (en) * 2023-09-13 2023-10-20 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Data center network congestion control method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099940A (en) * 2014-05-05 2015-11-25 中兴通讯股份有限公司 Queue management method and device
CN107493238A (en) * 2016-06-13 2017-12-19 华为技术有限公司 A kind of method for controlling network congestion, equipment and system
CN108418767A (en) * 2018-02-09 2018-08-17 华为技术有限公司 Data transmission method, equipment and computer storage media
CN108667739A (en) * 2017-03-27 2018-10-16 华为技术有限公司 Jamming control method, apparatus and system
CN109391560A (en) * 2017-08-11 2019-02-26 华为技术有限公司 Notifying method, agent node and the computer equipment of network congestion
CN110505156A (en) * 2019-08-23 2019-11-26 中国人民解放军国防科技大学 Low-overhead congestion control method in high-speed interconnection network
US20200236052A1 (en) * 2020-03-04 2020-07-23 Arvind Srinivasan Improving end-to-end congestion reaction using adaptive routing and congestion-hint based throttling for ip-routed datacenter networks
CN111800351A (en) * 2019-06-16 2020-10-20 特拉维夫迈络思科技有限公司 Congestion notification packet generation by a switch
US20210036942A1 (en) * 2019-08-02 2021-02-04 Dell Products, Lp Systems and methods for identifying persistently congested queues

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099940A (en) * 2014-05-05 2015-11-25 中兴通讯股份有限公司 Queue management method and device
CN107493238A (en) * 2016-06-13 2017-12-19 华为技术有限公司 A kind of method for controlling network congestion, equipment and system
CN108667739A (en) * 2017-03-27 2018-10-16 华为技术有限公司 Jamming control method, apparatus and system
CN109391560A (en) * 2017-08-11 2019-02-26 华为技术有限公司 Notifying method, agent node and the computer equipment of network congestion
CN108418767A (en) * 2018-02-09 2018-08-17 华为技术有限公司 Data transmission method, equipment and computer storage media
CN111800351A (en) * 2019-06-16 2020-10-20 特拉维夫迈络思科技有限公司 Congestion notification packet generation by a switch
US20210036942A1 (en) * 2019-08-02 2021-02-04 Dell Products, Lp Systems and methods for identifying persistently congested queues
CN110505156A (en) * 2019-08-23 2019-11-26 中国人民解放军国防科技大学 Low-overhead congestion control method in high-speed interconnection network
US20200236052A1 (en) * 2020-03-04 2020-07-23 Arvind Srinivasan Improving end-to-end congestion reaction using adaptive routing and congestion-hint based throttling for ip-routed datacenter networks

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872872B (en) * 2021-09-29 2023-11-24 新华三信息安全技术有限公司 Message forwarding method and device and frame type network equipment
CN113872872A (en) * 2021-09-29 2021-12-31 新华三信息安全技术有限公司 Message forwarding method and device and frame type network equipment
CN114189477A (en) * 2021-10-22 2022-03-15 新华三大数据技术有限公司 Message congestion control method and device
CN114189477B (en) * 2021-10-22 2023-12-26 新华三大数据技术有限公司 Message congestion control method and device
CN113938433A (en) * 2021-12-02 2022-01-14 中国人民解放军国防科技大学 High-speed network congestion control method and device based on dynamic threshold
CN113938432A (en) * 2021-12-02 2022-01-14 中国人民解放军国防科技大学 High-speed interconnection network congestion control marking method and device
CN113938433B (en) * 2021-12-02 2024-02-02 中国人民解放军国防科技大学 High-speed network congestion control method and device based on dynamic threshold
CN113938432B (en) * 2021-12-02 2024-01-02 中国人民解放军国防科技大学 Congestion control marking method and device for high-speed interconnection network
CN114866477A (en) * 2022-04-21 2022-08-05 浪潮思科网络科技有限公司 Method, system and equipment for testing congestion control mechanism of network equipment
CN116032858A (en) * 2022-12-30 2023-04-28 迈普通信技术股份有限公司 Information synchronization method, device, iNOF switch and readable storage medium
CN116489106B (en) * 2023-06-21 2023-09-19 新华三技术有限公司 Congestion control method, device, forwarding chip and client
CN116489106A (en) * 2023-06-21 2023-07-25 新华三技术有限公司 Congestion control method, device, forwarding chip and client
CN116545933B (en) * 2023-07-06 2023-10-20 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116545933A (en) * 2023-07-06 2023-08-04 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116886622B (en) * 2023-09-08 2023-11-24 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116886622A (en) * 2023-09-08 2023-10-13 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Network congestion control method, device, equipment and storage medium
CN116915706A (en) * 2023-09-13 2023-10-20 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Data center network congestion control method, device, equipment and storage medium
CN116915706B (en) * 2023-09-13 2023-12-26 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Data center network congestion control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113411264B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN113411264B (en) Network queue monitoring method and device, computer equipment and storage medium
JP4921569B2 (en) Data processing for TCP connection using offload unit
CN110445722B (en) Congestion control method, device, equipment and storage medium
CN109714267B (en) Transmission control method and system for managing reverse queue
CN110677221B (en) Retransmission control method, communication interface and electronic equipment
US11258717B2 (en) Method for sending service packet, network device, and system
US20240007404A1 (en) Local and global quality of service shaper on ingress in a distributed system
CN113411263B (en) Data transmission method, device, equipment and storage medium
EP4195760A1 (en) Roce network congestion control method and related apparatus
CN113141314B (en) Congestion control method and equipment
US20070291782A1 (en) Acknowledgement filtering
US20170346749A1 (en) Method and system for upload optimization
US10897725B2 (en) System and method for managing data transfer between two different data stream protocols
US7821942B2 (en) Controlling data flow through a data communications link
US11622028B2 (en) Explicit notification of operative conditions along a network path
CN114422441A (en) Method and device for controlling flow
EP2960850B1 (en) Method and apparatus for publishing market information
CN116032853A (en) Flow control method, device, electronic equipment and storage medium
CN117834548A (en) Message loss prevention method and device, electronic equipment and storage medium
CN114884884A (en) Congestion control method and device

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
GR01 Patent grant
GR01 Patent grant