Path monitoring method and device, electronic equipment, chip, storage medium and computer program product
By receiving and analyzing node information on a centralized management and control platform, and combining end-to-end and hop-by-hop detection modes, the problems of multi-path latency and packet loss statistics in message-by-message container networks are solved, achieving efficient network management and operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA MOBILE COMM LTD RES INST
- Filing Date
- 2025-01-20
- Publication Date
- 2026-07-21
AI Technical Summary
In message-by-message container network scenarios, it is impossible to effectively perform latency and packet loss statistics for multi-path service flows, leading to difficulties in network management and maintenance.
By receiving information reported by nodes on the centralized management and control platform, analyzing statistical data of node ports and colored packets, packet loss monitoring of multiple paths is achieved. Detection information is encapsulated in the detection flow for latency and packet loss measurement. End-to-end and hop-by-hop detection modes are adopted to accurately locate network fault points.
It enables high-precision packet loss and latency monitoring of multi-path networks, allowing for timely detection of network problems, reducing the processing pressure on centralized management and control platforms, and improving network management and maintenance efficiency.
Smart Images

Figure CN122437795A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data service technology, specifically to a path monitoring method, path monitoring device, electronic device, chip, storage medium, and computer program product. Background Technology
[0002] In a per-packet container network scenario, a service flow can take different paths and pass through multiple devices through the spraying of packet containers (PCTC). Related technologies cannot perform latency and packet loss statistics for multiple paths of service flows, and cannot manage and maintain the network. Summary of the Invention
[0003] To address the technical issues of latency and packet loss statistics in multi-path business flows, embodiments of this application provide a path monitoring method, a path monitoring device, an electronic device, a chip, a storage medium, and a computer program product.
[0004] The path monitoring method provided in this application embodiment is applied to a centralized management and control platform, including:
[0005] Receive first information reported by at least two nodes; wherein, the first information includes: node port information and statistical information of the first colored packets; the node port information represents the path to which the node port belongs; the statistical information of the first colored packets includes: the number of the first colored packets; the first colored packets are packets used for packet loss measurement;
[0006] The first information is analyzed to enable packet loss monitoring of one or more paths.
[0007] The path monitoring method provided in this application embodiment is applied to a first node and includes:
[0008] The detection information is encapsulated in the message of the first detection stream; the detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number;
[0009] The system reports the first information corresponding to the first detection flow to the centralized management platform. The first information includes: node port information and statistical information of the first stained packet. The node port information represents the path to which the node port belongs. The statistical information of the first stained packet includes: the number of first stained packets. The first stained packet is a packet used for packet loss measurement.
[0010] The message of the first detection stream, which encapsulates the detection information, is sent to the intermediate node.
[0011] The path monitoring method provided in this application embodiment is applied to intermediate nodes and includes:
[0012] Receive a message encapsulated with detection information; the detection information includes one or more of the following: the flow identifier of the service under test, the packet loss measurement coloring identifier, the delay measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number;
[0013] The system reports first information to the centralized management platform. This first information includes one or more of the following: node port information, statistical information of the first stained packet, and statistical information of the second stained packet. The node port information represents the path to which the node port belongs. The statistical information of the first stained packet includes the number of first stained packets; the first stained packet is a packet used for packet loss measurement. The statistical information of the second stained packet includes the timestamp information of the second stained packet and the sequence number of the second stained packet; the second stained packet is a packet used for latency measurement.
[0014] The message containing the encapsulated detection information is sent to the tail node.
[0015] The path monitoring device provided in this application embodiment is applied to a centralized management and control platform, including:
[0016] First monitoring unit: used to receive first information reported by at least two nodes; wherein, the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement;
[0017] The first monitoring unit is further configured to analyze the first information in order to monitor packet loss on one or more paths.
[0018] The path monitoring device provided in this application embodiment is applied to a first node and includes:
[0019] Encapsulation unit: Encapsulates the detection information in the packets of the first detection stream; the detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number;
[0020] First transmission unit: used to report first information corresponding to the first detection stream to the centralized management and control platform; the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement;
[0021] The first transmission unit is further configured to send the message of the first detection stream encapsulated with detection information to the intermediate node.
[0022] The path monitoring device provided in this application embodiment is applied to intermediate nodes and includes:
[0023] The second transmission unit is used to receive messages encapsulated with detection information. The detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the delay measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number.
[0024] The second transmission unit is further configured to report first information to the centralized management and control platform; the first information includes one or more of the following: node port information, statistical information of the first colored message, and statistical information of the second colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement; the statistical information of the second colored message includes: the timestamp information of the second colored message and the sequence number of the second colored message; the second colored message is a message used for delay measurement.
[0025] The electronic device provided in this application includes a processor and a memory. The memory is used to store computer programs, and the processor is used to call and run the computer programs stored in the memory to execute any path monitoring method provided in this application.
[0026] The chip provided in this application includes a processor for calling and running a computer program from a memory, causing a device equipped with the chip to execute any of the path monitoring methods provided in this application.
[0027] The storage medium provided in this application embodiment is used to store a computer program, which causes a computer to execute any path monitoring method provided in this application embodiment.
[0028] The computer program product provided in this application includes a computer program that, when executed by a processor, implements any of the path monitoring methods provided in this application.
[0029] The path monitoring method provided in this application analyzes the node port information and statistical information of the first colored packets reported by multiple nodes on the service flow transmission path to perform packet loss monitoring on one or more paths, thereby realizing multi-path packet loss monitoring and providing assistance for network management and operation. Attached Figure Description
[0030] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0031] Figure 1 Schematic diagram of the implementation process of the path monitoring method provided in the embodiments of this application Figure 1 ;
[0032] Figure 2 Schematic diagram of the implementation process of the path monitoring method provided in the embodiments of this application Figure 2 ;
[0033] Figure 3 Schematic diagram of the implementation process of the path monitoring method provided in the embodiments of this application Figure 3 ;
[0034] Figure 4 This is a schematic diagram of the GSE network architecture provided in an embodiment of this application;
[0035] Figure 5 This is a schematic diagram of the structure of the detection head provided in the embodiments of this application;
[0036] Figure 6 This is a schematic diagram of path monitoring under end-to-end detection mode provided in an embodiment of this application;
[0037] Figure 7 This is a schematic diagram of path monitoring under the hop-by-hop detection mode provided in the embodiments of this application;
[0038] Figure 8 This is a schematic diagram of the path monitoring device 800 provided in an embodiment of this application;
[0039] Figure 9 This is a schematic diagram of the path monitoring device 900 provided in the embodiments of this application;
[0040] Figure 10 This is a schematic diagram of the path monitoring device 1000 provided in the embodiments of this application;
[0041] Figure 11 A schematic structural diagram of an electronic device provided in the embodiments of this application;
[0042] Figure 12 This is a schematic structural diagram of the chip provided in an embodiment of this application. Detailed Implementation
[0043] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0044] It should be noted that, in the embodiments of this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, in the embodiments of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0045] In the description of the embodiments of this application, the term "correspondence" may indicate that there is a direct or indirect correspondence between two things, or that there is an association between two things, or that there is a relationship of instruction and being instructed, configuration and being configured, etc.
[0046] Figure 1 Schematic diagram of the implementation process of the path monitoring method provided in the embodiments of this application Figure 1 ,like Figure 1 As shown, this embodiment provides a path monitoring method applied to a centralized management and control platform. The method includes the following steps:
[0047] Step 101: Receive first information reported by at least two nodes; wherein, the first information includes: node information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement.
[0048] The path monitoring method provided in this application embodiment can be applied to the Global Scheduled Ethernet (GSE) network scenario, and the centralized management and control platform is used to realize the operation and maintenance management of the network.
[0049] In this embodiment, a path includes a head node, intermediate nodes, and a tail node. Each node includes an ingress port and an egress port. A node may have one or more ingress ports and one or more egress ports. A complete path includes the ingress and egress ports of the head node, the ingress and egress ports of the intermediate nodes, and the ingress and egress ports of the tail node.
[0050] In this embodiment, the first colored message is a message used for packet loss measurement, and it can be identified by the fields in the detection header of the message. The number of first colored messages routed to each port of each detection node on the path is reported to the centralized management and control platform for packet loss monitoring.
[0051] Step 102: Analyze the first information to achieve packet loss monitoring for one or more paths.
[0052] In this embodiment of the application, after receiving the first information reported by the node, the centralized management and control platform performs packet loss monitoring on each path based on the first information reported by the nodes on each path. Specifically, the centralized management and control platform determines the number of first-colored packets routed by the nodes on the path based on the statistical information of the first-colored packets reported by the nodes on the path, and further calculates the packet loss rate between adjacent nodes or between the first node and the last node.
[0053] Based on this, in an optional embodiment of this application, the step of analyzing the first information to achieve packet loss monitoring of one or more paths in the network includes:
[0054] For any one of the one or more paths, the number of first-colored packets routed by the nodes on the path is determined based on the statistical information of the first-colored packets reported by the nodes on the path.
[0055] The packet loss rate of the path is determined based on the number of first-colored packets routed to the nodes along the path.
[0056] In this embodiment, two detection modes are provided: an end-to-end detection mode, which monitors the packet loss rate between the head node and the tail node on the path; and a hop-by-hop detection mode, which monitors the packet loss rate between each node on the transmission path. In this embodiment, the end-to-end detection mode is a low-precision packet loss monitoring mode, and the hop-by-hop detection mode is a high-precision packet loss monitoring mode. In practical applications, low-precision packet loss detection can be performed on the path first. If the packet loss rate between the head node and the tail node on the path is greater than a preset threshold, then the high-precision hop-by-hop detection mode can be used to locate the fault point in the network, i.e., the node causing the high packet loss rate.
[0057] Based on this, in an optional embodiment of this application, determining the packet loss rate of the path based on the number of first-colored packets routed to nodes on the path includes:
[0058] The packet loss rate between the head and tail nodes of the path is determined based on the number of first-colored packets routed at the head and tail nodes of the path; or,
[0059] The packet loss rate between the head node, intermediate node, and tail node of the path is determined based on the number of first-colored packets routed at the head node, intermediate node, and tail node of the path.
[0060] In this embodiment of the application, determining the packet loss rate between the head node, intermediate node, and tail node of the path includes: determining the packet loss rate from the head node inlet port to the head node outlet port, the packet loss rate from the head node outlet port to the intermediate node inlet port, the packet loss rate from the intermediate node inlet port to the intermediate node outlet port, the packet loss rate from the intermediate node outlet port to the tail node inlet port, and the packet loss rate from the tail node inlet port to the tail node outlet port, etc.
[0061] In this embodiment, the latency of multiple paths can also be monitored. This is achieved by analyzing the statistical information of the second-colored packets reported by each node along the path, thus enabling latency monitoring of one or more paths. The statistical information of the second-colored packets includes: the timestamp information of the second-colored packets and the sequence number of the second-colored packets. Here, the timestamp information of the second-colored packets includes the timestamp information of a node receiving and / or sending the second-colored packets, i.e., the timestamp information of the second-colored packets passing through the node's ingress port and / or egress port; the sequence number of the second-colored packets is used to distinguish different second-colored packets, enabling detailed latency statistics for the second-colored packets.
[0062] Based on this, in an optional embodiment of this application, the first information further includes: statistical information of the second stained message; the statistical information of the second stained message includes: timestamp information of the second stained message and sequence number of the second stained message; the second stained message is a message used for delay measurement; the method further includes:
[0063] The first information is analyzed to enable latency monitoring of the one or more paths.
[0064] In this embodiment, two detection modes are provided: an end-to-end detection mode, which monitors the packet loss rate between the head node and the tail node on the path; and a hop-by-hop detection mode, which monitors the packet loss rate between each node on the transmission path. In this embodiment, the end-to-end detection mode provides low-precision latency monitoring, while the hop-by-hop detection mode provides high-precision latency monitoring. In practical applications, low-precision latency detection can be performed on the path first. If the latency between the head node and the tail node of the path exceeds a preset threshold, then the high-precision hop-by-hop detection mode can be used to locate the fault point in the network, i.e., the node causing the high latency.
[0065] Based on this, in an optional embodiment of this application, the step of analyzing the first information to achieve latency monitoring of the one or more paths includes:
[0066] For any one of the one or more paths, the time delay between the head node and the tail node of the path is determined based on the statistical information of the second-colored packets of the head node and tail node of the path; or,
[0067] Based on the statistical information of the second-colored messages reported by the head node, intermediate node and tail node of the target path, the time delay between the head node, intermediate node and tail node of the target path is determined.
[0068] In this embodiment of the application, determining the time delay between the head node, intermediate node, and tail node of the path includes: determining the time delay from the head node inlet port to the head node outlet port, the time delay from the head node outlet port to the intermediate node inlet port, the time delay from the intermediate node inlet port to the intermediate node outlet port, the time delay from the intermediate node outlet port to the tail node inlet port, and the time delay from the tail node inlet port to the tail node outlet port, etc.
[0069] In this embodiment of the application, in order to reduce the processing pressure of the centralized management and control platform, for latency detection, only the first message of the detection flow entering the new path is stained with latency, and each node only needs to report the statistical information of the second stained message of the latency-stained message.
[0070] Based on this, in one optional embodiment of this application, the second dyeing message is the first message of the detection flow entering the new path within the current detection cycle.
[0071] For example, detection flow 1 contains four data packets, namely data packet 1, data packet 2, data packet 3 and data packet 4; data packet 1 and data packet 2 enter path 1, which is the new path for the detection flow. Data packet 1 enters path 1 before data packet 2, so data packet 1 is colored for delay measurement, but data packet 2 is not colored for delay measurement; data packet 3 and data packet 4 enter path 2, which is the new path for the detection flow. Data packet 3 enters path 2 before data packet 4, so data packet 3 is colored for delay measurement, but data packet 4 is not colored for delay measurement.
[0072] Figure 2 Schematic diagram of the implementation process of the path monitoring method provided in the embodiments of this application Figure 2 ,like Figure 2 As shown, this embodiment provides a path monitoring method applied to a first node, the method comprising the following steps:
[0073] Step 201: Encapsulate the detection information in the message of the first detection stream; the detection information includes one or more of the following: the flow identifier of the service under test, the packet loss measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number.
[0074] In this embodiment, the first node can serve as the head node on the path, encapsulating a detection header into a specific packet based on the five-tuple information of the detection flow. In this embodiment, the five-tuple information includes: source IP address, destination IP address, source port number, destination port number, and transport layer protocol.
[0075] The path monitoring method provided in this application embodiment can be applied to a GSE network. The first node can be a Global Scheduling Processor (GSP), and the first node encapsulates the detection information after the GSE header.
[0076] In this embodiment of the application, within a detection cycle, the packets in the detection stream are colored the same, while the packets in adjacent detection cycles are colored differently, which is used to distinguish the detection packets in different cycles.
[0077] In this embodiment, the detection mode includes two modes: an end-to-end detection mode, which monitors the packet loss rate between the head node and the tail node on the path; and a hop-by-hop detection mode, which monitors the packet loss rate between each node on the transmission path. In this embodiment, the end-to-end detection mode is a low-precision monitoring mode, and the hop-by-hop detection mode is a high-precision monitoring mode. In practical applications, the path can be first detected with low precision. If the packet loss rate between the head node and the tail node of the path is greater than a preset threshold, then the high-precision hop-by-hop detection mode can be used to locate the fault point in the network, i.e., the node causing the high packet loss rate.
[0078] In this embodiment of the application, the detection mode corresponding to the detection stream can be pre-configured at the first node or configured through a centralized management and control platform.
[0079] In this embodiment, the service flow direction identifier includes forward and reverse; when the service flow direction identifier is reverse, the tail node on the path needs to trigger reverse flow detection based on the forward detection flow quintuple information.
[0080] In this embodiment of the application, the flow identifier of the tested service is unique within the device, and when combined with the Source General Service Point Identifier (SGSP-ID), it is globally unique within the detection domain.
[0081] Step 202: Report the first information corresponding to the first detection flow to the centralized management and control platform; the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement.
[0082] In this embodiment of the application, when the detection mode of the detection flow is end-to-end detection mode, the first node only reports the first information corresponding to the first detection flow of the inbound port route; when the detection mode of the detection flow is hop-by-hop detection mode, the first node reports the first information corresponding to the first detection flow of the inbound port route and the first information corresponding to the first detection flow of the outbound port route.
[0083] In this embodiment of the application, path delay monitoring can also be implemented. Delay coloring is applied to multiple packets in the detection flow to cover multiple paths traversed by the detection flow. The delay-colored packets are numbered so that intermediate nodes can distinguish the delay-colored packets for the tail node.
[0084] Based on this, in an optional embodiment of this application, if the message is the first message of the first detection flow entering the new path within the current detection cycle, the detection information of the message further includes: a delay measurement coloring identifier; the first information further includes: statistical information of the second coloring message; the statistical information of the second coloring message includes: the timestamp information of the second coloring message and the sequence number of the second coloring message; the second coloring message is a message used for delay measurement.
[0085] Step 203: Send the message of the first detection stream, which encapsulates the detection information, to the intermediate node.
[0086] The first node distributes the first detection stream to one or more intermediate nodes on the path through load balancing.
[0087] In this embodiment of the application, the first node can also be the tail node on the path. When it receives the second detection stream containing the detection information sent by the intermediate node on the path, it reports the first information to the centralized management and control platform according to the detection information.
[0088] Based on this, in one optional embodiment of this application, a message of a second detection stream encapsulated with detection information is received; the detection information includes one or more of the following: the flow identifier of the service under test, the packet loss measurement coloring identifier, the delay measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number;
[0089] The system reports the first information corresponding to the second detection flow to the centralized management platform. The first information includes one or more of the following: node port information, statistical information of the first stained packet, and statistical information of the second stained packet. The node port information represents the path to which the node port belongs. The statistical information of the first stained packet includes the number of first stained packets. The first stained packet is a packet used for packet loss measurement. The statistical information of the second stained packet includes the timestamp information of the second stained packet and the sequence number of the second stained packet. The second stained packet is a packet used for latency measurement.
[0090] In this embodiment, when the detection flow's detection mode is end-to-end detection mode, the first node only reports the first information corresponding to the first detection flow of the outgoing port route; when the detection flow's detection mode is hop-by-hop detection mode, the first node reports the first information corresponding to the second detection flow of the incoming port route and the first information corresponding to the second detection flow of the outgoing port route. It can be understood that when the first node is the head node on the path, the outgoing port is the port connected to the network side; when the first node is the tail node on the path, the outgoing port is the port connected to the user side.
[0091] Figure 3 Schematic diagram of the implementation process of the path monitoring method provided in the embodiments of this application Figure 3 ,like Figure 3 As shown, this embodiment provides a path monitoring method applied to intermediate nodes, the method including the following steps:
[0092] Step 301: Receive a message encapsulated with detection information; the detection information includes one or more of the following: flow identifier of the service under test, packet loss measurement coloring identifier, delay measurement coloring identifier, service flow direction identifier, coloring period, detection mode, and sequence number.
[0093] In this embodiment of the application, the path monitoring method can be applied to the GSE network, and the intermediate node can be the Global Scheduling Fabirc (GSF).
[0094] In this embodiment, the detection mode includes two modes: an end-to-end detection mode, which monitors the packet loss rate and / or latency between the head node and the tail node on the path; and a hop-by-hop detection mode, which monitors the packet loss rate and / or latency between each node on the transmission path. In this embodiment, the end-to-end detection mode is a low-precision monitoring mode, while the hop-by-hop detection mode is a high-precision monitoring mode. In practical applications, a low-precision detection of the path can be performed first. If the packet loss rate and / or latency between the head node and the tail node of the path exceeds a preset threshold, then the high-precision hop-by-hop detection mode is used to locate the fault point in the network, i.e., the node causing the high packet loss rate.
[0095] In this embodiment, the service flow direction identifier includes forward and reverse; when the service flow direction identifier is reverse, the tail node on the path needs to trigger reverse flow detection based on the forward detection flow quintuple information.
[0096] In this embodiment of the application, the flow identifier of the tested service is unique within the device, and when combined with the SGSP-ID, it is globally unique within the detection domain.
[0097] In this embodiment of the application, the serial number is used to identify the number of the delay measurement coloring message, and is used by the node to distinguish the delay measurement coloring messages on different paths.
[0098] Step 302: Report the first information to the centralized management and control platform; the first information includes one or more of the following: node port information, statistical information of the first colored message, and statistical information of the second colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement; the statistical information of the second colored message includes: the timestamp information of the second colored message and the sequence number of the second colored message; the second colored message is a message used for delay measurement.
[0099] In this embodiment, the intermediate stage reports the first information according to the detection mode. When the detection mode is end-to-end mode, the intermediate node does not need to report the first information. When the detection mode is hop-by-hop detection mode, the intermediate node reports the first information. Here, the intermediate node needs to report the first information of the detection flow of the intermediate node's ingress port and egress port respectively.
[0100] Step 303: Send the message containing the detection information to the tail node.
[0101] The path monitoring method provided in this application embodiment can be applied to GSE network scenarios, see reference. Figure 4 , Figure 4 This is a schematic diagram of the GSE network architecture provided in the embodiments of this application, such as... Figure 4 As shown, GSP1 is the head node, GSF1, GSF2, and GSF3 are intermediate nodes, and GSP2 is the tail node. GSP1 encapsulates the message with a GSE visualization header IOAM based on the five-tuple information, placing the detection information before the GSE header. The detection flow is then forwarded through a message container. Specifically, data packets 1 and 2 of detection flow 1 are forwarded in message container 1 via GSF1; data packets 3 and 1 of detection flow 2 are forwarded in message container 2 via GSF2; and data packets 2 and 3 of detection flow 2 are forwarded in message container 3 via GSF3. GSP2 decapsulates the message and restores the original message. GSP1, GSF1, GSF2, GSF3, and GSP2 collect the first information corresponding to the message by matching the detection information and report this first information to the centralized management platform.
[0102] The end-to-end detection mode detects the packet loss rate and / or latency from the ingress port of GSP1 to the egress port of GSP2. The GSP node performs statistics based on the five-tuple information of the detection flow, encapsulates the corresponding detection information in the GSE header of the packet, and selects multiple packets for latency coloring within a detection period i to cover multiple paths. Simultaneously, the multiple latency-colored packets within a period need to be numbered so that subsequent packets can be identified by sequence number at the destination GSP.
[0103] The hop-by-hop detection mode detects the packet loss rate and / or latency between the ingress port of GSP1 and the egress port of GSP1, the egress port of GSP1 and the ingress port of GSF1, the egress port of GSP1 and the ingress port of GSF2, the egress port of GSP1 and the ingress port of GSF3, the egress port of GSF1 and the ingress port of GSP2, the egress port of GSF2 and the ingress port of GSP2, and the egress port of GSF3 and the ingress port of GSP2.
[0104] refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of the detection head provided in the embodiments of this application, as shown below. Figure 5As shown, the meanings of each field are as follows: Destination General ServicePoint Identifier + Destination Port (DGSP-ID + Dport): Indicates the destination's global service point identifier plus the destination port number. DGSP-ID uniquely identifies a service point, while Dport specifies the specific application or service on that service point; Priority (Pri): Indicates the priority level of packet processing, ensuring that critical data receives better service quality; Start (S): Indicates the first packet in the data flow; End (E): Indicates the last packet in the data flow; Type: Distinguishes between different types of packets or messages, such as control information and actual data; Source General ServicePoint Identifier (SGSP-ID): Indicates the sender's service point identifier; Container Identifier (container-ID): Indicates a packet sent from a specific container; Reset (Re): Indicates the retransmission of previously lost or corrupted packets; Reserved (RSV): A field reserved for future expansion; Flow Monitoring Identifier (Flow... Monitor Identifier (FlowMonID): Used to identify the flow identifier of the service under test. It is unique within the device and, when combined with SGSP-ID, is globally unique within the detection domain. Packet Loss Measurement Coloring Flag (L Flag): Used to indicate that the data packet is a packet loss measurement data packet. Delay Measurement Coloring Flag (DF Flag): Used to indicate that the data packet is a delay measurement data packet. When D Flag is set to 1, the timestamp information of the packet is required to be reported to the management platform. Header Type Indication (HTI): Used to identify the type of the extension header. The values are as follows: 0: reserved, 1-3: extended, and the extended type defined in this application embodiment is 3; Business flow direction identifier F Flag: used to indicate the business flow direction. When set to 1, it indicates that reverse business flow self-learning is required. The tail node triggers reverse flow detection based on the forward flow information quintuple; Coloring period (Period, P): used to indicate the coloring period. The values and the periods represented are as follows: 000: 1s, 001: 10s, 010: 30s, 011: 60s, 100: 300s, others: reserved; Detection mode T: used to identify the detection mode: 00: reserved, 01: end-to-end detection, 10: hop-by-hop detection, 11: reserved; Sequence number (SN): used to indicate the corresponding sequence number of the selected delay-colored packet within the same period; Reserved field (Reserved, R): used for extended use.
[0105] refer to Figure 6 , Figure 6 This is a schematic diagram of path monitoring under end-to-end detection mode provided in the embodiments of this application, such as... Figure 6 As shown, GSP1 sets all packet loss markers within period i to 0, and all packet loss markers within period i+1 to 1; it performs delay marking on the first three packets within period i, and on the first three packets within period i+1; packet ① goes through GSF1, packet ② goes through GSF2, and packet ③ goes through GSF3. The three delay-marked packets can cover three paths, and finally, the status of each link can be analyzed based on the delay information of multiple links; the GSF node, based on the detection mode in the detection information carried by the packet, when the detection mode is characterized as end-to-end detection mode, does not perform detection on the detection flow and does not report the first information to the centralized management platform; the GSP2 node, based on the flow marker in the GSE extension header, performs delay and packet loss statistics on the detection flow at the GSP2 outgoing interface within the marking period, and will report the first information to the centralized management platform.
[0106] refer to Figure 7 , Figure 7 This is a schematic diagram of path monitoring in hop-by-hop detection mode provided in the embodiments of this application, such as... Figure 7 As shown, GSP1 sets all packet loss markers within period i to 0, and all packet loss markers within period i+1 to 1; it performs delay marking on the first three packets within period i, and on the first three packets within period i+1; packet ① goes through GSF1, packet ② goes through GSF2, and packet ③ goes through GSF3. The three delay-marked packets can cover three paths. Finally, the status of each link can be analyzed based on the delay information of multiple links to obtain network quality information; GSP1 reports the first information of the detected inbound port to the centralized management platform; at the same time, because it is distributed per packet container, GSP1 needs to report the first information of the detected flow corresponding to the GSP1 outbound port and the first information of the detected flow corresponding to the GSP1 outbound port to the centralized management platform. According to the detection mode in the detection information carried in the message, when the detection mode is characterized as hop-by-hop detection mode, the GSF node reports the first information of the detection flow corresponding to the GSF ingress port and GSF egress port to the centralized management and control platform; the GSP2 node reports the first information of the detection flow corresponding to the GSP2 ingress port and GSP2 egress port to the centralized management and control platform based on the detection flow.
[0107] In this embodiment of the application, for the end-to-end detection mode, the centralized management and control platform determines the number of packet loss-colored packets in the source GSP and destination GSP routes on the path based on the first information reported by the source GSP and destination GSP on the path, and then calculates the packet loss rate of the path; the centralized management and control platform determines the timestamp information of the delay-colored packet in the source GSP and destination GSP based on the sequence number of the delay-colored packet in the detection flow reported by the source GSP and destination GSP on the path, and calculates the end-to-end delay of the path.
[0108] In this embodiment of the application, for the hop-by-hop detection mode, the centralized management and control platform determines the number of packet loss-colored packets in the source GSP, GSF, and destination GSP routes on the path based on the first information reported by the source GSP, GSF, and destination GSP on the path, and then calculates the packet loss rate between each node on the path; the centralized management and control platform determines the timestamp information of the delay-colored packet in the source GSP, GSF, and destination GSP based on the sequence number of the delay-colored packet in the detection flow reported by the source GSP, GSF, and destination GSP on the path, and calculates the delay between each node on the path. Here, the packet loss rate and delay between each node also include the packet loss rate and delay between the node's own ingress port and egress port.
[0109] In this embodiment, the centralized management platform can also analyze the reasons for high packet loss rate or high latency on the path. Specifically, each node on the path reports local information and GSE information to the centralized management platform. The local information includes: packet transmission and reception statistics, priority-based flow control (PFC) packet transmission and reception statistics, explicit congestion notification (ECN) packet statistics, and packet loss statistics. The GSE information includes: Dynamic Global Scheduling Queue (DGSQ) authorization information and packet container information. Based on the local information and DGSQ authorization information of each node, the centralized management platform accurately analyzes whether the packet loss in the container is due to insufficient authorization or other reasons.
[0110] In this embodiment of the application, after the message container arrives at the target GSP node in the GSE network, the GSP node needs to sort the message container before it is sent out. To avoid the data packet being too large in the sorting buffer on the destination GSP side, a threshold can be set. When a certain threshold is exceeded, the message container is forced to be sent out.
[0111] The path monitoring method provided in this application embodiment sets the detection header format and encapsulation method of the GSE basic header. For multi-path transmission, it provides two detection modes: end-to-end detection and hop-by-hop detection. It can perform two-point or multi-point network detection according to the actual situation, accurately locate fault points, and promptly detect network problems, thereby achieving effective network operation and maintenance and management. Furthermore, for latency monitoring, each node only needs to report the latency and path information of the first packet of the detection flow entering the new path within the detection period, which greatly reduces the amount of data processing and reduces the processing pressure on the centralized management and control platform.
[0112] This application also provides a path monitoring device 800, see reference. Figure 8 , Figure 8 This is a schematic diagram of the path monitoring device 800 provided in this embodiment of the application. The path monitoring device 800 in this embodiment is applied to a centralized management and control platform and includes:
[0113] First monitoring unit: used to receive first information reported by at least two nodes; wherein, the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement;
[0114] The first monitoring unit is further configured to analyze the first information in order to monitor packet loss on one or more paths.
[0115] In this embodiment of the application, the first monitoring unit is configured to receive first information reported by at least two nodes; wherein, the first information includes: node port information and statistical information of first colored packets; the node port information represents the path to which the node port belongs; the statistical information of the first colored packets includes: the number of first colored packets; the first colored packets are packets used for packet loss measurement; and the first information is analyzed to realize packet loss monitoring of one or more paths.
[0116] In this embodiment of the application, the first monitoring unit is used to determine the packet loss rate between the head node and the tail node of the path based on the number of first-colored packets routed to the head node and the tail node of the path; or, to determine the packet loss rate between the head node, the intermediate node and the tail node of the path based on the number of first-colored packets routed to the head node, the intermediate node and the tail node of the path.
[0117] In this embodiment of the application, the first information further includes: statistical information of the second colored message; the statistical information of the second colored message includes: timestamp information of the second colored message and sequence number of the second colored message; the second colored message is a message used for delay measurement; the first monitoring unit is used to analyze the first information to realize delay monitoring of the one or more paths.
[0118] In this embodiment of the application, the first monitoring unit is used to determine the time delay between the head node and the tail node of any one of the one or more paths based on the statistical information of the second-colored messages of the head node and the tail node of the path; or, to determine the time delay between the head node, the intermediate node and the tail node of the target path based on the statistical information of the second-colored messages reported by the head node, the intermediate node and the tail node of the target path.
[0119] In this embodiment of the application, the second colored message is the first message in the current detection cycle when the detection flow enters a new path.
[0120] Those skilled in the art should understand that Figure 8 The functions of each unit in the path monitoring device 800 shown can be understood by referring to the relevant description of the aforementioned method. Figure 8 The functions of each unit in the path monitoring device 800 shown can be implemented by a program running on a processor or by specific logic circuits.
[0121] This application also provides a path monitoring device 900, see reference. Figure 9 , Figure 9 This is a schematic diagram of the path monitoring device 900 provided in an embodiment of this application. The path monitoring device 900 in this embodiment is applied to a first node and includes:
[0122] Encapsulation unit: Encapsulates the detection information in the packets of the first detection stream; the detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number;
[0123] First transmission unit: used to report first information corresponding to the first detection stream to the centralized management and control platform; the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement;
[0124] The first transmission unit is further configured to send the message of the first detection stream encapsulated with detection information to the intermediate node.
[0125] In this embodiment of the application, if the message is the first message of the first detection flow entering the new path within the current detection cycle, the detection information of the message further includes: a delay measurement coloring identifier; the first information further includes: statistical information of the second coloring message; the statistical information of the second coloring message includes: the timestamp information of the second coloring message and the sequence number of the second coloring message; the second coloring message is a message used for delay measurement.
[0126] In this embodiment, the first transmission unit is configured to: receive packets of a second detection stream encapsulated with detection information; the detection information includes one or more of the following: flow identifier of the tested service, packet loss measurement coloring identifier, latency measurement coloring identifier, service flow direction identifier, coloring period, detection mode, and sequence number; and report first information corresponding to the second detection stream to the centralized management platform; the first information includes one or more of the following: node port information, statistical information of the first coloring packet, and statistical information of the second coloring packet; the node port information represents the path to which the node port belongs; the statistical information of the first coloring packet includes: the number of first coloring packets; the first coloring packet is a packet used for packet loss measurement; the statistical information of the second coloring packet includes: timestamp information of the second coloring packet and sequence number of the second coloring packet; the second coloring packet is a packet used for latency measurement.
[0127] Those skilled in the art should understand that Figure 9 The functions of each unit in the path monitoring device 900 shown can be understood by referring to the relevant description of the aforementioned method. Figure 9 The functions of each unit in the path monitoring device 900 shown can be implemented by a program running on a processor or by specific logic circuits.
[0128] This application also provides a path monitoring device 1000, see reference. Figure 10 , Figure 10 This is a schematic diagram of the path monitoring device 1000 provided in this embodiment of the application. The path monitoring device 1000 in this embodiment is applied to intermediate nodes and includes:
[0129] The second transmission unit is used to receive messages encapsulated with detection information. The detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the delay measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number.
[0130] The second transmission unit is further configured to report first information to the centralized management and control platform; the first information includes one or more of the following: node port information, statistical information of the first colored message, and statistical information of the second colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement; the statistical information of the second colored message includes: the timestamp information of the second colored message and the sequence number of the second colored message; the second colored message is a message used for delay measurement.
[0131] The second transmission unit is further configured to send the message encapsulated with detection information to the tail node.
[0132] Those skilled in the art should understand that Figure 10 The functions of each unit in the path monitoring device 1000 shown can be understood by referring to the relevant description of the aforementioned method. Figure 10 The functions of each unit in the path monitoring device 1000 shown can be implemented by a program running on a processor or by specific logic circuits.
[0133] Figure 11 This is a schematic structural diagram of an electronic device 1100 provided in an embodiment of this application. Figure 11 The illustrated electronic device 1100 includes a processor 1110, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0134] Optionally, such as Figure 11 As shown, the electronic device 1100 may further include a memory 1120. The processor 1110 can retrieve and run computer programs from the memory 1120 to implement the methods described in the embodiments of this application.
[0135] The memory 1120 can be a separate device independent of the processor 1110, or it can be integrated into the processor 1110.
[0136] Optionally, such as Figure 11 As shown, the electronic device 1100 may also include a transceiver 1130, and the processor 1110 may control the transceiver 1130 to communicate with other devices. Specifically, it may send information or data to other devices or receive information or data sent by other devices.
[0137] The transceiver 1130 may include a transmitter and a receiver. The transceiver 1130 may further include an antenna, and the number of antennas may be one or more.
[0138] The electronic device 1100 may specifically be a path monitoring device in the embodiments of this application, and the electronic device 1100 may implement the corresponding processes implemented by the path monitoring device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0139] For example, this application also provides a computer program product, including a computer program that can be executed by the processor 1110 of the communication device 1100 to perform the steps described in any of the foregoing methods.
[0140] Figure 12 This is a schematic structural diagram of the chip according to an embodiment of this application. Figure 7 The chip 1200 shown includes a processor 1210, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0141] Optionally, such as Figure 12 As shown, chip 1200 may further include memory 1220. Processor 1210 can retrieve and run computer programs from memory 1220 to implement the methods described in this embodiment.
[0142] The memory 1220 can be a separate device independent of the processor 1210, or it can be integrated into the processor 1210.
[0143] Optionally, the chip 1200 may also include an input interface 1230. The processor 1210 can control the input interface 1230 to communicate with other devices or chips; specifically, it can acquire information or data sent by other devices or chips.
[0144] Optionally, the chip 1200 may also include an output interface 1240. The processor 1210 can control the output interface 1240 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.
[0145] The chip can be applied to the electronic device 1100 in the embodiments of this application, and the chip can implement the corresponding processes implemented by the electronic device 1100 in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0146] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0147] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0148] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0149] It should be understood that the above-described memory is exemplary and not a limiting description. For example, the memory in the embodiments of this application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM), etc. That is to say, the memory in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0150] This application also provides a storage medium for storing a computer program. This storage medium can be applied to the electronic device 1100 in this application embodiment, and the computer program causes the computer to execute the corresponding processes implemented by the electronic device 1100 in the various methods of this application embodiment; for brevity, these will not be elaborated further here.
[0151] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0152] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0153] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0154] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0155] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0156] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or electronic device 1100, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0157] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A path monitoring method, characterized in that, Applications in centralized management and control platforms include: Receive first information reported by at least two nodes; wherein, the first information includes: node port information and statistical information of the first colored packets; the node port information represents the path to which the node port belongs; the statistical information of the first colored packets includes: the number of the first colored packets; the first colored packets are packets used for packet loss measurement; The first information is analyzed to enable packet loss monitoring of one or more paths.
2. The method according to claim 1, characterized in that, The analysis of the first information to achieve packet loss monitoring of one or more paths in the network includes: For any one of the one or more paths, the number of first-colored packets routed by the nodes on the path is determined based on the statistical information of the first-colored packets reported by the nodes on the path. The packet loss rate of the path is determined based on the number of first-colored packets routed to the nodes along the path.
3. The method according to claim 2, characterized in that, Determining the packet loss rate of a path based on the number of first-colored packets routed to nodes along the path includes: The packet loss rate between the head and tail nodes of the path is determined based on the number of first-colored packets routed at the head and tail nodes of the path; or, The packet loss rate between the head node, intermediate node, and tail node of the path is determined based on the number of first-colored packets routed at the head node, intermediate node, and tail node of the path.
4. The method according to claim 1, characterized in that, The first information further includes: statistical information of the second-colored message; the statistical information of the second-colored message includes: timestamp information of the second-colored message and sequence number of the second-colored message; the second-colored message is a message used for delay measurement; the method further includes: The first information is analyzed to enable latency monitoring of the one or more paths.
5. The method according to claim 4, characterized in that, The step of analyzing the first information to achieve latency monitoring of the one or more paths includes: For any one of the one or more paths, the time delay between the head node and the tail node of the path is determined based on the statistical information of the second-colored packets of the head node and tail node of the path; or, Based on the statistical information of the second-colored messages reported by the head node, intermediate node and tail node of the target path, the time delay between the head node, intermediate node and tail node of the target path is determined.
6. The method according to claim 5, characterized in that, The second dyeing message is the first message in the current detection cycle when the detection flow enters the new path.
7. A path monitoring method, characterized in that, Applied to the first node, including: The detection information is encapsulated in the message of the first detection stream; the detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number; The system reports the first information corresponding to the first detection flow to the centralized management platform. The first information includes: node port information and statistical information of the first stained packet. The node port information represents the path to which the node port belongs. The statistical information of the first stained packet includes: the number of first stained packets. The first stained packet is a packet used for packet loss measurement. The message of the first detection stream, which encapsulates the detection information, is sent to the intermediate node.
8. The method according to claim 7, characterized in that, If the message is the first message of the first detection flow entering the new path within the current detection period, the detection information of the message also includes: delay measurement coloring identifier; the first information also includes: statistical information of the second coloring message; the statistical information of the second coloring message includes: timestamp information of the second coloring message and sequence number of the second coloring message; the second coloring message is a message used for delay measurement.
9. The method according to claim 7, characterized in that, include: Receive a message from a second detection stream encapsulated with detection information; the detection information includes one or more of the following: the flow identifier of the service under test, packet loss measurement coloring identifier, delay measurement coloring identifier, service flow direction identifier, coloring period, detection mode, and sequence number; The first information corresponding to the second detection stream is reported to the centralized management and control platform; the first information includes one or more of the following: node port information, statistical information of the first colored message, and statistical information of the second colored message; The node port information represents the path to which the node port belongs; The statistical information of the first colored message includes: the number of the first colored messages; the first colored message is a message used for packet loss measurement; the statistical information of the second colored message includes: the timestamp information of the second colored message and the sequence number of the second colored message; the second colored message is a message used for delay measurement.
10. A path monitoring method, characterized in that, Applied to intermediate nodes, including: Receive a message encapsulated with detection information; the detection information includes one or more of the following: the flow identifier of the service under test, the packet loss measurement coloring identifier, the delay measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number; The system reports first information to the centralized management platform. This first information includes one or more of the following: node port information, statistical information of the first stained packet, and statistical information of the second stained packet. The node port information represents the path to which the node port belongs. The statistical information of the first stained packet includes the number of first stained packets; the first stained packet is a packet used for packet loss measurement. The statistical information of the second stained packet includes the timestamp information of the second stained packet and the sequence number of the second stained packet; the second stained packet is a packet used for latency measurement. The message containing the encapsulated detection information is sent to the tail node.
11. A path monitoring device, characterized in that, Applications in centralized management and control platforms include: First monitoring unit: used to receive first information reported by at least two nodes; wherein, the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement; The first monitoring unit is further configured to analyze the first information in order to monitor packet loss on one or more paths.
12. A path monitoring device, characterized in that, Applied to the first node, including: Encapsulation unit: Encapsulates the detection information in the packets of the first detection stream; the detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number; First transmission unit: used to report first information corresponding to the first detection stream to the centralized management and control platform; the first information includes: node port information and statistical information of the first colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement; The first transmission unit is further configured to send the message of the first detection stream encapsulated with detection information to the intermediate node.
13. A path monitoring device, characterized in that, Applied to intermediate nodes, including: The second transmission unit is used to receive messages encapsulated with detection information. The detection information includes one or more of the following: the flow identifier of the tested service, the packet loss measurement coloring identifier, the delay measurement coloring identifier, the service flow direction identifier, the coloring period, the detection mode, and the sequence number. The second transmission unit is further configured to report first information to the centralized management and control platform; the first information includes one or more of the following: node port information, statistical information of the first colored message, and statistical information of the second colored message; the node port information represents the path to which the node port belongs; the statistical information of the first colored message includes: the number of the first colored message; the first colored message is a message used for packet loss measurement; the statistical information of the second colored message includes: the timestamp information of the second colored message and the sequence number of the second colored message; the second colored message is a message used for delay measurement. The second transmission unit is further configured to send the message encapsulated with detection information to the tail node.
14. An electronic device, characterized in that, include: A processor and a memory for storing a computer program, the processor for calling and running the computer program stored in the memory to perform the path monitoring method as described in any one of claims 1 to 6, or claims 7 to 9, or claim 10.
15. A chip, characterized in that, include: A processor for retrieving and running a computer program from memory, causing a device with the chip mounted to perform the path monitoring method according to any one of claims 1 to 6, or claims 7 to 9, or claim 10.
16. A storage medium, characterized in that, Used to store a computer program that causes a computer to perform the path monitoring method as described in any one of claims 1 to 6, or claims 7 to 9, or claim 10.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the path monitoring method as described in any one of claims 1 to 6, or claims 7 to 9, or claim 10.