Network performance detection method and related device

The polling method adds flow detection content to the packets of different service flows at different times, solving the problem of high resource consumption in the prior art and achieving efficient and accurate network performance detection.

CN116647473BActive Publication Date: 2025-08-26CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310753514.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2025-08-26
Estimated Expiration
2043-06-25

AI Technical Summary

Technical Problem

In the existing network performance detection method, the flow-by-stream detection technology adds flow-by-stream detection content to each message of each service flow, resulting in large consumption of network resources and affecting the device forwarding efficiency and bandwidth.

Method used

Polling method is used to add flow detection content to messages of different service flows in different periods, only some messages are detected, and the original detection content is stripped off on nodes of the same path to avoid waste of resources.

Benefits of technology

Save network resources, improve network performance detection efficiency, reduce controller burden, and improve detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116647473B_ABST
    Figure CN116647473B_ABST
Patent Text Reader

Abstract

The present application provides a network performance detection method and related devices that can be used in the field of communication technology. In the technical solution provided by the present application, a network forwarding device polls and adds detection messages to the messages of different business flows on the same path at different time periods, and a network control device performs network performance detection based on the business flow messages to which the detection messages are added. Specifically, polling and adding detection messages to the messages of different business flows on the same path at different time periods can save more network resources compared to adding detection messages to all messages of different business flows, thereby improving the efficiency of network performance detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network performance detection method and related devices. Background Art

[0002] With the advent of the 5G era, various businesses are developing rapidly, bringing tremendous pressure to network transmission systems. Therefore, it is necessary to detect network performance to monitor network operation status and provide a data basis for network fault location, optimization, and planning.

[0003] One technology for monitoring network performance is in-situflow information telemetry (IFIT). IFIT expands the packet headers of service data flows, adding signatures to the actual network service flows within the headers. This allows for direct monitoring of network performance indicators such as latency, packet loss, and jitter. This allows for real-time monitoring of data flow status, enabling network performance monitoring.

[0004] However, when using the above method to detect network performance, it was found that the network resource consumption was relatively large. Summary of the Invention

[0005] This application provides a network performance detection method and related devices, which can save network resources and improve network performance detection efficiency.

[0006] In the first aspect, the present application provides a network performance detection method, which is applied to a communication network, wherein the communication network includes a network controller and a first network forwarding device, the service flow transmitted by the communication network includes a first service flow and a second service flow, and the transmission path of the first service flow and the transmission path of the second service flow both include the first network forwarding device.

[0007] The method also includes: the network controller sends a first network performance detection message setting rule to the first network forwarding device, the first network performance detection message setting rule instructs the first network forwarding device to add a first time period for the message of the first business flow to detect the content of the flow, and the network performance detection message setting rule is also used to instruct the first network forwarding device to add a second time period for the content of the flow to detect the content of the flow in the message of the second business flow, and the first time period is different from the second time period; the first network forwarding device adds the first flow detection content to the first message of the first business flow received within the first time period based on the first network performance detection message setting rule to obtain a third message of the first business flow; the first network forwarding device adds the second flow detection content to the second message of the second business flow received within the second time period based on the first network performance detection message setting rule to obtain a fourth message of the second business flow; the first network forwarding device sends the third message and the fourth message to the network controller; the network controller performs network performance detection based on the third message and the fourth message.

[0008] In this method, network forwarding devices add in-flow detection content to packets of different service flows at different time periods. This can also be called round-robin addition of in-flow detection content to different service flows, or in other words, only add in-flow detection content to all packets of some service flows on the same path during the same time period. This allows multiple service flows on the same path to not have in-flow detection content added to every packet, or to only have in-flow detection content added to some packets of each service flow on the same path.

[0009] In this method, a network forwarding device adds flow detection content to a message of a service flow, and sends the message with the added flow detection content to a network controller. The network controller can perform network performance detection based on the received message.

[0010] In this method, the network forwarding device adds in-flow detection content to the messages of different business flows at different time periods. Compared with adding detection messages to each message of each business flow on the same path, it can save more network resources and thus improve the efficiency of network performance detection.

