CN100446476C - Method and device for intercommunication of network fault detection results - Google Patents
Method and device for intercommunication of network fault detection results Download PDFInfo
- Publication number
- CN100446476C CN100446476C CNB2006101040694A CN200610104069A CN100446476C CN 100446476 C CN100446476 C CN 100446476C CN B2006101040694 A CNB2006101040694 A CN B2006101040694A CN 200610104069 A CN200610104069 A CN 200610104069A CN 100446476 C CN100446476 C CN 100446476C
- Authority
- CN
- China
- Prior art keywords
- link
- detection
- status
- state
- module
- 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.)
- Expired - Fee Related
Links
Images
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/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种网络故障检测结果互通的方法和装置,属于网络管理领域。为了解决网络故障检测结果互通的问题,本发明提出了一种建立两条相邻链路的状态关联,并将所述关联对应到相应链路的检测实例表上的方法,本发明所述的方法有效的解决了网络故障检测结果互通的问题。本发明还提供了一种网络故障检测结果互通装置,同样实现了网络故障检测结果互通的问题。
The invention discloses a method and a device for intercommunicating network fault detection results, belonging to the field of network management. In order to solve the problem of intercommunication of network fault detection results, the present invention proposes a method of establishing the state association of two adjacent links, and corresponding the association to the detection instance table of the corresponding link. The method effectively solves the problem of intercommunication of network fault detection results. The invention also provides a network fault detection result intercommunication device, which also realizes the problem of network fault detection result intercommunication.
Description
技术领域 technical field
本发明涉及网络管理领域,特别涉及一种网络故障检测结果互通的方法和装置。The invention relates to the field of network management, in particular to a method and device for intercommunicating network fault detection results.
背景技术 Background technique
以太网技术简单易用、价格低廉、且带宽可不断提高,无论是作为一种业务还是作为一种网络结构在企业网、城域网、广域网范围内都已经得到大规模应用,但是传统以太网可维护、可运营能力比较弱,随着以太网推广的范围逐渐扩大,对以太网OAM(Operations、Administration and Maintenance,操作、管理与维护)功能的需求也越来越强烈。OAM技术是一种提供可操作、可维护功能的技术,它可以对网络中的各种失效进行自动检测,然后采取对应的补救措施,来避免故障的扩大或者尽量消除故障带来的负面影响。Ethernet technology is easy to use, low in price, and its bandwidth can be continuously improved. Whether it is a service or a network structure, it has been widely used in enterprise networks, metropolitan area networks, and wide area networks. However, traditional Ethernet The maintainability and operability capabilities are relatively weak. With the gradual expansion of the scope of Ethernet promotion, the demand for Ethernet OAM (Operations, Administration and Maintenance, operation, management and maintenance) functions is becoming stronger and stronger. OAM technology is a technology that provides operable and maintainable functions. It can automatically detect various failures in the network, and then take corresponding remedial measures to avoid the expansion of the failure or eliminate the negative impact of the failure as much as possible.
PWE3(Pseudo Wire Emulation Edge-to-Edge端到端伪线仿真)原先称为马蒂尼草案(Martini Draft),是一种端到端的二层业务承载技术,其初衷是在MPLS(Multi Protocol LabelSwitching多协议标记交换)上仿真以太网。PWE3在分组交换网络(Packet Switched NetworkPSN)上模拟各种点到点业务的机制,被模拟的业务可以是TDM(Time Division Multiplex时分多路复用)专线、ATM(Asynchronous Transfer Mode异步传输模式)、FR(Frame Relay帧中继)或以太网等,PWE3利用PSN上的隧道机制来模拟一种业务的必要属性,这里的隧道称为虚拟线(Pseudo Wire PW)。PWE3可以对特定服务的协议数据单元(Protocol Data UnitPDU)进行封装,PDU里面含有仿真特定服务所必需的数据和控制信息。运营商使用PWE3机制可以将所有的传送业务转移到一个融合的网络之中,如IP/MPLS网络,从用户的角度来看,可以认为PWE3模拟的虚拟线是一种专用的链路或电路。PWE3 (Pseudo Wire Emulation Edge-to-Edge end-to-end pseudowire emulation) was originally called Martini Draft (Martini Draft), which is an end-to-end Layer 2 service bearing technology. Emulate Ethernet over Multiprotocol Label Switching. PWE3 simulates various point-to-point service mechanisms on the Packet Switched Network (PSN). The simulated services can be TDM (Time Division Multiplex) leased line, ATM (Asynchronous Transfer Mode), FR (Frame Relay) or Ethernet, etc., PWE3 uses the tunnel mechanism on the PSN to simulate the necessary attributes of a service. The tunnel here is called a virtual wire (Pseudo Wire PW). PWE3 can encapsulate the protocol data unit (Protocol Data UnitPDU) of a specific service, and the PDU contains the data and control information necessary to simulate a specific service. Operators can use the PWE3 mechanism to transfer all transport services to a converged network, such as an IP/MPLS network. From the user's point of view, the virtual line simulated by PWE3 can be considered as a dedicated link or circuit.
802.1ag ETHOAM(以太网的操作、管理与维护)可以解决端到端的以太网OAM问题,而且还可以跨越多个桥节点,是可以区分VLAN(虚拟局域网)的OAM,802.1ag ETHOAM的故障检测功能是通过连续性检测报文(CCM-Continuity Check Message)来实现的,主要功能包括:故障检测功能,故障确认功能(Ping),故障定位和隔离功能(TraceRoute),故障通知和告警抑制功能。802.1ag ETHOAM (Ethernet operation, management and maintenance) can solve the end-to-end Ethernet OAM problem, and can also span multiple bridge nodes. It is an OAM that can distinguish VLANs (Virtual Local Area Networks), and the fault detection function of 802.1ag ETHOAM It is realized through the continuity check message (CCM-Continuity Check Message). The main functions include: fault detection function, fault confirmation function (Ping), fault location and isolation function (TraceRoute), fault notification and alarm suppression function.
BFD检测技术可以解决PW故障检测问题,BFD(Bidirectional Forwarding Detection双向转发检测)检测技术由于其具有检测机制简单、灵活性强、通用性好等优点,使得它在伪线仿真的故障检测中得到了广泛的应用。BFD for PW作为PW故障检测方式的一种,其故障检测是通过检测Hello报文来实现的。BFD detection technology can solve the problem of PW fault detection. BFD (Bidirectional Forwarding Detection) detection technology has the advantages of simple detection mechanism, strong flexibility, and good versatility, so it has been used in the fault detection of pseudo-wire simulation. Wide range of applications. BFD for PW is one of the PW fault detection methods, and its fault detection is implemented by detecting Hello packets.
如图1所示一个基础的ETH PWE3的网络架构,用户边缘(Customer Edge)CE1和CE2之间建立PW,CE1、CE2与提供者边缘(Provider Edge)PE1、PE2之间分别以以太网接入,这里我们不区分PW具体的信令实现,只简单的看为PE1到PE2之间有一条PW。目前为了在故障时快速地倒换到其它链路,需要快速地发现故障。CE1和PE1之间的以太链路可以通过802.1ag ETHOAM的故障监测机制进行快速故障检测,PW我们通过BFD for PW检测技术来进行快速故障检测,CE2和PE2之间和CE1和PE1之间的检测机制一样。这样一来,AC(Attachment Circuit)链路和PW链路都能进行独立的快速故障检测,但是如何将PW链路故障检测结果通告给AC链路,如何将远端的AC链路故障检测结果通告给PW侧,再进一步通知到近端,从而实现端到端的快速检测,这是一个函待解决的问题。A basic ETH PWE3 network architecture is shown in Figure 1. A PW is established between CE1 and CE2 at the customer edge, and Ethernet access is used between CE1 and CE2 and PE1 and PE2 at the provider edge. , here we do not distinguish the specific signaling implementation of the PW, and simply see that there is a PW between PE1 and PE2. At present, in order to quickly switch to other links when a fault occurs, it is necessary to quickly discover the fault. The Ethernet link between CE1 and PE1 can perform fast fault detection through the 802.1ag ETHOAM fault monitoring mechanism. For PW, we use BFD for PW detection technology to perform fast fault detection. The detection between CE2 and PE2 and between CE1 and PE1 The mechanism is the same. In this way, both the AC (Attachment Circuit) link and the PW link can perform independent fast fault detection, but how to notify the AC link of the PW link fault detection result, and how to report the remote AC link fault detection result It is notified to the PW side, and then further notified to the near end, so as to realize end-to-end fast detection, which is a problem to be solved.
发明内容 Contents of the invention
为了解决网络故障检测结果互通的问题,本发明提出了一种建立两条相邻链路的状态关联,并将所述关联的索引对应到相应链路的检测实例表上的方法,所述方法包括建立两条相邻链路的状态关联,并将所述关联的索引对应到相应链路的检测实例表上,并执行以下步骤:In order to solve the problem of intercommunication of network fault detection results, the present invention proposes a method of establishing a state association of two adjacent links, and corresponding the associated index to the detection instance table of the corresponding link. The method It includes establishing a state association of two adjacent links, and corresponding the index of the association to the detection instance table of the corresponding link, and performing the following steps:
步骤A:对链路进行检测,发现链路故障后,根据所述链路上的检测实例表与所述状态关联的索引的对应关系搜索到对应的状态关联表,将所述状态关联表中所述链路的状态位设置为错误状态;步骤B:对所述链路的相邻链路发送检测报文之前,根据所述两条相邻链路的状态关联查看本链路的状态;Step A: Detect the link, and after finding a link failure, search for the corresponding state association table according to the corresponding relationship between the detection instance table on the link and the index associated with the state, and save the state association table in the state association table The state bit of the link is set to an error state; step B: before sending a detection message to the adjacent link of the link, check the state of the link according to the state association of the two adjacent links;
步骤C:如果所述本链路的状态位为错误状态,设置含有错误标志位的检测报文,并向所述相邻链路发送检测报文。Step C: If the status bit of the current link is in an error state, set a detection message containing an error flag bit, and send a detection message to the adjacent link.
所述建立两条相邻链路的状态关联具体包括:在两条相邻链路的公共数据区上建立线性索引的状态关联表,并将所述状态关联表对应到相应链路的检测实例表上。The establishment of the state association of two adjacent links specifically includes: establishing a linearly indexed state association table on the common data area of the two adjacent links, and corresponding the state association table to the detection instance of the corresponding link on the table.
所述建立两条相邻链路的状态关联具体包括:在链路的检测实例表中添加相邻链路的检测实例表的索引以及相邻链路的状态位。The establishment of the state association of two adjacent links specifically includes: adding an index of the detection instance table of the adjacent link and a state bit of the adjacent link to the detection instance table of the link.
所述网络为以太PWE3网络,所述两条相邻的链路为PW链路和AC链路。The network is an Ethernet PWE3 network, and the two adjacent links are a PW link and an AC link.
本发明还提供了一种网络故障检测结果互通装置,所述装置包括初始化模块、链路检测模块、状态位设置模块、状态位查看模块、检测报文发送模块;The present invention also provides a network fault detection result intercommunication device, the device includes an initialization module, a link detection module, a status bit setting module, a status bit checking module, and a detection message sending module;
所述初始化模块用于建立两条相邻链路的状态关联,并将所述关联的索引对应到相应链路的检测实例表上;The initialization module is used to establish the state association of two adjacent links, and correspond the index of the association to the detection instance table of the corresponding link;
所述链路检测模块用于检测所述链路状态,并将所述链路状态发送给所述状态位设置模块;The link detection module is used to detect the link status, and send the link status to the status bit setting module;
所述状态位设置模块用于接收所述链路检测模块发送的链路状态,发现链路故障后,根据所述链路上的检测实例表搜索到对应的状态关联表,将所述状态关联表中本链路的状态位设置为错误状态;The status bit setting module is used to receive the link status sent by the link detection module, and after finding a link failure, search for a corresponding status association table according to the detection instance table on the link, and associate the status The status bit of this link in the table is set to error status;
所述状态位查看模块用于对所述链路的相邻链路发送检测报文之前,根据所述两条相邻链路的状态关联查看本链路的状态,并将所述本链路的状态发送到所述检测报文发送模块;The status bit checking module is used to check the status of the link according to the status association of the two adjacent links before sending the detection message to the adjacent link of the link, and check the status of the link The status is sent to the detection message sending module;
所述检测报文发送模块用于接收所述状态位查看模块发送的本链路的状态,如果所述本链路的状态位为错误状态,设置含有错误标志位的检测报文,并向所述相邻链路发送检测报文。The detection message sending module is used to receive the status of the link sent by the status bit viewing module, if the status bit of the link is an error state, set the detection message containing the error flag bit, and send to all The adjacent link sends a detection packet.
所述初始化模块为状态表建立关联模块,用于在两条相邻链路的公共数据区上建立线性索引的状态关联表,并将所述状态关联表的索引对应到相应链路的检测实例表上;The initialization module establishes an association module for the state table, which is used to establish a state association table with a linear index on the public data area of two adjacent links, and correspond the index of the state association table to the detection instance of the corresponding link on the table;
所述初始化模块为链路监视模块,用于在链路的检测实例表中添加相邻链路的检测实例表的索引以及相邻链路的状态位。The initialization module is a link monitoring module, which is used to add the index of the detection instance table of the adjacent link and the status bit of the adjacent link to the detection instance table of the link.
本发明所述的技术方案有效地解决了网络故障检测结果互通的问题。The technical proposal of the invention effectively solves the problem of intercommunication of network fault detection results.
附图说明 Description of drawings
图1是ETH PWE3网络架构图;Figure 1 is a network architecture diagram of ETH PWE3;
图2是本发明实施例1的方法流程图;Fig. 2 is the method flowchart of embodiment 1 of the present invention;
图3是本发明实施例2的方法流程图;Fig. 3 is the method flowchart of embodiment 2 of the present invention;
图4是本发明实施例3的方法流程图;Fig. 4 is the method flowchart of embodiment 3 of the present invention;
图5是本发明实施例4的方法流程图;Fig. 5 is the method flowchart of embodiment 4 of the present invention;
图6是本发明所述网络故障检测结果互通的装置结构图。Fig. 6 is a structural diagram of a device for intercommunicating network fault detection results according to the present invention.
具体实施方式 Detailed ways
下面结合附图和具体实施例对本发明作进一步说明,但不作为对本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.
参见图1,CE和PE之间采用的802.1ag ETHOAM由于是AC链路两端相互连续发送CCM(Continuity Check Message)报文的方式,所以ETH PWE3的网络架构是一个对称模型。目前大部分路由器的控制层面和转发层面是分离的,BFD for PW和ETH OAM进行的检测都是由转发层面完成的,为了达到控制层面和转发层面一致性并且同时快速检测倒换的目的,BFD for PW和ETH OAM检测到的故障需要转发平面直接更改相关的链路状态表,并同时上送控制层面。在这种情况下,就需要在交界处(PE1、PE2)进行一些处理,以实现端到端的快速检测互通。Referring to Figure 1, the 802.1ag ETHOAM used between CE and PE is a way for both ends of the AC link to continuously send CCM (Continuity Check Message) messages to each other, so the network architecture of ETH PWE3 is a symmetrical model. At present, the control plane and the forwarding plane of most routers are separated. The detection of BFD for PW and ETHOAM is completed by the forwarding plane. In order to achieve the consistency between the control plane and the forwarding Faults detected by PW and ETH OAM require the forwarding plane to directly change the relevant link state table and send it to the control plane at the same time. In this case, some processing needs to be performed at the junction (PE1, PE2) to realize end-to-end fast detection intercommunication.
本发明提出了一种在PW链路和AC链路交界处的公共数据区上建立一张线性索引的PW和AC的状态表,并将PW和AC状态表的索引关联到对应BFD和ETHOAM检测的实例表上,ETHOAM和BFD检测时要到对应的PW和AC状态表里查看PW或AC的状态位,根据PW或AC状态位的结果发送检测报文的方法,通过这种方法可以简单地实现PW和ETH之间故障检测结果的互通。The present invention proposes to establish a linearly indexed PW and AC state table on the public data area at the junction of the PW link and the AC link, and associate the indexes of the PW and AC state tables with the corresponding BFD and ETHOAM detection In the example table of ETHOAM and BFD, you need to check the status bits of PW or AC in the corresponding PW and AC status tables when detecting ETHOAM and BFD, and send detection messages according to the results of the status bits of PW or AC. This method can simply Realize the intercommunication of fault detection results between PW and ETH.
实施例1Example 1
参见图1和图2,当PW链路出现故障,即PE1没有收到PE2发来的Hello报文,或者收到PE2发来的状态位为DOWN的Hello报文,需要将故障检测结果通告给AC链路,其具体步骤如下:Referring to Figure 1 and Figure 2, when the PW link fails, that is, PE1 does not receive the Hello packet from PE2, or receives the Hello packet with the DOWN status bit from PE2, it needs to notify the fault detection result to AC link, the specific steps are as follows:
步骤101:在PE1和PE2上的公共数据区分别建立一张线性索引的PW和AC状态表,并将其状态表的索引分别关联到对应BFD检测和ETHOAM检测的实例表上;Step 101: Create a linearly indexed PW and AC state table in the public data area on PE1 and PE2 respectively, and associate the indexes of the state table with the instance tables corresponding to BFD detection and ETHOAM detection;
步骤102:采用BFD检测技术对链路PW进行检测,检测到PE1和PE2之间的链路出现故障;Step 102: Use BFD detection technology to detect the link PW, and detect that the link between PE1 and PE2 is faulty;
步骤103:PE根据BFD检测实例表上的状态表索引搜索到其对应的PW和AC状态表,并将其中的PW状态位设置为DOWN;Step 103: The PE searches the corresponding PW and AC state table according to the state table index on the BFD detection instance table, and sets the PW state bit therein as DOWN;
步骤104:采用ETHOAM检测技术对AC链路进行检测,PE根据ETHOAM检测实例表上的状态表索引搜索到其对应的PW和AC状态表,PE查看其对应的PW和AC状态表中的PW状态位,根据PW状态位向CE1和CE2分别发送含有RDI标志位为1的CCM报文;Step 104: Use the ETHOAM detection technology to detect the AC link, the PE searches the corresponding PW and AC state table according to the state table index on the ETHOAM detection instance table, and the PE checks the corresponding PW and the PW state in the AC state table bit, according to the PW status bit, send a CCM message containing the RDI flag bit to 1 to CE1 and CE2 respectively;
步骤105:CE1和CE2收到带有RDI标志位为1的CCM报文后,就知道链路有放障,如有备份链路,那么CE1和CE2就快速地切换到备份链路,否则报告链路出现故障。Step 105: After CE1 and CE2 receive the CCM message with the RDI flag bit set to 1, they will know that the link is faulty. If there is a backup link, then CE1 and CE2 will quickly switch to the backup link, otherwise report Link failed.
实施例2Example 2
参见图1和图3,当远端AC链路(PE2和CE2之间链路)出现故障,即PE2没有收到CE2发来的CCM报文,或者收到CE2发来的带有RDI标志位的CCM报文,将故障检测结果通告给近端AC链路(PE1和CE1之间链路),其具体步骤如下:Referring to Figure 1 and Figure 3, when the remote AC link (the link between PE2 and CE2) fails, that is, PE2 does not receive the CCM message from CE2, or receives a CCM message with the RDI flag from CE2. CCM message, and notify the fault detection result to the near-end AC link (the link between PE1 and CE1). The specific steps are as follows:
步骤201:在PE1和PE2上的公共数据区分别建立一张线性索引的PW和AC状态表,并将其状态表的索引分别关联到对应BFD检测和ETHOAM检测的实例表上;Step 201: Create a linearly indexed PW and AC state table in the public data area on PE1 and PE2 respectively, and associate the indexes of the state table with the instance tables corresponding to BFD detection and ETHOAM detection;
步骤202:采用ETHOAM检测技术对远端AC链路进行检测,检测到PE2和CE2之间的链路出现故障;Step 202: Use ETHOAM detection technology to detect the remote AC link, and detect that the link between PE2 and CE2 is faulty;
步骤203:PE2根据ETHOAM检测实例表上的PW和AC状态表的索引搜索到其对应的PW和AC状态表,并将状态表里的AC状态位设置为DOWN;Step 203: PE2 searches the corresponding PW and AC state table according to the index of the PW and AC state table on the ETHOAM detection instance table, and sets the AC state bit in the state table to DOWN;
步骤204:采用BFD检测技术对PW链路进行检测,PE2根据BFD检测实例表上的状态表索引搜索到其对应的PW和AC状态表,PE2查看其对应的PW和AC状态表里的AC状态位,根据AC状态位向PE1发送含有级联路径故障诊断志的Hello报文;Step 204: Use the BFD detection technology to detect the PW link. PE2 searches the corresponding PW and AC state table according to the state table index on the BFD detection instance table, and PE2 checks the AC state in the corresponding PW and AC state table. bit, according to the AC status bit, send a Hello message containing the fault diagnosis log of the cascading path to PE1;
步骤205:PE1收到含有级联路径故障诊断志的Hello报文后,PE1根据BFD检测实例表上的状态表索引搜索到其对应的PW和AC状态表,并将其中的PW状态位设置为DOWN;Step 205: After PE1 receives the Hello message containing the cascading path fault diagnosis log, PE1 searches the corresponding PW and AC state table according to the state table index in the BFD detection instance table, and sets the PW state bit in it to DOWN;
步骤206:采用ETHOAM检测技术对近端AC链路进行检测,PE1根据ETHOAM检测实例表上的PW和AC状态表的索引搜索到其对应的PW和AC状态表,PE1查看其对应的PW和AC状态表里的PW状态位,根据PW状态位向CE1发送带有RDI标志位为1的CCM报文;Step 206: Use the ETHOAM detection technology to detect the near-end AC link. PE1 searches the corresponding PW and AC state table according to the index of the PW and AC state table on the ETHOAM detection instance table, and PE1 checks its corresponding PW and AC The PW status bit in the status table, according to the PW status bit, send a CCM message with the RDI flag bit set to 1 to CE1;
步骤207:CE1接收到带有RDI标志位为1的CCM报文后,就知道链路有故障,如有备份链路,那么CE1就快速地切换到备份链路上,否则报告链路出现故障。Step 207: After CE1 receives the CCM message with the RDI flag bit set to 1, it knows that the link is faulty. If there is a backup link, CE1 will quickly switch to the backup link; otherwise, it will report that the link is faulty. .
在本发明所述的技术方案中还可以在PW和AC状态表中存放更多的标志位,例如:PWdown for expire、PW down for neighbor、PW down for AC、AC down for expire、AC down forRDI、AC down for PW,这样通过查看PW和AC状态表可以定位故障发生的位置。此外,当ETHOAM和BFD检测到链路恢复时,要分别负责将自己检测的链路AC或PW在PW和AC状态表里的状态改为UP。In the technical scheme of the present invention, more flag bits can also be stored in the PW and AC state tables, for example: PWdown for expire, PW down for neighbor, PW down for AC, AC down for expire, AC down forRDI, AC down for PW, so that the location of the fault can be located by viewing the PW and AC status tables. In addition, when ETHOAM and BFD detect link recovery, they are respectively responsible for changing the status of the detected link AC or PW in the PW and AC status table to UP.
本发明还提出了一种在PE设备上通过AC和PW的对应关系,建立起监视AC的ETHOAM和监视PW的BFD的直接对应关系,同样可以实现以太PWE3网络故障检测互通的方法。The present invention also proposes a method for establishing a direct correspondence between the ETHOAM monitoring the AC and the BFD monitoring the PW through the correspondence between the AC and the PW on the PE device, and also realizing the fault detection intercommunication of the Ethernet PWE3 network.
实施例3Example 3
参见图1和图4,当PW链路出现故障,即PE1没有收到PE2发来的Hello报文,或者收到PE2发来的状态位为DOWN的Hello报文,将故障检测结果通告给AC链路,其具体步骤如下:Referring to Figure 1 and Figure 4, when the PW link fails, that is, PE1 does not receive the Hello packet from PE2, or receives the Hello packet with the status bit DOWN from PE2, it notifies the AC of the fault detection result. link, the specific steps are as follows:
步骤301:在AC链路的ETHOAM检测实例表中添加BFD检测实例表的索引,及PW状态位;Step 301: Add the index of the BFD detection instance table and the PW status bit in the ETHOAM detection instance table of the AC link;
步骤302:在PW链路的BFD检测实例表中添加ETHOAM检测实例表的索引,及AC状态位;Step 302: Add the index of the ETHOAM detection instance table and the AC status bit in the BFD detection instance table of the PW link;
步骤303:采用BFD检测技术对链路PW进行检测,检测到PE1和PE2之间的链路出现故障,PE1和PE2根据BFD检测实例表中的ETHOAM检测实例表的索引分别搜索到其对应的ETHOAM检测实例表,并将ETHOAM检测实例表中的PW状态位设置为DOWN;Step 303: Use the BFD detection technology to detect the link PW, and detect that the link between PE1 and PE2 is faulty, and PE1 and PE2 respectively search for the corresponding ETHOAM according to the index of the ETHOAM detection instance table in the BFD detection instance table Detect the instance table, and set the PW status bit in the ETHOAM detection instance table to DOWN;
步骤304:采用ETHOAM检测技术对AC链路进行检测,PE1和PE2查看其对应的ETHOAM检测实例表中的PW状态位,根据PW状态位向CE1和CE2分别发送含有RDI标志位为1的CCM报文;Step 304: Use the ETHOAM detection technology to detect the AC link. PE1 and PE2 check the PW status bits in their corresponding ETHOAM detection instance tables, and send CCM reports containing the RDI flag bit to 1 to CE1 and CE2 respectively according to the PW status bits. arts;
步骤305:CE1和CE2收到带有RDI标志位为1的CCM报文后,就知道链路有故障,如有备份链路,那么CE1和CE2就快速地切换到备份链路,否则报告链路出现故障。Step 305: After CE1 and CE2 receive the CCM message with the RDI flag bit as 1, they know that the link is faulty. If there is a backup link, then CE1 and CE2 will quickly switch to the backup link, otherwise they will report that the link is faulty. Road failure.
实施例4Example 4
参见图1和图5,当远端AC链路(PE2和CE2之间链路)出现故障,即PE2没有收到CE2发来的CCM报文,或者收到CE2发来的带有RDI标志位的CCM报文,将故障检测结果通告给近端AC链路(PE1和CE1之间链路),其具体步骤如下:Referring to Figure 1 and Figure 5, when the remote AC link (the link between PE2 and CE2) fails, that is, PE2 does not receive the CCM message from CE2, or receives a CCM message with the RDI flag from CE2. CCM message, and notify the fault detection result to the near-end AC link (the link between PE1 and CE1). The specific steps are as follows:
步骤401:在AC链路的ETHOAM检测实例表中添加BFD检测实例表的索引,及PW状态位;Step 401: Add the index of the BFD detection instance table and the PW status bit in the ETHOAM detection instance table of the AC link;
步骤402:在PW链路的BFD检测实例表中添加ETHOAM检测实例表的索引,及AC状态位;Step 402: Add the index of the ETHOAM detection instance table and the AC status bit in the BFD detection instance table of the PW link;
步骤403:采用ETHOAM检测技术对远端AC链路进行检测,检测到PE2和CE2之间的链路出现故障,PE2根据ETHOAM检测实例表中的BFD检测实例表索引搜索到其对应的BFD检测实例表,并将BFD检测实例表中的AC状态位设置为DOWN;Step 403: Use the ETHOAM detection technology to detect the remote AC link, and detect that the link between PE2 and CE2 is faulty, and PE2 searches for its corresponding BFD detection instance according to the BFD detection instance table index in the ETHOAM detection instance table table, and set the AC status bit in the BFD detection instance table to DOWN;
步骤404:采用BFD检测技术对链路PW进行检测,PE2查看其对应的BFD检测实例表中的AC状态位,根据AC状态位向PE1发送含有级联路径故障诊断志的Hello报文;Step 404: Use the BFD detection technology to detect the link PW, PE2 checks the AC status bit in its corresponding BFD detection instance table, and sends a Hello message containing the cascading path fault diagnosis log to PE1 according to the AC status bit;
步骤405:PE1收到含有级联路径故障诊断志的Hello报文后,PE1根据BFD检测实例表中的ETHOAM检测实例表索引搜索到其对应的ETHOAM检测实例表,并将ETHOAM检测实例表中的PW状态位设置为DOWN;Step 405: After PE1 receives the Hello packet containing the cascading path fault diagnosis log, PE1 searches for the corresponding ETHOAM detection instance table according to the ETHOAM detection instance table index in the BFD detection instance table, and saves the ETHOAM detection instance table in the ETHOAM detection instance table. The PW status bit is set to DOWN;
步骤406:采用ETHOAM检测技术对近端AC链路进行检测,PE1查看其对应的ETHOAM检测实例表中的PW状态位,根据PW状态位向CE1发送带有RDI标志位为1的CCM报文;Step 406: Use the ETHOAM detection technology to detect the near-end AC link, PE1 checks the PW status bit in its corresponding ETHOAM detection instance table, and sends a CCM message with the RDI flag bit as 1 to CE1 according to the PW status bit;
步骤407:CE1接收到带有RDI标志位为1的CCM报文后,就知道链路有故障,如有备份链路,那么CE1就快速地切换到备份链路上,否则报告链路出现故障。Step 407: After CE1 receives the CCM message with the RDI flag bit set to 1, it knows that the link is faulty. If there is a backup link, then CE1 will quickly switch to the backup link; otherwise, it will report that the link is faulty. .
参见图6,本发明还提供了一种网络故障检测结果互通装置,所述装置包括初始化模块、链路检测模块、状态位设置模块、状态位查看模块、检测报文发送模块;Referring to Fig. 6, the present invention also provides a device for intercommunicating network fault detection results, said device comprising an initialization module, a link detection module, a status bit setting module, a status bit checking module, and a detection message sending module;
所述初始化模块用于建立两条相邻链路的状态关联,并将所述关联对应到相应链路的检测实例表上;The initialization module is used to establish the state association of two adjacent links, and correspond the association to the detection instance table of the corresponding link;
所述链路检测模块用于检测所述链路状态,并将所述链路状态发送给所述状态位设置模块;The link detection module is used to detect the link status, and send the link status to the status bit setting module;
所述状态位设置模块用于接收所述链路检测模块发送的链路状态,发现链路故障后,根据所述链路上的检测实例表与所述状态关联的对应关系设置所述链路的状态;The status bit setting module is used to receive the link status sent by the link detection module, and after finding a link failure, set the link according to the corresponding relationship between the detection instance table on the link and the status. status;
所述状态位查看模块用于对所述链路的相邻链路发送检测报文之前,根据所述两条相邻链路的状态关联查看本链路的状态,并将所述本链路的状态发送到所述检测报文发送模块;The status bit checking module is used to check the status of the link according to the status association of the two adjacent links before sending the detection message to the adjacent link of the link, and check the status of the link The status is sent to the detection message sending module;
所述检测报文发送模块用于接收所述状态位查看模块发送的本链路的状态,根据本链路的状态设置检测报文,并向所述相邻链路发送检测报文。The detection message sending module is used to receive the state of the link sent by the status bit checking module, set the detection message according to the state of the link, and send the detection message to the adjacent link.
所述初始化模块为状态表建立关联模块,用于在两条相邻链路的公共数据区上建立线性索引的状态关联表,并将所述状态关联表对应到相应链路的检测实例表上;The initialization module establishes an association module for the state table, which is used to establish a state association table of a linear index on the public data area of two adjacent links, and correspond the state association table to the detection instance table of the corresponding link ;
所述状态位设置模块用于接收所述链路检测模块发送的链路状态,发现链路故障后,根据所述链路上的检测实例表搜索到对应的状态关联表,将所述状态关联表中本链路的状态位设置为错误状态;The status bit setting module is used to receive the link status sent by the link detection module, and after finding a link failure, search for a corresponding status association table according to the detection instance table on the link, and associate the status The status bit of this link in the table is set to error status;
所述状态位查看模块用于对所述链路的相邻链路发送检测报文之前,根据所述两条相邻链路的公共数据区上的状态关联表查看本链路的状态,并将所述本链路的状态发送到所述检测报文发送模块;The status bit checking module is used to check the status of the link according to the status association table on the public data area of the two adjacent links before sending the detection message to the adjacent link of the link, and Send the state of the current link to the detection message sending module;
所述检测报文发送模块用于接收所述状态位查看模块发送的本链路的状态,如果所述本链路的状态位为错误状态,则设置含有错误标志位的检测报文,并向所述相邻链路发送检测报文。The detection message sending module is used to receive the state of the link sent by the status bit viewing module, if the status bit of the link is an error state, then set the detection message containing the error flag bit, and send The adjacent link sends a detection message.
所述初始化模块为链路监视模块,用于在链路的检测实例表中添加相邻链路的检测实例表的索引以及相邻链路的状态位;The initialization module is a link monitoring module, which is used to add the index of the detection instance table of the adjacent link and the status bit of the adjacent link in the detection instance table of the link;
所述状态位设置模块用于接收所述链路检测模块发送的链路状态,发现链路故障后,根据本链路上的检测实例表搜索到相邻链路检测实例表,并将所述相邻链路检测实例表中本链路的状态位设置为错误状态;The status bit setting module is used to receive the link status sent by the link detection module, and after finding a link failure, search the adjacent link detection instance table according to the detection instance table on this link, and set the The status bit of this link in the adjacent link detection instance table is set to an error state;
所述状态位查看模块用于对所述链路的相邻链路发送检测报文之前,查看所述相邻链路检测实例表中本链路的状态,并将所述本链路的状态发送到所述检测报文发送模块;The status bit checking module is used to check the status of the link in the adjacent link detection instance table before sending the detection message to the adjacent link of the link, and compare the status of the link Send to the detection message sending module;
所述检测报文发送模块用于接收所述状态位查看模块发送的本链路的状态,如果所述本链路的状态位为错误状态,则设置含有错误标志位的检测报文,并向所述相邻链路发送检测报文。The detection message sending module is used to receive the state of the link sent by the status bit viewing module, if the status bit of the link is an error state, then set the detection message containing the error flag bit, and send The adjacent link sends a detection message.
以上所述的实施例只是本发明较优选的具体实施方式的一种,本领域的技术人员在本发明技术方案范围内进行的通常变化和替换都应包含在本发明的保护范围内。The embodiments described above are only one of the more preferred specific implementation modes of the present invention, and the usual changes and substitutions performed by those skilled in the art within the scope of the technical solution of the present invention shall be included in the protection scope of the present invention.
Claims (7)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101040694A CN100446476C (en) | 2006-08-02 | 2006-08-02 | Method and device for intercommunication of network fault detection results |
PCT/CN2007/001267 WO2008017223A1 (en) | 2006-08-02 | 2007-04-18 | Method, apparatus and network for intercommunicating failure detecting results |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101040694A CN100446476C (en) | 2006-08-02 | 2006-08-02 | Method and device for intercommunication of network fault detection results |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1905482A CN1905482A (en) | 2007-01-31 |
CN100446476C true CN100446476C (en) | 2008-12-24 |
Family
ID=37674618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101040694A Expired - Fee Related CN100446476C (en) | 2006-08-02 | 2006-08-02 | Method and device for intercommunication of network fault detection results |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN100446476C (en) |
WO (1) | WO2008017223A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100466564C (en) * | 2007-04-02 | 2009-03-04 | 华为技术有限公司 | Fault monitoring method and device for virtual leased line |
US8593973B2 (en) * | 2010-03-09 | 2013-11-26 | Juniper Networks, Inc. | Communicating network path and status information in multi-homed networks |
CN101938419A (en) * | 2010-09-10 | 2011-01-05 | 中兴通讯股份有限公司 | Link state delivery method and device of packet transport network |
CN102185712B (en) * | 2011-04-29 | 2015-10-21 | 中兴通讯股份有限公司 | The reverse method of VPLS network and ethernet ring network and device |
CN102843249B (en) * | 2011-06-21 | 2018-09-18 | 南京中兴新软件有限责任公司 | The method and apparatus that maintenance management state is transmitted in a kind of grouping conveying network |
CN106972951B (en) * | 2017-02-27 | 2019-11-08 | 杭州天宽科技有限公司 | A kind of automatic maintenance implementation method based on multiple related function module abnormality detections |
CN107360173B (en) * | 2017-07-25 | 2019-08-13 | 成都西加云杉科技有限公司 | Resource access method and device |
CN115065614B (en) * | 2022-06-22 | 2023-10-13 | 杭州云合智网技术有限公司 | Method for identifying multi-activity service connectivity of VPWS |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003324438A (en) * | 2002-05-08 | 2003-11-14 | Nec Corp | Ethernet(r) communication device |
CN1492623A (en) * | 2002-10-22 | 2004-04-28 | 华为技术有限公司 | A Method for Realizing Link State Breakthrough in Network |
CN1681254A (en) * | 2004-04-08 | 2005-10-12 | 华为技术有限公司 | Maintaining method of Ethernet link state |
CN1697401A (en) * | 2004-05-10 | 2005-11-16 | 阿尔卡特公司 | Remote Access Link Fault Indication Mechanism |
US20060098581A1 (en) * | 2004-11-05 | 2006-05-11 | Cisco Technology, Inc. | Method and apparatus for conveying link state information in a network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7016313B1 (en) * | 2001-06-28 | 2006-03-21 | Cisco Technology, Inc. | Methods and apparatus for generating network topology information |
US20030202473A1 (en) * | 2002-04-25 | 2003-10-30 | General Instrument Corporation | Traffic network flow control using dynamically modified metrics for redundancy connections |
-
2006
- 2006-08-02 CN CNB2006101040694A patent/CN100446476C/en not_active Expired - Fee Related
-
2007
- 2007-04-18 WO PCT/CN2007/001267 patent/WO2008017223A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003324438A (en) * | 2002-05-08 | 2003-11-14 | Nec Corp | Ethernet(r) communication device |
CN1492623A (en) * | 2002-10-22 | 2004-04-28 | 华为技术有限公司 | A Method for Realizing Link State Breakthrough in Network |
CN1681254A (en) * | 2004-04-08 | 2005-10-12 | 华为技术有限公司 | Maintaining method of Ethernet link state |
CN1697401A (en) * | 2004-05-10 | 2005-11-16 | 阿尔卡特公司 | Remote Access Link Fault Indication Mechanism |
US20060098581A1 (en) * | 2004-11-05 | 2006-05-11 | Cisco Technology, Inc. | Method and apparatus for conveying link state information in a network |
Also Published As
Publication number | Publication date |
---|---|
CN1905482A (en) | 2007-01-31 |
WO2008017223A1 (en) | 2008-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8804534B2 (en) | Interworking between MPLS/IP and Ethernet OAM mechanisms | |
CN101582834B (en) | Method and system for updating forwarding table of Ethernet service transmission | |
CA2600047C (en) | A method for fault detect, report and maintenance negotiation control of multi-segment pseudo wire | |
CN101931520B (en) | A switching method and system | |
CN100459531C (en) | Method for notifying pseudo-lines fault based on bidirectional transmission detecting protocol | |
CN101330424B (en) | Method, system and apparatus for processing service fault of virtual special network | |
CN101902353B (en) | Protecting method, device and system of packet network | |
CN102025541B (en) | Method and system for realizing multicast protection | |
CN100446476C (en) | Method and device for intercommunication of network fault detection results | |
CN102694718B (en) | A kind of VPLS fast rerouting method and equipment | |
CN101155076B (en) | Method for checking pseudo wire trouble of two-layer special network | |
EP1978681B1 (en) | Methods and devices for judging pw connection state and notifying ac connection state | |
US20140092751A1 (en) | Ethernet Operation and Maintenance (OAM) with Flexible Forwarding | |
CN101217470B (en) | Method and device for forwarding message | |
CN104135418B (en) | It is a kind of to realize two layers of method and device for coordinating to switch with Layer3 Virtual Private Network | |
CN101800662A (en) | Double-returning protection switching method based on VPLS and system | |
CN101267360A (en) | Pseudowire fault detection method and user edge device | |
WO2012024952A1 (en) | Method and system for switching path based on point to multipoint service | |
CN100461706C (en) | Method for recovering sponsor media accessing control address and operation businesss edge apparatus | |
EP2634978B1 (en) | Message forwarding method and network device | |
CN104683206A (en) | Method and device for coordinated switching of layer-2 and layer-3 virtual private networks in bridging equipment | |
CN101719834B (en) | Method and system for realizing virtual private multicast service protection | |
CN101860482A (en) | Layer 2 virtual private network fast rerouting method and device | |
CN101237343B (en) | Method for quick failure switching and quick switching system | |
US8670299B1 (en) | Enhanced service status detection and fault isolation within layer two networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081224 Termination date: 20170802 |
|
CF01 | Termination of patent right due to non-payment of annual fee |