WO2013185497A1 - Service processing method and network equipment for ring network - Google Patents

Service processing method and network equipment for ring network Download PDF

Info

Publication number
WO2013185497A1
WO2013185497A1 PCT/CN2013/072456 CN2013072456W WO2013185497A1 WO 2013185497 A1 WO2013185497 A1 WO 2013185497A1 CN 2013072456 W CN2013072456 W CN 2013072456W WO 2013185497 A1 WO2013185497 A1 WO 2013185497A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
service
information
suppressed
fault
Prior art date
Application number
PCT/CN2013/072456
Other languages
French (fr)
Chinese (zh)
Inventor
叶剑
孙光辉
蔡亨光
张文洋
杨炀
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2015516414A priority Critical patent/JP5903192B2/en
Publication of WO2013185497A1 publication Critical patent/WO2013185497A1/en

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

Abstract

The invention provides a service processing method and network equipment for a ring network. The method comprises the following steps of: acquiring unreachable node information by a first node in the ring network; according to the acquired unreachable node information, determining a suppressed service in local service information; and suppressing the determined suppressed service. The network equipment comprises an acquisition module, a determination module and a suppression module. An unreachable service is suppressed, so that an additional protecting channel bandwidth can be prevented from being occupied, and influence on other reachable services is maximally reduced.

Description

环网中业务处理方法及网絡设备 本申请要求于 2012 年 6 月 11 日提交中国专利局、 申请号为 201210190002.2、 发明名称为 "环网中业务处理方法及网络设备" 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。  Service processing method and network equipment in the ring network This application claims priority to the Chinese Patent Application submitted to the China Patent Office on June 11, 2012, with the application number 201210190002.2, and the invention titled "Service Processing Method and Network Equipment in the Ring Network" The entire contents of which are incorporated herein by reference.
技术领域 本发明涉及通信技术, 尤其涉及一种环网中业务处理方法及网络设备。 背景技术 TECHNICAL FIELD The present invention relates to communications technologies, and in particular, to a service processing method and a network device in a ring network. Background technique
随着多协议标签交换(英文全称为 Multi Protocol Label Switching, 简 称为: MPLS )技术的发展,为了增强网络的可靠性,逐步出现了多种 MPLS 环网保护方法, 每种保护方法中都可以包括 wrapping倒换方式和 steering 倒换方式。 举例来说, 在环网正常工作的情况下, 业务在环网中的传输路 径如图 1 a所示。 当环网中节点 4和节点 3之间出现故障时 , wrapping倒 换方式会按照图 lb中虚线所示的路径进行倒换,而 steering倒换方式则会 按照图 lc中虚线所示的路径进行倒换。  With the development of multi-protocol label switching (referred to as Multi Protocol Label Switching, MPLS for short), in order to enhance the reliability of the network, various MPLS ring network protection methods have emerged, which can be included in each protection method. The wrapping switching method and the steering switching method. For example, in the case that the ring network works normally, the transmission path of the service in the ring network is as shown in Figure 1a. When there is a fault between node 4 and node 3 in the ring network, the winding switching mode will be switched according to the path shown by the dotted line in Figure lb, and the steering switching mode will be switched according to the path shown by the dotted line in Figure lc.
不论是 wrapping倒换方式还是 steering倒换方式, 当环网中的上环业 务节点或者下环业务节点出现故障,或者由于周边故障导致上环业务节点 或者下环业务节点之间被隔离时, 均会出现如下问题: 业务已经无法正常 接通, 但是 MPLS环网保护仍然启动倒换, 导致已经不可达的业务的流量 仍然在环网的各节点上转发, 占用其他可正常接通业务的带宽。 发明内容  Whether it is the wrapping switching mode or the steering switching mode, when the upper ring service node or the lower ring service node in the ring network fails, or the upper ring service node or the lower ring service node is isolated due to the peripheral fault, it will appear. The following problems occur: The service is not properly connected, but the MPLS ring network protection is still switched. The traffic of the unreachable service is still forwarded on each node of the ring network, occupying the bandwidth of other services that can be normally connected. Summary of the invention
为了避免不可达业务的流量占用带宽而影响其他可达业务, 一方面, 本 发明提供一种环网中业务处理方法, 包括:  In order to prevent the traffic of the unreachable service from occupying the bandwidth and affecting other reachable services, the present invention provides a service processing method in the ring network, including:
环网中的第一节点获得不可达节点信息;  The first node in the ring network obtains unreachable node information;
根据获得的不可达节点信息, 在本地业务信息中确定被压制的业务; 对确定的被压制的业务进行压制。  Determining the suppressed service in the local service information according to the obtained unreachable node information; suppressing the determined suppressed service.
另一方面, 本发明还提供了一种网络设备, 包括:  In another aspect, the present invention also provides a network device, including:
获得模块, 用于获得不可达节点信息, 并将所述不可达节点信息发送给 确定模块; Obtaining a module, configured to obtain unreachable node information, and send the unreachable node information to Determining module
所述确定模块, 用于根据所述获得模块获得的不可达节点信息, 在本地 业务信息中确定被压制的业务, 并将确定的被压制的业务发送给压制模块; 所述压制模块, 用于根据所述确定模块确定的被压制的业务进行压制。 本发明的有益效果是: 通过对不可达的业务进行压制, 避免占用额外保 护通道带宽, 最小程度降低对其他可达业务的影响。 附图说明  The determining module is configured to determine, according to the unreachable node information obtained by the obtaining module, the suppressed service in the local service information, and send the determined suppressed service to the pressing module; Pressing is performed according to the suppressed business determined by the determining module. The beneficial effects of the present invention are: By suppressing the unreachable services, the bandwidth of the extra protection channel is avoided, and the impact on other reachable services is minimized. DRAWINGS
图 la为环网正常工作的情况下业务在环网中的传输路径示意图; 图 lb为环网出现故障的情况下 wrapping倒换方式的业务路径示意图; 图 lc为环网出现故障的情况下 steering倒换方式的业务路径示意图; 图 2为本发明一个实施例提供的环网中业务处理方法流程图;  Figure la is a schematic diagram of the transmission path of the service in the ring network in the case that the ring network works normally; Figure lb is a schematic diagram of the service path of the wrapping switching mode in the case of a ring network failure; Figure lc shows the steering switch in the case of a ring network failure FIG. 2 is a flowchart of a service processing method in a ring network according to an embodiment of the present invention;
图 3a和图 3b为本发明实施例中的故障点示意图;  3a and 3b are schematic diagrams of fault points in an embodiment of the present invention;
图 4a和图 4b为本发明实施例中故障点信息的获得方法示意图; 图 5a为本发明一个实施例提供的静态方式获得环网拓朴的示意图; 图 5b为本发明一个实施例提供的动态方式获得环网拓朴的流程图; 图 6为本发明一个实施例提供的 APS协议报文格式示意图;  4a and FIG. 4b are schematic diagrams showing a method for obtaining fault point information according to an embodiment of the present invention; FIG. 5a is a schematic diagram of obtaining a topology of a ring network in a static manner according to an embodiment of the present invention; FIG. 5b is a dynamic diagram of an embodiment of the present invention; FIG. 6 is a schematic diagram of a format of an APS protocol packet according to an embodiment of the present invention;
图 7为本发明一个实施例提供的动态方式获得环网拓朴的流程图; 图 8为本发明一个实施例提供的环网业务示意图;  FIG. 7 is a flowchart of obtaining a ring network topology in a dynamic manner according to an embodiment of the present invention; FIG. 8 is a schematic diagram of a ring network service according to an embodiment of the present invention;
图 9为本发明一个实施例提供的网络设备的结构示意图;  FIG. 9 is a schematic structural diagram of a network device according to an embodiment of the present invention;
图 10为本发明一个实施例提供的获得模块的结构示意图;  FIG. 10 is a schematic structural diagram of an obtaining module according to an embodiment of the present invention;
图 11为本发明一个实施例提供的获得模块的结构示意图;  FIG. 11 is a schematic structural diagram of an obtaining module according to an embodiment of the present invention;
图 12为本发明一个实施例提供的故障点信息获得单元的结构示意图; 图 13为本发明一个实施例提供的拓朴获得单元的结构示意图; 图 14为本发明一个实施例提供的动态子单元的结构示意图;  FIG. 12 is a schematic structural diagram of a fault point information obtaining unit according to an embodiment of the present invention; FIG. 13 is a schematic structural diagram of a topology obtaining unit according to an embodiment of the present invention; FIG. 14 is a dynamic subunit according to an embodiment of the present invention; Schematic diagram of the structure;
图 15为本发明一个实施例提供的压制模块的结构示意图;  FIG. 15 is a schematic structural diagram of a pressing module according to an embodiment of the present invention; FIG.
图 16为本发明一个实施例提供的网络设备的结构示意图;  FIG. 16 is a schematic structural diagram of a network device according to an embodiment of the present invention;
图 17为本发明一个实施例提供的网络设备的结构示意图;  FIG. 17 is a schematic structural diagram of a network device according to an embodiment of the present invention;
图 18为本发明一个实施例提供的网络设备的结构示意图;  FIG. 18 is a schematic structural diagram of a network device according to an embodiment of the present invention;
图 19为本发明一个实施例提供的网络设备的结构示意图。 具体实施方式 FIG. 19 is a schematic structural diagram of a network device according to an embodiment of the present invention. detailed description
图 2为本发明一个实施例提供的环网中业务处理方法流程图, 如图 2所 示, 该方法包括:  FIG. 2 is a flowchart of a service processing method in a ring network according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
100、 环网中的第一节点获得不可达节点信息;  100. The first node in the ring network obtains unreachable node information.
101、 第一节点根据获得的不可达节点信息, 在本地业务信息中确定被压 制的 (squelched )业务。  101. The first node determines the squelched service in the local service information according to the obtained unreachable node information.
102、 该第一节点对确定的被压制的业务进行压制。  102. The first node suppresses the determined suppressed service.
其中, 第一节点为一种代指, 可以代指环网中任意一个节点。  The first node is a proxy, and can refer to any node in the ring network.
可选的, 由于与故障节点 /故障链路相邻的节点是首先获知其相邻节点 / 相邻链路出现故障的节点, 因此, 该第一节点可以特指与故障节点 /故障链路 相邻的节点。 这种情况下, 在与故障节点 /故障链路相邻的节点上对确定的被 压制的业务进行压制, 可以减少环网中对业务进行压制的节点数量, 使得尽 可能多的节点能够专注于正常的业务转发。  Optionally, since the node adjacent to the faulty node/failed link is the node that first learns that its neighboring node/adjacent link is faulty, the first node may specifically refer to the faulty node/failed link. Neighboring node. In this case, suppressing the determined suppressed service on the node adjacent to the faulty node/fault link can reduce the number of nodes in the ring network that suppress the service, so that as many nodes as possible can focus on Normal business forwarding.
可选的,上述环网中的第一节点获得不可达节点信息(100 ) ,可以包括: 该第一节点从自身开始, 按照环网的第一方向, 查找故障节点; 在第一 方向上首次查找到一个故障节点 (后称: 第一故障节点)之后, 从该第一故 障节点开始, 按照环网的第二方向查找故障节点, 直到在第二方向上也首次 查找到一个故障节点 (后称: 第二故障节点) , 其中, 第二方向为第一方向 的相反方向; 例如, 可以将顺时针方向作为第一方向, 将逆时针方向作为第 二方向, 又或者可以将逆时针方向作为第一方向, 顺时针方向作为第二方向 等等。 在上述第一方向上, 从第一故障节点开始到第二故障节点, 这之间的 节点为不可达节点。  Optionally, the first node in the ring network obtains the unreachable node information (100), and may include: the first node starts from itself, and searches for the faulty node according to the first direction of the ring network; After finding a faulty node (hereinafter referred to as: the first faulty node), starting from the first faulty node, searching for the faulty node according to the second direction of the ring network, until the faulty node is first found in the second direction (after The second fault node), wherein the second direction is the opposite direction of the first direction; for example, the clockwise direction may be the first direction, the counterclockwise direction may be the second direction, or the counterclockwise direction may be used as The first direction, the clockwise direction as the second direction, and the like. In the first direction, from the first fault node to the second fault node, the node between them is an unreachable node.
可选的, 上述第一节点查找故障节点可以是: 根据环网拓朴和故障点信 息查找故障节点。  Optionally, the foregoing first node searching for the faulty node may be: searching for the faulty node according to the ring topology and the fault point information.
可选的, 上述第一节点查找到第一故障节点后, 按照第二方向查找第二 故障节点时, 还可以对查找过的节点信息进行记录。  Optionally, after the first node finds the first fault node, and searches for the second fault node according to the second direction, the node information that is searched may also be recorded.
例如, 第一节点从自身开始, 按照某一个方向 (第一方向或者第二方向 均可) , 判定环网中各节点的节点信息是否在故障点信息中。 若某一节点的 节点信息在故障点信息中, 则该节点为故障节点。 当查找到第一故障节点后, 进行反方向查找, 并记录查找过的节点信息。 当在上述反方向上发现第二故 障节点则停止查找, 记录第二故障节点信息后停止记录节点信息。 此时, 被 记录的节点信息所对应的节点为可达的节点, 环网中的其他节点即为不可达 节点。 如果按照第一方向查找直至回到所述第一节点都没有发现第一故障节 点, 则停止查找, 此时可以认为环网中的全部节点均为可达节点。 For example, the first node starts from itself and determines whether the node information of each node in the ring network is in the fault point information according to a certain direction (either the first direction or the second direction). If the node information of a node is in the fault point information, the node is a fault node. When the first faulty node is found, Look in the reverse direction and record the found node information. When the second faulty node is found in the opposite direction, the search is stopped, and the second faulty node information is recorded, and the recording of the node information is stopped. At this time, the node corresponding to the recorded node information is a reachable node, and other nodes in the ring network are unreachable nodes. If the first fault node is not found after searching in the first direction until returning to the first node, the search is stopped. At this time, all nodes in the ring network are considered to be reachable nodes.
可选的, 当故障点位于某个节点时, 上述故障点信息为该节点的节点信 息; 当故障点位于链路上时, 上述故障点信息为该故障链路两端节点的节点 信息。 例如, 在图 3a中, 如果节点 2和节点 3之间的链路发生了故障, 则上 述故障点信息是指节点 2和节点 3的节点信息。 具体的故障点信息的形式可 以表示为 (源节点, 目的节点) , 或者 (目的节点, 源节点)等, 以表征从 上述源节点到上述目的节点之间的链路发生了故障。 例如, 节点 2到节点 3 的链路发生故障, 则上述故障点信息可以为 (2 , 3 )或者(2 , 3 ) 。  Optionally, when the fault point is located at a certain node, the fault point information is node information of the node; when the fault point is located on the link, the fault point information is node information of the nodes at both ends of the fault link. For example, in Fig. 3a, if the link between node 2 and node 3 fails, the above-mentioned fault point information refers to node information of node 2 and node 3. The form of the specific fault point information may be expressed as (source node, destination node), or (destination node, source node), etc., to characterize that the link between the source node and the destination node has failed. For example, if the link from node 2 to node 3 fails, the above fault point information may be (2, 3) or (2, 3).
当某条链路发生故障 (即: 故障点位于链路上) 时, 根据自动保护倒换 (英文全称为: Automatic Protection Switching, 简称为: APS )协议的规定 进行自动故障倒换,触发故障链路两端的节点分别通过第一方向和第二方向, 向环网中的其他节点发送 APS协议报文,该 APS协议报文中会携带有故障点 信息。 在环网中, 从一个节点到达另一个节点是有两个方向的, 这两个方向 上经过的节点数目可能会不同, 经过节点数目多的路径的 APS协议报文可以 称为长径 APS协议报文,经过节点数目少的路径的 APS协议报文可以称为短 径 APS协议 4艮文。 如图 4a所示, 节点 2向环网中的其他节点发送 APS协议 报文, 如信号失效(英文全称为: Signal Fail, 简称为: SF )报文, 其中携带 的故障点信息为 (3 , 2 ); 节点 3向环网中的其他节点发送 SF报文, 其中携 带的故障点信息为 ( 2 , 3 ) 。 这时, 对于节点 2而言, 长径 APS协议报文是 逆时针方向上发送给节点 3的 SF ( 3 , 2 ) , 而短径 APS协议报文是顺时针方 向上发送给节点 3的 SF ( 3 , 2 )。 相应的, 对于节点 3而言, 长径 APS协议 报文是顺时针方向上发送给节点 2的 SF ( 2 , 3 ) , 而短径 APS协议报文是逆 时针方向上发送给节点 2的 SF ( 2 , 3 ) 。  When a link fails (that is, the fault is located on the link), automatic fault switching is performed according to the provisions of the automatic protection switching (English: Automatic Protection Switching, APS for short), and the faulty link is triggered. The node in the end sends the APS protocol packet to the other nodes in the ring network through the first direction and the second direction. The APS protocol packet carries the fault point information. In a ring network, there are two directions from one node to another. The number of nodes passing through in these two directions may be different. The APS protocol packets passing through the path with a large number of nodes may be called the long-path APS protocol. Packets, APS protocol packets passing through a path with a small number of nodes can be called short-path APS protocol packets. As shown in Figure 4a, the node 2 sends an APS protocol packet to the other nodes in the ring network. For example, the signal is invalid (English: Signal Fail, SF for short), and the fault point information carried is (3. 2); Node 3 sends SF packets to other nodes in the ring network, where the fault point information carried is (2, 3). At this time, for node 2, the long-path APS protocol message is the SF (3, 2) sent to node 3 in the counterclockwise direction, and the short-path APS protocol message is the SF sent to node 3 in the clockwise direction. (3, 2). Correspondingly, for node 3, the long-path APS protocol message is SF (2, 3) sent to node 2 in a clockwise direction, and the short-path APS protocol message is sent to node 2 in a counterclockwise direction. ( twenty three ) .
当环网中的某个节点发生故障 (即: 故障点位于某个节点) 时, 该故障 节点两端的节点也会通过第一方向和第二方向, 向环网中的其他节点发送 APS协议报文, 并携带故障点信息, 该故障点信息就是发生故障的节点标识, 如节点 3发现节点 2出现故障, 则节点 3发送的 APS协议报文中携带的故障 点信息为节点 2的节点标识, 如图 3b所示。 When a node in the ring network fails (that is, the fault point is located at a certain node), the nodes at both ends of the faulty node also send the APS protocol report to the other nodes in the ring network through the first direction and the second direction. And carrying the fault point information, the fault point information is the node identifier of the fault, If the node 3 finds that the node 2 is faulty, the fault point information carried in the APS protocol packet sent by the node 3 is the node identifier of the node 2, as shown in FIG. 3b.
第一节点在收到这些 APS协议报文后, 会将其中携带的故障点信息记录 下来。 由于与故障点相邻的节点均会发送 APS协议 文, 因此, 针对同一个 故障点, 第一节点可能会收到多个 APS协议报文。 可选的, 对于收到的 APS 协议报文, 如果故障点信息是相同的, 记录任意一个 APS协议报文携带的故 障点信息。 其中, 上述所指的故障点信息相同, 可以包括源节点、 目的节点 相同或相反的两种情况。 例如, 表征为 (3, 2)和(2, 3) 的故障点信息, 认为是相同的。  After receiving the APS protocol packets, the first node records the fault point information carried in the APS protocol packet. Since the node adjacent to the fault point sends an APS protocol, the first node may receive multiple APS protocol packets for the same fault point. Optionally, for the received APS protocol packet, if the fault point information is the same, record the fault point information carried in any APS protocol packet. The information about the fault points mentioned above is the same, and may include the same situation or the opposite of the source node and the destination node. For example, fault point information characterized as (3, 2) and (2, 3) is considered to be the same.
在环网中, 可能会同时或者先后发生多个故障, 根据 APS协议, 每个故 障都会触发自动故障倒换。 可选的, 在一些场景中, 故障倒换的优先级可以 是不同的, 例如, 某一个时刻正在进行自动发起的故障倒换, 而此时恰好有 人工操作触发的故障倒换, 如果人工操作触发的故障倒换的优先级高于自动 发起的故障倒换的优先级, 则这个自动发起的故障倒换就会被视为取消, 设 备直接执行人工操作触发的故障倒换。 在本发明实施例中, 这种情况称为故 障倒换的抢占。 可选的, 在另外一些场景中, 一个故障倒换并不会导致另一 个故障倒换被视为取消。 在本发明实施例中, 这种情况称为故障倒换的共存。  In a ring network, multiple faults may occur simultaneously or sequentially. According to the APS protocol, each fault triggers automatic fault switchover. Optionally, in some scenarios, the priority of the fault switching may be different. For example, an automatically initiated fault switching is performed at a certain moment, and there is a manual operation triggered fault switching, if the manual operation triggers the fault. If the priority of the switchover is higher than the priority of the automatically initiated fault switchover, the automatically initiated fault switchover is considered to be canceled, and the device directly performs the fault switch triggered by the manual operation. In the embodiment of the present invention, this situation is called preemption of failover. Optionally, in other scenarios, one fault switch does not cause another fault switch to be considered canceled. In the embodiment of the present invention, this case is called coexistence of failover.
在故障倒换共存的场景中, 第一节点记录接收到的故障点信息。 如图 4b 所示, 该环网中, 节点 2和节点 3之间的链路、 节点 3和节点 4之间的链路 都发生了故障。节点 2分别通过第一方向和第二方向,向其他节点发送 SF(3, 2) , 节点 4分别通过第一方向和第二方向, 向其他节点发送 SF (3, 4) 。 当节点 1接收到 SF (3, 4)和 SF (3, 2)后, 根据 SF (3, 4)确定不可达 节点为节点 3和节点 4, WSF (3, 2)确定不可达节点为节点 3和节点 2, 所以, 将故障点信息记录为 (2, 3, 4) 。  In the scenario where the fault switching coexists, the first node records the received fault point information. As shown in Figure 4b, in the ring network, the link between node 2 and node 3, and the link between node 3 and node 4 have failed. The node 2 transmits SF(3, 2) to the other nodes through the first direction and the second direction, respectively, and the node 4 transmits the SF (3, 4) to the other nodes through the first direction and the second direction, respectively. When node 1 receives SF (3, 4) and SF (3, 2), it determines that the unreachable node is node 3 and node 4 according to SF (3, 4), and WSF (3, 2) determines that the unreachable node is a node. 3 and node 2, therefore, the fault point information is recorded as (2, 3, 4).
在故障倒换抢占的场景中, 被抢占的故障倒换则视为已经取消, 则环网 中只有优先级高的故障倒换触发的 APS协议报文;第一节点记录该 APS协议 报文携带的故障点信息, 并清除掉之前记录的故障点信息。  In the scenario of the faulty switchover, the preempted fault switchover is considered to have been canceled. In the ring network, only the APS protocol packet triggered by the fault switch with the highest priority is recorded. The first node records the fault point carried in the APS protocol packet. Information, and clear the previously recorded fault point information.
可选的, 当故障恢复后, 故障点两端的节点不再发送 APS协议报文。 如 果在预设时间内, 第一节点没有再次接收到携带相同故障点信息的 APS协议 报文, 则可以认为该故障点已经恢复正常, 可以将该故障点信息删除等。 可选的, 环网拓朴可以但不限于通过如下两种方式获得: Optionally, after the fault is rectified, the nodes at both ends of the fault point no longer send APS protocol packets. If the first node does not receive the APS protocol packet carrying the same fault point information again, the fault point may be restored to normal, and the fault point information may be deleted. Optionally, the ring topology can be obtained by, but not limited to, the following two methods:
第一种是静态方式。 在环网中的节点, 例如第一节点, 上配置环网拓朴。 例如, 在配置环网时, 在每个节点按照同样的方向 (如顺时针或者逆时针) 配置环网拓朴。 如图 5a所示, 假设环网一共 6个节点, 按照顺时针的方向进 行配置后, 每个节点上的环网拓朴分别为: 节点 1 :123456, 节点 2:234561 , 节点 3:345612, 节点 4~6可以以此类推, 不做赞述。 按照逆时针的方向进行 配置可以与顺时针的方向配置相反, 此处不做赘述。  The first is static. A ring topology is configured on a node in the ring network, such as the first node. For example, when configuring a ring, configure the ring topology in the same direction (such as clockwise or counterclockwise) on each node. As shown in Figure 5a, assuming that the ring network has a total of six nodes and configured in a clockwise direction, the ring network topology on each node is: node 1: 123456, node 2: 234561, node 3: 345612, Nodes 4~6 can be deduced by analogy. The configuration in the counterclockwise direction can be reversed from the clockwise direction configuration, and will not be described here.
第二种是动态方式。 第一节点通过与其他节点进行协议报文的交互, 获 得环网拓朴。 如图 5b所示, 可以包括:  The second is dynamic. The first node obtains the topology of the ring network by performing protocol packet exchange with other nodes. As shown in Figure 5b, it can include:
501、 第一节点接收第一类长径 APS协议报文, 其中, 第一类长径 APS 协议报文来自第一节点的相邻节点,目的节点是该第一节点,第一类长径 APS 协议报文携带源节点信息、 目的节点信息以及该第一类长径 APS协议报文经 过的节点个数。  501. The first node receives the first type of long-path APS protocol packet, where the first type of long-path APS protocol packet is from the neighboring node of the first node, the destination node is the first node, and the first type of long-path APS is used. The protocol packet carries the source node information, the destination node information, and the number of nodes through which the long-path APS protocol packet of the first type passes.
可选的, 上述长径 APS 协议 ^艮文中的格式可以如图 6 所示, 其中, Destination node ID为目的节点 ID , Source node ID为源节点 ID , Bridge Request 为桥接请求, Reserved为保留字段, 其中, 在保留字段中, 1~4 比特可以用 于记录该长径 APS协议报文经过的节点个数(NodeNum ) 。 当然, 如果 1~4 比特不够用, 可以多扩展几个比特用于记录 NodeNum, 此处不做限定。  Optionally, the format of the long-path APS protocol can be as shown in FIG. 6, where the destination node ID is the destination node ID, the source node ID is the source node ID, the Bridge Request is the bridge request, and the Reserved is the reserved field. In the reserved field, 1~4 bits can be used to record the number of nodes (NodeNum) through which the long-path APS protocol packet passes. Of course, if 1~4 bits are not enough, you can expand several bits to record NodeNum, which is not limited here.
502、 根据第一类长径 APS协议报文经过的节点个数, 确定环网中的节 点数量。  502. Determine the number of nodes in the ring network according to the number of nodes through which the long-path APS protocol packet passes.
举例来说明, 以图 5a所示的环网结构为例, 节点 4向其相邻节点 3发送 长径 APS协议报文, 当该长径 APS协议报文到达目的节点 3时, APS协议 报文的保留字段中记录的节点数量为 5 , 则节点 3能够确定, 除节点 3之夕卜, 环网上还包括 5个节点。  For example, the ring network structure shown in FIG. 5a is used as an example. Node 4 sends a long-path APS protocol packet to its neighboring node 3. When the long-path APS protocol packet arrives at the destination node 3, the APS protocol packet is sent. The number of nodes recorded in the reserved field is 5, and node 3 can determine that, in addition to node 3, the ring network also includes 5 nodes.
503、 第一节点发送和 /或接收第二类长径 APS协议报文, 记录其中携带 的源节点信息和目的节点信息; 其中, 第二类长径 APS协议报文携带源节点 信息、 目的节点信息以及该第二类长径 APS协议报文经过的节点个数, 区别 于第一类长径 APS协议报文,第二类长径 APS协议报文的目的节点不是所述 第一节点, 而是环网中除第一节点之外的其他节点。  503. The first node sends and/or receives the second type of long-path APS protocol packet, and records the source node information and the destination node information. The second type of long-path APS protocol packet carries the source node information and the destination node. The information and the number of nodes passing through the second-length long-path APS protocol packet are different from the first-class long-path APS protocol packet, and the destination node of the second-type long-path APS protocol packet is not the first node. It is a node other than the first node in the ring network.
可选的, 当是第一节点发送第二类长径 APS协议报文的情况时, 第二类 长径 APS协议报文的源节点是第一节点, 目的节点是所述第一节点的相邻节 点; 当是第一节点接收第二类长径 APS协议报文的情况时, 第二类长径 APS 协议报文的源节点是环网中除了所述第一节点的其他节点, 目的节点为其他 节点的相邻节点。 Optionally, when the first node sends the second type long path APS protocol packet, the second type The source node of the long-path APS protocol packet is the first node, and the destination node is the neighboring node of the first node; when the first node receives the second-class long-path APS protocol packet, the second type is long. The source node of the path APS protocol packet is other nodes in the ring network except the first node, and the destination node is a neighboring node of other nodes.
当第一节点接收到来自其他节点的第二类长径 APS协议报文时, 第一节 点将第二类长径 APS协议报文经过的节点个数加 1后向下一个节点传递该第 二类长径 APS协议报文。  When the first node receives the second type long path APS protocol packet from the other node, the first node adds the number of nodes through which the second type long path APS protocol packet passes and then passes the second node to the next node. Class long path APS protocol packets.
504、 第一节点根据确定的环网中的节点数量, 上述第一类长径 APS报 文以及第二类长径 APS协议报文携带的源节点信息和目的节点信息, 确定环 网拓 4卜。  504. The first node determines, according to the determined number of nodes in the ring network, the source node information and the destination node information carried in the first type long path APS packet and the second type long path APS protocol packet, and determines the ring network extension 4 .
由于第二类长径 APS协议报文的目的节点和源节点是相邻的, 因此, 如 果第一节点接收到环网中所有其他节点发送的长径 APS协议报文, 便能够通 过其中携带的源节点信息和目的节点信息, 确定环网拓朴。  The destination node and the source node of the second type of long-path APS protocol packets are adjacent. Therefore, if the first node receives the long-path APS protocol packet sent by all other nodes in the ring network, the first node can carry the long-path APS protocol packet. The source node information and the destination node information determine the ring topology.
举例来说, 依然参见图 5a所示的环网结构, 以节点 3为例, 当节点 3确 定, 环网中除自身之外, 还包括 5个节点之后, 便可以知道该环网中, 一共 有 6个节点。  For example, still refer to the ring network structure shown in FIG. 5a. Taking node 3 as an example, when node 3 determines that the ring network includes five nodes in addition to itself, it can be known in the ring network. There are 6 nodes.
因此, 节点 3会接收到这样的第一类长径 APS协议报文:  Therefore, node 3 receives such a long-path APS protocol message of the first type:
节点 2在逆时针方向上发送给节点 3的长径 APS报文(2, 3 ) , 以及 节点 4在顺时针方向上发送给节点 3的长径 APS协议报文(4, 3 ) 。 节点 3还会发送和 /或接收到这样的第二类长径 APS协议报文: 节点 1在逆时针方向上发送给节点 2的长径 APS协议报文(1 , 2 ) , 节 点 3在顺时针方向上发送给节点 2的长径 APS协议报文(3 , 2 ) ;  The long-path APS message (2, 3) sent by node 2 to node 3 in the counterclockwise direction, and the long-path APS protocol message (4, 3) sent by node 4 to node 3 in the clockwise direction. Node 3 also sends and/or receives such a long-path APS protocol message of the second type: Node 1 sends a long-path APS protocol message (1, 2) to node 2 in a counterclockwise direction, and node 3 is in the shun Long-path APS protocol message (3, 2) sent to node 2 in the clockwise direction;
节点 6在逆时针方向上发送节点 1的长径 APS协议 ^艮文(6 , 1 ) , 节点 2在顺时针方向上发送给节点 1的长径 APS协议 ^艮文(2 , 1 ) ;  Node 6 transmits the long-path APS protocol of node 1 in the counterclockwise direction (6, 1), and the long-path APS protocol sent by node 2 to node 1 in the clockwise direction ^2 (1, 1);
节点 5在逆时针方向上发送给节点 6的长径 APS协议报文(5 , 6 ) , 节 点 1在顺时针方向上发送给节点 6的长径 APS协议 ^艮文( 1 , 6 ) ;  The long-path APS protocol message (5, 6) sent by the node 5 to the node 6 in the counterclockwise direction, and the long-path APS protocol sent by the node 1 in the clockwise direction to the node 6 (1, 6);
节点 4在逆时针方向上发送给节点 5的长径 APS协议报文( 4,5 ) , 节点 6在顺时针方向上发送给节点 5的长径 APS协议 ^艮文( 6,5 ) ;  The long-path APS protocol message (4, 5) sent by the node 4 to the node 5 in the counterclockwise direction, and the long-path APS protocol (6, 5) sent by the node 6 to the node 5 in the clockwise direction;
节点 3在逆时针方向上发送给节点 4的长径 APS协议报文( 3,4 ) , 节点 5在顺时针方向上发送给节点 4的长径 APS协议 ^艮文( 5,4 ) 。 根据环网中的节点数量, 第一节点能够知道在某一个方向上(例如, 顺 时针方向) , 是否已经发送或者接收到了所有的第一类长径 APS协议报文和 第二类长径 APS协议报文,如果是,则能够根据第一类长径 APS报文以及第 二类长径 APS协议报文携带的源节点信息和目的节点信息, 确定环网拓朴。 例如, 节点 3对上述源节点、 目的节点信息进行记录, 便可以得到如下信息: 顺时针方向上: (6, 5) , (1, 6) , (2, 1 ) , (3, 2) ...... , 而逆时针 方向上: (2, 3) , (1, 2) , (6, 1 ) , (5, 6) ......。 由此, 节点 3可 以确定该环网拓朴在顺时针方向上为 345612, 而逆时针方向上为 321654。 The node 3 transmits the long-path APS protocol message (3, 4) to the node 4 in the counterclockwise direction, and the node 5 transmits the long-path APS protocol (5, 4) to the node 4 in the clockwise direction. According to the number of nodes in the ring network, the first node can know whether all the first type long path APS protocol messages and the second type long path APS have been sent or received in a certain direction (for example, clockwise direction). The protocol packet, if yes, can determine the ring topology based on the source node information and the destination node information carried in the first type long path APS message and the second type long path APS protocol message. For example, the node 3 records the source node and the destination node information, and the following information can be obtained: Clockwise: (6, 5), (1, 6), (2, 1), (3, 2). ..... , and counterclockwise: (2, 3), (1, 2), (6, 1), (5, 6) .... Thus, node 3 can determine that the ring topology is 345,612 in the clockwise direction and 321654 in the counterclockwise direction.
可选的, 如图 7所示, 在上述实施方式的基础上, 还可以包括:  Optionally, as shown in FIG. 7, based on the foregoing implementation manner, the method may further include:
505、分别根据第一方向上的长径 APS协议报文和第二方向上的长径 APS 协议报文, 确定环网拓朴, 如果二者不相同, 则说明环网的配置可能存在问 题, 生成告警。  505. Determine, according to the long-path APS protocol packet in the first direction and the long-path APS protocol packet in the second direction, the topology of the ring network. If the two are different, the configuration of the ring network may be faulty. Generate an alarm.
可选的, 第一节点根据获得的不可达节点信息, 在本地业务信息中确定 被压制的业务(101 ) , 可以包括:  Optionally, the first node determines, according to the obtained unreachable node information, the suppressed service (101) in the local service information, which may include:
第一节点根据所述不可达节点信息, 在本地业务信息中确定是否存在上 环节点和 /或下环节点为不可达节点的业务, 若存在, 则确定该业务为被压制 的业务。 其中, 本地业务信息至少可以包括: 业务方向, 以及业务上环节点 标识或者业务下环节点标识。  The first node determines, according to the unreachable node information, whether the service of the upper ring node and/or the lower ring node is an unreachable node in the local service information, and if yes, determines that the service is a suppressed service. The local service information may include at least: a service direction, and a service ring node identifier or a service ring node identifier.
可选的, 第一节点对已确定的被压制的业务进行压制 (102) , 可以是: 基于业务通道的压制。 第一节点根据获得的不可达节点信息以及本地业 务信息, 对每条被压制的业务进行压制。  Optionally, the first node suppresses the determined suppressed service (102), which may be: based on service channel suppression. The first node suppresses each suppressed service based on the obtained unreachable node information and local business information.
例如, 如果业务的下环节点不可达, 在此业务入接口转发层置无效标志 位, 丟弃此业务; 或者, 当第一节点是所述被压制业务的上环节点时, 可以 为该被压制的业务设置生存时间(英文全称为: Time To Live,简称为: TTL), 其中, 所述生存时间小于或者等于预定的 TTL阔值。 通过设置被压制业务的 For example, if the lower ring node of the service is unreachable, the service inbound forwarding layer sets an invalid flag bit to discard the service; or, when the first node is the upper ring node of the suppressed service, the The service life of the suppressed service set (English term: Time To Live, referred to as: TTL), wherein the lifetime is less than or equal to a predetermined TTL threshold. By setting up the business to be suppressed
TTL, 能够限制被压制业务的流量在环网中的传输范围, 降低对其他可达业 务的影响。 TTL can limit the transmission range of the traffic of the suppressed service in the ring network and reduce the impact on other reachable services.
可选的, 上述 TTL阔值可以是如下几种数值中的任意一种:  Optionally, the foregoing TTL threshold may be any of the following values:
1、 业务方向上, 从被压制业务的上环节点到下环节点的跳数;  1. In the service direction, the hop count from the upper ring node of the suppressed service to the lower ring node;
2、 业务相反方向上, 从被压制业务的上环节点到下环节点的跳数; 3、 N+M, 其中, N为业务方向上从业务的上环节点到下环节点的跳数, M为环网中节点的数量; 2. In the opposite direction of the service, the number of hops from the upper ring node of the suppressed service to the lower ring node; 3. N+M, where N is the number of hops from the upper ring node to the lower ring node of the service in the service direction, and M is the number of nodes in the ring network;
4、 N+M-2, 可以适用于下环节点单点故障的场景。  4. N+M-2 can be applied to the scenario where the lower ring node has a single point of failure.
5、 2M, 可以适用于对网络环境要求较低的场景。  5, 2M, can be applied to scenarios that require less network environment.
如果业务的上环节点不可达, 则从此业务的出接口方向, 往下游方向发 送告警指示信号 (英文全称为: Alarm Indication Signal, 简称为: AIS )或者 前向缺陷指示 (英文全称为: Forward Defection Indicator, 简称为: FDI ) 。  If the upper ring node of the service is unreachable, send an alarm indication signal (English name: Alarm Indication Signal, AIS for short) or forward defect indication from the outgoing interface of the service (English full name: Forward Defection) Indicator, referred to as: FDI).
以图 8为例, 4叚设业务 1、 2、 4均在节点 1进入环网 (节点 1为上环节 点) , 业务 1和 4在节点 3离开环网 (节点 3为业务 1和 4的下环节点) , 业务 2在节点 4离开环网 (节点 4为业务 2的下环节点) ; 业务 3在节点 2 进入环网, 在节点 1离开环网 (节点 2为业务 3的上环节点, 节点 1为业务 3的下环节点) , 则在节点 1 , 本地业务信息可以表示为表 1所示的内容: 表 1  Taking Figure 8 as an example, 4, 2, 4 are all entering the ring network at node 1 (node 1 is the upper ring node), and services 1 and 4 are leaving the ring network at node 3 (node 3 is services 1 and 4) The lower ring node), the service 2 leaves the ring network at node 4 (node 4 is the lower ring node of service 2); service 3 enters the ring network at node 2, and leaves the ring network at node 1 (node 2 is the upper ring node of service 3) , node 1 is the lower ring node of service 3), then at node 1, the local service information can be expressed as the content shown in Table 1: Table 1
Figure imgf000011_0001
Figure imgf000011_0001
其中, In代表上环, Out代表下环; Rw代表工作环通道 ( Ring working ) , Rp代表保护环通道 ( Ring protecting ) 。  Among them, In represents the upper ring, Out represents the lower ring; Rw represents the ring working, and Rp represents the ring protecting.
如果节点 1获得的不可达节点信息为节点 3 , 那么, 节点 1确定, 业务 1 和业务 4为被压制的业务。 由于节点 3是业务 1和 4的下环节点, 因此, 节 点 1可以将接收到的业务 1和 4的流量丟弃掉, 例如, 可以在业务 1和 4入 接口转发层置无效标识, 从而接收到的业务 1和 4的流量都会被丟弃。  If the unreachable node information obtained by the node 1 is the node 3, then the node 1 determines that the service 1 and the service 4 are the suppressed services. Since the node 3 is the lower ring node of the services 1 and 4, the node 1 can discard the traffic of the received services 1 and 4, for example, the invalidity identifier can be set in the forwarding interface of the service 1 and 4, thereby receiving Traffic to services 1 and 4 will be discarded.
可选的, 第一节点对已确定的被压制的业务进行压制 ( 102 )还可以是: 基于环通道的压制。 第一节点根据被压制的业务, 确定所述被压制的业 务对应的环通道(工作和保护通道) , 对通过被压制的业务对应的环通道传 输的业务进行压制。 例如, 可以在被压制的业务对应的环通道转发层设置无 效标识, 则转发至被压制的业务对应的环通道的业务均会被丟弃。 相对于基于业务通道的压制方式,基于环通道的压制方式处理力度更大, 在较大业务量上同一环通道时, 处理效率更优。 Optionally, the first node suppresses the determined suppressed service (102), which may also be: ring channel based suppression. The first node determines the ring channel (working and protection channel) corresponding to the suppressed service according to the suppressed service, and suppresses the service transmitted by the ring channel corresponding to the suppressed service. For example, an invalid identifier may be set in the ring-channel forwarding layer corresponding to the service to be suppressed, and the service that is forwarded to the ring channel corresponding to the suppressed service is discarded. Compared with the service channel-based suppression mode, the ring channel-based suppression method is more powerful, and the processing efficiency is better when the same ring channel is larger in traffic.
可选的, 上述实施例中涉及的环网, 可以是 MPLS环网, 或者^ ^于其 他协议的环网, 例如, 弹性分组环(英文全称为: Resilient Packet Ring, 简称 为: RPR ) , 本发明的实施例对此不做限定。  Optionally, the ring network involved in the foregoing embodiment may be an MPLS ring network, or a ring network of other protocols, for example, an elastic packet ring (English full name: Resilient Packet Ring, referred to as: RPR), The embodiment of the invention does not limit this.
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分可 以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可读取 存储介质中。 该程序在执行时, 执行包括上述各方法实施例的; 而前述的存 储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  One of ordinary skill in the art will appreciate that all or a portion of implementing the various method embodiments described above can be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the method includes the above method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
本发明实施例提供的基于环网保护的业务处理方法, 通过对不可达的业 务进行压制, 避免占用额外保护通道带宽, 最小程度降低对其他可达业务的 影响。  The ring network protection-based service processing method provided by the embodiment of the present invention suppresses the unreachable service, avoids occupying additional protection channel bandwidth, and minimizes the impact on other reachable services.
本发明的另一实施例提供的一种网络设备, 该网络设备可以是上述方法 实施方式中所说的第一节点, 因此, 该网络设备能够执行上述方法实施例中 的描述的部分或者全部。  Another embodiment of the present invention provides a network device, which may be the first node in the foregoing method embodiment. Therefore, the network device can perform part or all of the description in the foregoing method embodiments.
如图 9所示, 该网络设备可以包括: 获得模块 900、 确定模块 901和压 制模块 902。 其中, 获得模块 900用于获得不可达节点信息, 并将不可达节 点信息发送给确定模块 901 ; 确定模块 901用于根据获得模块 900获得的不 可达节点信息, 在本地业务信息中确定被压制的业务, 并将已确定的被压制 的业务发送给压制模块 902; 压制模块 902用于对确定模块 901确定的被压 制的业务进行压制。  As shown in FIG. 9, the network device may include: an obtaining module 900, a determining module 901, and a pressing module 902. The obtaining module 900 is configured to obtain the unreachable node information, and send the unreachable node information to the determining module 901. The determining module 901 is configured to determine, according to the unreachable node information obtained by the obtaining module 900, the suppressed in the local service information. The service sends the determined suppressed service to the pressing module 902; the pressing module 902 is configured to suppress the suppressed service determined by the determining module 901.
可选的, 如图 10所示, 上述获得模块 900具体可以包括: 第一查找单元 900a, 第二查找单元 900b和获得单元 900c。 其中, 第一查找单元 900a用于 从所述网络设备自身开始, 按照环网中的第一方向, 查找到第一故障节点, 并将查找到的第一故障节点发送给第二查找单元 900b以及获得单元 900c;第 二查找单元 900b用于从第一故障节点开始, 按照第二方向查找故障节点, 直 到在第二方向上查找到第二故障节点,将第二故障节点发送给获得单元 900c, 其中, 第二方向为第一方向的相反方向; 获得单元 900c用于根据第一查找单 元 900a和第二查找单元 900b发送的信息, 获得不可达节点信息, 其中, 在 第一方向上, 在第一故障节点和第二故障节点之间的节点为不可达节点。 其 中, 第一故障节点为在第一方向上首次查找的故障节点, 第二故障节点为在 第二方向上首次查找到的故障节点。 Optionally, as shown in FIG. 10, the obtaining module 900 may specifically include: a first searching unit 900a, a second searching unit 900b, and an obtaining unit 900c. The first searching unit 900a is configured to start from the network device itself, find the first faulty node according to the first direction in the ring network, and send the found first faulty node to the second searching unit 900b and The obtaining unit 900c is configured to: after the first faulty node, search for the faulty node according to the second direction, until the second faulty node is found in the second direction, and send the second faulty node to the obtaining unit 900c, The second direction is the opposite direction of the first direction. The obtaining unit 900c is configured to obtain the unreachable node information according to the information sent by the first searching unit 900a and the second searching unit 900b, where, in the first direction, in the first The node between a faulty node and the second faulty node is an unreachable node. Its The first faulty node is a faulty node that is first searched in the first direction, and the second faulty node is a faulty node that is first found in the second direction.
可选的, 如图 11所示, 获得模块 900还可以包括: 拓朴获得单元 900d, 用于获得环网拓朴; 以及, 故障点信息获得单元 900e, 用于获得故障点信息。 进一步可选的, 第一查找单元 900a以及第二查找单元 900b可以根据该拓朴 获得单元 900d获得的环网拓朴和故障点信息获得单元 900e获得的故障点信 息查找第一故障节点和第二故障节点。  Optionally, as shown in FIG. 11, the obtaining module 900 may further include: a topology obtaining unit 900d, configured to obtain a ring topology; and a fault point information obtaining unit 900e, configured to obtain fault point information. Further, the first searching unit 900a and the second searching unit 900b may search for the first fault node and the second according to the fault point information obtained by the ring topology and the fault point information obtaining unit 900e obtained by the topology obtaining unit 900d. Faulty node.
可选的, 如图 12所示, 故障点信息获得单元 900e可以包括: 接收子单 元 900el , 用于接收故障点的相邻节点发送的 APS协议报文, 该 APS协议报 文中携带有故障点信息; 获得子单元 900e2,用于从接收子单元 900el接收到 的 APS协议报文中获得故障点信息; 发送子单元 900e3 , 用于将获得子单元 900e2获得的故障点信息发送给第一查找单元 900a和第二查找单元 900b。  Optionally, as shown in FIG. 12, the fault point information obtaining unit 900e may include: a receiving subunit 900el, configured to receive an APS protocol packet sent by a neighboring node of the fault point, where the APS protocol packet carries a fault point. The obtaining sub-unit 900e2 is configured to obtain the fault point information from the APS protocol message received by the receiving sub-unit 900el. The sending sub-unit 900e3 is configured to send the fault point information obtained by the obtaining sub-unit 900e2 to the first searching unit. 900a and second lookup unit 900b.
可选的,如图 13所示,拓朴获得单元 900d可以包括:静态子单元 900dl , 用于静态配置环网拓朴; 或者, 动态子单元 900d2 , 用于通过与环网中的其 他节点进行协议报文的交互, 获得环网拓朴。 处于简便的考虑, 图 13中同时 示出了上述两个子单元。  Optionally, as shown in FIG. 13, the topology obtaining unit 900d may include: a static subunit 900dl for statically configuring the ring topology; or a dynamic subunit 900d2 for performing with other nodes in the ring network. The interaction of protocol packets obtains the topology of the ring network. For the sake of simplicity, the above two subunits are shown in Fig. 13 at the same time.
可选的, 如图 14所示, 动态子单元 900d2可以包括:  Optionally, as shown in FIG. 14, the dynamic subunit 900d2 may include:
第一处理子单元 900d2a, 用于接收第一类长径 APS协议报文, 将所述第 一类长径 APS协议报文经过的节点个数发送给节点数量确定子单元 900d2b; 其中, 所述第一类长径 APS协议报文来自该网络设备的相邻节点, 目的节点 是该网络设备自身, 所述第一类长径 APS协议报文携带源节点信息、 目的节 点信息以及该第一类长径 APS协议报文经过的节点个数;  The first processing sub-unit 900d2a is configured to receive the first-type long-path APS protocol packet, and send the number of nodes through which the first-type long-path APS protocol packet passes to the node number determining sub-unit 900d2b. The first type of long-path APS protocol packet is from the neighboring node of the network device, and the destination node is the network device itself, and the first-type long-path APS protocol packet carries the source node information, the destination node information, and the first class. The number of nodes through which the long-path APS protocol packet passes;
节点数量确定子单元 900d2b,用于根据第一处理子单元 900d2a发送的第 一类长径 APS协议报文经过的节点个数, 确定环网中的节点数量, 并将已确 定的环网中的节点数量发送给环网拓朴确定子单元;  The node number determining sub-unit 900d2b is configured to determine the number of nodes in the ring network according to the number of nodes through which the first-type long-path APS protocol packet sent by the first processing sub-unit 900d2a passes, and determine the number of nodes in the ring network. The number of nodes is sent to the ring topology determining subunit;
第二处理子单元 900d2c, 用于发送和 /或接收第二类长径 APS协议报文, 记录第二类 APS协议报文携带的源节点信息和目的节点信息, 将第二类长径 APS协议报文中携带的源节点信息和目的节点信息发送给环网拓朴确定子单 元 900d2d; 其中, 第二类长径 APS协议报文携带源节点信息、 目的节点信息 以及该第二类长径 APS 协议报文经过的节点个数, 区别于第一类长径 APS 协议报文, 第二类长径 APS协议报文的目的节点不是所述网络设备; 环网拓朴确定子单元 900d2d, 用于根据接收到的环网中的节点数量, 以 及第一类长径 APS协议报文和第二类长径 APS协议报文中携带的源节点信息 和目的节点信息, 确定环网拓朴。 The second processing sub-unit 900d2c is configured to send and/or receive the second-type long-path APS protocol packet, and record the source node information and the destination node information carried in the second type of APS protocol packet, and the second type long-path APS protocol is used. The source node information and the destination node information carried in the packet are sent to the ring topology determining subunit 900d2d. The second type long path APS protocol packet carries the source node information, the destination node information, and the second type long path APS. The number of nodes through which the protocol packet passes is different from the first type long path APS. The protocol packet, the destination node of the second type long path APS protocol packet is not the network device; the ring topology determining subunit 900d2d is configured to use the number of nodes in the received ring network, and the first type of long path The source node information and the destination node information carried in the APS protocol packet and the second-class long-path APS protocol packet determine the ring topology.
可选的, 上述确定模块 901具体用于: 根据不可达节点信息, 在本地业 务信息中确定是否存在上环节点和 /或下环节点为不可达节点的业务; 若存 在, 则确定该业务为被压制的业务。  Optionally, the determining module 901 is specifically configured to: determine, according to the unreachable node information, whether the service of the upper ring node and/or the lower ring node is an unreachable node in the local service information; if yes, determine that the service is Suppressed business.
可选的, 如图 15所示, 上述压制模块 902包括: 第一压制单元 902a, 用 于基于业务通道对已确定的被压制的业务进行压制; 或者, 第二压制单元 902b, 用于基于环通道对已确定的被压制的业务进行压制。 处于简便的考虑, 图 15中同时示出了上述两个单元。  Optionally, as shown in FIG. 15, the pressing module 902 includes: a first pressing unit 902a, configured to suppress the determined suppressed service based on the service channel; or, the second pressing unit 902b, is configured to be based on the ring The channel suppresses the determined suppressed business. For the sake of simplicity, the above two units are shown simultaneously in FIG.
可选的, 如果业务的下环节点不可达, 则第一压制单元 902a具体用于: 在被压制的业务入接口转发层置无效标志位, 丟弃被压制的业务; 或者, 为 该被压制的业务设置 TTL, 其中, 所述 TTL小于或者等于预定的 TTL阔值; 如果业务的上环节点不可达, 则第一压制单元 902a用于: 从被压制的业务的 出接口方向, 向下游发送告警指示信息 AIS或者前向缺陷指示 FDI。  Optionally, if the lower ring node of the service is unreachable, the first suppression unit 902a is specifically configured to:: put an invalid flag on the reversed service inbound interface, discard the suppressed service; or, for the The TTL of the service is set, wherein the TTL is less than or equal to a predetermined TTL threshold; if the upper ring node of the service is unreachable, the first suppression unit 902a is configured to: send the downstream from the outgoing interface direction of the suppressed service The alarm indication information AIS or the forward defect indication FDI.
可选的, 第二压制单元 902b具体用于: 根据被压制的业务, 确定被压制 的业务对应的环通道, 对通过环通道传输的业务进行压制。 一种实施方式下, 第二压制单元 902b通过在环通道转发层置无效标识,丟弃转发至环通道的业 务的方式对环通道传输的业务进行压制。  Optionally, the second pressing unit 902b is specifically configured to: determine, according to the suppressed service, a ring channel corresponding to the suppressed service, and suppress the service transmitted through the ring channel. In an embodiment, the second pressing unit 902b suppresses the traffic transmitted by the ring channel by disposing the invalid identifier in the ring channel forwarding layer and discarding the service forwarded to the ring channel.
图 16为本发明一个实施例提供的网络设备的结构示意图,如图 16所示, 该网络设备包括处理器(processor ) 1601。 其中, 处理器 1601用于获得不可 达节点信息, 并才艮据不可达节点信息在本地业务信息中确定被压制的业务, 对已确定的被压制的业务进行压制。  FIG. 16 is a schematic structural diagram of a network device according to an embodiment of the present invention. As shown in FIG. 16, the network device includes a processor 1601. The processor 1601 is configured to obtain the unreachable node information, and determine the suppressed service in the local service information according to the unreachable node information, and suppress the determined suppressed service.
可选的, 该处理器 1601可以通过如下方式获得不可达节点信息: 从处理 器 1601所在网络设备自身开始, 按照环网中的第一方向, 查找故障节点; 在 第一方向上查找到第一故障节点后, 从第一故障节点开始, 按照第二方向查 找故障节点, 直到在第二方向上查找到第二故障节点, 第二方向为第一方向 的相反方向; 在第一方向上, 从第一故障节点开始到第二故障节点, 之间的 节点为不可达节点。 其中, 第一故障节点为在第一方向上首次查找到的故障 节点, 第二故障节点为在第二方向上首次查找到的故障节点。 Optionally, the processor 1601 can obtain the unreachable node information by: starting from the network device itself where the processor 1601 is located, searching for the faulty node according to the first direction in the ring network; finding the first in the first direction After the faulty node, starting from the first faulty node, searching for the faulty node according to the second direction until the second faulty node is found in the second direction, the second direction is the opposite direction of the first direction; in the first direction, from the first direction The node between the first fault node and the second fault node is an unreachable node. The first faulty node is the fault that is first found in the first direction. The node, the second fault node is a fault node that is first found in the second direction.
可选的, 处理器 1601 可以根据根据环网拓朴和故障点信息查找故障节 点。  Optionally, the processor 1601 can find the fault node according to the topology and fault point information of the ring network.
可选的, 如图 17所示, 该网络设备还可以包括: 接收器 1602, 用于接 收故障点的相邻节点发送的自动保护倒换 APS协议 ^艮文,该 APS协议 文中 携带有故障点信息; 相应的, 处理器 1601根据接收器 1602中接收到的 APS 协议报文获得故障点信息。  Optionally, as shown in FIG. 17, the network device may further include: a receiver 1602, configured to receive an automatic protection switching APS protocol sent by a neighboring node of the fault point, where the APS protocol text carries the fault point information. Correspondingly, the processor 1601 obtains fault point information according to the APS protocol message received in the receiver 1602.
可选的, 如图 18所示, 该网络设备还可以包括: 发送器 1603 , 用于与 接收器 1602配合实现与环网中其他节点的协议报文交互,从而在处理器 1601 中获得环网拓朴。  Optionally, as shown in FIG. 18, the network device may further include: a transmitter 1603, configured to cooperate with the receiver 1602 to implement protocol packet interaction with other nodes in the ring network, thereby obtaining a ring network in the processor 1601. Topology.
可选的, 如图 19所示, 该网络设备还可以包括: 存储器 1604, 用于对 接收器 1602接收到的环网拓朴和 /或处理器 1601获得的环网拓朴进行保存。  Optionally, as shown in FIG. 19, the network device may further include: a memory 1604, configured to save the ring topology received by the receiver 1602 and/or the ring topology obtained by the processor 1601.
例如, 接收器 1602接收第一类长径自动保护倒换 APS协议报文, 其中, 第一类长径 APS协议报文来自该网络设备的相邻节点, 目的节点是该网络设 备, 第一类长径 APS协议报文携带源节点信息、 目的节点信息以及该第一类 长径 APS协议报文经过的节点个数; 处理器 1601根据第一类长径 APS协议 报文经过的节点个数, 确定环网中的节点数量; 接收器 1602发送和 /或接收 第二类长径 APS协议报文,记录第二类长径 APS协议报文携带的源节点信息 和目的节点信息; 其中, 第二类长径 APS协议报文的目的节点不是所述网络 设备; 第二类长径 APS协议报文携带源节点信息、 目的节点信息以及该第二 类长径 APS协议报文经过的节点个数; 处理器 1601根据环网中的节点数量, 以及第一类长径 APS协议报文和第二类长径 APS协议报文中携带的源节点信 息和目的节点信息, 确定环网拓朴。  For example, the receiver 1602 receives the first type of long-path automatic protection switching APS protocol packet, where the first type of long-path APS protocol packet is from a neighboring node of the network device, and the destination node is the network device, and the first type is long. The path APS protocol packet carries the source node information, the destination node information, and the number of nodes through which the first-class long-path APS protocol packet passes. The processor 1601 determines the number of nodes that the first-class long-path APS protocol packet passes. The number of nodes in the ring network; the receiver 1602 sends and/or receives the second type of long-path APS protocol packet, and records the source node information and the destination node information carried in the second-length long-path APS protocol packet; The destination node of the long-path APS protocol packet is not the network device; the second-type long-path APS protocol packet carries the source node information, the destination node information, and the number of nodes through which the second-length long-path APS protocol packet passes; The device 1601 is configured according to the number of nodes in the ring network, and the source node information and the destination node information carried in the first type long path APS protocol packet and the second type long path APS protocol packet. Ring network topology determination.
可选的, 处理器 1601可以才艮据所述不可达节点信息, 在本地业务信息中 确定是否存在上环节点和 /或下环节点为不可达节点的业务, 若存在, 则确定 所述业务为被压制的业务。  Optionally, the processor 1601 may determine, according to the unreachable node information, whether the upper ring node and/or the lower ring node are services of the unreachable node in the local service information, and if yes, determine the service. For the business being suppressed.
可选的,处理器 1601可以基于业务通道对已确定的被压制的业务进行压 制, 或者基于环通道对已确定的被压制的业务进行压制。  Optionally, the processor 1601 may compress the determined suppressed service based on the service channel, or suppress the determined suppressed service based on the ring channel.
例如, 基于业务通道对已确定的被压制的业务进行压制可以是处理器 1601根据获得的不可达节点信息, 以及本地业务信息, 对被压制的业务进行 压制。 如果业务的下环节点不可达, 处理器 1601在被压制的业务入接口转发 层置无效标志位, 丟弃被压制的业务; 如果业务的上环节点不可达, 处理器 1601从被压制的业务的出接口方向, 向下游发送告警指示信息 AIS或者前向 缺陷指示 FDI。 For example, the pressing of the determined suppressed service based on the service channel may be performed by the processor 1601 according to the obtained unreachable node information and the local service information, and the suppressed service is performed. Suppress. If the lower ring node of the service is unreachable, the processor 1601 sets an invalid flag bit on the reversed service inbound interface, and discards the suppressed service; if the upper ring node of the service is unreachable, the processor 1601 is from the suppressed service. The outgoing interface direction sends an alarm indication information AIS or a forward defect indication FDI to the downstream.
基于环通道对已确定的被压制的业务进行压制可以是处理器 1601 根据 被压制的业务, 确定被压制业务对应的环通道, 对通过环通道传输的业务进 行压制。 例如, 处理器 1601可以在环通道转发层置无效标识, 丟弃转发至环 通道的业务。  The suppression of the determined suppressed service based on the ring channel may be performed by the processor 1601 determining the ring channel corresponding to the suppressed service according to the suppressed service, and suppressing the service transmitted through the ring channel. For example, the processor 1601 may set an invalid identifier in the ring channel forwarding layer and discard the traffic forwarded to the ring channel.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权利要求 Rights request
1、 一种环网中业务处理方法, 其特征在于, 包括: 1. A business processing method in a ring network, characterized by including:
环网中的第一节点获得不可达节点信息; The first node in the ring network obtains unreachable node information;
根据获得的不可达节点信息, 在本地业务信息中确定被压制的业务; 对确定的被压制的业务进行压制。 According to the obtained unreachable node information, the suppressed service is determined in the local service information; and the determined suppressed service is suppressed.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一节点获得不可达 节点信息, 包括: 2. The method according to claim 1, characterized in that the first node obtains unreachable node information, including:
所述第一节点从自身开始, 按照环网中的第一方向, 查找故障节点; 在第一方向上查找到第一故障节点后, 从所述第一故障节点开始, 按照 第二方向查找故障节点, 直到在第二方向上查找到第二故障节点, 所述第二 方向为所述第一方向的相反方向; 所述第一故障节点为在第一方向上首次查 找到的故障节点,所述第二故障节点为在第二方向上首次查找到的故障节点; 在所述第一方向上, 从所述第一故障节点开始到所述第二故障节点, 之 间的节点为不可达节点。 The first node starts from itself and searches for the fault node in the first direction in the ring network; after finding the first fault node in the first direction, it starts from the first fault node and searches for the fault in the second direction. node, until the second faulty node is found in the second direction, the second direction is the opposite direction to the first direction; the first faulty node is the faulty node found for the first time in the first direction, so The second fault node is the fault node found for the first time in the second direction; in the first direction, starting from the first fault node to the second fault node, the nodes in between are unreachable nodes. .
3、 根据权利要求 2所述的方法, 其特征在于, 所述查找故障节点包括: 所述第一节点根据环网拓朴和故障点信息查找所述故障节点。 3. The method according to claim 2, characterized in that, the searching for a fault node includes: the first node searches for the fault node according to the ring network topology and fault point information.
4、 根据权利要求 3所述的方法, 其特征在于, 所述故障点信息通过如下 方法获得: 4. The method according to claim 3, characterized in that the fault point information is obtained by the following method:
所述第一节点接收所述故障点的相邻节点发送的自动保护倒换 APS协议 报文, 所述 APS协议报文中携带有所述故障点信息。 The first node receives an automatic protection switching APS protocol message sent by a node adjacent to the fault point, and the APS protocol message carries the fault point information.
5、 根据权利要求 3所述的方法, 其特征在于, 所述环网拓朴通过如下方 式获得: 5. The method according to claim 3, characterized in that the ring network topology is obtained in the following manner:
在所述第一节点上配置所述环网拓朴; 或者 Configure the ring network topology on the first node; or
所述第一节点通过与所述环网中的其他节点进行协议"¾文的交互 , 获得 所述环网拓朴。 The first node obtains the ring network topology by interacting with other nodes in the ring network through protocol text.
6、 根据权利要求 5所述的方法, 其特征在于, 所述第一节点通过与所述 环网中的其他节点进行协议 4艮文的交互, 获得所述环网拓朴, 包括: 6. The method according to claim 5, wherein the first node obtains the ring network topology by interacting with other nodes in the ring network through protocol text, including:
第一节点接收第一类长径自动保护倒换 APS协议报文, 其中, 所述第一 类长径 APS协议报文来自所述第一节点的相邻节点, 目的节点是所述第一节 点, 所述第一类长径 APS协议报文携带源节点信息、 目的节点信息以及该第 一类长径 APS协议报文经过的节点个数; The first node receives the first type of long path automatic protection switching APS protocol message, wherein the first type of long path APS protocol message comes from an adjacent node of the first node, and the destination node is the first node, The first type of long path APS protocol message carries source node information, destination node information and the third The number of nodes that a type of long-path APS protocol packet passes through;
根据所述第一类长径 APS协议报文经过的节点个数, 确定环网中的节点 数量; Determine the number of nodes in the ring network according to the number of nodes that the first type of long-path APS protocol message passes through;
所述第一节点发送和 /或接收第二类长径 APS协议报文,记录所述第二类 长径 APS协议报文携带的源节点信息和目的节点信息; 其中, 所述第二类长 径 APS协议 文携带源节点信息、目的节点信息以及该第二类长径 APS协议 报文经过的节点个数; 所述第二类长径 APS协议报文的目的节点为环网中除 第一节点之外的其他节点; The first node sends and/or receives a second type of long path APS protocol message, and records the source node information and destination node information carried in the second type of long path APS protocol message; wherein, the second type of long path APS protocol message carries The path APS protocol message carries source node information, destination node information and the number of nodes that the second type of long path APS protocol message passes through; the destination node of the second type of long path APS protocol message is the first node in the ring network except the first Nodes other than nodes;
第一节点根据所述环网中的节点数量, 所述第一类长径 APS协议报文和 所述第二类长径 APS协议报文中携带的源节点信息和目的节点信息, 确定环 网拓朴。 The first node determines the ring network based on the number of nodes in the ring network, the source node information and the destination node information carried in the first type of long path APS protocol message and the second type of long path APS protocol message. Topology.
7、 根据权利要求 1-6中任一项所述的方法, 其特征在于, 所述根据获得 的不可达节点信息, 在本地业务信息中确定被压制的业务, 包括: 7. The method according to any one of claims 1 to 6, characterized in that, determining the suppressed business in the local business information based on the obtained unreachable node information includes:
所述第一节点根据所述不可达节点信息, 在本地业务信息中确定是否存 在上环节点和 /或下环节点为不可达节点的业务, 若存在, 则确定所述业务为 被压制的业务。 The first node determines whether there is a service of the uplink node and/or the downlink node being an unreachable node in the local service information based on the unreachable node information, and if so, determines that the service is a suppressed service. .
8、 根据权利要求 1-7中任一项所述的方法, 其特征在于, 对已确定的被 压制的业务进行压制, 包括: 8. The method according to any one of claims 1 to 7, characterized in that, suppressing the determined suppressed business includes:
基于业务通道的压制, 或者基于环通道的压制。 Suppression based on business channels or suppression based on ring channels.
9、根据权利要求 8所述的方法,其特征在于,所述基于业务通道的压制, 包括: 9. The method according to claim 8, characterized in that the suppression based on traffic channels includes:
所述第一节点根据获得的不可达节点信息以及本地业务信息, 对被压制 的业务进行压制。 The first node suppresses the suppressed services based on the obtained unreachable node information and local service information.
10、 根据权利要求 9所述的方法, 其特征在于, 如果业务的下环节点不 可达, 所述对被压制的业务进行压制, 包括: 10. The method according to claim 9, characterized in that if the downstream node of the service is unreachable, suppressing the suppressed service includes:
第一节点在所述被压制的业务入接口转发层置无效标志位, 丟弃所述被 压制的业务; 或者,为所述被压制的业务设置生存时间 TTL,其中,所述 TTL 小于或者等于预定的 TTL阔值; The first node sets an invalid flag bit in the forwarding layer of the suppressed service incoming interface and discards the suppressed service; or, sets a time-to-live TTL for the suppressed service, wherein the TTL is less than or equal to Predetermined TTL threshold;
如果业务的上环节点不可达, 所述对被压制的业务进行压制, 包括: 第一节点从所述被压制的业务的出接口方向, 向下游发送告警指示信息 AIS或者前向缺陷指示 FDI。 If the uplink node of the service is unreachable, suppressing the suppressed service includes: the first node sends alarm indication information downstream from the outbound interface direction of the suppressed service. AIS or forward defect indication FDI.
11、 根据权利要求 8所述的方法, 其特征在于, 所述基于环通道的压制, 包括: 11. The method according to claim 8, characterized in that the suppression based on ring channels includes:
第一节点根据被压制的业务, 确定所述被压制业务对应的环通道, 对通 过所述环通道传输的业务进行压制。 The first node determines the ring channel corresponding to the suppressed service according to the suppressed service, and suppresses the service transmitted through the ring channel.
12、 根据权利要求 11所述的方法, 其特征在于, 对通过所述环通道传输 的业务进行压制, 包括: 12. The method according to claim 11, characterized in that: suppressing traffic transmitted through the ring channel includes:
在所述环通道转发层置无效标识, 丟弃转发至所述环通道的业务。 An invalid flag is set in the forwarding layer of the ring channel, and services forwarded to the ring channel are discarded.
13、 一种网络设备, 其特征在于, 包括: 13. A network device, characterized by including:
获得模块, 用于获得不可达节点信息, 并将所述不可达节点信息发送给 确定模块; Obtain module, used to obtain unreachable node information, and send the unreachable node information to the determination module;
所述确定模块, 用于根据所述获得模块获得的不可达节点信息, 在本地 业务信息中确定被压制的业务,并将已确定的被压制的业务发送给压制模块; 所述压制模块, 用于对所述确定模块确定的被压制的业务进行压制。 The determination module is configured to determine the suppressed services in the local service information based on the unreachable node information obtained by the obtaining module, and send the determined suppressed services to the suppression module; the suppression module is used Suppressing the suppressed services determined by the determination module.
14、根据权利要求 13所述的网络设备,其特征在于,所述获得模块包括: 第一查找单元, 用于从网络设备自身开始, 按照环网中的第一方向, 查 找到第一故障节点, 将所述第一故障节点发送给第二查找单元和获得单元; 其中, 所述第一故障节点为在第一方向上首次查找到的故障节点; 14. The network device according to claim 13, characterized in that the obtaining module includes: a first search unit, configured to start from the network device itself and search for the first fault node according to the first direction in the ring network. , sending the first fault node to the second search unit and acquisition unit; wherein, the first fault node is the fault node found for the first time in the first direction;
所述第二查找单元, 用于从所述第一故障节点开始, 按照第二方向查找 故障节点, 直到在第二方向上查找到第二故障节点, 将所述第二故障节点发 送给所述获得单元, 所述第二方向为所述第一方向的相反方向; 其中, 所述 第二故障节点为在第二方向上首次查找到的故障节点; The second search unit is configured to search for the fault node in the second direction starting from the first fault node until the second fault node is found in the second direction, and send the second fault node to the Obtaining unit, the second direction is the opposite direction to the first direction; wherein, the second fault node is the fault node found for the first time in the second direction;
所述获得单元, 用于根据第一查找单元和第二查找单元发送的信息, 获 得不可达节点信息, 其中, 在第一方向上, 在第一故障节点和第二故障节点 之间的节点为不可达节点。 The obtaining unit is configured to obtain unreachable node information according to the information sent by the first search unit and the second search unit, wherein in the first direction, the node between the first fault node and the second fault node is Unreachable node.
15、 根据权利要求 14所述的网络设备, 其特征在于, 所述获得模块还包 括: 15. The network device according to claim 14, characterized in that the obtaining module further includes:
拓朴获得单元, 用于获得环网拓朴; 以及, 故障点信息获得单元, 用于 获得故障点信息; The topology obtaining unit is used to obtain the ring network topology; and the fault point information obtaining unit is used to obtain the fault point information;
所述第一查找单元以及所述第二查找单元根据所述环网拓朴获得单元获 得的环网拓朴和所述故障点信息获得单元获得的故障点信息查找所述第一故 障节点和所述第二故障节点。 The first search unit and the second search unit obtain the The obtained ring network topology and the fault point information obtained by the fault point information obtaining unit are used to search for the first fault node and the second fault node.
16、 根据权利要求 15所述的网络设备, 其特征在于, 所述故障点信息获 得单元包括: 16. The network device according to claim 15, characterized in that the fault point information obtaining unit includes:
接收子单元, 用于接收故障点的相邻节点发送的自动保护倒换 APS协议 报文, 所述 APS协议报文中携带有所述故障点信息; The receiving subunit is configured to receive automatic protection switching APS protocol messages sent by adjacent nodes of the fault point, where the APS protocol message carries the fault point information;
获得子单元, 用于从所述接收子单元接收到的 APS协议报文中获得故障 点信息; Obtaining subunit, used to obtain fault point information from the APS protocol message received by the receiving subunit;
发送子单元, 用于将所述获得子单元获得的故障点信息发送给所述第一 查找单元和所述第二查找单元。 The sending subunit is used to send the fault point information obtained by the obtaining subunit to the first searching unit and the second searching unit.
17、 根据权利要求 15所述的网络设备, 其特征在于, 所述拓朴获得单元 包括: 17. The network device according to claim 15, characterized in that the topology obtaining unit includes:
静态子单元, 用于配置所述环网拓朴; 或者, Static subunit, used to configure the ring network topology; or,
动态子单元, 用于通过与环网中的其他节点进行协议 文的交互, 获得 所述环网拓朴。 The dynamic subunit is used to obtain the ring network topology by interacting with protocol documents with other nodes in the ring network.
18、 根据权利要求 17所述的网络设备, 其特征在于, 所述动态子单元包 括: 18. The network device according to claim 17, characterized in that the dynamic subunit includes:
第一处理子单元, 用于接收第一类长径 APS协议报文, 将所述第一类长 径 APS协议报文经过的节点个数发送给节点数量确定子单元; 其中, 所述第 一类长径 APS协议报文来自所述网络设备的相邻节点, 目的节点是所述网络 设备, 所述第一类长径 APS协议报文携带源节点信息、 目的节点信息以及该 第一类长径 APS协议报文经过的节点个数; The first processing subunit is configured to receive the first type of long-path APS protocol message, and send the number of nodes that the first type of long-path APS protocol message passes through to the node number determination subunit; wherein, the first The long-path APS protocol message comes from an adjacent node of the network device, and the destination node is the network device. The first-type long-path APS protocol message carries source node information, destination node information, and the first-type long-path APS protocol message. The number of nodes that APS protocol packets pass through;
节点数量确定子单元, 用于根据第一处理子单元发送的第一类长径 APS 协议报文经过的节点个数, 确定环网中的节点数量, 并将已确定的环网中的 节点数量发送给环网拓朴确定子单元; The node number determination subunit is used to determine the number of nodes in the ring network based on the number of nodes passed by the first type of long-path APS protocol message sent by the first processing subunit, and to determine the number of nodes in the ring network. Sent to the ring network topology determination subunit;
第二处理子单元,用于发送和 /或接收第二类长径 APS协议报文,记录所 述第二类 APS协议报文携带的源节点信息和目的节点信息, 将所述第二类长 径 APS协议报文中携带的源节点信息和目的节点信息发送给所述环网拓朴确 定子单元; 其中, 所述第二类长径 APS协议报文携带源节点信息、 目的节点 信息以及所述第二类长径 APS 协议报文经过的节点个数; 所述第二类长径 APS协议报文的目的节点为环网中除所述网络设备之外的其他节点; 所述环网拓朴确定子单元, 用于根据接收到的环网中的节点数量, 所述 第一类长径 APS协议报文和所述第二类长径 APS协议报文中携带的源节点信 息和目的节点信息, 确定环网拓朴。 The second processing subunit is used to send and/or receive the second type of long path APS protocol message, record the source node information and destination node information carried in the second type of APS protocol message, and convert the second type of long path APS protocol message. The source node information and destination node information carried in the long path APS protocol message are sent to the ring network topology determination subunit; wherein, the second type of long path APS protocol message carries source node information, destination node information and all The number of nodes that the second type long path APS protocol packet passes through; the second type long path The destination node of the APS protocol message is other nodes in the ring network except the network device; the ring network topology determination subunit is used to determine the first type according to the received number of nodes in the ring network. The source node information and destination node information carried in the long path APS protocol message and the second type of long path APS protocol message determine the ring network topology.
19、 根据权利要求 13-18 中任一项所述的网络设备, 其特征在于, 所述 确定模块具体用于: 根据所述不可达节点信息, 在本地业务信息中确定是否 存在上环节点和 /或下环节点为不可达节点的业务; 若存在, 则确定所述业务 为被压制的业务。 19. The network device according to any one of claims 13-18, characterized in that the determination module is specifically configured to: determine whether there is an uplink node in the local service information according to the unreachable node information and /Or the downstream node is a service of an unreachable node; if it exists, the service is determined to be a suppressed service.
20、 根据权利要求 13-19 中任一项所述的网络设备, 其特征在于, 所述 压制模块包括: 20. The network device according to any one of claims 13-19, characterized in that the suppression module includes:
第一压制单元, 用于基于业务通道对已确定的被压制的业务进行压制; 或者, The first suppression unit is used to suppress the determined suppressed services based on the service channel; or,
第二压制单元, 用于基于环通道对已确定的被压制的业务进行压制。 The second suppression unit is used to suppress the determined suppressed services based on the ring channel.
21、 根据权利要求 20所述的网络设备, 其特征在于, 所述第一压制单元 具体用于: 根据获得的不可达节点信息, 以及本地业务信息, 对被压制的业 务进行压制。 21. The network device according to claim 20, wherein the first suppression unit is specifically configured to: suppress suppressed services based on the obtained unreachable node information and local service information.
22、 根据权利要求 21所述的网络设备, 其特征在于, 如果业务的下环节 点不可达, 则所述第一压制单元具体用于在所述被压制的业务入接口转发层 置无效标志位, 丟弃所述被压制的业务; 或者, 为所述被压制的业务设置生 存时间 TTL, 其中, 所述 TTL小于或者等于预定的 TTL阔值 22. The network device according to claim 21, characterized in that, if the downstream node of the service is unreachable, the first suppression unit is specifically configured to set an invalid flag in the forwarding layer of the suppressed service incoming interface. , discard the suppressed service; or, set a survival time TTL for the suppressed service, wherein the TTL is less than or equal to a predetermined TTL threshold
如果业务的上环节点不可达, 则所述第一压制单元用于从所述被压制的 业务的出接口方向, 向下游发送告警指示信息 AIS或者前向缺陷指示 FDI。 If the uplink node of the service is unreachable, the first suppression unit is configured to send alarm indication information AIS or forward defect indication FDI downstream from the outbound interface direction of the suppressed service.
23、 根据权利要求 20所述的网络设备, 其特征在于, 所述第二压制单元 具体用于根据被压制的业务, 确定所述被压制的业务对应的环通道, 对通过 所述环通道传输的业务进行压制。 23. The network device according to claim 20, characterized in that the second suppression unit is specifically configured to determine the ring channel corresponding to the suppressed service according to the suppressed service, and transmit through the ring channel business is suppressed.
24、 根据权利要求 23所述的网络设备, 其特征在于, 所述第二压制单元 通过在所述环通道转发层置无效标识, 丟弃转发至所述环通道的业务的方式 对所述环通道传输的业务进行压制。 24. The network device according to claim 23, wherein the second suppression unit suppresses the ring channel by setting an invalid identifier in the ring channel forwarding layer and discarding the traffic forwarded to the ring channel. Channel transmission services are suppressed.
PCT/CN2013/072456 2012-06-11 2013-03-12 Service processing method and network equipment for ring network WO2013185497A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015516414A JP5903192B2 (en) 2012-06-11 2013-03-12 Service processing method and network device in ring network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210190002.2 2012-06-11
CN201210190002.2A CN102801596B (en) 2012-06-11 2012-06-11 Service processing method for ring network and network equipment

Publications (1)

Publication Number Publication Date
WO2013185497A1 true WO2013185497A1 (en) 2013-12-19

Family

ID=47200567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/072456 WO2013185497A1 (en) 2012-06-11 2013-03-12 Service processing method and network equipment for ring network

Country Status (3)

Country Link
JP (1) JP5903192B2 (en)
CN (1) CN102801596B (en)
WO (1) WO2013185497A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866009A (en) * 2021-01-04 2021-05-28 国网山东省电力公司青岛供电公司 Virtual network fault diagnosis method and device for integrated service station

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801596B (en) * 2012-06-11 2015-01-21 华为技术有限公司 Service processing method for ring network and network equipment
CN106302067A (en) * 2015-05-15 2017-01-04 中兴通讯股份有限公司 A kind of message processing method and device
CN106572024A (en) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 Method and apparatus for preventing flow storm caused by network shared ring protection
US10999186B2 (en) * 2017-01-04 2021-05-04 Mitsubishi Electric Corporation Transfer device and route addition method
CN110719181A (en) * 2018-07-12 2020-01-21 深圳富桂精密工业有限公司 Equipment abnormity warning system, method and computer readable storage medium
CN109905309A (en) * 2019-02-15 2019-06-18 广州市高科通信技术股份有限公司 A kind of consistent method of each node state of holding looped network and network node

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227370A (en) * 2008-02-05 2008-07-23 中兴通讯股份有限公司 Method for processing fault of transferring multi-protocol label switch sharing protection ring
CN101262403A (en) * 2007-03-05 2008-09-10 阿尔卡特朗讯 Method and device for supplying packet ring protection
CN101436952A (en) * 2007-11-14 2009-05-20 华为技术有限公司 Method for automatically configuring pressing table and network node equipment
CN101969382A (en) * 2010-09-25 2011-02-09 中兴通讯股份有限公司 Method and device for sharing service protection in mesh network
CN102801596A (en) * 2012-06-11 2012-11-28 华为技术有限公司 Service processing method for ring network and network equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4565751B2 (en) * 2001-01-16 2010-10-20 富士通株式会社 Transmission equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262403A (en) * 2007-03-05 2008-09-10 阿尔卡特朗讯 Method and device for supplying packet ring protection
CN101436952A (en) * 2007-11-14 2009-05-20 华为技术有限公司 Method for automatically configuring pressing table and network node equipment
CN101227370A (en) * 2008-02-05 2008-07-23 中兴通讯股份有限公司 Method for processing fault of transferring multi-protocol label switch sharing protection ring
CN101969382A (en) * 2010-09-25 2011-02-09 中兴通讯股份有限公司 Method and device for sharing service protection in mesh network
CN102801596A (en) * 2012-06-11 2012-11-28 华为技术有限公司 Service processing method for ring network and network equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866009A (en) * 2021-01-04 2021-05-28 国网山东省电力公司青岛供电公司 Virtual network fault diagnosis method and device for integrated service station

Also Published As

Publication number Publication date
CN102801596B (en) 2015-01-21
JP5903192B2 (en) 2016-04-13
CN102801596A (en) 2012-11-28
JP2015523793A (en) 2015-08-13

Similar Documents

Publication Publication Date Title
WO2013185497A1 (en) Service processing method and network equipment for ring network
JP5484590B2 (en) Method, device and system for processing service traffic based on pseudowire
JP4743201B2 (en) Packet ring network system, connection method between packet rings, and connection node between rings
JP4899959B2 (en) VPN equipment
JP4900878B2 (en) Ring network system, failure recovery method, failure detection method, node, and node program
KR102342286B1 (en) DCN message processing method, network device, and network system
US20150085638A1 (en) Multiprotocol label switching traffic engineering tunnel establishing method and device
US10110482B2 (en) Technique for network service availability
JP5801175B2 (en) Packet communication apparatus and method
US20080056142A1 (en) Test method for message paths in communications networks and redundant network arrangements
JP4167072B2 (en) Selective protection against ring topology
US20080137669A1 (en) Network of nodes
WO2011110118A2 (en) Fault detection method and system
EP2846498A1 (en) Label distribution method and device
WO2013071801A1 (en) Method, device and system for detecting multi-protocol label switching ring network
EP3217608B1 (en) Switchback delay methods and devices
WO2012149862A1 (en) Ring network failover method and apparatus
WO2008040203A1 (en) Method, system, and router for calculating the maximum transmission unit of the router output interface
WO2009092257A1 (en) Fault detection method and device for provider backbone transport network
WO2017128901A1 (en) Forwarding control method and device
JP5672836B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
WO2009067909A1 (en) A method, network node device and system for configuring a squelch table automatically
WO2008006318A1 (en) 1+1 service protection method in obs networks, switching node apparatus and service protection system
Zhang et al. A service protection mechanism impelemented on P4 by packet replication
JP2006279402A (en) Switching apparatus of communication route, method of switching communication route, and communication system

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: 13803904

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015516414

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13803904

Country of ref document: EP

Kind code of ref document: A1