WO2012171382A1 - Loopback detection method and system - Google Patents
Loopback detection method and system Download PDFInfo
- Publication number
- WO2012171382A1 WO2012171382A1 PCT/CN2012/072842 CN2012072842W WO2012171382A1 WO 2012171382 A1 WO2012171382 A1 WO 2012171382A1 CN 2012072842 W CN2012072842 W CN 2012072842W WO 2012171382 A1 WO2012171382 A1 WO 2012171382A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- loopback
- transmission path
- message
- source
- end node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a loopback detection method and system.
- the IEEE 802. lag standard defines OAM functional entities in Ethernet, including Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and Maintenance Intermediate Point located in the middle of the Ethernet transmission path. , referred to as MIP).
- MIP Maintenance End Point
- MIP Maintenance Intermediate Point
- MP maintenance point
- Each switch (Switch, or SW for short) in Ethernet can create MPs based on ports.
- Loopback detection is one of the Ethernet OAM functions defined by the IEEE 802. lag standard. This function runs from MEP to MEP or MEP to MIP to detect connection failures of the entire or a segment of the Ethernet transmission path.
- FIG. 1 is a schematic diagram of a loopback detection mechanism defined by the existing IEEE 802.1ag standard. As shown in Figure 1, the existing Ethernet loopback detection mechanism includes the following main steps:
- Step 1 After the loopback detection function is enabled, the MEP sends a loopback message (LoopBack Message, LBM for short) to the MIP or the peer MEP. The message reaches the destination MIP or MEP along the fixed single path.
- a loopback message LoopBack Message, LBM for short
- Step 2 After receiving the loopback message and detecting the error, the destination MIP or the MEP sends a loopback reply (LBR) to the source MEP that sends the loopback message, and the message arrives at the source MEP along the reverse fixed single path. .
- LBR loopback reply
- Step 3 After receiving the loopback response and detecting the error, the source MEP that sends the loopback message returns an announcement to the operator that the loopback detection succeeds.
- the IEEE 802.1Qb project is working on the Equal Cost Multi-Path (ECMP) mechanism to implement load balancing of service traffic on equal-cost multipaths and improve link utilization in Ethernet.
- the 802.1Qbp project specifies that for an Ethernet supporting equivalent multipath, the network edge switch shall assign a forwarding label F-tag to the Ethernet frame entering the network. When the Ethernet frame of the F-tag leaves the network, the network edge The switch strips the F-tag carried by the Ethernet frame.
- FIG. 2 depicts the specific encapsulation format of the forwarding label F-tag specified by the IEEE 802.1Qbp project.
- the forwarding label F-tag includes a 16-bit Tag Protocol ID (TPID), a 3-bit Priority Code Point (PCP), and a 1-bit discard identifier.
- TPID 16-bit Tag Protocol ID
- PCP Priority Code Point
- DTL 6-bit Time To Live
- Flow ID 16-bit Flow ID.
- the 16-bit flow identifier is used to offload traffic entering the network. Different flow identifiers correspond to different equal-cost paths. Each specific flow identifier is used to select an equal-cost multi-path between the source node and the destination node. a specific path.
- the technical problem to be solved by the present invention is to provide a loopback detection method and system, which can implement the Ethernet OAM loopback detection function in an ECMP scenario.
- an embodiment of the present invention provides a loopback detection method, which is applied to an Ethernet supporting an equal-cost multipath, and the method includes:
- the source maintenance end node sends a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to a specified one of the plurality of equal-cost transmission paths of the destination maintenance point;
- the destination maintenance point After receiving the loopback message, the destination maintenance point sends a loopback response message to the source maintenance end node, where the loopback response message includes a reverse common path transmission path to the source maintenance end node.
- the source maintenance end node After receiving the loopback response message and detecting the error, the source maintenance end node returns an announcement of successful loopback detection.
- the source maintenance end node determines, according to one of the following information input by the operator or any combination thereof, the flow identifier corresponding to the specified transmission path:
- the destination maintenance point determines the specified transmission path according to the flow identifier included therein, and calculates a flow identifier corresponding to the reverse unidirectional transmission path. And sending a loopback response message to the source maintenance end node, and including, in the loopback response message, a flow identifier corresponding to the reverse common path transmission path;
- the reverse multiplex transmission path means that the node through which the reverse transmission path passes is completely consistent with the maintenance point passed by the forward transmission path.
- the source maintenance end node includes the flow identifier corresponding to the specified transmission path in the loopback message by:
- the source maintenance end node carries a forwarding label in the loopback message, and the flow label corresponding to the specified transmission path is included in the forwarding label.
- the source maintenance end node receives the loopback response message and the detection is correct, and specifically includes:
- the maintenance end node After receiving the loopback response message, the maintenance end node determines a transmission path of the loopback response message according to the flow identifier included therein, and determines whether the transmission path sends the ring with the source maintenance end node. The specified transmission path selected when the message is returned is common. If yes, it is determined that the detection is correct. If not, the detection failure is determined, and the notification of the loopback detection failure is returned.
- An embodiment of the present invention further provides a loopback detection system, which is applied to an Ethernet supporting an equivalent multipath, and the system includes: a transmission path determining unit, a loopback message sending unit, and a loopback in a source maintenance end node Detection unit; a loopback response unit in the destination maintenance point,
- the transmission path determining unit is configured to determine a specified transmission path from a plurality of equal-cost transmission paths to the destination maintenance point;
- the loopback message sending unit is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specified transmission path;
- the loopback response unit is configured to: after receiving the loopback message, send a loopback response message to the source maintenance end node, where the loopback response message includes a reverse total to the source maintenance end node.
- the stream identifier corresponding to the path of the path;
- the loopback detection unit is configured to, after receiving the loopback response message and detecting the error, return an announcement that the loopback detection is successful.
- the loopback message sending unit is further configured to: determine, according to one of the following information input by the operator or any combination thereof, a flow identifier corresponding to the specified transmission path, and include the loopback message in the loopback message The flow identifier corresponding to the specified transmission path:
- the loopback message sending unit is configured to include the flow identifier corresponding to the specified transmission path in the loopback message by:
- the loopback message carries a forwarding label, and the flow label corresponding to the specified transmission path is included in the forwarding label.
- the loopback response unit is configured to: after receiving the loopback message, determine the specified transmission path according to the flow identifier included therein, and calculate the reverse common path After the corresponding flow identifier, the loopback response message is sent to the source maintenance end node, and the loop identifier corresponding to the reverse common path transmission path is included in the loopback response message;
- the reverse multiplex transmission path means that the node through which the reverse transmission path passes is completely consistent with the maintenance point passed by the forward transmission path.
- the loopback detection unit is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path is related to the The specified transmission path is selected when the source maintenance end node sends the loopback message, and if yes, it is determined that the detection is correct, if not, the detection fails, and the loopback detection is returned. Notice of defeat.
- the embodiment of the present invention further provides a source maintenance end node, which is applied to the loopback detection of the Ethernet supporting the equivalent multipath, where the source maintenance end node includes: a transmission path determining unit, a loopback message sending unit, and a ring. Back detection unit, wherein
- the transmission path determining unit is configured to determine a specified transmission path from a plurality of equivalent transmission paths to the destination maintenance point;
- the loopback message sending unit is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specified transmission path;
- the loopback detection unit is configured to: after receiving the loopback response message returned by the destination maintenance point, and returning the loopback detection success after returning the loopback detection message; the loopback response message includes the source maintenance end node The flow identifier corresponding to the reverse multiplex path.
- the loopback message sending unit is further configured to: determine, according to any combination of one or more of the following information input by the operator, a flow identifier corresponding to the specified transmission path, and include the The stream ID corresponding to the specified transmission path:
- the loopback message sending unit is configured to include, in the loopback message, a stream identifier corresponding to the specified transmission path by:
- the loopback message carries a forwarding label, and the flow label corresponding to the specified transmission path is included in the forwarding label.
- the loopback response message includes a flow identifier corresponding to the reverse common path, where the node through which the reverse common path passes is completely consistent with the maintenance point of the specified transmission path. .
- the loopback detection unit is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path is related to the source maintenance end The designated transmission path selected when the node sends the loopback message is common. If yes, it determines that the detection is correct. If not, determines that the detection fails, and returns an announcement that the loopback detection fails.
- the embodiment of the present invention further provides a network node, which is applied to loopback detection of an Ethernet supporting equivalent multipath, including a loopback response unit.
- the loopback response unit is configured to receive a loopback message sent by the source maintenance end node, and send a loopback response message to the source maintenance end node;
- the loopback message includes a flow identifier corresponding to the specified transmission path, where the specified transport path is a one determined by the source maintenance end node from multiple equal-cost transmission paths to the destination maintenance point.
- the loopback response unit is configured to: after receiving the loopback message, determine the specified transmission path according to the flow identifier included therein, and calculate a flow corresponding to the reverse common path transmission path After the identifier is sent, the loopback response message is sent to the source maintenance end node, and the loop identifier corresponding to the reverse common path transmission path is included in the loopback response message;
- the node through which the reverse multiplex transmission path passes is completely consistent with the maintenance point that the designated transmission path passes.
- the solution of the foregoing embodiment extends the working mechanism of the Ethernet loopback detection specified by the IEEE 802.1ag standard, so that the function can be applied to the Ethernet supporting ECMP specified by the IEEE 802.1Qb project, and is specified for one of the multiple equal cost paths.
- the loopback detection is performed on the path, so that an application scenario with equivalent multipath between the two maintenance points can be supported.
- Figure 1 is a schematic diagram of a loopback detection process specified by the IEEE 802.1ag standard
- FIG. 2 is a schematic diagram of a F-tag encapsulation format of a forwarding label specified by the IEEE 802.1Qb project;
- FIG. 3 is a schematic flowchart of a loopback detection method according to an embodiment of the present invention;
- FIG. 4 is a loopback detection process according to Embodiment 1 of the present invention;
- FIG. 5 is a schematic diagram of a loopback detection process according to Embodiment 2 of the present invention.
- FIG. 6 is a schematic diagram of a loopback detection system according to an embodiment of the present invention. Preferred embodiment of the invention
- a flow-based loopback detection method is proposed, which can implement loopback detection for a specified transmission path in ECMP, and overcomes There is a lack of a mechanism in the prior art for a mechanism for loopback detection for a path specified in ECMP.
- An embodiment of the present invention is a flow-based loopback detection method, which uses the following technical solution:
- the maintenance end node sends a loopback message to the maintenance intermediate point or the peer maintenance end node, and the loopback message carries the forwarding label F-tag. , which contains a 16-bit stream identifier corresponding to the particular transmission path selected;
- the destination maintenance point receives the loopback message carrying the F-tag, and sends a loopback response to the source maintenance end node.
- the loopback response carries the forwarding label F-tag, which contains the corresponding a stream identifier of the reverse common path;
- the source maintenance end node receives the loopback response carrying the F-tag, checks the 16-bit stream identifier contained therein, and determines whether it corresponds to the reverse collocated path, and the 16-bit stream identifier is opposite to the reverse collocated path. Correspondence is a necessary condition for the success of this loopback detection.
- the destination maintenance point After the destination maintenance point receives the loopback message, it determines according to the 16-bit stream identifier contained therein. a specific transmission path selected, and calculating a flow identifier corresponding to the reverse unicast transmission path of the source maintenance end node; and then the flow identifier of the reverse unidirectional transmission path is included in the maintenance point sent to the source end Loopback response message.
- the reverse multiplex transmission path means that the node through which the reverse path passes is completely consistent with the node through which the forward transmission path passes.
- the embodiment of the present invention provides a flow-based loopback detection method. As shown in FIG. 3, the method includes:
- Step 301 The maintenance end node determines the destination maintenance point according to the input of the operator and selects one of the plurality of equivalent transmission paths that reach the destination maintenance point.
- the information input by the operator includes the identifier of the destination maintenance point. Since the destination maintenance point is based on the switch port, the identifier is generally the Media Access Control (MAC) address of the port where the destination maintenance point is located;
- the input information further includes an identifier of the specific path selected from the plurality of equal-cost transmission paths to the destination maintenance point, and the identifier may be a direct flow identifier (Flow ID) or an indirect capable of calculating the flow identifier.
- Flow ID direct flow identifier
- identifiers including the Equal Cost Tree-Algorithm (ECT-Algorithm) identifier (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing the stream (parameter set) "One or more of source/destination MAC address, source/destination IP address, source/destination port".
- ECT-Algorithm Equal Cost Tree-Algorithm
- Step 302 The maintenance end node sends a loopback message to the destination maintenance point, and carries the flow identifier corresponding to the selected medium transmission path.
- the maintenance node sends a loopback message to the destination maintenance point.
- the message is a unicast Ethernet frame.
- the destination MAC address is the MAC address of the switch port where the destination maintenance point is located.
- the source MAC address is the switch where the maintenance node is located.
- the message also carries a forwarding label F-tag, which contains the flow identifier corresponding to the selected transmission path.
- Step 303 After receiving the loopback message, the destination maintenance point selects the reverse collocated transmission path of the transmission path according to the flow identifier, and calculates a flow identifier corresponding to the reverse unidirectional transmission path.
- the destination maintenance point After receiving the loopback message sent by the maintenance end node, the destination maintenance point checks the flow identifier carried in the loopback message, and determines which loop path the loopback message is transmitted according to the identifier value.
- the method may be to perform hash calculation on multiple parameters including the flow identifier. The result of the hash corresponds to the particular transmission path selected. Then, the destination maintenance point calculates the flow identifier of the reverse collocated path corresponding to the specific transmission path.
- One possible calculation method is to perform inverse hash calculation according to the selected reverse multiplex transmission path.
- Step 304 The destination maintenance point replies to the maintenance end node with a loopback response message, and carries the calculated flow identifier corresponding to the reverse unidirectional transmission path.
- the destination maintenance point After the destination maintenance point calculates the flow identifier of the corresponding reverse unicast transmission path, it sends a loopback response message to the maintenance end node.
- the message is a unicast Ethernet frame.
- the destination MAC address is the MAC address of the switch port where the maintenance node is located.
- the MAC address is the MAC address of the switch port where the destination maintenance point is located.
- the message also carries the forwarding label F-tag, which contains the flow identifier corresponding to the reverse common path.
- Step 305 After receiving the loopback response message, the maintenance end node detects the flow identifier and determines whether it corresponds to the reverse multiplex transmission path.
- the maintenance end node After receiving the loopback response message replied by the destination maintenance point, the maintenance end node checks the flow identifier carried in the loopback response message, and determines, according to the identifier value, which loopback response message is transmitted along the specific path, and determines the transmission path. Whether it is common to the selected transmission path when the maintenance end node sends the loopback message, and the transmission path is common to the selected transmission path when the maintenance end node sends the loopback message, which is a necessary condition for the loopback detection to be successful.
- the maintenance end node initiates loopback detection to the maintenance intermediate point.
- FIG. 4 is a schematic diagram of a flow-based loopback detection process according to the embodiment. As shown in FIG. 3 and FIG. 4, the process mainly includes the following steps:
- Step 401 MEP1 determines the MIP according to the operator's input and selects one of the two equivalent transmission paths (SW1->SW21->SW3 and SW1->SW22->SW3) that arrive at the MIP.
- the information input by the operator includes the MAC address of the MIP, and the identifier of the specific path SW1->SW21->SW3 that reaches the MIP.
- the identifier may be a direct Flow ID1 or an indirect identifier that can calculate the Flow ID1. , including the ECT-Algorithm logo (from 00-80-C2-01 Go to 00-80-C2-10), or describe the information parameter of Flow (one or more of the parameter set "source/destination MAC address, source/destination IP address, source/destination port").
- Step 402 MEP1 sends a loopback message to the MIP, carrying the flow identifier corresponding to the selected transmission path SW1->SW21 -> SW3.
- the MEP1 sends a flow-based loopback message to the MIP, the message is a unicast Ethernet frame, the destination MAC address is the MAC address of the MIP, and the source MAC address is the MAC address of the MEP1, and the message carries the forwarding label.
- F-tag which contains Flow ID1 corresponding to the selected transmission path SW1->SW21->SW3.
- Step 403 After receiving the loopback message, the MIP selects the reverse common transmission path of the transmission path according to the flow identifier, and calculates a flow identifier corresponding to the reverse common transmission path.
- the MIP After receiving the flow-based loopback message sent by the MEP1, the MIP checks the flow identifier carried in the loopback message, and determines that the loopback message is transmitted along the SW1->SW21->SW3 according to the identifier value Flow ID1, and then calculates The flow ID of the reverse unicast path SW3->SW21->SW1 corresponding to the specific transmission path Flow ID2, Flow ID2 and Flow ID1 may be the same or different.
- Step 404 The MIP replies to the MEP1 with a loopback response message, and carries the calculated flow identifier of the corresponding reverse multiplex transmission path.
- the MIP replies to the flow-based loopback response message to the MEP1.
- the message is a unicast Ethernet frame, the destination MAC address is the MAC address of the MEP1, and the source MAC address is the MAC address of the MIP.
- the message also carries the forwarding label F-tag, which includes Corresponds to Flow ID2 of the reverse common path transmission path SW3->SW21->SW1.
- Step 405 After receiving the loopback response message, the MEP1 detects the flow identifier and determines whether it corresponds to the reverse multiplex transmission path.
- the MEP1 After receiving the flow-based loopback response message sent by the MIP, the MEP1 checks the flow identifier carried in the loopback response message, and determines that the loopback response message is transmitted along SW3->SW21->SW1 according to the identifier value Flow ID2. When the MEP1 sends a loopback message, the selected transmission path SW1->SW21->SW3 is common, and this judgment result is a necessary condition for the loopback detection success.
- Embodiment 2 Embodiment 2
- the maintenance end node initiates loopback detection to the peer maintenance end node.
- FIG. 5 is a schematic diagram of a flow-based loopback detection process according to the embodiment. As shown in FIG. 3 and FIG. 5, the process mainly includes the following steps:
- Step 501 MEP1 determines MEP2 according to the operator's input and selects one of two equivalent transmission paths (SW1->SW21->SW3->SW4 and SW1->SW22->SW3->SW4) to MEP2.
- the information input by the operator includes the MAC address of the MEP2, and also includes the identifier of the specific path SW1->SW22->SW3->SW4 that reaches the MEP2, and the identifier may be a direct Flow ID3, or may be an indirect one that can calculate the Flow ID3.
- Other identifiers including the ECT-Algorithm identifier (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing the Flow (parameter set "source/destination MAC address, source/destination IP address" , one or more of the source/destination ports.
- Step 502 MEP1 sends a loopback message to MEP2, carrying the flow identifier corresponding to the selected transmission path SW1->SW22->SW3->SW4.
- the MEP1 sends a flow-based loopback message to the MEP2, the message is a unicast Ethernet frame, the destination MAC address is the MAC address of the MEP2, and the source MAC address is the MAC address of the MEP1, and the message carries the forwarding label.
- F-tag which contains Flow ID3 corresponding to the selected transmission path SW1->SW22->SW3->SW4.
- Step 503 After receiving the loopback message, the MEP2 selects the reverse common transmission path of the transmission path according to the flow identifier, and calculates a flow identifier corresponding to the reverse common transmission path.
- the MEP2 After receiving the flow-based loopback message sent by the MEP1, the MEP2 checks the flow identifier carried in the loopback message, and determines that the loopback message is transmitted along the SW1->SW22->SW3->SW4 according to the identifier value Flow ID3. Then, the flow identifier Flow ID4 corresponding to the reverse symmetry transmission path SW4->SW3->SW22->SW1 of the specific transmission path is calculated, and the flow ID4 and the flow ID3 may be the same or different.
- Step 504 The MEP2 replies to the MEP1 with a loopback response message, and carries the calculated flow identifier of the corresponding reverse multiplex transmission path.
- MEP2 replies to MEP1 with a flow-based loopback response message, which is a unicast Ethernet frame,
- the MAC address is the MAC address of the MEP1
- the source MAC address is the MAC address of the MEP2.
- the message also carries the forwarding label F-tag, which includes the Flow ID4 corresponding to the reverse symmetry transmission path SW4->SW3->SW22->SW1. .
- Step 505 After receiving the loopback response message, the MEP1 detects the flow identifier and determines whether it corresponds to the reverse multiplex transmission path.
- the MEP1 After receiving the flow-based loopback response message replied by the MEP2, the MEP1 checks the flow identifier carried in the loopback response message, and determines that the loopback response message is transmitted along the SW4->SW3->SW22->SW1 according to the identifier value Flow ID4.
- the MEP1 sends a loopback message, the selected transmission path SW1->SW22->SW3->SW4 is common, and this judgment result is a necessary condition for the loopback detection success.
- the embodiment of the present invention further provides a loopback detection system, which is applied to an Ethernet supporting an equivalent multipath.
- the system mainly includes: a transmission path determining unit in the source maintenance end node 601. 6011, a loopback message sending unit 6012 and a loopback detecting unit 6013; a loopback response unit 6021 in the destination maintenance point 602,
- the transmission path determining unit 6011 is configured to determine a specific transmission path from a plurality of equivalent transmission paths to the destination maintenance point;
- the loopback message sending unit 6012 is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specific transmission path;
- the loopback response unit 6021 is configured to: after receiving the loopback message, send a loopback response message to the source maintenance end node, where the loopback response message includes a flow identifier corresponding to the reverse unicast transmission path of the source maintenance end node;
- the loopback detection unit 6013 is configured to return a loopback detection success notification after receiving the loopback response message and detecting the error.
- the loopback message sending unit 6012 is further configured to: determine, according to one of the following information input by the operator, or any combination thereof, the flow identifier corresponding to the specific transmission path, and include the flow corresponding to the specific transmission path in the loopback message.
- logo
- Flow identification equivalent tree algorithm identification, source/destination media access control (MAC) address, source/destination IP address, source/destination port.
- MAC media access control
- the loopback message sending unit 6012 is configured to include the flow identifier corresponding to the specific transmission path in the loopback message by:
- the loopback message carries a forwarding label, and the forwarding label includes a flow identifier corresponding to a specific transmission path.
- the loopback response unit 6021 is configured to: after receiving the loopback message, determine a specific transmission path according to the flow identifier included therein, and calculate a flow identifier corresponding to the reverse unicast transmission path, and then go to the source maintenance end.
- the node sends a loopback response message, and the loopback response message includes a flow identifier corresponding to the reverse common path.
- the reverse multiplex transmission path means that the node through which the reverse transmission path passes is exactly the same as the maintenance point passed by the forward transmission path.
- the loopback detection unit 6013 is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path and the source maintenance end node send a loopback The specific transmission path selected in the message is common. If yes, it is determined that the detection is correct. If not, the detection failure is determined, and the notification of the loopback detection failure is returned.
- the embodiment of the present invention further provides a source maintenance end node, which is applied to the loopback detection of the Ethernet supporting the equivalent multipath.
- the source maintenance end node includes: a transmission path determining unit. a loopback message sending unit and a loopback detecting unit, wherein
- the transmission path determining unit is configured to determine a specified transmission path from a plurality of equivalent transmission paths to the destination maintenance point;
- the loopback message sending unit is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specified transmission path;
- the loopback detection unit is configured to: after receiving the loopback response message returned by the destination maintenance point, and returning the loopback detection success after returning the loopback detection message; the loopback response message includes the source maintenance end node The flow identifier corresponding to the reverse multiplex path.
- the loopback message sending unit is further configured to determine, according to any combination of one or more of the following information input by the operator, the flow identifier corresponding to the specified transmission path, and cancel the loop in the loop
- the information includes the flow identifier corresponding to the specified transmission path:
- the loopback message sending unit is configured to include, in the loopback message, a stream identifier corresponding to the specified transmission path by:
- the loopback message carries a forwarding label, and the flow label corresponding to the specified transmission path is included in the forwarding label.
- the loopback response message includes a flow identifier corresponding to the reverse common path, where the node through which the reverse common path passes is completely consistent with the maintenance point of the specified transmission path. .
- the loopback detection unit is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path is related to the source maintenance end The designated transmission path selected when the node sends the loopback message is common. If yes, it determines that the detection is correct. If not, determines that the detection fails, and returns an announcement that the loopback detection fails.
- the embodiment of the present invention further provides a network node, which is applied to the loopback detection of the Ethernet supporting the equal-cost multipath. As shown in FIG. 6, the loopback response unit is included.
- the loopback response unit is configured to receive a loopback message sent by the source maintenance end node, and send a loopback response message to the source maintenance end node;
- the loopback message includes a flow identifier corresponding to the specified transmission path, where the specified transport path is a one determined by the source maintenance end node from multiple equal-cost transmission paths to the destination maintenance point.
- the loopback response unit is configured to: after receiving the loopback message, determine the specified transmission path according to the flow identifier included therein, and calculate a flow corresponding to the reverse common path transmission path After the identifier is sent, the loopback response message is sent to the source maintenance end node, and the loop identifier corresponding to the reverse common path transmission path is included in the loopback response message;
- the node through which the reverse multiplex transmission path passes is completely consistent with the maintenance point that the designated transmission path passes.
- modules or steps of the above-described embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed among multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from this
- the steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- embodiments of the invention are not limited to any specific combination of hardware and software.
- the loopback detection method and system provided by the above embodiments extend the working mechanism of the Ethernet loopback detection specified by the IEEE 802.1ag standard, so that the function can be applied to the Ethernet supporting ECMP specified by the IEEE 802.1Qbp project, for multiple pieces. Loopback detection is performed on a specific path in an equal-cost path, so that an application scenario with equivalent multipath between two maintenance points can be supported.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
一种环回检测方法及系统 Loopback detection method and system
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种环回检测方法及系统。 The present invention relates to the field of communications technologies, and in particular, to a loopback detection method and system.
背景技术 Background technique
当前的以太网中, 标准组织电气和电子工程师协会 ( Institute of Electrical and Electronics Engineers, 简称 IEEE )制定了一套以太网操作、 管理和维护 ( Operation, Administration and Maintenance, 简称 0AM )的工作机制, 并已 于 2007年正式发布为 802. lag标准。 In current Ethernet, the Institute of Electrical and Electronics Engineers (IEEE) has developed a working mechanism for Ethernet Operation, Administration and Maintenance (0AM), and It was officially released as the 802. lag standard in 2007.
IEEE 802. lag标准定义了以太网中的 OAM功能实体,包括位于以太网传 输路径两端的维护端节点( Maintenance End Point, 简称 MEP ) , 以及位于以 太网传输路径中间的维护中间点( Maintenance Intermediate Point,简称 MIP )。 其中,维护端节点和维护中间点统称为维护点( Maintenance Point,简称 MP )。 The IEEE 802. lag standard defines OAM functional entities in Ethernet, including Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and Maintenance Intermediate Point located in the middle of the Ethernet transmission path. , referred to as MIP). The maintenance node and the maintenance intermediate point are collectively referred to as a maintenance point (MP).
以太网中的每台交换机(Switch, 简称为 SW )都可以基于端口创建 MP。 环回检测是 IEEE 802. lag标准定义的以太网 OAM功能之一, 该功能运行于 MEP到 MEP或 MEP到 MIP, 目的是检测整个或一段以太网传输路径的连接 故障。 Each switch (Switch, or SW for short) in Ethernet can create MPs based on ports. Loopback detection is one of the Ethernet OAM functions defined by the IEEE 802. lag standard. This function runs from MEP to MEP or MEP to MIP to detect connection failures of the entire or a segment of the Ethernet transmission path.
图 1为现有 IEEE 802.1ag标准定义的环回检测机制的示意图, 结合图 1 所示, 现有以太网环回检测机制包括以下主要步骤: Figure 1 is a schematic diagram of a loopback detection mechanism defined by the existing IEEE 802.1ag standard. As shown in Figure 1, the existing Ethernet loopback detection mechanism includes the following main steps:
步骤 1 , 启动环回检测功能后, MEP向某个 MIP或对端 MEP发送环回 消息 (LoopBack Message, 简称为 LBM ) , 该消息沿固定单路径到达目的 MIP或 MEP。 Step 1: After the loopback detection function is enabled, the MEP sends a loopback message (LoopBack Message, LBM for short) to the MIP or the peer MEP. The message reaches the destination MIP or MEP along the fixed single path.
步骤 2 , 目的 MIP或 MEP接收到环回消息并检测无误后 , 向发送该环回 消息的源 MEP回复环回响应( LoopBack Reply, 简称为 LBR ) , 该消息沿反 向固定单路径到达源 MEP。 Step 2: After receiving the loopback message and detecting the error, the destination MIP or the MEP sends a loopback reply (LBR) to the source MEP that sends the loopback message, and the message arrives at the source MEP along the reverse fixed single path. .
步骤 3 , 发送环回消息的源 MEP接收到环回响应并检测无误后, 向操作 员返回环回检测成功的通告。 IEEE 802.1Qb 项目正在制定以太网中等价多路径 ( Equal Cost Multi-Path, 简称 ECMP ) 的工作机制, 以实现业务流量在等价多路径上的负 载分担, 提高以太网中的链路利用率。 802.1Qbp项目规定, 对于一个支持等 价多路径的以太网, 网络边缘交换机要给进入该网络的以太帧打上一个转发 标签 F-tag, 当打上 F-tag的以太帧离开该网络时, 网络边缘交换机会剥离以 太帧携带的 F-tag。 Step 3: After receiving the loopback response and detecting the error, the source MEP that sends the loopback message returns an announcement to the operator that the loopback detection succeeds. The IEEE 802.1Qb project is working on the Equal Cost Multi-Path (ECMP) mechanism to implement load balancing of service traffic on equal-cost multipaths and improve link utilization in Ethernet. The 802.1Qbp project specifies that for an Ethernet supporting equivalent multipath, the network edge switch shall assign a forwarding label F-tag to the Ethernet frame entering the network. When the Ethernet frame of the F-tag leaves the network, the network edge The switch strips the F-tag carried by the Ethernet frame.
图 2描述了 IEEE 802.1Qbp项目规定的转发标签 F-tag的具体封装格式。 如图 2所示, 转发标签 F-tag包含 16比特的标签协议标识( Tag Protocol ID, 简称 TPID ) 、 3比特的优先级码组 ( Priority Code Point, 简称 PCP ) 、 1比特 的丟弃标识(Drop Eligible, 简称 DE ) 、 6比特的保留字段( Reserved Field, 简称 Rev ) 、 6比特的存活时间 ( Time To Live, 简称 TTL ) , 以及 16比特的 流标识(Flow ID ) 。 其中 16比特的流标识用于对进入网络的业务流量进行 分流, 不同的流标识对应于不同的等价路径, 每一个特定的流标识用于选中 源节点和目的节点之间等价多路径当中的一条特定路径。 Figure 2 depicts the specific encapsulation format of the forwarding label F-tag specified by the IEEE 802.1Qbp project. As shown in FIG. 2, the forwarding label F-tag includes a 16-bit Tag Protocol ID (TPID), a 3-bit Priority Code Point (PCP), and a 1-bit discard identifier. Drop Eligible (DE), 6-bit Reserved Field (Reset), 6-bit Time To Live (TTL), and 16-bit Flow ID. The 16-bit flow identifier is used to offload traffic entering the network. Different flow identifiers correspond to different equal-cost paths. Each specific flow identifier is used to select an equal-cost multi-path between the source node and the destination node. a specific path.
通过以上的分析可以发现, 已发布的 IEEE 802. lag标准定义的环回检测 功能, 只适用于运行该功能的两个维护点之间只有一条以太网传输路径的情 况,并不适用于两个维护点之间存在等价多路径的情况。 随着 IEEE 802.1Qbp 标准项目的立项和相关标准制定工作的开展,以太网将会支持 ECMP的功能, 所以, 现有以太网 OAM工作机制需要进行扩展, 以支持 ECMP场景下的以 太网 OAM需求。 发明内容 Through the above analysis, it can be found that the loopback detection function defined by the published IEEE 802. lag standard is only applicable to the case where there is only one Ethernet transmission path between two maintenance points running the function, and it is not applicable to two cases. There are cases of equivalent multipath between maintenance points. With the development of the IEEE 802.1Qbp standard project and the development of related standards, Ethernet will support the ECMP function. Therefore, the existing Ethernet OAM working mechanism needs to be extended to support the Ethernet OAM requirements in the ECMP scenario. Summary of the invention
本发明解决的技术问题是提供一种环回检测方法及系统, 能够实现 ECMP场景下的以太网 OAM环回检测功能。 The technical problem to be solved by the present invention is to provide a loopback detection method and system, which can implement the Ethernet OAM loopback detection function in an ECMP scenario.
为解决上述技术问题, 本发明的实施方式提供了一种环回检测方法, 应 用于支持等价多路径的以太网, 所述方法包括: To solve the above technical problem, an embodiment of the present invention provides a loopback detection method, which is applied to an Ethernet supporting an equal-cost multipath, and the method includes:
源维护端节点向目的维护点发送环回消息, 所述环回消息中包含到目的 维护点的多条等价传输路径中的一条指定的传输路径对应的流标识; 所述目的维护点接收到所述环回消息后, 向所述源维护端节点发送环回 响应消息, 所述环回响应消息中包含到所述源维护端节点的反向共路传输路 径所对应的流标识; The source maintenance end node sends a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to a specified one of the plurality of equal-cost transmission paths of the destination maintenance point; After receiving the loopback message, the destination maintenance point sends a loopback response message to the source maintenance end node, where the loopback response message includes a reverse common path transmission path to the source maintenance end node. Corresponding stream identifier;
所述源维护端节点接收到所述环回响应消息且检测无误后, 返回环回检 测成功的通告。 After receiving the loopback response message and detecting the error, the source maintenance end node returns an announcement of successful loopback detection.
可选地, 所述源维护端节点根据操作员输入的如下信息中的一个或其任 意组合确定所述指定的传输路径对应的流标识: Optionally, the source maintenance end node determines, according to one of the following information input by the operator or any combination thereof, the flow identifier corresponding to the specified transmission path:
流标识、 等价树算法标识、 源 /目的媒体访问控制 (MAC )地址、 源 /目 的 IP地址、 源 /目的端口。 Flow ID, Equivalence Tree Algorithm ID, Source/Destination Media Access Control (MAC) address, source/destination IP address, source/destination port.
可选地, 所述目的维护点接收到所述环回消息后, 根据其中包含的所述 流标识确定所述指定的传输路径, 并计算出所述反向共路传输路径所对应的 流标识后, 向所述源维护端节点发送环回响应消息, 并在所述环回响应消息 中包含所述反向共路传输路径所对应的流标识; Optionally, after receiving the loopback message, the destination maintenance point determines the specified transmission path according to the flow identifier included therein, and calculates a flow identifier corresponding to the reverse unidirectional transmission path. And sending a loopback response message to the source maintenance end node, and including, in the loopback response message, a flow identifier corresponding to the reverse common path transmission path;
其中, 所述反向共路传输路径是指该反向传输路径所经过的节点与正向 传输路径所经过的维护点完全一致。 The reverse multiplex transmission path means that the node through which the reverse transmission path passes is completely consistent with the maintenance point passed by the forward transmission path.
可选地, 所述源维护端节点通过以下方式在所述环回消息中包含所述指 定的传输路径对应的流标识: Optionally, the source maintenance end node includes the flow identifier corresponding to the specified transmission path in the loopback message by:
所述源维护端节点在所述环回消息中携带转发标签, 且在所述转发标签 中包含所述指定的传输路径对应的流标识。 The source maintenance end node carries a forwarding label in the loopback message, and the flow label corresponding to the specified transmission path is included in the forwarding label.
可选地, 所述源维护端节点接收到所述环回响应消息且检测无误, 具体 包括: Optionally, the source maintenance end node receives the loopback response message and the detection is correct, and specifically includes:
所述维护端节点接收到所述环回响应消息后, 根据其中包含的流标识确 定所述环回响应消息的传输路径, 并判断所述传输路径是否与所述源维护端 节点发送所述环回消息时选中的所述指定的传输路径共路, 如果是, 则确定 检测无误, 如果否, 确定检测失败, 并返回环回检测失败的通告。 After receiving the loopback response message, the maintenance end node determines a transmission path of the loopback response message according to the flow identifier included therein, and determines whether the transmission path sends the ring with the source maintenance end node. The specified transmission path selected when the message is returned is common. If yes, it is determined that the detection is correct. If not, the detection failure is determined, and the notification of the loopback detection failure is returned.
本发明的实施方式还提供了一种环回检测系统, 应用于支持等价多路径 的以太网, 所述系统包括: 源维护端节点中的传输路径确定单元、 环回消息 发送单元和环回检测单元; 目的维护点中的环回响应单元, 所述传输路径确定单元设置为, 从到目的维护点的多条等价传输路径中 确定一条指定的传输路径; An embodiment of the present invention further provides a loopback detection system, which is applied to an Ethernet supporting an equivalent multipath, and the system includes: a transmission path determining unit, a loopback message sending unit, and a loopback in a source maintenance end node Detection unit; a loopback response unit in the destination maintenance point, The transmission path determining unit is configured to determine a specified transmission path from a plurality of equal-cost transmission paths to the destination maintenance point;
所述环回消息发送单元设置为, 向目的维护点发送环回消息, 所述环回 消息中包含所述指定的传输路径对应的流标识; The loopback message sending unit is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specified transmission path;
所述环回响应单元设置为, 接收到所述环回消息后, 向所述源维护端节 点发送环回响应消息, 所述环回响应消息中包含到所述源维护端节点的反向 共路传输路径所对应的流标识; The loopback response unit is configured to: after receiving the loopback message, send a loopback response message to the source maintenance end node, where the loopback response message includes a reverse total to the source maintenance end node. The stream identifier corresponding to the path of the path;
所述环回检测单元设置为, 接收到所述环回响应消息且检测无误后, 返 回环回检测成功的通告。 The loopback detection unit is configured to, after receiving the loopback response message and detecting the error, return an announcement that the loopback detection is successful.
可选地, 所述环回消息发送单元还设置为, 根据操作员输入的如下信息 中的一个或其任意组合确定所述指定的传输路径对应的流标识, 并在所述环 回消息中包含所述指定的传输路径对应的流标识: Optionally, the loopback message sending unit is further configured to: determine, according to one of the following information input by the operator or any combination thereof, a flow identifier corresponding to the specified transmission path, and include the loopback message in the loopback message The flow identifier corresponding to the specified transmission path:
流标识、 等价树算法标识、 源 /目的媒体访问控制 (MAC )地址、 源 /目 的 IP地址、 源 /目的端口。 Flow ID, Equivalence Tree Algorithm ID, Source/Destination Media Access Control (MAC) address, source/destination IP address, source/destination port.
可选地, 所述环回消息发送单元设置为, 通过以下方式在所述环回消息 中包含所述指定的传输路径对应的流标识: Optionally, the loopback message sending unit is configured to include the flow identifier corresponding to the specified transmission path in the loopback message by:
在所述环回消息中携带转发标签, 且在所述转发标签中包含所述指定的 传输路径对应的流标识。 The loopback message carries a forwarding label, and the flow label corresponding to the specified transmission path is included in the forwarding label.
可选地, 所述环回响应单元设置为, 接收到所述环回消息后, 根据其中 包含的所述流标识确定所述指定的传输路径, 并计算出所述反向共路传输路 径所对应的流标识后, 向所述源维护端节点发送环回响应消息, 并在所述环 回响应消息中包含所述反向共路传输路径所对应的流标识; Optionally, the loopback response unit is configured to: after receiving the loopback message, determine the specified transmission path according to the flow identifier included therein, and calculate the reverse common path After the corresponding flow identifier, the loopback response message is sent to the source maintenance end node, and the loop identifier corresponding to the reverse common path transmission path is included in the loopback response message;
其中, 所述反向共路传输路径是指该反向传输路径所经过的节点与正向 传输路径所经过的维护点完全一致。 The reverse multiplex transmission path means that the node through which the reverse transmission path passes is completely consistent with the maintenance point passed by the forward transmission path.
可选地, 所述环回检测单元设置为, 接收到所述环回响应消息后, 根据 其中包含的流标识确定所述环回响应消息的传输路径, 并判断所述传输路径 是否与所述源维护端节点发送所述环回消息时选中的所述指定的传输路径共 路, 如果是, 则确定检测无误, 如果否, 确定检测失败, 并返回环回检测失 败的通告。 Optionally, the loopback detection unit is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path is related to the The specified transmission path is selected when the source maintenance end node sends the loopback message, and if yes, it is determined that the detection is correct, if not, the detection fails, and the loopback detection is returned. Notice of defeat.
本发明的实施方式还提供了一种源维护端节点, 应用于支持等价多路径 的以太网的环回检测, 所述源维护端节点包括: 传输路径确定单元、 环回消 息发送单元和环回检测单元, 其中, The embodiment of the present invention further provides a source maintenance end node, which is applied to the loopback detection of the Ethernet supporting the equivalent multipath, where the source maintenance end node includes: a transmission path determining unit, a loopback message sending unit, and a ring. Back detection unit, wherein
所述传输路径确定单元设置为, 从到目的维护点的多条等价传输路径中 确定一条指定的传输路径; The transmission path determining unit is configured to determine a specified transmission path from a plurality of equivalent transmission paths to the destination maintenance point;
所述环回消息发送单元设置为, 向所述目的维护点发送环回消息, 所述 环回消息中包含所述指定的传输路径对应的流标识; The loopback message sending unit is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specified transmission path;
所述环回检测单元设置为, 接收到所述目的维护点返回的环回响应消息 且检测无误后, 返回环回检测成功的通告; 所述环回响应消息中包含到所述 源维护端节点的反向共路传输路径所对应的流标识。 The loopback detection unit is configured to: after receiving the loopback response message returned by the destination maintenance point, and returning the loopback detection success after returning the loopback detection message; the loopback response message includes the source maintenance end node The flow identifier corresponding to the reverse multiplex path.
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回消息发送单元还设置为, 根据操作员输入的如下信息中的一个 或几个的任意组合确定所述指定的传输路径对应的流标识, 并在所述环回消 息中包含所述指定的传输路径对应的流标识: The loopback message sending unit is further configured to: determine, according to any combination of one or more of the following information input by the operator, a flow identifier corresponding to the specified transmission path, and include the The stream ID corresponding to the specified transmission path:
流标识、 等价树算法标识、 源 /目的媒体访问控制 (MAC )地址、 源 /目 的 IP地址、 源 /目的端口。 Flow ID, Equivalence Tree Algorithm ID, Source/Destination Media Access Control (MAC) address, source/destination IP address, source/destination port.
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回消息发送单元是设置为, 通过以下方式在所述环回消息中包含 所述指定的传输路径对应的流标识: The loopback message sending unit is configured to include, in the loopback message, a stream identifier corresponding to the specified transmission path by:
在所述环回消息中携带转发标签, 且在所述转发标签中包含所述指定的 传输路径对应的流标识。 The loopback message carries a forwarding label, and the flow label corresponding to the specified transmission path is included in the forwarding label.
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回响应消息中包含所述反向共路传输路径所对应的流标识; 其中, 所述反向共路传输路径所经过的节点与所述指定的传输路径所经 过的维护点完全一致。 The loopback response message includes a flow identifier corresponding to the reverse common path, where the node through which the reverse common path passes is completely consistent with the maintenance point of the specified transmission path. .
可选地, 上述源维护端节点中, 所述环回检测单元是设置为, 接收到所述环回响应消息后, 根据其中包 含的流标识确定所述环回响应消息的传输路径, 并判断所述传输路径是否与 所述源维护端节点发送所述环回消息时选中的所述指定的传输路径共路, 如 果是, 则确定检测无误, 如果否, 确定检测失败, 并返回环回检测失败的通 告。 本发明实施方式还提供了一种网络节点, 应用于支持等价多路径的以太 网的环回检测 , 包括环回响应单元 , Optionally, in the source maintenance node, The loopback detection unit is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path is related to the source maintenance end The designated transmission path selected when the node sends the loopback message is common. If yes, it determines that the detection is correct. If not, determines that the detection fails, and returns an announcement that the loopback detection fails. The embodiment of the present invention further provides a network node, which is applied to loopback detection of an Ethernet supporting equivalent multipath, including a loopback response unit.
所述环回响应单元设置为, 接收源维护端节点发送的环回消息, 向所述 源维护端节点发送环回响应消息; The loopback response unit is configured to receive a loopback message sent by the source maintenance end node, and send a loopback response message to the source maintenance end node;
其中, 所述环回消息中包含指定的传输路径对应的流标识, 所述指定的 传输路径是所述源维护端节点从到所述目的维护点的多条等价传输路径中确 定出的一条指定的传输路径, 所述环回响应消息中包含到所述源维护端节点 的反向共路传输路径所对应的流标识。 The loopback message includes a flow identifier corresponding to the specified transmission path, where the specified transport path is a one determined by the source maintenance end node from multiple equal-cost transmission paths to the destination maintenance point. The specified transmission path, where the loopback response message includes a flow identifier corresponding to the reverse unicast transmission path of the source maintenance end node.
可选地, 上述网络节点中, Optionally, in the foregoing network node,
所述环回响应单元是设置为, 接收到所述环回消息后, 根据其中包含的 所述流标识确定所述指定的传输路径, 并计算出所述反向共路传输路径所对 应的流标识后 , 向所述源维护端节点发送环回响应消息 , 并在所述环回响应 消息中包含所述反向共路传输路径所对应的流标识; The loopback response unit is configured to: after receiving the loopback message, determine the specified transmission path according to the flow identifier included therein, and calculate a flow corresponding to the reverse common path transmission path After the identifier is sent, the loopback response message is sent to the source maintenance end node, and the loop identifier corresponding to the reverse common path transmission path is included in the loopback response message;
其中, 所述反向共路传输路径所经过的节点与所述指定的传输路径所经 过的维护点完全一致。 The node through which the reverse multiplex transmission path passes is completely consistent with the maintenance point that the designated transmission path passes.
上述实施方式的方案, 扩展了 IEEE 802.1ag标准规定的以太网环回检测 工作机制, 使得该功能能够应用于 IEEE 802.1Qb 项目规定的支持 ECMP的 以太网, 针对多条等价路径中的一条指定的路径进行环回检测, 从而可以支 持两个维护点之间存在等价多路径的应用场景。 The solution of the foregoing embodiment extends the working mechanism of the Ethernet loopback detection specified by the IEEE 802.1ag standard, so that the function can be applied to the Ethernet supporting ECMP specified by the IEEE 802.1Qb project, and is specified for one of the multiple equal cost paths. The loopback detection is performed on the path, so that an application scenario with equivalent multipath between the two maintenance points can be supported.
附图概述 BRIEF abstract
此处所说明的附图用来提供对本发明实施方式的进一步理解, 构成本申 请的一部分, 本发明的示意性实施例及其说明用于解释本发明的实施方式, 并不构成对本发明的不当限定。 在附图中: The drawings described herein are intended to provide a further understanding of the embodiments of the invention The exemplary embodiments of the present invention and the description thereof are intended to explain the embodiments of the present invention and are not intended to limit the invention. In the drawing:
图 1为 IEEE 802.1ag标准规定的环回检测过程示意图; Figure 1 is a schematic diagram of a loopback detection process specified by the IEEE 802.1ag standard;
图 2为 IEEE 802.1Qb 项目规定的转发标签 F-tag封装格式图; 图 3为本发明实施方式所提供的环回检测方法的总体流程示意图; 图 4为本发明实施例一的环回检测过程示意图; 2 is a schematic diagram of a F-tag encapsulation format of a forwarding label specified by the IEEE 802.1Qb project; FIG. 3 is a schematic flowchart of a loopback detection method according to an embodiment of the present invention; FIG. 4 is a loopback detection process according to Embodiment 1 of the present invention; Schematic diagram
图 5为本发明实施例二的环回检测过程示意图; FIG. 5 is a schematic diagram of a loopback detection process according to Embodiment 2 of the present invention; FIG.
图 6为本发明实施方式所提供的环回检测系统示意图。 本发明的较佳实施方式 FIG. 6 is a schematic diagram of a loopback detection system according to an embodiment of the present invention. Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在本发明的实施方式中 , 通过扩展 IEEE 802. lag标准定义的环回检测机 制, 提出一种基于流的环回检测方法, 能够实现针对 ECMP中的指定的传输 路径进行环回检测, 克服了现有技术中缺乏一种针对 ECMP中指定的路径进 行环回检测的机制的问题。 In the embodiment of the present invention, by extending the loopback detection mechanism defined by the IEEE 802. lag standard, a flow-based loopback detection method is proposed, which can implement loopback detection for a specified transmission path in ECMP, and overcomes There is a lack of a mechanism in the prior art for a mechanism for loopback detection for a path specified in ECMP.
本发明的实施方式一种基于流的环回检测方法, 釆用如下技术方案: 由维护端节点向维护中间点或对端维护端节点发送环回消息, 该环回消 息携带转发标签 F-tag, 其中包含对应于所选中特定传输路径的 16比特的流 标识; An embodiment of the present invention is a flow-based loopback detection method, which uses the following technical solution: The maintenance end node sends a loopback message to the maintenance intermediate point or the peer maintenance end node, and the loopback message carries the forwarding label F-tag. , which contains a 16-bit stream identifier corresponding to the particular transmission path selected;
目的维护点(目的维护中间点或目的维护端节点)接收到携带 F-tag的环 回消息, 向源端维护端节点发送环回响应, 该环回响应携带转发标签 F-tag, 其中包含对应于反向共路传输路径的流标识; The destination maintenance point (the destination maintenance intermediate point or the destination maintenance end node) receives the loopback message carrying the F-tag, and sends a loopback response to the source maintenance end node. The loopback response carries the forwarding label F-tag, which contains the corresponding a stream identifier of the reverse common path;
源端维护端节点接收到携带 F-tag的环回响应, 检查其中包含的 16比特 流标识, 判断其是否对应于反向共路传输路径, 该 16比特流标识与反向共路 传输路径相对应, 是本次环回检测成功的一个必要条件 The source maintenance end node receives the loopback response carrying the F-tag, checks the 16-bit stream identifier contained therein, and determines whether it corresponds to the reverse collocated path, and the 16-bit stream identifier is opposite to the reverse collocated path. Correspondence is a necessary condition for the success of this loopback detection.
其中, 目的维护点收到环回消息后, 根据其中包含的 16比特流标识确定 被选中的特定传输路径, 并计算出去往源端维护端节点的反向共路传输路径 所对应的流标识; 然后在该反向共路传输路径的流标识包含在发送给源端维 护点的环回响应消息中。 所述的反向共路传输路径是指该反向路径所经过的 节点与正向传输路径所经过的节点完全一致。 After the destination maintenance point receives the loopback message, it determines according to the 16-bit stream identifier contained therein. a specific transmission path selected, and calculating a flow identifier corresponding to the reverse unicast transmission path of the source maintenance end node; and then the flow identifier of the reverse unidirectional transmission path is included in the maintenance point sent to the source end Loopback response message. The reverse multiplex transmission path means that the node through which the reverse path passes is completely consistent with the node through which the forward transmission path passes.
基于上述方案, 本发明实施方式提出一种基于流的环回检测方法, 如图 3所示, 该方法包括: Based on the above solution, the embodiment of the present invention provides a flow-based loopback detection method. As shown in FIG. 3, the method includes:
步骤 301 : 维护端节点根据操作员的输入, 确定目的维护点并从到达目 的维护点的多条等价传输路径中选择一条。 这里, 操作员输入的信息包括目的维护点的标识, 由于目的维护点是基 于交换机端口的, 所以其标识一般是目的维护点所在端口的媒体访问控制 ( Media Access Control, 简称 MAC )地址; 操作员输入的信息还包括从到达 目的维护点的多条等价传输路径中所选中的特定路径的标识, 该标识可以是 直接的流标识(Flow ID ) , 也可以是间接的能够计算出流标识的其它标识, 包括等价树算法( Equal Cost Tree-Algorithm, 简称 ECT-Algorithm )标识(从 00-80-C2-01到 00-80-C2-10 ) , 或者是描述流的信息参数(参数集 "源 /目的 MAC地址、 源 /目的 IP地址、 源 /目的端口" 中的一个或多个 ) 。 Step 301: The maintenance end node determines the destination maintenance point according to the input of the operator and selects one of the plurality of equivalent transmission paths that reach the destination maintenance point. Here, the information input by the operator includes the identifier of the destination maintenance point. Since the destination maintenance point is based on the switch port, the identifier is generally the Media Access Control (MAC) address of the port where the destination maintenance point is located; The input information further includes an identifier of the specific path selected from the plurality of equal-cost transmission paths to the destination maintenance point, and the identifier may be a direct flow identifier (Flow ID) or an indirect capable of calculating the flow identifier. Other identifiers, including the Equal Cost Tree-Algorithm (ECT-Algorithm) identifier (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing the stream (parameter set) "One or more of source/destination MAC address, source/destination IP address, source/destination port".
步骤 302: 维护端节点向目的维护点发送环回消息, 携带对应所选中传 输路径的流标识。 Step 302: The maintenance end node sends a loopback message to the destination maintenance point, and carries the flow identifier corresponding to the selected medium transmission path.
根据操作员输入的信息, 维护端节点向目的维护点发送环回消息, 该消 息为单播以太帧,目的 MAC地址是目的维护点所在交换机端口的 MAC地址, 源 MAC地址是维护端节点所在交换机端口的 MAC地址,该消息还携带转发 标签 F-tag , 其中包含对应所选中传输路径的流标识。 According to the information input by the operator, the maintenance node sends a loopback message to the destination maintenance point. The message is a unicast Ethernet frame. The destination MAC address is the MAC address of the switch port where the destination maintenance point is located. The source MAC address is the switch where the maintenance node is located. The MAC address of the port. The message also carries a forwarding label F-tag, which contains the flow identifier corresponding to the selected transmission path.
步骤 303: 目的维护点收到环回消息后, 根据流标识选中该传输路径的 反向共路传输路径, 并计算出对应该反向共路传输路径的流标识。 Step 303: After receiving the loopback message, the destination maintenance point selects the reverse collocated transmission path of the transmission path according to the flow identifier, and calculates a flow identifier corresponding to the reverse unidirectional transmission path.
该步骤中, 目的维护点收到维护端节点发送的环回消息后, 查看环回消 息携带的流标识, 根据该标识值判断出环回消息是沿哪一条特定路径传输过 来的, 具体的判断方法可以是对包含流标识在内的多个参数进行哈希计算, 哈希的结果对应到被选中的特定传输路径。 然后, 目的维护点再计算出对应 该特定传输路径的反向共路传输路径的流标识, 一种可能的计算方法是根据 选定的反向共路传输路径进行反哈希计算。 In this step, after receiving the loopback message sent by the maintenance end node, the destination maintenance point checks the flow identifier carried in the loopback message, and determines which loop path the loopback message is transmitted according to the identifier value. The method may be to perform hash calculation on multiple parameters including the flow identifier. The result of the hash corresponds to the particular transmission path selected. Then, the destination maintenance point calculates the flow identifier of the reverse collocated path corresponding to the specific transmission path. One possible calculation method is to perform inverse hash calculation according to the selected reverse multiplex transmission path.
步骤 304: 目的维护点向维护端节点回复环回响应消息, 携带计算出的 对应反向共路传输路径的流标识。 Step 304: The destination maintenance point replies to the maintenance end node with a loopback response message, and carries the calculated flow identifier corresponding to the reverse unidirectional transmission path.
目的维护点计算出对应反向共路传输路径的流标识后, 向维护端节点回 复环回响应消息, 该消息为单播以太帧, 目的 MAC地址是维护端节点所在 交换机端口的 MAC地址,源 MAC地址是目的维护点所在交换机端口的 MAC 地址, 该消息还携带转发标签 F-tag, 其中包含对应反向共路传输路径的流标 识。 After the destination maintenance point calculates the flow identifier of the corresponding reverse unicast transmission path, it sends a loopback response message to the maintenance end node. The message is a unicast Ethernet frame. The destination MAC address is the MAC address of the switch port where the maintenance node is located. The MAC address is the MAC address of the switch port where the destination maintenance point is located. The message also carries the forwarding label F-tag, which contains the flow identifier corresponding to the reverse common path.
步骤 305: 维护端节点收到环回响应消息后, 对流标识进行检测, 判断 其是否对应于反向共路传输路径。 Step 305: After receiving the loopback response message, the maintenance end node detects the flow identifier and determines whether it corresponds to the reverse multiplex transmission path.
维护端节点收到目的维护点回复的环回响应消息后, 查看环回响应消息 携带的流标识, 根据该标识值判断出环回响应消息是沿哪一条特定路径传输 过来的, 判断该传输路径是否与维护端节点发送环回消息时选中的传输路径 共路, 该传输路径与维护端节点发送环回消息时选中的传输路径共路, 是环 回检测是否成功的一个必要条件。 After receiving the loopback response message replied by the destination maintenance point, the maintenance end node checks the flow identifier carried in the loopback response message, and determines, according to the identifier value, which loopback response message is transmitted along the specific path, and determines the transmission path. Whether it is common to the selected transmission path when the maintenance end node sends the loopback message, and the transmission path is common to the selected transmission path when the maintenance end node sends the loopback message, which is a necessary condition for the loopback detection to be successful.
实施例一 Embodiment 1
本实施例中, 维护端节点向维护中间点发起环回检测。 In this embodiment, the maintenance end node initiates loopback detection to the maintenance intermediate point.
图 4为本实施例的基于流的环回检测过程示意图。结合图 3和图 4所示, 该过程主要包括如下步骤: FIG. 4 is a schematic diagram of a flow-based loopback detection process according to the embodiment. As shown in FIG. 3 and FIG. 4, the process mainly includes the following steps:
步骤 401: MEP1根据操作员的输入, 确定 MIP并从到达 MIP的两条等 价传输路径( SW1->SW21->SW3和 SW1->SW22->SW3 ) 中选择一条。 Step 401: MEP1 determines the MIP according to the operator's input and selects one of the two equivalent transmission paths (SW1->SW21->SW3 and SW1->SW22->SW3) that arrive at the MIP.
操作员输入的信息包括 MIP的 MAC地址, 还包括到达 MIP的特定路径 SW1->SW21->SW3的标识,该标识可以是直接的 Flow ID1 ,也可以是间接的 能够计算出 Flow IDl的其它标识, 包括 ECT-Algorithm标识(从 00-80-C2-01 到 00-80-C2-10 ) , 或者是描述 Flow的信息参数 (参数集 "源 /目的 MAC地 址、 源 /目的 IP地址、 源 /目的端口" 中的一个或多个) 。 The information input by the operator includes the MAC address of the MIP, and the identifier of the specific path SW1->SW21->SW3 that reaches the MIP. The identifier may be a direct Flow ID1 or an indirect identifier that can calculate the Flow ID1. , including the ECT-Algorithm logo (from 00-80-C2-01 Go to 00-80-C2-10), or describe the information parameter of Flow (one or more of the parameter set "source/destination MAC address, source/destination IP address, source/destination port").
步骤 402 : MEP1 向 MIP 发送环回消息, 携带对应所选中传输路径 SW1->SW21 ->SW3的流标识。 Step 402: MEP1 sends a loopback message to the MIP, carrying the flow identifier corresponding to the selected transmission path SW1->SW21 -> SW3.
根据操作员输入的信息, MEP1向 MIP发送基于流的环回消息, 该消息 为单播以太帧, 目的 MAC地址是 MIP的 MAC地址, 源 MAC地址是 MEP1 的 MAC地址, 该消息还携带转发标签 F-tag, 其中包含对应所选中传输路径 SW1->SW21->SW3的 Flow IDl。 According to the information input by the operator, the MEP1 sends a flow-based loopback message to the MIP, the message is a unicast Ethernet frame, the destination MAC address is the MAC address of the MIP, and the source MAC address is the MAC address of the MEP1, and the message carries the forwarding label. F-tag, which contains Flow ID1 corresponding to the selected transmission path SW1->SW21->SW3.
步骤 403: MIP收到环回消息后, 根据流标识选中该传输路径的反向共 路传输路径, 并计算出对应该反向共路传输路径的流标识。 Step 403: After receiving the loopback message, the MIP selects the reverse common transmission path of the transmission path according to the flow identifier, and calculates a flow identifier corresponding to the reverse common transmission path.
MIP收到 MEP1发送的基于流的环回消息后 , 查看环回消息携带的流标 识, 根据该标识值 Flow ID1判断出环回消息是沿 SW1->SW21->SW3传输过 来的, 然后计算出对应该特定传输路径的反向共路传输路径 SW3->SW21->SW1的流标识 Flow ID2, Flow ID2与 Flow ID1可能相同, 也 可能不同。 After receiving the flow-based loopback message sent by the MEP1, the MIP checks the flow identifier carried in the loopback message, and determines that the loopback message is transmitted along the SW1->SW21->SW3 according to the identifier value Flow ID1, and then calculates The flow ID of the reverse unicast path SW3->SW21->SW1 corresponding to the specific transmission path Flow ID2, Flow ID2 and Flow ID1 may be the same or different.
步骤 404: MIP向 MEP1回复环回响应消息, 携带计算出的对应反向共 路传输路径的流标识。 Step 404: The MIP replies to the MEP1 with a loopback response message, and carries the calculated flow identifier of the corresponding reverse multiplex transmission path.
MIP向 MEP1回复基于流的环回响应消息, 该消息为单播以太帧, 目的 MAC地址是 MEP1的 MAC地址, 源 MAC地址是 MIP的 MAC地址, 该消 息还携带转发标签 F-tag,其中包含对应反向共路传输路径 SW3->SW21->SW1 的 Flow ID2。 The MIP replies to the flow-based loopback response message to the MEP1. The message is a unicast Ethernet frame, the destination MAC address is the MAC address of the MEP1, and the source MAC address is the MAC address of the MIP. The message also carries the forwarding label F-tag, which includes Corresponds to Flow ID2 of the reverse common path transmission path SW3->SW21->SW1.
步骤 405: MEP1收到环回响应消息后, 对流标识进行检测, 判断其是否 对应于反向共路传输路径。 Step 405: After receiving the loopback response message, the MEP1 detects the flow identifier and determines whether it corresponds to the reverse multiplex transmission path.
MEP1收到 MIP回复的基于流的环回响应消息后, 查看环回响应消息携 带的流标识, 根据该标识值 Flow ID2 判断出环回响应消息是沿 SW3->SW21->SW1 传输过来的, 与 MEP1 发送环回消息时选中的传输路径 SW1->SW21->SW3共路, 此判断结果作为环回检测成功的一个必要条件。 实施例二 After receiving the flow-based loopback response message sent by the MIP, the MEP1 checks the flow identifier carried in the loopback response message, and determines that the loopback response message is transmitted along SW3->SW21->SW1 according to the identifier value Flow ID2. When the MEP1 sends a loopback message, the selected transmission path SW1->SW21->SW3 is common, and this judgment result is a necessary condition for the loopback detection success. Embodiment 2
本实施例中, 维护端节点向对端维护端节点发起环回检测。 In this embodiment, the maintenance end node initiates loopback detection to the peer maintenance end node.
图 5为本实施例的基于流的环回检测过程示意图。结合图 3和图 5所示, 该过程主要包括如下步骤: FIG. 5 is a schematic diagram of a flow-based loopback detection process according to the embodiment. As shown in FIG. 3 and FIG. 5, the process mainly includes the following steps:
步骤 501: MEP1根据操作员的输入,确定 MEP2并从到达 MEP2的两条 等价传输路径( SW1->SW21->SW3->SW4和 SW1->SW22->SW3->SW4 ) 中 选择一条。 Step 501: MEP1 determines MEP2 according to the operator's input and selects one of two equivalent transmission paths (SW1->SW21->SW3->SW4 and SW1->SW22->SW3->SW4) to MEP2.
操作员输入的信息包括 MEP2的 MAC地址, 还包括到达 MEP2的特定 路径 SW1->SW22->SW3->SW4的标识, 该标识可以是直接的 Flow ID3 , 也 可以是间接的能够计算出 Flow ID3的其它标识,包括 ECT-Algorithm标识(从 00-80-C2-01到 00-80-C2-10 ) , 或者是描述 Flow的信息参数(参数集 "源 / 目的 MAC地址、 源 /目的 IP地址、 源 /目的端口" 中的一个或多个 ) 。 The information input by the operator includes the MAC address of the MEP2, and also includes the identifier of the specific path SW1->SW22->SW3->SW4 that reaches the MEP2, and the identifier may be a direct Flow ID3, or may be an indirect one that can calculate the Flow ID3. Other identifiers, including the ECT-Algorithm identifier (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing the Flow (parameter set "source/destination MAC address, source/destination IP address" , one or more of the source/destination ports.
步骤 502: MEP1 向 MEP2 发送环回消息, 携带对应所选中传输路径 SW1->SW22->SW3->SW4的流标识。 Step 502: MEP1 sends a loopback message to MEP2, carrying the flow identifier corresponding to the selected transmission path SW1->SW22->SW3->SW4.
根据操作员输入的信息, MEP1向 MEP2发送基于流的环回消息, 该消 息为单播以太帧, 目的 MAC地址是 MEP2的 MAC地址, 源 MAC地址是 MEP1的 MAC地址, 该消息还携带转发标签 F-tag, 其中包含对应所选中传 输路径 SW1->SW22->SW3->SW4的 Flow ID3。 According to the information input by the operator, the MEP1 sends a flow-based loopback message to the MEP2, the message is a unicast Ethernet frame, the destination MAC address is the MAC address of the MEP2, and the source MAC address is the MAC address of the MEP1, and the message carries the forwarding label. F-tag, which contains Flow ID3 corresponding to the selected transmission path SW1->SW22->SW3->SW4.
步骤 503: MEP2收到环回消息后,根据流标识选中该传输路径的反向共 路传输路径, 并计算出对应该反向共路传输路径的流标识。 Step 503: After receiving the loopback message, the MEP2 selects the reverse common transmission path of the transmission path according to the flow identifier, and calculates a flow identifier corresponding to the reverse common transmission path.
MEP2收到 MEP1发送的基于流的环回消息后, 查看环回消息携带的流 标识,根据该标识值 Flow ID3判断出环回消息是沿 SW1->SW22->SW3->SW4 传输过来的, 然后计算出对应该特定传输路径的反向共路传输路径 SW4->SW3->SW22->SW1的流标识 Flow ID4, Flow ID4与 Flow ID3可能相 同, 也可能不同。 After receiving the flow-based loopback message sent by the MEP1, the MEP2 checks the flow identifier carried in the loopback message, and determines that the loopback message is transmitted along the SW1->SW22->SW3->SW4 according to the identifier value Flow ID3. Then, the flow identifier Flow ID4 corresponding to the reverse symmetry transmission path SW4->SW3->SW22->SW1 of the specific transmission path is calculated, and the flow ID4 and the flow ID3 may be the same or different.
步骤 504: MEP2向 MEP1回复环回响应消息,携带计算出的对应反向共 路传输路径的流标识。 Step 504: The MEP2 replies to the MEP1 with a loopback response message, and carries the calculated flow identifier of the corresponding reverse multiplex transmission path.
MEP2向 MEP1 回复基于流的环回响应消息, 该消息为单播以太帧, 目 的 MAC地址是 MEP1的 MAC地址, 源 MAC地址是 MEP2的 MAC地址, 该消息还携带转发标签 F-tag , 其中包含对应反向共路传输路径 SW4->SW3->SW22->SW1的 Flow ID4。 MEP2 replies to MEP1 with a flow-based loopback response message, which is a unicast Ethernet frame, The MAC address is the MAC address of the MEP1, and the source MAC address is the MAC address of the MEP2. The message also carries the forwarding label F-tag, which includes the Flow ID4 corresponding to the reverse symmetry transmission path SW4->SW3->SW22->SW1. .
步骤 505: MEP1收到环回响应消息后, 对流标识进行检测, 判断其是否 对应于反向共路传输路径。 Step 505: After receiving the loopback response message, the MEP1 detects the flow identifier and determines whether it corresponds to the reverse multiplex transmission path.
MEP1收到 MEP2回复的基于流的环回响应消息后, 查看环回响应消息 携带的流标识, 根据该标识值 Flow ID4 判断出环回响应消息是沿 SW4->SW3->SW22->SW1传输过来的,与 MEP1发送环回消息时选中的传输 路径 SW1->SW22->SW3->SW4共路,此判断结果作为环回检测成功的一个必 要条件。 After receiving the flow-based loopback response message replied by the MEP2, the MEP1 checks the flow identifier carried in the loopback response message, and determines that the loopback response message is transmitted along the SW4->SW3->SW22->SW1 according to the identifier value Flow ID4. When the MEP1 sends a loopback message, the selected transmission path SW1->SW22->SW3->SW4 is common, and this judgment result is a necessary condition for the loopback detection success.
此外, 本发明实施例中还提供了一种环回检测系统, 应用于支持等价多 路径的以太网, 如图 6所示, 该系统主要包括: 源维护端节点 601中的传输 路径确定单元 6011、 环回消息发送单元 6012和环回检测单元 6013; 目的维 护点 602中的环回响应单元 6021 , In addition, the embodiment of the present invention further provides a loopback detection system, which is applied to an Ethernet supporting an equivalent multipath. As shown in FIG. 6, the system mainly includes: a transmission path determining unit in the source maintenance end node 601. 6011, a loopback message sending unit 6012 and a loopback detecting unit 6013; a loopback response unit 6021 in the destination maintenance point 602,
传输路径确定单元 6011设置为,从到目的维护点的多条等价传输路径中 确定一条特定传输路径; The transmission path determining unit 6011 is configured to determine a specific transmission path from a plurality of equivalent transmission paths to the destination maintenance point;
环回消息发送单元 6012设置为, 向目的维护点发送环回消息, 环回消息 中包含特定传输路径对应的流标识; The loopback message sending unit 6012 is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specific transmission path;
环回响应单元 6021设置为,接收到环回消息后, 向源维护端节点发送环 回响应消息, 环回响应消息中包含到源维护端节点的反向共路传输路径所对 应的流标识; The loopback response unit 6021 is configured to: after receiving the loopback message, send a loopback response message to the source maintenance end node, where the loopback response message includes a flow identifier corresponding to the reverse unicast transmission path of the source maintenance end node;
环回检测单元 6013设置为,接收到环回响应消息且检测无误后, 返回环 回检测成功的通告。 The loopback detection unit 6013 is configured to return a loopback detection success notification after receiving the loopback response message and detecting the error.
可选地, 环回消息发送单元 6012还设置为, 根据操作员输入的如下信息 中的一个或其任意组合确定特定传输路径对应的流标识, 并在环回消息中包 含特定传输路径对应的流标识: Optionally, the loopback message sending unit 6012 is further configured to: determine, according to one of the following information input by the operator, or any combination thereof, the flow identifier corresponding to the specific transmission path, and include the flow corresponding to the specific transmission path in the loopback message. Logo:
流标识、 等价树算法标识、 源 /目的媒体访问控制 (MAC )地址、 源 /目 的 IP地址、 源 /目的端口。 Flow identification, equivalent tree algorithm identification, source/destination media access control (MAC) address, source/destination IP address, source/destination port.
可选地, 环回消息发送单元 6012设置为, 通过以下方式在环回消息中包 含特定传输路径对应的流标识: Optionally, the loopback message sending unit 6012 is configured to include the flow identifier corresponding to the specific transmission path in the loopback message by:
在环回消息中携带转发标签, 且在转发标签中包含特定传输路径对应的 流标识。 The loopback message carries a forwarding label, and the forwarding label includes a flow identifier corresponding to a specific transmission path.
可选地, 环回响应单元 6021设置为, 接收到环回消息后, 根据其中包含 的流标识确定特定传输路径,并计算出反向共路传输路径所对应的流标识后, 向源维护端节点发送环回响应消息, 并在环回响应消息中包含反向共路传输 路径所对应的流标识; Optionally, the loopback response unit 6021 is configured to: after receiving the loopback message, determine a specific transmission path according to the flow identifier included therein, and calculate a flow identifier corresponding to the reverse unicast transmission path, and then go to the source maintenance end. The node sends a loopback response message, and the loopback response message includes a flow identifier corresponding to the reverse common path.
其中, 反向共路传输路径是指该反向传输路径所经过的节点与正向传输 路径所经过的维护点完全一致。 The reverse multiplex transmission path means that the node through which the reverse transmission path passes is exactly the same as the maintenance point passed by the forward transmission path.
可选地, 环回检测单元 6013设置为, 接收到环回响应消息后, 才艮据其中 包含的流标识确定环回响应消息的传输路径, 并判断传输路径是否与源维护 端节点发送环回消息时选中的特定传输路径共路, 如果是, 则确定检测无误, 如果否, 确定检测失败, 并返回环回检测失败的通告。 Optionally, the loopback detection unit 6013 is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path and the source maintenance end node send a loopback The specific transmission path selected in the message is common. If yes, it is determined that the detection is correct. If not, the detection failure is determined, and the notification of the loopback detection failure is returned.
本发明的实施方式还提供了一种源维护端节点, 应用于支持等价多路径 的以太网的环回检测, 可如图 6中所示, 所述源维护端节点包括: 传输路径 确定单元、 环回消息发送单元和环回检测单元, 其中, The embodiment of the present invention further provides a source maintenance end node, which is applied to the loopback detection of the Ethernet supporting the equivalent multipath. As shown in FIG. 6, the source maintenance end node includes: a transmission path determining unit. a loopback message sending unit and a loopback detecting unit, wherein
所述传输路径确定单元设置为, 从到目的维护点的多条等价传输路径中 确定一条指定的传输路径; The transmission path determining unit is configured to determine a specified transmission path from a plurality of equivalent transmission paths to the destination maintenance point;
所述环回消息发送单元设置为, 向所述目的维护点发送环回消息, 所述 环回消息中包含所述指定的传输路径对应的流标识; The loopback message sending unit is configured to send a loopback message to the destination maintenance point, where the loopback message includes a flow identifier corresponding to the specified transmission path;
所述环回检测单元设置为, 接收到所述目的维护点返回的环回响应消息 且检测无误后, 返回环回检测成功的通告; 所述环回响应消息中包含到所述 源维护端节点的反向共路传输路径所对应的流标识。 The loopback detection unit is configured to: after receiving the loopback response message returned by the destination maintenance point, and returning the loopback detection success after returning the loopback detection message; the loopback response message includes the source maintenance end node The flow identifier corresponding to the reverse multiplex path.
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回消息发送单元还设置为, 根据操作员输入的如下信息中的一个 或几个的任意组合确定所述指定的传输路径对应的流标识, 并在所述环回消 息中包含所述指定的传输路径对应的流标识: The loopback message sending unit is further configured to determine, according to any combination of one or more of the following information input by the operator, the flow identifier corresponding to the specified transmission path, and cancel the loop in the loop The information includes the flow identifier corresponding to the specified transmission path:
流标识、 等价树算法标识、 源 /目的媒体访问控制 (MAC )地址、 源 /目 的 IP地址、 源 /目的端口。 Flow ID, Equivalence Tree Algorithm ID, Source/Destination Media Access Control (MAC) address, source/destination IP address, source/destination port.
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回消息发送单元是设置为, 通过以下方式在所述环回消息中包含 所述指定的传输路径对应的流标识: The loopback message sending unit is configured to include, in the loopback message, a stream identifier corresponding to the specified transmission path by:
在所述环回消息中携带转发标签, 且在所述转发标签中包含所述指定的 传输路径对应的流标识。 The loopback message carries a forwarding label, and the flow label corresponding to the specified transmission path is included in the forwarding label.
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回响应消息中包含所述反向共路传输路径所对应的流标识; 其中, 所述反向共路传输路径所经过的节点与所述指定的传输路径所经 过的维护点完全一致。 The loopback response message includes a flow identifier corresponding to the reverse common path, where the node through which the reverse common path passes is completely consistent with the maintenance point of the specified transmission path. .
可选地, 上述源维护端节点中, Optionally, in the source maintenance node,
所述环回检测单元是设置为, 接收到所述环回响应消息后, 根据其中包 含的流标识确定所述环回响应消息的传输路径, 并判断所述传输路径是否与 所述源维护端节点发送所述环回消息时选中的所述指定的传输路径共路, 如 果是, 则确定检测无误, 如果否, 确定检测失败, 并返回环回检测失败的通 告。 The loopback detection unit is configured to: after receiving the loopback response message, determine a transmission path of the loopback response message according to the flow identifier included therein, and determine whether the transmission path is related to the source maintenance end The designated transmission path selected when the node sends the loopback message is common. If yes, it determines that the detection is correct. If not, determines that the detection fails, and returns an announcement that the loopback detection fails.
本发明实施方式还提供了一种网络节点, 应用于支持等价多路径的以太 网的环回检测, 可如图 6中所示, 包括环回响应单元, The embodiment of the present invention further provides a network node, which is applied to the loopback detection of the Ethernet supporting the equal-cost multipath. As shown in FIG. 6, the loopback response unit is included.
所述环回响应单元设置为, 接收源维护端节点发送的环回消息, 向所述 源维护端节点发送环回响应消息; The loopback response unit is configured to receive a loopback message sent by the source maintenance end node, and send a loopback response message to the source maintenance end node;
其中, 所述环回消息中包含指定的传输路径对应的流标识, 所述指定的 传输路径是所述源维护端节点从到所述目的维护点的多条等价传输路径中确 定出的一条指定的传输路径, 所述环回响应消息中包含到所述源维护端节点 的反向共路传输路径所对应的流标识。 The loopback message includes a flow identifier corresponding to the specified transmission path, where the specified transport path is a one determined by the source maintenance end node from multiple equal-cost transmission paths to the destination maintenance point. The specified transmission path, where the loopback response message includes a flow identifier corresponding to the reverse unicast transmission path of the source maintenance end node.
可选地, 上述网络节点中, 所述环回响应单元是设置为, 接收到所述环回消息后, 根据其中包含的 所述流标识确定所述指定的传输路径, 并计算出所述反向共路传输路径所对 应的流标识后 , 向所述源维护端节点发送环回响应消息 , 并在所述环回响应 消息中包含所述反向共路传输路径所对应的流标识; Optionally, in the foregoing network node, The loopback response unit is configured to: after receiving the loopback message, determine the specified transmission path according to the flow identifier included therein, and calculate a flow corresponding to the reverse common path transmission path After the identifier is sent, the loopback response message is sent to the source maintenance end node, and the loop identifier corresponding to the reverse common path transmission path is included in the loopback response message;
其中, 所述反向共路传输路径所经过的节点与所述指定的传输路径所经 过的维护点完全一致。 The node through which the reverse multiplex transmission path passes is completely consistent with the maintenance point that the designated transmission path passes.
以上仅为本发明的优选实施案例而已, 并不用于限制本发明, 本发明的 实施方式还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. The embodiments of the present invention may be embodied in various other embodiments without departing from the spirit and scope of the invention. And modifications are intended to fall within the scope of the appended claims.
显然, 本领域的技术人员应该明白, 上述的本发明实施例中的各模块或 各步骤可以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可 执行的程序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来 执行, 并且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步 骤, 或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或 步骤制作成单个集成电路模块来实现。 这样, 本发明实施方式不限制于任何 特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the above-described embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed among multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from this The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
工业实用性 Industrial applicability
上述实施方式所提供的环回检测方法及系统扩展了了 IEEE 802.1ag标准 规定的以太网环回检测工作机制, 使得该功能能够应用于 IEEE 802.1Qbp项 目规定的支持 ECMP的以太网, 针对多条等价路径中的一条特定路径进行环 回检测, 从而可以支持两个维护点之间存在等价多路径的应用场景。 The loopback detection method and system provided by the above embodiments extend the working mechanism of the Ethernet loopback detection specified by the IEEE 802.1ag standard, so that the function can be applied to the Ethernet supporting ECMP specified by the IEEE 802.1Qbp project, for multiple pieces. Loopback detection is performed on a specific path in an equal-cost path, so that an application scenario with equivalent multipath between two maintenance points can be supported.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110163645.3 | 2011-06-17 | ||
| CN201110163645.3A CN102833122B (en) | 2011-06-17 | 2011-06-17 | Loopback detection method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012171382A1 true WO2012171382A1 (en) | 2012-12-20 |
Family
ID=47336100
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2012/072842 Ceased WO2012171382A1 (en) | 2011-06-17 | 2012-03-22 | Loopback detection method and system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102833122B (en) |
| WO (1) | WO2012171382A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015070601A1 (en) * | 2013-11-14 | 2015-05-21 | 中兴通讯股份有限公司 | Encapsulation method and system for flow identifier |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105760319A (en) * | 2014-12-15 | 2016-07-13 | 中兴通讯股份有限公司 | Data successfully sent confirmation method and device |
| CN106162679B (en) * | 2015-04-22 | 2019-09-24 | 中国移动通信集团内蒙古有限公司 | The determination method and device of wireless broadband equipment working mechanism |
| CN107800581B (en) * | 2016-09-01 | 2022-03-18 | 中兴通讯股份有限公司 | Two-layer network and loopback detection method thereof |
| CN112636997B (en) * | 2020-11-17 | 2022-08-30 | 新华三技术有限公司 | Path detection method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101056224A (en) * | 2007-05-31 | 2007-10-17 | 杭州华三通信技术有限公司 | A loop detection method and device for the network device |
| CN101267363A (en) * | 2008-04-24 | 2008-09-17 | 杭州华三通信技术有限公司 | Loop testing method, system and device |
| CN101505240A (en) * | 2008-02-05 | 2009-08-12 | 华为技术有限公司 | Fault detection method and apparatus |
| US20100165852A1 (en) * | 2008-12-25 | 2010-07-01 | Fujitsu Limited | Node apparatus and method for performing a loopback-test on a communication path in a network |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101132319B (en) * | 2006-08-21 | 2010-11-03 | 华为技术有限公司 | A Method for Ethernet Operation and Maintenance Fault Detection |
| US8391163B2 (en) * | 2009-03-23 | 2013-03-05 | Cisco Technology, Inc. | Operating MPLS label switched paths and MPLS pseudowire in loopback mode |
| CN102075438B (en) * | 2011-02-14 | 2016-03-30 | 中兴通讯股份有限公司 | unicast data frame transmission method and device |
-
2011
- 2011-06-17 CN CN201110163645.3A patent/CN102833122B/en active Active
-
2012
- 2012-03-22 WO PCT/CN2012/072842 patent/WO2012171382A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101056224A (en) * | 2007-05-31 | 2007-10-17 | 杭州华三通信技术有限公司 | A loop detection method and device for the network device |
| CN101505240A (en) * | 2008-02-05 | 2009-08-12 | 华为技术有限公司 | Fault detection method and apparatus |
| CN101267363A (en) * | 2008-04-24 | 2008-09-17 | 杭州华三通信技术有限公司 | Loop testing method, system and device |
| US20100165852A1 (en) * | 2008-12-25 | 2010-07-01 | Fujitsu Limited | Node apparatus and method for performing a loopback-test on a communication path in a network |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015070601A1 (en) * | 2013-11-14 | 2015-05-21 | 中兴通讯股份有限公司 | Encapsulation method and system for flow identifier |
| US10069723B2 (en) | 2013-11-14 | 2018-09-04 | Zte Corporation | Method and system for encapsulating flow identifier |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102833122A (en) | 2012-12-19 |
| CN102833122B (en) | 2017-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8588081B2 (en) | Monitoring a flow set to detect faults | |
| CN104335537B (en) | Systems and methods for layer 2 multicast multipath delivery | |
| US9497107B1 (en) | Seamless path monitoring and rapid fault isolation using bidirectional forwarding detection in a network environment | |
| US8259563B1 (en) | Fast restoration for provider edge node and access link failures | |
| WO2017002017A1 (en) | Fast convergence in vrrp with multipoint bidirectional forwarding detection | |
| EP3935814B1 (en) | Dynamic access network selection based on application orchestration information in an edge cloud system | |
| KR20150038697A (en) | Method and apparatus for rapid rerouting of ldp packets | |
| US20120051231A1 (en) | Enhancing mtrace to detect failure in multicast diverse paths | |
| US10063467B2 (en) | Virtual extensible local area network performance routing | |
| WO2014047784A1 (en) | Method for determining packet forwarding path, network device and control device | |
| KR20120120472A (en) | Optimized fast re-route in mpls ring topologies | |
| US8902794B2 (en) | System and method for providing N-way link-state routing redundancy without peer links in a network environment | |
| WO2016082588A1 (en) | Link connectivity checking method and apparatus | |
| US20140036726A1 (en) | Network, data forwarding node, communication method, and program | |
| US12058028B2 (en) | Method and system to prevent micro-loops during a network topology change | |
| US8971195B2 (en) | Querying health of full-meshed forwarding planes | |
| CN107819682A (en) | Prevent the data service loop associated with the transponder selection specified | |
| WO2012171382A1 (en) | Loopback detection method and system | |
| US9917768B2 (en) | System and method for reflecting FEC route information | |
| US9749215B2 (en) | Method for receiving information, method for sending information, and apparatus for the same | |
| WO2014146541A1 (en) | Cdn and network convergence system, scheduling module selection method and computer storage medium | |
| CN103457794B (en) | Method and system for confirming faults of IP bearer network | |
| WO2014008651A1 (en) | Method and routing device for bfd session establishment | |
| WO2014164073A1 (en) | System and method for reflecting forwarding equivalence class route information | |
| CN103036731B (en) | A kind of equipment of the loopback detection based on stream, system and method |
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: 12800219 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: 12800219 Country of ref document: EP Kind code of ref document: A1 |