CN115460118A - Network performance detection method and device and computer readable storage medium - Google Patents

Network performance detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN115460118A
CN115460118A CN202110544631.XA CN202110544631A CN115460118A CN 115460118 A CN115460118 A CN 115460118A CN 202110544631 A CN202110544631 A CN 202110544631A CN 115460118 A CN115460118 A CN 115460118A
Authority
CN
China
Prior art keywords
detection
flow
hop
data
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110544631.XA
Other languages
Chinese (zh)
Inventor
王豪杰
程伟强
姜文颖
刘毅松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110544631.XA priority Critical patent/CN115460118A/en
Publication of CN115460118A publication Critical patent/CN115460118A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a network performance detection method, a device and a computer readable storage medium, wherein the method comprises the following steps: a first network node configures and sends detection information along with a flow; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of data to be sampled.

Description

Network performance detection method and device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a network performance detection method and apparatus, and a computer-readable storage medium.
Background
The network performance detection technology performs fault diagnosis, state monitoring and resource optimization on a network by measuring, collecting and analyzing network performance data so as to meet a Service Level Agreement (SLA) of a user and ensure stable and reliable operation of the network. Network performance detection techniques may be classified into active measurement techniques, passive measurement techniques, and hybrid measurement techniques.
However, the related measurement techniques have problems in terms of message overhead, measurement accuracy, and the like, so that the related measurement techniques cannot be deployed in an operator network quickly.
Disclosure of Invention
In view of the above, embodiments of the present invention are intended to provide a network performance detection method, device and computer-readable storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is implemented as follows:
the embodiment of the invention provides a network performance detection method, which is applied to a first network node and comprises the following steps:
configuring and sending detection information along with the flow; wherein, the first and the second end of the pipe are connected with each other,
the stream following detection information comprises: the method comprises the steps of identifying a service flow, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of the data to be sampled.
Wherein the detection information with stream further includes: the first indication identifier is used for indicating whether the along-stream detection information comprises the sampling data identifier or not.
Wherein the detection information with stream further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used for identifying the direction of the service flow; and the second indication identifier is used for identifying the path node detected along with the flow.
And the flow following detection information is positioned in a flow following detection message header.
Wherein, the flow following detection message header is encapsulated in different types of extension headers.
For an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow following detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampled data;
and when the extension header type is a destination option header DOH, the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
And when the extension header type is DOH in an SRv6 scene, the detection information with the flow is used for indicating other path nodes except the first network node to carry out hop-by-hop or end-to-end performance detection and report of sampled data.
Wherein the content of the first and second substances,
when the DOH is positioned in front of a routing extension header (SRH), the along-flow detection information is used for indicating other path nodes except the first network node to carry out hop-by-hop performance detection and report of sampling data;
and when the DOH is positioned behind the SRH, the detection information along with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampling data.
Wherein the configuring the detection information with the flow comprises:
receiving the detection configuration information along with the flow sent by a network controller;
configuring the on-stream detection information based on the on-stream detection configuration information.
The embodiment of the invention also provides a network performance detection method, which is applied to a second network node and comprises the following steps:
receiving detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service flow, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
and performing performance detection and sampling data reporting based on the stream following detection information.
Wherein, the detection information of the following flow is positioned in the header of the detection message of the following flow; and the flow detection message header is encapsulated in different types of extension headers.
For the IPv6 scenario, the performing performance detection and reporting of sampled data based on the detection information with the flow includes:
when the type of the extension header is determined to be a hop-by-hop option header HBH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the extension header type is determined to be the destination option header DOH, performing end-to-end performance detection and reporting of the sampled data.
For the SRv6 scenario, the performing performance detection and reporting of sample data based on the stream-following detection information includes:
and when the type of the extension header is determined to be DOH, carrying out hop-by-hop or end-to-end performance detection and reporting of sampled data.
When the type of the extension header is determined to be DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data includes:
when the DOH is determined to be positioned in front of the SRH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the DOH is determined to be positioned behind the SRH, carrying out end-to-end performance detection and reporting of sampling data.
The embodiment of the invention also provides a network performance detection device, which is applied to a first network node and comprises the following steps:
the configuration module is used for configuring the detection information along with the flow;
the sending module is used for sending the detection information along with the flow; wherein the content of the first and second substances,
the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of the data to be sampled.
The embodiment of the present invention further provides a network performance detection apparatus, which is applied to a second network node, and includes:
the receiving module is used for receiving the detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
and the processing module is used for carrying out performance detection and reporting of sampling data based on the detection information along with the flow.
An embodiment of the present invention further provides a network performance detection apparatus, where the apparatus includes: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the above method when running the computer program.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-mentioned method.
In the method, the device and the computer-readable storage medium for detecting network performance provided by the embodiment of the invention, a first network node configures and sends detection information with a flow; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of data to be sampled. The embodiment of the invention can realize data sampling in different periods based on the sampling period identification, and provide variable data acquisition granularity; meanwhile, the sampling data identification can be configured according to the requirement, the detection data dimension (sampling data identification) is expanded, the type of reported detection data can be increased, the flexibility of performance detection is enhanced, and the fault location delimitation precision and the accuracy of root cause analysis are improved.
In addition, the embodiment does not need to add hop-by-hop and end-to-end detection identifiers in the detection message header, thereby reducing the processing complexity of the intermediate node and improving the message forwarding efficiency.
Drawings
Fig. 1 is a first flowchart of a network performance detection method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a network performance detection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network performance detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network performance detection apparatus according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a data field encapsulation format according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an encapsulation position of a flow following detection packet header in IPv6 according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an encapsulation position of a flow following detection packet header in an SRv6 according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a system according to an embodiment of the present invention.
Detailed Description
The invention is described below with reference to the figures and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The active measurement technology indirectly obtains the network performance by sending parameters such as time delay, jitter and packet loss rate of a special detection message sensing network. The passive measurement technology is a detection technology for measuring network performance based on actual service flow, and the measurement precision is relatively high. However, the measurement performance of the active measurement technology has deviation from the actual network performance, and the problem that the performance of the whole binding link cannot be measured exists; in a network with a large number of path nodes, an IOAM passive measurement technology can cause an original data packet to exceed a maximum transmission unit of a path, so that the data packet is fragmented, the complexity of system processing is increased, and IOAM passive measurement only outputs detection data at a designated end node; the ift passive measurement technology can support end-to-end or node-by-node data reporting, but needs to add a corresponding detection identifier in a packet header, which increases the complexity of node processing and reduces the forwarding efficiency of the packet. In addition, the ift only supports reporting of fixed information such as packet loss, time delay, and flow information, and cannot realize on-demand data reporting. The hybrid measurement technique supports only MPLS pipe-level testing and does not support measurement-by-measurement.
In view of this, an embodiment of the present invention provides a method for detecting network performance, as shown in fig. 1, where the method is applied to a first network node, and includes:
step 101: configuring detection information along with the flow;
step 102: sending the detection information with the stream; wherein the content of the first and second substances,
the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of the data to be sampled.
The embodiment of the invention can realize data sampling in different periods based on the sampling period identification, and provide variable data acquisition granularity; meanwhile, the sampling data identification can be configured according to the requirement, the detection data dimension (sampling data identification) is expanded, the type of reported detection data can be increased, the flexibility of performance detection is enhanced, and the fault location delimitation precision and the accuracy of root cause analysis are improved.
In this embodiment of the present invention, the information about detection with stream further includes: the first indication identifier is used for indicating whether the along-stream detection information comprises the sampling data identifier or not.
In this embodiment of the present invention, the flow following detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used for identifying the direction of the service flow; and the second indication identifier is used for identifying the path node detected along with the flow.
In the embodiment of the invention, the flow following detection information is positioned in a flow following detection message header.
In the embodiment of the invention, the flow-following detection message header is encapsulated in different types of extension headers.
In an embodiment of the present invention, for an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the detection information with flow is used to instruct path nodes other than the first network node to perform hop-by-hop performance detection and report sampled data;
and when the extension header type is a Destination Option Header (DOH), the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
In an embodiment of the present invention, for an SRv6 scenario, when the extension header type is DOH, the detection information with flow 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 of sample data.
In one embodiment of the present invention, the first and second substrates are,
when the DOH is positioned in front of a routing extension header (SRH), the detection information along with the flow is used for indicating other path nodes except the first network node to carry out hop-by-hop performance detection and report of sampled data;
and when the DOH is positioned behind the SRH, the detection information along with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampling data.
In this embodiment of the present invention, the configuring the detection information with stream includes:
receiving the detection configuration information along with the flow sent by a network controller;
configuring the on-stream detection information based on the on-stream detection configuration information.
An embodiment of the present invention further provides a method for detecting network performance, as shown in fig. 2, where the method is applied to a second network node, and includes:
step 201: receiving detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
step 202: and performing performance detection and reporting of sampling data based on the detection information along with the flow.
In the embodiment of the invention, the flow following detection information is positioned in a flow following detection message header; and the flow detection message header is encapsulated in different types of extension headers.
In an embodiment of the present invention, for an IPv6 scenario, the performing performance detection and reporting of sample data based on the detection information with flow includes:
when the type of the extension header is determined to be a hop-by-hop option header HBH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the extension header type is determined to be the destination option header DOH, performing end-to-end performance detection and reporting of the sampled data.
In an embodiment of the present invention, for an SRv6 scenario, the performing performance detection and reporting of sample data based on the detection information with stream includes:
and when the type of the extension head is determined to be DOH, carrying out hop-by-hop or end-to-end performance detection and reporting of sampled data.
In an embodiment of the present invention, when it is determined that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data includes:
when the DOH is determined to be positioned in front of the SRH, carrying out hop-by-hop performance detection and the report of sampling data;
and when the DOH is determined to be behind the SRH, carrying out end-to-end performance detection and reporting of sampling data.
In order to implement the foregoing method embodiment, an embodiment of the present invention further provides a network performance detecting apparatus, as shown in fig. 3, where the apparatus is applied to a first network node, and includes:
a configuration module 301, configured to configure detection information with a flow;
a sending module 302, configured to send detection information with a flow; wherein, the first and the second end of the pipe are connected with each other,
the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of the data to be sampled.
In this embodiment of the present invention, the flow following detection information further includes: the first indication identifier is used for indicating whether the along-stream detection information comprises the sampling data identifier or not.
In this embodiment of the present invention, the flow following detection information further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used for identifying the direction of the service flow; and the second indication identifier is used for identifying the path node detected along with the flow.
In the embodiment of the invention, the flow following detection information is positioned in a flow following detection message header.
In the embodiment of the invention, the flow following detection message header is encapsulated in different types of extension headers.
In an embodiment of the present invention, for an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the detection information with flow is used to instruct path nodes other than the first network node to perform hop-by-hop performance detection and report sampled data;
and when the extension header type is a destination option header DOH, the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
In an embodiment of the present invention, for an SRv6 scenario, when the extension header type is DOH, the detection information with flow 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 of sample data.
In one embodiment of the present invention, the first and second substrates are,
when the DOH is positioned in front of a routing extension header (SRH), the along-flow detection information is used for indicating other path nodes except the first network node to carry out hop-by-hop performance detection and report of sampling data;
and when the DOH is positioned behind the SRH, the detection information along with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampling data.
In this embodiment of the present invention, the configuring module 301 configures the detection information with the flow, including:
receiving the detection configuration information with the flow sent by the network controller;
configuring the on-stream detection information based on the on-stream detection configuration information.
An embodiment of the present invention further provides a network performance detection apparatus, as shown in fig. 4, where the apparatus is applied to a second network node, and includes:
a receiving module 401, configured to receive detection information associated with a stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
a processing module 402, configured to perform performance detection and report of sample data based on the detection information with stream.
In the embodiment of the invention, the flow following detection information is positioned in a flow following detection message header; and the flow detection message header is encapsulated in different types of extension headers.
In an embodiment of the present invention, for an IPv6 scenario, the processing module 402 performs performance detection and reporting of sampled data based on the detection information with flow, where the performance detection and reporting of sampled data include:
when the type of the extension header is determined to be a hop-by-hop option header HBH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the extension header type is determined to be the destination option header DOH, performing end-to-end performance detection and reporting of the sampled data.
In an embodiment of the present invention, for an SRv6 scenario, the processing module 402 performs performance detection and reporting of sample data based on the detection information with stream, including:
and when the type of the extension header is determined to be DOH, carrying out hop-by-hop or end-to-end performance detection and reporting of sampled data.
In an 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:
when the DOH is determined to be positioned in front of the SRH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the DOH is determined to be behind the SRH, carrying out end-to-end performance detection and reporting of sampling data.
The embodiment of the invention also provides a network performance detection device, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program:
configuring and sending detection information along with the flow; wherein the content of the first and second substances,
the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of data to be sampled.
Wherein the detection information with stream further includes: the first indication identifier is used for indicating whether the sampling data identifier is included in the stream following detection information or not.
Wherein the detection information with stream further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used for identifying the direction of the service flow; and the second indication identifier is used for identifying the path node detected along with the flow.
And the flow following detection information is positioned in a flow following detection message header.
Wherein, the flow following detection message header is encapsulated in different types of extension headers.
For an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow following detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampled data;
and when the extension header type is a destination option header DOH, the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
And when the extension header type is DOH for the SRv6 scene, the detection information along with the flow is used for indicating other path nodes except the first network node to carry out hop-by-hop or end-to-end performance detection and report of sampling data.
Wherein the content of the first and second substances,
when the DOH is positioned in front of a routing extension header (SRH), the detection information along with the flow is used for indicating other path nodes except the first network node to carry out hop-by-hop performance detection and report of sampled data;
and when the DOH is positioned behind the SRH, the detection information along with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampling data.
When the information is detected along with the flow, the processor is further configured to execute, when the computer program is run:
receiving the detection configuration information along with the flow sent by a network controller;
configuring the on-stream detection information based on the on-stream detection configuration information.
An embodiment of the present invention further provides a network performance detection apparatus, where the apparatus includes: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program:
receiving detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service flow, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
and performing performance detection and reporting of sampling data based on the detection information along with the flow.
Wherein, the flow following detection information is positioned in a flow following detection message header; and the flow following detection message header is encapsulated in different types of extension headers.
For the IPv6 scenario, when performing performance detection and reporting of sampled data based on the detection information with stream, the processor is further configured to execute, when running the computer program:
when the type of the extension header is determined to be a hop-by-hop option header HBH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the extension header type is determined to be the destination option header DOH, performing end-to-end performance detection and reporting of the sampled data.
For an SRv6 scenario, when performing performance detection and reporting of sampled data based on the detection information with stream, the processor is further configured to execute, when running the computer program:
and when the type of the extension header is determined to be DOH, carrying out hop-by-hop or end-to-end performance detection and reporting of sampled data.
When the type of the extension header is determined to be DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data, and the processor is further configured to execute, when the computer program is run:
when the DOH is determined to be positioned in front of the SRH, carrying out hop-by-hop performance detection and the report of sampling data;
and when the DOH is determined to be behind the SRH, carrying out end-to-end performance detection and reporting of sampling data.
It should be noted that: in the device provided in the foregoing embodiment, when performing network performance detection, only the division of each program module is described as an example, and in practical applications, the processing distribution may be completed by different program modules according to needs, 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 apparatus provided in the above embodiments and the corresponding method embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
In an exemplary embodiment, the embodiment of the present invention also provides a computer-readable storage medium, which may be a Memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disc, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs:
configuring and sending detection information along with the flow; wherein, the first and the second end of the pipe are connected with each other,
the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of the data to be sampled.
Wherein the detection information with stream further includes: the first indication identifier is used for indicating whether the along-stream detection information comprises the sampling data identifier or not.
Wherein the detection information with stream further includes: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used for identifying the direction of the service flow; and the second indication identifier is used for identifying the path node detected along with the flow.
And the flow following detection information is positioned in a flow following detection message header.
Wherein, the flow detection message header is encapsulated in different types of extension headers.
For an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the flow-following detection information is used to instruct other path nodes except the first network node to perform hop-by-hop performance detection and report sampled data;
and when the extension header type is a Destination Option Header (DOH), the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
For the SRv6 scenario, when the extension header type is DOH, the detection information with the flow 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 of sampled data.
Wherein, the first and the second end of the pipe are connected with each other,
when the DOH is positioned in front of a routing extension header (SRH), the along-flow detection information is used for indicating other path nodes except the first network node to carry out hop-by-hop performance detection and report of sampling data;
and when the DOH is positioned behind the SRH, the detection information along with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampling data.
When the configuration detects information along with the flow, the computer program is executed by the processor, and further executes:
receiving the detection configuration information with the flow sent by the network controller;
configuring the on-stream detection information based on the on-stream detection configuration information.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs:
receiving detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
and performing performance detection and reporting of sampling data based on the detection information along with the flow.
Wherein, the detection information of the following flow is positioned in the header of the detection message of the following flow; and the flow detection message header is encapsulated in different types of extension headers.
For the IPv6 scenario, when performing performance detection and reporting of sampled data based on the flow detection information, the computer program, when executed by a processor, further performs:
when the type of the extension head is determined to be a hop-by-hop option header HBH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the extension header type is determined to be the destination option header DOH, performing end-to-end performance detection and reporting of the sampled data.
For an SRv6 scenario, when performing performance detection and reporting of sampled data based on the stream following detection information, the computer program when executed by a processor further performs:
and when the type of the extension header is determined to be DOH, carrying out hop-by-hop or end-to-end performance detection and reporting of sampled data.
When the extended header type is determined to be DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data, and when the computer program is executed by a processor, the computer program further executes:
when the DOH is determined to be positioned in front of the SRH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the DOH is determined to be positioned behind the SRH, carrying out end-to-end performance detection and reporting of sampling data.
The invention is described below in conjunction with the scenario embodiments.
The embodiment provides a stream-following detection technology based on a postcard mode, which can selectively perform end-to-end data reporting or node-by-node data reporting. Meanwhile, compared with the IOAM technology, the format of the data domain detected along with the flow proposed by the 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, the method can provide variable data acquisition granularity and realize data sampling in different periods; meanwhile, the dimension (sampling data identification) of the detection data is expanded, the type of the reported detection data can be increased, and the fault location delimitation precision and the accuracy of root cause analysis can be improved. This embodiment also dyes the data stream periodically based on RFC8321 Alternate marking (Alternate marking) to achieve the measurement of the time delay and the packet loss rate.
The encapsulation format of the flow-following detection data field in this embodiment is as follows:
fig. 5 is a data field encapsulation format of this embodiment, where the information of each field identifier is as follows:
option Type: an 8bit type selection identifier. For HBH or DOH, RFC8200 defines the semantics of the three higher-order bits of the Option Type field. The first two high-order bits specify what operation needs to be taken when the IPv6 processing node cannot identify the type. For alternate marking, the two bits must be set to 00, i.e., the header is processed further by skipping the option. The third higher order bit specifies whether the option data can be changed on the path before reaching the final destination node. For alternate marking, the value of bit must be set to 0, i.e. the option data cannot be changed on the path.
Opt Data Len: the data field length of the type is in bytes.
FlowMonID (traffic flow identification): a 20bit unsigned integer for uniquely identifying the detected traffic stream. This field may be uniquely assigned by the central controller or generated by the source node (access point, first network node) based on an algorithm.
Nodermonid (second indicator): and 20-bit unsigned integers are used for identifying path nodes for implementing detection with the stream.
L: an identifier of a packet loss measurement.
D: an identifier of a single packet delay measurement.
F: and identifying the direction of the service flow.
R: fields are reserved.
P:2bit identification and sampling period identification. For example: 00 denotes a 10s sampling period; 01 denotes a 30s sampling period; 10 denotes a 60s sampling period; and 11 denotes a 300s sampling period.
Trace Type (BitMap) (sample data identification): and the 24-bit identification field is used for indicating the type of information which needs to be collected by the node. Such information may include: detecting a node ID, an incoming interface ID, an outgoing interface ID, a node transmission delay, a time stamp of a node processing data packet and other general data (a node geographical position, a cache queue or battery information). The specific identification information per bit of the identification field is shown in table 1.
TABLE 1 Trace Type identification field information
Figure BDA0003073130540000151
Figure BDA0003073130540000161
Reserved: and reserving a field for later function expansion.
EII (first indicator): whether the identification carries the extended data field identification Trace Type.
The present embodiment may perform hop-by-hop and end-to-end detection, which are as follows:
based on a plurality of different IPv6 extension heads in RFC8200 and appearance sequences thereof, the nodes can realize different message processing modes. Therefore, this embodiment provides a method for implementing hop-by-hop or end-to-end network performance detection based on an extension header encapsulation position, where an intermediate node (except an access node) can select to perform hop-by-hop or end-to-end network performance detection on a service flow only according to the type and position of an extension header.
For the IPv6 scenario, the hop-by-hop or end-to-end detection is implemented by encapsulating the flow-following detection packet header (shown in fig. 5) in different types of extension headers. If the flow-following detection message header is encapsulated in the hop-by-hop option header (HBH), the hop-by-hop detection and data reporting can be realized. If the message header detected along with the flow is encapsulated in a Destination Option Header (DOH), end-to-end detection and data reporting can be realized. The two modes of header encapsulation positions are shown in fig. 6.
For the SRv6 scene, the message header is packaged in the DOH along with the flow detection, and the hop-by-hop and end-to-end detection reporting is realized through the position of the DOH in the message. If the DOH is placed in front of a Routing extension Header (SRH), hop-by-hop data measurement and reporting can be realized; if DOH is placed after SRH, end-to-end data measurement and reporting can be achieved. The two modes of header encapsulation positions are shown in fig. 7.
The system block diagram of the present embodiment can be seen in fig. 8. The system may include: the device comprises an analysis module, a control module, an acquisition module and network equipment. The analysis module, the control module and the acquisition module can be positioned in a network controller; the network equipment is each network node on the detection path. And the modules perform signaling and data interaction through communication interfaces. The interface data protocol can adopt NETCONF, CLI, gRPC, TCP, UDP and the like. The specific functions of each module are as follows:
an analysis module: and the system is responsible for cleaning, analyzing and calculating the statistical data of each network device sent by the acquisition module.
A control module: and generating flow detection configuration information according to a configuration strategy (generated based on a performance detection purpose) and sending the flow detection configuration information to each network device in the detection domain. And meanwhile, adjusting the configuration parameters of the network equipment according to the analysis result of the analysis module.
An acquisition module: and the device is responsible for collecting the measurement data and information reported by each network device.
A network device: the system comprises a configuration module, a measurement module and a sending, receiving and processing module. The configuration module is responsible for receiving and storing the configuration strategy issued by the control module, generating a configuration command according to the configuration strategy and issuing the configuration command to the sending, receiving and processing module. And the measuring module is responsible for measuring service flow performance parameters such as timestamps, message numbers, byte numbers and the like and transmitting the service flow performance parameters to the acquisition module. The sending module, the receiving module and the processing module are respectively responsible for sending, receiving and forwarding the service flow.
For packet loss and delay measurement, they can be realized based on L and D bits in fig. 5, respectively, and the measurement principle can be referred to as the alternate dyeing measurement principle in RFC 8321. The time delay measurement can be realized in two ways: single labeling and double labeling. Wherein, the first and the second end of the pipe are connected with each other,
the single marking method realizes packet loss and time delay measurement simultaneously through the L bit, and the D bit is set to be 0 and is not processed in the transmission process.
The double-marking method calculates the packet loss information through L bit, and D bit is specially used for time delay measurement. The method alternately dyes the data stream through L bit, identifies each period, and then performs delay measurement by using D bit.
In the practical application process, the access node of the detection domain configures the detection information of the flow based on the detection configuration information of the flow sent by the network controller and sends the detection information to other subsequent nodes, the other nodes identify the relevant identifications in the detection information of the flow, carry out hop-by-hop or end-to-end performance detection, and the corresponding nodes collect the corresponding types of data based on the correspondingly configured period and report the data to the network controller.
The method can increase the types of the reported detection data according to the needs, and is beneficial to improving the fault positioning delimitation precision and the root cause analysis accuracy; meanwhile, the detection data can be reported according to the requirement, and the flexibility of performance detection is enhanced.
The data field NodeMonID field of this embodiment is used to identify node information, and is globally distributed by a network controller, and simultaneously, the FlowMonID field is combined to uniquely identify a service flow, so that an intelligent selection strategy for detecting a data flow can be realized.
In addition, the embodiment does not need to add hop-by-hop and end-to-end detection identifiers in the detection message header, thereby reducing the processing complexity of the intermediate node and improving the message forwarding efficiency.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (18)

1. A method for detecting network performance is applied to a first network node, and comprises the following steps:
configuring and sending detection information along with the flow; wherein the content of the first and second substances,
the stream following detection information comprises: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of the data to be sampled.
2. The method of claim 1, wherein the detecting information with the flow further comprises: the first indication identifier is used for indicating whether the sampling data identifier is included in the stream following detection information or not.
3. The method of claim 1 or 2, wherein the detection with flow information further comprises: a service flow direction identifier and a second indication identifier; the service flow direction identifier is used for identifying the direction of the service flow; and the second indication identifier is used for identifying the path node detected along with the flow.
4. The method of claim 1, wherein the flow detection information is located in a flow detection header.
5. The method of claim 4, wherein the flow detection headers are encapsulated in different types of extension headers.
6. The method according to claim 5, wherein for an IPv6 scenario, when the extension header type is a hop-by-hop option header HBH, the detection information with flow is used to instruct path nodes other than the first network node to perform hop-by-hop performance detection and report of sample data;
and when the extension header type is a Destination Option Header (DOH), the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
7. The method of claim 5, wherein for an SRv6 scenario, when the extension header type is DOH, the detection information with flow 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 of sampled data.
8. The method of claim 7,
when the DOH is positioned in front of a routing extension header (SRH), the along-flow detection information is used for indicating other path nodes except the first network node to carry out hop-by-hop performance detection and report of sampling data;
and when the DOH is positioned behind the SRH, the detection information with the flow is used for indicating other path nodes except the first network node to carry out end-to-end performance detection and report of sampled data.
9. The method of claim 1, wherein configuring the detection information with the flow comprises:
receiving the detection configuration information along with the flow sent by a network controller;
configuring the on-stream detection information based on the on-stream detection configuration information.
10. A method for detecting network performance, the method being applied to a second network node and comprising:
receiving detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
and performing performance detection and reporting of sampling data based on the detection information along with the flow.
11. The method of claim 10, wherein the flow detection information is located in a flow detection header; and the flow following detection message header is encapsulated in different types of extension headers.
12. The method according to claim 11, wherein for IPv6 scenarios, the performing performance detection and reporting of sample data based on the detection information with flow includes:
when the type of the extension header is determined to be a hop-by-hop option header HBH, carrying out hop-by-hop performance detection and reporting of sampling data;
and when the extension header type is determined to be the destination option header DOH, performing end-to-end performance detection and reporting of the sampled data.
13. The method of claim 11, wherein for an SRv6 scenario, the performing performance detection and reporting of sample data based on the flow detection information comprises:
and when the type of the extension header is determined to be DOH, carrying out hop-by-hop or end-to-end performance detection and reporting of sampled data.
14. The method of claim 13, wherein when it is determined that the extension header type is DOH, performing hop-by-hop or end-to-end performance detection and reporting of sampled data comprises:
when the DOH is determined to be positioned in front of the SRH, carrying out hop-by-hop performance detection and the report of sampling data;
and when the DOH is determined to be behind the SRH, carrying out end-to-end performance detection and reporting of sampling data.
15. A network performance detection apparatus, applied to a first network node, comprising:
the configuration module is used for configuring the detection information along with the flow;
the sending module is used for sending the detection information along with the flow; wherein the content of the first and second substances,
the stream following detection information comprises: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; and the sampling data identifier is used for indicating the type of data to be sampled.
16. A network performance detection apparatus, applied to a second network node, comprising:
the receiving module is used for receiving the detection information along with the stream; wherein the detection information with stream includes: the method comprises the steps of identifying a service stream, a sampling period and sampling data; the service flow identifier is used for uniquely identifying the detected service flow; the sampling period identifier is used for indicating the sampling period during detection; the sampling data identifier is used for indicating the type of data to be sampled;
and the processing module is used for carrying out performance detection and reporting of sampling data based on the detection information along with the flow.
17. An apparatus for network performance detection, the apparatus comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 9, or to perform the steps of the method of any one of claims 10 to 14, when the computer program is run.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9 or carries out the steps of the method of any one of claims 10 to 14.
CN202110544631.XA 2021-05-19 2021-05-19 Network performance detection method and device and computer readable storage medium Pending CN115460118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110544631.XA CN115460118A (en) 2021-05-19 2021-05-19 Network performance detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110544631.XA CN115460118A (en) 2021-05-19 2021-05-19 Network performance detection method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115460118A true CN115460118A (en) 2022-12-09

