Network congestion control method, device and communication system

Through traffic sampling and deep packet inspection of network data packets, congestion information is identified and fed back in advance, which solves the problems of delay and data packet dropping during network congestion in the existing technology, and improves the network control effect and user experience.

CN115914115BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211617208.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-15
Publication Date
2024-10-18
Estimated Expiration
2042-12-15

AI Technical Summary

Technical Problem

In the existing technology, when the network is congested, the sender only starts to reduce the traffic after the queue is established, resulting in increased network delay and packet drops, resulting in poor control effect and poor user experience.

Method used

By sampling the traffic of data packets sent by the target server, using the sFlow network protocol to obtain characterization information, and classifying based on the deep packet inspection DPI model, if congestion is detected, the data packets are copied and congestion mark information is injected, and feedback is given to the server for early adjustment. rate.

Benefits of technology

It effectively avoids packet dropping at the point where congestion occurs, improves network energy efficiency and user experience, and optimizes network congestion control effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914115B_ABST
    Figure CN115914115B_ABST
Patent Text Reader

Abstract

The present invention provides a network congestion control method, device and communication system, the method comprising: sampling the flow of a first data packet sent by a target server to obtain characterization information; determining the classification result of the target server based on the characterization information; in the case where the classification result is determined to be a congested server, setting congestion marking information for a second data packet to obtain a third data packet; feeding back the third data packet to the target server, so that the target server can adjust the network rate according to the congestion marking information carried by the third data packet. The network congestion control method, device and communication system provided by the present invention can realize early notification of the server to adjust the rate, improve network energy efficiency, optimize the control effect of network congestion, and largely avoid the situation of packet loss at the point of congestion, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a network congestion control method, device and communication system. Background Art

[0002] During network communication, when the network load is small, the network throughput will increase linearly with the increase of load. When the network load reaches a certain level, the network throughput may decrease, which is called congestion. When the network congestion is serious, it may cause communication services to come to a standstill.

[0003] At present, the commonly used congestion control scheme uses a network card that supports Remote Direct Memory Access (RDMA) on the server side, and uses RoCEv2 as the transmission communication protocol between network cards. It selects the architecture of Priority-based Flow Control (PFC), Explicit Congestion Notification (ECN) and Data Center Quantized Congestion Notification (DCQCN). The server sender uses ECN marking to determine the congestion risk. The sender starts to reduce the traffic only after the queue is established. These constructed queues can significantly increase network latency and may cause the sender to slow down too late. When the queue is full at the congestion point, packet loss will occur. Therefore, the control effect of network congestion is poor, which greatly reduces the user experience. Summary of the invention

[0004] The present invention provides a network congestion control method, device and communication system, which are used to solve the defect in the prior art that the sender starts to reduce the flow only after the queue is established, and the queuing of data packets is inevitable.

[0005] The present invention provides a network congestion control method, comprising:

[0006] Performing flow sampling on the first data packet sent by the target server to obtain characterization information;

[0007] Based on the characterization information, determining a classification result of the target server;

[0008] When it is determined that the classification result is a congested server, after setting congestion mark information for the second data packet, a third data packet is obtained;

[0009] Feedback the third data packet to the target server, so that the target server can adjust the network rate according to the congestion marking information carried by the third data packet;

[0010] The second data packet is obtained by copying the first data packet.

[0011] According to a network congestion control method provided by the present invention, the flow sampling of the first data packet sent by the target server to obtain the characterization information includes:

[0012] Set extended fields for the sFlow network protocol;

[0013] Using the updated sFlow network protocol to perform flow sampling on the first data packet to obtain the characterization information;

[0014] The extended field includes at least one of a port number, a port rate, a queue number, a queue utilization rate, and a number of dropped packets.

[0015] According to a network congestion control method provided by the present invention, determining the classification result of the target server based on the characterization information includes:

[0016] Inputting the representation information into a classification model to obtain the classification result output by the classification model;

[0017] The classification model is a deep data packet inspection (DPI) model trained based on sample characterization information and congestion information annotated corresponding to the sample characterization information.

[0018] According to a network congestion control method provided by the present invention, the classification model includes a feature extraction layer, a queuing prediction layer and a congestion judgment layer;

[0019] Inputting the representation information into the feature extraction layer to obtain queue feature information output by the feature extraction layer;

[0020] Inputting the queue feature information into the queue prediction layer to obtain a queue prediction result output by the queue prediction layer;

[0021] The queuing prediction result is input into the congestion judgment layer to obtain the classification result output by the congestion prediction layer.

[0022] According to a network congestion control method provided by the present invention, after obtaining the characterization information, the method further includes:

