A network performance detection method, device and computer readable storage medium
By configuring and sending flow-by-stream detection information, the problem that network performance detection cannot be quickly deployed in the operator network in the prior art is solved, flexible performance detection and efficient fault location are achieved, and detection accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202110544631.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-19
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-05-19
AI Technical Summary
The existing network performance detection technology cannot be deployed quickly in the operator network, and there are problems with message overhead and measurement accuracy.
Network performance detection is achieved by configuring and sending flow-access detection information, including service flow identification, sampling period identification and sampling data identification. The flow-by-stream detection information is encapsulated in different types of extension headers, supporting hop-by-hop and end-to-end performance detection.
It provides variable data acquisition granularity, expands the detection data dimension, enhances the flexibility of performance detection, improves the accuracy of fault location and root cause analysis, and reduces the processing complexity of intermediate nodes and improves message forwarding efficiency.
Smart Images

Figure CN115460118B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a network performance detection method, device and computer-readable storage medium. Background Art
[0002] Network performance detection technology measures, collects and analyzes network performance data to perform network fault diagnosis, status monitoring and resource optimization to meet users' service level agreements (SLA) and ensure stable and reliable network operation. Network performance detection technology can be divided into active measurement technology, passive measurement technology and hybrid measurement technology.
[0003] However, the above-mentioned related measurement technologies have problems in terms of message overhead and measurement accuracy, making it impossible to quickly deploy them in operator networks. Summary of the invention
[0004] In view of this, embodiments of the present invention are intended to provide a network performance detection method, device, and computer-readable storage medium.
[0005] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:
[0006] An embodiment of the present invention provides a network performance detection method, which is applied to a first network node and includes:
[0007] Configure and send flow detection information; among them,
[0008] The in-flow detection information includes: a business flow identifier, a sampling period identifier and a sampling data identifier; the business flow identifier is used to uniquely identify the detected business flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled.
[0009] The accompanying flow detection information further includes: a first indication mark, which is used to indicate whether the accompanying flow detection information includes the sampling data mark.
[0010] The flow detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used to identify the direction of the service flow; and the second indication identifier is used to identify a path node for flow detection.
[0011] The following-flow detection information is located in a following-flow detection message header.
[0012] The following flow detection message header is encapsulated in different types of extension headers.
[0013] Wherein, for the IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0014] When the extended header type is a destination option header DOH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0015] Among them, for the SRv6 scenario, when the extended header type is DOH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop or end-to-end performance detection and report sampling data.
[0016] in,
[0017] When the DOH is located before the routing extension header SRH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0018] When the DOH is located after the SRH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0019] The configuration of the flow detection information includes:
[0020] Receive the flow detection configuration information sent by the network controller;
[0021] The accompanying flow detection information is configured based on the accompanying flow detection configuration information.
[0022] An embodiment of the present invention further provides a network performance detection method, which is applied to a second network node and includes:
[0023] Receive the flow detection information; wherein the flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during the detection; the sampling data identifier is used to indicate the type of data to be sampled;
[0024] Performance detection and reporting of sampling data are performed based on the flow detection information.
[0025] The following-flow detection information is located in a following-flow detection message header; and the following-flow detection message header is encapsulated in different types of extension headers.
[0026] Wherein, for the IPv6 scenario, the performance detection and reporting of sampling data based on the flow detection information include:
[0027] When it is determined that the extended header type is a hop-by-hop option header HBH, performing hop-by-hop performance detection and reporting of sampled data;
[0028] When it is determined that the extended header type is the destination option header DOH, end-to-end performance detection and reporting of sampling data are performed.
[0029] Among them, for the SRv6 scenario, the performance detection and reporting of sampling data based on the flow detection information include:
[0030] When it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed.
[0031] When determining that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampling data includes:
[0032] When it is determined that the DOH is located before the routing extension header SRH, hop-by-hop performance detection and reporting of sampling data are performed;
[0033] When it is determined that the DOH is located after the SRH, end-to-end performance detection and reporting of sampling data are performed.
[0034] An embodiment of the present invention further provides a network performance detection device, which is applied to a first network node and includes:
[0035] Configuration module, used to configure the flow detection information;
[0036] The sending module is used to send the flow detection information; wherein,
[0037] The in-flow detection information includes: a business flow identifier, a sampling period identifier and a sampling data identifier; the business flow identifier is used to uniquely identify the detected business flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled.
[0038] An embodiment of the present invention further provides a network performance detection device, which is applied to a second network node and includes:
[0039] A receiving module, used to receive the accompanying flow detection information; wherein the accompanying flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled;
[0040] The processing module is used to perform performance detection and report sampling data based on the flow detection information.
[0041] The embodiment of the present invention further provides a network performance detection device, the device comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0042] Wherein, the processor is used to execute the steps of the above method when running the computer program.
[0043] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0044] The network performance detection method, device and computer-readable storage medium provided by the embodiments of the present invention, the first network node configures and sends the flow detection information; wherein the flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the service flow being detected; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled. The embodiments of the present invention can implement data sampling of different periods based on the sampling period identifier, and provide variable data collection granularity; at the same time, the sampling data identifier can be configured according to demand, the detection data dimension (sampling data identifier) is expanded, the types of reported detection data can be increased, the flexibility of performance detection can be enhanced, and it is helpful to improve the accuracy of fault location and demarcation and the accuracy of root cause analysis.
[0045] In addition, this embodiment does not need to add hop-by-hop and end-to-end detection identifiers in the detection message header, which can reduce the processing complexity of the intermediate nodes and improve the message forwarding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 The network performance detection method according to the embodiment of the present invention is shown in FIG. Figure 1 ;
[0047] Figure 2 The network performance detection method according to the embodiment of the present invention is shown in FIG. Figure 2 ;
[0048] Figure 3 The structure of the network performance detection device according to the embodiment of the present invention is shown in FIG. Figure 1 ;
[0049] Figure 4 The structure of the network performance detection device according to the embodiment of the present invention is shown in FIG. Figure 2 ;
[0050] Figure 5 This is a schematic diagram of the data domain encapsulation format according to an embodiment of the present invention;
[0051] Figure 6 This is a schematic diagram of the encapsulation position of the flow detection message header in IPv6 according to an embodiment of the present invention;
[0052] Figure 7 This is a schematic diagram of the encapsulation position of the flow detection message header in SRv6 according to an embodiment of the present invention;
[0053] Figure 8 The figure is a schematic diagram of the system structure according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The present invention is described below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the relevant inventions are shown in the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0055] Active measurement technology senses network parameters such as delay, jitter and packet loss rate by sending dedicated detection messages, and indirectly obtains network performance. Passive measurement technology is a detection technology that measures network performance based on actual business flows, and has relatively high measurement accuracy. However, there is a deviation between the measurement performance of active measurement technology and the actual network performance, and there is a problem that the performance of the entire bundled link cannot be measured; in a network with a large number of path nodes, IOAM passive measurement technology will cause the original data packet to exceed the maximum transmission unit of the path, resulting in data packet fragmentation, increasing the complexity of system processing, and IOAM passive measurement only outputs detection data at the specified end node; iFIT passive measurement technology can support end-to-end or node-by-node data reporting, but it is necessary to add corresponding detection identifiers in the message header, which increases the complexity of node processing and reduces the forwarding efficiency of the message. In addition, iFIT only supports the reporting of fixed information such as packet loss, delay, and flow information, and cannot realize on-demand data reporting. Hybrid measurement technology only supports MPLS pipeline-level testing and does not support line-by-line measurement.
[0056] In view of this, an embodiment of the present invention provides a network performance detection method, such as Figure 1 As shown, the method is applied to a first network node, comprising:
[0057] Step 101: Configure flow detection information;
[0058] Step 102: Send the flow detection information; wherein,
[0059] The in-flow detection information includes: a business flow identifier, a sampling period identifier and a sampling data identifier; the business flow identifier is used to uniquely identify the detected business flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled.
[0060] The embodiments of the present invention can implement data sampling of different periods based on the sampling period identifier, and provide variable data collection granularity; at the same time, the sampling data identifier can be configured according to the needs, the detection data dimension (sampling data identifier) is expanded, the types of reported detection data can be increased, the flexibility of performance detection is enhanced, and it is helpful to improve the accuracy of fault location and demarcation and the accuracy of root cause analysis.
[0061] In the embodiment of the present invention, the accompanying flow detection information further includes: a first indication mark, which is used to indicate whether the accompanying flow detection information includes the sampling data mark.
[0062] In the embodiment of the present invention, the flow detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used to identify the direction of the service flow; and the second indication identifier is used to identify a path node for flow detection.
[0063] In the embodiment of the present invention, the flow detection information is located in a flow detection message header.
[0064] In the embodiment of the present invention, the flow detection message header is encapsulated in different types of extension headers.
[0065] In one embodiment of the present invention, for an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes other than the first network node to perform hop-by-hop performance detection and report sampling data;
[0066] When the extended header type is a destination option header DOH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0067] In one embodiment of the present invention, for an SRv6 scenario, when the extended header type is DOH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop or end-to-end performance detection and report sampling data.
[0068] In one embodiment of the present invention,
[0069] When the DOH is located before the routing extension header SRH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0070] When the DOH is located after the SRH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0071] In the embodiment of the present invention, the configuration of the flow detection information includes:
[0072] Receive the flow detection configuration information sent by the network controller;
[0073] The accompanying flow detection information is configured based on the accompanying flow detection configuration information.
[0074] The embodiment of the present invention also provides a network performance detection method, such as Figure 2 As shown, the method is applied to a second network node, comprising:
[0075] Step 201: receiving the in-flow detection information; wherein the in-flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled;
[0076] Step 202: Perform performance detection and report sampling data based on the flow detection information.
[0077] In the embodiment of the present invention, the flow detection information is located in a flow detection message header; the flow detection message header is encapsulated in different types of extension headers.
[0078] In one embodiment of the present invention, for an IPv6 scenario, the performing of performance detection and reporting of sampling data based on the in-flight detection information includes:
[0079] When it is determined that the extended header type is a hop-by-hop option header HBH, performing hop-by-hop performance detection and reporting of sampled data;
[0080] When it is determined that the extended header type is the destination option header DOH, end-to-end performance detection and reporting of sampling data are performed.
[0081] In one embodiment of the present invention, for an SRv6 scenario, the performing performance detection and reporting of sampling data based on the accompanying flow detection information includes:
[0082] When it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed.
[0083] In one embodiment of the present invention, when determining that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data includes:
[0084] When it is determined that the DOH is located before the routing extension header SRH, hop-by-hop performance detection and reporting of sampling data are performed;
[0085] When it is determined that the DOH is located after the SRH, end-to-end performance detection and reporting of sampling data are performed.
[0086] In order to implement the above method embodiment, the embodiment of the present invention also provides a network performance detection device, such as Figure 3 As shown, the device is applied to a first network node, comprising:
[0087] Configuration module 301, used to configure flow detection information;
[0088] The sending module 302 is used to send the flow detection information; wherein,
[0089] The in-flow detection information includes: a business flow identifier, a sampling period identifier and a sampling data identifier; the business flow identifier is used to uniquely identify the detected business flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled.
[0090] In the embodiment of the present invention, the accompanying flow detection information further includes: a first indication mark, which is used to indicate whether the accompanying flow detection information includes the sampling data mark.
[0091] In the embodiment of the present invention, the flow detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used to identify the direction of the service flow; and the second indication identifier is used to identify a path node for flow detection.
[0092] In the embodiment of the present invention, the flow detection information is located in a flow detection message header.
[0093] In the embodiment of the present invention, the flow detection message header is encapsulated in different types of extension headers.
[0094] In one embodiment of the present invention, for an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes other than the first network node to perform hop-by-hop performance detection and report sampling data;
[0095] When the extended header type is a destination option header DOH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0096] In one embodiment of the present invention, for an SRv6 scenario, when the extended header type is DOH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop or end-to-end performance detection and report sampling data.
[0097] In one embodiment of the present invention,
[0098] When the DOH is located before the routing extension header SRH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0099] When the DOH is located after the SRH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0100] In the embodiment of the present invention, the configuration module 301 configures the flow detection information, including:
[0101] Receive the flow detection configuration information sent by the network controller;
[0102] The accompanying flow detection information is configured based on the accompanying flow detection configuration information.
[0103] The embodiment of the present invention also provides a network performance detection device, such as Figure 4 As shown, the device is applied to a second network node, comprising:
[0104] The receiving module 401 is used to receive the accompanying flow detection information; wherein the accompanying flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during the detection; the sampling data identifier is used to indicate the type of data to be sampled;
[0105] The processing module 402 is used to perform performance detection and report sampling data based on the flow detection information.
[0106] In the embodiment of the present invention, the flow detection information is located in a flow detection message header; the flow detection message header is encapsulated in different types of extension headers.
[0107] In one embodiment of the present invention, for an IPv6 scenario, the processing module 402 performs performance detection and reports sampling data based on the flow detection information, including:
[0108] When it is determined that the extended header type is a hop-by-hop option header HBH, performing hop-by-hop performance detection and reporting of sampled data;
[0109] When it is determined that the extended header type is the destination option header DOH, end-to-end performance detection and reporting of sampling data are performed.
[0110] In one embodiment of the present invention, for an SRv6 scenario, the processing module 402 performs performance detection and reports sampling data based on the accompanying flow detection information, including:
[0111] When it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed.
[0112] In one embodiment of the present invention, when the processing module 402 determines that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data includes:
[0113] When it is determined that the DOH is located before the routing extension header SRH, hop-by-hop performance detection and reporting of sampling data are performed;
[0114] When it is determined that the DOH is located after the SRH, end-to-end performance detection and reporting of sampling data are performed.
[0115] The embodiment of the present invention further provides a network performance detection device, the device comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0116] Wherein, when the processor is used to run the computer program, it executes:
[0117] Configure and send flow detection information; among them,
[0118] The in-flow detection information includes: a business flow identifier, a sampling period identifier and a sampling data identifier; the business flow identifier is used to uniquely identify the detected business flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled.
[0119] The accompanying flow detection information further includes: a first indication mark, which is used to indicate whether the accompanying flow detection information includes the sampling data mark.
[0120] The flow detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used to identify the direction of the service flow; and the second indication identifier is used to identify a path node for flow detection.
[0121] The following-flow detection information is located in a following-flow detection message header.
[0122] The following flow detection message header is encapsulated in different types of extension headers.
[0123] Wherein, for the IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0124] When the extended header type is a destination option header DOH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0125] Among them, for the SRv6 scenario, when the extended header type is DOH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop or end-to-end performance detection and report sampling data.
[0126] in,
[0127] When the DOH is located before the routing extension header SRH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0128] When the DOH is located after the SRH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0129] When configuring the flow detection information, the processor is further configured to execute, when running the computer program:
[0130] Receive the flow detection configuration information sent by the network controller;
[0131] The accompanying flow detection information is configured based on the accompanying flow detection configuration information.
[0132] The embodiment of the present invention further provides a network performance detection device, the device comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0133] Wherein, when the processor is used to run the computer program, it executes:
[0134] Receive the flow detection information; wherein the flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during the detection; the sampling data identifier is used to indicate the type of data to be sampled;
[0135] Performance detection and reporting of sampling data are performed based on the flow detection information.
[0136] The following-flow detection information is located in a following-flow detection message header; and the following-flow detection message header is encapsulated in different types of extension headers.
[0137] For the IPv6 scenario, when the performance detection and the reporting of the sampled data are performed based on the flow detection information, the processor is further configured to execute, when running the computer program:
[0138] When it is determined that the extended header type is a hop-by-hop option header HBH, performing hop-by-hop performance detection and reporting of sampled data;
[0139] When it is determined that the extended header type is the destination option header DOH, end-to-end performance detection and reporting of sampling data are performed.
[0140] For the SRv6 scenario, when the performance detection and the reporting of the sampling data are performed based on the flow detection information, the processor is further configured to execute, when running the computer program:
[0141] When it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed.
[0142] When determining that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data, the processor is further configured to execute, when running the computer program:
[0143] When it is determined that the DOH is located before the routing extension header SRH, hop-by-hop performance detection and reporting of sampling data are performed;
[0144] When it is determined that the DOH is located after the SRH, end-to-end performance detection and reporting of sampling data are performed.
[0145] It should be noted that: when the device provided in the above embodiment performs network performance detection, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the device provided in the above embodiment and the corresponding method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0146] In an exemplary embodiment, an embodiment of the present invention further provides a computer-readable storage medium, which may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0147] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computer program performs:
[0148] Configure and send flow detection information; among them,
[0149] The in-flow detection information includes: a business flow identifier, a sampling period identifier and a sampling data identifier; the business flow identifier is used to uniquely identify the detected business flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled.
[0150] The accompanying flow detection information further includes: a first indication mark, which is used to indicate whether the accompanying flow detection information includes the sampling data mark.
[0151] The flow detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used to identify the direction of the service flow; and the second indication identifier is used to identify a path node for flow detection.
[0152] The following-flow detection information is located in a following-flow detection message header.
[0153] The following flow detection message header is encapsulated in different types of extension headers.
[0154] For the IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0155] When the extended header type is a destination option header DOH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0156] For the SRv6 scenario, when the extended header type is DOH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop or end-to-end performance detection and report sampling data.
[0157] in,
[0158] When the DOH is located before the routing extension header SRH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data;
[0159] When the DOH is located after the SRH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
[0160] When configuring the flow detection information, the computer program is executed by the processor and further executes:
[0161] Receive the flow detection configuration information sent by the network controller;
[0162] The accompanying flow detection information is configured based on the accompanying flow detection configuration information.
[0163] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computer program performs:
[0164] Receive the flow detection information; wherein the flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during the detection; the sampling data identifier is used to indicate the type of data to be sampled;
[0165] Performance detection and reporting of sampling data are performed based on the flow detection information.
[0166] The following-flow detection information is located in a following-flow detection message header; and the following-flow detection message header is encapsulated in different types of extension headers.
[0167] For the IPv6 scenario, when the performance detection and the reporting of the sampled data are performed based on the flow detection information, when the computer program is executed by the processor, the following steps are further performed:
[0168] When it is determined that the extended header type is a hop-by-hop option header HBH, performing hop-by-hop performance detection and reporting of sampled data;
[0169] When it is determined that the extended header type is the destination option header DOH, end-to-end performance detection and reporting of sampling data are performed.
[0170] For the SRv6 scenario, when the performance detection and the reporting of the sampled data are performed based on the in-stream detection information, when the computer program is executed by the processor, the following steps are further performed:
[0171] When it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed.
[0172] When determining that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data, when the computer program is executed by the processor, further executing:
[0173] When it is determined that the DOH is located before the routing extension header SRH, hop-by-hop performance detection and reporting of sampling data are performed;
[0174] When it is determined that the DOH is located after the SRH, end-to-end performance detection and reporting of sampling data are performed.
[0175] The present invention is described below in conjunction with scenario embodiments.
[0176] This embodiment proposes a flow detection technology based on the postcard mode, which can selectively perform end-to-end data reporting or node-by-node data reporting. At the same time, compared with the IOAM technology, the flow detection data domain format proposed in this embodiment does not need to add measurement data node by node in the data packet, but reports the corresponding measurement data according to the data domain identifier; compared with the iFIT technology, this embodiment can provide variable data collection granularity to achieve data sampling of different periods; at the same time, it expands the detection data dimension (sampling data identifier), which can increase the types of reported detection data, and help improve the accuracy of fault location and demarcation and the accuracy of root cause analysis. This embodiment also performs periodic coloring on the data stream based on the RFC8321 alternate marking method to achieve the measurement of delay and packet loss rate.
[0177] The encapsulation format of the flow detection data field in this embodiment is as follows:
[0178] Figure 5 This is the data domain encapsulation format of this embodiment. The information identified by each field is as follows:
[0179] Option Type: 8-bit option type identifier. For HBH or DOH, RFC8200 defines the semantics of the three high-order bits of the Option Type field. Among them, the first two high-order bits specify what actions to take when the IPv6 processing node cannot recognize the type. For the alternating notation method, these two bits must be set to 00, that is, skip the option and continue processing the header. The third high-order bit specifies whether the option data can be changed on the path before reaching the final destination node. For the alternating notation method, the value of this bit must be set to 0, that is, the option data cannot be changed on the path.
[0180] Opt Data Len: The length of the data field of this option type, in bytes.
[0181] FlowMonID (service flow identifier): 20-bit unsigned integer, used to uniquely identify the detected service flow. This field can be uniquely allocated by the central controller, or generated by the source node (access point, first network node) based on an algorithm.
[0182] NodeMonID (second indicator): 20-bit unsigned integer used to identify the path node for implementing flow detection.
[0183] L: Identifier for packet loss measurement.
[0184] D: Identifier for a single packet latency measurement.
[0185] F: Direction indicator of business flow.
[0186] R: Reserved field.
[0187] P: 2-bit identifier, sampling period identifier. For example: 00 indicates a 10s sampling period; 01 indicates a 30s sampling period; 10 indicates a 60s sampling period; 11 indicates a 300s sampling period.
[0188] Trace Type (BitMap) (sampling data identification): 24-bit bit identification field, used to indicate the type of information that the node needs to collect. This information may include: detection node ID, input interface ID, output interface ID, node transmission delay, node processing data packet timestamp and other general data (node geographic location, cache queue, or battery information). The specific identification information of each bit of this identification field is shown in Table 1.
[0189] Table 1 Trace Type identification field information
[0190]
[0191]
[0192] Reserved: A reserved field for future function expansion.
[0193] EII (first indication identifier): identifies whether to carry the extended data field identifier Trace Type.
[0194] This embodiment can perform hop-by-hop and end-to-end detection, as follows:
[0195] Based on multiple different IPv6 extension headers and their appearance order in RFC8200, nodes can implement different message processing methods. Therefore, this embodiment proposes a method for implementing hop-by-hop or end-to-end network performance detection based on the encapsulation position of the extension header, and the intermediate node (except the ingress node) can select hop-by-hop or end-to-end network performance detection for the service flow only according to the type and position of the extension header.
[0196] For IPv6 scenarios, by adding the flow detection packet header ( Figure 5The packet header of the two modes is encapsulated in different types of extension headers to achieve hop-by-hop or end-to-end detection. If the flow detection packet header is encapsulated in the hop-by-hop option header (HBH), hop-by-hop detection and data reporting can be achieved. If the flow detection packet header is encapsulated in the destination option header (DOH), end-to-end detection and data reporting can be achieved. The packet header encapsulation positions of the two modes are shown in Figure 6 shown.
[0197] For SRv6 scenarios, the flow detection message header is encapsulated in the DOH, and the position of the DOH in the message is used to implement hop-by-hop and end-to-end detection reporting. If the DOH is placed before the Segment Routing Header (SRH), hop-by-hop data measurement and reporting can be achieved; if the DOH is placed after the SRH, end-to-end data measurement and reporting can be achieved. The message header encapsulation positions of the two modes are as follows: Figure 7 shown.
[0198] The system block diagram of this embodiment can be shown as Figure 8 As shown. The system may include: an analysis module, a control module, a collection module and a network device. Among them, the analysis module, the control module and the collection module may be located in a network controller; the network device is each network node on the detection path. Signaling and data exchange are performed between the modules through a communication interface. The interface data protocol can adopt NETCONF, CLI, gRPC, TCP and UDP, etc. The specific functions of each module are as follows:
[0199] Analysis module: responsible for cleaning, analyzing and calculating the statistical data of each network device sent by the acquisition module.
[0200] Control module: Generates flow detection configuration information according to the configuration strategy (generated for performance detection purposes) and sends it to each network device in the detection domain. At the same time, adjusts the configuration parameters of the network device according to the analysis results of the analysis module.
[0201] Collection module: responsible for collecting measurement data and information reported by each network device.
[0202] Network equipment: including configuration module, measurement module, and sending, receiving and processing modules. The configuration module is responsible for receiving and storing the configuration policy issued by the control module, and generating configuration commands according to the configuration policy and sending them to the sending, receiving and processing modules. The measurement module is responsible for measuring service flow performance parameters such as timestamp, number of messages, number of bytes, etc., and passing them to the acquisition module. The sending, receiving and processing modules are responsible for sending, receiving and forwarding the service flow respectively.
[0203] For packet loss and delay measurement, they can be based on Figure 5The L and D bits in the delay measurement are implemented. For the measurement principle, please refer to the alternating coloring measurement principle in RFC8321. The delay measurement can be implemented in two ways: single-marking method and double-marking method.
[0204] The single-marking method uses the L bit to simultaneously measure packet loss and delay, while the D bit is set to 0 and is not processed during transmission.
[0205] The dual marking method uses L bits to calculate packet loss information, while D bits are used exclusively for latency measurement. This method alternately colors the data stream using L bits to mark each cycle, and then uses D bits for latency measurement.
[0206] In actual application, the ingress node of the detection domain configures the flow detection information based on the flow detection configuration information sent by the network controller and sends it to other subsequent nodes. Other nodes identify the relevant identifiers in the flow detection information and perform hop-by-hop or end-to-end performance detection. The corresponding nodes collect the corresponding type of data based on the corresponding configured period and report it to the network controller.
[0207] This embodiment can increase the types of reported detection data as needed, which helps to improve the accuracy of fault location and demarcation and root cause analysis; at the same time, detection data can also be reported as needed to enhance the flexibility of performance detection.
[0208] The NodeMonID field in the data domain of this embodiment is used to identify node information and is globally allocated by the network controller. At the same time, combined with the FlowMonID field, it can uniquely identify the service flow, and realize intelligent selection strategy for the detection data flow.
[0209] In addition, this embodiment does not need to add hop-by-hop and end-to-end detection identifiers in the detection message header, which can reduce the processing complexity of the intermediate nodes and improve the message forwarding efficiency.
[0210] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. A network performance detection method, characterized in that: The method is applied to a first network node, comprising: Configure and send flow detection information; among them, The flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled; the flow detection information is located in a flow detection message header, and the flow detection message header is encapsulated in different types of extension headers; For the IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes other than the first network node to perform hop-by-hop performance detection and report sampled data; when the extension header type is a destination option header DOH, the flow detection information is used to instruct other path nodes other than the first network node to perform end-to-end performance detection and report sampled data; For the SRv6 scenario, when the extension header type is DOH, the flow detection information is used to indicate other path nodes except the first network node, and to perform hop-by-hop or end-to-end performance detection and reporting of sampling data through the position of DOH and the extension header.
2. The method according to claim 1, characterized in that The accompanying flow detection information further includes: a first indication mark, which is used to indicate whether the accompanying flow detection information includes the sampling data mark.
3. The method according to claim 1 or 2, characterized in that: The flow detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used to identify the direction of the service flow; and the second indication identifier is used to identify a path node for flow detection.
4. The method according to claim 1, characterized in that: When the DOH is located before the routing extension header SRH, the flow detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampling data; When the DOH is located after the SRH, the accompanying flow detection information is used to instruct other path nodes except the first network node to perform end-to-end performance detection and report sampling data.
5. The method according to claim 1, characterized in that The configuration of the flow detection information includes: Receive the flow detection configuration information sent by the network controller; The accompanying flow detection information is configured based on the accompanying flow detection configuration information.
6. A network performance detection method, characterized in that: The method is applied to a second network node, comprising: Receive the flow detection information; wherein the flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled; the flow detection information is located in a flow detection message header, and the flow detection message header is encapsulated in different types of extension headers; Performing performance detection and reporting of sampling data based on the flow detection information; The performing of performance detection and reporting of sampling data based on the flow detection information includes: For the IPv6 scenario, when it is determined that the extension header type is a hop-by-hop option header HBH, hop-by-hop performance detection and reporting of sampled data are performed; when it is determined that the extension header type is a destination option header DOH, end-to-end performance detection and reporting of sampled data are performed; For the SRv6 scenario, when it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed through the position of the DOH and the extension header.
7. The method according to claim 6, characterized in that When determining that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampling data includes: When it is determined that the DOH is located before the routing extension header SRH, hop-by-hop performance detection and reporting of sampling data are performed; When it is determined that the DOH is located after the SRH, end-to-end performance detection and reporting of sampling data are performed.
8. A network performance detection device, characterized in that: The device is applied to a first network node, and includes: Configuration module, used to configure the flow detection information; The sending module is used to send the flow detection information; wherein, The flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled; the flow detection information is located in a flow detection message header, and the flow detection message header is encapsulated in different types of extension headers; For the IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow detection information is used to instruct other path nodes other than the first network node to perform hop-by-hop performance detection and report sampled data; when the extension header type is a destination option header DOH, the flow detection information is used to instruct other path nodes other than the first network node to perform end-to-end performance detection and report sampled data; For the SRv6 scenario, when the extension header type is DOH, the flow detection information is used to indicate other path nodes except the first network node, and to perform hop-by-hop or end-to-end performance detection and reporting of sampling data through the position of DOH and the extension header.
9. A network performance detection device, characterized in that: The device is applied to a second network node, and includes: A receiving module, used for receiving the flow detection information; wherein the flow detection information includes: a service flow identifier, a sampling period identifier and a sampling data identifier; the service flow identifier is used to uniquely identify the detected service flow; the sampling period identifier is used to indicate the sampling period during detection; the sampling data identifier is used to indicate the type of data to be sampled; the flow detection information is located in a flow detection message header, and the flow detection message header is encapsulated in different types of extension headers; A processing module, used for performing performance detection and reporting sampling data based on the flow detection information; The performing of performance detection and reporting of sampling data based on the flow detection information includes: For the IPv6 scenario, when it is determined that the extension header type is a hop-by-hop option header HBH, hop-by-hop performance detection and reporting of sampled data are performed; when it is determined that the extension header type is a destination option header DOH, end-to-end performance detection and reporting of sampled data are performed; For the SRv6 scenario, when it is determined that the extension header type is DOH, hop-by-hop or end-to-end performance detection and reporting of sampled data are performed through the position of the DOH and the extension header.
10. A network performance detection device, characterized in that: The apparatus comprises: a processor and a memory for storing a computer program capable of running on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 5, or executes the steps of the method described in any one of claims 6 to 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 5, or implements the steps of the method described in any one of claims 6 to 7.
Citation Information
Patent Citations
Data message detection method, device and system
CN110572293A
Data acquisition method and related equipment
CN111294112A