[0011] In some possible implementations of the present application, the communication network also includes a second network forwarding device and a third network forwarding device, the transmission path of the first service flow also includes the second network forwarding device, and the second network forwarding device is the previous hop of the first network forwarding device, and the transmission path of the second service flow also includes the third network forwarding device, and the third network forwarding device is the previous hop of the first network forwarding device.

[0012] In this implementation, the second network forwarding device can be understood as the starting node of the same path of multiple service flows. In other words, as the starting node of the same path of multiple service flows, it can poll and add flow detection content to the messages of these multiple service flows.

[0013] In some possible implementations, before the first network forwarding device sends the third message and the fourth message to the network controller, the method may also include: the second network forwarding device sends the message of the first business flow to the first network forwarding device; the third network forwarding device sends the message of the second business flow to the first network forwarding device; the first network forwarding device strips the in-flow detection content from the message of the first business flow; the first network forwarding device strips the in-flow detection content from the message of the second business flow.

[0014] In this method, the paths of multiple service flows are not completely identical; the common paths are only partial paths. The first network forwarding device, acting as the entry node for the common paths of multiple service flows, round-robinly adds in-flow detection content to the packets of the multiple service flows while also stripping the original in-flow detection content from the packets of these service flows. This prevents the original in-flow detection content from occupying network resources and thus avoiding waste of network resources.

[0015] In this application, the communication network also includes a fourth network forwarding device, the transmission paths of the first service flow and the second service flow also include the fourth network forwarding device, and the first network forwarding device is the previous hop of the fourth network forwarding device.

[0016] The method further includes: the network controller sends a second network performance detection message setting rule to the fourth network forwarding device, the second network performance detection message setting rule instructs the fourth network forwarding device not to perform flow detection content processing on the messages of the first business flow and the messages of the second business flow; the first network forwarding device sends the messages of the first business flow and the messages of the second business flow to the fourth network forwarding device; the fourth network forwarding device sends the messages of the first business flow and the messages of the second business flow to the network controller based on the second network performance detection message setting rule.

[0017] The network controller performs network performance detection based on the third message and the fourth message, including: the network controller performs network performance detection based on the third message, the fourth message and the message reported by the fourth network forwarding device.

[0018] In this implementation, the fourth network forwarding device can be understood as a non-starting node in the same path for multiple service flows. The fourth network forwarding device can skip performing in-flight detection on received packets and report them to the network controller for network performance testing. Compared to performing in-flight detection on received packets, this approach avoids wasting resources on the fourth network forwarding device and conserves its resources.

[0019] In the present application, the communication network also includes a fifth network forwarding device, a sixth network forwarding device and a seventh network forwarding device, the transmission path of the first business flow also includes the fifth network forwarding device and the sixth network forwarding device, the transmission path of the second business flow also includes the fifth network forwarding device and the seventh network forwarding device, and the fifth network forwarding device is the next hop of the fourth network forwarding device, and the sixth network forwarding device and the seventh network forwarding device are the next hop of the fifth network forwarding device.

[0020] The method further includes: the network controller sends a third network performance detection message setting rule to the fifth network forwarding device, the third network performance detection message setting rule instructs the fifth network forwarding device to perform in-flow detection content processing on each message of the first business flow and each message of the second business flow; the fourth network forwarding device sends the message of the first business flow and the message of the second business flow to the fifth network forwarding device; the fifth network forwarding device adds the third in-flow detection content to the message of the first business flow based on the third network performance detection message setting rule; the fifth network forwarding device adds the fourth in-flow detection content to the message of the second business flow based on the third network performance detection message setting rule; the fifth network forwarding device sends the message of the first business flow and the message of the second business flow obtained by the in-flow detection content processing to the network controller.

[0021] Among them, the network controller performs network performance detection based on the third message and the fourth message, including: the network controller performs network performance detection based on the third message, the fourth message, the message reported by the fourth network forwarding device, and the message reported by the fifth network forwarding device.