[0023] When it is determined that the number of dropped packets carried in the characterization information is greater than or equal to a preset threshold, the classification result of the target server is set as a congested server.

[0024] The present invention also provides a network congestion control device, comprising:

[0025] A traffic sampling module, used for sampling the traffic of the first data packet sent by the target server to obtain characterization information;

[0026] A server classification module, used to determine a classification result of a target server based on the characterization information;

[0027] A congestion decision module, configured to obtain a third data packet after setting congestion marking information on the second data packet when determining that the classification result is a congested server;

[0028] A congestion notification module, configured to feed back the third data packet to the target server, so that the target server can adjust the rate according to the congestion marking information carried by the third data packet;

[0029] The second data packet is obtained by copying the first data packet.

[0030] The present invention also provides a communication system, comprising a first server and a second server, and further comprising one or more switches, wherein the switches are used to execute the network congestion control method as described above;

[0031] The first server is used to send a first data packet using the second server as a destination port;

[0032] The switch is configured to feed back a third data packet carrying congestion marking information to the first server to adjust the network rate when determining that the classification result of the first server is a congested server;

[0033] The switch is further configured to, when determining that the classification result of the first server is a non-congested server, forward the first data packet to the second server in sequence;

[0034] The third data packet is obtained by setting congestion marking information on the second data packet; and the second data packet is obtained by copying the first data packet.

[0035] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the network congestion control methods described above is implemented.

[0036] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the network congestion control method as described above is implemented.

[0037] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the network congestion control method as described above is implemented.

[0038] The network congestion control method, device and communication system provided by the present invention are based on traffic sampling of the received first data packet, and use the sampled characterization information to classify different servers. When congestion occurs on the target server, it is decided to copy the first data packet and inject congestion marking information, and the obtained third data packet is sent back to the target server. It can realize early notification of the server to adjust the rate, improve network energy efficiency, optimize the control effect of network congestion, avoid packet loss at the point of congestion to a large extent, and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 It is a flow chart of the network congestion control method provided by the present invention;

[0041] Figure 2 It is a structural schematic diagram of the network congestion control device provided by the present invention;

[0042] Figure 3 It is a structural schematic diagram of a communication system provided by the present invention;

[0043] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0046] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present invention, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0047] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0048] Figure 1 FIG. 1 is a flow chart of the network congestion control method provided by the present invention. Figure 1 As shown, the control method of the network congestion control method provided by the embodiment of the present invention includes: step 101, performing flow sampling on the first data packet sent by the target server to obtain characterization information.

[0049] It should be noted that the execution subject of the network congestion control method provided in the embodiment of the present invention is a network congestion control device.

[0050] The network congestion control method provided in the embodiment of the present application is suitable for the switch to sample different queue utilization rates and CPU utilization rates. When the information obtained by the above sampling exceeds a certain percentage of the threshold, a copy of the original message will be added with a CNP mark and forwarded back to the server, so that the server will be informed in advance that congestion is about to occur, and the speed adjustment mechanism can be implemented in advance.

[0051] It should be noted that, before step 101, the target server, as a sending end, sends the first data packet to the receiving end server corresponding to the destination port after determining the destination port.

[0052] Among them, one or more switches may be connected between the server sending end and the receiving end. The input port of the switch performs corresponding statistics on the received first data packet to decide whether to forward the first data packet to the next switch or the receiving end.

[0053] Specifically, in step 101, statistical sampling is performed on different queue utilization rates and CPU utilization rates in the switch on which the network congestion control device relies to obtain relevant characterization information.

[0054] The embodiment of the present invention does not specifically limit the statistical method of the first data packet.

[0055] Exemplarily, the sFlow network protocol may be used to perform corresponding statistics on the first received data packet.

[0056] The network congestion control device acts as an sFlow agent, performs statistical sampling on the utilization rates of different queues and CPU utilization rates in the switch on which the network congestion control device relies, samples and pushes network traffic on the first data packet received at the corresponding port, and integrates the obtained characterization information into an sFlow datagram.

[0057] Among them, the manner in which the sFlow agent samples the data flow in the embodiment of the present invention may include a fixed sampling manner and a random sampling manner.

[0058] The fixed sampling method refers to enabling a counter on the switch on which the network congestion control device relies. When the sampling ratio is 1 / N, the initial counter value is N. Every time the interface processes a message, the counter count is reduced by one. When the counter is reduced to 0, the current message is sampled, the counter count is reset to N, and the previous processing is repeated.

[0059] The random sampling method refers to using a pointer to give a random value to each message processed by the interface (assuming that the random number ranges from 0 to N), setting a threshold n (n∈[0,N]), and when the random value of the message is less than this threshold, the message is taken as the first data packet for statistical analysis, so that the actual sampling ratio is n / (N+1).

[0060] It is understandable that the network congestion control device can also forward the characterization information to the sFlow collector through the network, and the sFlow collector receives the data forwarded by multiple sFlow agents and performs unified statistical analysis.

[0061] Step 102: Determine a classification result of the target server based on the characterization information.

[0062] Specifically, in step 102, the network congestion control device uses the characterization information sampled in step 101 as a basis for server classification, and performs comparative analysis in combination with corresponding preset conditions to obtain a classification result of the target server.

[0063] The preset condition is set based on whether congestion will occur in the server corresponding to the characterization information, and the embodiment of the present invention does not specifically limit the preset condition.

[0064] Exemplarily, the preset condition may be that the queue usage and CPU usage indicated by the characterization information are greater than or equal to a certain ratio threshold, where:

[0065] If the queue usage and CPU usage indicated by the characterization information exceed a certain ratio threshold, it means that the target server corresponding to the first data packet will be congested, and the target server is determined to be a congested server.

[0066] If the queue usage and CPU usage indicated by the characterization information do not exceed a certain ratio threshold, it means that the target server corresponding to the first data packet will not be congested, and the target server is determined to be a non-congested server.

[0067] Step 103: When it is determined that the classification result is a congested server, congestion mark information is set for the second data packet to obtain a third data packet.

[0068] The second data packet is obtained by copying the first data packet.

[0069] Specifically, in step 103, if the network congestion control device determines that the classification result of the target server is a congested server, it copies the original first data packet and adds congestion marking information to the copied second data packet to obtain a third data packet.

[0070] If the network congestion control device determines that the classification result of the target server is a non-congested server, the original first data packet is directly forwarded to the next hop IP address, that is, the next switch or the receiving server.

[0071] The congestion marking information may be the marking content of a congestion notification packet (Congestion Notification Packet, CNP), so as to use the third data packet to perform end-to-end congestion notification between two endpoints on the TCP / IP network.

[0072] Step 104: Feedback the third data packet to the target server, so that the target server can adjust the network rate according to the congestion marking information carried by the third data packet.

[0073] Specifically, in step 104, the network congestion control device forwards the third data packet back to the target server.

[0074] After receiving the third data packet, the target server parses the message and adjusts the network rate of the target server itself accordingly according to the congestion mark information (ie, CNP mark) carried by the third data packet.

[0075] In the prior art, there are many switches connected between the server sending end and the receiving end. If the port queue of one of the switches is congested, the CNP mark needs to be transmitted to the receiving end server before the sending end is informed to reduce the speed. At this time, the sending end may reduce the speed too late, while the queue at the congestion point has been saturated for a long time, resulting in packet loss.

[0076] Compared with the prior art, the present application directly copies the received first data packet after the switch determines that it is the congestion occurrence point, injects a CNP mark into the copied second data packet to generate a third data packet, and forwards the third data packet to the corresponding server sending end, so as to immediately notify the server sending end to slow down when congestion occurs.

[0077] If the port queues of three switches are congested, the CNP tags injected by multiple switches in the prior art must be fully transmitted to the receiving server before a congestion notification is sent to the server sending end, and the speed reduction is only performed once. However, compared with the situation where one switch is congested, the congestion at this time is more urgent and requires a larger speed reduction adjustment. Compared with the prior art, a normal speed reduction cannot alleviate the congestion at all. Therefore, after each switch in the present application determines that it is the congestion occurrence point, it will follow the above process and forward the third data packets generated by the three switches to the corresponding server sending end in turn according to the time of receiving the message, so that the server sending end can correspondingly reduce the speed three times, effectively alleviating the congestion.

[0078] The embodiment of the present invention performs traffic sampling on the received first data packet, classifies different servers using the sampled characterization information, and decides to replicate the first data packet and inject congestion marking information when congestion occurs on the target server, and sends the obtained third data packet back to the target server. This can notify the server to adjust the rate in advance, improve network energy efficiency, optimize the control effect of network congestion, avoid packet loss at the point of congestion to a large extent, and improve user experience.

[0079] Based on any of the above embodiments, flow sampling is performed on the first data packet sent by the target server to obtain characterization information, including: setting an extended field for the sFlow network protocol.

[0080] The extended field includes at least one of a port number, a port rate, a queue number, a queue utilization rate, and a number of dropped packets.

[0081] Specifically, in step 101, the network congestion control device receives an extended field set by a user terminal, and adds the received extended field to the message header format Expanded Counter Sample of the characterization information obtained by sFlow sampling, so as to update the sFlow network protocol.

[0082] The embodiment of the present invention does not specifically limit the extended field.

[0083] Optionally, the extended field may be a port number, which is used to indicate a service provided by a specific process in a server.

[0084] Optionally, the extended field may be a port rate, where the port rate refers to the transmission rate from a computer serial port to a modem and is used to characterize data throughput.

[0085] Optionally, the extended field may be a queue number, and the queue number is used to indicate a sequence number of a queue formed by various ports in a server.

[0086] Optionally, the extended field can be a queue utilization rate. The queue utilization rate refers to the statistics of the usage status of a port queue within a time period. This indicator can be used to show the occupancy of each port within a certain time period. If the occupied ratio of the port is large, the server may be in a congested state. Therefore, the queue utilization rate must be controlled at a certain ratio to ensure smooth network operation.

[0087] Optionally, the extended field may be the number of dropped packets, which refers to the number of packets lost during the process of sending packets. If the proportion of dropped packets to sent packets (ie, packet loss rate) is high, it means that the network transmission efficiency is poor.

[0088] The first data packet is sampled for flow rate using the updated sFlow network protocol to obtain the characterization information.

[0089] Specifically, the network congestion control device uses the sFlow network protocol with the extended field to perform flow sampling on the first data packet, and in addition to obtaining the characterization information corresponding to the default field, also obtains the characterization information corresponding to the extended field.

[0090] Among them, the default fields of Expanded Counter Sample in the message header format are shown in Table 1.

[0091] Table 1 Default fields of Expanded Counter Sample (format = 1001)

[0092] int 5s CPU percentage (5 seconds CPU usage) int 1m CPU percentage (1 minute CPU usage) int 5m CPU percentage (5-minute CPU usage) hyper total memory hyper free memory

[0093] Accordingly, the representation information corresponding to the default field includes but is not limited to the sampling value of the CPU usage for 5 seconds of the first data packet (data type is int type), the sampling value of the CPU usage for 1 minute (data type is int type), the sampling value of the CPU usage for 5 minutes (data type is int type), the sampling value of the total memory (data type is hyper type) and the sampling value of the remaining memory (data type is hyper type).

[0094] In addition, the extended field of Expanded Counter Sample in the message header format is shown in Table 2.

[0095] Table 2 Expanded Counter Sample expanded fields (format = 1002)

[0096] int ifIndex(port number) hyper ifSpeed ​​(port speed) int queueNumber (queue number) int queueCounterUtil (queue utilization) int dropCounter (number of dropped packets)

[0097] Correspondingly, the characterization information corresponding to the extended field includes but is not limited to the sampling value of the port number of the first data packet (data type is int type), the sampling value of the port rate (data type is hyper type), the sampling value of the queue number (data type is int type), the sampling value of the queue utilization rate (data type is int type) and the sampling value of the number of packet drops (data type is int type).

[0098] The embodiment of the present invention performs traffic sampling on the received first data packet based on the usage of each queue and the CPU usage, and then classifies different servers using the sampled characterization information. When congestion occurs on the target server, it is decided to copy the first data packet and inject congestion marking information, and then send the obtained third data packet back to the target server. It can greatly reduce the network resources occupied in the process of forwarding the sampled packet to the collector, and greatly reduce the load of the collector when analyzing the data, so as to realize early notification of the server to adjust the rate, improve network energy efficiency, optimize the control effect of network congestion, and largely avoid the situation of packet loss at the point of congestion, thereby improving user experience.

[0099] On the basis of any of the above embodiments, determining a classification result of a target server based on the characterization information includes: inputting the characterization information into a classification model to obtain the classification result output by the classification model.

[0100] The classification model is a deep data packet inspection (DPI) model trained based on sample characterization information and congestion information annotated corresponding to the sample characterization information.

[0101] It should be noted that the classification model can be a DPI model built based on a neural network, and the structure and parameters of the neural network include but are not limited to the number of layers of the input layer, hidden layer and output layer of the neural network, and the weight parameters of each layer, etc. The embodiment of the present invention does not specifically limit the type and structure of the neural network.

[0102] Among them, the DPI model is a computer network packet filtering technology that is used to check the data part of the data packet passing through the detection point, and works in the application layer of the Open System Interconnection (OSI) reference model. Using DPI detection technology can discover, identify, classify, reroute or block data packets with special data or code payloads, while traditional packet filtering can only detect data packet headers and cannot discover these data packets.

[0103] For example, a classification model can be a neural network model consisting of an input layer, a hidden layer, and an output layer, where:

[0104] The input layer is at the front end of the entire network and directly receives the sampled representation information.

[0105] The hidden layer can have one or more layers, and the input vector is calculated by weighted summation through its own neurons.

[0106] The output layer is the last layer, which is used to decode the vector obtained after weighted summation, output the classification result, and output the type of classification result according to different requirements. This value can be a category vector value, or a continuous value generated by linear regression, or other complex types of values ​​or vectors. The embodiment of the present invention does not make specific limitations on this.

[0107] The activation function is a function that runs on the neurons of the artificial neural network and is responsible for mapping the input of the neuron to the output. The activation function is used for logistic regression processing, that is, the weighted sum of the hidden layer output is converted into a nonlinear classification result. The embodiment of the present invention does not specifically limit the type of activation function.

[0108] Preferably, the Softmax function is used for logistic regression processing, and the outputs of multiple neurons are mapped to the interval (0, 1), which can be understood as probability, so as to perform multi-classification.

[0109] It should be noted that the sample data used for training the model includes sample characterization information corresponding to the sample data packet and congestion information annotated on the sample characterization information. The sample data is divided into a training set and a test set according to a certain ratio.

[0110] The congestion information includes, but is not limited to, congestion degree data, congestion duration data, etc., so as to comprehensively describe the congestion situation corresponding to the sample data packet during the transmission process.

[0111] Exemplarily, the ratio of the training set to the test set in the sample data includes, but is not limited to, 9:1, 8:2, etc., which is not specifically limited in the embodiment of the present invention.

[0112] Specifically, in step 102, the network congestion control device initializes the weight coefficients between the layers of the constructed classification model, and then inputs a set of sample data and the annotation content of the sample data in the training set into the neural network under the current weight coefficient, and calculates the output of each node of the input layer, hidden layer and output layer in turn. The cumulative error between the final output result of the output layer and its actual connection position state type is used to correct the weight coefficients between the input layer and the hidden layer nodes according to the gradient descent method. According to the above process, until all the sample data in the training set are traversed, the weight coefficients of the input layer and the hidden layer can be obtained.

[0113] The network congestion control device restores the classification model according to the weight coefficients of the neural network input layer and the hidden layer, and inputs each set of control data received in real time into the trained classification model, so as to predict the classification result corresponding to the target server.

[0114] The classification result may be a probability value or a label result. The embodiment of the present invention does not specifically limit the form of the behavior classification result.

[0115] If the classification result can be a probability value, the probability of congestion occurring in the target server after the first data packet is sent can be described by the probability value.

[0116] If the classification result can be a label result, an intermediate numerical result can be obtained through the model. If the numerical result meets the preset target conditions, the corresponding category label is assigned to the target server corresponding to the numerical result.

[0117] The embodiment of the present invention is based on taking the characterization information as the input of the classification model, and the output result is the category corresponding to the corresponding target server. The sampled data is automatically subjected to deep packet detection through a multi-layer neural network, which can improve the accuracy and efficiency of packet recognition.

[0118] Based on any of the above embodiments, the classification model includes a feature extraction layer, a queuing prediction layer and a congestion judgment layer.

[0119] The characterization information is input into the feature extraction layer to obtain queue feature information output by the feature extraction layer.

[0120] The queue feature information is input into the queue prediction layer to obtain a queue prediction result output by the queue prediction layer.

[0121] The queuing prediction result is input into the congestion judgment layer to obtain the classification result output by the congestion prediction layer.

[0122] Specifically, in step 102, the classification model built into the network congestion control device is composed of an input layer, a hidden layer and an output layer. The function of the hidden layer is to extract and identify the input representation information through its own neurons.

[0123] The embodiment of the present invention does not specifically limit the structure of the hidden layer.

[0124] Preferably, the hidden layer includes at least three layers, namely, a feature extraction layer, a queue prediction layer and a congestion judgment layer. Among them:

[0125] The function of the feature extraction layer is to select at least two indicators from the characterization information, namely, one is related to the queue usage, and the other is related to the CPU usage, and perform feature extraction and fusion on the sample values ​​of the above two indicators to obtain queue feature information.

[0126] The role of the queue prediction layer is to perform weighted operations on the queue feature information transmitted by each neuron through preset conditions, and to obtain queue prediction results that predict future congestion leading to queuing or packet loss.

[0127] The queue prediction results include but are not limited to the predicted value of the congestion degree and the predicted value of the congestion duration.

[0128] The function of the category recognition layer is to map the queue prediction results into a two-dimensional vector using full connection processing and Softmax processing, and perform classification processing based on this two-dimensional vector to obtain the classification result, so as to know whether the target server is a congested server.

[0129] The embodiment of the present invention does not specifically limit the application process of the classification model.

[0130] Exemplarily, taking the queue usage and CPU usage taken out from the characterization information as queue feature information for analysis and training as an example, the classification model can predict that congestion may occur in the future when the queue usage exceeds the threshold of 80% and the five-second CPU usage exceeds 80%, that is, the classification result of the target server is set as a congested server, then when forwarding the message, a copy of the original data packet is first copied and sent back to the target server with a CNP mark, so that the target server receives the message carrying the CNP mark and slows down early.

[0131] It is understandable that the analysis criteria used by the classification model can be changed according to the needs of its own products, that is, one or more fields can be selected from Table 1 and Table 2, and the information belonging to the selected fields in the characterization information can be used as queue feature information for analysis and identification.

[0132] The embodiment of the present invention extracts features from the characterization information based on the feature extraction layer, classifies and identifies the queue feature information output by the feature extraction layer through the queue prediction layer, and then maps the queue prediction results into classification results through the congestion judgment layer. It can fully explore the logic and relevance of the data obtained by traffic sampling, reduce the computational complexity and development difficulty, and improve the efficiency of the model while improving the accuracy of data packet recognition.

[0133] Based on any of the above embodiments, after obtaining the characterization information, the method further includes: when it is determined that the number of dropped packets carried in the characterization information is greater than or equal to a preset threshold, setting the classification result of the target server as a congested server.

[0134] Specifically, after step 101, after the network congestion control performs flow sampling on the first data packet according to the sFlow network protocol to obtain characterization information, if the number of dropped packets carried in the characterization information is greater than or equal to a preset threshold, the classification result of the sender of the first data packet (i.e., the target server) is directly determined as a congested server. At the same time, when forwarding the message, after setting a CNP mark on the second data packet obtained by first copying the first data packet, the marked third data packet is sent back to the target server.

[0135] If the number of dropped packets carried in the characterization information is less than a preset threshold, the classification result of the sender of the first data packet (ie, the target server) is directly determined as a non-congested server, and the first data is directly forwarded to the next hop address.

[0136] Based on the number of dropped packets carried in the characterization information, the embodiment of the present invention directly decides to classify the target server as a congested server when the number of dropped packets is greater than or equal to a preset threshold. Furthermore, when congestion occurs on the target server, it decides to copy the first data packet and inject congestion marking information, and then send the obtained third data packet back to the target server. It can realize early notification of the server to adjust the rate, improve network energy efficiency, optimize the control effect of network congestion, avoid packet loss at the point of congestion to a large extent, and improve user experience.

[0137] Figure 2 Schematic diagram of the structure of the network congestion control device provided by the present invention. Figure 2As shown, based on any of the above embodiments, the device includes: a traffic sampling module 210, a server classification module 220, a congestion decision module 230 and a congestion notification module 240, wherein:

[0138] The traffic sampling module 210 is used to perform traffic sampling on the first data packet sent by the target server to obtain characterization information.

[0139] The server classification module 220 is used to determine the classification result of the target server based on the characterization information.

[0140] The congestion decision module 230 is used to obtain a third data packet after setting congestion marking information on the second data packet when determining that the classification result is a congested server.

[0141] The congestion notification module 240 is used to feed back the third data packet to the target server, so that the target server can adjust the rate according to the congestion marking information carried by the third data packet.

[0142] The second data packet is obtained by copying the first data packet.

[0143] Specifically, the traffic sampling module 210 , the server classification module 220 , the congestion decision module 230 and the congestion notification module 240 are electrically connected in sequence.

[0144] The traffic sampling module 210 performs statistical sampling on the usage rates of different queues and CPU usage rates in the switch on which it relies to operate, and obtains relevant characterization information.

[0145] The server classification module 220 uses the characterization information sampled by the traffic sampling module 210 as the basis for server classification, and performs comparative analysis in combination with corresponding preset conditions to obtain a classification result of the target server.

[0146] If the congestion decision module 230 determines that the classification result of the target server is a congested server, it copies the original first data packet and adds congestion mark information to the copied second data packet to obtain a third data packet.

[0147] The congestion notification module 240 forwards the third data packet back to the target server.

[0148] After receiving the third data packet, the target server parses the message and adjusts the network rate of the target server itself accordingly according to the congestion mark information (ie, CNP mark) carried by the third data packet.

[0149] Optionally, the traffic sampling module 210 includes an extended field setting unit and a traffic sampling unit, wherein:

[0150] An extended field setting unit is used to set an extended field for the sFlow network protocol.

[0151] The flow sampling unit is used to perform flow sampling on the first data packet by using the updated sFlow network protocol to obtain the characterization information.

[0152] The extended field includes at least one of a port number, a port rate, a queue number, a queue utilization rate, and a number of dropped packets.

[0153] Optionally, the server classification module 220 is specifically configured to input the characterization information into a classification model to obtain the classification result output by the classification model.

[0154] The classification model is a deep data packet inspection (DPI) model trained based on sample characterization information and congestion information annotated corresponding to the sample characterization information.

[0155] Optionally, the classification model includes a feature extraction layer, a queuing prediction layer and a congestion judgment layer.

[0156] Accordingly, the server classification module 220 includes a feature extraction unit, a queuing prediction unit and a congestion determination unit, wherein:

[0157] The feature extraction unit is used to input the representation information into the feature extraction layer to obtain the queue feature information output by the feature extraction layer.

[0158] The queue prediction unit is used to input the queue feature information into the queue prediction layer to obtain the queue prediction result output by the queue prediction layer.

[0159] The congestion judgment unit is used to input the queuing prediction result into the congestion judgment layer to obtain the classification result output by the congestion prediction layer.

[0160] Optionally, the device further includes a packet drop quantity decision module, wherein:

[0161] The packet loss number decision module is used to set the classification result of the target server as a congested server when it is determined that the packet loss number carried in the characterization information is greater than or equal to a preset threshold.

[0162] The network congestion control device provided in the embodiment of the present invention is used to execute the above-mentioned network congestion control method of the present invention. Its implementation method is consistent with the implementation method of the network congestion control method provided by the present invention and can achieve the same beneficial effects, which will not be repeated here.

[0163] The embodiment of the present invention performs traffic sampling on the received first data packet, classifies different servers using the sampled characterization information, and decides to replicate the first data packet and inject congestion marking information when congestion occurs on the target server, and sends the obtained third data packet back to the target server. This can notify the server to adjust the rate in advance, improve network energy efficiency, optimize the control effect of network congestion, avoid packet loss at the point of congestion to a large extent, and improve user experience.

[0164] Figure 3 Schematic diagram of the structure of the communication system provided by the present invention. Figure 3 As shown, based on any of the above embodiments, the communication system includes: a first server 310 and a second server 320, and also includes one or more switches 330, and the switches 330 are used to execute the above network congestion control method.

[0165] The first server 310 is used to send a first data packet using the second server 320 as a destination port.

[0166] The switch 330 is configured to feed back the third data packet carrying the congestion marking information to the first server 310 to adjust the network rate when it is determined that the classification result of the first server 310 is a congested server.

[0167] The switch 330 is further configured to forward the first data packet to the second server 320 in sequence when it is determined that the classification result of the first server 310 is a non-congested server.

[0168] The third data packet is obtained by setting congestion marking information on the second data packet; and the second data packet is obtained by copying the first data packet.

[0169] Specifically, the communication system is composed of a first server 310 and a second server 320 serving as a sending end and a receiving end of a data packet respectively, and one or more switches 330 are connected between the sending end and the receiving end.

[0170] Among them, the first server 310 and the second server 320 can both use network cards that support RDMA, and can parse RoCEv2 messages to perform corresponding rate adjustment behaviors according to the received CNP mark.

[0171] The switch 330 can forward RoCEv2 messages and support PFC and ECN functions.

[0172] Preferably, the switch 330 supports the sFlow traffic sampling protocol, and can carry the required information from the sFlowExpanded Counter Sample (it can also be sent to the sFlow collector for sampling analysis), and use the deep packet inspection DPI technology in the classification model to analyze the results of queue utilization and CPU utilization. When the DPI determines that the classification result of the first server is a congested server, the first data packet is copied into a second data packet in advance, and a CNP mark is added to it, and the marked third data packet is forwarded back to the first server 310, so that the first server 310 is notified of the congestion in advance and the speed is increased or decreased in advance.

[0173] When the DPI determines that the classification result of the first server is a non-congested server, the first data packet is directly forwarded, and is sent to the second server 320 after multiple jumps through multiple switches.

[0174] It is understandable that the communication system provided by the embodiment of the present invention can be established under the SONiC architecture to expand its application to other network operating systems.

[0175] The embodiment of the present invention performs traffic sampling on the received first data packet, classifies different servers using the sampled characterization information, and decides to replicate the first data packet and inject congestion marking information when congestion occurs on the target server, and sends the obtained third data packet back to the target server. This can notify the server to adjust the rate in advance, improve network energy efficiency, optimize the control effect of network congestion, avoid packet loss at the point of congestion to a large extent, and improve user experience.

[0176] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the network congestion control method, which includes: sampling the flow of the first data packet sent by the target server to obtain characterization information; determining the classification result of the target server based on the characterization information; in the case where the classification result is determined to be a congested server, setting congestion mark information for the second data packet to obtain a third data packet; feeding back the third data packet to the target server, so that the target server can adjust the network rate according to the congestion mark information carried by the third data packet; wherein the second data packet is obtained by copying the first data packet.

[0177] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0178] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the network congestion control method provided by the above methods, which includes: sampling the traffic of a first data packet sent by a target server to obtain characterization information; determining a classification result of the target server based on the characterization information; when it is determined that the classification result is a congested server, setting congestion mark information for a second data packet to obtain a third data packet; feeding back the third data packet to the target server so that the target server can adjust the network rate according to the congestion mark information carried by the third data packet; wherein the second data packet is obtained by copying the first data packet.

[0179] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the network congestion control method provided by the above-mentioned methods, the method comprising: sampling the traffic of a first data packet sent by a target server to obtain characterization information; determining a classification result of the target server based on the characterization information; when it is determined that the classification result is a congested server, setting congestion marking information for a second data packet to obtain a third data packet; feeding back the third data packet to the target server so that the target server can adjust the network rate according to the congestion marking information carried by the third data packet; wherein the second data packet is obtained by copying the first data packet.

[0180] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0182] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network congestion control method, characterized in that: include: Performing flow sampling on the first data packet sent by the target server to obtain characterization information; Based on the characterization information, determining a classification result of the target server; Determining the classification result of the target server based on the characterization information includes: inputting the characterization information into a classification model to obtain the classification result output by the classification model; wherein the classification model is a deep packet inspection (DPI) model trained based on sample characterization information and congestion information annotated corresponding to the sample characterization information; the classification model includes a feature extraction layer, a queue prediction layer and a congestion judgment layer; inputting the characterization information into the feature extraction layer to obtain queue feature information output by the feature extraction layer; inputting the queue feature information into the queue prediction layer to obtain the queue prediction result output by the queue prediction layer; inputting the queue prediction result into the congestion judgment layer to obtain the classification result output by the congestion prediction layer; When it is determined that the classification result is a congested server, a third data packet is obtained after setting congestion marking information for the second data packet; the congestion marking information is the marking content of the congestion notification data packet CNP; Feedback the third data packet to the target server, so that the target server can adjust the network rate according to the congestion marking information carried by the third data packet; The second data packet is obtained by copying the first data packet.

2. The network congestion control method according to claim 1, characterized in that: The performing flow sampling on the first data packet sent by the target server to obtain the characterization information includes: Set extended fields for the sFlow network protocol; Using the updated sFlow network protocol to perform flow sampling on the first data packet to obtain the characterization information; The extended field includes at least one of a port number, a port rate, a queue number, a queue utilization rate, and a number of dropped packets.

3. The network congestion control method according to any one of claims 1-2, characterized in that: After obtaining the characterization information, the method further includes: When it is determined that the number of dropped packets carried in the characterization information is greater than or equal to a preset threshold, the classification result of the target server is set as a congested server.

4. A network congestion control device, characterized in that: include: A traffic sampling module, used for sampling the traffic of the first data packet sent by the target server to obtain characterization information; A server classification module, used to determine a classification result of a target server based on the characterization information; Determining the classification result of the target server based on the characterization information includes: inputting the characterization information into a classification model to obtain the classification result output by the classification model; wherein the classification model is a deep packet inspection (DPI) model trained based on sample characterization information and congestion information annotated corresponding to the sample characterization information; the classification model includes a feature extraction layer, a queue prediction layer and a congestion judgment layer; inputting the characterization information into the feature extraction layer to obtain queue feature information output by the feature extraction layer; inputting the queue feature information into the queue prediction layer to obtain the queue prediction result output by the queue prediction layer; inputting the queue prediction result into the congestion judgment layer to obtain the classification result output by the congestion prediction layer; A congestion decision module, configured to obtain a third data packet after setting congestion marking information on the second data packet when determining that the classification result is a congested server; the congestion marking information is a marking content of a congestion notification data packet CNP; A congestion notification module, configured to feed back the third data packet to the target server, so that the target server can adjust the rate according to the congestion marking information carried by the third data packet; The second data packet is obtained by copying the first data packet.

5. A communication system, comprising a first server and a second server, characterized in that: It also includes one or more switches, wherein the switches are used to execute the network congestion control method according to any one of claims 1 to 3; The first server is used to send a first data packet using the second server as a destination port; The switch is configured to feed back a third data packet carrying congestion marking information to the first server to adjust the network rate when determining that the classification result of the first server is a congested server; The switch is further configured to, when determining that the classification result of the first server is a non-congested server, forward the first data packet to the second server in sequence; The third data packet is obtained by setting congestion marking information on the second data packet; and the second data packet is obtained by copying the first data packet.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the network congestion control method according to any one of claims 1 to 3 is implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network congestion control method according to any one of claims 1 to 3 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the network congestion control method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Bridge port expansion network and congestion control method thereof, port expander (PE) and control bridge

    CN102594676A

  • Network congestion control method, device, equipment, system and storage medium

    CN113746744A