Family

ID=84294694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110544631.XA Pending CN115460118A (en) 2021-05-19 2021-05-19 Network performance detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115460118A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117728927A (en) * 2024-02-18 2024-03-19 南京风启科技有限公司 Variable-length message processing time delay detection method based on domain identification

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160020968A1 (en) * 2014-07-17 2016-01-21 Cellos Software Ltd Method For Calculating Statistic Data of Traffic Flows in Data Network And Probe Thereof
CN107302450A (en) * 2017-06-13 2017-10-27 国网冀北电力有限公司信息通信分公司 A kind of data acquisition session variation and device
CN107786440A (en) * 2016-08-26 2018-03-09 华为技术有限公司 A kind of method and device of data message forwarding
CN109525451A (en) * 2018-09-13 2019-03-26 中兴通讯股份有限公司 A kind of implementation method, device, the network equipment and the controller of MPLS network detection
CN110572293A (en) * 2018-06-06 2019-12-13 华为技术有限公司 Data message detection method, equipment and system
CN111294112A (en) * 2018-12-06 2020-06-16 华为技术有限公司 Data acquisition method and related equipment
CN112714034A (en) * 2019-10-26 2021-04-27 华为技术有限公司 Method and device for processing multicast message

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160020968A1 (en) * 2014-07-17 2016-01-21 Cellos Software Ltd Method For Calculating Statistic Data of Traffic Flows in Data Network And Probe Thereof
CN107786440A (en) * 2016-08-26 2018-03-09 华为技术有限公司 A kind of method and device of data message forwarding
CN107302450A (en) * 2017-06-13 2017-10-27 国网冀北电力有限公司信息通信分公司 A kind of data acquisition session variation and device
CN110572293A (en) * 2018-06-06 2019-12-13 华为技术有限公司 Data message detection method, equipment and system
CN109525451A (en) * 2018-09-13 2019-03-26 中兴通讯股份有限公司 A kind of implementation method, device, the network equipment and the controller of MPLS network detection
CN111294112A (en) * 2018-12-06 2020-06-16 华为技术有限公司 Data acquisition method and related equipment
CN112714034A (en) * 2019-10-26 2021-04-27 华为技术有限公司 Method and device for processing multicast message

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117728927A (en) * 2024-02-18 2024-03-19 南京风启科技有限公司 Variable-length message processing time delay detection method based on domain identification
CN117728927B (en) * 2024-02-18 2024-05-10 南京风启科技有限公司 Variable-length message processing time delay detection method based on domain identification

Similar Documents

Publication Publication Date Title
US20220086073A1 (en) Data packet detection method, device, and system
CN111953604B (en) Method and device for providing business service for business flow
CN101729391B (en) Method, node and system for acquiring link aggregation group information
WO2018057192A1 (en) Techniques to use a network service header to monitor quality of service
CN112866075A (en) In-band network telemetering method, system and related device for Overlay network
CN113328902B (en) Network performance detection method and device and network equipment
CN110971331B (en) Hop-by-hop time delay measurement method and system
CN105024985A (en) Message processing method and apparatus
CN112994961A (en) Transmission quality detection method, device, system and storage medium
CN113709043B (en) Path tracking method and device
CN110365553B (en) IPv6 network flow monitoring method and system based on SDN
CN112866042A (en) Network quality detection method and device, computer equipment and computer readable medium
WO2021190009A1 (en) Performance measurement method and apparatus, device, and storage medium
CN105515816B (en) Processing method and device for detecting hierarchical information
CN113973063A (en) In-band measurement method, device and node
CN104954165A (en) Link analysis method, device and system
CN113949667A (en) Message processing method and node equipment in segmented network
CN115460118A (en) Network performance detection method and device and computer readable storage medium
CN112469067A (en) Network batch service flow monitoring method and system
CN116527592A (en) Application layer stream following detection method and device based on APN (access point) and related equipment
KR20230005369A (en) IOAM methods and electronics
CN117157952A (en) Method and device for issuing stream-following detection configuration through BGP
CN110933002B (en) Method and device for realizing switching chip of MPLS in-band detection OAM
CN116996439B (en) SDN-based efficient routing addressing method and system
CN114363203A (en) Method for measuring network data, related device and equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination