[go: up one dir, main page]

CN102833122A - Loopback detection method and system - Google Patents

Loopback detection method and system Download PDF

Info

Publication number
CN102833122A
CN102833122A CN2011101636453A CN201110163645A CN102833122A CN 102833122 A CN102833122 A CN 102833122A CN 2011101636453 A CN2011101636453 A CN 2011101636453A CN 201110163645 A CN201110163645 A CN 201110163645A CN 102833122 A CN102833122 A CN 102833122A
Authority
CN
China
Prior art keywords
loopback
transmission path
message
flow identifier
source
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.)
Granted
Application number
CN2011101636453A
Other languages
Chinese (zh)
Other versions
CN102833122B (en
Inventor
肖敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nantong Hongmei Dairy Co ltd
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110163645.3A priority Critical patent/CN102833122B/en
Priority to PCT/CN2012/072842 priority patent/WO2012171382A1/en
Publication of CN102833122A publication Critical patent/CN102833122A/en
Application granted granted Critical
Publication of CN102833122B publication Critical patent/CN102833122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种环回检测方法及系统,源维护端节点向目的维护点发送环回消息,环回消息中包含到目的维护点的多条等价传输路径中的一条特定传输路径对应的流标识;目的维护点接收到环回消息后,向源维护端节点发送环回响应消息,环回响应消息中包含到源维护端节点的反向共路传输路径所对应的流标识;源维护端节点接收到环回响应消息且检测无误后,返回环回检测成功的通告。本发明扩展了IEEE802.1ag标准规定的以太网环回检测工作机制,能够针对多条等价路径中的一条特定路径进行环回检测,从而可以支持两个维护点之间存在等价多路径的应用场景。

The present invention discloses a loopback detection method and system. The source maintenance end node sends a loopback message to the destination maintenance point, and the loopback message contains the information corresponding to a specific transmission path among multiple equivalent transmission paths to the destination maintenance point. Flow identifier; after the destination maintenance point receives the loopback message, it sends a loopback response message to the source maintenance end node, and the loopback response message contains the flow identifier corresponding to the reverse common path transmission path to the source maintenance end node; the source maintenance end node After the end node receives the loopback response message and the detection is correct, it returns a notification that the loopback detection is successful. The present invention expands the working mechanism of Ethernet loopback detection stipulated in the IEEE802.1ag standard, and can perform loopback detection on a specific path among multiple equal-cost paths, thereby supporting the existence of equal-cost multipaths between two maintenance points. Application scenarios.

Description

一种环回检测方法及系统A loop detection method and system

技术领域 technical field

本发明涉及通信技术领域,尤其涉及一种环回检测方法及系统。 The present invention relates to the technical field of communications, in particular to a loopback detection method and system.

背景技术 Background technique

当前的以太网中,标准组织电气和电子工程师协会(Institute of Electrical and Electronics Engineers,简称IEEE)制定了一套以太网操作、管理和维护(Operation,Administration and Maintenance,简称OAM)的工作机制,并已于2007年正式发布为802.1ag标准。 In the current Ethernet, the standard organization Institute of Electrical and Electronics Engineers (IEEE) has formulated a set of Ethernet operation, administration and maintenance (OAM) working mechanism, and It was officially released as the 802.1ag standard in 2007.

IEEE 802.1ag标准定义了以太网中的OAM功能实体,包括位于以太网传输路径两端的维护端节点(Maintenance End Point,简称MEP),以及位于以太网传输路径中间的维护中间点(Maintenance Intermediate Point,简称MIP)。其中,维护端节点和维护中间点统称为维护点(Maintenance Point,简称MP)。 The IEEE 802.1ag standard defines the OAM functional entity in Ethernet, including Maintenance End Point (MEP) located at both ends of the Ethernet transmission path, and Maintenance Intermediate Point (Maintenance Intermediate Point, MEP) located in the middle of the Ethernet transmission path. referred to as MIP). Among them, the maintenance end node and the maintenance intermediate point are collectively referred to as Maintenance Point (MP for short).

以太网中的每台交换机(Switch,简称为SW)都可以基于端口创建MP。环回检测是IEEE 802.1ag标准定义的以太网OAM功能之一,该功能运行于MEP到MEP或MEP到MIP,目的是检测整个或一段以太网传输路径的连接故障。 Each switch (Switch, SW for short) on the Ethernet can create MPs based on ports. Loopback detection is one of the Ethernet OAM functions defined by the IEEE 802.1ag standard. This function runs from MEP to MEP or MEP to MIP to detect connection failures of the entire or a section of the Ethernet transmission path.

图1为现有IEEE 802.1ag标准定义的环回检测机制的示意图,结合图1所示,现有以太网环回检测机制包括以下主要步骤: Figure 1 is a schematic diagram of the loopback detection mechanism defined by the existing IEEE 802.1ag standard, and 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 (LBM for short) to a certain MIP or peer MEP, and the message reaches the destination MIP or MEP along a fixed single path.

步骤2,目的MIP或MEP接收到环回消息并检测无误后,向发送该环回消息的源MEP回复环回响应(LoopBack Reply,简称为LBR),该消息沿反向固定单路径到达源MEP。 Step 2: After the destination MIP or MEP receives the loopback message and detects it is correct, it sends a loopback response (LoopBack Reply, LBR for short) to the source MEP that sent the loopback message, and the message arrives at the source MEP along the reverse fixed single path .

步骤3,发送环回消息的源MEP接收到环回响应并检测无误后,向操作员返回环回检测成功的通告。 Step 3: After the source MEP that sends the loopback message receives the loopback response and detects no errors, it returns a notification that the loopback detection is successful to the operator.

IEEE 802.1Qbp项目正在制定以太网中等价多路径(Equal Cost Multi-Path,简称ECMP)的工作机制,以实现业务流量在等价多路径上的负载分担,提高以太网中的链路利用率。802.1Qbp项目规定,对于一个支持等价多路径的以太网,网络边缘交换机要给进入该网络的以太帧打上一个转发标签F-tag,当打上F-tag的以太帧离开该网络时,网络边缘交换机会剥离以太帧携带的F-tag。 The IEEE 802.1Qbp project is developing the working mechanism of Equal Cost Multi-Path (ECMP for short) in Ethernet to realize load sharing of service traffic on Equal Cost Multi-Path and improve link utilization in Ethernet. The 802.1Qbp project stipulates that for an Ethernet that supports equal-cost multi-path, the network edge switch must add a forwarding label F-tag to the Ethernet frame entering the network. When the F-tag Ethernet frame leaves the network, the network edge The switch will strip 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 describes the specific encapsulation format of the forwarding label F-tag specified by the IEEE 802.1Qbp project. As shown in Figure 2, the forwarding label F-tag includes a 16-bit Tag Protocol ID (TPID for short), a 3-bit Priority Code Point (PCP for short), and a 1-bit discard flag (Drop Eligible, referred to as DE), 6-bit reserved field (Reserved Field, referred to as Rev), 6-bit time to live (Time To Live, referred to as TTL), and 16-bit flow identification (Flow ID). Among them, the 16-bit flow identifier is used to divide the traffic entering the network. Different flow identifiers correspond to different equivalent paths. Each specific flow identifier is used to select the equivalent multipath between the source node and the destination node. a specific path.

通过以上的分析可以发现,已发布的IEEE 802.1ag标准定义的环回检测功能,只适用于运行该功能的两个维护点之间只有一条以太网传输路径的情况,并不适用于两个维护点之间存在等价多路径的情况。随着IEEE 802.1Qbp标准项目的立项和相关标准制定工作的开展,以太网将会支持ECMP的功能,所以,现有以太网OAM工作机制需要进行扩展,以支持ECMP场景下的以太网OAM需求。 Through the above analysis, it can be found that the loopback detection function defined by the released IEEE 802.1ag standard is only applicable to the situation where there is only one Ethernet transmission path between the two maintenance points running this function, and it is not suitable for two maintenance points. There are equal cost multipaths between nodes. With the establishment 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 expanded to support the Ethernet OAM requirements in the ECMP scenario.

发明内容 Contents of the invention

本发明解决的技术问题是提供一种环回检测方法及系统,能够实现ECMP场景下的以太网OAM环回检测功能。 The technical problem solved by the present invention is to provide a loopback detection method and system, which can realize the Ethernet OAM loopback detection function under the ECMP scene.

为解决上述技术问题,本发明提供了一种环回检测方法,应用于支持等价多路径的以太网,所述方法包括: In order to solve the above-mentioned technical problems, the present invention provides a kind of loop detection method, is applied to the Ethernet that supports equal-cost multipath, and described method comprises:

源维护端节点向目的维护点发送环回消息,所述环回消息中包含到目的维护点的多条等价传输路径中的一条特定传输路径对应的流标识; The source maintenance end node sends a loopback message to the destination maintenance point, and the loopback message includes a flow identifier corresponding to a specific transmission path among multiple equivalent transmission paths to the destination maintenance point;

所述目的维护点接收到所述环回消息后,向所述源维护端节点发送环回响应消息,所述环回响应消息中包含到所述源维护端节点的反向共路传输路径所对应的流标识; After the destination maintenance point receives the loopback message, it sends a loopback response message to the source maintenance end node, and the loopback response message includes information about the reverse common path transmission path to the source maintenance end node. the corresponding stream ID;

所述源维护端节点接收到所述环回响应消息且检测无误后,返回环回检测成功的通告。 After the source maintenance end node receives the loopback response message and the detection is correct, it returns a notification that the loopback detection is successful.

进一步地,所述源维护端节点根据操作员输入的如下信息中的一个或其任意组合确定所述特定传输路径对应的流标识: Further, the source maintenance end node determines the flow identifier corresponding to the specific transmission path according to one or any combination of the following information input by the operator:

流标识、等价树算法标识、源/目的媒体访问控制(MAC)地址、源/目的IP地址、源/目的端口。 Flow identifier, equivalence tree algorithm identifier, source/destination media access control (MAC) address, source/destination IP address, source/destination port.

进一步地,所述目的维护点接收到所述环回消息后,根据其中包含的所述流标识确定所述特定传输路径,并计算出所述反向共路传输路径所对应的流标识后,向所述源维护端节点发送环回响应消息,并在所述环回响应消息中包含所述反向共路传输路径所对应的流标识; Further, after the destination maintenance point receives the loopback message, determines the specific transmission path according to the flow identifier contained therein, and calculates the flow identifier corresponding to the reverse common path transmission path, Send a loopback response message to the source maintenance end node, and include the flow identifier corresponding to the reverse common path transmission path in the loopback response message;

其中,所述反向共路传输路径是指该反向传输路径所经过的节点与正向传输路径所经过的维护点完全一致。 Wherein, the reverse shared transmission path means that the nodes passed by the reverse transmission path are exactly the same as the maintenance points passed by the forward transmission path.

进一步地,所述源维护端节点通过以下方式在所述环回消息中包含所述特定传输路径对应的流标识: Further, the source maintenance end node includes the flow identifier corresponding to the specific transmission path in the loopback message in the following manner:

所述源维护端节点在所述环回消息中携带转发标签,且在所述转发标签中包含所述特定传输路径对应的流标识。 The source maintenance end node carries a forwarding label in the loopback message, and the forwarding label includes a flow identifier corresponding to the specific transmission path.

进一步地,所述源维护端节点接收到所述环回响应消息且检测无误,具体包括: Further, the source maintenance end node receives the loopback response message and detects it correctly, specifically including:

所述维护端节点接收到所述环回响应消息后,根据其中包含的流标识确定所述环回响应消息的传输路径,并判断所述传输路径是否与所述源维护端节点发送所述环回消息时选中的所述特定传输路径共路,如果是,则确定检测无误,否则,确定检测失败,并返回环回检测失败的通告。 After the maintenance end node receives the loopback response message, it determines the transmission path of the loopback response message according to the flow identifier contained therein, and judges whether the transmission path is the same as the source maintenance end node sending the loopback message. The specific transmission path selected when returning the message is the same path, if yes, it is determined that the detection is correct, otherwise, it is determined that the detection fails, and a loopback detection failure notification is returned.

本发明还提供了一种环回检测系统,应用于支持等价多路径的以太网,所述系统包括:源维护端节点中的传输路径确定单元、环回消息发送单元和环回检测单元;目的维护点中的环回响应单元, The present invention also provides a loopback detection system, which is applied to an Ethernet supporting equal-cost multipath, and the system includes: a transmission path determination unit in a source maintenance end node, a loopback message sending unit, and a loopback detection unit; the loopback response unit in the destination maintenance point,

所述传输路径确定单元用于,从到目的维护点的多条等价传输路径中确定一条特定传输路径; The transmission path determination unit is configured to determine a specific transmission path from multiple equivalent transmission paths to the destination maintenance point;

所述环回消息发送单元用于,向目的维护点发送环回消息,所述环回消息中包含所述特定传输路径对应的流标识; The loopback message sending unit is configured to send a loopback message to a destination maintenance point, and the loopback message includes a flow identifier corresponding to the specific 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 consensus to the source maintenance end node. The flow identifier corresponding to the transmission path;

所述环回检测单元用于,接收到所述环回响应消息且检测无误后,返回环回检测成功的通告。 The loopback detection unit is configured to return a notification that the loopback detection is successful after receiving the loopback response message and the detection is correct.

进一步地,所述环回消息发送单元还用于,根据操作员输入的如下信息中的一个或其任意组合确定所述特定传输路径对应的流标识,并在所述环回消息中包含所述特定传输路径对应的流标识: Further, the loopback message sending unit is further configured to determine the stream identifier corresponding to the specific transmission path according to one or any combination of the following information input by the operator, and include the loopback message in the loopback message The flow identifier corresponding to a specific transmission path:

流标识、等价树算法标识、源/目的媒体访问控制(MAC)地址、源/目的IP地址、源/目的端口。 Flow identifier, equivalence tree algorithm identifier, source/destination media access control (MAC) address, source/destination IP address, source/destination port.

进一步地,所述环回消息发送单元用于,通过以下方式在所述环回消息中包含所述特定传输路径对应的流标识: Further, the loopback message sending unit is configured to include the flow identifier corresponding to the specific transmission path in the loopback message in the following manner:

在所述环回消息中携带转发标签,且在所述转发标签中包含所述特定传输路径对应的流标识。 A forwarding label is carried in the loopback message, and a flow identifier corresponding to the specific transmission path is included in the forwarding label.

进一步地,所述环回响应单元用于,接收到所述环回消息后,根据其中包含的所述流标识确定所述特定传输路径,并计算出所述反向共路传输路径所对应的流标识后,向所述源维护端节点发送环回响应消息,并在所述环回响应消息中包含所述反向共路传输路径所对应的流标识; Further, the loopback response unit is configured to, after receiving the loopback message, determine the specific transmission path according to the flow identifier contained therein, and calculate the After the flow identification, send a loopback response message to the source maintenance end node, and include the flow identification corresponding to the reverse common path transmission path in the loopback response message;

其中,所述反向共路传输路径是指该反向传输路径所经过的节点与正向传输路径所经过的维护点完全一致。 Wherein, the reverse shared transmission path means that the nodes passed by the reverse transmission path are exactly the same as the maintenance points passed by the forward transmission path.

进一步地,所述环回检测单元用于,接收到所述环回响应消息后,根据其中包含的流标识确定所述环回响应消息的传输路径,并判断所述传输路径是否与所述源维护端节点发送所述环回消息时选中的所述特定传输路径共路,如果是,则确定检测无误,否则,确定检测失败,并返回环回检测失败的通告。 Further, the loopback detection unit is configured to, after receiving the loopback response message, determine the transmission path of the loopback response message according to the flow identifier contained therein, and determine whether the transmission path is consistent with the source The specific transmission path selected by the maintenance end node when sending the loopback message is the same path, if yes, it determines that the detection is correct, otherwise, it determines that the detection fails, and returns a loopback detection failure notification.

本发明扩展了IEEE 802.1ag标准规定的以太网环回检测工作机制,使得该功能能够应用于IEEE 802.1Qbp项目规定的支持ECMP的以太网,针对多条等价路径中的一条特定路径进行环回检测,从而可以支持两个维护点之间存在等价多路径的应用场景。 The present invention expands the Ethernet loopback detection working mechanism stipulated in the IEEE 802.1ag standard, so that this function can be applied to the Ethernet supporting ECMP stipulated in the IEEE 802.1Qbp project, and performs loopback for a specific path among multiple equal-cost paths Detection, so as to support the application scenario of equal-cost multipath between two maintenance points.

附图说明 Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中: The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1为IEEE 802.1ag标准规定的环回检测过程示意图; Figure 1 is a schematic diagram of the loopback detection process specified in the IEEE 802.1ag standard;

图2为IEEE 802.1Qbp项目规定的转发标签F-tag封装格式图; Figure 2 is a diagram of the forwarding label F-tag encapsulation format specified by the IEEE 802.1Qbp project;

图3为本发明的环回检测方法的总体流程示意图; Fig. 3 is the overall schematic flow chart of the loopback detection method of the present invention;

图4为本发明实施例一的环回检测过程示意图; 4 is a schematic diagram of a loopback detection process in Embodiment 1 of the present invention;

图5为本发明实施例二的环回检测过程示意图。 FIG. 5 is a schematic diagram of a loopback detection process in Embodiment 2 of the present invention.

具体实施方式 Detailed ways

本发明的主要目的在于,提供一种在支持ECMP的以太网环境下基于流的环回检测机制,其基本思想是:通过扩展IEEE 802.1ag标准定义的环回检测机制,提出一种基于流的环回检测方法,能够实现针对ECMP中的特定传输路径进行环回检测,克服了现有技术中缺乏一种针对ECMP中特定路径进行环回检测的机制的问题。 The main purpose of the present invention is to provide a flow-based loopback detection mechanism in an Ethernet environment supporting ECMP. The basic idea is to propose a flow-based loopback detection mechanism by extending the loopback detection mechanism defined by the IEEE 802.1ag standard The loopback detection method can realize loopback detection for a specific transmission path in ECMP, and overcomes the problem in the prior art that there is no mechanism for loopback detection for a specific path in ECMP.

具体地,本发明一种基于流的环回检测方法,采用如下技术方案: Specifically, a flow-based loopback detection method of the present invention adopts the following technical solution:

由维护端节点向维护中间点或对端维护端节点发送环回消息,该环回消息携带转发标签F-tag,其中包含对应于所选中特定传输路径的16比特的流标识; The maintenance end node sends a loopback message to the maintenance intermediate point or the peer maintenance end node, the loopback message carries the forwarding label F-tag, which includes a 16-bit flow identifier corresponding to the selected specific transmission path;

目的维护点(目的维护中间点或目的维护端节点)接收到携带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 end maintenance end node. The loopback response carries the forwarding label F-tag, which contains the corresponding The flow identifier for the reverse common path transmission path;

源端维护端节点接收到携带F-tag的环回响应,检查其中包含的16比特流标识,判断其是否对应于反向共路传输路径,作为本次环回检测是否成功的依据。 The source end maintenance end node receives the loopback response carrying the F-tag, checks the 16-bit stream identifier contained in it, and judges whether it corresponds to the reverse common path transmission path, as the basis for whether the loopback detection is successful.

其中,目的维护点收到环回消息后,根据其中包含的16比特流标识确定被选中的特定传输路径并计算出去往源端维护端节点的反向共路传输路径所对应的流标识;然后在该反向共路传输路径的流标识包含在发送给源端维护点的环回响应消息中。所述的反向共路传输路径是指该反向路径所经过的节点与正向传输路径所经过的节点完全一致。 Wherein, after the destination maintenance point receives the loopback message, it determines the selected specific transmission path according to the 16-bit flow identifier contained therein , and calculates the flow identifier corresponding to the reverse common path transmission path to the source end maintenance end node; Then the flow identifier on the reverse common path transmission path is included in the loopback response message sent to the source end maintenance point. The reverse shared transmission path means that the nodes passed by the reverse path are exactly the same as the nodes passed by the forward transmission path.

基于上述思想,本发明提出一种基于流的环回检测方法,如图3所示,该方法主要包括: Based on the above thinking, the present invention proposes a flow-based loopback detection method, as shown in Figure 3, the method mainly includes:

步骤301:维护端节点根据操作员的输入,确定目的维护点并从到达目的维护点的多条等价传输路径中选择一条。 Step 301: The maintenance end node determines the destination maintenance point according to the operator's input and selects one of multiple equivalent transmission paths to the destination maintenance point.

这里,操作员输入的信息包括目的维护点的标识,由于目的维护点是基于交换机端口的,所以其标识一般是目的维护点所在端口的媒体访问控制(Media Access Control,简称MAC)地址;操作员输入的信息还包括从到达目的维护点的多条等价传输路径中所选中的特定路径的标识,该标识可以是直接的流标识(Flow ID),也可以是间接的能够计算出流标识的其它标识,包括等价树算法(Equal Cost Tree-Algorithm,简称ECT-Algorithm)标识(从00-80-C2-01到00-80-C2-10),或者是描述流的信息参数(参数集“源/目的MAC地址、源/目的IP地址、源/目的端口”中的一个或多个)。 Here, the information input by the operator includes the identification of the destination maintenance point. Since the destination maintenance point is based on the switch port, its identification is generally the Media Access Control (MAC) address of the port where the destination maintenance point is located; the operator The input information also includes the identification of the specific path selected from the multiple equivalent transmission paths to the destination maintenance point. This identification can be a direct flow identification (Flow ID), or an indirect flow identification that can be calculated Other identifiers, including the Equal Cost Tree-Algorithm (ECT-Algorithm for short) identifier (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing the flow (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, carrying the flow identifier corresponding to the selected transmission path.

根据操作员输入的信息,维护端节点向目的维护点发送环回消息,该消息为单播以太帧,目的MAC地址是目的维护点所在交换机端口的MAC地址,源MAC地址是维护端节点所在交换机端口的MAC地址,该消息还携带转发标签F-tag,其中包含对应所选中传输路径的流标识。 According to the information input by the operator, the maintenance end 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, and the source MAC address is the switch where the maintenance end node is located. The MAC address of the port, and the message also carries the forwarding label F-tag, which includes the flow identifier corresponding to the selected transmission path.

步骤303:目的维护点收到环回消息后,根据流标识选中该传输路径的反向共路传输路径,并计算出对应该反向共路传输路径的流标识。 Step 303: After receiving the loopback message, the destination maintenance point selects the reverse common path transmission path of the transmission path according to the flow identifier, and calculates the flow identifier corresponding to the reverse common path transmission path.

具体地,目的维护点收到维护端节点发送的环回消息后,查看环回消息携带的流标识,根据该标识值判断出环回消息是沿哪一条特定路径传输过来的,具体的判断方法可以是对包含流标识在内的多个参数进行哈希计算,哈希的结果对应到被选中的特定传输路径。然后,目的维护点再计算出对应该特定传输路径的反向共路传输路径的流标识,一种可能的计算方法是根据选定的反向共路传输路径进行反哈希计算。 Specifically, after the destination maintenance point receives the loopback message sent by the maintenance end node, it checks the flow identifier carried in the loopback message, and judges which specific path the loopback message is transmitted along according to the identifier value. The specific judgment method A hash calculation may be performed on multiple parameters including the flow identifier, and the hash result corresponds to the selected specific transmission path. Then, the destination maintenance point calculates the flow identifier of the reverse common path transmission path corresponding to the specific transmission path. A possible calculation method is to perform anti-hash calculation according to the selected reverse common path transmission path.

步骤304:目的维护点向维护端节点回复环回响应消息,携带计算出的对应反向共路传输路径的流标识。 Step 304: The destination maintenance point replies a loopback response message to the maintenance end node, carrying the calculated flow identifier corresponding to the reverse common path transmission path.

目的维护点计算出对应反向共路传输路径的流标识后,向维护端节点回复环回响应消息,该消息为单播以太帧,目的MAC地址是维护端节点所在交换机端口的MAC地址,源MAC地址是目的维护点所在交换机端口的MAC地址,该消息还携带转发标签F-tag,其中包含对应反向共路传输路径的流标识。 After the destination maintenance point calculates the flow identifier corresponding to the reverse common path transmission path, it replies a loopback response message to the maintenance end node. The message is a unicast Ethernet frame, and the destination MAC address is the MAC address of the switch port where the maintenance end node is located. The MAC address is the MAC address of the switch port where the destination maintenance point is located, and the message also carries a forwarding label F-tag, which includes a flow identifier corresponding to the reverse common path transmission path.

步骤305:维护端节点收到环回响应消息后,对流标识进行检测,判断其是否对应于反向共路传输路径。 Step 305: After receiving the loopback response message, the maintenance end node detects the flow identifier to determine whether it corresponds to the reverse common path transmission path.

维护端节点收到目的维护点回复的环回响应消息后,查看环回响应消息携带的流标识,根据该标识值判断出环回响应消息是沿哪一条特定路径传输过来的,判断该传输路径是否与维护端节点发送环回消息时选中的传输路径共路,并以此判断结果作为环回检测是否成功的一个必要条件。 After receiving the loopback response message from the destination maintenance point, the maintenance end node checks the flow identifier carried in the loopback response message, and judges which specific path the loopback response message was transmitted along based on the identifier value, and determines the transmission path Whether it is on the same path as the transmission path selected when the maintenance end node sends the loopback message, and the judgment result is taken as a necessary condition for whether the loopback detection is successful.

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。 In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

实施例一 Embodiment one

本实施例中,维护端节点向维护中间点发起环回检测。 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 in this embodiment. As shown in Figure 3 and Figure 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) to reach the MIP.

操作员输入的信息包括MIP的MAC地址,还包括到达MIP的特定路径SW1->SW21->SW3的标识,该标识可以是直接的Flow ID1,也可以是间接的能够计算出Flow ID1的其它标识,包括ECT-Algorithm标识(从00-80-C2-01到00-80-C2-10),或者是描述Flow的信息参数(参数集“源/目的MAC地址、源/目的IP地址、源/目的端口”中的一个或多个)。 The information entered by the operator includes the MAC address of the MIP, and also includes the identification of the specific path SW1->SW21->SW3 to the MIP. This identification can be a direct Flow ID1 or an indirect identification that can calculate the Flow ID1 , including ECT-Algorithm identification (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing Flow (parameter set "source/destination MAC address, source/destination IP address, source/destination one or more of Destination Port").

步骤402:MEP1向MIP发送环回消息,携带对应所选中传输路径SW1->SW21->SW3的流标识。 Step 402: MEP1 sends a loopback message to 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 ID1。 According to the information input by the operator, MEP1 sends a flow-based loopback message to MIP. The message is a unicast Ethernet frame, the destination MAC address is the MAC address of MIP, the source MAC address is the MAC address of MEP1, and the message also carries a 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 path transmission path of the transmission path according to the flow identifier, and calculates the flow identifier corresponding to the reverse common path 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 MEP1, the MIP checks the flow ID carried in the loopback message, judges that the loopback message is transmitted along SW1->SW21->SW3 according to the ID value Flow ID1, and then calculates The flow identifier Flow ID2 corresponding to the reverse common path transmission path SW3->SW21->SW1 of the specific transmission path, Flow ID2 and Flow ID1 may be the same or different.

步骤404:MIP向MEP1回复环回响应消息,携带计算出的对应反向共路传输路径的流标识。 Step 404: MIP replies a loopback response message to MEP1, carrying the calculated flow identifier corresponding to the reverse common path transmission path.

MIP向MEP1回复基于流的环回响应消息,该消息为单播以太帧,目的MAC地址是MEP1的MAC地址,源MAC地址是MIP的MAC地址,该消息还携带转发标签F-tag,其中包含对应反向共路传输路径SW3->SW21->SW1的Flow ID2。 MIP replies a flow-based loopback response message to MEP1. The message is a unicast Ethernet frame, the destination MAC address is the MAC address of MEP1, and the source MAC address is the MAC address of MIP. The message also carries the forwarding label F-tag, which contains Corresponds to Flow ID2 of the reverse common path SW3->SW21->SW1.

步骤405:MEP1收到环回响应消息后,对流标识进行检测,判断其是否对应于反向共路传输路径。 Step 405: After receiving the loopback response message, MEP1 detects the flow identifier to determine whether it corresponds to the reverse common path transmission path.

MEP1收到MIP回复的基于流的环回响应消息后,查看环回响应消息携带的流标识,根据该标识值Flow ID2判断出环回响应消息是沿SW3->SW21->SW1传输过来的,与MEP1发送环回消息时选中的传输路径SW1->SW21->SW3共路,此判断结果作为环回检测成功的一个必要条件。 After receiving the flow-based loopback response message from the MIP, MEP1 checks the flow ID carried in the loopback response message, and judges that the loopback response message is transmitted along SW3->SW21->SW1 according to the ID value Flow ID2. It is in the same path as the transmission path SW1->SW21->SW3 selected when MEP1 sends the loopback message, and this judgment result is a necessary condition for the success of the loopback detection.

实施例二 Embodiment two

本实施例中,维护端节点向对端维护端节点发起环回检测。 In this embodiment, the maintenance end node initiates a loopback detection to the peer maintenance end node.

图5为本实施例的基于流的环回检测过程示意图。结合图3和图5所示, 该过程主要包括如下步骤: FIG. 5 is a schematic diagram of a flow-based loopback detection process in this embodiment. As shown in Figure 3 and Figure 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 the two equivalent transmission paths (SW1->SW21->SW3->SW4 and SW1->SW22->SW3->SW4) to reach 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 entered by the operator includes the MAC address of MEP2, and also includes the identification of the specific path SW1->SW22->SW3->SW4 to MEP2. The identification can be a direct Flow ID3 or an indirect Flow ID3 that can be calculated. Other identifications, including ECT-Algorithm identification (from 00-80-C2-01 to 00-80-C2-10), or information parameters describing Flow (parameter set "source/destination MAC address, source/destination IP address , Source/Destination Port" or one or more).

步骤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, MEP1 sends a flow-based loopback message to MEP2. The message is a unicast Ethernet frame, the destination MAC address is the MAC address of MEP2, the source MAC address is the MAC address of MEP1, and the message also carries a 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, MEP2 selects the reverse common path transmission path of the transmission path according to the flow identifier, and calculates the flow identifier corresponding to the reverse common path 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 MEP1, MEP2 checks the flow ID carried in the loopback message, and judges that the loopback message is transmitted along SW1->SW22->SW3->SW4 according to the ID value Flow ID3. Then calculate the flow identifier Flow ID4 of the reverse common path transmission path SW4->SW3->SW22->SW1 corresponding to the specific transmission path. Flow ID4 and Flow ID3 may be the same or different.

步骤504:MEP2向MEP1回复环回响应消息,携带计算出的对应反向共路传输路径的流标识。 Step 504: MEP2 replies a loopback response message to MEP1, carrying the calculated flow identifier corresponding to the reverse common path transmission path.

MEP2向MEP1回复基于流的环回响应消息,该消息为单播以太帧,目的MAC地址是MEP1的MAC地址,源MAC地址是MEP2的MAC地址,该消息还携带转发标签F-tag,其中包含对应反向共路传输路径SW4->SW3->SW22->SW1的Flow ID4。 MEP2 replies a flow-based loopback response message to MEP1. The message is a unicast Ethernet frame, the destination MAC address is the MAC address of MEP1, and the source MAC address is the MAC address of MEP2. The message also carries the forwarding label F-tag, which contains Corresponds to Flow ID4 of the reverse common path SW4->SW3->SW22->SW1.

步骤505:MEP1收到环回响应消息后,对流标识进行检测,判断其是否对应于反向共路传输路径。 Step 505: After receiving the loopback response message, MEP1 detects the flow identifier to determine whether it corresponds to the reverse common path transmission path.

MEP1收到MEP2回复的基于流的环回响应消息后,查看环回响应消息携带的流标识,根据该标识值Flow ID4判断出环回响应消息是沿SW4->SW3->SW22->SW1传输过来的,与MEP1发送环回消息时选中的传输路径SW1->SW22->SW3->SW4共路,此判断结果作为环回检测成功的一个必要条件。 After receiving the flow-based loopback response message from MEP2, MEP1 checks the flow identifier carried in the loopback response message, and judges that the loopback response message is transmitted along SW4->SW3->SW22->SW1 according to the identifier value Flow ID4 The incoming ones share the same path as the transmission path SW1->SW22->SW3->SW4 selected when MEP1 sends the loopback message. This judgment result is a necessary condition for the success of the loopback detection.

此外,本发明实施例中还提供了一种环回检测系统,应用于支持等价多路径的以太网,该系统主要包括:源维护端节点中的传输路径确定单元、环回消息发送单元和环回检测单元;目的维护点中的环回响应单元, In addition, an embodiment of the present invention also provides a loopback detection system, which is applied to an Ethernet supporting equal-cost multipath. The system mainly includes: a transmission path determination unit in a source maintenance end node, a loopback message sending unit, and A loopback detection unit; a loopback response unit in the destination maintenance point,

传输路径确定单元用于,从到目的维护点的多条等价传输路径中确定一条特定传输路径; The transmission path determination unit is used to determine a specific transmission path from multiple equivalent transmission paths to the destination maintenance point;

环回消息发送单元用于,向目的维护点发送环回消息,环回消息中包含特定传输路径对应的流标识; The loopback message sending unit is used to send a loopback message to the destination maintenance point, and the loopback message includes a flow identifier corresponding to a specific transmission path;

环回响应单元用于,接收到环回消息后,向源维护端节点发送环回响应消息,环回响应消息中包含到源维护端节点的反向共路传输路径所对应的流标识; The loopback response unit is used to send a loopback response message to the source maintenance end node after receiving the loopback message, and the loopback response message includes the flow identifier corresponding to the reverse common path transmission path to the source maintenance end node;

环回检测单元用于,接收到环回响应消息且检测无误后,返回环回检测成功的通告。 The loopback detection unit is configured to return a notification that the loopback detection is successful after receiving the loopback response message and the detection is correct.

进一步地,环回消息发送单元还用于,根据操作员输入的如下信息中的一个或其任意组合确定特定传输路径对应的流标识,并在环回消息中包含特定传输路径对应的流标识: Further, the loopback message sending unit is further configured to determine the flow identifier corresponding to the specific transmission path according to one or any combination of the following information input by the operator, and include the flow identifier corresponding to the specific transmission path in the loopback message:

流标识、等价树算法标识、源/目的媒体访问控制(MAC)地址、源/目的IP地址、源/目的端口。 Flow identifier, equivalence tree algorithm identifier, source/destination media access control (MAC) address, source/destination IP address, source/destination port.

进一步地,环回消息发送单元用于,通过以下方式在环回消息中包含特定传输路径对应的流标识: Further, the loopback message sending unit is configured to include the flow identifier corresponding to the specific transmission path in the loopback message in the following manner:

在环回消息中携带转发标签,且在转发标签中包含特定传输路径对应的流标识。 The forwarding label is carried in the loopback message, and the flow identifier corresponding to the specific transmission path is included in the forwarding label.

进一步地,环回响应单元用于,接收到环回消息后,根据其中包含的流标识确定特定传输路径,并计算出反向共路传输路径所对应的流标识后,向源维护端节点发送环回响应消息,并在环回响应消息中包含反向共路传输路径所对应的流标识; Further, the loopback response unit is configured to, after receiving the loopback message, determine a specific transmission path according to the flow identifier contained therein, and after calculating the flow identifier corresponding to the reverse common path transmission path, send the message to the source maintenance end node A loopback response message, and the loopback response message includes the flow identifier corresponding to the reverse common path transmission path;

其中,反向共路传输路径是指该反向传输路径所经过的节点与正向传输路径所经过的维护点完全一致。 Wherein, the reverse common path transmission path means that the nodes passed by the reverse transmission path are completely consistent with the maintenance points passed by the forward transmission path.

进一步地,环回检测单元用于,接收到环回响应消息后,根据其中包含的流标识确定环回响应消息的传输路径,并判断传输路径是否与源维护端节点发送环回消息时选中的特定传输路径共路,如果是,则确定检测无误,否则,确定检测失败,并返回环回检测失败的通告。 Further, the loopback detection unit is used to, after receiving the loopback response message, determine the transmission path of the loopback response message according to the flow identifier contained therein, and determine whether the transmission path is the one selected when the source maintenance node sends the loopback message. If the specific transmission path is common, it is determined that the detection is correct; otherwise, it is determined that the detection fails, and a loopback detection failure notification is returned.

以上仅为本发明的优选实施案例而已,并不用于限制本发明,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明做出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 The above are only preferred implementation examples of the present invention, and are not intended to limit the present invention. The present invention can also have other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can Various corresponding changes and modifications are made in the present invention, but these corresponding changes and modifications should all belong to the protection scope of the appended claims of the present invention.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

Claims (10)

1.一种环回检测方法,其特征在于,应用于支持等价多路径的以太网,所述方法包括: 1. a loopback detection method, is characterized in that, is applied to the Ethernet that supports equal-cost multipath, and described method comprises: 源维护端节点向目的维护点发送环回消息,所述环回消息中包含到目的维护点的多条等价传输路径中的一条特定传输路径对应的流标识; The source maintenance end node sends a loopback message to the destination maintenance point, and the loopback message includes a flow identifier corresponding to a specific transmission path among multiple equivalent transmission paths to the destination maintenance point; 所述目的维护点接收到所述环回消息后,向所述源维护端节点发送环回响应消息,所述环回响应消息中包含到所述源维护端节点的反向共路传输路径所对应的流标识; After the destination maintenance point receives the loopback message, it sends a loopback response message to the source maintenance end node, and the loopback response message includes information about the reverse common path transmission path to the source maintenance end node. the corresponding flow ID; 所述源维护端节点接收到所述环回响应消息且检测无误后,返回环回检测成功的通告。 After the source maintenance end node receives the loopback response message and the detection is correct, it returns a notification that the loopback detection is successful. 2.如权利要求1所述的方法,其特征在于, 2. The method of claim 1, wherein 所述源维护端节点根据操作员输入的如下信息中的一个或其任意组合确定所述特定传输路径对应的流标识: The source maintenance end node determines the flow identifier corresponding to the specific transmission path according to one or any combination of the following information input by the operator: 流标识、等价树算法标识、源/目的媒体访问控制(MAC)地址、源/目的IP地址、源/目的端口。 Flow identifier, equivalence tree algorithm identifier, source/destination media access control (MAC) address, source/destination IP address, source/destination port. 3.如权利要求1或2所述的方法,其特征在于, 3. The method of claim 1 or 2, wherein, 所述目的维护点接收到所述环回消息后,根据其中包含的所述流标识确定所述特定传输路径,并计算出所述反向共路传输路径所对应的流标识后,向所述源维护端节点发送环回响应消息,并在所述环回响应消息中包含所述反向共路传输路径所对应的流标识; After receiving the loopback message, the destination maintenance point determines the specific transmission path according to the flow identifier contained therein, calculates the flow identifier corresponding to the reverse common path transmission path, and sends the The source maintenance end node sends a loopback response message, and includes the flow identifier corresponding to the reverse common path transmission path in the loopback response message; 其中,所述反向共路传输路径是指该反向传输路径所经过的节点与正向传输路径所经过的维护点完全一致。 Wherein, the reverse shared transmission path means that the nodes passed by the reverse transmission path are exactly the same as the maintenance points passed by the forward transmission path. 4.如权利要求1所述的方法,其特征在于, 4. The method of claim 1, wherein, 所述源维护端节点通过以下方式在所述环回消息中包含所述特定传输路径对应的流标识: The source maintenance end node includes the flow identifier corresponding to the specific transmission path in the loopback message in the following manner: 所述源维护端节点在所述环回消息中携带转发标签,且在所述转发标签中包含所述特定传输路径对应的流标识。 The source maintenance end node carries a forwarding label in the loopback message, and the forwarding label includes a flow identifier corresponding to the specific transmission path. 5.如权利要求3所述的方法,其特征在于, 5. The method of claim 3, wherein, 所述源维护端节点接收到所述环回响应消息且检测无误,具体包括: The source maintenance end node receives the loopback response message and detects it correctly, including: 所述维护端节点接收到所述环回响应消息后,根据其中包含的流标识确定所述环回响应消息的传输路径,并判断所述传输路径是否与所述源维护端节点发送所述环回消息时选中的所述特定传输路径共路,如果是,则确定检测无误,否则,确定检测失败,并返回环回检测失败的通告。 After the maintenance end node receives the loopback response message, it determines the transmission path of the loopback response message according to the flow identifier contained therein, and judges whether the transmission path is the same as the source maintenance end node sending the loopback message. The specific transmission path selected when returning the message is the same path, if yes, it is determined that the detection is correct, otherwise, it is determined that the detection fails, and a loopback detection failure notification is returned. 6.一种环回检测系统,其特征在于,应用于支持等价多路径的以太网,所述系统包括:源维护端节点中的传输路径确定单元、环回消息发送单元和环回检测单元;目的维护点中的环回响应单元, 6. A loopback detection system, characterized in that it is applied to Ethernet supporting equal-cost multipath, said system comprising: a transmission path determination unit, a loopback message sending unit and a loopback detection unit in the source maintenance terminal node ;The loopback response unit in the destination maintenance point, 所述传输路径确定单元用于,从到目的维护点的多条等价传输路径中确定一条特定传输路径; The transmission path determination unit is configured to determine a specific transmission path from multiple equivalent transmission paths to the destination maintenance point; 所述环回消息发送单元用于,向目的维护点发送环回消息,所述环回消息中包含所述特定传输路径对应的流标识; The loopback message sending unit is configured to send a loopback message to a destination maintenance point, and the loopback message includes a flow identifier corresponding to the specific 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 consensus to the source maintenance end node. The flow identifier corresponding to the transmission path; 所述环回检测单元用于,接收到所述环回响应消息且检测无误后,返回环回检测成功的通告。 The loopback detection unit is configured to return a notification that the loopback detection is successful after receiving the loopback response message and the detection is correct. 7.如权利要求6所述的系统,其特征在于, 7. The system of claim 6, wherein: 所述环回消息发送单元还用于,根据操作员输入的如下信息中的一个或其任意组合确定所述特定传输路径对应的流标识,并在所述环回消息中包含所述特定传输路径对应的流标识: The loopback message sending unit is further configured to determine the flow identifier corresponding to the specific transmission path according to one or any combination of the following information input by the operator, and include the specific transmission path in the loopback message Corresponding stream ID: 流标识、等价树算法标识、源/目的媒体访问控制(MAC)地址、源/目的IP地址、源/目的端口。 Flow identifier, equivalence tree algorithm identifier, source/destination media access control (MAC) address, source/destination IP address, source/destination port. 8.如权利要求6或7所述的系统,其特征在于, 8. The system of claim 6 or 7, wherein: 所述环回消息发送单元用于,通过以下方式在所述环回消息中包含所述特定传输路径对应的流标识: The loopback message sending unit is configured to include the flow identifier corresponding to the specific transmission path in the loopback message in the following manner: 在所述环回消息中携带转发标签,且在所述转发标签中包含所述特定传输路径对应的流标识。 A forwarding label is carried in the loopback message, and a flow identifier corresponding to the specific transmission path is included in the forwarding label. 9.如权利要求6或7所述的系统,其特征在于, 9. The system of claim 6 or 7, wherein 所述环回响应单元用于,接收到所述环回消息后,根据其中包含的所述流标识确定所述特定传输路径,并计算出所述反向共路传输路径所对应的流标识后,向所述源维护端节点发送环回响应消息,并在所述环回响应消息中包含所述反向共路传输路径所对应的流标识; The loopback response unit is configured to, after receiving the loopback message, determine the specific transmission path according to the flow identifier contained therein, and calculate the flow identifier corresponding to the reverse common path transmission path , sending a loopback response message to the source maintenance end node, and including the flow identifier corresponding to the reverse common path transmission path in the loopback response message; 其中,所述反向共路传输路径是指该反向传输路径所经过的节点与正向传输路径所经过的维护点完全一致。 Wherein, the reverse shared transmission path means that the nodes passed by the reverse transmission path are exactly the same as the maintenance points passed by the forward transmission path. 10.如权利要求9所述的系统,其特征在于, 10. The system of claim 9, wherein: 所述环回检测单元用于,接收到所述环回响应消息后,根据其中包含的流标识确定所述环回响应消息的传输路径,并判断所述传输路径是否与所述源维护端节点发送所述环回消息时选中的所述特定传输路径共路,如果是,则确定检测无误,否则,确定检测失败,并返回环回检测失败的通告。 The loopback detection unit is used to, after receiving the loopback response message, determine the transmission path of the loopback response message according to the flow identifier contained therein, and determine whether the transmission path is consistent with the source maintenance end node The specific transmission path selected when sending the loopback message is the same path, if yes, it is determined that the detection is correct, otherwise, it is determined that the detection fails, and a loopback detection failure notification is returned.
CN201110163645.3A 2011-06-17 2011-06-17 Loopback detection method and system Active CN102833122B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110163645.3A CN102833122B (en) 2011-06-17 2011-06-17 Loopback detection method and system
PCT/CN2012/072842 WO2012171382A1 (en) 2011-06-17 2012-03-22 Loopback detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110163645.3A CN102833122B (en) 2011-06-17 2011-06-17 Loopback detection method and system

Publications (2)

Publication Number Publication Date
CN102833122A true CN102833122A (en) 2012-12-19
CN102833122B CN102833122B (en) 2017-05-24

Family

ID=47336100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110163645.3A Active CN102833122B (en) 2011-06-17 2011-06-17 Loopback detection method and system

Country Status (2)

Country Link
CN (1) CN102833122B (en)
WO (1) WO2012171382A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760319A (en) * 2014-12-15 2016-07-13 中兴通讯股份有限公司 Data successfully sent confirmation method and device
CN106162679A (en) * 2015-04-22 2016-11-23 中国移动通信集团内蒙古有限公司 The decision method of wireless broadband equipment working mechanism and device
WO2018040940A1 (en) * 2016-09-01 2018-03-08 中兴通讯股份有限公司 Two-layer network, and loopback detection method of two-layer network
CN112636997A (en) * 2020-11-17 2021-04-09 新华三技术有限公司 Path detection method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639470B (en) 2013-11-14 2019-05-31 中兴通讯股份有限公司 Traffic identifier packaging method and system

Citations (5)

* Cited by examiner, † Cited by third party
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
CN101132319A (en) * 2006-08-21 2008-02-27 华为技术有限公司 A Method for Ethernet Operation and Maintenance Fault Detection
CN101267363A (en) * 2008-04-24 2008-09-17 杭州华三通信技术有限公司 Loop testing method, system and device
US20100238812A1 (en) * 2009-03-23 2010-09-23 Cisco Technology, Inc. Operating MPLS label switched paths and MPLS pseudowire in loopback mode
CN102075438A (en) * 2011-02-14 2011-05-25 中兴通讯股份有限公司 Unicast data frame transmission method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505240B (en) * 2008-02-05 2011-03-30 华为技术有限公司 Fault detection method and apparatus
JP2010154353A (en) * 2008-12-25 2010-07-08 Fujitsu Ltd Inlet node, communication node and loopback test method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132319A (en) * 2006-08-21 2008-02-27 华为技术有限公司 A Method for Ethernet Operation and Maintenance Fault Detection
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
US20100238812A1 (en) * 2009-03-23 2010-09-23 Cisco Technology, Inc. Operating MPLS label switched paths and MPLS pseudowire in loopback mode
CN102075438A (en) * 2011-02-14 2011-05-25 中兴通讯股份有限公司 Unicast data frame transmission method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760319A (en) * 2014-12-15 2016-07-13 中兴通讯股份有限公司 Data successfully sent confirmation method and device
CN106162679A (en) * 2015-04-22 2016-11-23 中国移动通信集团内蒙古有限公司 The decision method of wireless broadband equipment working mechanism and device
CN106162679B (en) * 2015-04-22 2019-09-24 中国移动通信集团内蒙古有限公司 The determination method and device of wireless broadband equipment working mechanism
WO2018040940A1 (en) * 2016-09-01 2018-03-08 中兴通讯股份有限公司 Two-layer network, and loopback detection method of two-layer network
CN107800581A (en) * 2016-09-01 2018-03-13 中兴通讯股份有限公司 A kind of loop detection method of double layer network and double layer network
CN107800581B (en) * 2016-09-01 2022-03-18 中兴通讯股份有限公司 Two-layer network and loopback detection method thereof
CN112636997A (en) * 2020-11-17 2021-04-09 新华三技术有限公司 Path detection method and device
CN112636997B (en) * 2020-11-17 2022-08-30 新华三技术有限公司 Path detection method and device

Also Published As

Publication number Publication date
WO2012171382A1 (en) 2012-12-20
CN102833122B (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN108574616B (en) Method, equipment and system for processing route
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US10666459B1 (en) System and method to facilitate interoperability between virtual private LAN service (VPLS) and ethernet virtual private network (EVPN) with all-active multi-homing
JP6250825B2 (en) Method and system for deploying a MAXIMALLY REDUNDANT TREE in a data network
US10791053B2 (en) Service function chain SFC-based communication method, and apparatus
CN110798403B (en) Communication method, communication device and communication system
EP2632088B1 (en) Method and device for storing and sending mac address entry
JP2014090468A (en) Ethernet oam at intermediate nodes in pbt network
CN107872389B (en) Method, apparatus, and computer-readable storage medium for service load balancing
US8902794B2 (en) System and method for providing N-way link-state routing redundancy without peer links in a network environment
WO2018103099A1 (en) Method, device and system for sending and receiving message
US11362954B2 (en) Tunneling inter-domain stateless internet protocol multicast packets
US9917768B2 (en) System and method for reflecting FEC route information
CN102833122B (en) Loopback detection method and system
CN107786386B (en) Selective transmission of Bidirectional Forwarding Detection (BFD) messages for authenticating multicast connections
CN103368806A (en) Method and system for processing data flow and device
KR20220093155A (en) Packet forwarding method, first network device and first device group
CN103634210B (en) Find the method and apparatus of the opposite end PE equipment of VPLS example
WO2014164073A1 (en) System and method for reflecting forwarding equivalence class route information
US8072908B2 (en) Partitioned forwarding of packets originated on a broadcast link among layer 2 forwarding devices of different adjacency networks
CN110945835B (en) Message synchronization method and device
CN103036731B (en) A kind of equipment of the loopback detection based on stream, system and method
US11627093B1 (en) Generic layer independent fragmentation of non-internet protocol frames
CN103166786A (en) A method and system for realizing link tracking
CN115460107A (en) Route detection method, device, system and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201225

Address after: No.99 Huanghai Road, Gangzha Economic Development Zone, Nantong City, Jiangsu Province, 216002

Patentee after: NANTONG HONGMEI DAIRY Co.,Ltd.

Address before: 518057 Ministry of justice, Zhongxing building, South Science and technology road, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Patentee before: ZTE Corp.