[0022] In this implementation, the fifth network forwarding device serves as the endpoint for multiple service flows along the same path. In this case, the fifth network forwarding device adds in-flow detection content to each packet in each of these multiple service flows. Because these multiple service flows follow different paths after passing through the fifth network forwarding device, adding in-flow detection content to each packet can improve the accuracy of network performance detection.

[0023] In some possible implementations of the present application, before the fifth network forwarding device sends the first service flow message and the second service flow message obtained by in-flow detection content processing to the network controller, the following may also be included: the fifth network forwarding device strips the first in-flow detection content from the message of the first service flow; and the fifth network forwarding device strips the second in-flow detection content from the message of the second service flow.

[0024] This implementation method can prevent these original in-stream detection contents from occupying network resources and avoid wasting network resources.

[0025] In a second aspect, the present application provides a network performance detection system, which may include a network controller and various network forwarding devices for implementing the method in the first aspect or any possible implementation thereof.

[0026] In a third aspect, the present application provides a computer-readable storage medium, which stores program code for execution by a system device, wherein the program code includes instructions for implementing the method in the first aspect.

[0027] In a fourth aspect, the present application provides a computer program product comprising instructions, which, when executed on a system device, enables the system to implement the method in the first aspect.

[0028] It can be understood that the effects that can be obtained in the second, third and fourth aspects can be referred to the description in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is an example diagram of a communication scenario according to an embodiment of the present application;

[0030] Figure 2 This is a schematic flow chart of a network performance detection method according to an embodiment of the present application;

[0031] Figure 3 This is a schematic diagram of adding content to a flow detection message according to an embodiment of the present application;

[0032] Figure 4 A schematic diagram of a network device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0034] To facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.

[0035] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0036] Figure 1 This is an example diagram of a communication scenario of an embodiment of the present application. Figure 1 As shown, N business flows can be transmitted in this communication scenario: business flow U1, business flow U2, ..., business flow UN. This communication scenario also includes a network controller, network forwarding device PE1, network forwarding device PE2, network forwarding device PE3, network forwarding device PE4, network forwarding device PE5, network forwarding device PE6, network forwarding device PE7 and more network forwarding devices PEN.

[0037] The network forwarding device may be a device with a message forwarding function such as a router or a switch. In the embodiment of the present application, the network forwarding device may also be referred to as a network node, or simply referred to as a node.

[0038] The network controller can manage network forwarding devices, obtain the transmission path of business flows transmitted between network forwarding devices, formulate business flow forwarding rules for network forwarding devices, and perform network performance testing based on business flows transmitted by network forwarding devices.

[0039] I understand. Figure 1 The structure of the communication scenario shown is only an example. The communication scenario of the present application may include more or less network controllers and network forwarding devices than shown in the figure, and may also include different Figure 1 The transmission path shown.

[0040] In this communication system, N business flows are forwarded simultaneously between multiple network forwarding devices. Each business flow is continuously exchanged and transmitted in each network device in the form of a message, and the data is finally transmitted to the destination node.

[0041] During actual service transmission, a large number of different service flows access the network simultaneously. If one or more nodes in the network fail, data transmission may experience packet loss, delays, and jitter. In severe cases, this can cause the network to enter an abnormal service state, impacting network transmission performance. Therefore, network performance testing is necessary to monitor network status, locate and troubleshoot network faults in a timely manner, and ensure normal service transmission.

[0042] Traditional fault location methods generally use (ICMP) Ping, Traceroute, and User Datagram Protocol (UDP) Echo. However, these tools cannot perform overall performance testing and are only used to simply troubleshoot IP network problems.

[0043] Compared to traditional network performance monitoring methods, In-Flow Detection (IFIT) technology uses real-world service flows to directly measure performance metrics such as latency, packet loss, and jitter by inserting IFIT headers into real service packets. This method reflects the actual forwarding path of service flows. Combined with Telemetry technology, this data is uploaded in real time, ultimately presenting per-packet or per-flow performance metrics to users through the controller's visual interface. IFIT can significantly improve the timeliness and effectiveness of network operations and performance monitoring, ensuring service level agreements (SLAs) can be met and laying a solid foundation for intelligent operations and maintenance.

[0044] In the existing IFIT process, for example, when network performance testing is required based on N service flows, the network forwarding node device must add in-flow testing content to each packet of each service flow passing through it. The network forwarding device then reports the received packets to the network controller, which then performs network performance testing based on the received packets. However, in many cases, hardware resources are limited, and packet-by-packet monitoring and data collection for all network traffic not only affects the normal forwarding of the device but also consumes a large amount of network bandwidth.

[0045] The inventors have found that there are often scenarios where multiple business flows have the same path. In this scenario, the flow detection technology will still be used for multiple flows at the same time. Since a flow detection message header is added to each business flow separately, a large amount of redundant information will inevitably be added, which will consume a large amount of network transmission resources, increase the complexity of node processing, and reduce the forwarding efficiency of the message.

[0046] To address the above issues, this application proposes a new network performance detection method. In the method proposed in this application, when multiple service flows have the same transmission path, a polling method is used to perform follow-up detection on the service flows, thereby saving network resources and reducing the burden on the controller.

[0047] Figure 2 This is an exemplary flowchart of a network performance detection method according to an embodiment of the present application. Figure 2 The illustrated method may include S210 , S220 , S230 , S240 , and S250 .

[0048] S210: The network controller sends a first network performance detection message setting rule to the first network forwarding device. The first network performance detection message setting rule instructs the first network forwarding device to add a first time period for a message of the first service flow to detect the content of the message. The network performance detection message setting rule is further used to instruct the first network forwarding device to add a second time period for a message of the second service flow to detect the content of the message. The first time period is different from the second time period. The transmission path of the first service flow and the transmission path of the second service flow both include the first network forwarding device.

[0049] As an example, the network controller may be Figure 1 In the network controller of the scenario shown, the first network forwarding device may be Figure 1 For PE1 in the illustrated scenario, the first service flow may be any one of service flows U1 to UN, and the second service flow may be any one of service flows U1 to UN that is different from the first service flow.

[0050] In this embodiment, in some implementations, the network controller may perform the following operations before sending the first network performance detection message setting rules: determine multiple service flows with the same transmission path, and set the moment when each network forwarding device on the same path adds the flow detection message content to the service flow.

[0051] Taking the number of business flows with the same transmission path as N as an example, after the network controller determines that these N business flows have the same transmission path, it can set a rule to periodically add a network performance detection message header (i.e., the content of the flow detection message) to each business flow.

[0052] As an example, the time when the with-flow detection content is added to the first business flow is set to [N*T, (N+1)*T]*P; the time when the with-flow detection content is added to the second business flow message is set to [(N+1)*T, (N+2)*T]*P; the time when the with-flow detection content is added to the third business flow message is set to [(N+1)*T, (N+2)*T]*P; the time when the with-flow detection content is added to the message of the Nth business flow is set to [(N+(N-2))*T, (N+(N-1))*T]*P, where P=1, ...M, P is the detection period or polling period, and T is the detection duration or polling duration.

[0053] After executing the network performance detection message setting rule, the network controller sends the network performance detection message setting rule to the network forwarding device. Correspondingly, the network forwarding device receives the network performance detection message setting rule.

[0054] As an example, network performance detection message rules may include service flow identifier, device identifier, whether to start polling detection, polling period, detection data reporting method, etc. Among them, the service flow identifier is an identifier set by the network controller to distinguish multiple service flows with the same path. It can be a number such as 1, 2, 3, or one or more of the five-tuple of the service flow, or an application identifier of the service flow; the device identifier is the Internet Protocol (IP) address or identifier (ID) of the network forwarding device or an identifier specified by the network controller for the network forwarding device; the detection data reporting method can be periodic reporting, no reporting, or active reporting, etc.

[0055] S220: The first network forwarding device sets a rule based on the first network performance detection message, adds first in-flow detection content to the first message of the first service flow received within the first time period, and obtains a third message of the first service flow.

[0056] As an example, when the first network performance detection message setting rule includes the identifier of the first business flow, the identifier of the first network forwarding device, and the mapping relationship of periodic reporting, the first network forwarding device can add the flow detection message content and the business flow identifier to the message of the first business flow at the time period specified for the first business flow.

[0057] S230 , the first network forwarding device sets a rule based on the first network performance detection message, and adds second in-flow detection content to the second message of the second service flow received in the second time period to obtain a fourth message of the second service flow.

[0058] As an example, when the first network performance detection message setting rule includes the identifier of the second business flow, the identifier of the first network forwarding device, and the mapping relationship of periodic reporting, the first network forwarding device can add the flow detection message content and the business flow identifier to the message of the second business flow at the time period specified for the second business flow.

[0059] S240: The first network forwarding device sends a third message and a fourth message to the network controller. Correspondingly, the network controller receives the third message and the fourth message.

[0060] S250: The network controller performs network performance detection based on the third message and the fourth message.

[0061] As an example, the network controller parses out the service flow identifier, device identifier, data packet content of polling detection, etc., and analyzes the path status of each flow and the entire path status based on these factors.

[0062] In some possible implementations, after the network controller determines that some path segments of the service paths of N service flows are the same, the principle of segmented detection can be adopted, that is, the network performance detection rules can be set as follows: the same path segments of these N service flows can be polled; each service flow of different segments can be reported as soon as they appear (or added as soon as they appear) (each message is added with the flow detection message content).

[0063] In some implementations, the network controller needs to set different rules for network forwarding devices at the demarcation points of the same path and different paths.

[0064] Optionally, for the ingress nodes of the same road section, the detection message header of the original service message is stripped off, and the content of the accompanying detection message is periodically added to each service flow in a polling manner.

[0065] For example, the communication network also includes a second network forwarding device and a third network forwarding device, the transmission path of the first business flow also includes the second network forwarding device, and the second network forwarding device is the previous hop of the first network forwarding device, and the transmission path of the second business flow also includes the third network forwarding device, and the third network forwarding device is the previous hop of the first network forwarding device, the second network forwarding device sends the message of the first business flow to the first network forwarding device; the third network forwarding device sends the message of the second business flow to the first network forwarding device; the first network forwarding device strips the in-flow detection content from the message of the first business flow; the first network forwarding device strips the in-flow detection content from the message of the second business flow.

[0066] by Figure 1 Taking the illustrated scenario as an example, PE1 is a first network forwarding device, PE2 is a second network forwarding device, and PE3 is a third network forwarding device.

[0067] Optionally, for non-entry nodes and non-exit nodes in the same road section, no message is processed.

[0068] For example, the communication network also includes a fourth network forwarding device, and the transmission paths of the first service flow and the second service flow also include the fourth network forwarding device, and the first network forwarding device is the previous hop of the fourth network forwarding device. The network controller sends a second network performance detection message setting rule to the fourth network forwarding device, and the second network performance detection message setting rule instructs the fourth network forwarding device not to perform in-stream detection content processing on the messages of the first service flow and the messages of the second service flow; the first network forwarding device sends the messages of the first service flow and the messages of the second service flow to the fourth network forwarding device; and the fourth network forwarding device sends the messages of the first service flow and the messages of the second service flow to the network controller based on the second network performance detection message setting rule.

[0069] by Figure 1 Taking the scenario shown as an example, PE4 is the fourth network forwarding device.

[0070] Optionally, for the egress nodes of the same road section, the content of the flow detection message added by polling is stripped off, and the network performance detection is performed according to the network detection mode of adding as it appears.

[0071] For example, the communication network also includes a fifth network forwarding device, a sixth network forwarding device, and a seventh network forwarding device. The transmission path of the first service flow also includes the fifth network forwarding device and the sixth network forwarding device. The transmission path of the second service flow also includes the fifth network forwarding device and the seventh network forwarding device. The fifth network forwarding device is the next hop of the fourth network forwarding device, and the sixth network forwarding device and the seventh network forwarding device are the next hops of the fifth network forwarding device. The network controller sends a third network performance detection message setting rule to the fifth network forwarding device. The third network performance detection message setting rule instructs the fifth network forwarding device to perform in-stream detection content processing on each message of the first service flow and each message of the second service flow. The fourth network forwarding device sends the messages of the first service flow and the messages of the second service flow to the fifth network forwarding device. The fifth network forwarding device adds third in-stream detection content to the messages of the first service flow based on the third network performance detection message setting rule. The fifth network forwarding device adds fourth in-stream detection content to the messages of the second service flow based on the third network performance detection message setting rule. The fifth network forwarding device sends the messages of the first service flow and the messages of the second service flow obtained from the in-stream detection content processing to the network controller.

[0072] by Figure 1 Taking the illustrated scenario as an example, PE5 is the fifth network forwarding device, PE6 is the sixth network forwarding device, and PE7 is the seventh network forwarding device.

[0073] A schematic diagram of message transmission for segmented measurement in an embodiment of the present application is shown in FIG. Figure 3 shown.

[0074] The following describes the network performance detection method of the present application in more detail, assuming that the number of service flows N is 3.

[0075] The network controller determines that the service paths of the three service flows UE1, UE2, and UE3 are the same. It then sets a rule for each service flow, namely, adding a flow detection message content at intervals T for each service flow. The time intervals for adding the flow detection message content to the first service flow are set to [0, T], [4T, 5T], ..., the time intervals for adding the flow detection content to the second service flow are set to [T, 2T], [5T, 6T], ..., and the time intervals for adding the flow detection content to the third service flow are set to [2T, 3T], [6T, 5T], ....

[0076] In this embodiment, an example of a rule set for the ingress node PE1 of the same transmission path is shown in Table 1.

[0077] Table 1

[0078]

[0079] Table 2 shows an example of rules set for node P2 on the same transmission path.

[0080] Table 2

[0081] Business flow identifier Device identification Whether to start polling detection Polling period Reporting method other U1 P no -- Report U2 P no -- Report U3 P no -- Report

[0082] Table 3 shows an example of rules set for the egress node PE3 of the same transmission path.

[0083] Table 3

[0084]

[0085] The network controller sends the above network performance detection rules and the corresponding service flow identifiers to the corresponding network forwarding devices. Each network forwarding device periodically adds the flow detection message content to the corresponding service flow during the above period according to the rules and obtains the corresponding message.

[0086] Each network forwarding device reports the corresponding message and related information to the network controller. An example of the related information reported by the network forwarding device is shown in Table 4.

[0087] Table 4

[0088]

[0089]

[0090] The network controller can analyze the network path status based on the reported information. For example, using data with sequence numbers 1 and 4, the network controller can calculate the transmission time of service flow U1 as tu1 = t21 - t11; using data with sequence numbers 2 and 5, the transmission time of service flow U2 as tu2 = t22 - t12; and using data with sequence numbers 3 and 6, the transmission time of service flow U3 as tu3 = t23 - t13. Finally, by taking the average, the transmission time for the PE1-PE2-PE3 path is calculated as: (tu1 + tu2 + tu3) / 3.

[0091] As an example, the network controller can calculate the transmission time of the path and analyze the network path status to obtain network detection indicators such as packet loss and delay.

[0092] The present application also provides a network controller, which can be used to implement the operations implemented by the network controller in any of the aforementioned method embodiments.

[0093] The present application also provides a network forwarding device, which can be used to implement the operations implemented by any network forwarding device in any of the aforementioned method embodiments.

[0094] The present application also provides a network performance detection system, which may include the network controller and any one or more network forwarding devices in any of the aforementioned method embodiments.

[0095] The network controller and network forwarding device in the embodiments of the present application may be collectively referred to as network devices.

[0096] Figure 4 A schematic diagram of a network device provided in one embodiment of the present application is shown as follows: Figure 4 As shown, the device 400 may include a processor 401 and an interface circuit 402. The processor 401 and the interface circuit 402 are coupled to each other. It is understood that the interface circuit 402 may be a transceiver or an input / output interface. Optionally, the system 400 may also include a memory 403 for storing instructions executed by the processor 401, input data required by the processor 401 to execute instructions, or data generated by the processor 401 after executing instructions.

[0097] The memory 403 stores instructions for implementing any network device in any of the aforementioned methods. After the processor 401 executes the instructions, the operations implemented by any network device in any of the aforementioned methods can be implemented.

[0098] It is understood that the processor in the embodiments of the present application may be a central processing unit, or may be other general-purpose processors, digital signal processors, application-specific integrated circuits, field programmable gate arrays or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0099] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In addition, the application specific integrated circuit can be located in a network device or a terminal device. Of course, the processor and the storage medium can also be present in a network device or a terminal device as discrete components.

[0100] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive.

[0101] In the various embodiments of the present application, unless otherwise specified or logically conflicting, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The term "multiple" herein refers to two or more. The term "and / or" herein is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the previous and next associated objects are in an "or" relationship; in a formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship.

[0102] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.

[0103] It will be appreciated that, in the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. Those skilled in the art will easily think of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application. The specification and embodiments are intended to be exemplary only, and the true scope of the present application is indicated by the claims.

Claims

1. A network performance detection method, characterized in that: The method is applied to a communication network, the communication network including a network controller and a first network forwarding device, the service flow transmitted by the communication network including a first service flow and a second service flow, the transmission path of the first service flow and the transmission path of the second service flow both including the first network forwarding device, and the method comprising: The network controller sends a first network performance detection message setting rule to the first network forwarding device, where the first network performance detection message setting rule instructs the first network forwarding device to add a first time period for a message of the first service flow to detect the content of the message, and the network performance detection message setting rule is further used to instruct the first network forwarding device to add a second time period for a message of the second service flow to detect the content of the message, where the first time period is different from the second time period. The first network forwarding device sets a rule based on the first network performance detection message, and adds first flow detection content to the first message of the first service flow received within the first time period to obtain a third message of the first service flow; The first network forwarding device sets a rule based on the first network performance detection message, and adds second flow detection content to the second message of the second service flow received in the second time period to obtain a fourth message of the second service flow; The first network forwarding device sends the third message and the fourth message to the network controller; The network controller performs network performance detection based on the third message and the fourth message.

2. The method according to claim 1, characterized in that The communication network also includes a second network forwarding device and a third network forwarding device. The transmission path of the first service flow also includes the second network forwarding device, and the second network forwarding device is the previous hop of the first network forwarding device. The transmission path of the second service flow also includes the third network forwarding device, and the third network forwarding device is the previous hop of the first network forwarding device.

3. The method according to claim 2, characterized in that Before the first network forwarding device sends the third message and the fourth message to the network controller, the method further includes: The second network forwarding device sends the message of the first service flow to the first network forwarding device; The third network forwarding device sends the message of the second service flow to the first network forwarding device; The first network forwarding device strips the in-flow detection content from the message of the first service flow; The first network forwarding device strips the accompanying flow detection content from the message of the second service flow.

4. The method according to claim 3, characterized in that The communication network further includes a fourth network forwarding device, a fifth network forwarding device, a sixth network forwarding device, and a seventh network forwarding device; the transmission path of the first service flow further includes the fourth network forwarding device, the fifth network forwarding device, and the sixth network forwarding device; the transmission path of the second service flow further includes the fourth network forwarding device, the fifth network forwarding device, and the seventh network forwarding device; the first network forwarding device is the previous hop of the fourth network forwarding device, the fifth network forwarding device is the next hop of the fourth network forwarding device, and the sixth network forwarding device and the seventh network forwarding device are the next hops of the fifth network forwarding device; The method further comprises: The network controller sends a third network performance detection message setting rule to the fifth network forwarding device, wherein the third network performance detection message setting rule instructs the fifth network forwarding device to perform in-flow detection content processing on each message of the first service flow and each message of the second service flow; The first network forwarding device sends the message of the first service flow and the message of the second service flow to the fourth network forwarding device; The fourth network forwarding device sends the message of the first service flow and the message of the second service flow to the fifth network forwarding device; The fifth network forwarding device adds third flow detection content to the message of the first service flow based on the third network performance detection message setting rule; The fifth network forwarding device adds fourth flow detection content to the message of the second service flow based on the third network performance detection message setting rule; The fifth network forwarding device sends the first service flow message and the second service flow message obtained through content processing of the flow detection to the network controller.

5. The method according to claim 4, characterized in that Before the fifth network forwarding device sends the message of the first service flow and the message of the second service flow obtained through content processing of the flow detection to the network controller, the method further includes: The fifth network forwarding device strips the first in-flow detection content from the message of the first service flow; The fifth network forwarding device strips the second accompanying flow detection content from the message of the second service flow.

6. A network performance detection system, characterized in that: The system is applied to a communication network, wherein the communication network includes a network controller and a first network forwarding device. The service flows transmitted by the communication network include a first service flow and a second service flow. The transmission path of the first service flow and the transmission path of the second service flow both include the first network forwarding device. The network controller is configured to: send a first network performance detection message setting rule to the first network forwarding device, wherein the first network performance detection message setting rule instructs the first network forwarding device to add a first time period for a message of the first service flow to detect the content of the traffic flow, and the network performance detection message setting rule is further configured to instruct the first network forwarding device to add a second time period for a message of the second service flow to detect the content of the traffic flow, wherein the first time period is different from the second time period; The first network forwarding device is configured to: add first flow detection content to the first message of the first service flow received within the first time period based on the first network performance detection message setting rule, to obtain a third message of the first service flow; The first network forwarding device is further configured to: based on the first network performance detection message setting rule, add second flow detection content to the second message of the second service flow received within the second time period to obtain a fourth message of the second service flow; The first network forwarding device is further configured to: send the third message and the fourth message to the network controller; The network controller is used to: perform network performance detection based on the third message and the fourth message.

7. The system according to claim 6, characterized in that The communication network also includes a second network forwarding device and a third network forwarding device. The transmission path of the first service flow also includes the second network forwarding device, and the second network forwarding device is the previous hop of the first network forwarding device. The transmission path of the second service flow also includes the third network forwarding device, and the third network forwarding device is the previous hop of the first network forwarding device.

8. The system according to claim 7, characterized in that The second network forwarding device is further configured to send the message of the first service flow to the first network forwarding device; The third network forwarding device is further configured to send the message of the second service flow to the first network forwarding device; The first network forwarding device is further configured to strip the accompanying flow detection content from the message of the first service flow; The first network forwarding device is further configured to strip the accompanying flow detection content from the message of the second service flow.

9. The system according to claim 8, characterized in that The communication network further includes a fourth network forwarding device, a fifth network forwarding device, a sixth network forwarding device, and a seventh network forwarding device; the transmission path of the first service flow further includes the fourth network forwarding device, the fifth network forwarding device, and the sixth network forwarding device; the transmission path of the second service flow further includes the fourth network forwarding device, the fifth network forwarding device, and the seventh network forwarding device; the first network forwarding device is the previous hop of the fourth network forwarding device, the fifth network forwarding device is the next hop of the fourth network forwarding device, and the sixth network forwarding device and the seventh network forwarding device are the next hops of the fifth network forwarding device; The network controller is further configured to send a third network performance detection message setting rule to the fifth network forwarding device, wherein the third network performance detection message setting rule instructs the fifth network forwarding device to perform in-stream detection content processing on each message of the first service flow and each message of the second service flow; The first network forwarding device is further configured to send the message of the first service flow and the message of the second service flow to the fourth network forwarding device; The fourth network forwarding device is further configured to send the message of the first service flow and the message of the second service flow to the fifth network forwarding device; The fifth network forwarding device is further configured to add a third accompanying flow detection content to the message of the first service flow based on the third network performance detection message setting rule; The fifth network forwarding device is further configured to add fourth flow detection content to the message of the second service flow based on the third network performance detection message setting rule; The fifth network forwarding device is further configured to send the first service flow message and the second service flow message obtained through content processing of the flow detection to the network controller.

10. The system according to claim 9, characterized in that The fifth network forwarding device is further configured to strip the first in-flow detection content from the message of the first service flow; The fifth network forwarding device is further configured to strip the second in-flow detection content from the message of the second service flow.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.

Citation Information

Patent Citations

  • Transmission quality detection method, device and system, and storage medium

    CN112994961A

  • Detection method and system, node and computer readable storage medium

    CN115022200A