CN118175069A - Multi-protocol label switching MPLS forwarding plane detection method and device - Google Patents

Multi-protocol label switching MPLS forwarding plane detection method and device Download PDF

Info

Publication number
CN118175069A
CN118175069A CN202211582073.7A CN202211582073A CN118175069A CN 118175069 A CN118175069 A CN 118175069A CN 202211582073 A CN202211582073 A CN 202211582073A CN 118175069 A CN118175069 A CN 118175069A
Authority
CN
China
Prior art keywords
mpls
request message
detection information
node
forwarding plane
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
CN202211582073.7A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202211582073.7A priority Critical patent/CN118175069A/en
Priority to PCT/CN2023/106168 priority patent/WO2024119816A1/en
Publication of CN118175069A publication Critical patent/CN118175069A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Landscapes

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

Abstract

The embodiment of the application provides a method and a device for detecting a multiprotocol label switching (MPLS) forwarding plane, wherein the method comprises the following steps: generating a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, wherein the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane; acquiring detection information of a forwarding plane; adding the detection information into the MPLS request message in a preset format; and sending the MPLS request message according to the forwarding table. The embodiment of the application can solve the problems that the node or path delay information of the deterministic network cannot be obtained in the related technology and the controller needs to be deployed to detect the flow, and under the condition that the controller is not deployed, the detection information in the forwarding plane of the deterministic network is obtained through the MPLS request message, thereby reducing the cost of deployment and operation and maintenance.

Description

Multi-protocol label switching MPLS forwarding plane detection method and device
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for detecting a multiprotocol label switching MPLS forwarding plane.
Background
Internet packet explorer (PACKET INTERNET Groper, ping) and route tracking are common tools in diagnosing network problems. Ping may detect if the remote device is reachable, delay of the round-trip path (delay) and packet (packet) loss conditions for communication with the remote device; traceroute can locate which routers have passed between from the source host to the target host and the time taken to reach each router, mainly checking if the network connection is reachable and analyzing where the network failed.
When a ping/trace is used To detect a Label forwarding path (Label SWITCHED PATH, LSP) of a multiprotocol Label switching (Multiprotocol Label Switching, MPLS) network, whether a destination segment is reachable or not is judged through a Time To Live (TTL) field, and delay data is not carried.
Currently the main deterministic network technologies include two-layer oriented Time sensitive network (Time-SENSITIVE NETWORKING, TSN for short) and three-layer oriented deterministic network (DETERMINISTIC NETWORKING, detNet for short), which are required to provide very low packet loss rate and a certain end-to-end maximum transmission delay for specific real-Time applications. Wherein DetNet architecture decomposes the DetNet data plane into two sublayers: a service sub-layer and a forwarding sub-layer. The internet engineering task Force (THE INTERNET ENGINEERING TASK Force, IETF for short) specifies DetNet data plane encapsulation based on MPLS networks in its architectural model in rfc8964, as shown in fig. 1.
The timing model of deterministic network transmission nodes is specified in the IETF draft-IETF-detnet-bounded-latency, as shown in fig. 2. The forwarding of data messages from one device to the next may experience 6 delays, respectively: output delay, link delay, frame preemption delay, processing delay, shaping delay, and queue delay. At present, when a Label forwarding path (Label SWITCHED PATH, abbreviated as LSP) of an MPLS network is detected by using a traditional ping/trace detection method, the delay data is not carried, so that delay information of a certain node or the whole path cannot be obtained.
In the related art, in order to detect and monitor the traffic, a flow-following detection mode (rfc 9197) is currently commonly adopted in the industry, as shown in fig. 3, a new generation network monitoring technology telemetry for remotely collecting data from the device at a high speed is adopted to report the detected data, which requires that a unified telemetry information collecting and processing system must exist to receive, process and display the information such as the path, delay and the like of the traffic.
In summary, aiming at the problems that the node or path delay information of the deterministic network cannot be obtained and a controller needs to be deployed to detect the traffic in the related art, a good solution is not yet available.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting a multiprotocol label switching (MPLS) forwarding plane, which at least solve the problems that nodes or path delay information of a deterministic network cannot be obtained in the related art, and a controller is required to be deployed for flow detection.
According to an embodiment of the present application, there is provided a multiprotocol label switching MPLS forwarding plane detection method, applied to a head node, the method including:
Generating a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, wherein the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
acquiring detection information of a forwarding plane;
Adding the detection information into the MPLS request message in a preset format;
And sending the MPLS request message according to a forwarding table.
According to an embodiment of the present application, there is provided a multiprotocol label switching MPLS forwarding plane detection method applied to an intermediate node or a tail node, the method including:
Receiving a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, wherein the MPLS request message is generated by a head node, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
acquiring detection information of a forwarding plane;
And adding the detection information into the MPLS request message in a preset format.
According to another embodiment of the present application, there is provided a multiprotocol label switching MPLS forwarding plane detection apparatus, for use in a head node, the apparatus including:
The system comprises a first generation module, a second generation module and a first generation module, wherein the first generation module is used for generating a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
the first detection module is used for acquiring detection information of the forwarding plane and adding the detection information to a label stack of the MPLS request message in a preset format;
And the first sending module is used for sending the MPLS request message according to the forwarding table.
According to another embodiment of the present application, there is provided a multiprotocol label switching MPLS forwarding plane detection apparatus applied to an intermediate node or a tail node, the apparatus including:
The system comprises a first receiving module, a second receiving module and a first receiving module, wherein the first receiving module is used for receiving a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, the MPLS request message is generated by a head node, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
The second detection module is used for acquiring detection information of the forwarding plane of the current node and adding the detection information to the label stack of the MPLS request message in a preset format.
According to a further embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program, when executed by a processor, performs the steps of any of the method embodiments described above.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the embodiment of the application, the detection information of each node forwarding plane in the MPLS network label forwarding path is acquired through the MPLS request message carrying the network measurement instruction, so that the problems that the node or path delay information of the deterministic network cannot be acquired in the related art and the controller needs to be deployed to detect the flow are solved, and under the condition that the controller is not deployed, the detection information in the deterministic network forwarding plane is acquired through the MPLS request message, and the deployment and operation cost is reduced.
Drawings
FIG. 1 is a schematic diagram of a deterministic network DetNet data plane encapsulation in accordance with the related art of the present application;
FIG. 2 is a schematic diagram of a timing model of a deterministic network transmission node in accordance with the related art of the present application;
FIG. 3 is a schematic diagram of the detection and monitoring of flow with flow detection in accordance with the present application;
Fig. 4 is a hardware structure block diagram of a multiprotocol label switching MPLS forwarding plane detection method according to an embodiment of the present application;
fig. 5 is a flow chart of MPLS forwarding plane detection according to an embodiment of the present application;
fig. 6 is a flow chart of MPLS forwarding plane detection according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of MPLS packet carrying data according to an embodiment of the present application;
FIG. 8 is a schematic flow chart of unidirectional detection of a forwarding plane in an SR-BE scenario;
FIG. 9 is a schematic flow chart of bidirectional detection of a forwarding plane in an SR-Policy scenario;
Fig. 10 is a block diagram of an MPLS forwarding plane detection apparatus according to an embodiment of the present application;
fig. 11 is a block diagram of an MPLS forwarding plane detection apparatus according to another embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal, a cloud server, or similar computing device. Taking a computer terminal as an example, fig. 4 is a block diagram of a hardware structure of a multiprotocol label switching MPLS forwarding plane detection method according to an embodiment of the present application, as shown in fig. 4, a hardware board may include one or more (only one is shown in fig. 4) processors 42 (the processors 42 may include, but are not limited to, a microprocessor MCU or a programmable logic device, etc. processing means) and a memory 44 for storing data, where the mobile terminal may further include a transmission device 46 for a communication function and an input/output device 48. It will be appreciated by those skilled in the art that the structure shown in fig. 4 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 4, or have a different configuration than shown in fig. 4.
The memory 44 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to forwarding plane detection in an embodiment of the present application, and the processor 42 executes the computer program stored in the memory 44 to perform various functional applications and forwarding plane detection processing, that is, implement the above-described method. Memory 44 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 44 may further include memory located remotely from processor 42, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 46 are for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communications provider. In one example, the transmission device 46 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that may be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device 46 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for detecting a MPLS forwarding plane of multiprotocol label switching is provided, and fig. 5 is a flowchart of MPLS forwarding plane detection according to an embodiment of the present application, as shown in fig. 5, where the flowchart includes the following steps:
Step S502, generating a multiprotocol label switching MPLS request message carrying a network measurement instruction, wherein the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
Step S504, obtaining detection information of a forwarding plane;
step S506, the detection information is added into the MPLS request message in a preset format;
Step S508, the MPLS request message is sent according to the forwarding table.
In this embodiment, step S502 may specifically include: receiving a detection request sent by a control plane; generating the MPLS request message according to the detection request; and adding the network measurement instruction into a label stack of the MPLS request message.
Further, the detection request in this embodiment may be a periodic detection request configured by a node, or a detection request initiated by a user through a command line or other interactive operations.
In this embodiment, step S504 may specifically include: obtaining detection information in the process of sending the MPLS request message, wherein the detection information is deterministic information, and the detection information comprises at least one of the following components: port, port payload, timestamp, interface, latency.
Further, the present embodiment may be used for deterministic network forwarding plane detection, where the detection information includes detection information of a receiving process and a transmitting process, and the head node (or source node) has no receiving process, so only includes part of deterministic information.
In this embodiment, step S508 may specifically include determining a label forwarding path of the MPLS request packet according to a forwarding table, and sending the MPLS request packet to a next node according to a node position and a sequence on the label forwarding path.
In this embodiment, after step S508, the method may further include:
Step S510, receiving an MPLS response message fed back by the tail node according to the MPLS request message, wherein the MPLS response message carries the detection information of the target node receiving the MPLS request message;
step S512, parse the MPLS reply message to obtain the detection information.
In this embodiment, after receiving the MPLS request message, the target node (intermediate node and tail node) in step S510 collects forwarding plane detection information of the node where the MPLS request message is currently located according to the network measurement instruction, and the node where the MPLS request message is currently located cannot modify detection information of other nodes in the MPLS request message.
In this embodiment, the tail node in step S510 copies the detection information in the MPLS request packet to the same position in the MPLS reply packet in the same format, and if the MPLS reply packet also carries the network measurement instruction, the detection information received by the head node further includes the detection of each node in the MPLS reply packet path.
In this embodiment, after step S512, the method may further include:
Step S514, determining a detection result of the forwarding plane according to the detection information obtained by sending the MPLS request packet for multiple times, where the detection result includes at least one of the following: port, payload, timestamp, delay, jitter;
Step S516, outputting the detection result.
In this embodiment, the detection result in step S514 may specifically include detection information of each node in the entire label forwarding path or paths, and the jitter in the detection result may specifically be a fluctuation range of the detection information obtained by multiple detection of the same node.
In this embodiment, step S506 may specifically include: the network measurement instruction is arranged in a label stack of the MPLS request message in a mode of an MPLS extension header indicator; and adding the detection information to the label stack of the MPLS request message in a mode of an MPLS extension header according to the MPLS extension header indicator, wherein one MPLS extension header indicator corresponds to a plurality of MPLS extension headers, and one MPLS extension header corresponds to the detection information of one node.
Further, the preset format in step S506 may be a standard format defined in the ietf draft and carrying data behind the MPLS label stack, and with further revising and perfecting the draft, the MPLS packet may also carry network measurement instructions and measurement information in other manners.
In this embodiment, through the steps S502 to S508, the problem that the node or path delay information of the deterministic network cannot be obtained and the controller needs to be deployed to perform flow detection in the related art can be solved, and the detection information of the forwarding plane is collected in the process of forwarding the MPLS packet, so that the detection information of the label switching path and each node is obtained, and the cost of deployment and operation and maintenance is reduced without additional deployment of the controller and acquisition equipment.
In another embodiment of the present application, a method for detecting a multiprotocol label switching MPLS forwarding plane is provided and applied to an intermediate node or a tail node, and fig. 6 is a flowchart of MPLS forwarding plane detection according to another embodiment of the present application, as shown in fig. 6, where the flowchart includes the following steps:
Step S602, receiving a multiprotocol label switching MPLS request message carrying a network measurement instruction, wherein the MPLS request message is generated by a head node, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
step S604, obtaining detection information of a forwarding plane;
Step S606, adding the detection information to the MPLS request message in a preset format.
In this embodiment, a label switching path of the MPLS request packet may be determined according to a forwarding table, and whether a node is a tail node (a destination node of the MPLS request packet) or an intermediate node may be determined according to the label switching path.
In this embodiment, step S604 may specifically include:
Under the condition of an intermediate node, acquiring detection information in the process of sending and receiving the MPLS request message;
Under the condition of being a tail node, acquiring detection information in the process of receiving the MPLS request message;
wherein the detection information is deterministic information, the detection information including at least one of: port, port payload, timestamp, interface, latency.
Further, the embodiment may be used for detecting a deterministic network forwarding plane, where the detection information includes detection information of a receiving process and a transmitting process, and the tail node has no transmitting process, so only includes part of the deterministic information.
In this embodiment, step S606 may specifically include: the network measurement instruction exists in a label stack of the MPLS request message in a mode of an MPLS extension header indicator; and adding the detection information to the label stack of the MPLS request message in an MPLS extension header mode according to the MPLS extension header indicators, wherein one MPLS extension header indicator corresponds to a plurality of MPLS extension headers, and one MPLS extension header corresponds to the detection information of one node.
In this embodiment, after step S606, the method further includes:
step S608, in the case of intermediate node, forwarding the MPLS request message according to a forwarding table;
Step S610, in the case of the tail node, generating an MPLS reply message according to the MPLS request message, and feeding back the MPLS reply message to the head node through an intermediate node, where the head node is configured to parse a label stack of the MPLS reply message to obtain the detection information.
In this embodiment, the process of generating the MPLS reply message according to the MPLS request message in step S610 may specifically include: generating the MPLS response message; copying the detection information of the target node in the MPLS request message to a label stack of the MPLS response message in a preset format.
In this embodiment, after the MPLS reply packet is generated in step S610, the network measurement instruction may also be added to a label stack of the MPLS reply packet in a manner of an MPLS extension header indicator, where the network measurement instruction is used to instruct a target node that receives the MPLS reply packet to collect detection information of a forwarding plane.
In this embodiment, the preset format in step S606 may be a standard format defined in the I ETF draft and carrying data behind the MPLS label stack, and with further revision and improvement of the draft, the MPLS packet may also carry network measurement instructions and measurement information in other manners.
In this embodiment, after step S610, the target node (intermediate node and head node) that receives the MPLS reply packet performs steps similar to the steps S602 to S606 described above to collect the detection information of the backhaul forwarding plane, thereby implementing bidirectional detection on the label forwarding path.
In this embodiment, the intermediate node needs to be configured to support the forwarding plane detection mechanism in the present application to perform the methods in step S602 to step S606.
Furthermore, the MPLS request message may also pass through an intermediate node that does not support the forwarding plane detection mechanism, where the intermediate node may transparently transmit the MPLS request message to a next node, and may not add and modify detection information in the MPLS request message.
In this embodiment, through the steps S602 to S606, the problem that the node or path delay information of the deterministic network cannot be obtained and the controller needs to be deployed to perform flow detection in the related art can be solved, and under the condition that the controller is not deployed, the detection information in the forwarding plane of the deterministic network is obtained through the MPLS request message, so that the cost of deployment and operation and maintenance is reduced.
Fig. 7 is a schematic structural diagram of MPLS packet carrying data according to an embodiment of the present application, as shown in fig. 7, where the embodiment of the present application uses a standard format defined in the IETF draft-song-MPLS-extension-header.
In this embodiment, an extension header Indicator (EH Indicator) is added between MPLS Label stacks (MPLS Label Stack) of MPLS packets, and is used to carry network policy instructions.
In this embodiment, after the MPLS label stack of the MPLS packet, a plurality of Extension Headers (EH) EH1 to EHN are added, where each Extension Header carries detection information of one node.
The application can also be applied to SR-BE (Best Effort) scenes in Segment Routing (SR), namely a scene in which a segment identifier guides equipment to perform shortest path forwarding.
Fig. 8 is a schematic diagram of a flow of unidirectional detection of a forwarding plane in an SR-BE scenario, as shown in fig. 8, the flow includes the following steps:
Step S802, initiating MPLS detection at R1 node, designating to collect certainty information passing through the node, and adding MPLS network measurement instruction (MPLS Network Action, MNA for short) in the MPLS label stack of the request message. When a request message is sent, certainty information of the R1 node is added, and the information is added to the MPLS label stack by using a standard and a message format defined in MPLS Network Action draft (a message format defined in the above embodiment). It should be noted that, the R1 node does not perform complete message forwarding, and only part of deterministic information can be added;
step S804, the R2 node receives the MPLS detection message, if the R2 node supports the detection mechanism in the embodiment, the network measurement instruction is detected to exist in the MPLS label stack, and the deterministic information of the node is added to the MPLS label stack in the standard and message format defined in the embodiment; if the R2 node does not support the detection mechanism in the embodiment, the message is transmitted without modifying the certainty information in the MPLS label stack;
Step S806, the R3 node receives the MPLS detection message, detects that a network measurement instruction exists in the MPLS label stack, and increases the determination information of the node. Also, because the R3 node does not perform complete message forwarding, only part of deterministic information can be added. Copying the deterministic information stored in the MPLS label stack in the format defined in the embodiment to the MPLS label stack in the response message and storing in the same format when the response message is sent;
step S808, the R2 node receives the response message, does not process the deterministic information in the message, and forwards the message to R1;
in step S810, the R1 node receives the response message, parses the deterministic information in the message, and presents the network measurement information to the user or the network administrator, thereby completing the whole network measurement flow.
In this embodiment, the response message returned in step S808 does not carry the network measurement instruction, so the intermediate node R2 only needs to forward the response message, and no detection information needs to be added.
In this embodiment, the deterministic information is detection information of a deterministic network, and the detection information includes at least one of the following: port, port load, timestamp, interface, delay; further, in-if and out-if in fig. 8 represent a receiving interface and a transmitting interface of an MPLS packet, respectively.
The application can also be applied to a cross-domain SR-Policy scene of a new generation segmented routing traffic engineering system, and the detection method in the embodiment of the application can carry out end-to-end detection on the cross-domain Policy to obtain the certainty information of each node of the Policy.
Fig. 9 is a schematic diagram of a flow of bidirectional detection of a forwarding plane in an SR-Policy scenario, as shown in fig. 9, where the flow includes the following steps:
step S902, initiating MPLS detection at the R1 node, designating to collect the certainty information of passing through the node, and adding an MPLS network measurement instruction in the MPLS label stack of the request message. When a request message is sent, certainty information of the R1 node is increased, and the information is added to an MPLS label stack by adopting the standard and the message format defined in the embodiment. It should be noted that, the R1 node does not perform complete message forwarding, and only part of deterministic information can be added;
step S904, R2, R3, R4 node receives MPLS detection message, if the node supports the mechanism in the implementation, it detects that there is MPLS network measurement instruction in the MPLS label stack, adds the deterministic information of the node to the MPLS label stack according to the standard and message format defined in the above embodiment; if the node does not support the detection mechanism in the implementation, the message is transmitted without modifying the certainty information in the MPLS label stack;
step S906, the R5 node receives the MPLS detection message, detects that a network measurement instruction exists in the MPLS label stack, and increases the determination information of the node. Also, because the R5 node does not perform complete forwarding of the message, only part of deterministic information can be added. Copying the deterministic information stored in the MPLS label stack in the format defined in the embodiment to the MPLS label stack in the response message and storing in the same format when the response message is sent; and adds MPLS network measurement instruction in the MPLS label stack of the response message
Step S908, R6 node receives the response message, if the node supports the detection mechanism in the implementation, it detects that there is MPLS network measurement instruction in the MPLS label stack, adds the deterministic information of the node to the MPLS label stack according to the standard and message format defined in the above embodiment; if the node does not support the detection mechanism in the embodiment, the message is transmitted in a transparent way, the deterministic information in the MPLS label stack is not modified, and the message is forwarded to R1;
In step S910, the R1 node receives the response message, parses the deterministic information in the message, and presents the bidirectional network measurement information to the user or the network administrator, thereby completing the bidirectional network measurement flow.
In the embodiment of the application, the label switching path of the MPLS response message can be the same as or different from the label switching path of the MPLS request message.
According to another aspect of the embodiment of the present application, there is further provided a multiprotocol label switching MPLS forwarding plane detection apparatus, which is applied to a head node.
Fig. 10 is a block diagram of an MPLS forwarding plane detection apparatus according to an embodiment of the present application, as shown in fig. 10, the apparatus includes:
A first generating module 1002, configured to generate a multiprotocol label switching MPLS request packet carrying a network measurement instruction, where the network measurement instruction is configured to instruct a target node that receives the MPLS request packet to collect detection information of a forwarding plane;
a first detection module 1004, configured to obtain detection information of a forwarding plane, and add the detection information to a label stack of the MPLS request packet in a preset format;
a first sending module 1006, configured to send the MPLS request packet according to a forwarding table.
In this embodiment, the first generating module 1002 is further configured to receive a detection request sent by the control plane; generating the MPLS request message according to the detection request; and adding the network measurement instruction into a label stack of the MPLS request message.
In this embodiment, the first detection module 1004 is further configured to obtain detection information in the process of sending the MPLS request packet, where the detection information is deterministic information, and the detection information includes at least one of the following: port, port payload, timestamp, interface, latency.
In this embodiment, the apparatus further includes:
The second receiving module is used for receiving an MPLS response message fed back by the tail node according to the MPLS request message, wherein the MPLS response message carries the detection information of the target node receiving the MPLS request message;
and the analysis module is used for analyzing the MPLS response message to obtain the detection information.
The determining module is configured to determine a detection result of the forwarding plane according to the detection information obtained by sending the MPLS request packet multiple times, where the detection result includes at least one of the following: port, payload, timestamp, delay, jitter;
and the output module is used for outputting the detection result.
In this embodiment, the first detection module 1004 is further configured to add the detection information to the label stack of the MPLS request packet in a manner of MPLS extension header according to the MPLS extension header indicator, where one MPLS extension header indicator corresponds to a plurality of MPLS extension headers and one MPLS extension header corresponds to the detection information of one node, and the network measurement instruction is set in the label stack of the MPLS request packet in a manner of MPLS extension header indicator.
According to another aspect of the embodiment of the present application, there is further provided a multiprotocol label switching MPLS forwarding plane detection apparatus, which is applied to an intermediate node or a tail node.
Fig. 11 is a block diagram of an MPLS forwarding plane detection apparatus according to another embodiment of the present application, as shown in fig. 11, including:
A first receiving module 1102, configured to receive a multiprotocol label switching MPLS request packet carrying a network measurement instruction, where the MPLS request packet is generated by a head node, and the network measurement instruction is configured to instruct a target node that receives the MPLS request packet to collect detection information of a forwarding plane;
The second detection module 1104 is configured to obtain detection information of the forwarding plane of the current node, and add the detection information to the label stack of the MPLS request packet in a preset format.
In this embodiment, the second detection module 1104 is further configured to obtain detection information in the process of sending and receiving the MPLS request packet when the MPLS request packet is an intermediate node; under the condition of being a tail node, acquiring detection information in the process of receiving the MPLS request message; wherein the detection information is deterministic information, the detection information including at least one of: port, port payload, timestamp, interface, latency.
In this embodiment, the second detection module 1104 is further configured to add the detection information to the label stack of the MPLS request packet in a manner of MPLS extension header according to the MPLS extension header indicator, where one MPLS extension header indicator corresponds to a plurality of MPLS extension headers and one MPLS extension header corresponds to the detection information of one node, and the network measurement instruction exists in the label stack of the MPLS request packet in a manner of MPLS extension header indicator.
In this embodiment, the apparatus further includes:
and the second sending module is used for forwarding the MPLS request message according to a forwarding table under the condition of being an intermediate node.
And the second generating module is used for generating an MPLS response message according to the MPLS request message and feeding back the MPLS response message to the first node through the intermediate node under the condition of being the tail node, wherein the first node is used for analyzing a label stack of the MPLS response message to obtain the detection information.
In this embodiment, the second generating module is further configured to generate the MPLS reply packet; copying the detection information of the target node in the MPLS request message to a label stack of the MPLS response message in a preset format.
In this embodiment, the second generating module is further configured to add the network measurement instruction to a label stack of the MPLS reply packet in a manner of an MPLS extension header indicator, where the network measurement instruction is used to instruct a target node that receives the MPLS reply packet to collect detection information of a forwarding plane.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program when executed by a processor performs the steps of any of the method embodiments described above.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (16)

1. A multi-protocol label switching MPLS forwarding plane detection method applied to a head node, the method comprising:
Generating a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, wherein the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
acquiring detection information of a forwarding plane;
Adding the detection information into the MPLS request message in a preset format;
And sending the MPLS request message according to a forwarding table.
2. The method of claim 1, wherein generating a multiprotocol label switching, MPLS, request message carrying network measurement instructions comprises:
Receiving a detection request sent by a control plane;
Generating the MPLS request message according to the detection request;
and adding the network measurement instruction into a label stack of the MPLS request message.
3. The method of claim 1, wherein obtaining detection information for the forwarding plane comprises:
Obtaining detection information in the process of sending the MPLS request message, wherein the detection information is deterministic information, and the detection information comprises at least one of the following components: port, port payload, timestamp, interface, latency.
4. The method of claim 1, wherein after sending the MPLS request message according to a forwarding table, the method further comprises:
Receiving an MPLS response message fed back by the tail node according to the MPLS request message, wherein the MPLS response message carries the detection information of the target node receiving the MPLS request message;
analyzing the MPLS response message to obtain the detection information.
5. The method of claim 4, wherein after parsing the MPLS reply message to obtain the detection information, the method further comprises:
Determining a detection result of the forwarding plane according to the detection information obtained by sending the MPLS request message for multiple times, wherein the detection result comprises at least one of the following steps: port, payload, timestamp, delay, jitter;
And outputting the detection result.
6. The method of claim 1, wherein adding the detection information to the MPLS request message in a preset format comprises:
The network measurement instruction is arranged in a label stack of the MPLS request message in a mode of an MPLS extension header indicator;
And adding the detection information to the label stack of the MPLS request message in a mode of an MPLS extension header according to the MPLS extension header indicator, wherein one MPLS extension header indicator corresponds to a plurality of MPLS extension headers, and one MPLS extension header corresponds to the detection information of one node.
7. A method for detecting a multiprotocol label switching MPLS forwarding plane, applied to an intermediate node or a tail node, the method comprising:
Receiving a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, wherein the MPLS request message is generated by a head node, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
acquiring detection information of a forwarding plane;
And adding the detection information into the MPLS request message in a preset format.
8. The method of claim 7, wherein obtaining detection information for the forwarding plane comprises:
Under the condition of an intermediate node, acquiring detection information in the process of sending and receiving the MPLS request message;
Under the condition of being a tail node, acquiring detection information in the process of receiving the MPLS request message;
wherein the detection information is deterministic information, the detection information including at least one of: port, port payload, timestamp, interface, latency.
9. The method of claim 7, wherein adding the detection information to the label stack of the MPLS request message in a preset format comprises:
the network measurement instruction exists in a label stack of the MPLS request message in a mode of an MPLS extension header indicator;
And adding the detection information to the label stack of the MPLS request message in an MPLS extension header mode according to the MPLS extension header indicators, wherein one MPLS extension header indicator corresponds to a plurality of MPLS extension headers, and one MPLS extension header corresponds to the detection information of one node.
10. The method of claim 7, wherein after adding the detection information to the MPLS request message in a preset format, the method further comprises:
In the case of an intermediate node, forwarding the MPLS request message according to a forwarding table;
and under the condition of a tail node, generating an MPLS response message according to the MPLS request message, and feeding back the MPLS response message to the head node through an intermediate node, wherein the head node is used for analyzing a label stack of the MPLS response message to obtain the detection information.
11. The method of claim 10, wherein generating an MPLS reply message from the MPLS request message comprises:
Generating the MPLS response message;
Copying the detection information of the target node in the MPLS request message to a label stack of the MPLS response message in a preset format.
12. The method of claim 11, wherein after generating the MPLS reply message, the method further comprises:
And adding the network measurement instruction into a label stack of the MPLS response message in a mode of an MPLS extension header indicator, wherein the network measurement instruction is used for indicating a target node receiving the MPLS response message to collect detection information of a forwarding plane.
13. A multiprotocol label switching, MPLS, forwarding plane detection apparatus for use in a head node, the apparatus comprising:
The system comprises a first generation module, a second generation module and a first generation module, wherein the first generation module is used for generating a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
the first detection module is used for acquiring detection information of the forwarding plane and adding the detection information to a label stack of the MPLS request message in a preset format;
And the first sending module is used for sending the MPLS request message according to the forwarding table.
14. A multiprotocol label switching, MPLS, forwarding plane detection apparatus for use in an intermediate node or a tail node, the apparatus comprising:
The system comprises a first receiving module, a second receiving module and a first receiving module, wherein the first receiving module is used for receiving a multiprotocol label switching (MPLS) request message carrying a network measurement instruction, the MPLS request message is generated by a head node, and the network measurement instruction is used for indicating a target node receiving the MPLS request message to collect detection information of a forwarding plane;
The second detection module is used for acquiring detection information of the forwarding plane of the current node and adding the detection information to the label stack of the MPLS request message in a preset format.
15. A computer-readable storage medium, in which a computer program is stored, wherein the computer program, when run by a processor, performs the method of any one of claims 1 to 12.
16. An electronic device comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the method of any of claims 1 to 12.
CN202211582073.7A 2022-12-09 2022-12-09 Multi-protocol label switching MPLS forwarding plane detection method and device Pending CN118175069A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211582073.7A CN118175069A (en) 2022-12-09 2022-12-09 Multi-protocol label switching MPLS forwarding plane detection method and device
PCT/CN2023/106168 WO2024119816A1 (en) 2022-12-09 2023-07-06 Multiprotocol label switching (mpls) forwarding plane detection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211582073.7A CN118175069A (en) 2022-12-09 2022-12-09 Multi-protocol label switching MPLS forwarding plane detection method and device

Publications (1)

Publication Number Publication Date
CN118175069A true CN118175069A (en) 2024-06-11

Family

ID=91347621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211582073.7A Pending CN118175069A (en) 2022-12-09 2022-12-09 Multi-protocol label switching MPLS forwarding plane detection method and device

Country Status (2)

Country Link
CN (1) CN118175069A (en)
WO (1) WO2024119816A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508719B (en) * 2017-02-15 2020-04-14 北京中航通用科技有限公司 Method and device for measuring network time delay and network node
CN112291093A (en) * 2020-10-29 2021-01-29 迈普通信技术股份有限公司 Network detection method, device, network equipment and network system
CN112565017A (en) * 2020-12-04 2021-03-26 盛科网络(苏州)有限公司 Time delay measuring method and device based on SRv6 SID
CN114697403A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Method, device, equipment, system and storage medium for processing service message
CN114826973A (en) * 2021-01-28 2022-07-29 华为技术有限公司 Transmission quality detection method, device and system

Also Published As

Publication number Publication date
WO2024119816A1 (en) 2024-06-13

Similar Documents

Publication Publication Date Title
US11095546B2 (en) Network device service quality detection method and apparatus
WO2021170092A1 (en) Message processing method and apparatus, and network device and storage medium
WO2019128950A1 (en) Packet processing method, network node, and system
US9577913B2 (en) Layer-3 performance monitoring sectionalization
WO2016045098A1 (en) Switch, controller, system and link quality detection method
EP4024780A1 (en) Path detection method and apparatus, and computer storage medium
CN113411834B (en) Message processing method, device, equipment and storage medium
US20220407791A1 (en) Network performance detection method and apparatus, and network device
US10116545B2 (en) Method, device and system for processing OAM packet
KR101364369B1 (en) Node, monitoring and administration method used thereupon, and transfer system, input circuit, and output circuit using same
CN101815028A (en) Method and system for tracing multicast routing and routing equipment
CN105897580B (en) A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method
US20070115838A1 (en) Method and system for loop-back and continue in packet-based network
US20230318970A1 (en) Packet Processing Method and Apparatus
WO2016095611A1 (en) Parameter acquiring method, network device and system
CN118175069A (en) Multi-protocol label switching MPLS forwarding plane detection method and device
EP3913862B1 (en) Traffic detection method, apparatus, and system
CN114205221B (en) Fault query method and device
EP4203423A1 (en) Method for selecting packet transmission path, and device and medium
WO2023093227A1 (en) Information collection method and apparatus, and storage medium and electronic apparatus
EP4199464A1 (en) Packet sending method and device
EP4250646A1 (en) Bit error information acquisition method and device
CN117176557A (en) Method, apparatus, device and storage medium for link failure localization
KR100450417B1 (en) Network device operation state management method and sytsem using multi-thread

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication