WO2013037248A1 - 环网保护组链路回切方法及装置 - Google Patents

环网保护组链路回切方法及装置 Download PDF

Info

Publication number
WO2013037248A1
WO2013037248A1 PCT/CN2012/079033 CN2012079033W WO2013037248A1 WO 2013037248 A1 WO2013037248 A1 WO 2013037248A1 CN 2012079033 W CN2012079033 W CN 2012079033W WO 2013037248 A1 WO2013037248 A1 WO 2013037248A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding
link
layer
tunnel
group
Prior art date
Application number
PCT/CN2012/079033
Other languages
English (en)
French (fr)
Inventor
梁晓娜
操超鹏
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013037248A1 publication Critical patent/WO2013037248A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a ring network protection group link back-cut method and apparatus.
  • Transmission-Multiprotocol Label Switching is a packet transport network technology standardized by the International Telecommunication Union Telecommunication Standardization Sector (ITU-T). .
  • the T-MPLS data forwarding plane is a subset of Multiprotocol Label Switching (MPLS), and the data is forwarded based on the T-MPLS label.
  • T-MPLS is a connection-oriented technology and is an application of MPLS in the transmission network.
  • Connection Administration and Maintenance abbreviated as ⁇
  • ASON Automatically Switched Optical Network
  • GMPLS Generalized Multiprotocol Label Switching
  • the T-MPLS packet transport network is a transport conduit for establishing end-to-end connection-oriented packets, transforming a connectionless data network into a connection-oriented network.
  • the pipeline can be established through a network management system or a smart control plane.
  • T-MPLS also satisfies the hierarchical structure defined by ITU-TG.805.
  • the T-MPLS layer network can be divided into: media layer, segment layer (T-MPLS Section, referred to as TMS), and channel layer TMS (channel layer) (T - MPLS Path (referred to as TMP), and channel layer (circuit layer) (T-MPLS Channel, referred to as TMC).
  • the ITU-T defines the OAM function, including: 1. Performance monitoring and generation of maintenance information, and evaluation of the stability of the network based on the information; 2. Detection of network failures by means of periodic queries, generating various maintenance and alarm information; By scheduling or switching to other entities, bypassing the invalidated entity to ensure the normal operation of the network; 4. Passing the fault information to the management entity.
  • OAM action includes failure Discovery, alerting, diagnostics, performance monitoring, and protection.
  • the T-MPLS OAM runs in the T-MPLS domain and is hierarchically layered. Each layer can only detect OAM faults at its own level, including the OAM of the TMS layer, the OAM of the TMP layer, and the OAM of the TMC layer.
  • T-MPLS supports end-to-end protection switching, protection of linear protection switching and ring network protection.
  • ring network protection is a type of protection through TAM OAM detection.
  • APS Automatic Protection Switching
  • FIG 1 is a schematic diagram of the networking of the normal primary link packet forwarding of the device in the related art. As shown in Figure 1, if all the devices are normal, all the devices (GROUP) work on the primary link, and the packets are in accordance with PE1.
  • Figure 2 is a schematic diagram of the path forwarding of the primary link backup link in the related art. As shown in Figure 2, if the P1 device suddenly loses power or fails, the GROUP1 of PE1 switches to the standby. On the link, the TMS1 of PE1 is in the lock (LOCK) state, the GROUP2 of PE2 is switched to the standby link, the TMS2 of PE2 is in the LOCK state, and the text is forwarded according to the path of PE1—P2—PE2.
  • LOCK lock
  • FIG. 3 is a flowchart of the back-to-back link of the backup link to the primary link in the related art.
  • the carrier edge router Provider Edge, The LOCK alarms of the TMSs of PE1 and PE2 are successfully eliminated.
  • the TMS detects that the link is normal.
  • the GROUP will switch back, and then the APS packet is sent to the peer to notify the peer to switch. Operation
  • the GROUP1 is not delivered successfully, or the forwarding layer does not write the table successfully when writing the hardware forwarding table, or the tunnel is not successfully delivered, but the forwarding layer returns The control layer is successfully delivered.
  • the switching plane considers that GROUP1 is normal. GROUP1 and GROUP2 on P1 will switch back to the primary state after the delay switchback time. In fact, the detection plane is normal, but the forwarding is normal. The level is problematic. That is to say, GROUP1 on PE1 is normal. The GROUP1 switch layer on P1 is considered normal, and the forwarding layer is abnormal. In the above case, the message is in accordance with PE1—P1—PE2. Path turn The hair will be discarded on the PI device.
  • the embodiment of the present invention provides a loopback protection method and a device for the loopback protection group to solve the problem that the link detection link is normal when the detection layer is normal and the forwarding layer is faulty.
  • the problem of traffic interruption is not limited to:
  • An embodiment of the present invention provides a loopback protection method for a ring network protection group, including:
  • the two ends of the device record the flag of whether the primary forwarding link is normal in the forwarding table corresponding to each forwarding layer.
  • the device determines whether the segment layer TMS link of the detection layer is normal. If it is normal, it determines whether the first link state of the primary forwarding link is normal according to the record in the forwarding table. If the first link status is normal, the first link status of the peer device is notified to be normal, and the switchback preparation is ready;
  • the steps of the devices at both ends in the forwarding table corresponding to each forwarding layer to record whether the primary forwarding link is normal include:
  • the group forwarding layer performs a group adding operation. If the group is successfully added, the group adding flag in the forwarding table corresponding to the group forwarding layer of each end device is set to be successful, and if the group adding fails, the group is defeated;
  • the tunnel forwarding layer performs a tunnel adding operation, and if the tunnel is successfully added, the device at each end is used.
  • the tunnel addition flag in the forwarding table corresponding to the tunnel forwarding layer is set to be successful, and if the tunnel addition fails, the tunnel addition flag in the forwarding table corresponding to the tunnel forwarding layer of each end device is set to failure.
  • the step of determining, by the one end device, whether the first link state of the primary forwarding link is normal according to the record in the forwarding table includes:
  • the step of the peer device acquiring the second link state of the primary forwarding link of the local end according to the record in the forwarding table includes:
  • the peer device acquires the second link state of the local end.
  • the method further includes:
  • the one-end device In the case that the first link state is abnormal, the one-end device is prohibited from sending a notification to the peer device, and is prohibited from switching back from the standby forwarding link to the primary forwarding link.
  • the embodiment of the present invention further provides a ring network protection group link back-cutting device, including:
  • a marking module configured to record, when the group control layer notifies the group forwarding layer that the group is added, and the tunnel control layer notifies the tunnel forwarding layer to perform tunneling, to record, in the forwarding table of each forwarding layer, whether the primary forwarding link is normal;
  • a processing module configured to: determine whether the segment layer TMS link of the detection layer is normal when the link is switched back, and if yes, determine the first chain of the primary forwarding link according to the record in the forwarding table If the status of the first link is normal, the first link status of the peer device is notified to be normal, and the switchback preparation is ready; or, according to the record in the forwarding table. a second link state of the primary forwarding link of the current end, and returning the second to the peer device Link status;
  • a failback module is configured to, upon determining that the first link state and the second link state are both normal, to switch back the device from the standby forwarding link to the primary forwarding link.
  • the marking module is configured to record, by means of the following manner, whether the primary forwarding link is normal: a notification added by the group control layer to the group forwarding layer; if the group forwarding record is set to be successful, if If the group forwarding layer group fails to be added, the group adding flag in the forwarding table of the group forwarding layer is set to fail by the group forwarding layer;
  • the tunnel control layer Sending, by the tunnel control layer, a notification that the tunnel is added to the tunnel forwarding layer; if the tunnel forwarding layer tunnel is successfully added, the tunnel in the forwarding table of the tunnel forwarding layer is marked by the tunnel forwarding layer If the tunnel forwarding layer tunnel addition fails, the tunnel addition flag in the forwarding table of the tunnel forwarding layer is set to fail by the tunnel forwarding layer.
  • the processing module includes:
  • a first link state determining submodule configured to determine whether the group adding flag and the tunnel adding flag in the forwarding table of each forwarding layer are all set to be successful, and if the determination is yes, determining the primary forwarding The first link state of the link is normal, and if not, determining that the first link state of the primary forwarding link is abnormal.
  • the processing module includes:
  • a second link state determining submodule configured to determine whether the group adding flag and the tunnel adding flag in the forwarding table of each forwarding layer are all set to be successful, and if the determination is yes, determining the primary forwarding The second link state of the link is normal, and if not, determining that the second link state of the primary forwarding link is abnormal;
  • a second link state obtaining submodule configured to acquire the second link state of the current end.
  • the processing module is further configured to: when the first link state is abnormal, prohibiting the device from sending a notification to the peer device, and notifying the switchback module to prohibit the device from being used by the device.
  • the forwarding link is switched back to the primary forwarding link.
  • the detection layer detects that the link is normal and the forwarding layer is faulty.
  • the traffic is interrupted due to the switchback. This prevents packet loss and traffic interruption.
  • FIG. 1 is a schematic diagram of networking for forwarding a normal primary link packet of a device in the related art
  • FIG. 2 is a schematic diagram of networking of packet forwarding of a primary link backup link in the related art
  • FIG. 3 is a flowchart of a back-to-back link from a backup link to a primary link in the related art
  • FIG. 4 is a flowchart of a link back-cutting method of a ring network protection group according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a link back-cutting device of a ring network protection group according to an embodiment of the present invention.
  • the embodiment of the present invention provides a loopback protection method and device for the ring network protection group. As shown in FIG. 1 and FIG. 2, the TMS state is normal but the group is encountered. (GROUP) When the forwarding is abnormal, that is, the GROUP1 of PE1 is normal but the GROUP1 of P1 is abnormal. The switching plane of the PE1 and P1 is not switched back. If there is one of the two sides, the GROUP is not normal. After the delay switchback time is reached, in addition to determining whether the TMS alarm is cleared, the forwarding information needs to be forwarded to the forwarding layer to check whether the forwarding information is complete. If the forwarding information is complete, the switchback operation is performed, otherwise the switchback operation is not performed. .
  • FIG. 4 is a flowchart of a loop network protection group link failback method according to an embodiment of the present invention.
  • the loopback protection method of the ring protection group includes the following processing:
  • Step 401 When the group control device notifies the group forwarding layer to perform group addition, and the tunnel control layer notifies the tunnel forwarding layer to perform tunneling, the two ends of the device record the marking of whether the primary forwarding link is normal in the forwarding table of the forwarding layer.
  • the step 401 includes the following steps: 1.
  • the group control layer adds a notification to the group forwarding layer to send the group; 2.
  • the group forwarding layer performs the group adding operation. If the group is successfully added, the group adding flag in the forwarding table is set to be successful. If the group addition fails, the group addition flag in the forwarding table is set to fail. 3.
  • the tunnel control layer sends a notification to the tunnel forwarding layer to send the tunnel. 4.
  • the tunnel forwarding layer performs the tunnel addition operation. Set the tunnel add tag in the forwarding table to succeed, and set the tunnel add tag in the forwarding table to fail if the tunnel addition fails.
  • Step 402 When performing link back-cutting, the device at one end determines whether the segment TMS link of the detection layer is normal. If it is normal, it determines whether the first link state of the primary forwarding link is normal according to the record in the forwarding table. If the status of the first link is normal, the first link status of the peer device is notified to be normal, and the switchback preparation is ready;
  • determining whether the first link state of the primary forwarding link is normal according to the record in the forwarding table includes the following processing: The one end device determines whether the group addition flag and the tunnel addition flag in the forwarding table are both set to be successful. If the determination is yes, it is determined that the first link state of the primary forwarding link is normal, otherwise, determining that the first link state of the primary forwarding link is abnormal.
  • step 402 if it is determined that the first link state is abnormal, one end device prohibits sending a notification to the peer device, and prohibits the slave forwarding link from being switched back to the primary forwarding link.
  • Step 403 The peer device returns a second link state.
  • the peer device obtains the second link state of the primary forwarding link of the local end according to the record in the forwarding table of the local device, including: 1. The peer device determines whether the group addition flag and the tunnel addition flag in the forwarding table are both If the determination is yes, the second link state of the primary forwarding link is normal. Otherwise, the second link state of the primary forwarding link is abnormal. 2. The peer device obtains the second end of the local device. Link status.
  • Step 404 The device at both ends switches back from the standby forwarding link to the primary forwarding link when it is determined that both the first link state and the second link state are normal.
  • the link back-cutting method of the ring network protection group in the embodiment of the present invention needs to be completed by the switching layer and the forwarding layer, where the forwarding layer is mainly used for viewing. Whether the forwarding table is complete or not, the switching layer is mainly used to perform the switchback negotiation between devices to determine whether the switchback needs to be performed. As shown in Figure 5, the following processing is included:
  • Step 501 When the group control layer sends the group forwarding layer GROUP, the group forwarding layer records the GROUP addition success flag FlgO, and the setting is successfully set to 1, otherwise set to 0; when the tunnel control layer delivers the tunnel forwarding layer tunnel, The tunnel forwarding layer records the tunnel addition success or not flag Flgl, and the addition is successfully set to 1, otherwise it is set to 0;
  • Step 502 the P1 device resumes normal operation
  • Step 503 delaying the switchback time to
  • Step 504 the device 1 queries whether the detection layer TMS is normal (whether the TMS alarm is cleared), if the detection layer detects that the link is normal (alarm elimination), step 505 is performed, otherwise step 506 is performed;
  • Step 505 the device 1 performs a query of the forwarding table at the forwarding level, and checks whether the forwarding link is normal. If yes, step 507 is performed; otherwise, step 506 is performed;
  • Step 506 Device 1 does not perform group failback (and does not send APS packets);
  • Step 507 the device 1 sends an APS message to notify the peer device 2 that the switchback state can be switched back;
  • Step 508 After the APS packet received by the device 2 is learned that the state of the device 1 can be cut back, the UE is queried with the corresponding GROUP status, and the device is notified by the APS 4 message whether it can switch back;
  • Step 509 the device 1 determines whether the device 2 can be switched back through the APS message sent by the device 2, if the determination is yes, step 510 is performed, otherwise, step 506 is performed;
  • Step 510 In the case that both ends of the device are determined to be capable of failback, device 1 and device 2 perform group failback.
  • the westbound GROUP1, the main tunnel TU EL1, and the ring network protection are placed on the P1 device.
  • the tunnel TU EL2, where TMS1 is used for detecting the physical link between PE1 and P1, and the P1 device is arranged with the east direction GROUP2, the main tunnel TU EL1, and the ring network protection tunnel TU EL2, wherein TMS2 is used between PE2 and P1.
  • GROUP1 normally delivers integrated active and standby link information and GROUP working status, successfully written
  • the problem occurs when the detection layer detects the normal forwarding layer of the link when the detection layer is switched back.
  • the problem of traffic interruption caused by the switchback is still implemented, and traffic interruption can be prevented.
  • FIG. 6 is a schematic structural diagram of a ring network protection group link switching device according to an embodiment of the present invention. As shown in FIG. 6, the device includes: The module 60, the processing module 62, and the failback module 64 are described in detail below for each module of the embodiment of the present invention.
  • the marking module 60 is configured to record, in the forwarding table of each forwarding layer, whether the primary forwarding link is normal, when the group control layer notifies the group forwarding layer to perform group addition, and the tunnel control layer notifies the tunnel forwarding layer to perform tunneling. ;
  • the marking module 60 is configured to record whether the primary forwarding link is normal or not by the following means: 1. A notification added by the group control layer to the group forwarding layer; if the group forwarding layer group is successfully added, the group forwarding layer will be The group addition flag in the forwarding table of the group forwarding layer is set to be successful. If the group forwarding layer group addition fails, the group addition flag in the forwarding table of the group forwarding layer is set to fail through the group forwarding layer; 2. Through the tunnel control layer If the tunnel forwarding layer tunnel is successfully added, the tunnel forwarding layer is configured to successfully set the tunnel addition flag in the forwarding table of the tunnel forwarding layer. If the tunnel forwarding layer tunnel fails to be added, the tunnel is added. The tunnel forwarding layer sets the tunnel addition flag in the forwarding table of the tunnel forwarding layer to fail.
  • the processing module 62 is configured to: determine whether the segment layer TMS link of the detection layer is normal when performing link failback, and if yes, determine the first link of the primary forwarding link according to the record in the forwarding table of each forwarding layer. If the status of the first link is normal, notify the peer device that the first link status is normal and ready for failback. Alternatively, obtain the current end according to the records in the forwarding table of each forwarding layer. Forwarding the second link state of the link and returning the second link state to the peer device; the processing module 62 includes:
  • a first link state determining submodule configured to determine a group addition in a forwarding table of each forwarding layer Whether the flag and the tunnel addition flag are all set to be successful. If the determination is yes, it is determined that the first link state of the primary forwarding link is normal, otherwise, the first link state of the primary forwarding link is determined to be abnormal.
  • a second link state determining submodule configured to determine whether the group add flag and the tunnel add flag in the forwarding table of each forwarding layer are all set to be successful, and if the determination is yes, determine the second chain of the primary forwarding link The status of the path is normal, otherwise, determining that the second link status of the primary forwarding link is abnormal;
  • the second link state acquisition submodule is configured to acquire the second link state of the current end.
  • the processing module 62 is further configured to: when the first link state is abnormal, prohibit the device from sending a notification to the peer device, and notify the switchback module to prohibit the device from failing back from the standby forwarding link to the primary forwarding link.
  • the failback module 64 is configured to switch back the device from the standby forwarding link to the primary forwarding link if both the first link state and the second link state are determined to be normal.
  • the link back-cutting method of the ring network protection group in the embodiment of the present invention needs to be completed by the switching layer and the forwarding layer, where the forwarding layer is mainly used for viewing. Whether the forwarding table is complete or not, the switching layer is mainly used to perform the switchback negotiation between devices to determine whether the switchback needs to be performed. As shown in Figure 5, the following processing is included:
  • Step 501 When the group control layer sends the group forwarding layer GROUP, the group forwarding layer records the GROUP addition success flag FlgO, and the setting is successfully set to 1, otherwise set to 0; when the tunnel control layer delivers the tunnel forwarding layer tunnel, The tunnel forwarding layer records the tunnel addition success or not flag Flgl, and the addition is successfully set to 1, otherwise it is set to 0;
  • Step 502 the P1 device resumes normal operation
  • Step 503 delaying the switchback time to
  • Step 504 The device 1 queries whether the detection layer TMS is normal (whether the TMS alarm is cleared). If the detection layer detects that the link is normal (alarm elimination), step 505 is performed. Otherwise, step 506 is performed. Step 505, the device 1 performs forwarding at the forwarding level. The published query, check whether the forwarding link is normal, if it is normal, go to step 507, otherwise go to step 506; In step 506, the device 1 does not perform group failback (and does not send APS packets);
  • Step 507 the device 1 sends an APS message to notify the peer device 2 that the switchback state can be switched back;
  • Step 508 After the APS packet received by the device 2 is learned that the state of the device 1 can be cut back, the UE is queried with the corresponding GROUP status, and the device is notified by the APS 4 message whether it can switch back;
  • Step 509 the device 1 determines whether the device 2 can be switched back through the APS message sent by the device 2, if the determination is yes, step 510 is performed, otherwise, step 506 is performed;
  • Step 510 In the case that both ends of the device are determined to be capable of failback, device 1 and device 2 perform group failback.
  • the westbound GROUP1, the primary tunnel TU EL1, and the ring protection tunnel TU EL2 are placed on the P1 device.
  • the TMS1 is used to detect the physical link between PE1 and P1, and the eastbound direction is set on the P1 device.
  • GROUP2 main tunnel TU EL1, ring protection tunnel TU EL2, where TMS2 is used for the detection of the physical link between PE2 and P1;
  • PE1 equipment is arranged east to GROUP1, main tunnel TU EL1, ring protection tunnel TU EL2, TMS1 , PE2 equipment layout west to GROUP2, main tunnel TU EL1, ring network protection tunnel TU EL2, TMS2;
  • PElTMSl.state LOCK
  • PE2TMS2.state LOCK
  • PlTMSl.state OK
  • PlTMSl.state OK
  • the problem occurs when the detection layer detects the normal forwarding layer of the link when the detection layer is switched back.
  • the problem of traffic interruption caused by the switchback is still implemented, and traffic interruption can be prevented.
  • the packet forwarding link of the switchback is checked, and when the active/standby link is switched back in the related art, the link is detected at the detection layer but the forwarding layer has a problem. At the same time, the problem of traffic interruption caused by the switchback is still performed, and the traffic interruption can be prevented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

一种环网保护组链路回切方法及装置。该方法包括:两端设备在组控制层通知组转发层进行组添加、以及隧道控制层通知隧道转发层进行隧道添加时,在各自的对应于各转发层的转发表中记录主转发链路是否正常的标记;在进行链路回切时,一端设备确定检测层的段层TMS链路是否正常,如果正常,则根据自身转发表中的记录确定主转发链路的第一链路状态是否正常,在第一链路状态正常的情况下,通知对端设备第一链路状态为正常,已做好回切准备;对端设备根据自身转发表中的记录获取本端的主转发链路的第二链路状态,并向对端设备返回第二链路状态;以及两端设备在确定第一链路状态和第二链路状态均正常的情况下,从备转发链路回切到主转发链路。

Description

环网保护组链路回切方法及装置
技术领域
本发明涉及移动通讯领域, 特别是涉及一种环网保护组链路回切方法及 装置。
背景技术
传送-多协议标记交换 ( Transmission- Multiprotocol Label Switching, 简称 为 T-MPLS ) 是国际电信联盟远程通信标准化组织 ( International Telecommunication Union Telecommunication Standardization Sector , 简称为 ITU-T )标准化中的一种分组传送网技术。 T-MPLS数据转发面是多协议标记 交换( Multiprotocol Label Switching, 简称为 MPLS ) 的一个子集, 其数据是 基于 T-MPLS标签进行转发的。 T-MPLS是面向连接的技术, 是 MPLS在传 送网中的应用 ,增力。了面向连接的操作管理维护( Operation Administration and Maintenance , 简称为 ΟΑΜ ) 和保护恢复的功能, 并将自动交换光网络 ( Automatically Switched Optical Network, 简称为 ASON ) /通用多协议标志交 换协议 ( Generalized Multiprotocol Label Switching, 简称为 GMPLS )作为其 控制平面。
T-MPLS 分组传送网是建立端到端面向连接的分组的传送管道, 将面向 无连接的数据网改造成面向连接的网络。 该管道可以通过网络管理系统或智 能的控制面建立。 T-MPLS也满足 ITU-TG.805定义的分层结构, T-MPLS层 网络可以分为: 媒介层、段层( T-MPLS Section, 简称为 TMS )、通路层 TMS (通道层) ( T-MPLS Path, 简称为 TMP )、 以及通道层(电路层) ( T-MPLS Channel, 简称为 TMC ) 。
ITU-T对 OAM功能进行了定义, 包括: 1、 性能监控并产生维护信息, 根据这些信息评估网络的稳定性; 2、 通过定期查询的方式检测网络故障, 产 生各种维护和告警信息; 3、通过调度或者切换到其它的实体,旁路失效实体, 保证网络的正常运行; 4、 将故障信息传递给管理实体。 OAM作用包括故障 发现、 告警、 诊断、 性能监控、 以及保护。 T-MPLS OAM运行于 T-MPLS域 内, 是分域分层的, 每个层次只能检测出自己层面的 OAM故障, 包括 TMS 层的 OAM、 TMP层的 OAM、 以及 TMC层的 OAM。
T-MPLS网络的生存性通过网络保护和恢复技术实现。 T-MPLS支持端到 端的保护倒换,保护分线性保护倒换和环网保护,其中,环网保护是通过 TMS 的 OAM检测的一种保护类型。 当网络上节点检测到网络失效, 故障侧相邻 节点通过自动保护倒换 ( Automatic Protection Switching, 简称为 APS ) 协议 向相邻节点发出倒换请求。 当某个节点检测到失效或接收到倒换请求, 转发 至失效节点的普通业务将被倒换至另一个远离失效节点的方向。 当网络失效 或 APS 协议请求消失, 业务将返回至原来路径。
图 1是相关技术中设备正常主链路报文转发的组网示意图,如图 1所示, 如果所有设备一切正常, 所有设备的组(GROUP )都工作在主链路, 报文按 照 PE1— P1— PE2这样的路径转发, 图 2是相关技术中主链路瘫痪备链路报 文转发的组网示意图, 如图 2所示, 如果 P1设备突然断电或者瘫痪, PE1的 GROUP1切换到备链路, PE1的 TMS1处于锁( LOCK )状态 , PE2的 GROUP2 切换到备链路, PE2的 TMS2处于 LOCK状态, 文按照 PE1— P2— PE2的 路径转发。
图 3是相关技术中从备链路回切到主链路的流程图, 如图 3所示, 当核 心层设备(Provider, 简称为 P ) PI重新恢复后, 运营商边缘路由器( Provider Edge, 简称为 PE ) PE1和 PE2的 TMS的 LOCK告警都成功消除, TMS检测 链路正常, 在到达延时回切时间后 GROUP就会回切, 然后发送 APS报文给 对端, 通知对端进行切换操作;
假如此时 PE1和 PE2的 TMS的 LOCK告警虽然都成功消除, GROUP1 却没有下发成功、 或者转发层在写硬件转发表时没有写表成功、 或者隧道没 有下发成功, 但是转发层却返回给控制层下发成功, 此时切换层面会认为 GROUP1是正常的, P1上的 GROUP1和 GROUP2在延时回切时间到后都会 回切到主状态, 实际上此时检测层面是正常的, 但是转发层面却是有问题的, 也就是说, PE1上的 GROUP1是正常的, P1上的 GROUP1切换层认为是正 常的, 转发层却是异常的, 在上述情况下报文再按照 PE1— P1— PE2路径转 发就都会在 PI设备上丟弃。
发明内容
本发明实施方式提供一种环网保护组链路回切方法及装置, 以解决相关 技术中主备链路回切时, 在检测层检测链路正常, 转发层存在问题时依然进 行回切造成流量中断的问题。
本发明实施例提供一种环网保护组链路回切方法, 包括:
两端设备在组控制层通知组转发层进行组添加、 以及隧道控制层通知隧 道转发层进行隧道添加时, 在各自的对应于各转发层的转发表中记录主转发 链路是否正常的标记;
在进行链路回切时, 一端设备确定检测层的段层 TMS链路是否正常, 如 果正常, 则根据自身转发表中的记录确定所述主转发链路的第一链路状态是 否正常, 在所述第一链路状态正常的情况下, 通知对端设备所述第一链路状 态为正常, 已做好回切准备;
所述对端设备根据自身转发表中的记录获取本端的所述主转发链路的第 二链路状态, 并向对端设备返回所述第二链路状态; 以及
所述两端设备在确定所述第一链路状态和所述第二链路状态均正常的情 况下, 从备转发链路回切到所述主转发链路。
两端设备在各自的对应于各转发层的转发表中记录主转发链路是否正常 的标记的步骤包括:
所述组控制层向所述组转发层下发组添加的通知;
所述组转发层执行组添加操作, 如果组添加成功, 则将每端设备的对应 于所述组转发层的转发表中的组添加标记设置为成功, 如果组添加失败, 则 败; 以及
所述隧道控制层向所述隧道转发层下发隧道添加的通知;
所述隧道转发层执行隧道添加操作, 如果隧道添加成功, 则将每端设备 的对应于所述隧道转发层的转发表中的隧道添加标记设置为成功, 如果隧道 添加失败, 则将每端设备的对应于所述隧道转发层的转发表中的所述隧道添 加标记设置为失败。
所述一端设备根据自身转发表中的记录确定所述主转发链路的第一链路 状态是否正常的步骤包括:
所述一端设备判断自身转发表中的所述组添加标记和所述隧道添加标记 是否均被设置为成功, 如果判断为是, 则确定所述主转发链路的所述第一链 路状态为正常, 如果不是, 确定所述所述主转发链路的所述第一链路状态为 异常。
所述对端设备根据自身转发表中的记录获取本端的所述主转发链路的第 二链路状态的步骤包括:
所述对端设备判断自身转发表中的所述组添加标记和所述隧道添加标记 是否均被设置为成功, 如果判断为是, 则确定所述主转发链路的所述第二链 路状态为正常, 如果不是, 确定所述所述主转发链路的所述第二链路状态为 异常; 以及
所述对端设备获取本端的所述第二链路状态。
所述方法还包括:
在所述第一链路状态异常的情况下, 所述一端设备被禁止向所述对端设 备发送通知, 并被禁止从所述备转发链路回切到所述主转发链路。
本发明实施例还提供一种环网保护组链路回切装置, 包括:
标记模块, 其设置为在组控制层通知组转发层进行组添加、 以及隧道控 制层通知隧道转发层进行隧道添加时, 在各转发层的转发表中记录主转发链 路是否正常的标记;
处理模块, 其设置为: 在进行链路回切时, 确定检测层的段层 TMS链路 是否正常, 如果正常, 则根据所述转发表中的记录确定所述主转发链路的第 一链路状态是否正常, 在所述第一链路状态正常的情况下, 通知对端设备所 述第一链路状态为正常, 已做好回切准备; 或者, 根据所述转发表中的记录 获取当前端的所述主转发链路的第二链路状态, 并向对端设备返回所述第二 链路状态; 以及
回切模块, 其设置为在确定所述第一链路状态和所述第二链路状态均正 常的情况下, 将所述装置从备转发链路回切到所述主转发链路。
所述标记模块是设置成通过如下方式记录主转发链路是否正常的标记: 通过所述组控制层向所述组转发层下发组添加的通知; 如果所述组转发 记设置为成功, 如果所述组转发层组添加失败, 则通过所述组转发层将所述 组转发层的转发表中的所述组添加标记设置为失败; 以及
通过所述隧道控制层向所述隧道转发层下发隧道添加的通知; 如果所述 隧道转发层隧道添加成功, 则通过所述隧道转发层将所述隧道转发层的转发 表中的隧道添加标记设置为成功, 如果所述隧道转发层隧道添加失败, 则通 过所述隧道转发层将所述隧道转发层的转发表中的所述隧道添加标记设置为 失败。
所述处理模块包括:
第一链路状态确定子模块, 其设置为判断各转发层的转发表中的所述组 添加标记和所述隧道添加标记是否均被设置为成功, 如果判断为是, 则确定 所述主转发链路的所述第一链路状态为正常, 如果不是, 则确定所述所述主 转发链路的所述第一链路状态为异常。
所述处理模块包括:
第二链路状态确定子模块, 其设置为判断各转发层的转发表中的所述组 添加标记和所述隧道添加标记是否均被设置为成功, 如果判断为是, 则确定 所述主转发链路的所述第二链路状态为正常, 如果不是, 确定所述所述主转 发链路的所述第二链路状态为异常; 以及
第二链路状态获取子模块, 其设置为获取当前端的所述第二链路状态。 所述处理模块还设置为: 在所述第一链路状态异常的情况下, 禁止所述 装置向所述对端设备发送通知 , 并通知所述回切模块禁止将所述装置从所述 备转发链路回切到所述主转发链路。 术中主备链路回切时, 在检测层检测链路正常, 转发层存在问题时依然进行 回切造成流量中断的问题, 能够防止报文丟失和流量中断。
附图概述
图 1是相关技术中设备正常主链路报文转发的组网示意图;
图 2是相关技术中主链路瘫痪备链路报文转发的组网示意图;
图 3是相关技术中从备链路回切到主链路的流程图;
图 4是本发明实施例的环网保护组链路回切方法的流程图;
图 6是本发明实施例的环网保护组链路回切装置的结构示意图。
本发明的较佳实施方式
为了解;
在问题时依然进行回切造成流量中断的问题, 本发明实施方式提供了一种环 网保护组链路回切方法及装置, 如图 1和图 2所示, 在遇到 TMS状态正常但 是组(GROUP )转发不正常的情况时, 即, PE1的 GROUP1正常但是 P1的 GROUP1不正常, PE1和 P1的 GROUP的切换层面不进行回切操作, 两边如 果有其中一端的 GROUP不正常, 两边都不进行回切操作, 在延时回切时间 到达后, 除了要判断 TMS告警是否消除, 同时还需要去转发层查询转发信息 是否完整, 如果转发信息完整无误, 才进行回切操作, 否则不回切。
以下结合附图以及实施例, 对本发明实施方式进行进一步详细说明。 应 当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不限定本发明。
方法实施例
根据本发明的实施例, 提供了一种环网保护组链路回切方法, 图 4是本 发明实施例的环网保护组链路回切方法的流程图, 如图 4所示, 本发明实施 例的环网保护组链路回切方法包括如下处理:
步骤 401 , 两端设备在组控制层通知组转发层进行组添加、 以及隧道控 制层通知隧道转发层进行隧道添加时, 在各自转发层的转发表中记录主转发 链路是否正常的标记;
步骤 401包括如下处理: 1、 组控制层向组转发层下发组添加的通知; 2、 组转发层执行组添加操作, 如果组添加成功, 则将转发表中的组添加标记设 置为成功, 如果组添加失败, 则将转发表中的组添加标记设置为失败; 3、 隧 道控制层向隧道转发层下发隧道添加的通知; 4、 隧道转发层执行隧道添加操 作, 如果隧道添加成功, 则将转发表中的隧道添加标记设置为成功, 如果隧 道添加失败, 则将转发表中的隧道添加标记设置为失败。
步骤 402, 在进行链路回切时, 一端设备确定检测层的段层 TMS链路是 否正常, 如果正常, 则根据自身转发表中的记录确定主转发链路的第一链路 状态是否正常, 在第一链路状态正常的情况下, 通知对端设备第一链路状态 为正常, 已做好回切准备;
步骤 402中, 根据自身转发表中的记录确定主转发链路的第一链路状态 是否正常包括如下处理: 一端设备判断自身转发表中的组添加标记和隧道添 加标记是否均被设置为成功, 如果判断为是, 则确定主转发链路的第一链路 状态为正常, 否则, 确定主转发链路的第一链路状态为异常。
执行步骤 402之后, 如果确定第一链路状态异常, 一端设备禁止向对端 设备发送通知, 并禁止进行从备转发链路回切到主转发链路。
步骤 403 , 对端设备返回第二链路状态;
步骤 403中, 对端设备根据自身转发表中的记录获取本端的主转发链路 的第二链路状态包括: 1、对端设备判断自身转发表中的组添加标记和隧道添 加标记是否均被设置为成功, 如果判断为是, 则确定主转发链路的第二链路 状态为正常, 否则, 确定主转发链路的第二链路状态为异常; 2、 对端设备获 取本端的第二链路状态。
步骤 404 , 两端设备在确定第一链路状态和第二链路状态均正常的情况 下, 从备转发链路回切到主转发链路。 以下结合附图, 对本发明实施例的技术方案进行详细说明。
Figure imgf000010_0001
以下处理可以参照如图 2所示的情境, 此外, 需要说明的是, 本发明实施例 的环网保护组链路回切方法需要切换层和转发层共同完成, 其中, 转发层主 要用于查看转发表是否完整, 切换层主要用于进行设备间回切协商, 判断是 否需要回切。 如图 5所示, 包括如下处理:
步骤 501 ,组控制层下发组转发层 GROUP添加时,组转发层记录 GROUP 添加成功与否标记 FlgO, 添加成功置位 1 , 否则置位 0; 隧道控制层下发隧道 转发层隧道添加时, 隧道转发层记录隧道添加成功与否标记 Flgl , 添加成功 置位 1 , 否则置位 0;
步骤 502, P1设备恢复正常工作;
步骤 503 , 延时回切时间到;
步骤 504, 设备 1查询检测层 TMS是否正常( TMS告警是否消除 ) , 如 果检测层检测链路正常(告警消除) , 则执行步骤 505 , 否则执行步骤 506;
步骤 505 , 设备 1在转发层面进行转发表的查询, 查看转发链路是否正 常, 如果正常则执行步骤 507 , 否则执行步骤 506;
步骤 506, 设备 1不进行组回切(也不发送 APS报文) ;
步骤 507 , 设备 1发送 APS ^艮文通知对端设备 2告知自己回切状态可以 回切;
步骤 508, 设备 2收到的 APS报文得知设备 1状态可以回切后, 查询自 己与之对应的 GROUP状态, 通过回应 APS 4艮文通知设备 1 自己是否可以回 切;
步骤 509,设备 1通过设备 2回应的 APS报文判断设备 2是否能够回切, 如果判断为是, 则执行步骤 510, 否则, 执行步骤 506;
步骤 510, 在两端设备都确定能够进行回切的情况下, 设备 1 和设备 2 进行组回切。
以下结合实例, 对本发明实施例的上述技术方案进行举例说明。 在图 1 所示的情境下, P1设备上布置西向 GROUP1 , 主隧道 TU EL1 , 环网保护 隧道 TU EL2, 其中, TMS1用于 PE1和 P1之间物理链路的检测, P1设备 上布置东向 GROUP2 , 主隧道 TU EL1 , 环网保护隧道 TU EL2, 其中, TMS2用于 PE2和 P1之间物理链路的检测; PE1设备布置东向 GROUP1 , 主 隧道 TU EL1 , 环网保护隧道 TU EL2 , TMS1 , PE2 设备布置西向 GROUP2, 主隧道 TU EL1 , 环网保护隧道 TU EL2 , TMS2;
主隧道 TU EL1 正常下发转发表写成功记录 tunnell.Flgl=l , 否则 tunnell.Flgl=0;
备隧道 TU EL2 正常下发转发表写成功记录 tunnel2.Flgl=l , 否则 tunnel2.Flgl=0;
GROUP1 正常下发整合主备链路信息和 GROUP 工作状态, 成功写
GROUP转发表记录 groupl.FlgO=l , 否则 groupl .Flg0=l;
同理 GROUP2正常下发记录 group2.FlgO=l , 否则 group2.FlgO=l;
P1 设备断 电后 , PlTMSl.state=LOCK , PlTMS2.state=LOCK , PElTMSl.state=LOCK , PE2TMS2.state=LOCK , PI 设备恢复正常后, PlTMSl.state=OK , PlTMS2.state=OK ; PElTMSl.state=OK , PE2TMS2.state=OK;
PlGROUPl延时回切时间到后, 进行判断(PlTMSl.state==OK )如果成 立 , 则 到 转 发 层 面 查 询 主 转 发 路 径 是 否 正 常 , 如 果 ( (groupl .Flg0=l)&&( timnell .Flgl=l) )成立,发送 APS报文给 PE1 ,通知 PE1 本端 PlGROUPl的状态可以回切到主 Plgroupl.state=master,否则不发送 APS 才艮文, 也不进行回切 P 1 group 1. state=slave;
PE1 收到 PlGROUPl 的 APS 文后得知对端 GROUP1 的状态 PI group l.state=master 可以回切到主链路, 查询本端 GROUP 1 状态 (PE1 group l.state=master)或者( PE1 group l.state=slave ) , 然后把本端 GROUP1 的状态通过回应 APS报文形式发送到 PI , 如果 (PElgroupl.state=master), 则 PE1 GROUP 1进行回切, 否则不进行回切;
P1 收到回应 文后, 和本端 GROUP1 状态进行比较, 如果 (PE 1 group 1. state=master)进行回切操作, 否则 不回切, 同 时置位 ( P 1 group 1. state=slave ) 。
借助于本发明实施例的技术方案, 通过对回切后的报文转发链路进行检 查, 解决了相关技术中在主备链路回切时, 在检测层检测链路正常转发层存 在问题时依然进行回切造成流量中断的问题, 能够防止流量中断。
装置实施例
本发明实施例提供了一种环网保护组链路回切装置, 图 6是本发明实施 例的环网保护组链路回切装置的结构示意图, 如图 6所示, 该装置包括: 标 记模块 60、 处理模块 62、 以及回切模块 64, 以下对本发明实施例的各个模 块进行详细的说明。
具体地, 标记模块 60设置为在组控制层通知组转发层进行组添加、 以及 隧道控制层通知隧道转发层进行隧道添加时, 在各转发层的转发表中记录主 转发链路是否正常的标记;
标记模块 60是设置为通过如下方式记录主转发链路是否正常的标记: 1、 通过组控制层向组转发层下发组添加的通知; 如果组转发层组添加成功, 则 通过组转发层将组转发层的转发表中的组添加标记设置为成功, 如果组转发 层组添加失败, 则通过组转发层将组转发层的转发表中的组添加标记设置为 失败; 2、 通过隧道控制层向隧道转发层下发隧道添加的通知; 如果隧道转发 层隧道添加成功, 则通过隧道转发层将隧道转发层的转发表中的隧道添加标 记设置为成功, 如果隧道转发层隧道添加失败, 则通过隧道转发层将隧道转 发层的转发表中的隧道添加标记设置为失败。
处理模块 62设置为: 在进行链路回切时, 确定检测层的段层 TMS链路 是否正常, 如果正常, 则根据各转发层的转发表中的记录确定主转发链路的 第一链路状态是否正常, 在第一链路状态正常的情况下, 通知对端设备第一 链路状态为正常, 已做好回切准备; 或者, 根据各转发层的转发表中的记录 获取当前端的主转发链路的第二链路状态,并向对端设备返回第二链路状态; 处理模块 62包括:
第一链路状态确定子模块, 其设置为判断各转发层的转发表中的组添加 标记和隧道添加标记是否均被设置为成功, 如果判断为是, 则确定主转发链 路的第一链路状态为正常, 否则, 确定主转发链路的第一链路状态为异常。
第二链路状态确定子模块, 其设置为判断各转发层的转发表中的组添加 标记和隧道添加标记是否均被设置为成功, 如果判断为是, 则确定主转发链 路的第二链路状态为正常, 否则, 确定主转发链路的第二链路状态为异常; 以及
第二链路状态获取子模块, 其设置为获取当前端的第二链路状态。
处理模块 62还设置为: 在第一链路状态异常的情况下, 禁止该装置向对 端设备发送通知, 并通知回切模块禁止该装置从备转发链路回切到主转发链 路。
回切模块 64设置为在确定第一链路状态和第二链路状态均正常的情况 下, 将该装置从备转发链路回切到主转发链路。
以下结合附图, 对本发明实施例的技术方案进行详细说明。
Figure imgf000013_0001
以下处理可以参照如图 2所示的情境, 此外, 需要说明的是, 本发明实施例 的环网保护组链路回切方法需要切换层和转发层共同完成, 其中, 转发层主 要用于查看转发表是否完整, 切换层主要用于进行设备间回切协商, 判断是 否需要回切。 如图 5所示, 包括如下处理:
步骤 501 ,组控制层下发组转发层 GROUP添加时,组转发层记录 GROUP 添加成功与否标记 FlgO, 添加成功置位 1 , 否则置位 0; 隧道控制层下发隧道 转发层隧道添加时, 隧道转发层记录隧道添加成功与否标记 Flgl , 添加成功 置位 1 , 否则置位 0;
步骤 502, P1设备恢复正常工作;
步骤 503 , 延时回切时间到;
步骤 504, 设备 1查询检测层 TMS是否正常( TMS告警是否消除 ) , 如 果检测层检测链路正常(告警消除) , 则执行步骤 505, 否则执行步骤 506; 步骤 505, 设备 1在转发层面进行转发表的查询, 查看转发链路是否正 常, 如果正常则执行步骤 507, 否则执行步骤 506; 步骤 506, 设备 1不进行组回切(也不发送 APS报文) ;
步骤 507, 设备 1发送 APS ^艮文通知对端设备 2告知自己回切状态可以 回切;
步骤 508, 设备 2收到的 APS报文得知设备 1状态可以回切后, 查询自 己与之对应的 GROUP状态, 通过回应 APS 4艮文通知设备 1 自己是否可以回 切;
步骤 509,设备 1通过设备 2回应的 APS报文判断设备 2是否能够回切, 如果判断为是, 则执行步骤 510, 否则, 执行步骤 506;
步骤 510, 在两端设备都确定能够进行回切的情况下, 设备 1 和设备 2 进行组回切。
以下结合实例, 对本发明实施例的上述技术方案进行举例说明。 在图 1 所示的情境下, P1设备上布置西向 GROUP1 , 主隧道 TU EL1 , 环网保护 隧道 TU EL2, 其中, TMS1用于 PE1和 P1之间物理链路的检测 , P1设备 上布置东向 GROUP2 , 主隧道 TU EL1 , 环网保护隧道 TU EL2, 其中, TMS2用于 PE2和 P1之间物理链路的检测; PE1设备布置东向 GROUP1 , 主 隧道 TU EL1, 环网保护隧道 TU EL2, TMS1 , PE2 设备布置西向 GROUP2, 主隧道 TU EL1, 环网保护隧道 TU EL2 , TMS2;
主隧道 TU EL1 正常下发转发表写成功记录 tunnell.Flgl=l, 否则 tunnell.Flgl=0;
备隧道 TU EL2 正常下发转发表写成功记录 tunnel2.Flgl=l , 否则 tunnel2.Flgl=0;
GROUP1 正常下发整合主备链路信息和 GROUP 工作状态, 成功写 GROUP转发表记录 groupl.FlgO=l , 否则 groupl .Flg0=l;
同理 GROUP2正常下发记录 group2.FlgO=l , 否则 group2.FlgO=l; P1 设备断 电后 , PlTMSl.state=LOCK , PlTMS2.state=LOCK ,
PElTMSl.state=LOCK , PE2TMS2.state=LOCK , PI 设备恢复正常后, PlTMSl.state=OK , PlTMS2.state=OK ; PElTMSl.state=OK , PE2TMS2.state=OK; PlGROUPl延时回切时间到后, 进行判断(PlTMSl .state==OK )如果成 立 , 则 到 转 发 层 面 查 询 主 转 发 路 径 是 否 正 常 , 如 果 ( (groupl .Flg0=l)&&( timnell .Flgl=l) )成立,发送 APS报文给 PE1 ,通知 PE1 本端 PlGROUPl的状态可以回切到主 Plgroupl .state=master,否则不发送 APS 才艮文, 也不进行回切 PI group l .state=slave;
PE1 收到 PlGROUPl 的 APS 文后得知对端 GROUP1 的状态 PI group l .state=master 可以回切到主链路, 查询本端 GROUP 1 状态 (PE1 group l .state=master)或者( PE1 group l .state=slave ) , 然后把本端 GROUP1 的状态通过回应 APS报文形式发送到 PI , 如果 ( PElgroupl .state=master), 则 PE1GROUP1进行回切, 否则不进行回切;
P1 收到回应 文后, 和本端 GROUP1 状态进行比较, 如果 (PE 1 group 1. state=master)进行回切操作, 否则 不回切, 同 时置位 ( P 1 group 1. state=slave ) 。
借助于本发明实施例的技术方案, 通过对回切后的报文转发链路进行检 查, 解决了相关技术中在主备链路回切时, 在检测层检测链路正常转发层存 在问题时依然进行回切造成流量中断的问题, 能够防止流量中断。
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人员 将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当不限 于上述实施例。
工业实用性
借助于本发明实施例的技术方案, 通过对回切后的报文转发链路进行检 查, 解决了相关技术中主备链路回切时, 在检测层检测到链路正常但转发层 存在问题时依然进行回切造成流量中断的问题, 能够防止流量中断。

Claims

权 利 要 求 书
1、 一种环网保护组链路回切方法, 包括:
两端设备在组控制层通知组转发层进行组添加、 以及隧道控制层通知隧 道转发层进行隧道添加时, 在各自的对应于各转发层的转发表中记录主转发 链路是否正常的标记;
在进行链路回切时, 一端设备确定检测层的段层 TMS链路是否正常, 如 果正常, 则根据自身转发表中的记录确定所述主转发链路的第一链路状态是 否正常, 在所述第一链路状态正常的情况下, 通知对端设备所述第一链路状 态为正常, 已做好回切准备;
所述对端设备根据自身转发表中的记录获取本端的所述主转发链路的第 二链路状态, 并向对端设备返回所述第二链路状态; 以及
所述两端设备在确定所述第一链路状态和所述第二链路状态均正常的情 况下, 从备转发链路回切到所述主转发链路。
2、 如权利要求 1所述的方法, 其中, 两端设备在各自的对应于各转发层 的转发表中记录主转发链路是否正常的标记的步骤包括:
所述组控制层向所述组转发层下发组添加的通知;
所述组转发层执行组添加操作, 如果组添加成功, 则将每端设备的对应 于所述组转发层的转发表中的组添加标记设置为成功, 如果组添加失败, 则 败; 以及
所述隧道控制层向所述隧道转发层下发隧道添加的通知;
所述隧道转发层执行隧道添加操作, 如果隧道添加成功, 则将每端设备 的对应于所述隧道转发层的转发表中的隧道添加标记设置为成功, 如果隧道 添加失败, 则将每端设备的对应于所述隧道转发层的转发表中的所述隧道添 加标记设置为失败。
3、 如权利要求 2所述的方法, 其中, 所述一端设备根据自身转发表中的 记录确定所述主转发链路的第一链路状态是否正常的步骤包括: 所述一端设备判断自身转发表中的所述组添加标记和所述隧道添加标记 是否均被设置为成功, 如果判断为是, 则确定所述主转发链路的所述第一链 路状态为正常, 如果不是, 确定所述所述主转发链路的所述第一链路状态为 异常。
4、 如权利要求 2所述的方法, 其中, 所述对端设备根据自身转发表中的 记录获取本端的所述主转发链路的第二链路状态的步骤包括:
所述对端设备判断自身转发表中的所述组添加标记和所述隧道添加标记 是否均被设置为成功, 如果判断为是, 则确定所述主转发链路的所述第二链 路状态为正常, 如果不是, 确定所述所述主转发链路的所述第二链路状态为 异常; 以及
所述对端设备获取本端的所述第二链路状态。
5、 如权利要求 1所述的方法, 还包括:
在所述第一链路状态异常的情况下, 所述一端设备被禁止向所述对端设 备发送通知, 并被禁止从所述备转发链路回切到所述主转发链路。
6、 一种环网保护组链路回切装置, 包括:
标记模块, 其设置为在组控制层通知组转发层进行组添加、 以及隧道控 制层通知隧道转发层进行隧道添加时, 在各转发层的转发表中记录主转发链 路是否正常的标记;
处理模块, 其设置为: 在进行链路回切时, 确定检测层的段层 TMS链路 是否正常, 如果正常, 则根据所述转发表中的记录确定所述主转发链路的第 一链路状态是否正常, 在所述第一链路状态正常的情况下, 通知对端设备所 述第一链路状态为正常, 已做好回切准备; 或者, 根据所述转发表中的记录 获取当前端的所述主转发链路的第二链路状态, 并向对端设备返回所述第二 链路状态; 以及
回切模块, 其设置为在确定所述第一链路状态和所述第二链路状态均正 常的情况下, 将所述装置从备转发链路回切到所述主转发链路。
7、 如权利要求 6所述的装置, 其中, 所述标记模块是设置成通过如下方 式记录主转发链路是否正常的标记: 通过所述组控制层向所述组转发层下发组添加的通知; 如果所述组转发 记设置为成功, 如果所述组转发层组添加失败, 则通过所述组转发层将所述 组转发层的转发表中的所述组添加标记设置为失败; 以及
通过所述隧道控制层向所述隧道转发层下发隧道添加的通知; 如果所述 隧道转发层隧道添加成功, 则通过所述隧道转发层将所述隧道转发层的转发 表中的隧道添加标记设置为成功, 如果所述隧道转发层隧道添加失败, 则通 过所述隧道转发层将所述隧道转发层的转发表中的所述隧道添加标记设置为 失败。
8、 如权利要求 7所述的装置, 其中, 所述处理模块包括:
第一链路状态确定子模块, 其设置为判断各转发层的转发表中的所述组 添加标记和所述隧道添加标记是否均被设置为成功, 如果判断为是, 则确定 所述主转发链路的所述第一链路状态为正常, 如果不是, 则确定所述所述主 转发链路的所述第一链路状态为异常。
9、 如权利要求 7所述的装置, 其中, 所述处理模块包括:
第二链路状态确定子模块, 其设置为判断各转发层的转发表中的所述组 添加标记和所述隧道添加标记是否均被设置为成功, 如果判断为是, 则确定 所述主转发链路的所述第二链路状态为正常, 如果不是, 确定所述所述主转 发链路的所述第二链路状态为异常; 以及
第二链路状态获取子模块, 其设置为获取当前端的所述第二链路状态。
10、 如权利要求 6所述的装置, 其中, 所述处理模块还设置为: 在所述第一链路状态异常的情况下, 禁止所述装置向所述对端设备发送 通知, 并通知所述回切模块禁止将所述装置从所述备转发链路回切到所述主 转发链路。
PCT/CN2012/079033 2011-09-13 2012-07-23 环网保护组链路回切方法及装置 WO2013037248A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110269242.7 2011-09-13
CN201110269242.7A CN102315987B (zh) 2011-09-13 2011-09-13 环网保护组链路回切方法及装置

Publications (1)

Publication Number Publication Date
WO2013037248A1 true WO2013037248A1 (zh) 2013-03-21

Family

ID=45428824

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079033 WO2013037248A1 (zh) 2011-09-13 2012-07-23 环网保护组链路回切方法及装置

Country Status (2)

Country Link
CN (1) CN102315987B (zh)
WO (1) WO2013037248A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315987B (zh) * 2011-09-13 2017-05-10 中兴通讯股份有限公司 环网保护组链路回切方法及装置
CN102571449B (zh) * 2012-02-16 2019-05-03 中兴通讯股份有限公司 链路的切换方法及装置
CN107682262B (zh) * 2012-08-01 2020-11-17 华为技术有限公司 通信路径的处理方法与装置
CN104184661B (zh) * 2014-08-27 2018-01-05 中国联合网络通信集团有限公司 控制业务回切的方法及装置
CN107040392B (zh) * 2015-07-29 2020-08-04 南京中兴软件有限责任公司 伪线双归保护管理方法及通信设备
CN111478845B (zh) * 2020-02-29 2022-02-22 新华三信息安全技术有限公司 保护倒换方法和供应商网络边缘设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008107258A1 (en) * 2007-03-05 2008-09-12 Alcatel Lucent Packet ring protection
CN101686167A (zh) * 2008-09-22 2010-03-31 中兴通讯股份有限公司 一种以太环网故障恢复的控制方法
CN102014033A (zh) * 2010-12-13 2011-04-13 中兴通讯股份有限公司 环网故障节点实现业务恢复的方法和系统
CN102315987A (zh) * 2011-09-13 2012-01-11 中兴通讯股份有限公司 环网保护组链路回切方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2028890B1 (en) * 2007-08-12 2019-01-02 LG Electronics Inc. Handover method with link failure recovery, wireless device and base station for implementing such method
CN101599862B (zh) * 2009-06-30 2011-09-21 中兴通讯股份有限公司 传送多协议标签交换环网保护维护实体组配置方法和装置
CN101771610B (zh) * 2009-12-24 2012-05-09 中兴通讯股份有限公司 传送多协议标签交换网络系统和链路保护方法
CN102035714B (zh) * 2010-12-17 2016-03-30 中兴通讯股份有限公司 一种相交相切环网保护方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008107258A1 (en) * 2007-03-05 2008-09-12 Alcatel Lucent Packet ring protection
CN101686167A (zh) * 2008-09-22 2010-03-31 中兴通讯股份有限公司 一种以太环网故障恢复的控制方法
CN102014033A (zh) * 2010-12-13 2011-04-13 中兴通讯股份有限公司 环网故障节点实现业务恢复的方法和系统
CN102315987A (zh) * 2011-09-13 2012-01-11 中兴通讯股份有限公司 环网保护组链路回切方法及装置

Also Published As

Publication number Publication date
CN102315987B (zh) 2017-05-10
CN102315987A (zh) 2012-01-11

Similar Documents

Publication Publication Date Title
CN101427501B (zh) 确保mpls转发和控制平面之间一致性的方法和设备
US8483050B2 (en) Method and apparatus for ethernet ring protection
US20130077474A1 (en) Method for ethernet ring protection
US8724452B2 (en) Technique for protecting communication traffic in a connection having redundancy
WO2013037248A1 (zh) 环网保护组链路回切方法及装置
EP1845656A1 (en) A method for implementing master and backup transmission path
WO2006099784A1 (fr) Procédé de détection d’un défaut de liaison entre des noeuds d’une extrémité à l’autre dans un réseau hybride
US20100260041A1 (en) Link fault handling method and data forwarding apparatus
US20120188912A1 (en) Method, apparatus, and system for updating ring network topology information
WO2009056053A1 (fr) Procédé, dispositif et système de commutateur de capacité de flux à ingénierie de trafic et commutation multiprotocole par étiquette
EP2866394B1 (en) Method and device for sending inter-domain fault information
WO2008046358A1 (fr) Procédé et dispositif destinés à réaliser une pénétration d'un statut de liaison de réseau point à multipoint
TW201215040A (en) Optimized fast re-route in MPLS ring topologies
WO2011015011A1 (zh) 一种环网故障检测及定位的方法和系统
WO2012167667A1 (zh) 一种信号劣化处理方法、装置及节点设备
WO2006108352A1 (fr) Procede de gestion de panne et appareil permettant l'interfonctionnement entre ethernet et un reseau de commutation multiprotocole par etiquette
WO2012149862A1 (zh) 环网故障切换方法和装置
WO2006069549A1 (fr) Procede de protection de service de donnees dans un reseau d'emission metropolitain
WO2011157130A2 (zh) 路径建立方法和装置
WO2010020146A1 (zh) 流量工程隧道的关联保护方法、装置及系统
WO2012016458A1 (zh) 用于二层虚拟专用网络的数据传输方法和装置
WO2011095101A1 (zh) 一种分组传送网络的线性1:n保护方法、装置和系统
WO2013049981A1 (zh) 一种基于共享通道的混合环网保护方法及系统
US20100296412A1 (en) Method, Device, and System for Establishing Label Switching Path in Fast Rerouting Switching
WO2017152596A1 (zh) 一种p2mp主隧道节点保护的方法及装置

Legal Events

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

Ref document number: 12831003

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12831003

Country of ref document: EP

Kind code of ref document: A1