WO2016008322A1 - Path connectivity test method and device - Google Patents

Path connectivity test method and device Download PDF

Info

Publication number
WO2016008322A1
WO2016008322A1 PCT/CN2015/077377 CN2015077377W WO2016008322A1 WO 2016008322 A1 WO2016008322 A1 WO 2016008322A1 CN 2015077377 W CN2015077377 W CN 2015077377W WO 2016008322 A1 WO2016008322 A1 WO 2016008322A1
Authority
WO
WIPO (PCT)
Prior art keywords
sid
echo
request message
path
echo request
Prior art date
Application number
PCT/CN2015/077377
Other languages
French (fr)
Chinese (zh)
Inventor
徐小虎
尤建洁
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016008322A1 publication Critical patent/WO2016008322A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a path connectivity detection method and apparatus.
  • Service Funcition Chaning SFC
  • Service chain technology can link multiple business functions and provide the foundation for flexible business processing.
  • the service classifier classifies the data flows entering the service routing domain, and then forwards the selected data flows along the service function path (SFP) corresponding to the SFC.
  • SFP service function path
  • the service function (SF) that the SFP passes through performs corresponding service processing on the data stream.
  • the SF may be a module inside a Service Node (SN) system.
  • a Segment List is usually used to represent an SFP.
  • SFP Segament Routing
  • the corresponding segment list is: ⁇ SID(SN1), SID(SF A) SID (SF B), SID (SN2), SID (SF C), where the Segment Identifier (SID) is an identifier assigned by the SR network to the SN or the Service Function SF for guiding forwarding.
  • SID can be represented by a Multi-Protocol Label Switching (MPLS) label or an Internet Protocol Version 6, IPv6 address.
  • MPLS Multi-Protocol Label Switching
  • the SID of the SN is a global or local MPLS label
  • the SID of the SF is a global or local MPLS label
  • the SID of the SN is an IPv6 global address
  • the SID of the SF is Link-local address (LLA).
  • OAM Operaation Administration Maintenance
  • the IPv6 ping command is generally used to detect the connectivity of the path.
  • the IPv6 ping command usually requires the sender of the command to be directly connected to the receiver.
  • the sender of the detection command eg, the classifier
  • the sender of the detection command is not directly connected to the receiver SF. Therefore, when the IPv6 address is used to indicate the segment identifier SID of the SN or SF, the path cannot be detected using the IPv6 Ping command. Connectivity.
  • the embodiment of the invention provides a path connectivity detection method and device, which can implement path connectivity detection in an SR network, and is beneficial to implementing OAM functions in an SR-SFC network.
  • a path connectivity detection method is provided, where the method is applicable to an SR network, and the method includes:
  • the receiving node receives an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes The SID of the SF;
  • the receiving node determines that the SF is associated with the receiving node according to the identifier of the SF, determining whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information ;
  • the receiving node determines that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, determining that the path to the SF is connected, the receiving node is The sending node sends a first echo response (Echo Reply) message, and the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
  • Echo Reply first echo response
  • the method further includes:
  • the receiving node determines the SID corresponding to the SF stored by the receiving node and the path
  • the path to the SF is determined to be disconnected, and the receiving node sends a second Echo Reply message to the sending node, where the second Echo Reply message carries the value of the return code.
  • the value of the return code is used to indicate that the path to the SF is not connected.
  • the method further includes:
  • the receiving node determines that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
  • the detecting whether the SF is in an available state includes:
  • the receiving node sends a status detection request to the SF, receives a status response message sent by the SF, and determines, according to the status response message, whether the SF is in an available state; or
  • a third possible implementation manner of the first aspect when the determining that the SF is in an unavailable state, the return that is carried by the first Echo Reply message The value of the code is used to indicate that the SF is in an unavailable state.
  • a method for path connectivity detection is provided, where the method is applicable to an SR network, and the method includes:
  • the sending node constructs an Echo Request message, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF;
  • the sending node Sending, by the sending node, the Echo Request message to the receiving node according to the path information, where the receiving node is a destination SN corresponding to the SF;
  • the sending node receives an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message;
  • the sending node determines, according to the Echo Reply message, whether a path to the SF is connected.
  • the path information includes shortest path information or explicit path information, where:
  • the shortest path information includes a SID of the destination SN and an SID of the SF;
  • the explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  • the SID of the destination SN and the SN is an MPLS label
  • the SID of the SF is MPLS label
  • the SID of the destination SN is an IPv6 global address, and the SID of the SF is an LLA.
  • the Echo Request message is an MPLS Echo Request message
  • the Echo The reply message is an MPLS Echo Reply message
  • the Echo Request message includes the identifier of the SF, which is specifically:
  • a service SF Equivalence Class (FEC) field is added to the MPLS Echo Request message, and the SF identifier is carried in the SF FEC field.
  • FEC Service SF Equivalence Class
  • the Echo Request message is an Internet Control Message Protocol (VIP) 6th Echo Request message.
  • the Echo Request message is an ICMPv6Echo Reply message, and the Echo Request message includes an SF identifier. for:
  • a service function identifier (SF ID) field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
  • the sending node determines, according to the Echo Reply message, the arrival of the SF Whether the path is connected includes:
  • the sending node determines, according to the value of the return code carried in the Echo Reply message, whether the path to the SF is connected.
  • the Echo Request message is configured to detect whether the SF is available. And detecting the identifier, where the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
  • a path connectivity detecting apparatus the apparatus being applicable to an SR network, the apparatus comprising:
  • a receiving unit configured to receive an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, where a packet header of the Echo Request message includes path information that reaches the SF, where the path information includes SID of SF;
  • a determining unit configured to determine, when the SF is associated with the device according to the identifier of the SF, Determining whether the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information; and sending, by the determining unit, determining, by the determining unit, an SID corresponding to the SF stored by the device
  • the path to the SF is determined to be connected, and the first Echo Reply message is sent to the sending node, and the value of the return code carried in the first Echo Reply message is Used to indicate the path connectivity to the SF.
  • the sending unit is further configured to:
  • the determining unit determines that the SID corresponding to the SF stored by the device does not match the SID of the SF included in the path information, determining that the path to the SF is not connected, and sending the first to the sending node And a second Echo Reply message, where the second Echo Reply message carries a value of a return code, where the value of the return code is used to indicate that the path to the SF is disconnected.
  • the device further includes:
  • a detecting unit configured to: when the determining unit determines that the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
  • the detecting unit is specifically configured to:
  • the sending unit is further configured to:
  • the detecting unit determines that the SF is in an unavailable state
  • the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate that the SF is in an unavailable state.
  • a path connectivity detecting apparatus the apparatus being applicable to an SR network, the apparatus comprising:
  • a constructing unit configured to construct an Echo Request message, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF;
  • a sending unit configured to send the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF;
  • a receiving unit configured to receive an echo response Echo Reply message sent by the receiving node, where The Echo Reply message is a response message for the Echo Request message;
  • a determining unit configured to determine, according to the Echo Reply message, whether a path to the SF is connected.
  • the path information included in the packet header of the Echo Request message constructed by the constructing unit includes shortest path information or explicit path information, where:
  • the shortest path information includes a SID of the destination SN and an SID of the SF;
  • the explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  • the SID of the destination SN and each SN is an MPLS label
  • the SID of the SF is MPLS.
  • the SID of the destination SN is an IPv6 global address
  • the SID of the SF is an LLA.
  • the Echo Request message configured by the constructing unit is an MPLS Echo Request message, corresponding to The Echo Reply message received by the receiving unit is an MPLS Echo Reply message, and the constructing unit is specifically configured to:
  • An SF FEC field is added to the MPLS Echo Request message, and the identifier of the SF is carried in the SF FEC field.
  • the Echo Request message constructed by the structuring unit is an ICMPv6Echo Request message
  • the Echo Reply received by the receiving unit is an ICMPv6Echo Reply message
  • the constructing unit is specifically configured to:
  • a service function identifier SF ID field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
  • the determining unit is specifically configured to:
  • the Echo Request message configured by the constructing unit is configured to detect the SF Whether the detection identifier is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
  • the path connectivity detection method and device determines the SF according to the identifier of the SF carried in the Echo Request message and the path information included in the packet header of the Echo Request message, by receiving the Echo Request message.
  • it is determined whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, and the SID corresponding to the SF and the path information stored by the receiving node are determined.
  • the path to the SF is determined to be connected, and the Echo Reply message is sent to the sending node, so that the sending node determines the path to the SF according to the value of the return code carried in the Echo Reply message.
  • the method provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
  • FIG. 1 is a schematic diagram of a service chain technology in the prior art
  • FIG. 2 is a schematic flowchart of a path connectivity detecting method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an implementation manner of an Echo Request message according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of a method for detecting path connectivity according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of an implementation form of a TLV field of an SF FEC according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of an implementation form of adding an SF ID field to an ICMPv6 Echo Request message according to an embodiment of the present disclosure
  • FIG. 8 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an implementation manner of an MPLS Echo Request message according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of an implementation manner of an ICMPv6 Echo Request message according to an embodiment of the present disclosure
  • FIG. 12 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention.
  • the OAM function for the SF cannot be implemented.
  • path connectivity and availability detection for the SF cannot be implemented. This is because the detection of SF connectivity or availability is not supported in the existing MPLS OAM technology.
  • the IPv6 Ping command is generally used to detect the connectivity of the path.
  • the IPv6 Ping command usually requires the sender of the command to be directly connected to the receiver.
  • the sender of the detection command eg, the classifier
  • the path cannot be detected using the IPv6 Ping command. Connectivity.
  • the embodiment of the present invention provides a path connectivity detection method and device, which can implement path connectivity detection in an SR network, and is beneficial to implementing OAM functions in an SR-SFC network.
  • FIG. 2 is a schematic flowchart of a method for detecting a path connectivity according to an embodiment of the present invention, which is applicable to an SR network, and may include the following steps:
  • the receiving node receives an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes the SF. SID.
  • the identifier SF ID of the SF is used to identify an SF in a SFC-enabled domain or a Service Chain Domain.
  • the service chain domain includes nodes on the service chain, and usually includes at least one service classifier and one or more service nodes SN, and each service node SN is associated with one or more SFs.
  • the SF and the SN associated with it can be implemented in the same system.
  • the SF can be a module inside the SN system, and the communication between the SN and the SF is a private implementation.
  • the SF can also exist independently of the SN, for example, by using a separate server, a virtual machine (VM) on the server, a proprietary hardware device, and the like, and connecting to the SN.
  • VM virtual machine
  • the SR network may include one or more service chain domains.
  • the service chain domain includes an ingress SN, which can be a Service Classifier and two service nodes SN1 and SN2 and an egress SN.
  • SN1 associates SF A and SF.
  • B, SN2 is associated with SF C.
  • SF A, SF B, and SF C have their corresponding SF IDs, which are used to uniquely identify the corresponding SFs in the service chain domain.
  • the Echo Request message may contain different implementations of the SF ID.
  • the Echo Request message is an MPLS Echo Request message, and the Echo Request message includes the SF ID, and the SF FEC field may be added to the MPLS Echo Request message.
  • the SF ID is carried in the SF FEC field.
  • the Echo Request message is an ICMPv6Echo Request message, and the Echo Request message includes an SF ID, which may be: adding a service function identifier SF ID field in the ICMPv6 Echo Request message, by using the SF
  • the ID field carries the SF ID.
  • the specific form of the SF ID may be very flexible, for example, by using a string or by using address information, as long as the service function SF can be uniquely identified in the service chain domain, which is not limited by the embodiment of the present invention.
  • the path information of the SF is included in the packet header of the Echo Request.
  • the sending The node sends the Echo Request message to the receiving node according to the path information.
  • the receiving node is a destination SN corresponding to the SF.
  • the path information includes an SID of the SF.
  • FIG. 3 it is a representation form of an Echo Request message received by a receiving node.
  • the path information is encapsulated in the header of the Echo Request message, and the path information is expressed in the form of an SR (Segment Routing) header.
  • the path information may be expressed in different forms, for example, may include shortest path information or explicit path information, where: the shortest path information includes a SID of a destination SN and an SID of the SF.
  • the explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  • the Echo Request message sent by the sending node carries the SF ID of the SF C.
  • the path information contained in the header of the Echo Request message is represented by the shortest path information: ⁇ SID(SN2) , SID (SF C) ⁇ . It is assumed that the Echo Request message sent by the sending node carries the SF ID of the SF C, and the path information included in the header of the Echo Request message is represented by the display path information: ⁇ SID(SN1), SID(SN2), SID( SF C) ⁇ .
  • the receiving node determines that the SF is associated with the receiving node according to the identifier of the SF, determining whether the SID corresponding to the SF stored by the receiving node is related to the SF included in the path information.
  • the SID is consistent.
  • the receiving node determines that the SF is associated with the receiving node according to the SF ID included in the Echo Request message.
  • the associating the SF with the receiving node includes: connecting, in the receiving node of the SF, or the receiving node, outside the receiving node.
  • the SF may be a module inside the receiving node; when the SF is outside the receiving node, the SF is independent of the receiving node, and may be at the server, The VM, the proprietary hardware device is implemented and connected to the receiving node.
  • the receiving node determines whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information.
  • the SID of the SF corresponding to the SF ID saved in the receiving node is obtained, and the SID of the obtained SF is compared with the SID of the SF included in the path information.
  • the receiving node obtains the SID of the SF corresponding to the SF ID saved in the forwarding plane according to the SF ID.
  • the present invention does not limit the form in which the service node saves the SID of the SF.
  • the service node may also store a correspondence between the SF ID and the SID of the SF, and determine the SID corresponding to the SF ID according to the correspondence.
  • the receiving node sends the first Echo Reply message to the sending node, the value of the return code carried in the first Echo Reply message, and the value of the return code is used to indicate that the path to the SF is connected.
  • the Echo Request message is an MPLS Echo Request message
  • the first Echo Reply message is an MPLS Echo Reply message.
  • the Echo Reply is an ICMPv6Echo Reply message.
  • the receiving node Determining, by the receiving node, that the SF is not associated with the receiving node according to the identifier of the SF, or determining that the SID corresponding to the SF stored by the receiving node is inconsistent with the SID of the SF included in the path information. Determining that the path to the SF is not connected, the receiving node sends a second Echo Reply message to the sending node, and the value of the return code carried by the second Echo Reply message is used to indicate the path to the SF. Not connected.
  • the second Echo Request message is an MPLS Echo Request message
  • the second Echo Reply message is an MPLS Echo Reply message
  • the Echo Request message is an ICMPv6Echo Request message
  • the response message is a destination address unreachable Destination Unreachable Message.
  • the value of the return code of the response is carried in the Destination Unreachable Message to indicate that the path to the SF is disconnected.
  • the receiving node determines, according to the SF ID, that the SID of the SF does not exist in the forwarding plane, or determines that there is no SID in the forwarding plane that is consistent with the SID of the SF included in the path information, It is also determined that the path to the SF is not connected.
  • the SF and its associated SN are implemented within the same system, for example, the SF may be a module internal to the SN system, and the SN may implement private communication with the SF.
  • the SN can determine whether the physical link between the SN and the SF is in a normal connection state by checking a port or a VLAN (Virtual Local Area Network) interface.
  • VLAN Virtual Local Area Network
  • the SN determines that the physical link between the SN and the SF is not normally connected, the corresponding information of the SF saved in the forwarding plane, such as the SID of the SF, is deleted. Therefore, when receiving The node determines, according to the SF ID, that there is no SID corresponding to the SF in the forwarding plane, and also determines that the path to the SF is disconnected.
  • the Echo Request message may carry a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
  • the receiving node determines that the received Echo Request message carries the detection identifier, it further detects whether the SF is in an available state.
  • the receiving node may decide whether to perform the SF availability detection. For example, the receiving node determines whether to detect whether the SF is in an available state according to its own policy. The embodiment of the present invention does not limit the conditions for triggering the SN node to detect the available state of the SF.
  • the detecting whether the SF is in an available state includes: the receiving node sending a status detection request to the SF, receiving a status response message sent by the SF, and determining, according to the status response message, whether the SF is available. a state; or, the receiving node receives a status report message that is sent by the SF, and determines, according to the status report message, whether the SF is in an available state. .
  • Whether the SF is in an available state may include detecting whether the SF is faulty or detecting whether the SF supports the corresponding service function. When the SF fails and the load is too high, the SF can be in an unavailable state.
  • the receiving node When determining, according to the status response message or the status report message, that the SF is in an unavailable state, the receiving node sends an Echo Reply message to the sending node, where a value of a return code carried in the Echo Reply message is used to indicate the SF is in an unavailable state. For example, the receiving node adds a return code in the MPLS Echo Reply message to indicate that the SF is in an unavailable state. For another example, the receiving node adds a return code in the Destination Unreachable Message to indicate that the SF is in an unavailable state.
  • the SF ID may be carried in the response message sent by the receiving node.
  • the Echo Request message further includes an FEC of the destination service node SN, and the FEC information of the destination SN is used to detect whether the path to the destination service node is connected.
  • the value of the FEC of the SN may be the IP address of the SN.
  • the SN determines whether there is a SID of the SN corresponding to the FEC of the SN according to the FEC of the SN; if yes, it determines whether the SID of the SN is consistent with the SID of the SN included in the path information. If consistent, it is determined that the path to the SN is connected.
  • the SN determines whether the SID of the SN corresponding to the IP address is stored; if so, whether the SID of the SN corresponding to the IP address stored in the self is compared with the Echo Request message.
  • the SIDs included in the SN are the same. If they are the same, the path to the SN is determined to be connected. If the SID of the SN corresponding to the IP address is different or does not exist, it indicates that the wrong SN or the path information error may have been reached, that is, the path to the SN indicated in the path information is not connected.
  • the path connectivity detection method provided by the embodiment of the present invention determines the SF and the receiving by receiving the Echo Request message according to the identifier of the SF carried in the Echo Request message and the path information included in the packet header of the Echo Request message.
  • the node is associated, it is determined whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, and the SID corresponding to the SF stored in the receiving node and the path information included in the path information are determined. If the SIDs of the SFs are consistent, the Echo Reply message is sent to the sending node, so that the sending node determines the path connectivity to the SF according to the value of the return code carried in the Echo Reply message.
  • the method provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
  • FIG. 4 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention.
  • the method is applicable to an SR network, and the method may include:
  • the sending node constructs an Echo Request message, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF.
  • the sending node may be a classifier or other network element, for example, a policy decision point (PDP), which is not limited by the present invention.
  • PDP policy decision point
  • the sending node constructs an Echo Request message. As shown in FIG. 3, it is a representation form of an Echo Request message received by a receiving node.
  • the Echo Request message includes an identifier SF ID of the SF, where the SF ID is used to identify an SF in a service routing domain or a service chain domain.
  • the Echo Request message may have different implementations including the SF ID.
  • the Echo Request message is an MPLS Echo Request message, and the MPLS Echo Request message includes an SF ID, and the SF FEC field may be added to the MPLS Echo Request message.
  • the SF ID is carried in the SF FEC field.
  • 5 is a schematic structural diagram of an MPLS Echo Request message, where the MPLS Echo Request message includes a Version Number, a Global Flag, and a message.
  • the SF FEC may be carried in the TLVs portion of FIG. 5 in a TLV manner.
  • the SF FEC may be as shown in FIG. 6: the Sub Type may be 17, the Length may be 4 bytes, and the Value Field may be the SF ID.
  • the Echo Request message is an ICMPv6Echo Request message
  • the Echo Request message includes an SF ID, which may be: adding an SF ID field in the ICMPv6Echo Request message, and carrying the SF ID field by using the SF ID field.
  • the SF ID As shown in FIG. 7, an implementation form of adding an SF ID field (or parameter) to an ICMPv6 Echo Request message is shown.
  • the type type may be equal to 128, which is used to indicate that it is an Echo Request message; the code value Code may be equal to 1 for indicating a service function check (Service Function Check); and the SF ID is data carried in the Echo Request message (The data From the invoking Echo Request message), used to uniquely identify the SF ID.
  • the ICMPv6Echo Request message may further include a checksum, an identifier, and a sequence number field.
  • the specific form of the SF ID may be very flexible, for example, using a string or using address information, as long as the SF can be uniquely identified in the service chain domain, the embodiment of the present invention Not limited.
  • the path information of the SF is included in the packet header of the Echo Request.
  • the sending node sends the Echo Request message to the receiving node according to the path information.
  • the receiving node is a destination service node SN corresponding to the SF.
  • the path information includes an SID of the SF.
  • Path information is encapsulated in a packet header of the Echo Request message, and the path information is expressed in the form of an SR header.
  • the path information may be expressed in different forms, for example, may include shortest path information or explicit path information, where: the shortest path information includes a SID of a destination SN and an SID of the SF.
  • the explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  • the request message carries the SF ID of the SF C
  • the path information included in the packet header of the Echo Request message is represented by the shortest path information: ⁇ SID(SN2), SID(SF C) ⁇ .
  • the Echo Request message sent by the sending node carries the SF ID of the SF C
  • the path information included in the header of the Echo Request message is represented by the display path information: ⁇ SID(SN1), SID(SN2), SID( SF C) ⁇ .
  • the SID of the destination SN and the SN is an MPLS label, and the SID of the SF is a local MPLS label allocated by the destination SN to the SF; or the SID of the destination SN is the SR An IPv6 global address in the network, and the SID of the SF is an LLA assigned to the SF by the destination SN.
  • the Echo Request message carries a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
  • the sending node sends the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF.
  • the sending node sends the Echo Request message to the receiving node according to the path information in the Echo Request message.
  • the receiving node is a destination service node SN corresponding to the SF.
  • the Echo Request message is forwarded by the shortest path or the explicit path to the destination service function SF.
  • the shortest path refers to the SID forwarding by using the SN that reaches the destination SF.
  • the explicit path forwarding refers to the SN passing through some SNs before reaching the destination SN. That is, the shortest path information includes the SID of the destination SN and the SID of the SF.
  • the explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  • the sending node receives an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message.
  • the receiving node After receiving the Echo Request message, the receiving node performs corresponding processing and echoes the Echo Reply message to the sending node.
  • the processing performed by the receiving node is as shown in the embodiment shown in FIG. 2, and can be implemented by referring to the embodiment shown in FIG. 2, and details are not described herein again.
  • the sending node determines, according to the Echo Reply message, whether a path to the SF is connected.
  • the sending node determines, according to the value of the return code carried in the response message, whether the path to the SF is connected.
  • the value of the return code carried in the response message is used to indicate the destination The path of the service function SF is not connected, and the destination service function SF is connected to the destination service function SF, but the destination service function SF is in an unavailable state or the path to the destination service function SF is connected and the destination service function SF is in an available state.
  • the sending node constructs an Echo Request message, the identifier of the SF carried in the Echo Request message, and includes path information in the packet header of the Echo Request message, and sends the path information according to the path information.
  • the Echo Request message so that the receiving node determines, according to the SF and the SID information included in the path information, whether the path to the SF is connected, and the sending node carries the return code carried in the Echo Reply message according to the response message sent by the receiving node.
  • the value determines whether the path to the SF is connected.
  • the method provided by the embodiment of the invention implements the detection of the connectivity of the SFC path in the SR network, and the method is simple to implement.
  • FIG. 8 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention.
  • the embodiment shown in FIG. 8 is applicable to, for example, an MPLS label as an application scenario of the SID of the SN and the SID of the SF.
  • the sending node constructs an MPLS Echo Request message, and sends the MPLS Echo Request message to the destination SN corresponding to the destination SF.
  • the SF FEC field in the MPLS Echo Request message carries the SF ID, and the packet header of the MPLS Echo Request message includes path information to the destination SF.
  • the MPLS Echo Request message constructed by the sending node may be as shown in FIG. 9.
  • the SR header encapsulates the path information of the SF, and the MPLS Echo Request message is presented in the form of an MPLS ping packet.
  • the path information of the SF may be represented by an MPLS Lable Stack. That is, the packet header of the MPLS Echo Request message includes at least the SID (MPLS Lable) of the destination SN and the SID (MPLS Lable) of the destination SF. Assume that the SFP includes n SFs.
  • the classifier classifier checks 1, 2, ... n SFs in turn, and finally checks the connectivity of the entire SFP.
  • the SID of the SN corresponding to the nth SF ie, the destination SF
  • the SF SID of the nth SF may be directly carried.
  • the destination SN receives an MPLS Echo Request message sent by the sending node.
  • S803. Determine, by the destination SN, the SF and the destination SN according to the SF ID in the SF FEC.
  • the destination SN determines whether the SID corresponding to the SF stored in the forwarding plane of the destination SN is consistent with the SID of the SF included in the path information.
  • the receiving node determines, according to the SF ID in the SF FEC carried in the MPLS Echo Request message, whether the SF corresponding to the SF ID is associated with the destination SN, and the SF corresponding to the SF ID in the association check forwarding plane. Whether the MPLS Lable (SID) is consistent with the SF MPLS Lable carried in the packet header of the MPLS Echo Request. If they are consistent, it is determined that the path of the SF is reached. If the SID of the SF that is stored in the forwarding plane is inconsistent with the SF MPLS Lable carried in the packet header of the MPLS Echo Request, the path to the SF is determined. Not connected.
  • SID MPLS Lable
  • the destination SN sends a response message to the sending node.
  • the return code is carried in the MPLS Echo Reply, and the value of the return code is used to indicate that the path to the SF is disconnected.
  • a new return code return code is defined in the MPLS Echo Reply, the value of the return code is used to indicate that the path to the SF is reached but the SF is in an unavailable state. For example, when the value of return code is 14, it indicates that the SF is in an unavailable state (Unavaililable).
  • the return code is carried in the MPLS Echo Reply, and the value of the return code may be equal to zero, indicating that the path to the SF is connected and the SF is in an available state.
  • the sending node receives the MPLS Echo Reply message sent by the destination SN.
  • the MPLS Echo Reply message carries the SF ID.
  • the sending node may determine, according to the SF ID, which SF detection result is returned by the returned MPLS Echo Reply message.
  • the MPLS Echo Request message may further include the FEC information of the destination SN, where the FEC information of the destination SN is used to detect whether the path to the destination service node is connected.
  • the value of the FEC of the SN may be the IP address of the SN, and the SN determines whether the MPLS label of the SN corresponding to the IP address is saved; if yes, compares whether the MPLS label stored in the MPLS label corresponding to the IP address is MPLS label corresponding to the SN FEC contained in the MPLS Echo Request message The same, if the same, it is determined that the path to the SN is connected. If the MPLS label corresponding to the IP address does not exist at the same time or not, the SN or the path information representation error may be reached, that is, the path to the SN indicated in the path information is not connected.
  • FIG. 10 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention.
  • the embodiment shown in FIG. 10 is applicable to, for example, an application scenario of an SID of an IPv6 address identifier SN and an SID of an SF.
  • the sending node constructs an ICMPv6Echo Request message, and sends the ICMPv6Echo Request message to the destination SN corresponding to the destination SF.
  • the SF ID field in the ICMPv6 Echo Request message carries the SF ID, and the packet header of the ICMPv6 Echo Request message includes path information to the destination SF.
  • the ICMPv6Echo Request message constructed by the sending node may be as shown in FIG. 11.
  • the SR header encapsulates the path information of the SF, and the ICMPv6Echo Request message is presented in the form of an ICMPv6Ping packet.
  • the path information of the SF may be represented by an IPv6 address list. That is, the header of the ICMPv6 Echo Request message includes at least the SID of the destination SN and the SID of the destination SF.
  • the SID of each SN is an IPv6 global address, and the SID of the SF is an LLA allocated to the SF by the destination SN. Similar to the embodiment shown in FIG.
  • the classifier classifier checks 1, 2, ... n SFs in turn, and finally checks the connectivity of the entire SFP (if the SFP contains n SFs).
  • the SID of the SN corresponding to the nth SF ie, the destination SF
  • the SF SID of the nth SF may be directly carried.
  • the destination SN receives an ICMPv6Echo Request message sent by the sending node.
  • the receiving node determines, according to the SF ID carried in the ICMPv6Echo Request message, that the SF corresponding to the SF ID is associated with the destination SN, and checks whether the SID corresponding to the SF and the ICMPv6Echo Request packet are stored in the forwarding plane.
  • the SF SIDs carried in the header are the same, that is, whether there is an LLA that is consistent with the LLA carried in the packet header. If there is a consistent SID, then determine The path to the SF is connected. If the SID corresponding to the SF stored in the forwarding plane does not match the SID carried in the header of the ICMPv6Echo Request, the path to the SF is determined to be disconnected.
  • the return code is carried in the Destination Unreachable Message, and the value of the return code is used to indicate that the path to the SF is disconnected.
  • a new return code return code is defined in the Destination Unreachable Message, the value of the return code is used to indicate that the path to the SF is reached but the SF is in an unavailable state. For example, when the value of the return code is 8, it indicates that the SF is in an unavailable state (Unavaililable).
  • the ICMPv6Echo Reply carries a return code return code indicating that the path to the SF is connected and the SF is in an available state.
  • S1006 The sending node receives the response message sent by the destination SN.
  • the response message carries the SF ID.
  • the sending node may determine, according to the SF ID, which of the SF detection results the returned response message corresponds to.
  • FIG. 12 is a schematic diagram of a path connectivity detecting apparatus 1200 according to an embodiment of the present invention.
  • the apparatus 1200 may be in the path connectivity detecting method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG. Receive node.
  • the device 1200 is applicable to an SR network, and the device 1200 includes:
  • the receiving unit 1201 is configured to receive an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, where the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes Describe the SID of the SF.
  • the determining unit 1202 is configured to determine, when the SF is associated with the device 1200 according to the identifier of the SF, whether the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information.
  • the sending unit 1203 is configured to determine, when the determining unit determines that the SID corresponding to the SF stored by the device 1200 is consistent with the SID of the SF included in the path information, determining that the SF is reached.
  • the path is connected, and the first Echo Reply message is sent to the sending node, where the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
  • the sending unit is further configured to:
  • the determining unit determines that the SID corresponding to the SF stored by the device 1200 is inconsistent with the SID of the SF included in the path information, determining that the path to the SF is disconnected, and sending the second to the sending node An Echo Reply message, the value of the return code carried by the second Echo Reply message is used to indicate that the path to the SF is disconnected.
  • the device further includes:
  • a detecting unit configured to: when the determining unit determines that the SID corresponding to the SF stored by the device 1200 is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
  • the detecting unit is specifically configured to:
  • the sending unit is further configured to:
  • the detecting unit determines that the SF is in an unavailable state
  • the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate that the SF is in an unavailable state.
  • FIG. 13 is an SN1300 used for path connectivity detection according to an embodiment of the present invention.
  • the SN 1300 may be a receiving node in the path connectivity detection method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG.
  • the SN 1300 can include at least one processor 1301, at least one network interface 1302 or other communication interface, memory 1303, and at least one communication bus 1304 for enabling connection communication between these devices.
  • the processor 1301 is configured to execute an executable module, such as a computer program, stored in the memory 1303.
  • the processor 1301 may be a CPU, and the memory 1303 may include a high speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage.
  • the communication connection between the system gateway and at least one other network element is implemented by using at least one network interface, and an Internet, a wide area network, a local network, a metropolitan area network, or the like can be used.
  • the memory 1303 is configured to store a set of program instructions, and the processor 1301 is configured to invoke the program instructions stored by the memory 1303 to perform the following operations:
  • the Echo Request message includes an identifier of the SF
  • the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes the SID of the SF;
  • the receiving node When it is determined that the SID corresponding to the SF stored by the SN 1300 is consistent with the SID of the SF included in the path information, determining that the path to the SF is connected, the receiving node sends a message to the sending node.
  • An Echo Reply message the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
  • the processor 1301 is further configured to: when it is determined that the SID corresponding to the SF stored by the device is inconsistent with the SID of the SF included in the path information, determine that the path to the SF is disconnected, Sending a second Echo Reply message to the sending node, where the value of the return code carried by the second Echo Reply message is used to indicate that the path to the SF is disconnected.
  • the processor 1301 is further configured to: when it is determined that the SID of the SF that is stored by the SN 1300 is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state.
  • the detecting whether the SF is in an available state comprises: sending a status detection request to the SF, receiving a status response message sent by the SF, determining, according to the status response message, whether the SF is in an available state; or And receiving a status report message that is sent by the SF, and determining, according to the status report message, whether the SF is in an available state.
  • the processor 1301 is further configured to: when determining that the SF is in an unavailable state, the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate the SF Is not available.
  • the SN 1300 for path connectivity detection provided by the embodiment of the present invention, when receiving the Echo Request message, determines that the SF is associated with the device according to the identifier of the SF, and determines that the SID corresponding to the SF stored by the device is determined. And determining, when the SID of the SF is consistent with the path information, determining that the path to the SF is connected, sending an Echo Reply message to the sending node, so that the sending node determines, according to the value of the return code carried in the Echo Reply message.
  • the path to the SF is connected.
  • the device provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
  • FIG. 14 is a path connectivity detecting apparatus 1400 according to an embodiment of the present invention. It is intended that the apparatus 1400 can be a transmitting node in the path connectivity detection method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG.
  • the apparatus 1400 is applicable to an SR network, and the apparatus 1400 includes:
  • the constructing unit 1401 is configured to construct an Echo Request message, where the Echo Request message includes an identifier of the service function SF, and the packet header of the Echo Request message includes path information that reaches the SF.
  • the sending unit 1402 is configured to send the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF.
  • the receiving unit 1403 is configured to receive an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message.
  • the determining unit 1404 is configured to determine, according to the Echo Reply message, whether a path to the SF is connected.
  • the path information included in the packet header of the Echo Request message constructed by the constructing unit includes shortest path information or explicit path information, where:
  • the shortest path information includes a SID of the destination SN and an SID of the SF;
  • the explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  • the SID of the destination SN and the SN is an MPLS label
  • the SID of the SF is an MPLS label allocated by the destination SN to the SF
  • the SID of the destination SN is an IPv6 global Address
  • the SID of the SF is LLA.
  • the Echo Request message configured by the constructing unit is an MPLS Echo Request message
  • the Echo Reply message received by the receiving unit is an MPLS Echo Reply message
  • the constructing unit is specifically configured to:
  • An SF FEC field is added to the MPLS Echo Request message, and the identifier of the SF is carried in the SF FEC field.
  • the Echo Request message configured by the constructing unit is an ICMPv6Echo Request message
  • the Echo Reply received by the receiving unit is an ICMPv6Echo Reply message
  • the constructing unit is specifically configured to:
  • An SF ID field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
  • the determining unit is specifically configured to:
  • the Echo Request message configured by the constructing unit further carries a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
  • the determining unit is further configured to:
  • FIG. 15 is a schematic diagram of an SN 1500 for path connectivity detection according to an embodiment of the present invention.
  • the SN 1500 may be a transmitting node in the path connectivity detection method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG.
  • the SN 1500 can include at least one processor 1501, at least one network interface 1502 or other communication interface, a memory 1503, and at least one communication bus 1504 for enabling connection communication between the devices.
  • the processor 1501 is configured to execute an executable module, such as a computer program, stored in the memory 1503.
  • the memory 1503 may include RAM, and may also include non-volatile memory, such as at least one disk storage.
  • the communication connection between the system gateway and at least one other network element is implemented by using at least one network interface, and an Internet, a wide area network, a local network, a metropolitan area network, or the like can be used.
  • the memory 1503 is configured to store a set of program instructions, and the processor 1501 is configured to invoke the program instructions stored by the memory 1503 to perform the following operations:
  • the processor 1501 is configured to: construct an Echo Request message, where the Echo Request message includes an identifier of the SF, where a packet header of the Echo Request message includes path information that reaches the SF; and according to the path information,
  • the receiving node sends the Echo Request message, the receiving node is a destination service node SN corresponding to the SF, and receives an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message. Determining whether the path to the SF is connected according to the Echo Reply message.
  • the processor 1501 is further configured to: the path information included in the packet header of the Echo Request message includes the shortest path information or the explicit path information, where the shortest path information includes the SID of the destination SN and the The SID of the SF; the explicit path information includes an SID of each SN passing through the destination SN and an SID of the SF.
  • the processor 1501 is further configured to: package the packet in the header of the constructed Echo Request message.
  • the SID of the destination SN and the SID of the SN are MPLS labels, and the SID of the SF is an MPLS label; or the SID of the destination SN is an IPv6 global address, and the SID of the SF For LLA.
  • the processor 1501 is further configured to: construct an MPLS Echo Request message, add an SF FEC field in the MPLS Echo Request message, and carry the identifier of the SF in the SF FEC field.
  • the processor 1501 is further configured to: construct an ICMPv6Echo Request message, add an SF ID field in the ICMPv6Echo Request message, and carry the identifier of the SF by using the SF ID field.
  • the processor 1501 is further configured to: determine, according to a value of a return code carried in the Echo Reply message, whether a path to the SF is connected.
  • the processor 1501 is further configured to: in the configured Echo Request message, a detection identifier that is used to detect whether the SF is available, where the detection identifier is used to indicate that the target SN detects whether the SF is in an available state. .
  • the processor 1501 is further configured to: determine, according to a value of a return code carried in the Echo Reply message, whether the SF is in an available state.
  • the SN 1500 for the path connectivity detection includes the Echo Request message, the identifier of the SF carried in the Echo Request message, and includes the path information in the packet header of the Echo Request message, and according to The path information is sent by the Echo Request message, so that the receiving node determines whether the path to the SF is connected according to the SF and the SID information included in the path information, and the device sends a response message Echo Reply according to the receiving node.
  • the value of the return code carried in the message determines whether the path to the SF is connected.
  • the device provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
  • inventive arrangements may be described in the general context of computer-executable instructions executed by a computer, such as a program element.
  • program units include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • inventive arrangements can also be practiced in distributed computing environments where remotes are connected through a communication network Process the device to perform the task.
  • program units can be located in both local and remote computer storage media including storage devices.
  • the various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.

Abstract

Provided in an embodiment of the present invention are a path connectivity test method and device. The method comprises: a receiving node receives an echo request transmitted by a transmitting node, the echo request comprising an identifier of a service function (SF), the packet header of the echo request comprising information on a path to the SF, the path information comprising a segment identifier (SID) of the SF; when the receiving node determines, on the basis of the SID of the SF, that the SF is associated with the receiving node, determining whether the SID corresponding to an SF stored by the receiving node is consistent with the SID of the SF contained in the path information; if so, then determining that the path to the SF has connectivity, and the receiving node transmits a first echo reply to the transmitting node, the value of a return code carried in the echo reply indicating that the path to the SF has connectivity. The invention realizes an effective test of path connectivity.

Description

一种路径连通性检测方法及装置Path connectivity detection method and device
本申请要求于2014年7月18日提交中国专利局、申请号为CN 201410344976.0、发明名称为“一种路径连通性检测方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on July 18, 2014, the Chinese Patent Application No. CN 201410344976.0, entitled "A Path Connectivity Test Method and Apparatus", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明实施例涉及通信技术领域,具体涉及一种路径连通性检测方法及装置。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a path connectivity detection method and apparatus.
背景技术Background technique
随着运营商业务种类的增加,为了提供更好的业务体验,需要部署业务路由网络,因此业务链(Service Funcition Chaning,SFC)技术得到了发展。业务链技术可以将多个业务功能链接起来,为灵活的业务处理提供了基础。如图1所示,业务分类器(Service Classifier)对进入业务路由域的数据流进行分类,然后将选定的数据流沿着SFC对应的业务功能路径(Service Function Path,SFP)进行转发,在此过程中,由SFP途经的业务功能(Service Function,SF)对数据流进行相应的业务处理。其中SF可以是业务节点(Service Node,SN)系统内部的一个模块。As the types of services of operators increase, in order to provide a better service experience, a service routing network needs to be deployed, so Service Funcition Chaning (SFC) technology has been developed. Service chain technology can link multiple business functions and provide the foundation for flexible business processing. As shown in Figure 1, the service classifier classifies the data flows entering the service routing domain, and then forwards the selected data flows along the service function path (SFP) corresponding to the SFC. In this process, the service function (SF) that the SFP passes through performs corresponding service processing on the data stream. The SF may be a module inside a Service Node (SN) system.
在段路由(Segament Routing,SR)网络中实现SFC时,通常使用段列表(Segment List)来表示一条SFP。以图1所示的业务处理场景为例,描述一条SFP,即{SN1,SF A,SF B,SN2,SF C},其对应的段列表为:{SID(SN1),SID(SF A),SID(SF B),SID(SN2),SID(SF C)},其中段标识(Segment Identifier,SID)是SR网络为SN或业务功能SF分配的用于指导转发的标识。在现有技术中,SID可以使用多协议标签交换(Multi-Protocol Label Switching,MPLS)标签或者是互联网通信协议第6版(Internet Protocol Version 6,IPv6)地址来表示。当SID用MPLS标签来表示时,SN的SID是全局或者局部MPLS标签,SF的SID为全局或局部MPLS标签;当SID用IPv6地址来表示时,SN的SID为IPv6全局地址,SF的SID为链路本地地址(Link-local Address,LLA)。When implementing SFC in a Segament Routing (SR) network, a Segment List is usually used to represent an SFP. Taking the service processing scenario shown in Figure 1 as an example, describe an SFP, namely {SN1, SF A, SF B, SN2, SF C}. The corresponding segment list is: {SID(SN1), SID(SF A) SID (SF B), SID (SN2), SID (SF C), where the Segment Identifier (SID) is an identifier assigned by the SR network to the SN or the Service Function SF for guiding forwarding. In the prior art, the SID can be represented by a Multi-Protocol Label Switching (MPLS) label or an Internet Protocol Version 6, IPv6 address. When the SID is represented by an MPLS label, the SID of the SN is a global or local MPLS label, and the SID of the SF is a global or local MPLS label; when the SID is represented by an IPv6 address, the SID of the SN is an IPv6 global address, and the SID of the SF is Link-local address (LLA).
然而,在SR网络中实现SFC时,却无法实现对SF的操作、管理和维护 (Operation Administration Maintenance,OAM)功能,例如无法实现对SF的连通性和可用性检测。这是因为,在现有的MPLS OAM技术中,并不支持对SF连通性或可用性的检测。此外,由于在现有的IPv6协议中,通常使用IPv6 Ping命令检测路径的连通性,当使用IPv6Ping命令检测LLA地址时,由于IPv6 Ping命令通常需要命令的发送方与接收方是直接连接的。然而,对于SFC的场景,检测命令的发送方(例如分类器)与接收方SF通常并不是直接连接的,因此当使用IPv6地址表示SN或者SF的段标识SID时,无法使用IPv6Ping命令检测路径的连通性。However, when SFC is implemented in an SR network, the operation, management, and maintenance of the SF cannot be realized. (Operation Administration Maintenance, OAM) functions, for example, failing to implement connectivity and availability detection for SF. This is because the detection of SF connectivity or availability is not supported in existing MPLS OAM technologies. In addition, in the existing IPv6 protocol, the IPv6 ping command is generally used to detect the connectivity of the path. When the IPv6 ping command is used to detect the LLA address, the IPv6 ping command usually requires the sender of the command to be directly connected to the receiver. However, for the SFC scenario, the sender of the detection command (eg, the classifier) is not directly connected to the receiver SF. Therefore, when the IPv6 address is used to indicate the segment identifier SID of the SN or SF, the path cannot be detected using the IPv6 Ping command. Connectivity.
因此,现有技术中并不存在一种方法和装置,能够在SR网络中实现对路径连通性的检测,以便于在SR-SFC网络中实现OAM功能。Therefore, there is no method and device in the prior art, which can detect the path connectivity in the SR network, so as to implement the OAM function in the SR-SFC network.
发明内容Summary of the invention
本发明实施例提供了路径连通性检测方法及装置,能够在SR网络中实现对路径连通性的检测,有利于在SR-SFC网络中实现OAM功能。The embodiment of the invention provides a path connectivity detection method and device, which can implement path connectivity detection in an SR network, and is beneficial to implementing OAM functions in an SR-SFC network.
为此,本发明实施例提供如下技术方案:To this end, the embodiments of the present invention provide the following technical solutions:
根据本发明实施例的第一方面,提供了一种路径连通性检测方法,所述方法适用于SR网络,所述方法包括:According to a first aspect of the embodiments of the present invention, a path connectivity detection method is provided, where the method is applicable to an SR network, and the method includes:
接收节点接收发送节点发送的回显请求(Echo Request)消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的SID;The receiving node receives an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes The SID of the SF;
当所述接收节点根据所述SF的标识确定所述SF与所述接收节点关联时,判断所述接收节点存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致;When the receiving node determines that the SF is associated with the receiving node according to the identifier of the SF, determining whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information ;
当所述接收节点判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF的路径连通,所述接收节点向所述发送节点发送第一回显响应(Echo Reply)消息,所述第一Echo Reply消息中携带的返回代码的值用于指示到达所述SF的路径连通。When the receiving node determines that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, determining that the path to the SF is connected, the receiving node is The sending node sends a first echo response (Echo Reply) message, and the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
在第一方面的第一种可能的实现方式中,所述方法还包括:In a first possible implementation manner of the first aspect, the method further includes:
当所述接收节点判断所述接收节点存储的对应所述SF的SID与所述路径 信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,所述接收节点向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带返回代码的值,所述返回代码的值用于指示到达所述SF的路径不连通。When the receiving node determines the SID corresponding to the SF stored by the receiving node and the path When the SIDs of the SFs included in the information are inconsistent, the path to the SF is determined to be disconnected, and the receiving node sends a second Echo Reply message to the sending node, where the second Echo Reply message carries the value of the return code. The value of the return code is used to indicate that the path to the SF is not connected.
在第一方面的第二种可能的实现方式中,所述方法还包括:In a second possible implementation manner of the first aspect, the method further includes:
当所述接收节点判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态;When the receiving node determines that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
其中,所述检测所述SF是否处于可用状态包括:The detecting whether the SF is in an available state includes:
所述接收节点向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,The receiving node sends a status detection request to the SF, receives a status response message sent by the SF, and determines, according to the status response message, whether the SF is in an available state; or
所述接收节点接收所述SF主动发送的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。And receiving, by the receiving node, a status report message that is sent by the SF, and determining, according to the status report message, whether the SF is in an available state.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,当确定所述SF处于不可用状态时,所述第一Echo Reply消息携带的所述返回代码的值用于指示所述SF处于不可用状态。With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, when the determining that the SF is in an unavailable state, the return that is carried by the first Echo Reply message The value of the code is used to indicate that the SF is in an unavailable state.
根据本发明实施例的第二方面,提供了一种路径连通性检测的方法,所述方法适用于SR网络,所述方法包括:According to a second aspect of the embodiments of the present invention, a method for path connectivity detection is provided, where the method is applicable to an SR network, and the method includes:
发送节点构造Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息;The sending node constructs an Echo Request message, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF;
所述发送节点根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的SN;Sending, by the sending node, the Echo Request message to the receiving node according to the path information, where the receiving node is a destination SN corresponding to the SF;
所述发送节点接收所述接收节点发送的Echo Reply消息,所述Echo Reply消息为针对所述Echo Request消息的响应消息;The sending node receives an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message;
所述发送节点根据所述Echo Reply消息确定到达所述SF的路径是否连通。The sending node determines, according to the Echo Reply message, whether a path to the SF is connected.
在第二方面的第一种可能的实现方式中,所述路径信息包括最短路径信息或者显式路径信息,其中:In a first possible implementation manner of the second aspect, the path information includes shortest path information or explicit path information, where:
所述最短路径信息包括目的SN的SID和所述SF的SID;The shortest path information includes a SID of the destination SN and an SID of the SF;
所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述目的SN和所述每个SN的SID为MPLS标签,所述SF的SID为 MPLS标签;或者,With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the SID of the destination SN and the SN is an MPLS label, and the SID of the SF is MPLS label; or,
所述目的SN的SID为IPv6全局地址,所述SF的SID为LLA。The SID of the destination SN is an IPv6 global address, and the SID of the SF is an LLA.
结合前述的第二方面或第二方面的前述任意一种可能的实现,在第二方面的第三种可能的实现方式中,所述Echo Request消息为MPLS Echo Request消息,相应地,所述Echo Reply消息为MPLS Echo Reply消息,所述Echo Request消息包含SF的标识具体为:With reference to the foregoing second aspect or any one of the foregoing possible implementations of the foregoing aspect, in a third possible implementation manner of the second aspect, the Echo Request message is an MPLS Echo Request message, and correspondingly, the Echo The reply message is an MPLS Echo Reply message, and the Echo Request message includes the identifier of the SF, which is specifically:
在所述MPLS Echo Request消息中新增业务SF等价类(Forwarding Equivalence Class,FEC)字段,在所述SF FEC字段中携带所述SF的标识。A service SF Equivalence Class (FEC) field is added to the MPLS Echo Request message, and the SF identifier is carried in the SF FEC field.
结合前述的第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式中的任意一种实现方式,在第二方面的第四种可能的实现方式中,所述Echo Request消息为互联网控制信息协议第6版(Internet Control Message Protocol V6,ICMPv6)Echo Request消息,相应地,所述Echo Reply为ICMPv6Echo Reply消息,所述Echo Request消息包含SF的标识具体为:In combination with the foregoing second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect, the fourth possible implementation manner of the second aspect The Echo Request message is an Internet Control Message Protocol (VIP) 6th Echo Request message. The Echo Request message is an ICMPv6Echo Reply message, and the Echo Request message includes an SF identifier. for:
在所述ICMPv6Echo Request消息中新增业务功能标识(SF ID)字段,通过所述SF ID字段携带所述SF的标识。A service function identifier (SF ID) field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
结合前述的第二方面或第二方面的前述任意一种可能的实现方式,在第二方面的第五种可能的实现方式中,所述发送节点根据所述Echo Reply消息确定到达所述SF的路径是否连通包括:With reference to the foregoing second aspect or any one of the foregoing possible implementation manners of the foregoing aspect, in a fifth possible implementation manner of the second aspect, the sending node determines, according to the Echo Reply message, the arrival of the SF Whether the path is connected includes:
所述发送节点根据所述Echo Reply消息中携带的返回代码的值,确定到达所述SF的路径是否连通。The sending node determines, according to the value of the return code carried in the Echo Reply message, whether the path to the SF is connected.
结合前述的第二方面或第二方面的前述任意一种可能的实现方式,在第二方面的第六种可能的实现方式中,所述Echo Request消息中携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示所述目的SN检测所述SF是否处于可用状态。With reference to the foregoing second aspect or any one of the foregoing possible implementation manners of the foregoing aspect, in the sixth possible implementation manner of the second aspect, the Echo Request message is configured to detect whether the SF is available. And detecting the identifier, where the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
根据本发明实施例的第三方面,提供了一种路径连通性检测装置,所述装置适用于SR网络,所述装置包括:According to a third aspect of the embodiments of the present invention, there is provided a path connectivity detecting apparatus, the apparatus being applicable to an SR network, the apparatus comprising:
接收单元,用于接收发送节点发送的Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的SID;a receiving unit, configured to receive an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, where a packet header of the Echo Request message includes path information that reaches the SF, where the path information includes SID of SF;
判断单元,用于当根据所述SF的标识确定所述SF与所述装置关联时,判 断所述装置存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致;发送单元,用于当所述判断单元判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF的路径连通,向所述发送节点发送第一Echo Reply消息,所述第一Echo Reply消息中携带的返回代码的值用于指示到达所述SF的路径连通。a determining unit, configured to determine, when the SF is associated with the device according to the identifier of the SF, Determining whether the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information; and sending, by the determining unit, determining, by the determining unit, an SID corresponding to the SF stored by the device When the SIDs of the SFs in the path information are consistent, the path to the SF is determined to be connected, and the first Echo Reply message is sent to the sending node, and the value of the return code carried in the first Echo Reply message is Used to indicate the path connectivity to the SF.
在第三方面的第一种可能的实现方式中,所述发送单元还用于:In a first possible implementation manner of the third aspect, the sending unit is further configured to:
当所述判断单元判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带返回代码的值,所述返回代码的值用于指示到达所述SF的路径不连通。When the determining unit determines that the SID corresponding to the SF stored by the device does not match the SID of the SF included in the path information, determining that the path to the SF is not connected, and sending the first to the sending node And a second Echo Reply message, where the second Echo Reply message carries a value of a return code, where the value of the return code is used to indicate that the path to the SF is disconnected.
在第三方面的第二种可能的实现方式中,所述装置还包括:In a second possible implementation manner of the third aspect, the device further includes:
检测单元,用于当所述判断单元判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态;a detecting unit, configured to: when the determining unit determines that the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
其中,所述检测单元具体用于:The detecting unit is specifically configured to:
向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,接收所述SF主动发送的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。Sending a status detection request to the SF, receiving a status response message sent by the SF, determining, according to the status response message, whether the SF is in an available state; or receiving a status report message sent by the SF, according to the The status report message determines if the SF is in an available state.
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述发送单元还用于:In conjunction with the second possible implementation of the third aspect, in a third possible implementation manner of the third aspect, the sending unit is further configured to:
当所述检测单元确定所述SF处于不可用状态时,向所述发送节点发送的所述第一Echo Reply消息携带的所述返回代码的值用于指示所述SF处于不可用状态。And when the detecting unit determines that the SF is in an unavailable state, the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate that the SF is in an unavailable state.
根据本发明实施例的第四方面,提供了一种路径连通性检测装置,所述装置适用于SR网络,所述装置包括:According to a fourth aspect of the present invention, there is provided a path connectivity detecting apparatus, the apparatus being applicable to an SR network, the apparatus comprising:
构造单元,用于构造Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息;a constructing unit, configured to construct an Echo Request message, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF;
发送单元,用于根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的业务节点SN;a sending unit, configured to send the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF;
接收单元,用于接收所述接收节点发送的回显响应Echo Reply消息,所述 Echo Reply消息为针对所述Echo Request消息的响应消息;a receiving unit, configured to receive an echo response Echo Reply message sent by the receiving node, where The Echo Reply message is a response message for the Echo Request message;
确定单元,用于根据所述Echo Reply消息确定到达所述SF的路径是否连通。And a determining unit, configured to determine, according to the Echo Reply message, whether a path to the SF is connected.
在第四方面的第一种可能的实现方式中,所述构造单元构造的Echo Request消息的报文头中包含的路径信息包括最短路径信息或者显式路径信息,其中:In a first possible implementation manner of the fourth aspect, the path information included in the packet header of the Echo Request message constructed by the constructing unit includes shortest path information or explicit path information, where:
所述最短路径信息包括目的SN的SID和所述SF的SID;The shortest path information includes a SID of the destination SN and an SID of the SF;
所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述目的SN和所述每个SN的SID为MPLS标签,所述SF的SID为MPLS标签;或者,所述目的SN的SID为IPv6全局地址,所述SF的SID为LLA。With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the SID of the destination SN and each SN is an MPLS label, and the SID of the SF is MPLS. The SID of the destination SN is an IPv6 global address, and the SID of the SF is an LLA.
结合第四方面或第四方面的前述任意一种可能的实现方式,在第四方面的第三种可能的实现方式中,所述构造单元构造的所述Echo Request消息为MPLS Echo Request消息,相应地,所述接收单元接收的所述Echo Reply消息为MPLS Echo Reply消息,所述构造单元具体用于:With reference to the fourth aspect, or any one of the foregoing possible implementation manners of the fourth aspect, in the third possible implementation manner of the fourth aspect, the Echo Request message configured by the constructing unit is an MPLS Echo Request message, corresponding to The Echo Reply message received by the receiving unit is an MPLS Echo Reply message, and the constructing unit is specifically configured to:
在所述MPLS Echo Request消息中新增SF FEC字段,在所述SF FEC字段中携带所述SF的标识。An SF FEC field is added to the MPLS Echo Request message, and the identifier of the SF is carried in the SF FEC field.
结合第四方面或第四方面的第一种可能的实现方式至第四方面的第二种可能的实现方式中的任意一种,在第四方面的第四种可能的实现方式中,所述构造单元构造的所述Echo Request消息为ICMPv6Echo Request消息,相应地,所述接收单元接收的所述Echo Reply为ICMPv6Echo Reply消息,所述构造单元具体用于:With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, to any one of the second possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, The Echo Request message constructed by the structuring unit is an ICMPv6Echo Request message, and the Echo Reply received by the receiving unit is an ICMPv6Echo Reply message, where the constructing unit is specifically configured to:
在所述ICMPv6Echo Request消息中新增业务功能标识SF ID字段,通过所述SF ID字段携带所述SF的标识。A service function identifier SF ID field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
结合第四方面或第四方面的前述任意一种可能的实现方式,在第四方面的第五种可能的实现方式中,所述确定单元具体用于:With reference to the fourth aspect, or any one of the foregoing possible implementation manners of the fourth aspect, in the fifth possible implementation manner of the fourth aspect, the determining unit is specifically configured to:
根据所述Echo Reply消息中携带的返回代码的值,确定到达所述SF的路径是否连通。 Determining whether the path to the SF is connected according to the value of the return code carried in the Echo Reply message.
结合第四方面或第四方面的任意一种可能的实现方式,在第四方面的第六种可能的实现方式中,所述构造单元构造的所述Echo Request消息中携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示所述目的SN检测所述SF是否处于可用状态。With the fourth aspect or any one of the possible implementation manners of the fourth aspect, in the sixth possible implementation manner of the fourth aspect, the Echo Request message configured by the constructing unit is configured to detect the SF Whether the detection identifier is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
本发明实施例提供的路径连通性检测方法及装置,通过接收Echo Request消息,根据Echo Request消息中携带的SF的标识以及所述Echo Request消息的报文头中包含的路径信息,确定所述SF与接收节点关联时,判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的SF的SID是否一致,当判断接收节点存储的对应所述SF的SID与所述路径信息中包含的SF的SID一致时,确定到达所述SF的路径连通,则向发送节点发送Echo Reply消息,以便发送节点根据所述Echo Reply消息中携带的返回代码的值确定到达所述SF的路径连通。本发明实施例提供的方法实现了在SR网络中业务链SFC路径连通性的检测,有利于在SR-SFC网络中实现OAM功能。The path connectivity detection method and device provided by the embodiment of the present invention determines the SF according to the identifier of the SF carried in the Echo Request message and the path information included in the packet header of the Echo Request message, by receiving the Echo Request message. When it is associated with the receiving node, it is determined whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, and the SID corresponding to the SF and the path information stored by the receiving node are determined. If the SIDs of the SFs are consistent, the path to the SF is determined to be connected, and the Echo Reply message is sent to the sending node, so that the sending node determines the path to the SF according to the value of the return code carried in the Echo Reply message. Connected. The method provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only These are some of the embodiments described in this application, and other figures can be obtained from those of ordinary skill in the art in view of these drawings.
图1为现有技术中的业务链技术示意图;1 is a schematic diagram of a service chain technology in the prior art;
图2为本发明实施例提供的一种路径连通性检测方法的流程示意图;2 is a schematic flowchart of a path connectivity detecting method according to an embodiment of the present invention;
图3为本发明实施例提供的Echo Request消息的一种实现方式示意图;FIG. 3 is a schematic diagram of an implementation manner of an Echo Request message according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种路径连通性检测方法的流程示意图;FIG. 4 is a schematic flowchart diagram of a method for detecting path connectivity according to an embodiment of the present disclosure;
图5为现有技术中MPLS Echo Request消息结构示意图;5 is a schematic structural diagram of an MPLS Echo Request message in the prior art;
图6为本发明实施例提供的SF FEC的TLV字段的一种实现形式示意图;FIG. 6 is a schematic diagram of an implementation form of a TLV field of an SF FEC according to an embodiment of the present disclosure;
图7为本发明实施例提供的ICMPv6Echo Request消息新增SF ID字段的一种实现形式示意图;FIG. 7 is a schematic diagram of an implementation form of adding an SF ID field to an ICMPv6 Echo Request message according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种路径连通性检测方法流程示意图;FIG. 8 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention;
图9为本发明实施例提供的MPLS Echo Request消息一种实现方式示意图;FIG. 9 is a schematic diagram of an implementation manner of an MPLS Echo Request message according to an embodiment of the present disclosure;
图10为本发明实施例提供的一种路径连通性检测方法流程示意图; FIG. 10 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention;
图11为本发明实施例提供的ICMPv6Echo Request消息一种实现方式示意图;FIG. 11 is a schematic diagram of an implementation manner of an ICMPv6 Echo Request message according to an embodiment of the present disclosure;
图12为本发明实施例提供的一种路径连通性检测装置示意图;FIG. 12 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention;
图13为本发明实施例提供的一种路径连通性检测装置示意图;FIG. 13 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention;
图14为本发明实施例提供的一种路径连通性检测装置示意图;FIG. 14 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention;
图15为本发明实施例提供的一种路径连通性检测装置示意图。FIG. 15 is a schematic diagram of a path connectivity detecting apparatus according to an embodiment of the present invention.
具体实施方式detailed description
在现有技术中,在SR网络中实现SFC时,却无法实现对SF的OAM功能,例如无法实现对SF的路径连通性和可用性检测。这是因为,在现有的MPLSOAM技术中,并不支持对SF连通性或可用性的检测。此外,由于在现有的IPv6协议中,通常使用IPv6Ping命令检测路径的连通性,当使用IPv6Ping检测LLA地址时,由于IPv6Ping命令通常需要命令的发送方与接收方是直接连接的。然而,对于SFC的场景,检测命令的发送方(例如分类器)与接收方SF通常并不是直接连接的,因此当使用IPv6地址表示SN或者SF的段标识SID时,无法使用IPv6Ping命令检测路径的连通性。In the prior art, when SFC is implemented in an SR network, the OAM function for the SF cannot be implemented. For example, path connectivity and availability detection for the SF cannot be implemented. This is because the detection of SF connectivity or availability is not supported in the existing MPLS OAM technology. In addition, in the existing IPv6 protocol, the IPv6 Ping command is generally used to detect the connectivity of the path. When the IPv6 Ping is used to detect the LLA address, the IPv6 Ping command usually requires the sender of the command to be directly connected to the receiver. However, for the SFC scenario, the sender of the detection command (eg, the classifier) is not directly connected to the receiver SF. Therefore, when the IPv6 address is used to indicate the segment identifier SID of the SN or SF, the path cannot be detected using the IPv6 Ping command. Connectivity.
然而,在SR-SFC网络中,在业务节点SN的控制平面下发SF的SID时,可能由于故障或出错等原因,造成SN的控制平面为SF分配的SID与转发平面中保存的SF的SID存在不一致的情况。因此,亟需一种路径连通性检测方法和装置,在数据平面(转发平面)出错时实现对路径连通性的检测,以在SR-SFC网络中实现OAM功能。However, in the SR-SFC network, when the SID of the SF is sent by the control plane of the service node SN, the SID allocated by the control plane of the SN and the SID of the SF saved in the forwarding plane may be caused by a fault or an error. There are inconsistencies. Therefore, there is a need for a path connectivity detection method and apparatus for detecting path connectivity when an error occurs in a data plane (forward plane) to implement OAM functions in an SR-SFC network.
基于此,本发明实施例提供了一种路径连通性检测方法及装置,能够在SR网络中实现对路径连通性的检测,有利于在SR-SFC网络中实现OAM功能。Based on this, the embodiment of the present invention provides a path connectivity detection method and device, which can implement path connectivity detection in an SR network, and is beneficial to implementing OAM functions in an SR-SFC network.
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. The embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一 种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the embodiments of the present invention are for the purpose of describing particular embodiments only and are not intended to limit the invention. The singular form "a" used in the embodiments of the invention and the appended claims The terms "and" and "the" are also intended to include the plural unless the context clearly indicates otherwise. It is also understood that the term "and/or" as used herein means and includes one or more List any or all possible combinations of items.
参见图2,图2为本发明实施例提供的一种路径连通性检测方法的流程示意图,适用于SR网络,可以包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method for detecting a path connectivity according to an embodiment of the present invention, which is applicable to an SR network, and may include the following steps:
S201,接收节点接收发送节点发送的Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的SID。S201: The receiving node receives an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes the SF. SID.
所述SF的标识SF ID用于在业务路由域(SFC-enabled domain)或业务链域(Service Chain Domain)中标识一个SF。其中,业务链域包括业务链上的各节点,通常包括至少一个业务分类器和一个或多个业务节点SN,每个业务节点SN关联一个或多个SF。其中,SF与其所关联的SN可以在同一系统内部实现,例如SF可以是SN系统内部的一个模块,SN与SF的通信是私有实现。当然,SF也可以独立于SN存在,例如以独立的服务器、服务器上的虚拟机(Virtual Machine,VM)、专有硬件设备等方式实现并连接到SN上。SR网络可以包括一个或多个业务链域。以图1所示的业务链示意图为例,业务链域包括一个入口节点(Ingress SN),可以为Service Classifier和两个业务节点SN1和SN2以及出口节点(Egress SN),SN1关联SF A和SF B,SN2关联SF C。SF A、SF B和SF C均有与其对应的SF ID,用于在业务链域唯一标识对应的SF。The identifier SF ID of the SF is used to identify an SF in a SFC-enabled domain or a Service Chain Domain. The service chain domain includes nodes on the service chain, and usually includes at least one service classifier and one or more service nodes SN, and each service node SN is associated with one or more SFs. The SF and the SN associated with it can be implemented in the same system. For example, the SF can be a module inside the SN system, and the communication between the SN and the SF is a private implementation. Of course, the SF can also exist independently of the SN, for example, by using a separate server, a virtual machine (VM) on the server, a proprietary hardware device, and the like, and connecting to the SN. The SR network may include one or more service chain domains. Taking the service chain diagram shown in Figure 1 as an example, the service chain domain includes an ingress SN, which can be a Service Classifier and two service nodes SN1 and SN2 and an egress SN. SN1 associates SF A and SF. B, SN2 is associated with SF C. SF A, SF B, and SF C have their corresponding SF IDs, which are used to uniquely identify the corresponding SFs in the service chain domain.
根据具体实现的不同,在所述Echo Request消息包含所述SF ID可以有不同的实现方式。在一种可能的实现方式中,所述Echo Request消息为MPLS Echo Request消息,在所述Echo Request消息包含所述SF ID具体可以是在所述MPLS Echo Request消息中新增SF FEC字段,在所述SF FEC字段中携带所述SF ID。在另外一种可能的实现方式中,所述Echo Request消息为ICMPv6Echo Request消息,在Echo Request消息包含SF ID具体可以是在所述ICMPv6Echo Request消息中新增业务功能标识SF ID字段,通过所述SF ID字段携带所述SF ID。其中,SF ID的具体形式可以是非常灵活的,例如使用字符串的方式或者使用地址信息表示,只要能够在业务链域唯一标识业务功能SF即可,本发明实施例对此不进行限定。Depending on the implementation, the Echo Request message may contain different implementations of the SF ID. In a possible implementation, the Echo Request message is an MPLS Echo Request message, and the Echo Request message includes the SF ID, and the SF FEC field may be added to the MPLS Echo Request message. The SF ID is carried in the SF FEC field. In another possible implementation manner, the Echo Request message is an ICMPv6Echo Request message, and the Echo Request message includes an SF ID, which may be: adding a service function identifier SF ID field in the ICMPv6 Echo Request message, by using the SF The ID field carries the SF ID. The specific form of the SF ID may be very flexible, for example, by using a string or by using address information, as long as the service function SF can be uniquely identified in the service chain domain, which is not limited by the embodiment of the present invention.
在所述Echo Request的报文头中包含到达所述SF的路径信息。所述发送 节点根据所述路径信息向所述接收节点发送所述Echo Request消息。具体地,所述接收节点为对应所述SF的目的SN。所述路径信息包含所述SF的SID。如图3所示,为接收节点接收的Echo Request消息的一种表现形式。在所述Echo Request消息的报文头中封装了路径信息,所述路径信息以SR(Segment Routing)头的形式表现。所述路径信息可以用不同的形式表示,例如可以包括最短路径信息或者显式路径信息,其中:所述最短路径信息包括目的SN的SID和所述SF的SID。所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。以图1所示为例,假设发送节点发送的Echo Request消息中携带SF C的SF ID,在Echo Request消息的报文头中包含的路径信息使用最短路径信息表示则为:{SID(SN2),SID(SF C)}。假设发送节点发送的Echo Request消息中携带SF C的SF ID,在Echo Request消息的报文头中包含的路径信息使用显示路径信息表示则为:{SID(SN1),SID(SN2),SID(SF C)}。The path information of the SF is included in the packet header of the Echo Request. The sending The node sends the Echo Request message to the receiving node according to the path information. Specifically, the receiving node is a destination SN corresponding to the SF. The path information includes an SID of the SF. As shown in FIG. 3, it is a representation form of an Echo Request message received by a receiving node. The path information is encapsulated in the header of the Echo Request message, and the path information is expressed in the form of an SR (Segment Routing) header. The path information may be expressed in different forms, for example, may include shortest path information or explicit path information, where: the shortest path information includes a SID of a destination SN and an SID of the SF. The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF. As shown in Figure 1, the Echo Request message sent by the sending node carries the SF ID of the SF C. The path information contained in the header of the Echo Request message is represented by the shortest path information: {SID(SN2) , SID (SF C)}. It is assumed that the Echo Request message sent by the sending node carries the SF ID of the SF C, and the path information included in the header of the Echo Request message is represented by the display path information: {SID(SN1), SID(SN2), SID( SF C)}.
S202,当所述接收节点根据所述SF的标识确定所述SF与所述接收节点关联时,判断所述接收节点存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致。S202, when the receiving node determines that the SF is associated with the receiving node according to the identifier of the SF, determining whether the SID corresponding to the SF stored by the receiving node is related to the SF included in the path information. The SID is consistent.
接收节点根据Echo Request消息中包含的SF ID确定所述SF与所述接收节点关联。所述SF与所述接收节点关联包括:所述SF所述接收节点中或者在所述接收节点外与所述接收节点连接。当所述SF在所述接收节点中时,所述SF可以是所述接收节点内部的一个模块;当所述SF在所述接收节点外时,SF独立于所述接收节点,可以在服务器、VM、专有硬件设备上实现并连接到所述接收节点上。接收节点判断所述接收节点存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致。具体实现时,获得在接收节点中保存的、与所述SF ID对应的SF的SID,比较所述获得的SF的SID与路径信息包含的所述SF的SID是否一致。具体实现时,接收节点根据SF ID获得转发平面中保存的与所述SF ID对应的SF的SID。本发明对业务节点保存SF的SID的形式不进行限定。业务节点还可以保存SF ID与SF的SID的对应关系,根据所述对应关系,确定与SF ID对应的SID。The receiving node determines that the SF is associated with the receiving node according to the SF ID included in the Echo Request message. The associating the SF with the receiving node includes: connecting, in the receiving node of the SF, or the receiving node, outside the receiving node. When the SF is in the receiving node, the SF may be a module inside the receiving node; when the SF is outside the receiving node, the SF is independent of the receiving node, and may be at the server, The VM, the proprietary hardware device is implemented and connected to the receiving node. The receiving node determines whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information. In a specific implementation, the SID of the SF corresponding to the SF ID saved in the receiving node is obtained, and the SID of the obtained SF is compared with the SID of the SF included in the path information. In a specific implementation, the receiving node obtains the SID of the SF corresponding to the SF ID saved in the forwarding plane according to the SF ID. The present invention does not limit the form in which the service node saves the SID of the SF. The service node may also store a correspondence between the SF ID and the SID of the SF, and determine the SID corresponding to the SF ID according to the correspondence.
S203,当判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF的路径连通,所述接收节点向所述发送节点发送第一Echo Reply消息,所述第一Echo Reply消息中携带返回 代码的值,所述返回代码的值用于指示到达所述SF的路径连通。S203, when it is determined that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, determining that the path to the SF is connected, and the receiving node is sent to the sending node. Sending a first Echo Reply message, where the first Echo Reply message carries a return The value of the code, the value of the return code is used to indicate the path connectivity to the SF.
当判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定能够根据由SID表示的SFC路径将报文转发至正确的SF上,因此,确定到达SF的路径连通。这时,接收节点向发送节点发送所述第一Echo Reply消息,所述第一Echo Reply消息中携带的返回代码的值,所述返回代码的值用于指示到达所述SF的路径连通。具体实现时,当所述Echo Request消息为MPLS Echo Request消息,相应地,所述第一Echo Reply消息为MPLS Echo Reply消息。当所述第一Echo Request消息为ICMPv6Echo Request消息,相应地,所述Echo Reply为ICMPv6Echo Reply消息。具体实现时,当确定到达SF的路径连通时,接收节点向发送节点发送的MPLS Echo Reply消息的返回代码的值为零,即return code=0。When it is determined that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, it is determined that the message can be forwarded to the correct SF according to the SFC path indicated by the SID, so , determine the path connectivity to the SF. At this time, the receiving node sends the first Echo Reply message to the sending node, the value of the return code carried in the first Echo Reply message, and the value of the return code is used to indicate that the path to the SF is connected. In a specific implementation, when the Echo Request message is an MPLS Echo Request message, the first Echo Reply message is an MPLS Echo Reply message. When the first Echo Request message is an ICMPv6Echo Request message, the Echo Reply is an ICMPv6Echo Reply message. In a specific implementation, when it is determined that the path to the SF is connected, the return code of the MPLS Echo Reply message sent by the receiving node to the sending node is zero, that is, return code=0.
当所述接收节点根据所述SF的标识确定所述SF与所述接收节点不关联或者判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,所述接收节点向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带的返回代码的值用于指示到达所述SF的路径不连通。具体实现时,当所述第二Echo Request消息为MPLS Echo Request消息,相应地,所述第二Echo Reply消息为MPLS Echo Reply消息,在所述MPLS Echo Reply消息中携带返回代码的值,例如return code=10时,指示标签不是标签路径中的特定标签。当所述Echo Request消息为ICMPv6Echo Request消息,相应地,所述响应消息为目的地址不可达Destination Unreachable Message消息。在所述Destination Unreachable Message消息中携带响应的返回代码的值,用于指示到达所述SF的路径不连通。Determining, by the receiving node, that the SF is not associated with the receiving node according to the identifier of the SF, or determining that the SID corresponding to the SF stored by the receiving node is inconsistent with the SID of the SF included in the path information. Determining that the path to the SF is not connected, the receiving node sends a second Echo Reply message to the sending node, and the value of the return code carried by the second Echo Reply message is used to indicate the path to the SF. Not connected. In a specific implementation, when the second Echo Request message is an MPLS Echo Request message, the second Echo Reply message is an MPLS Echo Reply message, and the value of the return code is carried in the MPLS Echo Reply message, for example, return When code=10, the indicator tag is not a specific tag in the tag path. When the Echo Request message is an ICMPv6Echo Request message, the response message is a destination address unreachable Destination Unreachable Message. The value of the return code of the response is carried in the Destination Unreachable Message to indicate that the path to the SF is disconnected.
需要说明的是,当接收节点根据所述SF ID确定在转发平面中不存在所述SF的SID,或者,确定在转发平面中不存在与路径信息中包含的所述SF的SID一致的SID时,也确定到达所述SF的路径不连通。当SF与其所关联的SN在同一系统内部实现时,例如SF可以是SN系统内部的一个模块,SN可以与SF实现私有通信。当SF独立于SN存在时,SN可以通过检查端口、VLAN(Virtual Local Area Network,虚拟局域网)接口等方式确定SN与SF的物理链路是否处于正常连接状态。当SN通过检测确定SN与SF的物理链路未正常连接时,则会删除转发平面中保存的所述SF的相应信息,例如SF的SID。因此,当接收 节点根据所述SF ID确定在转发平面中不存在与所述SF对应的SID时,也确定到达所述SF的路径不连通。It should be noted that when the receiving node determines, according to the SF ID, that the SID of the SF does not exist in the forwarding plane, or determines that there is no SID in the forwarding plane that is consistent with the SID of the SF included in the path information, It is also determined that the path to the SF is not connected. When the SF and its associated SN are implemented within the same system, for example, the SF may be a module internal to the SN system, and the SN may implement private communication with the SF. When the SF is independent of the SN, the SN can determine whether the physical link between the SN and the SF is in a normal connection state by checking a port or a VLAN (Virtual Local Area Network) interface. When the SN determines that the physical link between the SN and the SF is not normally connected, the corresponding information of the SF saved in the forwarding plane, such as the SID of the SF, is deleted. Therefore, when receiving The node determines, according to the SF ID, that there is no SID corresponding to the SF in the forwarding plane, and also determines that the path to the SF is disconnected.
在一种可能的实现方式中,当判断所述接收节点保存的与所述SF对应的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态。在一种可能的实现方式中,所述Echo Request消息中可以携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示所述目的SN检测所述SF是否处于可用状态。当接收节点确定接收的Echo Request消息中携带所述检测标识时,进一步检测所述SF是否处于可用状态。当然,在另外一种可能的实现方式中,接收节点可以自行决定是否进行SF的可用性检测。例如,接收节点根据自身的策略确定是否检测所述SF是否处于可用状态。本发明实施例对触发SN节点对SF的可用状态检测的条件不进行限定。In a possible implementation, when it is determined that the SID corresponding to the SF saved by the receiving node is consistent with the SID of the SF included in the path information, whether the SF is in an available state is further detected. In a possible implementation, the Echo Request message may carry a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state. When the receiving node determines that the received Echo Request message carries the detection identifier, it further detects whether the SF is in an available state. Of course, in another possible implementation manner, the receiving node may decide whether to perform the SF availability detection. For example, the receiving node determines whether to detect whether the SF is in an available state according to its own policy. The embodiment of the present invention does not limit the conditions for triggering the SN node to detect the available state of the SF.
其中,所述检测所述SF是否处于可用状态包括:所述接收节点向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,所述接收节点接收所述SF主动发送的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。。其中,SF是否处于可用状态可以包括检测SF是否故障或者检测SF是否支持相应业务功能的处理。当SF故障、负载过高时均可导致SF处于不可用状态。当根据所述状态响应消息或者状态报告消息确定SF处于不可用状态时,所述接收节点向所述发送节点发送Echo Reply消息,所述Echo Reply消息中携带的返回代码的值用于指示所述SF处于不可用状态。例如,接收节点在MPLS Echo Reply消息中新增返回代码,用于指示SF处于不可用状态。又如,接收节点在Destination Unreachable Message消息中新增返回代码,用于指示SF处于不可用状态。The detecting whether the SF is in an available state includes: the receiving node sending a status detection request to the SF, receiving a status response message sent by the SF, and determining, according to the status response message, whether the SF is available. a state; or, the receiving node receives a status report message that is sent by the SF, and determines, according to the status report message, whether the SF is in an available state. . Whether the SF is in an available state may include detecting whether the SF is faulty or detecting whether the SF supports the corresponding service function. When the SF fails and the load is too high, the SF can be in an unavailable state. When determining, according to the status response message or the status report message, that the SF is in an unavailable state, the receiving node sends an Echo Reply message to the sending node, where a value of a return code carried in the Echo Reply message is used to indicate the SF is in an unavailable state. For example, the receiving node adds a return code in the MPLS Echo Reply message to indicate that the SF is in an unavailable state. For another example, the receiving node adds a return code in the Destination Unreachable Message to indicate that the SF is in an unavailable state.
可选地,在接收节点发送的响应消息中可以携带SF ID。Optionally, the SF ID may be carried in the response message sent by the receiving node.
在一种可能的实现方式中,所述Echo Request消息中还包含目的业务节点SN的FEC,目的SN的FEC信息用于检测到达所述目的业务节点的路径是否连通。具体实现时,SN的FEC的值可以是SN的IP地址。SN根据SN的FEC判断是否存在与所述SN的FEC对应的SN的SID;如果存在,判断所述SN的SID是否与路径信息中包含的SN的SID一致。如果一致,确定到达SN的路径连通。如果不存在与所述SN对应的SID或者所述SN对应的SID与路径信息中包含的SN的SID不一致,则确定到达SN的路径不连通。具体实现时,当 SN的FEC的值是SN的IP地址时,SN判断是否保存了与该IP地址对应的SN的SID;如果存在,则比较自身保存的、与该IP地址对应的SN的SID是否与Echo Request消息中包含的SN的SID相同,如果相同,则确定到达SN的路径连通。如果不同或者不存在与该IP地址对应的SN的SID,则说明可能到达了错误的SN或者路径信息错误,即路径信息中表示的到达SN的路径不连通。In a possible implementation manner, the Echo Request message further includes an FEC of the destination service node SN, and the FEC information of the destination SN is used to detect whether the path to the destination service node is connected. In specific implementation, the value of the FEC of the SN may be the IP address of the SN. The SN determines whether there is a SID of the SN corresponding to the FEC of the SN according to the FEC of the SN; if yes, it determines whether the SID of the SN is consistent with the SID of the SN included in the path information. If consistent, it is determined that the path to the SN is connected. If there is no SID corresponding to the SN or the SID corresponding to the SN does not match the SID of the SN included in the path information, it is determined that the path to the SN is not connected. When it is implemented, when When the value of the FEC of the SN is the IP address of the SN, the SN determines whether the SID of the SN corresponding to the IP address is stored; if so, whether the SID of the SN corresponding to the IP address stored in the self is compared with the Echo Request message. The SIDs included in the SN are the same. If they are the same, the path to the SN is determined to be connected. If the SID of the SN corresponding to the IP address is different or does not exist, it indicates that the wrong SN or the path information error may have been reached, that is, the path to the SN indicated in the path information is not connected.
本发明实施例提供的路径连通性检测方法,通过接收Echo Request消息,根据Echo Request消息中携带的SF的标识以及所述Echo Request消息的报文头中包含的路径信息,确定所述SF与接收节点关联时判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的SF的SID是否一致,当判断接收节点存储的对应所述SF的SID与所述路径信息中包含的SF的SID一致时,确定到达所述SF的路径连通,则向发送节点发送Echo Reply消息,以便发送节点根据所述Echo Reply消息中携带的返回代码的值确定到达所述SF的路径连通。本发明实施例提供的方法实现了在SR网络中业务链SFC路径连通性的检测,有利于在SR-SFC网络中实现OAM功能。The path connectivity detection method provided by the embodiment of the present invention determines the SF and the receiving by receiving the Echo Request message according to the identifier of the SF carried in the Echo Request message and the path information included in the packet header of the Echo Request message. When the node is associated, it is determined whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, and the SID corresponding to the SF stored in the receiving node and the path information included in the path information are determined. If the SIDs of the SFs are consistent, the Echo Reply message is sent to the sending node, so that the sending node determines the path connectivity to the SF according to the value of the return code carried in the Echo Reply message. The method provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
参见图4,图4为本发明实施例提供的一种路径连通性检测方法流程示意图,所述方法适用于SR网络,所述方法可以包括:Referring to FIG. 4, FIG. 4 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention. The method is applicable to an SR network, and the method may include:
S401,发送节点构造Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息。S401: The sending node constructs an Echo Request message, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF.
在本发明实施例具体实现时,发送节点可以是分类器或者其他网元,例如可以是策略决策节点(Policy Decision Point,PDP),本发明对此不进行限定。In a specific implementation of the embodiment of the present invention, the sending node may be a classifier or other network element, for example, a policy decision point (PDP), which is not limited by the present invention.
发送节点构造Echo Request消息。如图3所示,为接收节点接收的Echo Request消息的一种表现形式。在Echo Request消息中包含SF的标识SF ID,其中,所述SF ID用于在业务路由域或者业务链域中标识一个SF。The sending node constructs an Echo Request message. As shown in FIG. 3, it is a representation form of an Echo Request message received by a receiving node. The Echo Request message includes an identifier SF ID of the SF, where the SF ID is used to identify an SF in a service routing domain or a service chain domain.
根据具体实现的不同,在所述Echo Request消息包含SF ID可以有不同的实现方式。在一种可能的实现方式中,所述Echo Request消息为MPLS Echo Request消息,在所述MPLS Echo Request消息包含SF ID具体可以是在所述MPLS Echo Request消息中新增SF FEC字段,在所述SF FEC字段中携带所述SF ID。图5为MPLS Echo Request消息的结构示意图,其中,所述MPLS Echo Request消息包含版本号(Version Number)、全局标识(Global Flags)、消息 类型(Message Type)、回复模式(Reply mode)、返回代码(Return Code)、返回子码(RReturn Subcode)、发送者句柄(Sender’s Handle)、序列号(Sequence Number)、发送时间戳/秒(TimeStamp Sent(seconds))、发送时间戳/毫秒(TimeStamp Sent(microseconds))、接收时间戳/秒(TimeStamp Received(seconds))、接收时间戳/毫秒(TimeStamp Received(microseconds))以及多个类型、长度和值(Type Length Value,TLV)字段。所述SF FEC可以以TLV方式携带在图5的TLVs部分。具体实现时,SF FEC可以如图6所示:子类型(Sub Type)可以是17,长度(Length)可以是4个字节,值(Value Field)可以是SF ID。当然,以上仅为示例性说明,不视为对本发明实施例的限制。Depending on the implementation, the Echo Request message may have different implementations including the SF ID. In a possible implementation, the Echo Request message is an MPLS Echo Request message, and the MPLS Echo Request message includes an SF ID, and the SF FEC field may be added to the MPLS Echo Request message. The SF ID is carried in the SF FEC field. 5 is a schematic structural diagram of an MPLS Echo Request message, where the MPLS Echo Request message includes a Version Number, a Global Flag, and a message. Message Type, Reply Mode, Return Code, RReturn Subcode, Sender's Handle, Sequence Number, Transmit Timestamp/sec (TimeStamp) Sent (seconds), TimeStamp Sent (microseconds), TimeStamp Received (seconds), TimeStamp Received (microseconds), and multiple types, lengths The Type Length Value (TLV) field. The SF FEC may be carried in the TLVs portion of FIG. 5 in a TLV manner. In specific implementation, the SF FEC may be as shown in FIG. 6: the Sub Type may be 17, the Length may be 4 bytes, and the Value Field may be the SF ID. The above is only an illustrative example and is not to be construed as limiting the embodiments of the present invention.
在另外一种可能的实现方式中,所述Echo Request消息为ICMPv6Echo Request消息,在Echo Request消息包含SF ID具体可以是在所述ICMPv6Echo Request消息中新增SF ID字段,通过所述SF ID字段携带所述SF ID。如图7所示,为在ICMPv6Echo Request消息中新增SF ID字段(或者参数)的一种实现形式。其中,类型type可以等于128,用于表明是Echo Request消息;代码值Code可以等于1,用于指示进行业务功能检查(Service Function Check);SF ID为携带在Echo Request消息中的数据(The data from the invoking Echo Request message),用于唯一标识SF ID。所述ICMPv6Echo Request消息还可以包括校验和(Checksum)、标识(Identifier)、序列号(Sequence Number)字段。In another possible implementation manner, the Echo Request message is an ICMPv6Echo Request message, and the Echo Request message includes an SF ID, which may be: adding an SF ID field in the ICMPv6Echo Request message, and carrying the SF ID field by using the SF ID field. The SF ID. As shown in FIG. 7, an implementation form of adding an SF ID field (or parameter) to an ICMPv6 Echo Request message is shown. The type type may be equal to 128, which is used to indicate that it is an Echo Request message; the code value Code may be equal to 1 for indicating a service function check (Service Function Check); and the SF ID is data carried in the Echo Request message (The data From the invoking Echo Request message), used to uniquely identify the SF ID. The ICMPv6Echo Request message may further include a checksum, an identifier, and a sequence number field.
其中,在以上各实现方式中,SF ID的具体形式可以是非常灵活的,例如使用字符串的方式或者使用地址信息表示,只要能够在业务链域唯一标识SF即可,本发明实施例对此不进行限定。In the above implementation manners, the specific form of the SF ID may be very flexible, for example, using a string or using address information, as long as the SF can be uniquely identified in the service chain domain, the embodiment of the present invention Not limited.
如图3所示,在Echo Request的报文头中包含到达所述SF的路径信息。所述发送节点根据所述路径信息向所述接收节点发送所述Echo Request消息。具体地,所述接收节点为对应所述SF的目的业务节点SN。所述路径信息包含所述SF的SID。在所述Echo Request消息的报文头中封装了路径信息,所述路径信息以SR头的形式表现。所述路径信息可以用不同的形式表示,例如可以包括最短路径信息或者显式路径信息,其中:所述最短路径信息包括目的SN的SID和所述SF的SID。所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。以图1所示为例,假设发送节点发送的Echo  Request消息中携带SF C的SF ID,在Echo Request消息的报文头中包含的路径信息使用最短路径信息表示则为:{SID(SN2),SID(SF C)}。假设发送节点发送的Echo Request消息中携带SF C的SF ID,在Echo Request消息的报文头中包含的路径信息使用显示路径信息表示则为:{SID(SN1),SID(SN2),SID(SF C)}。As shown in FIG. 3, the path information of the SF is included in the packet header of the Echo Request. The sending node sends the Echo Request message to the receiving node according to the path information. Specifically, the receiving node is a destination service node SN corresponding to the SF. The path information includes an SID of the SF. Path information is encapsulated in a packet header of the Echo Request message, and the path information is expressed in the form of an SR header. The path information may be expressed in different forms, for example, may include shortest path information or explicit path information, where: the shortest path information includes a SID of a destination SN and an SID of the SF. The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF. Take the example shown in Figure 1, suppose the Echo sent by the sending node. The request message carries the SF ID of the SF C, and the path information included in the packet header of the Echo Request message is represented by the shortest path information: {SID(SN2), SID(SF C)}. It is assumed that the Echo Request message sent by the sending node carries the SF ID of the SF C, and the path information included in the header of the Echo Request message is represented by the display path information: {SID(SN1), SID(SN2), SID( SF C)}.
其中,所述目的SN和所述每个SN的SID为MPLS标签,所述SF的SID为所述目的SN为所述SF分配的局部MPLS标签;或者,所述目的SN的SID为所述SR网络中的IPv6全局地址,所述SF的SID为所述目的SN分配给所述SF的LLA。The SID of the destination SN and the SN is an MPLS label, and the SID of the SF is a local MPLS label allocated by the destination SN to the SF; or the SID of the destination SN is the SR An IPv6 global address in the network, and the SID of the SF is an LLA assigned to the SF by the destination SN.
在一种可能的实现方式中,所述Echo Request消息中携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示目的SN检测所述SF是否处于可用状态。In a possible implementation, the Echo Request message carries a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
S402,所述发送节点根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的业务节点SN。S402. The sending node sends the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF.
发送节点根据Echo Request消息中的路径信息向接收节点发送所述Echo Request消息。其中,接收节点为对应所述SF的目的业务节点SN。具体实现时,回显请求消息Echo Request消息通过到达目的业务功能SF的最短路径或显式路径转发。其中,最短路径是指通过使用达到目的SF所在的SN的SID转发,显式路径转发指在到达目的SN之前,先顺次经过某些SN。亦即,所述最短路径信息包括目的SN的SID和所述SF的SID。所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The sending node sends the Echo Request message to the receiving node according to the path information in the Echo Request message. The receiving node is a destination service node SN corresponding to the SF. In a specific implementation, the Echo Request message is forwarded by the shortest path or the explicit path to the destination service function SF. The shortest path refers to the SID forwarding by using the SN that reaches the destination SF. The explicit path forwarding refers to the SN passing through some SNs before reaching the destination SN. That is, the shortest path information includes the SID of the destination SN and the SID of the SF. The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
S403,所述发送节点接收所述接收节点发送的Echo Reply消息,所述Echo Reply消息为针对所述Echo Request消息的响应消息。S403. The sending node receives an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message.
当接收节点接收到所述Echo Request消息后,会进行相应处理,并向发送节点回显响应Echo Reply消息。其中,接收节点进行的处理如图2所示实施例所示,可以参照图2所示实施例实现,在此不再赘述。After receiving the Echo Request message, the receiving node performs corresponding processing and echoes the Echo Reply message to the sending node. The processing performed by the receiving node is as shown in the embodiment shown in FIG. 2, and can be implemented by referring to the embodiment shown in FIG. 2, and details are not described herein again.
S404,所述发送节点根据所述Echo Reply消息确定到达所述SF的路径是否连通。S404. The sending node determines, according to the Echo Reply message, whether a path to the SF is connected.
具体实现时,发送节点根据所述响应消息中携带的返回代码的值,确定到达所述SF的路径是否连通。所述响应消息携带的返回代码的值用于指示到达目 的业务功能SF的路径不连通、到达目的业务功能SF路径连通但所述目的业务功能SF处于不可用状态或者到达目的业务功能SF的路径连通且所述目的业务功能SF处于可用状态。In a specific implementation, the sending node determines, according to the value of the return code carried in the response message, whether the path to the SF is connected. The value of the return code carried in the response message is used to indicate the destination The path of the service function SF is not connected, and the destination service function SF is connected to the destination service function SF, but the destination service function SF is in an unavailable state or the path to the destination service function SF is connected and the destination service function SF is in an available state.
在本发明这一实施例中,发送节点构造Echo Request消息,在Echo Request消息中携带的SF的标识,并在所述Echo Request消息的报文头中包含路径信息,并根据所述路径信息发送所述Echo Request消息,以便于接收节点根据所述SF以及所述路径信息包含的SID信息确定到达所述SF的路径是否连通,发送节点根据接收节点发送的响应消息Echo Reply消息中携带的返回代码的值确定到达所述SF的路径是否连通。本发明实施例提供的方法实现了在SR网络中SFC路径连通性的检测,方法实现简单。In this embodiment of the present invention, the sending node constructs an Echo Request message, the identifier of the SF carried in the Echo Request message, and includes path information in the packet header of the Echo Request message, and sends the path information according to the path information. The Echo Request message, so that the receiving node determines, according to the SF and the SID information included in the path information, whether the path to the SF is connected, and the sending node carries the return code carried in the Echo Reply message according to the response message sent by the receiving node. The value determines whether the path to the SF is connected. The method provided by the embodiment of the invention implements the detection of the connectivity of the SFC path in the SR network, and the method is simple to implement.
参见图8,图8为本发明实施例提供的一种路径连通性检测方法流程示意图。图8所示实施例适用于例如MPLS标签作为SN的SID和SF的SID的应用场景。Referring to FIG. 8, FIG. 8 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention. The embodiment shown in FIG. 8 is applicable to, for example, an MPLS label as an application scenario of the SID of the SN and the SID of the SF.
S801,发送节点构造MPLS Echo Request消息,向目的SF对应的目的SN发送所述MPLS Echo Request消息。S801. The sending node constructs an MPLS Echo Request message, and sends the MPLS Echo Request message to the destination SN corresponding to the destination SF.
其中,在所述MPLS Echo Request消息中的SF FEC字段携带SF ID,所述MPLS Echo Request消息的报文头中包含到达目的SF的路径信息。The SF FEC field in the MPLS Echo Request message carries the SF ID, and the packet header of the MPLS Echo Request message includes path information to the destination SF.
其中,发送节点构造的MPLS Echo Request消息可以如图9所示。其中,SR头封装了到达SF的路径信息,MPLS Echo Request消息以MPLS Ping报文的形式呈现。其中,SF的路径信息可以由MPLS标签栈(MPLS Lable Stack)表示。亦即MPLS Echo Request消息的报文头至少包含目的SN的SID(MPLS Lable)以及目的SF的SID(MPLS Lable)。假设SFP包含了n个SF,例如要检查该SFP中的第n个SF的连通性和可用性,只需要携带前n个SF对应的SN的SID以及第n个SF的SF SID即可,保证Echo Request沿着SFP转发,只是前n-1个SF不被执行而已。以此类推,分类器classifier依次检查1,2,…n个SF,最后就检查了整个SFP的连通性。当然,也可以直接携带第n个SF(即目的SF)对应的的SN的SID以及第n个SF的SF SID即可。The MPLS Echo Request message constructed by the sending node may be as shown in FIG. 9. The SR header encapsulates the path information of the SF, and the MPLS Echo Request message is presented in the form of an MPLS ping packet. The path information of the SF may be represented by an MPLS Lable Stack. That is, the packet header of the MPLS Echo Request message includes at least the SID (MPLS Lable) of the destination SN and the SID (MPLS Lable) of the destination SF. Assume that the SFP includes n SFs. For example, to check the connectivity and availability of the nth SF in the SFP, you only need to carry the SID of the SN corresponding to the first n SFs and the SF SID of the nth SF to ensure Echo. The Request is forwarded along the SFP, except that the first n-1 SFs are not executed. By analogy, the classifier classifier checks 1, 2, ... n SFs in turn, and finally checks the connectivity of the entire SFP. Of course, the SID of the SN corresponding to the nth SF (ie, the destination SF) and the SF SID of the nth SF may be directly carried.
S802,目的SN接收发送节点发送的MPLS Echo Request消息。S802. The destination SN receives an MPLS Echo Request message sent by the sending node.
S803,当目的SN根据所述SF FEC中的SF ID确定所述SF与所述目的SN 关联时,所述目的SN判断所述目的SN的转发平面中存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致。S803. Determine, by the destination SN, the SF and the destination SN according to the SF ID in the SF FEC. When the association is performed, the destination SN determines whether the SID corresponding to the SF stored in the forwarding plane of the destination SN is consistent with the SID of the SF included in the path information.
具体实现时,接收节点根据MPLS Echo Request消息中携带的SF FEC中的SF ID确定所述SF ID对应的SF与所述目的SN是否关联;如果关联检查转发平面中该SF ID所标识的SF对应的MPLS Lable(SID)与MPLS Echo Request的报文头中携带的SF MPLS Lable是否一致。如果一致,则确定达到所述SF的路径连通,如果转发平面存储的对应所述SF的SID与所述MPLS Echo Request的报文头中携带的SF MPLS Lable不一致,则确定到达所述SF的路径不连通。In a specific implementation, the receiving node determines, according to the SF ID in the SF FEC carried in the MPLS Echo Request message, whether the SF corresponding to the SF ID is associated with the destination SN, and the SF corresponding to the SF ID in the association check forwarding plane. Whether the MPLS Lable (SID) is consistent with the SF MPLS Lable carried in the packet header of the MPLS Echo Request. If they are consistent, it is determined that the path of the SF is reached. If the SID of the SF that is stored in the forwarding plane is inconsistent with the SF MPLS Lable carried in the packet header of the MPLS Echo Request, the path to the SF is determined. Not connected.
S804,当判断所述目的SN的转发平面中存储的该SF ID所标识的SF对应的SID与所述路径信息包含的所述SF的SID一致时,目的SN检测SF是否处于可用状态。S804: When it is determined that the SID corresponding to the SF identified by the SF ID stored in the forwarding plane of the destination SN is consistent with the SID of the SF included in the path information, the destination SN detects whether the SF is in an available state.
S805,目的SN向发送节点发送响应消息。S805. The destination SN sends a response message to the sending node.
当到达SF的路径不连通时,在MPLS Echo Reply中携带返回代码return code,所述返回代码的值用于指示到达SF的路径不连通。When the path to the SF is not connected, the return code is carried in the MPLS Echo Reply, and the value of the return code is used to indicate that the path to the SF is disconnected.
当到达到达SF的路径连通但SF处于不可用状态时,在MPLS Echo Reply中定义新的返回代码return code,所述返回代码的值用于指示到达到达SF的路径连通但SF处于不可用状态。例如,当return code的值为14时,指示SF处于不可用状态(Unavaililable)。When the path to the SF is reached but the SF is in an unavailable state, a new return code return code is defined in the MPLS Echo Reply, the value of the return code is used to indicate that the path to the SF is reached but the SF is in an unavailable state. For example, when the value of return code is 14, it indicates that the SF is in an unavailable state (Unavaililable).
当到达SF的路径连通且SF处于可用状态时,在MPLS Echo Reply中携带返回代码return code,所述返回代码的值可以等于零,用于指示到达SF的路径连通且SF处于可用状态。When the path to the SF is connected and the SF is in the available state, the return code is carried in the MPLS Echo Reply, and the value of the return code may be equal to zero, indicating that the path to the SF is connected and the SF is in an available state.
S806,发送节点接收目的SN发送的MPLS Echo Reply消息。S806. The sending node receives the MPLS Echo Reply message sent by the destination SN.
可选地,MPLS Echo Reply消息携带SF ID。发送节点可以根据所述SF ID确定返回的MPLS Echo Reply消息是对应哪一个SF的检测结果。Optionally, the MPLS Echo Reply message carries the SF ID. The sending node may determine, according to the SF ID, which SF detection result is returned by the returned MPLS Echo Reply message.
可选地,在MPLS Echo Request消息中还可以包含目的SN的FEC信息,目的SN的FEC信息用于检测到达所述目的业务节点的路径是否连通。具体实现时,SN的FEC的值可以是SN的IP地址,SN判断是否保存了与该IP地址对应的SN的MPLS label;如果存在,比较自身保存的、与该IP地址对应的MPLS label是否与MPLS Echo Request消息中包含的SN FEC对应的MPLS label 相同,如果相同,则确定到达SN的路径连通。如果不同或者根本不存在与该IP地址对应的MPLS label,则说明可能到达了错误的SN或者路径信息表述错误,即路径信息中表示的到达SN的路径不连通。Optionally, the MPLS Echo Request message may further include the FEC information of the destination SN, where the FEC information of the destination SN is used to detect whether the path to the destination service node is connected. In a specific implementation, the value of the FEC of the SN may be the IP address of the SN, and the SN determines whether the MPLS label of the SN corresponding to the IP address is saved; if yes, compares whether the MPLS label stored in the MPLS label corresponding to the IP address is MPLS label corresponding to the SN FEC contained in the MPLS Echo Request message The same, if the same, it is determined that the path to the SN is connected. If the MPLS label corresponding to the IP address does not exist at the same time or not, the SN or the path information representation error may be reached, that is, the path to the SN indicated in the path information is not connected.
参见图10,图10为本发明实施例提供的一种路径连通性检测方法流程示意图。图10所示实施例适用于例如IPv6地址标识SN的SID和SF的SID的应用场景。Referring to FIG. 10, FIG. 10 is a schematic flowchart of a path connectivity detection method according to an embodiment of the present invention. The embodiment shown in FIG. 10 is applicable to, for example, an application scenario of an SID of an IPv6 address identifier SN and an SID of an SF.
S1001,发送节点构造ICMPv6Echo Request消息,向目的SF对应的目的SN发送所述ICMPv6Echo Request消息。S1001: The sending node constructs an ICMPv6Echo Request message, and sends the ICMPv6Echo Request message to the destination SN corresponding to the destination SF.
其中,在所述ICMPv6Echo Request消息中的SF ID字段携带SF ID,所述ICMPv6Echo Request消息的报文头中包含到达目的SF的路径信息。The SF ID field in the ICMPv6 Echo Request message carries the SF ID, and the packet header of the ICMPv6 Echo Request message includes path information to the destination SF.
其中,发送节点构造的ICMPv6Echo Request消息可以如图11所示。其中,SR头封装了到达SF的路径信息,ICMPv6Echo Request消息以ICMPv6Ping报文的形式呈现。其中,SF的路径信息可以由IPv6地址列表表示。亦即ICMPv6Echo Request消息的报文头至少包含目的SN的SID以及目的SF的SID。其中,各SN的SID为IPv6全局地址,所述SF的SID为所述目的SN分配给所述SF的LLA。与图8所示实施例类似,例如要检查SFP中的第n个SF的连通性和可用性,只需要携带前n个SF对应的SN的SID以及第n个SF的SF SID即可,保证Echo Request沿着SFP转发,只是前n-1个SF不被执行而已。以此类推,分类器classifier依次检查1,2,…n个SF,最后就检查了整个SFP的连通性(如果该SFP包含了n个SF的话)。当然,也可以直接携带第n个SF(即目的SF)对应的的SN的SID以及第n个SF的SF SID即可。The ICMPv6Echo Request message constructed by the sending node may be as shown in FIG. 11. The SR header encapsulates the path information of the SF, and the ICMPv6Echo Request message is presented in the form of an ICMPv6Ping packet. The path information of the SF may be represented by an IPv6 address list. That is, the header of the ICMPv6 Echo Request message includes at least the SID of the destination SN and the SID of the destination SF. The SID of each SN is an IPv6 global address, and the SID of the SF is an LLA allocated to the SF by the destination SN. Similar to the embodiment shown in FIG. 8, for example, to check the connectivity and availability of the nth SF in the SFP, it is only necessary to carry the SID of the SN corresponding to the first n SFs and the SF SID of the nth SF to ensure Echo. The Request is forwarded along the SFP, except that the first n-1 SFs are not executed. By analogy, the classifier classifier checks 1, 2, ... n SFs in turn, and finally checks the connectivity of the entire SFP (if the SFP contains n SFs). Of course, the SID of the SN corresponding to the nth SF (ie, the destination SF) and the SF SID of the nth SF may be directly carried.
S1002,目的SN接收发送节点发送的ICMPv6Echo Request消息。S1002: The destination SN receives an ICMPv6Echo Request message sent by the sending node.
S1003,当目的SN根据所述SF ID确定所述SF ID对应的SF与所述目的SN关联时,判断所述目的SN的转发平面中存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致。S1003: When the destination SN determines that the SF corresponding to the SF ID is associated with the destination SN according to the SF ID, it is determined whether the SID corresponding to the SF stored in the forwarding plane of the destination SN is included in the path information. The SID of the SF is consistent.
具体实现时,接收节点根据ICMPv6Echo Request消息中携带的SF ID确定所述SF ID对应的SF与所述目的SN关联时,检查转发平面中存储的对应所述SF的SID是否与ICMPv6Echo Request的报文头中携带的SF SID一致,即是否存在与报文头中携带的LLA一致的LLA。如果存在一致的SID,则确定达 到所述SF的路径连通,如果转发平面中存储的对应所述SF的SID与所述ICMPv6Echo Request的报文头中携带的SID不一致,则确定到达所述SF的路径不连通。In a specific implementation, the receiving node determines, according to the SF ID carried in the ICMPv6Echo Request message, that the SF corresponding to the SF ID is associated with the destination SN, and checks whether the SID corresponding to the SF and the ICMPv6Echo Request packet are stored in the forwarding plane. The SF SIDs carried in the header are the same, that is, whether there is an LLA that is consistent with the LLA carried in the packet header. If there is a consistent SID, then determine The path to the SF is connected. If the SID corresponding to the SF stored in the forwarding plane does not match the SID carried in the header of the ICMPv6Echo Request, the path to the SF is determined to be disconnected.
S1004,当目的SN判断所述目的SN的转发平面中存储的对应所述SF的SID与所述路径信息包含的所述SF的SID一致时,目的SN检测SF是否处于可用状态。S1004: When the destination SN determines that the SID corresponding to the SF stored in the forwarding plane of the destination SN is consistent with the SID of the SF included in the path information, the destination SN detects whether the SF is in an available state.
S1005,目的SN向发送节点发送响应消息。S1005: The destination SN sends a response message to the sending node.
当到达SF的路径不连通时,在Destination Unreachable Message中携带返回代码return code,所述返回代码的值用于指示到达SF的路径不连通。When the path to the SF is not connected, the return code is carried in the Destination Unreachable Message, and the value of the return code is used to indicate that the path to the SF is disconnected.
当到达到达SF的路径连通但SF处于不可用状态时,在Destination Unreachable Message中定义新的返回代码return code,所述返回代码的值用于指示到达到达SF的路径连通但SF处于不可用状态。例如,当return code的值为8时,指示SF处于不可用状态(Unavaililable)。When the path to the SF is reached but the SF is in an unavailable state, a new return code return code is defined in the Destination Unreachable Message, the value of the return code is used to indicate that the path to the SF is reached but the SF is in an unavailable state. For example, when the value of the return code is 8, it indicates that the SF is in an unavailable state (Unavaililable).
当到达到达SF的路径连通且SF处于可用状态时,在ICMPv6Echo Reply中携带返回代码return code,用于指示到达SF的路径连通且SF处于可用状态。When the path to the SF is reached and the SF is in the available state, the ICMPv6Echo Reply carries a return code return code indicating that the path to the SF is connected and the SF is in an available state.
S1006,发送节点接收目的SN发送的响应消息。S1006: The sending node receives the response message sent by the destination SN.
可选地,响应消息携带SF ID。发送节点可以根据所述SF ID确定返回的响应消息是对应哪一个SF的检测结果。Optionally, the response message carries the SF ID. The sending node may determine, according to the SF ID, which of the SF detection results the returned response message corresponds to.
参见图12,图12为本发明实施例提供的一种路径连通性检测装置1200的示意图,所示装置1200可以为图2或图4或图8或图10所示的路径连通性检测方法中的接收节点。所述装置1200适用于SR网络,所述装置1200包括:Referring to FIG. 12, FIG. 12 is a schematic diagram of a path connectivity detecting apparatus 1200 according to an embodiment of the present invention. The apparatus 1200 may be in the path connectivity detecting method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG. Receive node. The device 1200 is applicable to an SR network, and the device 1200 includes:
接收单元1201,用于接收发送节点发送的Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的SID。The receiving unit 1201 is configured to receive an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, where the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes Describe the SID of the SF.
判断单元1202,用于当根据所述SF的标识确定所述SF与装置1200关联时,判断所述装置存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致。The determining unit 1202 is configured to determine, when the SF is associated with the device 1200 according to the identifier of the SF, whether the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information.
发送单元1203,用于当所述判断单元判断所述装置1200存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF 的路径连通,向所述发送节点发送第一Echo Reply消息,所述第一Echo Reply消息中携带的返回代码的值用于指示到达所述SF的路径连通。The sending unit 1203 is configured to determine, when the determining unit determines that the SID corresponding to the SF stored by the device 1200 is consistent with the SID of the SF included in the path information, determining that the SF is reached. The path is connected, and the first Echo Reply message is sent to the sending node, where the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
可选地,所述发送单元还用于:Optionally, the sending unit is further configured to:
当判断单元判断所述装置1200存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带的返回代码的值用于指示到达所述SF的路径不连通。When the determining unit determines that the SID corresponding to the SF stored by the device 1200 is inconsistent with the SID of the SF included in the path information, determining that the path to the SF is disconnected, and sending the second to the sending node An Echo Reply message, the value of the return code carried by the second Echo Reply message is used to indicate that the path to the SF is disconnected.
可选地,所述装置还包括:Optionally, the device further includes:
检测单元,用于当判断单元判断所述装置1200存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态;a detecting unit, configured to: when the determining unit determines that the SID corresponding to the SF stored by the device 1200 is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
其中,所述检测单元具体用于:The detecting unit is specifically configured to:
向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,接收所述SF主动发送的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。Sending a status detection request to the SF, receiving a status response message sent by the SF, determining, according to the status response message, whether the SF is in an available state; or receiving a status report message sent by the SF, according to the The status report message determines if the SF is in an available state.
可选地,所述发送单元还用于:Optionally, the sending unit is further configured to:
当所述检测单元确定所述SF处于不可用状态时,向所述发送节点发送的所述第一Echo Reply消息携带的返回代码的值用于指示所述SF处于不可用状态。When the detecting unit determines that the SF is in an unavailable state, the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate that the SF is in an unavailable state.
参见图13,图13为本发明实施例提供的一种用于路径连通性检测的SN1300。该SN 1300可以为图2或图4或图8或图10所示的路径连通性检测方法中的接收节点。参见图13所示示意图,SN 1300可包括至少一个处理器1301,至少一个网络接口1302或者其它通信接口,存储器1303,和至少一个通信总线1304,用于实现这些装置之间的连接通信。处理器1301用于执行存储器1303中存储的可执行模块,例如计算机程序。该处理器1301可以为CPU,存储器1303可能包含高速随机存取存储器(Random Access Memory,RAM),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口实现该系统网关与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。Referring to FIG. 13, FIG. 13 is an SN1300 used for path connectivity detection according to an embodiment of the present invention. The SN 1300 may be a receiving node in the path connectivity detection method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG. Referring to the schematic diagram of FIG. 13, the SN 1300 can include at least one processor 1301, at least one network interface 1302 or other communication interface, memory 1303, and at least one communication bus 1304 for enabling connection communication between these devices. The processor 1301 is configured to execute an executable module, such as a computer program, stored in the memory 1303. The processor 1301 may be a CPU, and the memory 1303 may include a high speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system gateway and at least one other network element is implemented by using at least one network interface, and an Internet, a wide area network, a local network, a metropolitan area network, or the like can be used.
所述存储器1303用于存储一组程序指令,所述处理器1301用于调用所述存储器1303存储的程序指令执行如下操作: The memory 1303 is configured to store a set of program instructions, and the processor 1301 is configured to invoke the program instructions stored by the memory 1303 to perform the following operations:
接收发送节点发送的Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的SID;Receiving an Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the SF, and the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes the SID of the SF;
当根据所述SF的标识确定所述SF与SN 1300关联时,判断所述SN 1300存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致;When it is determined that the SF is associated with the SN 1300 according to the identifier of the SF, it is determined whether the SID corresponding to the SF stored by the SN 1300 is consistent with the SID of the SF included in the path information;
当判断所述SN 1300存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF的路径连通,所述接收节点向所述发送节点发送第一Echo Reply消息,所述第一Echo Reply消息中携带的返回代码的值用于指示到达所述SF的路径连通。When it is determined that the SID corresponding to the SF stored by the SN 1300 is consistent with the SID of the SF included in the path information, determining that the path to the SF is connected, the receiving node sends a message to the sending node. An Echo Reply message, the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
其中,所述处理器1301还用于:当判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带的返回代码的值用于指示到达所述SF的路径不连通。The processor 1301 is further configured to: when it is determined that the SID corresponding to the SF stored by the device is inconsistent with the SID of the SF included in the path information, determine that the path to the SF is disconnected, Sending a second Echo Reply message to the sending node, where the value of the return code carried by the second Echo Reply message is used to indicate that the path to the SF is disconnected.
其中,所述处理器1301还用于:当判断所述SN 1300存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态;其中,所述检测所述SF是否处于可用状态包括:向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,接收所述SF主动发送的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。The processor 1301 is further configured to: when it is determined that the SID of the SF that is stored by the SN 1300 is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state. The detecting whether the SF is in an available state comprises: sending a status detection request to the SF, receiving a status response message sent by the SF, determining, according to the status response message, whether the SF is in an available state; or And receiving a status report message that is sent by the SF, and determining, according to the status report message, whether the SF is in an available state.
其中,所述处理器1301还用于:当确定所述SF处于不可用状态时,向所述发送节点发送的所述第一Echo Reply消息携带的所述返回代码的值用于指示所述SF处于不可用状态。The processor 1301 is further configured to: when determining that the SF is in an unavailable state, the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate the SF Is not available.
本发明实施例提供的用于路径连通性检测的SN 1300,通过接收Echo Request消息,当根据所述SF的标识确定所述SF与装置关联时且判断所述装置存储的对应所述SF的SID与所述路径信息包含的所述SF的SID一致时,确定到达所述SF的路径连通,则向发送节点发送Echo Reply消息,以便发送节点根据所述Echo Reply消息中携带的返回代码的值确定到达所述SF的路径连通。本发明实施例提供的装置实现了在SR网络中业务链SFC路径连通性的检测,有利于在SR-SFC网络中实现OAM功能。The SN 1300 for path connectivity detection provided by the embodiment of the present invention, when receiving the Echo Request message, determines that the SF is associated with the device according to the identifier of the SF, and determines that the SID corresponding to the SF stored by the device is determined. And determining, when the SID of the SF is consistent with the path information, determining that the path to the SF is connected, sending an Echo Reply message to the sending node, so that the sending node determines, according to the value of the return code carried in the Echo Reply message. The path to the SF is connected. The device provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
参见图14,图14为本发明实施例提供的一种路径连通性检测装置1400的 意图,该装置1400可以为图2或图4或图8或图10所示的路径连通性检测方法中的发送节点。所述装置1400适用于SR网络,所述装置1400包括:Referring to FIG. 14, FIG. 14 is a path connectivity detecting apparatus 1400 according to an embodiment of the present invention. It is intended that the apparatus 1400 can be a transmitting node in the path connectivity detection method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG. The apparatus 1400 is applicable to an SR network, and the apparatus 1400 includes:
构造单元1401,用于构造Echo Request消息,所述Echo Request消息包含业务功能SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息。The constructing unit 1401 is configured to construct an Echo Request message, where the Echo Request message includes an identifier of the service function SF, and the packet header of the Echo Request message includes path information that reaches the SF.
发送单元1402,用于根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的业务节点SN。The sending unit 1402 is configured to send the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF.
接收单元1403,用于接收所述接收节点发送的Echo Reply消息,所述Echo Reply消息为针对所述Echo Request消息的响应消息。The receiving unit 1403 is configured to receive an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message.
确定单元1404,用于根据所述Echo Reply消息确定到达所述SF的路径是否连通。The determining unit 1404 is configured to determine, according to the Echo Reply message, whether a path to the SF is connected.
可选地,所述构造单元构造的Echo Request消息的报文头中包含的路径信息包括最短路径信息或者显式路径信息,其中:Optionally, the path information included in the packet header of the Echo Request message constructed by the constructing unit includes shortest path information or explicit path information, where:
所述最短路径信息包括目的SN的SID和所述SF的SID;The shortest path information includes a SID of the destination SN and an SID of the SF;
所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
可选地,所述目的SN和所述每个SN的SID为MPLS标签,所述SF的SID为所述目的SN为所述SF分配的MPLS标签;或者,所述目的SN的SID为IPv6全局地址,所述SF的SID为LLA。Optionally, the SID of the destination SN and the SN is an MPLS label, and the SID of the SF is an MPLS label allocated by the destination SN to the SF; or the SID of the destination SN is an IPv6 global Address, the SID of the SF is LLA.
可选地,所述构造单元构造的所述Echo Request消息为MPLS Echo Request消息,相应地,所述接收单元接收的所述Echo Reply消息为MPLS Echo Reply消息,所述构造单元具体用于:Optionally, the Echo Request message configured by the constructing unit is an MPLS Echo Request message, and the Echo Reply message received by the receiving unit is an MPLS Echo Reply message, where the constructing unit is specifically configured to:
在所述MPLS Echo Request消息中新增SF FEC字段,在所述SF FEC字段中携带所述SF的标识。An SF FEC field is added to the MPLS Echo Request message, and the identifier of the SF is carried in the SF FEC field.
可选地,所述构造单元构造的所述Echo Request消息为ICMPv6Echo Request消息,相应地,所述接收单元接收的所述Echo Reply为ICMPv6Echo Reply消息,所述构造单元具体用于:Optionally, the Echo Request message configured by the constructing unit is an ICMPv6Echo Request message, and the Echo Reply received by the receiving unit is an ICMPv6Echo Reply message, where the constructing unit is specifically configured to:
在所述ICMPv6Echo Request消息中新增SF ID字段,通过所述SF ID字段携带所述SF的标识。An SF ID field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
可选地,所述确定单元具体用于: Optionally, the determining unit is specifically configured to:
根据所述Echo Reply消息中携带的返回代码的值,确定到达所述SF的路径是否连通。Determining whether the path to the SF is connected according to the value of the return code carried in the Echo Reply message.
可选地,所述构造单元构造的所述Echo Request消息中还携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示所述目的SN检测所述SF是否处于可用状态。Optionally, the Echo Request message configured by the constructing unit further carries a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate that the destination SN detects whether the SF is in an available state.
可选地,所述确定单元还用于:Optionally, the determining unit is further configured to:
根据所述Echo Reply消息中携带的返回代码的值,确定所述SF是否处于可用状态。Determining whether the SF is in an available state according to a value of a return code carried in the Echo Reply message.
参见图15,图15为本发明实施例一种用于路径连通性检测的SN 1500的示意图。该SN 1500可以为图2或图4或图8或图10所示的路径连通性检测方法中的发送节点。所述SN 1500可包括至少一个处理器1501,至少一个网络接口1502或者其它通信接口,存储器1503,和至少一个通信总线1504,用于实现这些装置之间的连接通信。处理器1501用于执行存储器1503中存储的可执行模块,例如计算机程序。存储器1503可能包含RAM,也可能还包括非不稳定的存储器,例如至少一个磁盘存储器。通过至少一个网络接口实现该系统网关与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。Referring to FIG. 15, FIG. 15 is a schematic diagram of an SN 1500 for path connectivity detection according to an embodiment of the present invention. The SN 1500 may be a transmitting node in the path connectivity detection method shown in FIG. 2 or FIG. 4 or FIG. 8 or FIG. The SN 1500 can include at least one processor 1501, at least one network interface 1502 or other communication interface, a memory 1503, and at least one communication bus 1504 for enabling connection communication between the devices. The processor 1501 is configured to execute an executable module, such as a computer program, stored in the memory 1503. The memory 1503 may include RAM, and may also include non-volatile memory, such as at least one disk storage. The communication connection between the system gateway and at least one other network element is implemented by using at least one network interface, and an Internet, a wide area network, a local network, a metropolitan area network, or the like can be used.
所述存储器1503用于存储一组程序指令,所述处理器1501用于调用所述存储器1503存储的程序指令执行如下操作:The memory 1503 is configured to store a set of program instructions, and the processor 1501 is configured to invoke the program instructions stored by the memory 1503 to perform the following operations:
其中,所述处理器1501用于:构造Echo Request消息,所述Echo Request消息包含SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息;根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的业务节点SN;接收所述接收节点发送的Echo Reply消息,所述Echo Reply消息为针对所述Echo Request消息的响应消息;根据所述Echo Reply消息确定到达所述SF的路径是否连通。The processor 1501 is configured to: construct an Echo Request message, where the Echo Request message includes an identifier of the SF, where a packet header of the Echo Request message includes path information that reaches the SF; and according to the path information, The receiving node sends the Echo Request message, the receiving node is a destination service node SN corresponding to the SF, and receives an Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message. Determining whether the path to the SF is connected according to the Echo Reply message.
其中,所述处理器1501还用于:在构造Echo Request消息的报文头中包含的路径信息包括最短路径信息或者显式路径信息,其中:所述最短路径信息包括目的SN的SID和所述SF的SID;所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The processor 1501 is further configured to: the path information included in the packet header of the Echo Request message includes the shortest path information or the explicit path information, where the shortest path information includes the SID of the destination SN and the The SID of the SF; the explicit path information includes an SID of each SN passing through the destination SN and an SID of the SF.
其中,所述处理器1501还用于:在构造的Echo Request消息的报文头中包 含的路径信息中包括的所述目的SN和所述每个SN的SID为MPLS标签,所述SF的SID为MPLS标签;或者,所述目的SN的SID为IPv6全局地址,所述SF的SID为LLA。The processor 1501 is further configured to: package the packet in the header of the constructed Echo Request message. The SID of the destination SN and the SID of the SN are MPLS labels, and the SID of the SF is an MPLS label; or the SID of the destination SN is an IPv6 global address, and the SID of the SF For LLA.
其中,所述处理器1501还用于:构造MPLS Echo Request消息,在MPLS Echo Request消息中新增SF FEC字段,在所述SF FEC字段中携带所述SF的标识。The processor 1501 is further configured to: construct an MPLS Echo Request message, add an SF FEC field in the MPLS Echo Request message, and carry the identifier of the SF in the SF FEC field.
其中,所述处理器1501还用于:构造ICMPv6Echo Request消息,在所述ICMPv6Echo Request消息中新增SF ID字段,通过所述SF ID字段携带所述SF的标识。The processor 1501 is further configured to: construct an ICMPv6Echo Request message, add an SF ID field in the ICMPv6Echo Request message, and carry the identifier of the SF by using the SF ID field.
其中,所述处理器1501还用于:根据所述Echo Reply消息中携带的返回代码的值,确定到达所述SF的路径是否连通。The processor 1501 is further configured to: determine, according to a value of a return code carried in the Echo Reply message, whether a path to the SF is connected.
其中,所述处理器1501还用于:在构造的所述Echo Request消息中携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示目的SN检测所述SF是否处于可用状态。The processor 1501 is further configured to: in the configured Echo Request message, a detection identifier that is used to detect whether the SF is available, where the detection identifier is used to indicate that the target SN detects whether the SF is in an available state. .
其中,所述处理器1501还用于:根据所述Echo Reply消息中携带的返回代码的值,确定所述SF是否处于可用状态。The processor 1501 is further configured to: determine, according to a value of a return code carried in the Echo Reply message, whether the SF is in an available state.
本发明实施例提供的用于路径连通性检测的SN 1500通过构造Echo Request消息,在Echo Request消息中携带的SF的标识,并在所述Echo Request消息的报文头中包含路径信息,并根据所述路径信息发送所述Echo Request消息,以便于接收节点根据所述SF以及所述路径信息包含的SID信息确定到达所述SF的路径是否连通,所述装置根据接收节点发送的响应消息Echo Reply消息中携带的返回代码的值确定到达所述SF的路径是否连通。本发明实施例提供的装置实现了在SR网络中业务链SFC路径连通性的检测,有利于在SR-SFC网络中实现OAM功能。The SN 1500 for the path connectivity detection provided by the embodiment of the present invention includes the Echo Request message, the identifier of the SF carried in the Echo Request message, and includes the path information in the packet header of the Echo Request message, and according to The path information is sent by the Echo Request message, so that the receiving node determines whether the path to the SF is connected according to the SF and the SID information included in the path information, and the device sends a response message Echo Reply according to the receiving node. The value of the return code carried in the message determines whether the path to the SF is connected. The device provided by the embodiment of the invention implements the detection of the connectivity of the service chain SFC path in the SR network, and is beneficial to implementing the OAM function in the SR-SFC network.
以上对装置实施例的介绍较为简略,可参照方法实施例实现本发明各装置实施例。The above description of the device embodiment is relatively simple, and embodiments of the device of the present invention can be implemented by referring to the method embodiments.
本发明方案可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序单元。一般地,程序单元包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明方案,在这些分布式计算环境中,由通过通信网络而被连接的远程 处理设备来执行任务。在分布式计算环境中,程序单元可以位于包括存储设备在内的本地和远程计算机存储介质中。The inventive arrangements may be described in the general context of computer-executable instructions executed by a computer, such as a program element. Generally, program units include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The inventive arrangements can also be practiced in distributed computing environments where remotes are connected through a communication network Process the device to perform the task. In a distributed computing environment, program units can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其它实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
以上对本发明实施例进行了详细介绍,本文中应用了具体实施方式对本发明进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及设备;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the present invention has been described with reference to the specific embodiments. The description of the above embodiments is only for facilitating understanding of the method and device of the present invention. Meanwhile, for those skilled in the art, The present invention is not limited by the scope of the present invention.

Claims (22)

  1. 一种路径连通性检测的方法,其特征在于,所述方法适用于段路由SR网络,所述方法包括:A method for detecting path connectivity, wherein the method is applicable to a segment route SR network, and the method includes:
    接收节点接收发送节点发送的回显请求Echo Request消息,所述Echo Request消息包含业务功能SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的段标识SID;The receiving node receives an echo request Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the service function SF, and the packet header of the Echo Request message includes path information that reaches the SF, where the path information includes The segment identifier SID of the SF;
    当所述接收节点根据所述SF的标识确定所述SF与所述接收节点关联时,判断所述接收节点存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致;When the receiving node determines that the SF is associated with the receiving node according to the identifier of the SF, determining whether the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information ;
    当所述接收节点判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF的路径连通,所述接收节点向所述发送节点发送第一回显响应Echo Reply消息,所述第一Echo Reply消息中携带的返回代码的值用于指示到达所述SF的路径连通。When the receiving node determines that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, determining that the path to the SF is connected, the receiving node is The sending node sends a first echo response Echo Reply message, and the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当所述接收节点判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,所述接收节点向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带返回代码的值,所述返回代码的值用于指示到达所述SF的路径不连通。When the receiving node determines that the SID corresponding to the SF stored by the receiving node is inconsistent with the SID of the SF included in the path information, determining that the path to the SF is disconnected, the receiving node is The sending node sends a second Echo Reply message, where the second Echo Reply message carries a value of a return code, and the value of the return code is used to indicate that the path to the SF is disconnected.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当所述接收节点判断所述接收节点存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态;When the receiving node determines that the SID corresponding to the SF stored by the receiving node is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
    其中,所述检测所述SF是否处于可用状态包括:The detecting whether the SF is in an available state includes:
    所述接收节点向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,The receiving node sends a status detection request to the SF, receives a status response message sent by the SF, and determines, according to the status response message, whether the SF is in an available state; or
    所述接收节点接收所述SF主动发送的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。And receiving, by the receiving node, a status report message that is sent by the SF, and determining, according to the status report message, whether the SF is in an available state.
  4. 根据权利要求3所述的方法,其特征在于,当确定所述SF处于不可用状态时,所述第一Echo Reply消息携带的所述返回代码的值用于指示所述SF处于不可用状态。The method according to claim 3, wherein the value of the return code carried by the first Echo Reply message is used to indicate that the SF is in an unavailable state when it is determined that the SF is in an unavailable state.
  5. 一种路径连通性检测的方法,其特征在于,所述方法适用于段路由SR 网络,所述方法包括:A method for path connectivity detection, characterized in that the method is applicable to segment routing SR Network, the method includes:
    发送节点构造回显请求Echo Request消息,所述Echo Request消息包含业务功能SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息;The sending node constructs an echo request Echo Request message, where the Echo Request message includes an identifier of the service function SF, and the packet header of the Echo Request message includes path information that reaches the SF;
    所述发送节点根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的业务节点SN;The sending node sends the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF;
    所述发送节点接收所述接收节点发送的回显响应Echo Reply消息,所述Echo Reply消息为针对所述Echo Request消息的响应消息;The sending node receives an echo response Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message;
    所述发送节点根据所述Echo Reply消息确定到达所述SF的路径是否连通。The sending node determines, according to the Echo Reply message, whether a path to the SF is connected.
  6. 根据权利要求5所述的方法,其特征在于,所述路径信息包括最短路径信息或者显式路径信息,其中:The method according to claim 5, wherein the path information comprises shortest path information or explicit path information, wherein:
    所述最短路径信息包括目的SN的段标识SID和所述SF的SID;The shortest path information includes a segment identifier SID of the destination SN and a SID of the SF;
    所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  7. 根据权利要求6所述的方法,其特征在于,所述目的SN和所述每个SN的SID为多协议标签交换MPLS标签,所述SF的SID为MPLS标签;或者,The method according to claim 6, wherein the SID of the destination SN and the SN is a multi-protocol label switching MPLS label, and the SID of the SF is an MPLS label; or
    所述目的SN的SID为互联网通信协议第6版IPv6全局地址,所述SF的SID为链路本地地址LLA。The SID of the destination SN is the Internet Protocol 6th Edition IPv6 global address, and the SID of the SF is the link local address LLC.
  8. 根据权利要求5至7任一权利要求所述的方法,其特征在于,所述Echo Request消息为MPLS Echo Request消息,相应地,所述Echo Reply消息为MPLS Echo Reply消息,所述Echo Request消息包含业务功能SF的标识具体为:The method according to any one of claims 5 to 7, wherein the Echo Request message is an MPLS Echo Request message, and correspondingly, the Echo Reply message is an MPLS Echo Reply message, and the Echo Request message includes The identification of the service function SF is specifically as follows:
    在所述MPLS Echo Request消息中新增业务功能转发等价类SF FEC字段,在所述SF FEC字段中携带所述SF的标识。Adding a service function forwarding equivalence class SF FEC field in the MPLS Echo Request message, and carrying the identifier of the SF in the SF FEC field.
  9. 根据权利要求5至7任一权利要求所述的方法,其特征在于,所述Echo Request消息为互联网控制信息协议第6版ICMPv6Echo Request消息,相应地,所述Echo Reply为ICMPv6Echo Reply消息,所述Echo Request消息包含业务功能SF的标识具体为:The method according to any one of claims 5 to 7, wherein the Echo Request message is an Internet Control Information Protocol version 6 ICMPv6Echo Request message, and correspondingly, the Echo Reply is an ICMPv6Echo Reply message, The Echo Request message contains the identifier of the service function SF, which is specifically as follows:
    在所述ICMPv6Echo Request消息中新增业务功能标识SF ID字段,通过所述SF ID字段携带所述SF的标识。A service function identifier SF ID field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
  10. 根据权利要求5至9任一权利要求所述的方法,其特征在于,所述发 送节点根据所述Echo Reply消息确定到达所述SF的路径是否连通包括:A method according to any one of claims 5 to 9, wherein said hair is Determining, by the sending node, whether the path to the SF is connected according to the Echo Reply message includes:
    所述发送节点根据所述Echo Reply消息中携带的返回代码的值,确定到达所述SF的路径是否连通。The sending node determines, according to the value of the return code carried in the Echo Reply message, whether the path to the SF is connected.
  11. 根据权利要求5至10任一权利要求所述的方法,其特征在于,所述Echo Request消息中还携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示所述目的SN检测所述SF是否处于可用状态。The method according to any one of claims 5 to 10, wherein the Echo Request message further carries a detection identifier for detecting whether the SF is available, and the detection identifier is used to indicate the destination SN. It is detected whether the SF is in an available state.
  12. 一种路径连通性检测装置,其特征在于,所述装置适用于段路由SR网络,所述装置包括:A path connectivity detecting apparatus, wherein the apparatus is applicable to a segment routing SR network, and the apparatus includes:
    接收单元,用于接收发送节点发送的回显请求Echo Request消息,所述Echo Request消息包含业务功能SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息,所述路径信息包含所述SF的段标识SID;a receiving unit, configured to receive an echo request Echo Request message sent by the sending node, where the Echo Request message includes an identifier of the service function SF, and the packet header of the Echo Request message includes path information that reaches the SF, where The path information includes a segment identifier SID of the SF;
    判断单元,用于当根据所述SF的标识确定所述SF与装置关联时,判断所述装置存储的对应所述SF的SID是否与所述路径信息包含的所述SF的SID一致;a determining unit, configured to determine, when the SF is associated with the device according to the identifier of the SF, whether the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information;
    发送单元,用于当所述判断单元判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,确定到达所述SF的路径连通,向所述发送节点发送第一回显响应Echo Reply消息,所述第一Echo Reply消息中携带的返回代码的值用于指示到达所述SF的路径连通。a sending unit, configured to: when the determining unit determines that the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information, determine a path connectivity to the SF, to the The sending node sends a first echo response Echo Reply message, and the value of the return code carried in the first Echo Reply message is used to indicate that the path to the SF is connected.
  13. 根据权利要求12所述的装置,其特征在于,所述发送单元还用于:The device according to claim 12, wherein the sending unit is further configured to:
    当所述判断单元判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID不一致时,确定到达所述SF的路径不连通,向所述发送节点发送第二Echo Reply消息,所述第二Echo Reply消息携带返回代码的值,所述返回代码的值用于指示到达所述SF的路径不连通。When the determining unit determines that the SID corresponding to the SF stored by the device does not match the SID of the SF included in the path information, determining that the path to the SF is not connected, and sending the first to the sending node And a second Echo Reply message, where the second Echo Reply message carries a value of a return code, where the value of the return code is used to indicate that the path to the SF is disconnected.
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    检测单元,用于当所述判断单元判断所述装置存储的对应所述SF的SID与所述路径信息中包含的所述SF的SID一致时,进一步检测所述SF是否处于可用状态;a detecting unit, configured to: when the determining unit determines that the SID corresponding to the SF stored by the device is consistent with the SID of the SF included in the path information, further detecting whether the SF is in an available state;
    其中,所述检测单元具体用于:The detecting unit is specifically configured to:
    向所述SF发送状态检测请求,接收所述SF发送的状态响应消息,根据所述状态响应消息确定所述SF是否处于可用状态;或者,接收所述SF主动发送 的状态报告消息,根据所述状态报告消息确定所述SF是否处于可用状态。Sending a status detection request to the SF, receiving a status response message sent by the SF, determining, according to the status response message, whether the SF is in an available state; or receiving the SF to send an active message. The status report message determines whether the SF is in an available state according to the status report message.
  15. 根据权利要求14所述的装置,其特征在于,所述发送单元还用于:The device according to claim 14, wherein the sending unit is further configured to:
    当所述检测单元确定所述SF处于不可用状态时,向所述发送节点发送的所述第一Echo Reply消息携带的所述返回代码的值用于指示所述SF处于不可用状态。And when the detecting unit determines that the SF is in an unavailable state, the value of the return code carried by the first Echo Reply message sent to the sending node is used to indicate that the SF is in an unavailable state.
  16. 一种路径连通性检测装置,其特征在于,所述装置适用于段路由SR网络,所述装置包括:A path connectivity detecting apparatus, wherein the apparatus is applicable to a segment routing SR network, and the apparatus includes:
    构造单元,用于构造回显请求Echo Request消息,所述Echo Request消息包含业务功能SF的标识,所述Echo Request消息的报文头中包含到达所述SF的路径信息;a constructing unit, configured to construct an echo request Echo Request message, where the Echo Request message includes an identifier of the service function SF, and the packet header of the Echo Request message includes path information that reaches the SF;
    发送单元,用于根据所述路径信息向接收节点发送所述Echo Request消息,所述接收节点为对应所述SF的目的业务节点SN;a sending unit, configured to send the Echo Request message to the receiving node according to the path information, where the receiving node is a destination service node SN corresponding to the SF;
    接收单元,用于接收所述接收节点发送的回显响应Echo Reply消息,所述Echo Reply消息为针对所述Echo Request消息的响应消息;a receiving unit, configured to receive an echo response Echo Reply message sent by the receiving node, where the Echo Reply message is a response message for the Echo Request message;
    确定单元,用于根据所述Echo Reply消息确定到达所述SF的路径是否连通。And a determining unit, configured to determine, according to the Echo Reply message, whether a path to the SF is connected.
  17. 根据权利要求16所述的装置,其特征在于,所述构造单元构造的Echo Request消息的报文头中包含的路径信息包括最短路径信息或者显式路径信息,其中:The device according to claim 16, wherein the path information included in the header of the Echo Request message constructed by the constructing unit includes shortest path information or explicit path information, where:
    所述最短路径信息包括目的SN的段标识SID和所述SF的SID;The shortest path information includes a segment identifier SID of the destination SN and a SID of the SF;
    所述显式路径信息包括到达所述目的SN所经过的每个SN的SID和所述SF的SID。The explicit path information includes an SID of each SN through which the destination SN passes and an SID of the SF.
  18. 根据权利要求17所述的装置,其特征在于,所述目的SN和所述每个SN的SID为多协议标签交换MPLS标签,所述SF的SID为MPLS标签;或者,所述目的SN和所述每个SN的SID为互联网通信协议第6版IPv6全局地址,所述SF的SID为链路本地地址LLA。The device according to claim 17, wherein the destination SN and the SID of each SN are multi-protocol label switching MPLS labels, and the SID of the SF is an MPLS label; or the destination SN and the The SID of each SN is the Internet Protocol 6th Edition IPv6 global address, and the SID of the SF is the link local address LLA.
  19. 根据权利要求16至18任一权利要求所述的装置,其特征在于,所述构造单元构造的所述Echo Request消息为MPLS Echo Request消息,相应地,所述接收单元接收的所述Echo Reply消息为MPLS Echo Reply消息,所述构造单元具体用于: The device according to any one of claims 16 to 18, wherein the Echo Request message constructed by the constructing unit is an MPLS Echo Request message, and correspondingly, the Echo Reply message received by the receiving unit For the MPLS Echo Reply message, the constructing unit is specifically configured to:
    在所述MPLS Echo Request消息中新增业务功能转发等价类SF FEC字段,在所述SF FEC字段中携带所述SF的标识。Adding a service function forwarding equivalence class SF FEC field in the MPLS Echo Request message, and carrying the identifier of the SF in the SF FEC field.
  20. 根据权利要求16至18任一权利要求所述的装置,其特征在于,所述构造单元构造的所述Echo Request消息为互联网控制信息协议第6版ICMPv6Echo Request消息,相应地,所述接收单元接收的所述Echo Reply为ICMPv6Echo Reply消息,所述构造单元具体用于:The device according to any one of claims 16 to 18, wherein the Echo Request message constructed by the constructing unit is an Internet Control Information Protocol version 6 ICMPv6Echo Request message, and correspondingly, the receiving unit receives The Echo Reply is an ICMPv6Echo Reply message, and the constructing unit is specifically configured to:
    在所述ICMPv6Echo Request消息中新增业务功能标识SF ID字段,通过所述SF ID字段携带所述SF的标识。A service function identifier SF ID field is added to the ICMPv6 Echo Request message, and the identifier of the SF is carried by the SF ID field.
  21. 根据权利要求16至20任一权利要求所述的装置,其特征在于,所述确定单元具体用于:The device according to any one of claims 16 to 20, wherein the determining unit is specifically configured to:
    根据所述Echo Reply消息中携带的返回代码的值,确定到达所述SF的路径是否连通。Determining whether the path to the SF is connected according to the value of the return code carried in the Echo Reply message.
  22. 根据权利要求16至21任一权利要求所述的装置,其特征在于,所述构造单元构造的所述Echo Request消息中携带用于检测所述SF是否可用的检测标识,所述检测标识用于指示所述目的SN检测所述SF是否处于可用状态。 The device according to any one of claims 16 to 21, wherein the Echo Request message constructed by the constructing unit carries a detection identifier for detecting whether the SF is available, and the detection identifier is used for The destination SN is instructed to detect whether the SF is in an available state.
PCT/CN2015/077377 2014-07-18 2015-04-24 Path connectivity test method and device WO2016008322A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410344976.0 2014-07-18
CN201410344976.0A CN105337785B (en) 2014-07-18 2014-07-18 A kind of path connectivity detection method and device

Publications (1)

Publication Number Publication Date
WO2016008322A1 true WO2016008322A1 (en) 2016-01-21

Family

ID=55077890

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077377 WO2016008322A1 (en) 2014-07-18 2015-04-24 Path connectivity test method and device

Country Status (2)

Country Link
CN (1) CN105337785B (en)
WO (1) WO2016008322A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3355520A1 (en) * 2017-01-30 2018-08-01 Sandvine Incorporated ULC System and method for traffic steering and analysis
CN111510386A (en) * 2019-01-30 2020-08-07 华为技术有限公司 Method and device for processing message
CN112511437A (en) * 2020-04-22 2021-03-16 中兴通讯股份有限公司 Method for verifying service chain, sending node, forwarding node and service function node
CN113438161A (en) * 2020-03-23 2021-09-24 华为技术有限公司 Method and network device for generating segment identification SID
CN113904972A (en) * 2021-11-22 2022-01-07 迈普通信技术股份有限公司 Path detection method, device, controller and PE equipment

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827529B (en) * 2016-05-10 2019-02-26 华为技术有限公司 A kind of path establishment method and controller
CN107517119B (en) * 2016-06-17 2021-02-26 阿里巴巴集团控股有限公司 Virtual network detection method and device in VPC environment
CN109921987B (en) * 2017-12-13 2022-01-21 中兴通讯股份有限公司 BIER-TE network detection method, device and system
WO2019164637A1 (en) 2018-02-23 2019-08-29 Futurewei Technologies, Inc. Advertising and programming preferred path routes using interior gateway protocols
WO2019209480A1 (en) 2018-04-26 2019-10-31 Futurewei Technologies, Inc. Resource reservation and maintenance for preferred path routes in a network
WO2019210769A1 (en) 2018-05-03 2019-11-07 Huawei Technologies Co., Ltd. Explicit routing with network function encoding
CN112995028A (en) * 2018-06-30 2021-06-18 华为技术有限公司 Method, device and system for processing transmission path fault
CN111510387B (en) * 2019-01-30 2021-12-14 华为技术有限公司 Data forwarding method and related device
CN112087381B (en) * 2019-06-14 2021-12-31 华为技术有限公司 Method and device for realizing service function processing
CN113315701A (en) * 2020-02-27 2021-08-27 中兴通讯股份有限公司 Path detection method, electronic device and storage medium
CN113472601B (en) * 2020-03-31 2023-03-28 华为技术有限公司 Connection state detection method and related equipment
CN114006854B (en) * 2020-07-16 2023-06-06 北京华为数字技术有限公司 Communication method and network equipment
CN113973066A (en) * 2020-07-24 2022-01-25 华为技术有限公司 Method, device and system for detecting connectivity of P2MP tree
CN114189564A (en) * 2020-08-28 2022-03-15 华为技术有限公司 Message transmission method, device and system
CN113746691B (en) * 2021-07-15 2022-08-16 清华大学 ICMP speed limit-based remote IPv6 node mutual connectivity measurement method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854641A (en) * 2010-03-30 2010-10-06 中国人民解放军信息工程大学 Method for perceiving Mesh network route
CN102035691A (en) * 2009-09-28 2011-04-27 中国移动通信集团公司 Method and device for detecting quality of network link
KR20130033253A (en) * 2011-09-26 2013-04-03 주식회사 케이티 Overlay multicast system and its method to provide multiple content distribution in distributed content nodes

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114994B (en) * 2006-07-28 2010-05-12 中兴通讯股份有限公司 Method for detecting connectivity of multi-protocol label switching virtual private network
US7895425B2 (en) * 2007-08-03 2011-02-22 Cisco Technology, Inc. Operation, administration and maintenance (OAM) in a service insertion architecture (SIA)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035691A (en) * 2009-09-28 2011-04-27 中国移动通信集团公司 Method and device for detecting quality of network link
CN101854641A (en) * 2010-03-30 2010-10-06 中国人民解放军信息工程大学 Method for perceiving Mesh network route
KR20130033253A (en) * 2011-09-26 2013-04-03 주식회사 케이티 Overlay multicast system and its method to provide multiple content distribution in distributed content nodes

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3355520A1 (en) * 2017-01-30 2018-08-01 Sandvine Incorporated ULC System and method for traffic steering and analysis
US10778586B2 (en) 2017-01-30 2020-09-15 Sandvince Corporation System and method for traffic steering and analysis
CN111510386A (en) * 2019-01-30 2020-08-07 华为技术有限公司 Method and device for processing message
CN113438161A (en) * 2020-03-23 2021-09-24 华为技术有限公司 Method and network device for generating segment identification SID
CN113438161B (en) * 2020-03-23 2022-10-04 华为技术有限公司 Method and network device for generating segment identification SID
CN112511437A (en) * 2020-04-22 2021-03-16 中兴通讯股份有限公司 Method for verifying service chain, sending node, forwarding node and service function node
CN112511437B (en) * 2020-04-22 2024-03-22 中兴通讯股份有限公司 Method for verifying service chain, transmitting node, forwarding node and service function node
CN113904972A (en) * 2021-11-22 2022-01-07 迈普通信技术股份有限公司 Path detection method, device, controller and PE equipment
CN113904972B (en) * 2021-11-22 2023-12-19 迈普通信技术股份有限公司 Path detection method and device, controller and PE (polyethylene) equipment

Also Published As

Publication number Publication date
CN105337785B (en) 2018-10-02
CN105337785A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
WO2016008322A1 (en) Path connectivity test method and device
US20170373966A1 (en) Packet Transmission Method, Node, Path Management Server and Storage Medium
US8605603B2 (en) Route convergence based on ethernet operations, administration, and maintenance protocol
CN109474495B (en) Tunnel detection method and device
US10326681B2 (en) System and method to analyze route information in a network
CN103580894A (en) Method, device and system for operation, administration and maintenance (OAM) configuration
KR20140117993A (en) Mpls-tp network and method for link failure trace
CN111614505B (en) Message processing method and gateway equipment
JP5913733B2 (en) Pseudowire extended group messaging in packet-switched networks
JP5913732B2 (en) Pseudowire groups in packet switched networks
CN112532468B (en) Network measurement system, method, device and storage medium
US8532101B2 (en) System and method for providing co-signaled return label switch paths
US8848518B2 (en) System and method for providing notification of a change in path condition
CN112737949B (en) Fault detection method and device, electronic equipment and computer readable medium
WO2022000264A1 (en) Fault detection method and apparatus, and pe device
WO2017215376A1 (en) Multi-segment pseudo wire detection method and network element
CN102594626B (en) Method and device for detecting fault of internet protocol version 6 (IPv6) tunnel
EP2832056B1 (en) Pseudowire extended group actions in a packet switched network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15821272

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15821272

Country of ref document: EP

Kind code of ref document: A1