Network quality detection method and device, electronic equipment and readable storage medium

By working collaboratively with the controller and node devices, the forwarding path and network quality of service traffic are calculated based on the segment list, which solves the problem of increased tunnel numbers in IFIT detection and enables accurate network quality analysis and tunnel reuse.

CN117811953BActive Publication Date: 2026-11-27MAIPU COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311868118.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-11-27
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

In existing technologies, IFIT detection cannot accurately analyze packet loss under business traffic load mode, which leads to an increase in the number of tunnels and the workload of network nodes, and makes it impossible to achieve multiple service traffic reuse in tunnels.

Method used

The controller communicates with the node devices to obtain the service traffic measurement data reported by each node device every preset measurement period, determines the forwarding path based on the segment list, and calculates the network quality data between every two adjacent node devices, including the number of packet losses and latency.

Benefits of technology

It enables accurate calculation of packet loss and latency metrics for each type of service traffic under tunnel reuse and traffic load conditions, avoiding increased workload for node devices and achieving hop-by-hop flow detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117811953B_ABST
    Figure CN117811953B_ABST
Patent Text Reader

Abstract

The application provides a network quality detection method and device, electronic equipment and readable storage medium, and relates to the field of communication. In the application, the controller can obtain measurement data of at least one service flow reported by each node device every preset measurement period; then, based on a segment list in each piece of measurement data, at least one forwarding path corresponding to each service flow is determined; finally, a packet loss index and / or a delay index between each two adjacent node devices on each forwarding path corresponding to each service flow is calculated. Compared with the prior art, the reporting content of the node device in the application includes the segment list, so the controller can determine at least one forwarding path of each service flow, and then calculate the packet loss index and the delay index between each two adjacent node devices on each forwarding path. The application performs hop-by-hop in-stream detection on the basis of tunnel multiplexing and flow load, and avoids the increase of the workload of the node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communications, and more specifically, to a network quality detection method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] In-situ Flow Information Telemetry (IFIT) is an in-band inspection technology that uses feature marking on real network traffic flows to directly detect network transmission quality indicators such as latency, packet loss, and jitter. IFIT performs performance testing by inserting IFIT headers into real traffic packets and uses telemetry technology (a technique for remote data collection, monitoring, and control) to send the test data to the network controller in real time. After the controller's data processing, the network transmission quality can be displayed to the user in a graphical interface.

[0003] IFIT (Inter-Fault Inspection) involves detecting and reporting data at every network node along the path of traffic, allowing the controller to analyze and present each network segment. However, when business traffic is in load balancing mode, it is distributed across multiple paths. In this case, the reported data is affected by the load on multiple devices, making it impossible to analyze packet loss based on the reported data.

[0004] To enable the controller to analyze packet loss hop-by-hop, the existing approach is to allow each SRV6 (segmented routing technology based on the IPv6 forwarding plane) tunnel to accommodate only one type of service traffic. When the network node reports, it reports the tunnel information of the service traffic, and the controller analyzes the packet loss on each path based on the tunnel information.

[0005] However, such a tunnel can only carry one type of service traffic, which means that the tunnel cannot be reused by multiple service traffic. This can only increase the number of tunnels in the network, thus increasing the workload of network nodes. Summary of the Invention

[0006] The purpose of this invention is to provide a network quality detection method, apparatus, electronic device, and readable storage medium to improve the problems existing in the prior art.

[0007] The embodiments of the present invention can be implemented as follows:

[0008] In a first aspect, the present invention provides a network quality detection method applied to a controller, the controller being communicatively connected to multiple node devices; the method includes:

[0009] Obtain measurement data of at least one service traffic reported by each node device every preset measurement cycle;

[0010] Based on the segment list in the measurement data of each type of service traffic reported by each node device, at least one forwarding path corresponding to each type of service traffic is determined;

[0011] For each forwarding path corresponding to each type of service traffic, network quality data between every two adjacent node devices on the forwarding path is calculated based on the measurement data of each node device on the forwarding path.

[0012] In an optional implementation, the step of obtaining measurement data of at least one service traffic reported periodically by each node device includes: receiving measurement data reported by each node device every preset measurement period; the measurement data is measurement data of each service traffic obtained by the node device in each preset measurement period based on the flow detection mechanism.

[0013] In an optional implementation, the network quality data includes the number of packet losses; the measurement data includes the node identifier of the corresponding node device, the service identifier of the corresponding service traffic, and the number of packets forwarding the service traffic.

[0014] The step of calculating the network quality data between every two adjacent node devices on the forwarding path based on the measurement data of the service traffic at each node device on the forwarding path includes:

[0015] The difference in the number of packets between every two adjacent node devices on the forwarding path is calculated to obtain the number of packet losses between every two adjacent node devices on the forwarding path.

[0016] In an optional implementation, the network quality data includes network latency; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, and the timestamp for forwarding the service traffic.

[0017] The step of calculating the network quality data between every two adjacent node devices on the forwarding path based on the measurement data of the service traffic at each node device on the forwarding path includes:

[0018] The network latency of the service traffic between every two adjacent node devices on the forwarding path is obtained by calculating the difference in timestamps between the two adjacent node devices on the forwarding path.

[0019] Secondly, the present invention provides a network quality detection method applied to a node device, wherein the node device is communicatively connected to a controller; the method includes:

[0020] The measurement data for each type of service traffic is collected at preset measurement intervals;

[0021] The measurement data is reported to the controller, so that the controller, based on the segment list in the measurement data of each service traffic reported by the node device and other node devices, determines at least one forwarding path corresponding to each service traffic and calculates the network quality data between every two adjacent node devices on each forwarding path for each service traffic.

[0022] In an optional implementation, the step of acquiring measurement data for each type of service traffic based on the flow detection mechanism includes:

[0023] Within each preset measurement period, the timestamp of the first packet of each type of service traffic to be forwarded, the number of packets sent for that service traffic, and the segment list are recorded, and measurement data is generated for reporting after each preset measurement period. The measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, the segment list, the number of packets forwarded for that service traffic, and the timestamp.

[0024] Thirdly, the present invention provides a network quality detection method applied to a network quality detection system, the system including a controller and multiple node devices communicatively connected to the controller;

[0025] Each of the node devices periodically reports measurement data of at least one type of service traffic to the controller;

[0026] The controller determines at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by each node device;

[0027] For each type of service traffic and each forwarding path, the controller calculates network quality data between every two adjacent node devices on the forwarding path based on the measurement data of each node device on the forwarding path.

[0028] Fourthly, the present invention provides a network quality detection device applied to a controller, the controller being communicatively connected to multiple node devices; the device includes:

[0029] The receiving module is used to obtain measurement data of at least one service traffic reported periodically by each node device;

[0030] The analysis module is used to determine at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by each node device.

[0031] The calculation module is used to calculate, for each type of service traffic and each forwarding path, network quality data between every two adjacent node devices on the forwarding path based on the measurement data of each node device on the forwarding path.

[0032] In an optional implementation, the receiving module is specifically used to receive measurement data reported by each node device every preset measurement period; the measurement data is the measurement data of each type of service traffic obtained by the node device in each preset measurement period based on the flow detection mechanism.

[0033] In an optional implementation, the network quality data includes the number of packet losses; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, and the number of packets forwarded for the service traffic. The calculation module is specifically used to calculate the difference in the number of packets between every two adjacent node devices on the forwarding path for the service traffic, thereby obtaining the number of packet losses between every two adjacent node devices on the forwarding path for the service traffic.

[0034] In an optional implementation, the network quality data includes network latency; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, and the timestamp of forwarding the service traffic; the calculation module is specifically used to calculate the difference in timestamps between every two adjacent node devices on the forwarding path of the service traffic, to obtain the network latency between every two adjacent node devices on the forwarding path of the service traffic.

[0035] Fifthly, the present invention provides a network quality detection device applied to a node device, the node device being communicatively connected to a controller; the device includes:

[0036] The detection module is used to acquire measurement data for each type of service traffic based on the flow detection mechanism; the measurement data includes a segment list of the corresponding service traffic.

[0037] The reporting module is used to periodically report the measurement data of each type of service traffic to the controller, so that the controller can determine at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by the node device and other node devices, and calculate the network quality data between every two adjacent node devices on each forwarding path for each type of service traffic.

[0038] In an optional implementation, the detection module is specifically used to record the sending timestamp of the first packet of each type of service traffic to be forwarded, the number of packets sent for that service traffic, and the segment list within each preset measurement period, and generate measurement data for reporting after each preset measurement period; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, the segment list, the number of packets forwarded for that service traffic, and the timestamp.

[0039] In a sixth aspect, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory stores a software program, and when the electronic device is running, the processor executes the software program to implement the network quality detection method as described in any one of the first or second aspects above.

[0040] In a seventh aspect, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the network quality detection method described in either the first or second aspect.

[0041] Compared with existing technologies, embodiments of the present invention provide a network quality detection method, apparatus, electronic device, and readable storage medium. In this invention, a controller is communicatively connected to multiple node devices. The controller can obtain measurement data of at least one service traffic reported by each node device every preset measurement period. Then, based on the segment list in the measurement data of each service traffic reported by each node device, at least one forwarding path corresponding to each service traffic is determined. Finally, for each forwarding path corresponding to each service traffic, based on the measurement data of each node device on the forwarding path, network quality data between every two adjacent node devices on the forwarding path is calculated. This network quality data reflects packet loss and / or latency indicators. Compared with existing technologies, the reported content of the node devices in this invention includes a segment list, so the controller can determine at least one forwarding path for each service traffic, and then calculate the packet loss and latency indicators between every two adjacent node devices on each forwarding path. Based on tunnel multiplexing and traffic load, hop-by-hop flow detection is performed to accurately obtain the number of packet losses between two nodes, avoiding increased workload for the nodes. Attached Figure Description

[0042] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a schematic diagram of the structure of a network quality detection system provided in an embodiment of the present invention.

[0044] Figure 2 This is a schematic diagram of the IFIT message format.

[0045] Figure 3 This is one of the flowcharts of a network quality detection method provided in an embodiment of the present invention.

[0046] Figure 4 This is a second schematic flowchart of a network quality detection method provided in an embodiment of the present invention.

[0047] Figure 5 This is the third flowchart illustrating a network quality detection method provided in an embodiment of the present invention.

[0048] Figure 6 This is one of the structural schematic diagrams of a network quality detection device provided in an embodiment of the present invention.

[0049] Figure 7 This is a second schematic diagram of a network quality detection device provided in an embodiment of the present invention.

[0050] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0052] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0053] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0054] It should be noted that, where there is no conflict, the features in the embodiments of the present invention can be combined with each other.

[0055] Here, we will first introduce the keywords or key terms involved in this invention:

[0056] 1. SR (Segment Routing): Also known as segment routing, SR technology is a technique for forwarding data packets on a network based on the source routing concept. The core idea of ​​SR technology is to divide the network packet forwarding path into different segments and insert segment information (i.e., a segment list) into the packet at the beginning of the path to guide packet forwarding.

[0057] 2. SRv6: SR technology based on the IPv6 forwarding plane, namely SR+IPv6, is a new generation of IP bearer protocol. The SID (Segment ID) in the Segment List is the IPv6 address, and the path is the IPv6 address stack encapsulated in the SRH (Segment Routing Header).

[0058] 3. PBR (Policy-Based Routing): Network devices can forward data not only based on the destination IP address of the packet, but also based on other elements, such as source IP address, source MAC address, destination MAC address, source port number, destination port number, VLAN ID, etc.

[0059] Please see Figure 1 , Figure 1 This is a schematic diagram of a network quality detection system provided in an embodiment of the present invention. The system includes a controller and multiple node devices communicatively connected to the controller.

[0060] The controller is an SD-WAN (Software-Defined Wide Area Network) controller, which can be a server. Node devices can be switches or routers.

[0061] Combination Figure 1 Before performing hop-by-hop flow detection, the controller needs to be configured as follows:

[0062] 1. The controller globally assigns a node identifier, or NodeId, to each node device and distributes the node identifier to the corresponding node device. For example... Figure 1 In the diagram, the node identifiers for the six nodes are: Node1, Node2, Node3, Node4, Node5, and Node6.

[0063] 2. The controller globally assigns a unique service identifier, or service ID, to each type of service traffic that requires flow-based detection. For example... Figure 1 In the diagram, the business identifiers for business 1 and business 2 are B1 and B2, respectively.

[0064] 3. Node devices identify traffic based on the PBR policy issued by the controller, or identify services by coloring routes through BGP routing.

[0065] 4. The controller plans a unique measurement instance for each type of service traffic based on the source node to the destination node. This instance includes the source node identifier, the destination node identifier, and the service identifier, where the service identifier is an instance parameter. For example... Figure 1 In the above, the measurement instance for Service 1 is Node1-Node6-B1, and the measurement instance for Service 2 is Node1-Node6-B2.

[0066] 5. The IFIT module of the head node generates a unique flow identifier (Flow ID) based on the controller configuration.

[0067] It should be noted that, Figure 1 The six node devices (Node1 to Node6) shown and their various examples are for illustrative purposes only and are not intended to be limiting.

[0068] In the IFIT over SRv6 scenario, combined with Figure 1 The header node is Node1, which identifies the service flow that needs to be inspected by matching the five-tuple (source IP address, destination IP address, destination IP address, source port, destination port, and transport layer protocol), and then encapsulates the packet with IFIT. IFIT encapsulation refers to encapsulating the IFIT packet header in the SRH (Segment Routing Header).

[0069] Combination Figure 2 The IFIT message header mainly includes:

[0070] 1. FII: Flow Instruction Indicator, used to identify the beginning of the IFIT header and define the overall length of the IFIT header;

[0071] 2. FIH: Flow Instruction Header, used to uniquely identify a service flow;

[0072] 3. FIEH: Flow Instruction Extension Header, used to define extended functions.

[0073] The FIH field includes the following parts: (1) Flow ID, which is used to identify a data flow; (2) L flag: packet loss coloring mark, setting it to 1 indicates that the current packet participates in packet loss detection; (3) D flag: delay coloring mark, setting it to 1 indicates that the current packet participates in delay detection; (4) Header Type Indicator (HTI), which is 8 bits long and is used to indicate the tunnel type currently being detected by the flow. The tunnel types for the flow detection include basic E2E detection, basic hop-by-hop detection, extended E2E detection, extended hop-by-hop detection, etc.

[0074] In this invention, the network quality detection method is applied to hop-by-hop flow detection in SRv6 networks. The following sections describe the detailed process of the network quality detection method, focusing on the controller, node devices, and the network quality detection system.

[0075] Please refer to Figure 3 , Figure 3 This is one of the flowcharts illustrating a network quality detection method provided in an embodiment of the present invention. The execution entity of this method can be the controller of the aforementioned network quality detection system. The method includes the following steps S101 to S103:

[0076] S101. Obtain measurement data of at least one service traffic reported periodically by each node device.

[0077] In this embodiment, the node device can report measurement data every preset measurement cycle. This measurement data consists of measurement data of each type of service traffic acquired by the node device within each preset measurement cycle based on the flow detection mechanism, and is reported to the controller. Here, timed reporting means reporting every preset measurement cycle, i.e., periodic reporting.

[0078] Optionally, the measurement data for a type of service traffic reported by a node device may include: the node device's own node identifier, the measurement instance of the service traffic, the flow identifier, the service identifier of the service traffic, the segment list of the service traffic, the number of packets forwarded for the service traffic, the traffic size of the service traffic, and the timestamp for forwarding the service traffic. The timestamp for forwarding the service traffic refers to the timestamp of the first delay-colored packet of each type of service traffic to be forwarded within each preset measurement period.

[0079] S102. Based on the segment list in the measurement data of each type of service traffic reported by each node device, determine at least one forwarding path corresponding to each type of service traffic.

[0080] In this embodiment, the controller parses the segment list in the measurement data of each type of service traffic reported by each node device to determine at least one forwarding path corresponding to each type of service traffic in the network quality detection system. This forwarding path includes a head node, at least one intermediate node, and a tail node.

[0081] S103. For each forwarding path corresponding to each type of service traffic, based on the measurement data of each node device on the forwarding path, calculate the network quality data between every two adjacent node devices on the forwarding path.

[0082] In this embodiment, network quality data can be used to reflect packet loss metrics and / or latency metrics. The final controller needs to calculate the network quality data between every two adjacent node devices on each corresponding forwarding path for each type of service traffic.

[0083] The network quality detection method provided by this invention allows the controller to obtain measurement data of at least one service traffic reported by each node device every preset measurement period. Then, based on the segment list in each measurement data set, at least one forwarding path corresponding to each type of service traffic is determined. Finally, packet loss and / or latency metrics between every two adjacent node devices on each forwarding path are calculated for each type of service traffic. Compared to existing technologies, the reported content of the node devices in this invention includes a segment list, so the controller can determine at least one forwarding path for each type of service traffic, and then calculate the packet loss and latency metrics between every two adjacent node devices on each forwarding path for each type of service traffic. Hop-by-hop flow detection is performed based on tunnel multiplexing, avoiding increased workload for the nodes.

[0084] In an optional implementation, the sub-steps of step S101 above may include:

[0085] S1011 Receive measurement data reported by each node device every preset measurement cycle.

[0086] It is understandable that the measurement data is obtained by the node device based on the flow detection mechanism every preset measurement cycle.

[0087] Optionally, the preset measurement period can be set according to requirements, such as 5s or 10s.

[0088] In optional implementations, transmission quality metrics may include packet loss metrics and latency metrics; that is, network quality data may include packet loss count, network latency, etc. The following describes the process of calculating packet loss metrics and latency metrics in step S103.

[0089] Therefore, for a forwarding path corresponding to a certain type of service traffic, the process of calculating the number of packet losses between every two adjacent node devices on that forwarding path can include the following steps:

[0090] S1031. Calculate the difference in the number of packets between every two adjacent node devices on the forwarding path of the service traffic to obtain the number of packet losses between every two adjacent node devices on the forwarding path of the service traffic.

[0091] by Figure 1 Taking two adjacent nodes (Node1 and Node2) on path-1 as an example, if Node1 and Node2 report 10 and 9 packets respectively for Service 1 on path-1, then the difference in packet count is 1, meaning the packet loss count between Node1 and Node2 on path-1 for Service 1 is 1. This example is for illustrative purposes only and is not intended to be limiting.

[0092] For a forwarding path corresponding to a certain type of service traffic, the process of calculating the network latency between every two adjacent node devices on that forwarding path can include the following steps:

[0093] S1032. Calculate the difference in timestamps between every two adjacent node devices on the forwarding path of the service traffic to obtain the network latency between every two adjacent node devices on the forwarding path of the service traffic.

[0094] It can be understood that the timestamp of each type of service traffic reported by each node device is the sending timestamp of the first delay-colored message (i.e., the D field of the IFIT header is 1) that forwards that type of service traffic within the preset measurement period.

[0095] Please refer to Figure 4 , Figure 4 This is a second flowchart illustrating a network quality detection method provided in this embodiment of the invention. The executing entity of this method can be any node device in the aforementioned network quality detection system. It should be noted that its basic principles and resulting technical effects are the same as or similar to those in the previous embodiments. For the sake of brevity, parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. This network quality detection method may include the following steps S201–S202:

[0096] S201. Obtain measurement data for each type of service traffic based on the flow detection mechanism.

[0097] In this embodiment, the measurement data includes a list of segments corresponding to the service traffic.

[0098] S202. Periodically report the measurement data of each type of service traffic to the controller, so that the controller can determine at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by this node device and other node devices, and calculate the network quality data between every two adjacent node devices on each forwarding path of each type of service traffic.

[0099] In this embodiment, the node device obtains measurement data for each type of service traffic every preset measurement period and sends it to the controller. The network quality data can be used to reflect packet loss metrics and / or latency metrics.

[0100] The network quality detection method provided by this invention includes a segment list periodically reported by the node devices. Therefore, the controller can determine at least one forwarding path for each type of service traffic, and then calculate the packet loss index and latency index between each pair of adjacent node devices on each forwarding path for each type of service traffic. Based on tunnel reuse, hop-by-hop flow detection is performed, which avoids increasing the workload of the nodes.

[0101] Optionally, the sub-steps of step S201 above may include:

[0102] S2011. Within each preset measurement period, record the sending timestamp of the first message of each type of service traffic to be forwarded, the number of messages sent for that service traffic, and the segment list, and generate measurement data for reporting after each preset measurement period.

[0103] In this embodiment, the node device records the sending timestamp of the first packet of each type of service traffic to be forwarded (the first packet is a delay-colored packet with the D field of the IFIT header set to 1), the number of packets sent for that service traffic, and the segment list. Correspondingly, the measurement data reported by the node device for each type of service traffic after the end of each preset measurement period may include: its own node identifier, the measurement instance of that service traffic, the flow identifier, the service identifier of that service traffic, the segment list of that service traffic, the number of packets forwarded for that service traffic, the traffic size of that service traffic, and the timestamp of forwarding that service traffic.

[0104] Please refer to Figure 5 , Figure 5 This is a third flowchart illustrating a network quality detection method provided in this embodiment of the invention. The executing entity of this method can be the aforementioned network quality detection system. It should be noted that its basic principle and the resulting technical effects are the same as or similar to those in the foregoing embodiments. For the sake of brevity, parts not mentioned in this embodiment can be referred to the corresponding content in the foregoing embodiments. This network quality detection method may include the following steps S301 to S303:

[0105] S301. Each node device periodically reports measurement data of at least one service traffic to the controller.

[0106] Node devices can report measurement data at preset measurement cycles. The measurement data consists of measurement data of each type of service traffic acquired by the node device within each preset measurement cycle based on the flow detection mechanism, and reported to the controller. Here, "timed" refers to the reporting every preset measurement cycle, i.e., periodic reporting.

[0107] S302. The controller determines at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by each node device.

[0108] S303: For each type of service traffic and each forwarding path, the controller calculates the network quality data between every two adjacent node devices on the forwarding path based on the measurement data of each node device on the forwarding path.

[0109] In this embodiment, network quality data can be used to reflect packet loss metrics and / or latency metrics.

[0110] In optional examples, with Figure 1 Taking service 1 (service identifier B1, corresponding flow identifier 123456) as an example, the measurement data of service 1 reported by each node received by the controller are as follows:

[0111] 1. The measurement data of Service 1 reported by Node1 includes: 123456, Node 1, B1, path-1, 500, 30KB, 1703558036397 (this value is the timestamp used by computer devices by default in the prior art, representing the millisecond value starting from 1700).

[0112] 2. The measurement data of Service 1 reported by Node2 includes: 123456, Node 2, B1, path-1, 500, 30KB, 1703558036398;

[0113] 3. The measurement data of Service 1 reported by Node3 includes: 123456, Node 3, B1, path-1, 499, 29.99KB, 1703558036399;

[0114] 4. The measurement data for Service 1 reported by Node 6 includes: 123456, Node 6, B1, path-1, 498, 29.98KB, 1703558036400;

[0115] 5. The measurement data of Service 1 reported by Node1 includes: 123456, Node 1, B1, path-2, 500, 30KB, 1703558036397;

[0116] 6. The measurement data for Service 1 reported by Node4 includes: 123456, Node 4, B1, path-2, 499, 29.98KB, 1703558036398;

[0117] 7. The measurement data for Service 1 reported by Node5 includes: 123456, Node 5, B1, path-2, 499, 29.98KB, 1703558036400;

[0118] 8. The measurement data of Service 1 reported by Node6 includes: 123456, Node 6, B1, path-2, 499, 29.98KB, 1703558036401.

[0119] Based on the segment list in the data reported by the 6 nodes, the controller can determine two forwarding paths for service 1:

[0120] 1. path-1: Head node Node1 → Middle node Node2 → Middle node Node3 → Tail node Node6;

[0121] 2. path-2: Head node Node1 → Middle node Node4 → Middle node Node5 → Tail node Node6.

[0122] Based on the number of packets for Service 1 reported by each node, the controller can calculate the packet loss and latency on the two forwarding paths as follows:

[0123] 1. On path-1: the packet loss and network latency between Node1 and Node2 are 0 and 1ms respectively; the packet loss and network latency between Node2 and Node3 are 1 and 1ms respectively; the packet loss and network latency between Node3 and Node6 are 1 and 1ms respectively.

[0124] 2. On path-2: the packet loss and network latency between Node1 and Node4 are 1 and 1ms respectively; the packet loss and network latency between Node4 and Node5 are 0 and 2ms respectively; the packet loss and network latency between Node5 and Node6 are 0 and 1ms respectively.

[0125] That is, Service 1 loses 2 packets on path-1 and 1 packet on path-2, and the average network latency between nodes on each path-1 and path-2 is 1ms and 1ms respectively.

[0126] It should be noted that the above examples are merely illustrative and are not intended to be limiting. The execution order of each step in the above method embodiments is not limited to what is shown in the accompanying drawings, and the execution order of each step shall be subject to the actual application.

[0127] In order to perform the corresponding steps in the above method embodiments and various possible implementations, the following is an implementation of the network quality detection device.

[0128] Please see Figure 6 , Figure 6 This diagram illustrates one of the structural schematics of a network quality detection device provided in an embodiment of the present invention. The network quality detection device 200 is applied to a controller, which is communicatively connected to multiple node devices. The network quality detection device 200 includes a receiving module 210, an analysis module 220, and a calculation module 230.

[0129] The receiving module 210 is used to obtain measurement data of at least one service traffic reported periodically by each node device;

[0130] Analysis module 220 is used to determine at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by each node device;

[0131] The calculation module 230 is used to calculate the network quality data between every two adjacent node devices on the forwarding path for each type of service traffic, based on the measurement data of each node device on the forwarding path.

[0132] Optionally, the receiving module 230 can be used to receive measurement data reported by each node device every preset measurement cycle; the measurement data is the measurement data of each type of service traffic obtained by the node device in each preset measurement cycle based on the flow detection mechanism.

[0133] Optionally, network quality data includes the number of packet losses; measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, and the number of packets forwarded for that service traffic. Specifically, the calculation module 230 can be used to calculate the difference in the number of packets between every two adjacent node devices on the forwarding path of the service traffic, and obtain the number of packet losses between every two adjacent node devices on the forwarding path of the service traffic.

[0134] Optionally, network quality data includes network latency; measurement data includes node identifier of node device, service identifier of corresponding service traffic and timestamp of forwarding the service traffic; the calculation module 230 is specifically used to calculate the difference of timestamps between every two adjacent node devices on the forwarding path of the service traffic to obtain the network latency between every two adjacent node devices on the forwarding path of the service traffic.

[0135] Please see Figure 7 , Figure 7 This is a second schematic diagram of the network quality detection device provided in an embodiment of the present invention. The network quality detection device 400 is applied to a node device, which is communicatively connected to a controller. The network quality detection device 400 includes a detection module 410 and a reporting module 420.

[0136] The detection module 410 is used to acquire measurement data for each type of service traffic based on the flow detection mechanism; the measurement data includes a list of segments for the corresponding service traffic.

[0137] The reporting module 420 is used to periodically report the measurement data of each type of service traffic to the controller, so that the controller can determine at least one forwarding path corresponding to each type of service traffic based on the segment list in the measurement data of each type of service traffic reported by this node device and other node devices, and calculate the network quality data between every two adjacent node devices on each forwarding path of each type of service traffic.

[0138] Optionally, the detection module 410 is specifically used to record the sending timestamp of the first packet of each type of service traffic to be forwarded, the number of packets sent for that service traffic, and the segment list within each preset measurement period, and generate measurement data for reporting after each preset measurement period; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, the segment list, the number of packets forwarded for that service traffic, and the timestamp.

[0139] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the network quality detection device 200 and network quality detection device 400 described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0140] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 300 includes a processor 310, a memory 320, and a bus 330, with the processor 310 connected to the memory 320 via the bus 330.

[0141] The memory 320 can be used to store software programs, such as the software programs corresponding to the network quality detection device 200 or the jump detection device 400 provided in the embodiments of the present invention. The processor 310 executes various functional applications and data processing by running the software programs stored in the memory 320 to implement the network quality detection method provided in the embodiments of the present invention.

[0142] The memory 320 may be, but is not limited to, RAM (Random Access Memory), ROM (Read Only Memory), FLASH (Flash Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.

[0143] The processor 310 can be an integrated circuit chip with signal processing capabilities. The processor 310 can be a general-purpose processor, including: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be: DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0144] Understandable. Figure 8 The structure shown is for illustrative purposes only; the electronic device 300 may also include components that are more advanced than those shown. Figure 8 The more or fewer components shown, or having the same Figure 8 The different configurations shown. Figure 8 The components shown can be implemented using hardware, software, or a combination thereof.

[0145] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the network quality detection method disclosed in the above embodiments. The computer-readable storage medium can be, but is not limited to, various media capable of storing program code, such as a USB flash drive, external hard drive, ROM, RAM, PROM, EPROM, EEPROM, FLASH disk, or optical disk.

[0146] In summary, this invention provides a network quality detection method, apparatus, electronic device, and readable storage medium. In this invention, a controller is communicatively connected to multiple node devices. The controller can obtain measurement data of at least one service traffic reported by each node device every preset measurement period. Then, based on the segment list in the measurement data of each service traffic reported by each node device, at least one forwarding path corresponding to each service traffic is determined. Finally, for each forwarding path corresponding to each service traffic, based on the measurement data of each node device on the forwarding path, network quality data between every two adjacent node devices on the forwarding path is calculated. This network quality data reflects packet loss and / or latency indicators. Compared to existing technologies, the reported content of the node devices in this invention includes a segment list, so the controller can determine at least one forwarding path for each service traffic, and then calculate the packet loss and latency indicators between every two adjacent node devices on each forwarding path. Hop-by-hop flow detection is performed based on tunnel multiplexing and traffic load, avoiding increased workload for the nodes.

[0147] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A network quality detection method, characterized in that, The method is applied to a controller that communicates with multiple node devices in an SRv6 network; the method includes: A unique service identifier is globally planned for each type of service traffic that requires flow detection; Obtain measurement data of at least one service traffic reported periodically by each node device, wherein the measurement data includes a service identifier; Based on the service identifier and segment list in the measurement data of each service traffic reported by each node device, at least one forwarding path corresponding to each service traffic is determined; For each forwarding path corresponding to each type of service traffic, network quality data between every two adjacent node devices on the forwarding path is calculated based on the measurement data of each node device on the forwarding path.

2. The method according to claim 1, characterized in that, The step of obtaining measurement data of at least one service traffic periodically reported by each node device includes: The system receives measurement data reported by each node device every preset measurement period; the measurement data is the measurement data of each type of service traffic obtained by the node device in each preset measurement period based on the flow detection mechanism.

3. The method according to claim 1, characterized in that, The network quality data includes the number of packet losses; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, and the number of packets forwarded for that service traffic; The step of calculating the network quality data between every two adjacent node devices on the forwarding path based on the measurement data of the service traffic at each node device on the forwarding path includes: The difference in the number of packets between every two adjacent node devices on the forwarding path is calculated to obtain the number of packet losses between every two adjacent node devices on the forwarding path.

4. The method according to claim 1, characterized in that, The network quality data includes network latency; the measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, and the timestamp for forwarding the service traffic. The step of calculating the network quality data between every two adjacent node devices on the forwarding path based on the measurement data of the service traffic at each node device on the forwarding path includes: The network latency of the service traffic between every two adjacent node devices on the forwarding path is obtained by calculating the difference in timestamps between the two adjacent node devices on the forwarding path.

5. A network quality detection method, characterized in that, A node device applied in an SRv6 network, the node device being communicatively connected to a controller; the method includes: Measurement data for each type of service traffic is acquired based on a flow-following detection mechanism. The measurement data includes a service identifier and a list of segments corresponding to the service traffic. The service identifier is a unique identifier that the controller globally plans for each type of service traffic that requires flow-following detection. The device periodically reports the measurement data of each type of service traffic to the controller, so that the controller can determine at least one forwarding path corresponding to each type of service traffic based on the service identifier and segment list in the measurement data of each type of service traffic reported by this node device and other node devices, and calculate the network quality data between every two adjacent node devices on each forwarding path for each type of service traffic.

6. The method according to claim 5, characterized in that, The steps for acquiring measurement data for each type of service traffic based on the flow detection mechanism include: Within each preset measurement period, the sending timestamp of the first packet of each type of service traffic to be forwarded, the number of packets sent for that service traffic, and the segment list are recorded, and measurement data is generated for reporting after each preset measurement period. The measurement data includes the node identifier of the node device, the service identifier of the corresponding service traffic, the segment list, the number of packets forwarded for that service traffic, and the timestamp.

7. A network quality detection method, characterized in that, An application is made in a network quality detection system, the system including a controller and multiple node devices in an SRv6 network that are communicatively connected to the controller; The controller globally plans a unique service identifier for each type of service traffic that needs to be detected by the flow; Each node device periodically reports measurement data of at least one service traffic to the controller, wherein the measurement data includes a service identifier; The controller determines at least one forwarding path corresponding to each type of service traffic based on the service identifier and segment list in the measurement data of each type of service traffic reported by each node device; For each type of service traffic and each forwarding path, the controller calculates network quality data between every two adjacent node devices on the forwarding path based on the measurement data of each node device on the forwarding path.

8. A network quality detection device, characterized in that, Applied to a controller, which communicates with multiple node devices in an SRv6 network; the device includes: The receiving module is used to obtain measurement data of at least one service traffic reported periodically by each node device, wherein the measurement data includes a service identifier; the service identifier is a unique identifier globally planned by the controller for each type of service traffic that needs to be detected by flow tracking. The analysis module is used to determine at least one forwarding path corresponding to each type of service traffic based on the service identifier and segment list in the measurement data of each type of service traffic reported by each node device. The calculation module is used to calculate, for each type of service traffic and each forwarding path, network quality data between every two adjacent node devices on the forwarding path based on the measurement data of each node device on the forwarding path.

9. A network quality detection device, characterized in that, A node device used in an SRv6 network, the node device being communicatively connected to a controller; the device includes: The detection module is used to acquire measurement data for each type of service traffic based on the flow detection mechanism; the measurement data includes service identifiers and a list of segments corresponding to the service traffic; the service identifier is a unique identifier globally planned by the controller for each type of service traffic that needs to be detected by flow detection. The reporting module is used to periodically report the measurement data of each type of service traffic to the controller, so that the controller can determine at least one forwarding path corresponding to each type of service traffic based on the service identifier and segment list in the measurement data of each type of service traffic reported by the node device and other node devices, and calculate the network quality data between every two adjacent node devices on each forwarding path for each type of service traffic.

10. An electronic device, characterized in that, include: The electronic device includes a memory and a processor, wherein the memory stores a software program, and the processor executes the software program to implement the network quality detection method as described in any one of claims 1-4 or 5-6 when the electronic device is running.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the network quality detection method according to any one of claims 1-4 or 5-6.

Citation Information

Patent Citations

  • Message transmission method, nodes and path management servers

    CN105282028A

  • Network transmission quality detection method and system

    CN117155820A