Traffic processing method and device

By performing traffic detection and speed measurement on message flow, determining burst traffic, and transmitting according to traffic rate, the problem of traffic congestion and message discarding in the prior art is solved, and the efficiency and timeliness of network data transmission are improved .

CN119232608APending Publication Date: 2024-12-31HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310803160.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The prior art does not respond in a timely manner when traffic congestion and message discarding are detected, resulting in low network data transmission efficiency.

Method used

By performing traffic detection on message flow, determining burst traffic, and transmitting it according to the measured traffic rate, predicting and processing traffic congestion risks, improving the timeliness and efficiency of traffic processing.

Benefits of technology

Prediction and processing before traffic congestion and message discarding occurs is realized, network data transmission efficiency is improved, throughput impact is reduced, and throughput is greatly reduced due to the sharp reduction of the sending window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232608A_ABST
    Figure CN119232608A_ABST
Patent Text Reader

Abstract

The invention provides a traffic processing method and device, and relates to the technical field of network data transmission. The method comprises the following steps: carrying out flow detection on a message flow to determine burst flow; measuring the speed of the burst flow to obtain a flow rate; and transmitting the burst traffic according to the traffic rate. According to the invention, the network data transmission efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of network data transmission, and in particular to a traffic processing method, device, computer-readable storage medium, and computer program product. Background Art

[0002] Network data can be transferred between the sender and the receiver through intermediate network devices to achieve communication interaction between the sender and the receiver.

[0003] The existing technology is to reduce the network data transmission rate by the sender or feed back traffic congestion messages to other devices when traffic congestion and message discarding are detected, so that other devices can buffer "burst traffic". The processing method of the existing technology does not respond in time to events after traffic congestion or message discarding has occurred, and the data transmission efficiency is low.

[0004] Therefore, how to deal with traffic congestion to improve network data transmission efficiency has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides a traffic processing method and device, which can improve network data transmission efficiency.

[0006] In a first aspect, the present application relates to a traffic processing method, comprising: performing traffic detection on a message flow to determine burst traffic; measuring the speed of the burst traffic to obtain a traffic rate; and transmitting the burst traffic according to the traffic rate.

[0007] Performing flow detection on a message flow can be understood as performing flow detection on messages of the message flow one by one.

[0008] Exemplarily, “measuring the speed of burst traffic to obtain the traffic rate” may be periodically measuring the speed of burst traffic to obtain the latest traffic rate, for example, transmitting burst traffic according to the latest traffic rate.

[0009] Exemplarily, transmitting the burst traffic according to the traffic rate may include, for example, buffering the burst traffic to a network device, and transmitting the buffered burst traffic according to the traffic rate.

[0010] By performing traffic detection on the message flow, burst traffic with the risk of causing traffic congestion can be determined, so that the traffic can be processed in a targeted manner. This can be understood as predicting burst traffic before traffic congestion and message discarding occurs, and the timeliness of traffic processing is higher. In particular, compared with the implementation method of providing feedback to the sender after traffic congestion and message discarding occurs so that the sender can reduce the sending window, the timeliness and efficiency of traffic processing are higher.

[0011] By measuring the speed of burst traffic, the traffic rate obtained can be used for subsequent transmission of burst traffic. The transmission speed of burst traffic is more stable and has less impact on throughput, especially there will be no situation where the throughput drops sharply due to, for example, a sharp reduction in the sending window at the sender.

[0012] In addition, the operations of the traffic processing method in the embodiment of the present application are all performed by network devices, and there is no process for multiple network devices to communicate and interact with each other about traffic congestion or packet discard. Therefore, there is no communication overhead and delay problem between multiple network devices.

[0013] In a possible embodiment, the traffic processing method further includes: classifying the message flow to determine whether the message flow is burst traffic.

[0014] Exemplarily, the classification criteria for classifying the message flow may be, for example, priority, service type, quintuple, etc.

[0015] According to the embodiments of the present application, by classifying the message flows, messages of different categories can be distinguished according to the message characteristics, thereby improving the network data transmission efficiency.

[0016] Exemplarily, for example, the message flow can be classified to obtain at least one single-category message flow. Each single-category message flow can be used for traffic detection to determine burst traffic. Thus, a specific example of classifying the message flow to determine whether the message flow is a burst traffic can be implemented.

[0017] In a possible embodiment, performing traffic detection on the message flow to determine the burst traffic may include: determining the data volume of the message flow within a first predetermined time period. If the data volume is greater than or equal to a data volume threshold, determining that the message flow is a burst traffic.

[0018] Exemplarily, the first predetermined time period may be customized or preset, for example.

[0019] Exemplarily, for example, the accumulated data volume of the message flow from the beginning of transmission to the present can also be counted as the data volume of the message flow.

[0020] The transmission message flow is the full amount of data of the transmission message flow. The current accumulated data volume is related to the traffic congestion risk. By comparing the data volume with the data volume threshold, the burst traffic can be accurately and efficiently determined. The burst traffic has a greater risk of traffic congestion.

[0021] Exemplarily, the data volume threshold is related to, for example, a cache resource of a downstream network device of the network device.

[0022] The downstream network device is connected to the network device and is located downstream of the message flow sent by the network device from the network side to the terminal side.

[0023] Exemplarily, the data volume threshold may be set to, for example, 1 / N of the cache resources of the downstream network device, where N is equal to or greater than 1.

[0024] In the embodiment of the present application, the data volume threshold is determined based on the cache resources of the downstream network device, so that when the network device processes the message flow and sends the message flow to the downstream network device, the downstream network device has sufficient resources to cache the message flow, and traffic congestion and message discarding will not occur in the downstream network device.

[0025] In a possible embodiment, measuring the speed of the burst traffic to obtain the traffic rate may include: determining the traffic rate according to the data volume of the burst traffic in the second predetermined time period and the speed measurement duration.

[0026] Exemplarily, for example, the ratio of the data volume of the burst traffic in the second predetermined time period to the speed measurement duration may be used as the traffic rate.

[0027] The second predetermined time period may be, for example, customized or preset, and the second predetermined time period may be, for example, the same as the first predetermined time period.

[0028] Exemplarily, the speed measurement duration may be greater than or equal to the round trip time (Round Trip Time, abbreviated as RTT).

[0029] Most of the network data interactions between the terminal and the network side use RTT as the cycle duration of network data transmission. In actual business scenarios, for example, large-scale message transmission is also transmitted in multiple batches through multiple RTTs. Therefore, when the speed measurement duration is RTT, it can be ensured that the message flow is transmitted smoothly in at least one batch to ensure network transmission efficiency.

[0030] In a possible embodiment, transmitting the burst traffic according to the traffic rate may include: shaping the burst traffic according to the traffic rate, and transmitting the burst traffic according to the traffic rate.

[0031] Exemplarily, for example, a shaper may be used to implement a specific example of shaping burst traffic according to traffic rate. The traffic processing method of the embodiment of the present application may be applied to a network device, and the network device may include a shaper.

[0032] The traffic processing method of the embodiment of the present application can shape the burst traffic according to the traffic rate so that the burst traffic can be transmitted according to the traffic rate, thereby having higher network data transmission efficiency.

[0033] In a second aspect, the present application relates to a traffic processing method, including: performing traffic detection on a message flow to determine burst traffic; measuring the speed of the burst traffic to obtain a traffic rate; and sending a traffic rate.

[0034] In a third aspect, the present application relates to a traffic processing method, comprising: receiving a traffic rate; and transmitting burst traffic according to the traffic rate.

[0035] In a fourth aspect, the present application relates to a traffic processing device, comprising: a traffic detection module, used to perform traffic detection on a message flow to determine burst traffic; a speed measurement module, used to measure the speed of burst traffic to obtain a traffic rate; and a traffic transmission module, used to transmit burst traffic according to the traffic rate.

[0036] In a fifth aspect, the present application relates to a traffic processing device, comprising: a traffic detection module, used to perform traffic detection on a message flow to determine burst traffic; a speed measurement module, used to measure the speed of burst traffic to obtain a traffic rate; and a sending module, used to send the traffic rate.

[0037] In a sixth aspect, the present application relates to a traffic processing device, comprising: a receiving module for receiving a traffic rate; and a traffic transmission module for transmitting burst traffic according to the traffic rate.

[0038] In a seventh aspect, the present application relates to a traffic processing device, comprising: at least one processor; the at least one processor is used to execute instructions so that the traffic processing device performs the above-mentioned traffic processing method.

[0039] In some embodiments, the instructions are stored in a memory that is communicatively connected or coupled to the at least one processor.

[0040] In an eighth aspect, a computer-readable storage medium storing computer instructions is provided, wherein when the computer instructions are executed, the computer executes the above-mentioned traffic processing method. In some embodiments, the computer-readable storage medium is a non-transient storage medium.

[0041] In a ninth aspect, the present application relates to a computer program product, including a computer program, wherein the computer program is stored on a readable storage medium, and when the computer program is executed, the computer implements the above-mentioned traffic processing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The following is an introduction to the drawings used in the embodiments of the present application.

[0043] Figure 1A The schematic diagram schematically shows traffic congestion in a campus network;

[0044] Figure 1BA schematic diagram showing, in some implementation modes, when a sending end of a message flow detects that a network device has traffic congestion or message discards, a schematic diagram of responding to traffic congestion by reducing the sending window size;

[0045] Figure 2A A system architecture of a traffic processing method and device according to an embodiment of the present disclosure is schematically shown;

[0046] Figure 2B Another system architecture of the traffic processing method and device according to an embodiment of the present disclosure is schematically shown;

[0047] Figure 3 A flow chart of a traffic processing method according to an embodiment of the present disclosure is schematically shown;

[0048] Figure 4 A schematic diagram schematically shows a flow processing method according to another embodiment of the present disclosure;

[0049] Figure 5 A schematic diagram schematically shows a flow processing method according to another embodiment of the present disclosure;

[0050] Figure 6 A flow chart of a traffic processing method according to an embodiment of the present disclosure is schematically shown;

[0051] Figure 7 A flow chart of a traffic processing method according to an embodiment of the present disclosure is schematically shown;

[0052] Figure 8 A schematic diagram schematically shows the communication interaction between the first network device and the second network device;

[0053] Fig. 9 A block diagram of a flow processing device according to an embodiment of the present disclosure is schematically shown;

[0054] Fig.10 A block diagram of a flow processing device according to an embodiment of the present disclosure is schematically shown;

[0055] Fig.11 A block diagram schematically shows a flow processing device according to an embodiment of the present disclosure; and

[0056] Fig.12 A block diagram of a traffic processing device that can implement an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0059] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0060] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0061] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0062] Communication networks can be divided into wide area networks, metropolitan area networks, and local area networks based on their coverage. Due to the rapid development of informatization, the number of local area networks has increased rapidly. From a business perspective, the computer network covering the enterprise park is the campus network, which can also be understood as a type of local area network. The following will take the campus network as an example to explain.

[0063] Figure 1AThe diagram schematically shows traffic congestion in a campus network.

[0064] like Figure 1A As shown in the figure, the campus network includes a variety of network devices and terminal devices. Figure 1A The schematic diagram shows a specific example in which the network equipment includes a core switch, an aggregation switch, an edge switch, and an access point. Specifically, Figure 1A The diagram schematically shows a specific example in which the campus network includes a core switch 101, aggregation switches 102-1 to aggregation switches 102-x1, a specific example in which a total of x1 aggregation switches are present; the diagram schematically shows a specific example in which edge switches 103-1 to edge switches 103-x3, a specific example in which a total of x3 edge switches are present; the diagram schematically shows a specific example in which access points 104-1 to access points 104-x4, a specific example in which a total of x4 access points are present, where x1, x3, and x4 are all positive integers greater than 1. Figure 1A It also schematically shows a specific example of a terminal device including a personal computer, a mobile phone, and a portable computer. Figure 1A In the example, the network devices connected to the aggregation switch 102-1 and located downstream of the aggregation switch include a total of x2 edge switches from the edge switch 103-1 to the edge switch 103-x2, where x is a positive integer greater than 1, and x2 is less than x3.

[0065] Figure 1A Taking the transmission of a message flow 100 from the network side to the terminal side as an example, the message flow 100 can be transmitted from a wide area network / metropolitan area network ( Figure 1A The data flows out of the WAN / MAN (not shown) and is transmitted to the core switch 101 of the campus network, and is transmitted to the terminal device, the portable computer 105-1, via the aggregation switch 102-1, the edge switch 103-1, and the access point 104-1 in sequence.

[0066] In the downlink transmission direction from the network side to the terminal side, each time a hop of network equipment is passed, the downlink port of the network equipment gradually converges, that is, the maximum bandwidth of the downlink transmission direction of the downlink port becomes smaller. Figure 1A The example schematically shows that the maximum bandwidth of the downlink port of the core switch is 100 Gbps, the maximum bandwidth of the downlink port of the aggregation switch is 40 Gbps, the maximum bandwidth of the downlink port of the edge switch is 10 Gbps, and the maximum bandwidth of the downlink port of the access point is 1 Gbps.

[0067] Taking the case where a message flows through the edge switch 103-1 to the access point 104-1 to the access point 104-x4 as an example, the edge switch 103-1 can transmit the message flow 100 with a maximum bandwidth of 10Gbps. When the number of access points x4 is greater than 10, no traffic congestion will occur when the message flow is transmitted from the edge switch 103-1 to the access point 104-1 to the access point 104-x4. In the uplink transmission direction from the terminal side to the network side, if the access point 104-1 to the access point 104-x4 transmit the message flow to the edge switch 103-1 with a maximum bandwidth of 1Gbps, when the number of access points x4 is greater than 10, the sum of the maximum bandwidths of the access points is greater than the maximum bandwidth of the edge switch 103-1, 10Gbps. At this time, the edge switch 103-1 will experience traffic congestion, and the edge switch 103-1 will discard the message to deal with the traffic congestion.

[0068] like Figure 1B As shown, it schematically shows a schematic diagram of how, in some implementations, when the sending end of a message flow detects that a network device has traffic congestion or message discards, the sending window size is reduced to cope with traffic congestion. Figure 1B At time t1 shown in the figure, if congestion in network device transmission traffic or message discarding is detected, the sender of the message flow will reduce the size of the sending window, so that the message sending rate of the sender of the message flow will decrease to cope with traffic congestion and message discarding. In this implementation, reducing the sending rate by reducing the size of the sending window will affect the throughput of the campus network. In some cases, the sending rate will drop sharply, affecting the stability of network transmission.

[0069] In addition, since the cache resources of core switches, aggregation switches, edge switches, and access points generally decrease in sequence, network devices such as edge switches and access points with smaller cache resources are more likely to experience traffic congestion and packet discarding.

[0070] Still Figure 1AFor example, if traffic congestion or packet discard occurs at the edge switch 103-1, it indicates that the edge switch has a greater risk of traffic bursts. In some implementations, the edge switch 103-1 will encapsulate its own traffic congestion or packet discard information into a message and send the message to the core switch 101. The core switch 101 receives the traffic congestion or packet discard message fed back by the edge switch 103-1, and starts speed limiting and shaping processing for the packet flow flowing to the edge switch 103-1. The "overspeed traffic" or "burst traffic" flowing to the edge switch 103-1 will be temporarily cached in the core switch 101. Since the core switch 101 usually has a larger cache space than the edge switch 103-1, it can withstand larger burst traffic without packet discarding.

[0071] The embodiments of the present disclosure provide a traffic processing technology to improve the traditional traffic processing method.

[0072] Figure 2A and Figure 2B The schematic diagrams schematically show the system architecture of the traffic processing method and device according to the embodiments of the present disclosure. It should be noted that: Figure 2A and Figure 2B It is only an example of a system architecture to which the traffic processing method and device of the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be applied to other devices, systems, environments or scenarios.

[0073] Figure 2A A system architecture of a traffic processing method and device according to an embodiment of the present disclosure is schematically shown.

[0074] like Figure 2A As shown, the system architecture in the embodiment of the present disclosure may include: a server 201 , a network device 202 , a terminal device 203 , and a communication link 204 .

[0075] The terminal device 203 may be any electronic device having a display and a processor, including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like.

[0076] The server 201 may be a server that provides various services. The server 201 and the terminal device 203 may be, for example, the sending end and the receiving end of the message flow to each other.

[0077] For example, the server 201 may also have a cloud computing function, that is, the server 404 may include a cloud server or be a part of a cloud server.

[0078] The network device 202 may be, for example, a device that provides data forwarding and transmission. The network device 202 may include a switch, an access point, a router, a chip, or a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, and an edge switch. The switch may be a physical switch or a virtual switch.

[0079] After the message flow is sent from the sending end, it can be transmitted to the receiving end after being forwarded by the network device 202.

[0080] Multiple network devices can be constructed into a communication network covering a certain range, and the following will be described by taking the communication network as a campus network as an example. The campus network can include multiple network devices, and the multiple network devices can form any topology structure, and any network device can execute the traffic processing method of the embodiment of the present disclosure.

[0081] There is also a communication link 204 between the server 201, the network device 202 and the terminal device 203. The communication link 204 may include various connection types, such as wired, wireless communication links or optical fiber cables.

[0082] Figure 2B Another system architecture of the traffic processing method and device according to an embodiment of the present disclosure is schematically shown. Figure 2B As shown, the system architecture in the embodiment of the present disclosure may include: a server 201, a first device (taking the first device as the first network device 202-1 as an example), a second device (taking the second device as the second network device 202-2 as an example), a terminal device 203, and a network 204.

[0083] Different from the system architecture of the previous embodiment, the second network device 202-2 can perform traffic detection to determine burst traffic and measure the speed of the burst traffic to obtain and send the traffic rate. The first network device 202-1 can receive the traffic rate and send the burst traffic according to the traffic rate.

[0084] It should be noted that Figure 2B A specific example is schematically shown in which the second network device 202-2 is connected to the first network device 202-1 and is located upstream of the first network device 202-1. In some cases, the second network device 202-2 can be connected to the first network device 202-1 and is located downstream of the first network device 202-1. In some cases, the number of first network devices 202-1 can be multiple, and multiple first network devices 202-1 can be connected to the second network device 202-2 and are located upstream and downstream of the second network device 202-2.

[0085] The number of servers 201, network devices 202, first network devices 202-1, second network devices 202-2, terminal devices 203, and communication links 204 in the above embodiment is only for illustration, and any number of servers 201, network devices 202, first network devices 202-1, second network devices 202-2, terminal devices 203, and communication links 204 can be set as required.

[0086] The present disclosure provides a method for processing traffic. Figure 2A The system architecture of Figures 3 to 5 The flow processing method of the exemplary embodiment of the present disclosure is described as follows. The flow processing method of the exemplary embodiment of the present disclosure can be, for example, Figure 2A The network device 202 shown performs.

[0087] Figure 3 A flow chart of a traffic processing method 300 according to an embodiment of the present disclosure is schematically shown.

[0088] like Figure 3 As shown, a traffic processing method 300 according to an embodiment of the present disclosure includes operations S310 to S330.

[0089] In operation S310, traffic detection is performed on the packet flow to determine burst traffic.

[0090] A message stream can be understood as a sequence of messages that is continuous in the time dimension.

[0091] Burst traffic can be understood as traffic that exceeds the maximum bandwidth of a network device in a short period of time. When a network device receives and transmits burst traffic, there is a greater risk of traffic congestion.

[0092] Performing flow detection on a message flow can be understood as performing flow detection on messages of the message flow one by one.

[0093] In operation S320, the burst traffic is measured to obtain a traffic rate.

[0094] Exemplarily, “measuring the speed of burst traffic to obtain the traffic rate” may be periodically measuring the speed of burst traffic to obtain the latest traffic rate, for example, transmitting burst traffic according to the latest traffic rate.

[0095] In operation S330, burst traffic is transmitted according to a traffic rate.

[0096] Exemplarily, transmitting the burst traffic according to the traffic rate may include, for example, buffering the burst traffic to a network device, and transmitting the buffered burst traffic according to the traffic rate.

[0097] According to the traffic processing method of the embodiment of the present disclosure, by performing traffic detection on the message flow, burst traffic with the risk of causing traffic congestion can be determined, so that the traffic can be processed in a targeted manner, which can be understood as the prediction of burst traffic before traffic congestion and message discarding occurs, and the timeliness of traffic processing is higher. In particular, compared with the implementation method of providing feedback to the sender after traffic congestion and message discarding occurs so that the sender can reduce the sending window, the timeliness and efficiency of traffic processing are both higher.

[0098] By measuring the speed of burst traffic, the traffic rate obtained can be used for subsequent transmission of burst traffic. The transmission speed of burst traffic is more stable and has less impact on throughput, especially there will be no situation where the throughput drops sharply due to, for example, a sharp reduction in the sending window at the sender.

[0099] In addition, the operations of the traffic processing method in the embodiment of the present disclosure are all performed by network devices, and there is no process for multiple network devices to communicate and interact with each other about traffic congestion or packet discard. Therefore, there is no communication overhead and delay problem between multiple network devices.

[0100] In summary, the traffic processing method of the embodiment of the present disclosure can better cope with burst traffic and reduce the risk of traffic congestion and packet discarding caused by burst traffic.

[0101] According to another embodiment of the present disclosure, the traffic processing method may further include: classifying the message flow to determine whether the message flow is burst traffic.

[0102] Exemplarily, the classification criteria for classifying the message flow may be, for example, priority, service type, quintuple, etc.

[0103] Different types of messages have different characteristics. For example, when sending a message flow, the sender prioritizes the messages in the message flow, and the messages with higher priority should be processed first, such as being transmitted by the network device first. For another example, the bandwidth requirement of a service type such as video sent by the sender is usually greater than that of a service type such as text, and the video service type is relatively more prone to traffic congestion.

[0104] According to the traffic processing method of the embodiment of the present disclosure, by classifying the message flow, messages of different categories can be distinguished according to the message characteristics, which can improve the network data transmission efficiency.

[0105] Exemplarily, for example, the message flow can be classified to obtain at least one single-category message flow. Each single-category message flow can be used for traffic detection to determine burst traffic. Thus, a specific example of classifying the message flow to determine whether the message flow is a burst traffic can be implemented.

[0106] Figure 4 The specific example of operation S401 of classifying the packet flow 401 to obtain a total of y types of single-class packet flows, namely, single-class packet flows 402 - 1 to single-class packet flows 402 - y, is schematically shown.

[0107] Figure 4 The specific example of taking a single-class message flow 402-1 as an example and performing traffic detection on the single-class message flow 402-1 to determine the burst traffic 403 is also schematically shown: in operation S410, traffic detection is performed on the single-class message flow 402-1 to determine the burst traffic 403. In operation S420, the burst traffic 403 is speed-measured to obtain a traffic rate 404. In operation S430, the burst traffic 403 is transmitted according to the traffic rate 404.

[0108] According to another embodiment of the present disclosure, the traffic processing method can be implemented by, for example, using the following embodiments to implement traffic detection on a message flow to determine the specific operation of burst traffic: determining the data volume of the message flow within a first predetermined time period. When the data volume is greater than or equal to a data volume threshold, determining that the message flow is burst traffic.

[0109] Exemplarily, the amount of data may be measured in bits, for example.

[0110] Exemplarily, the first predetermined time period may be customized or preset.

[0111] Exemplarily, for example, the accumulated data volume of the message flow from the beginning of transmission to the present can also be counted as the data volume of the message flow.

[0112] The transmission message flow is the full amount of data of the transmission message flow. The current accumulated data volume is related to the traffic congestion risk. By comparing the data volume with the data volume threshold, the burst traffic can be accurately and efficiently determined. The burst traffic has a greater risk of traffic congestion.

[0113] Exemplarily, the data volume threshold is related to, for example, a cache resource of a downstream network device of the network device.

[0114] Exemplarily, the data volume threshold is less than or equal to a maximum value of a cache resource of the downstream network device.

[0115] The downstream network device is connected to the network device and is located downstream of the message flow sent by the network device from the network side to the terminal side.

[0116] Exemplarily, the data volume threshold may be 1 / N of the cache resources of the downstream network device, where N is equal to or greater than 1. Alternatively, the data volume threshold may be 1 / N of the maximum cache resource of the downstream network device, where N is equal to or greater than 1.

[0117] Exemplarily, the cache resources of the downstream network device may also be measured in bits.

[0118] It can be understood that when the transmission link of the message flow includes multiple network devices, the message flow will be sent to the downstream network device after being transferred by the upstream network device, and will be re-transmitted by the downstream network device. The network data transmission efficiency of the upstream network device will also affect the traffic congestion risk of the downstream network device.

[0119] Taking a network device and a downstream network device as an example, when a message flow transferred by a network device is transmitted to a downstream network device, for example, the cache resources of the downstream network device can be used to temporarily store the message flow transmitted by the network device. The size of the cache resources of the downstream network device will affect the risk of traffic congestion and message discarding when transmitting the message flow. Therefore, according to the traffic processing method of the embodiment of the present disclosure, the data volume threshold is determined based on the cache resources of the downstream network device, so that when the network device processes the message flow and sends the message flow to the downstream network device, the downstream network device has sufficient resources to cache the message flow, and traffic congestion and message discarding will not occur in the downstream network device.

[0120] Taking the transmission of a message flow through five network devices, namely a core switch, an aggregation switch, an edge switch and an access point, as an example, these five network devices are all nodes in the communication link of the message flow. The network device and the downstream network device can be any two adjacent nodes among the core switch, the aggregation switch, the edge switch and the access point. As a result, the entire communication link for transmitting the message flow is smoother, which can reduce the risk of traffic congestion and message discarding at any node, and improve the network data transmission efficiency.

[0121] According to another embodiment of the traffic processing method of the present disclosure, for example, the following embodiment can be used to implement speed measurement of burst traffic to obtain a specific example of traffic rate: determine the traffic rate based on the data volume of the burst traffic in the second predetermined time period and the speed measurement duration.

[0122] Exemplarily, for example, the ratio of the data volume of the burst traffic in the second predetermined time period to the speed measurement duration may be used as the traffic rate.

[0123] The second predetermined time period, for example, may be customized, and the second predetermined time period, for example, may also be the same as the first predetermined time period.

[0124] For example, the speed test duration can also be customized.

[0125] For example, the speed measurement duration may be greater than or equal to the round trip time (RTT). RTT represents the total delay from the time the sender sends network data to the time the sender receives confirmation from the receiver (the receiver sends confirmation immediately after receiving the data).

[0126] Most of the network data interactions between the terminal and the network side use RTT as the cycle duration of network data transmission. In actual business scenarios, for example, large-scale message transmission is also transmitted in multiple batches through multiple RTTs. Therefore, when the speed measurement duration is RTT, it can be ensured that the message flow is transmitted smoothly in at least one batch to ensure network transmission efficiency.

[0127] According to another embodiment of the present disclosure, the traffic processing method is applied to a network device. For example, the following embodiments can be used to implement a specific example of transmitting burst traffic according to the traffic rate: queue the burst traffic to a queue. Transmit the burst traffic in the queue according to the traffic rate.

[0128] The network device has a cache resource, which is represented by a queue. Burst traffic can be queued to the queue to utilize the cache resource, avoid traffic congestion and packet discard, and improve network data transmission efficiency. In addition, the traffic processing method of the embodiment of the present disclosure only queues burst traffic with the risk of traffic congestion and packet discard into the queue, which has a higher utilization rate of the cache resources of the network device.

[0129] According to another embodiment of the present disclosure, the traffic processing method is applied to a network device. For example, the following embodiments can be used to implement a specific example of transmitting burst traffic according to the traffic rate: shaping the burst traffic according to the traffic rate, and transmitting the burst traffic according to the traffic rate.

[0130] Exemplarily, for example, a shaper may be used to implement a specific example of shaping burst traffic according to traffic rate. The traffic processing method according to the embodiment of the present disclosure may be applied to a network device, for example, and the network device may include a shaper.

[0131] For example, the shaper may be configured according to the traffic rate, so that the shaper shapes the burst traffic according to the traffic rate.

[0132] The shaper is used to limit the flow rate and burst so that such messages can be sent at a more uniform speed.

[0133] According to the traffic processing method of the embodiment of the present disclosure, by shaping the burst traffic according to the traffic rate, the burst traffic can be transmitted according to the traffic rate, which has higher network data transmission efficiency. In the case where the network device includes a shaper, by configuring the shaper, the operation of transmitting the burst traffic according to the traffic rate adapted to the configuration of the network device itself can be implemented, and the efficiency of traffic processing is higher.

[0134] Exemplarily, for example, the shaper may be configured according to the traffic rate, so that the shaper transmits the burst traffic in the queue according to the traffic rate.

[0135] The traffic processing method of the above-mentioned embodiment of the present disclosure can be applied to network devices with larger cache resources such as core switches and aggregation switches, and can effectively avoid traffic congestion. The relevant principles have been described in detail above and will not be repeated here. In the case where the network device can reduce traffic congestion, the message flow sent by the network device to downstream network devices such as edge switches and access points is also not congested. Therefore, even downstream network devices with smaller cache resources are not prone to traffic congestion and message discarding, and can be widely used.

[0136] Figure 5 A schematic diagram of a traffic processing method according to another embodiment of the present disclosure is schematically shown.

[0137] like Figure 5 As shown, the traffic processing method of the embodiment of the present disclosure can be divided into message processing, traffic speed measurement processing and traffic shaping processing. The traffic speed measurement processing can, for example, include traffic detection on the message flow to determine the burst traffic and speed measurement on the burst traffic to obtain the traffic rate. The traffic shaping processing can include the operation of transmitting the burst traffic according to the traffic rate.

[0138] exist Figure 5 In the example, a specific example of measuring the speed of burst traffic using a traffic speed measuring device to obtain a traffic rate is schematically shown, and the traffic rate is, for example, 10 Mbps. Figure 5 A specific example in which burst traffic is stored in a queue and the measurement duration is 100 ms is also schematically shown. Figure 5 In the example of FIG. 1 , different gray levels are used to represent different types of packets in the packet flow.

[0139] The present disclosure also provides another method for processing traffic. Figure 2B The system architecture of Figure 2B The flow processing method of the exemplary embodiment of the present disclosure is described as follows. The flow processing method of the exemplary embodiment of the present disclosure can be, for example, Figure 2B The second network device shown executes.

[0140] Figure 6 A flow chart of a traffic processing method 600 according to an embodiment of the present disclosure is schematically shown.

[0141] In operation S610, traffic detection is performed on the packet flow to determine burst traffic.

[0142] In operation S620, the burst traffic is measured to obtain a traffic rate.

[0143] In operation S630, the traffic rate is sent.

[0144] Sending the traffic rate may be understood as sending a message representing the traffic rate.

[0145] The traffic processing method of the embodiment of the present disclosure performs traffic detection on the message flow to determine the burst traffic and measures the speed of the burst traffic to obtain the traffic rate. Figures 3 to 5 The corresponding operations of the above embodiments are the same and will not be described again.

[0146] The present disclosure also provides another method for processing traffic. Figure 2B The system architecture of Figure 2B The flow processing method of the exemplary embodiment of the present disclosure is described as follows. The flow processing method of the exemplary embodiment of the present disclosure can be, for example, Figure 2B The first network device shown executes.

[0147] Figure 7 A flow chart of a traffic processing method 700 according to an embodiment of the present disclosure is schematically shown.

[0148] In operation S710, a traffic rate is received.

[0149] Receiving the traffic rate may be understood as receiving a message representing the traffic rate.

[0150] In operation S720, burst traffic is transmitted according to a traffic rate.

[0151] The operation of transmitting burst traffic according to the traffic rate in the traffic processing method of the embodiment of the present disclosure can be Figures 3 to 5 The corresponding operations of the above embodiments are the same and will not be described again.

[0152] It should be noted that Figures 3 to 5 The traffic handling methods shown are different. Figures 6 to 8 The traffic processing method shown is to perform the three operations of traffic detection, speed measurement and burst traffic transmission through different execution entities.

[0153] According to the traffic processing method of the embodiment of the present disclosure, by performing traffic detection on the message flow, burst traffic with the risk of causing traffic congestion can be determined, so that the traffic can be processed in a targeted manner, which can be understood as the prediction of burst traffic before traffic congestion and message discarding occurs, and the timeliness of traffic processing is higher. In particular, compared with the implementation method of providing feedback to the sender after traffic congestion and message discarding occurs so that the sender can reduce the sending window, the timeliness and efficiency of traffic processing are both higher.

[0154] By measuring the speed of burst traffic, the traffic rate obtained can be used for subsequent transmission of burst traffic. The transmission speed of burst traffic is more stable and has less impact on throughput, especially there will be no situation where the throughput drops sharply due to, for example, a sharp reduction in the sending window at the sender.

[0155] In summary, the traffic processing method of the embodiment of the present disclosure can better cope with burst traffic and reduce the risk of traffic congestion and packet discarding caused by burst traffic.

[0156] Figure 8 A schematic diagram schematically shows communication interaction between a first device (taking the first device as a first network device as an example) and a second device (taking the second device as a second network device as an example).

[0157] Figure 8 The specific example of the second device performing the following operations is schematically shown: in operation S810, traffic detection is performed on the message flow to determine the burst traffic. In operation S820, the burst traffic is measured to obtain the traffic rate. In operation S830, the traffic rate is sent.

[0158] Figure 8 The specific example of the first device performing the following operations is also schematically shown: in operation S840, receiving a traffic rate. In operation S850, transmitting burst traffic according to the traffic rate.

[0159] In some embodiments, Figure 8 The first device and / or the second device may include a switch, an access point or a router or a chip or a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0160] Exemplarily, the first device (taking the first device including the first network device as an example) is connected to the second device (taking the second device including the second network device as an example) and is located upstream and / or downstream of the second device.

[0161] The second network device is used to determine burst traffic.

[0162] The specific operation of the second network device to determine the burst traffic may be, for example, as follows: Figure 8 As shown, no further description is given here.

[0163] In some embodiments, the first device and / or the second device may include a switch, an access point or a router or a chip or a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0164] Fig. 9 A block diagram of a traffic processing device according to an embodiment of the present disclosure is schematically shown.

[0165] like Fig. 9 As shown, the traffic processing device 900 of the embodiment of the present disclosure includes, for example: a traffic detection module 910 , a speed measurement module 920 , and a traffic transmission module 930 .

[0166] The flow detection module 910 is used to perform flow detection on the message flow to determine the burst flow.

[0167] The speed measurement module 920 is used to measure the speed of burst traffic to obtain the traffic rate.

[0168] The traffic transmission module 930 is used to transmit burst traffic according to the traffic rate.

[0169] In some embodiments, Fig. 9 The traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0170] According to another embodiment of the present disclosure, the traffic processing device further includes: a message classification module, which is used to classify the message flow to determine whether the message flow is a burst flow. In some embodiments, the traffic processing device may include a switch, an access point or a router or a chip or a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, and an edge switch. The switch may be a physical switch or a virtual switch.

[0171] According to a traffic processing device of yet another embodiment of the present disclosure, the traffic detection module includes: a data volume determination submodule and a burst traffic determination submodule.

[0172] The data volume determination submodule is used to determine the data volume of the message flow within the first predetermined time period.

[0173] The burst traffic determination submodule is used to determine that the message flow is a burst traffic when the data volume is greater than or equal to the data volume threshold.

[0174] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0175] According to another embodiment of the traffic processing device of the present disclosure, the device is applied to a network device, and the data volume threshold is related to the cache resources of a downstream network device of the network device. The downstream network device is connected to the network device and is located downstream of the network device sending a message flow from the network side to the terminal side.

[0176] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0177] According to a traffic processing device of another embodiment of the present disclosure, the speed measurement module includes: a speed measurement submodule, which is used to determine the traffic rate according to the data volume of the burst traffic in the second predetermined time period and the speed measurement duration.

[0178] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0179] According to a traffic processing device of another embodiment of the present disclosure, the traffic transmission module includes: a shaping submodule, which is used to shape the burst traffic according to the traffic rate and transmit the burst traffic according to the traffic rate.

[0180] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0181] Fig.10 A block diagram of a traffic processing device according to an embodiment of the present disclosure is schematically shown.

[0182] like Fig.10 As shown, the traffic processing device 1000 of the embodiment of the present disclosure includes: a traffic detection module 1010 , a speed measurement module 1020 and a sending module 1030 .

[0183] The flow detection module 1010 is used to perform flow detection on the message flow to determine the burst flow.

[0184] The speed measurement module 1020 is used to measure the speed of burst traffic to obtain the traffic rate.

[0185] The sending module 1030 is used to send the traffic rate.

[0186] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0187] Fig.11 A block diagram of a traffic processing device according to an embodiment of the present disclosure is schematically shown.

[0188] like Fig.11 As shown, the traffic processing device 1100 of the embodiment of the present disclosure includes: a receiving module 1110 and a traffic transmission module 1120 .

[0189] The receiving module 1110 is configured to receive a flow rate.

[0190] The traffic transmission module 1120 is used to transmit burst traffic according to the traffic rate.

[0191] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0192] According to a traffic processing device of another embodiment of the present disclosure, the device is applied to a first network device, the first network device is connected to a second network device and is located upstream and / or downstream of the second network device, and the second network device is used to determine burst traffic.

[0193] In some embodiments, the traffic processing device may include a switch, an access point, a router, a chip, a virtual machine, etc. The switch may include, for example: a core switch, an aggregation switch, an edge switch. The switch may be a physical switch or a virtual switch.

[0194] It should be understood that Fig. 9 , Fig.10 as well as Fig.11 The embodiments of the device part of the present disclosure shown are the same or similar to the embodiments of the method part of the present disclosure, and the technical problems solved and the technical effects achieved are also the same or similar, which will not be repeated in this disclosure.

[0195] According to an embodiment of the present disclosure, the present disclosure also provides a traffic processing device, a computer-readable storage medium, and a computer program product.

[0196] Fig.12A schematic block diagram of an example traffic processing device 1200 that can be used to implement an embodiment of the present disclosure is shown. Traffic processing devices include various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Traffic processing devices may also include various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0197] like Fig.12 As shown, the traffic processing device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1202 or a computer program loaded from a storage unit 1208 to a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the traffic processing device 1200 can also be stored. The computing unit 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0198] Multiple components in the traffic processing device 1200 are connected to the I / O interface 1205, including: an input unit 1206, such as a keyboard, a mouse, etc.; an output unit 1207, such as various types of displays, speakers, etc.; a storage unit 1208, such as a disk, an optical disk, etc.; and a communication unit 1209, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1209 allows the device 1200 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0199] The computing unit 1201 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1201 performs the various methods and processes described above, such as the traffic processing method. For example, in some embodiments, the aforementioned method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on the traffic processing device 1200 via the ROM 1202 and / or the communication unit 1209. When the computer program is loaded into the RAM 1203 and executed by the computing unit 1201, one or more steps of the traffic processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to execute the traffic processing method in any other appropriate manner (eg, by means of firmware).

[0200] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0201] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0202] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, a flash memory, or any suitable combination of the foregoing.

[0203] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0204] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0205] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0206] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0207] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A traffic processing method, characterized in that: include: Perform traffic detection on the message flow to determine the burst traffic; Measuring the speed of the burst traffic to obtain a traffic rate; The burst traffic is transmitted according to the traffic rate.

2. The method according to claim 1, characterized in that Also includes: The message flow is classified to determine whether the message flow is the burst traffic.

3. The method according to claim 1, wherein: The performing flow detection on the message flow to determine the burst flow includes: Determining the data volume of the message flow within a first predetermined time period; When the data volume is greater than or equal to the data volume threshold, the message flow is determined to be the burst traffic.

4. The method according to claim 3, characterized in that The method is applied to a network device, wherein the data volume threshold is related to a cache resource of a downstream network device of the network device, wherein the downstream network device is connected to the network device and is located downstream of the network device in sending a message flow from a network side to a terminal side.

5. The method according to claim 1, characterized in that in, The measuring the speed of the burst traffic to obtain the traffic rate includes: The traffic rate is determined according to the data volume of the burst traffic in the second predetermined time period and the speed measurement duration.

6. The method according to any one of claims 1 to 5, characterized in that The transmitting the burst traffic according to the traffic rate comprises: The burst traffic is shaped according to the traffic rate, and the burst traffic is transmitted according to the traffic rate.

7. A traffic processing method, characterized in that: include: Perform traffic detection on the message flow to determine the burst traffic; Measuring the speed of the burst traffic to obtain the traffic rate; The traffic rate is sent.

8. A traffic processing method, characterized in that: include: Receive traffic rate; The burst traffic is transmitted according to the traffic rate.

9. The method according to claim 8, characterized in that in, The method is applied to a first network device, where the first network device is connected to a second network device and is located upstream and / or downstream of the second network device, and the second network device is used to determine the burst traffic.

10. A flow processing device, characterized in that: include: A flow detection module is used to perform flow detection on the message flow to determine the burst flow; A speed measurement module, used for measuring the speed of the burst traffic to obtain a traffic rate; A traffic transmission module is used to transmit the burst traffic according to the traffic rate.

11. The device according to claim 10, characterized in that Also includes: The message classification module is used to classify the message flow to determine whether the message flow is the burst traffic.

12. The device according to claim 10, wherein: The flow detection module comprises: A data volume determination submodule, used to determine the data volume of the message flow within a first predetermined time period; The burst traffic determination submodule is used to determine that the message flow is the burst traffic when the data volume is greater than or equal to a data volume threshold.

13. The device according to claim 12, characterized in that The device is applied to a network device, and the data volume threshold is related to the cache resources of a downstream network device of the network device. The downstream network device is connected to the network device and is located downstream of the network device sending a message flow from the network side to the terminal side.

14. The device according to claim 10, characterized in that in, The speed measurement module comprises: The speed measurement submodule is used to determine the flow rate according to the data volume of the burst flow in the second predetermined time period and the speed measurement duration.

15. The device according to any one of claims 10 to 14, characterized in that in, The traffic transmission module includes: A shaping submodule is used to shape the burst traffic according to the traffic rate and transmit the burst traffic according to the traffic rate.

16. A flow processing device, characterized in that: include: A flow detection module is used to perform flow detection on the message flow to determine the burst flow; A speed measurement module, used for measuring the speed of the burst traffic to obtain the traffic rate; The sending module is used to send the traffic rate.

17. A flow processing device, characterized in that: include: A receiving module, used for receiving a flow rate; A traffic transmission module is used to transmit the burst traffic according to the traffic rate.

18. The device according to claim 17, characterized in that in, The apparatus is applied to a first network device, the first network device is connected to a second network device and is located upstream and / or downstream of the second network device, and the second network device is used to determine the burst traffic.

19. A flow processing device, comprising: At least one processor The at least one processor is used to execute instructions so that the traffic processing device can perform the method according to any one of claims 1-9.

20. A computer-readable storage medium storing computer instructions, wherein: When the computer instructions are executed, the computer is caused to perform the method according to any one of claims 1-9.