WO2007128178A1 - A method and apparatus for separating the id unmatched message on the ring network - Google Patents

A method and apparatus for separating the id unmatched message on the ring network Download PDF

Info

Publication number
WO2007128178A1
WO2007128178A1 PCT/CN2006/003507 CN2006003507W WO2007128178A1 WO 2007128178 A1 WO2007128178 A1 WO 2007128178A1 CN 2006003507 W CN2006003507 W CN 2006003507W WO 2007128178 A1 WO2007128178 A1 WO 2007128178A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring
message
ring network
packet
node
Prior art date
Application number
PCT/CN2006/003507
Other languages
French (fr)
Chinese (zh)
Inventor
Xinyu Huang
Yanchun Liu
You Gao
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007128178A1 publication Critical patent/WO2007128178A1/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

Definitions

  • the present invention relates to the field of ring networks, and in particular, to a method and apparatus for stripping ring network ring identification mismatched messages.
  • RPR Silicon Packet Ring
  • SDH Serial Digital Hierarchy
  • the RPR technology provides flexible topology protection and switching. When the ring network fails, the switchover can be completed within 50ms to ensure that there are data paths between the nodes on both sides of the fault point.
  • the RPR ring network can support up to 255 nodes.
  • the format of the message is as shown in Figure 1:
  • the lifetime of the packet (ttl) is used to carry the lifetime of the packet.
  • the value of U1 should be greater than or equal to the number of hops to the destination node and less than or equal to the maximum number of nodes (255).
  • ttl is decremented by 1.
  • the packet is stripped from the ring network; the base control is used to carry the frame type, service type, and basic control information; da is used to carry the destination address (typically 48 bits); the source address (sa) is used.
  • the bearer source address typically 48 bits
  • the reference packet lifetime U1 Base
  • the extended control extended control
  • Hec used for bearer header verification
  • protocol type rotocol Type
  • service data unit is used to carry actual transmitted data
  • frame check fee is used to carry frame check Test sequence.
  • the RPR ring network consists of two rings inside and outside.
  • the inner ring is also called a ring
  • the outer ring is also called a ring.
  • the packet can be looped from any ring, usually to the ring up to the ring with the lowest number of hops, or up the ring from the specified ring.
  • the ring message contains the same ring ID information as the ring direction. If the message is from the ring 0 ring, it contains The information whose ring identifier is 0. If the packet is from the ring on the ring, it contains the information whose ring ID is 1. In addition, the packet is forwarded in a ring of the ring network.
  • each time a node arrives its destination address information is compared with the address information of the current node. If they are the same, they are stripped from the ring network (ie, the lower ring); if they are not the same, they are forwarded to the next node. , peel off from the ring network until reaching the destination node. If the message cannot reach the destination node, it will be stripped from the ring when it returns to the source node.
  • the message For multicast messages, each time a node arrives, the message will be received, and then forwarded to the next node. Eventually, the message is stripped from the ring when it reaches the source node. For example, as shown in FIG. 2, there are 7 nodes in the ring network, and data sent from the source node 2 to the destination node 5 arrives at the node 5 via the outer ring via node 3 and node 4.
  • the PS pa s s ed s our ce bit in the extended control information of the message indicates that the message passes through the source node from the opposite direction.
  • a fault occurs somewhere on the loop, it automatically wraps around the node near the fault, that is, the inner loop and the outer loop of the ⁇ are lapped together, and the loopback passes between the adjacent failed nodes through the protocol.
  • the node that performs automatic loopback is also called the wraparound node.
  • the first type The message is stripped of the source address ( sa ) on the ring network.
  • the packet carries the ring identification information indicating the direction in which the ring is originally located (that is, the source ring direction).
  • the protocol stipulates that the source address stripping only occurs in the source ring, but the source address stripping cannot be performed in the opposite ring direction. . That is, the packet from the ring on the ring 0 can only be stripped by the source address on the ring 0, and the packet from the ring on the ring can only be stripped by the source address on the ring.
  • the second type Whenever a node passes through a node on the ring network, U 1 is decremented by 1 and U 1 is reduced to 0, and the message is stripped from the ring network.
  • the protocol stipulates that when the message is wrapped back to the opposite direction, U 1 does not perform the subtraction 1 operation, and only performs the subtraction 1 operation in the source loop. Therefore, there will be some packets that are looped back to the opposite direction when the fault occurs, and are still transmitted in the opposite loop when the fault is recovered. These packets are different from the currently transmitted loop because the ring identifier is different from the currently transmitted loop.
  • FIG. 4 is a schematic diagram of the reason for generating a R i ng ID mismatch message.
  • the node 2 When there is a fault between the ring nodes 3 and 4, when WRAP is used for switching, the node 2 reaches the node 3 by the packet of the outer ring and then goes to the inner ring along the route indicated by the dotted line to continue forwarding. At this time, if the faults of the nodes 3 and 4 are eliminated, the data channels of the inner and outer rings are restored, and the subsequent packets from the outer ring of the outer ring of the node 2 reach the node 3 and then directly forward to the node 4 without going to the inner ring.
  • the data packets that have been bypassed to the inner ring cannot be returned to the outer ring when the data channel is restored, but continue to be forwarded in the inner ring. Because this part of the packet cannot return to its own ring, it will continue to forward in the inner ring and occupy the inner ring bandwidth.
  • a primary object of the present invention is to provide a method and apparatus for a peel ring identification mismatch message.
  • the packet can be stripped from the ring network instead of being circled on the ring.
  • the embodiment of the invention discloses a method for stripping ring network identifiers that do not match packets: If the preset modification conditions are met, the label information of the ring network packets flowing through If the ring network packet information that meets the requirements meets the preset stripping condition, the ring network packet is directly stripped from the ring network.
  • the embodiment of the invention discloses a device for stripping the RPR ring network ring identifier mismatching message, the device comprising a marking module, configured to modify the marking information of the ring network message flowing through when the preset modification condition is satisfied; a comparison module, configured to compare the ring network message information flowing through the preset stripping condition, and a message stripping module, configured to: when the comparison result of the comparison module is the same, the ring network message is Stripped on the ring.
  • the above technical solution shows that the marking information of the ring network packet is modified when the preset modification condition is satisfied; the marking information of the ring network packet can satisfy the preset stripping condition at a certain moment, and then When the preset stripping condition is satisfied, the ring network message can be directly stripped from the ring network.
  • the ring identifier of the ring network packet does not match the transmission ring direction of the packet, the ring identifier does not match the packet at a certain moment because the label information is modified when the preset modification condition is met.
  • the preset stripping condition is met, so that the ring identification mismatch message is stripped from the ring network and does not always circle on the ring network.
  • Figure 1 is a description of the format of the RPR temple text
  • FIG. 2 is a schematic diagram of a packet forwarding manner in a normal mode
  • Figure 3 is a schematic diagram of packet forwarding mode in Wrap switching mode
  • FIG. 4 is a schematic diagram of a reason for generating a R i ng I D mismatch message
  • Figure 5 is a flow chart of the method according to the first embodiment of the present invention.
  • Figure 6 is a flow chart of a method according to a second embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an embodiment of a stripping message device according to the present invention.
  • FIG. 5 is a flowchart of a first preferred embodiment of a method for identifying a mismatched message on a ring ring on a strip ring.
  • the RPR ring network is taken as an example for description, but those skilled in the art should recognize that the ring network of the present invention does not matter. To be limited thereto, the other aspects of the ring network having a similar working mode as the RPR can also be applied to the technical solution of the present invention.
  • the PS bit in the extended control information of the RPR ring network packet is 0 when the initial setting is set. (0 indicates that the packet does not pass through the source node in the opposite loop direction, that is, it is not bypassed; 1 indicates that the packet has passed in the opposite loop direction.
  • the source node is wraparound). After the ring network is restored from the wraparound protection mode to the normal mode, there is no time to return to the correct loop direction - the message that remains in the opposite loop will repeatedly pass through the source node. Further, by the execution of the following steps of the embodiment, the above-mentioned messages which are still in the opposite loop direction can be peeled off, so that the problem that they are always circled in the opposite loop direction does not occur.
  • Step 51 0 When the packet passes through a node on the RPR ring network, the source address of the packet is determined.
  • step 520 is performed; if not, step 550 is performed.
  • the source address is the same as the address of the node, it indicates that the source has passed its source node. If the source address of the packet is different from the address of the local node, it indicates that the current node is not the source node of the packet.
  • Step 520 Determine whether the ring identifier carried in the packet is the same as the current ring direction of the packet. If they are the same, go to step 560; if they are different, go to step 5 30.
  • Step 530 Determine whether the PS bit in the current extension control information of the ring identifier does not match is 1. If it is 1, then step 560 is performed; if it is not 1, step 540 is performed.
  • Step 540 Set the PS bit of the ring identifier mismatch message to 1. Thereafter, step 550 is performed. Setting the PS bit to 1 is used to record that the message passed the source node in the opposite direction.
  • Step 550 Continue forwarding the message to the next node.
  • step 540 the ring identifier mismatch packet is passed through the current source node in the opposite direction for the first time, so the forwarding continues to the next.
  • step 510 since the current node is not the source node of the message, the message is forwarded to the next node until the source node is reached, and may be stripped according to 560.
  • Step 560 Strip the message from the ring.
  • step 520 is entered from the present step, it is carried in packets with the packet ring identity is currently located in the same ring, and because the current node is the packet source node, the node in the current release paper Gen ⁇ 1.
  • step 530 the packet is sent out from the ring network at this time because the packet has passed through the source node for the second time in the opposite direction, that is, the packet is rotated on the ring network.
  • FIG. 6 is a flow chart of a second preferred embodiment of a method for identifying a mismatched message on a stripping ring network ring.
  • Step 610 When the packet passes through a node of the RPR ring network, it is determined whether the packet lifetime (ttl) of the packet is equal to 0. If it is equal to 0, step 660 is performed; if not equal to 0, step 620 is performed.
  • Step 62Q Determine whether the node is a wraparound node. If it is a wraparound node, step 630 is performed; if it is not around the node, step 640 is performed.
  • the wraparound node As mentioned above, when the ring network fails, the packets at the node near the fault will automatically loop back, and the node that performs automatic loopback is called the wraparound node. Therefore, two bypass nodes are generated during the fault, so this step is mainly used to identify the packets that have passed back to the node during the fault.
  • Step 630 Reset U1 of the message to 255. Thereafter, step 650 is performed.
  • Step 640 If the transmission ring of the packet is the same as the ring identifier carried in the packet, the ttl of the packet is first decremented by one, and then step 650 is performed.
  • Step 660 The message is directly stripped from the ring network. As long as the ttl of the message is equal to 0, the message is directly stripped from the ring network regardless of whether the transmission ring direction is the same as the message ring identifier.
  • ttl is decremented by one regardless of whether the transmission ring direction is the same as the message ring identifier. Therefore, even if the packet fails to return to the correct ring direction (that is, the ring direction matching the ring identifier carried by the packet), the message will be reduced to 0 in a short time, and then When TT1 is reduced to 0, it is stripped from the ring network, so that it does not always rotate in the opposite ring direction, saving the ring network bandwidth.
  • the present invention also discloses a device for stripping ring network ring identifier mismatching message, the device can be implemented by a software program or hardware, and is set in On the MAC (Medium Access Control) layer entity of the RPR protocol.
  • FIG. 7 is a schematic structural diagram of an apparatus for a ring-ring identification mismatch message on a stripping ring network according to the present invention.
  • the apparatus of this embodiment specifically includes a marking module 71, a comparison module 72, and a message stripping module 73, wherein the marking module
  • the method is configured to modify the label information of the ring network message that flows through when the preset modification condition is met; the comparison module 72 is configured to compare the ring network message information flowing through the preset stripping condition; the message stripping module 73 When the comparison result of the comparison module is the same, the ring network message is stripped from the ring network.
  • the comparison module 72 in the device is provided with a preset stripping condition: the ring identifier mismatch packet passes through the source node in the opposite loop direction, and the record information of the PS in the packet indicates that the packet has passed the source node in the opposite loop direction. Therefore, when the ring network message passes through the device, the comparison module 72 needs to compare the information of the message with the preset stripping condition. If the comparison result is consistent, the message stripping module is notified. The stripping module 7 3 strips the ring network message. If the result of the comparison module 7 2 is that the preset peeling condition is not satisfied, the processing is performed by the marking module 71.
  • the tag information described in the tag module 7 1 is: a status bit PS for recording whether the message passes through the source node in the opposite ring direction; the preset modification condition in the module is: the ring identifier does not match the temple text in the opposite ring Going up through the source node, and the record information of the PS in the message indicates that the message has not passed through the source node in the opposite loop. Further, the marking module 7 1 checks whether the recording information of the current PS in the packet satisfies the preset modification condition. If yes, the marking module 71 changes the PS in the packet to indicate that the packet has passed the source in the opposite loop. The node's record information is then forwarded to the next node. Thereafter, the same processing is performed by the apparatus of the present embodiment of the next node.
  • the ring identification mismatch message will always be stripped in a short time. Instead of always turning around the ring, the ring network bandwidth is saved.
  • the comparison module can work first, and if the comparison result is inconsistent, it needs to be processed by the marking module; Can be processed in parallel.
  • the device for the stripping ring identification mismatch shown in this embodiment includes the above three modules, it is not for a message that flows through the device (ie, the node where the device is located). All modules must work or have to do all the work. The module does all the work only when the preset conditions of a module are met.
  • the module may only perform part of the work, such as the marking module 7 1 only completes the part of the work of checking the PS record information; or even does not work if the preset condition is not met, such as the message stripping module 7 3.
  • the packet stripping condition set in the comparison module 72 is: The lifetime of the ring network message is equal to zero. The ring network does not match the ring identifier, and of course includes the ring identifier matching message. If the comparing module compares the ringing message information flowing through the packet with the foregoing packet stripping condition, it is found that if the two match, the packet stripping module 7 3 is notified, and then the packet stripping module 7 3 takes the packet from the ring. Stripped online. If the result of the comparison module is 03507
  • the message stripping condition is not satisfied, and is further processed by the tagging module 71.
  • the tag information described in the tagging module 71 is: the lifetime of the message; the preset modification condition set by the tag module is two, and the first preset modification condition is: the node currently passing through the ring network packet is not a wraparound node; The second preset modification condition is: the node currently passing through the ring network packet is a wraparound node.
  • Different modification conditions require different modification tasks to be completed by the tag module 71.
  • the marking module 71 performs a minus 1 operation on the life duration of the message, that is, the life length of the modified message is reduced by 1 from the original number; when the second preset condition is satisfied, the marking is performed.
  • the module 71 sets the lifetime of the packet in the packet to the maximum number of nodes (generally 255) of the ring where the packet is located. After the marking module performs the above processing, the ring network message is forwarded to the next node, and the same processing is performed by the device in the embodiment of the present invention of the next node.
  • the ring identifier mismatching message is always stripped in a short time, and does not always circle on the ring, thereby saving the ring network bandwidth. Further, since the tagging module modifies the message lifetime of the wraparound node for the maximum number of nodes in the ring network, it ensures that those messages that could return to the correct ring direction before the fault recovery are not erroneously stripped.

Abstract

A method for separating the ID unmatched message on the ring network which relates to the ring network technology field includes: if the preset modifying condition is satisfied, modifying the marker information of the ring network message; if the marker information of the ring network satisfies the preset separating condition, separating the ring network message from the ring network directly. Also an apparatus for separating the ID unmatched message on the ring network is provided. By using the schemes of the invention, the ring network bandwidth can be save, and when the ring ID of the message is different from the ring ID which the message is located in, the message can be separated from the ring network, and it will not circle on the ring.

Description

剥离环网上环标识不匹配报文的方法及装置 本申请要求于 2006 年 5 月 10 日提交中国专利局、 申请号为 200610078826.5、发明名称为 "剥离 RPR环网上环标识不匹配报文的 方法及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本 申请中。  Method and device for stripping ring network ring identifier mismatching message This application claims to be submitted to Chinese Patent Office on May 10, 2006, application number is 200610078826.5, and the invention name is "the method of stripping RPR ring online ring identifier mismatching message" The priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域 Technical field
本发明涉及环网技术领域, 尤其涉及一种剥离环网上环标识 不匹配报文的方法及装置。  The present invention relates to the field of ring networks, and in particular, to a method and apparatus for stripping ring network ring identification mismatched messages.
背景技术 Background technique
RPR ( Resilient Packet Ring, 弹性分组环) 技术是基于二 层的环网技术, 采用双向环网拓朴结构, 分为内环和外环 (也称 为 0环和 1环) 。 内环和外环可以同时使用, 与 SDH ( Synchronous Digital Hierarchy, 同步数字系列 ) 相比提高了环网的带宽利 用率。 RPR技术提供了灵活的拓朴保护和倒换, 当环网发生故障 时可以在 50ms内完成倒换, 保证故障点两侧节点间有数据通路。  RPR (Resilient Packet Ring) technology is based on the two-layer ring network technology. It adopts a bidirectional ring network topology and is divided into inner ring and outer ring (also called 0 ring and 1 ring). The inner and outer rings can be used simultaneously, increasing the bandwidth utilization of the ring compared to SDH (Synchronous Digital Hierarchy). The RPR technology provides flexible topology protection and switching. When the ring network fails, the switchover can be completed within 50ms to ensure that there are data paths between the nodes on both sides of the fault point.
RPR环网最多可支持 255个节点。 艮文格式如图 1所示: 其中, 报文生命时长( ttl ) 用于承载报文生命时长, U1的取值应大于等于到 目的节点的跳数, 并小于等于最大节点数( 255 ) 。 每经过一个节点, ttl 减 1。 ttl为 0时, 报文从环网上剥离; 基本控制 (base Control)用于承 载帧类型、 服务类型以及基本控制信息; da用于承载目的地址(典型为 48 位); 源地址(sa)用于承载源地址(典型为 48位);基准报文生命时长(U1 Base )用于承载计算获得的到源节点的跳数;扩展控制( extended Control ) 用于承载扩展控制信息; 头校验 (hec ) 用于承载头校验; 协议类型 ( rotocol Type )用于承载数据的协议类型;服务数据单元( service Data Unit)用于承载实际传输的数据; 帧校验 (fee) 用于承载帧校验序列。  The RPR ring network can support up to 255 nodes. The format of the message is as shown in Figure 1: The lifetime of the packet (ttl) is used to carry the lifetime of the packet. The value of U1 should be greater than or equal to the number of hops to the destination node and less than or equal to the maximum number of nodes (255). Each time a node passes, ttl is decremented by 1. When ttl is 0, the packet is stripped from the ring network; the base control is used to carry the frame type, service type, and basic control information; da is used to carry the destination address (typically 48 bits); the source address (sa) is used. The bearer source address (typically 48 bits); the reference packet lifetime (U1 Base) is used to carry the calculated number of hops to the source node; the extended control (extended control) is used to carry the extended control information; Hec ) used for bearer header verification; protocol type (rotocol Type) is used to carry data protocol type; service data unit is used to carry actual transmitted data; frame check (fee) is used to carry frame check Test sequence.
RPR环网由内外两个环组成, 内环又称为 1环, 外环又称为 0 环。 报文可以从任意一个环向上环, 通常选择到目的节点跳数最 小的环向上环, 或从指定的环向上环。 上环的报文中包含与所上 环向相同的环标识 (Ring ID) 信息。 如报文从 0环上环, 则包含 环标识为 0的信息; 如报文从 1环上环, 则包含环标识为 1的信息。 进而, 报文在环网某一环向上转发。 对于单播报文, 每到达 一个节点, 便将自己的目的地址信息与当前节点的地址信息进行 比较, 如果相同则从环网上剥离 (即下环); 如果不相同, 则继 续转发到下一节点, 直至到达目的节点时从环网上剥离。 如果报 文无法到达目的节点, 则在回到源节点的时候从环网上剥离。 对 于多播报文, 每到一个节点后, 报文便会被接收一份, 然,后继续 转发到下一节点一份。 最终, 报文在到达源节点的时候从环网上 剥离。 例如图 2所示, 环网中有 7个节点, 从源节点 2发往目的节点 5的数 据在外环经节点 3和节点 4到达节点 5。 The RPR ring network consists of two rings inside and outside. The inner ring is also called a ring, and the outer ring is also called a ring. The packet can be looped from any ring, usually to the ring up to the ring with the lowest number of hops, or up the ring from the specified ring. The ring message contains the same ring ID information as the ring direction. If the message is from the ring 0 ring, it contains The information whose ring identifier is 0. If the packet is from the ring on the ring, it contains the information whose ring ID is 1. In addition, the packet is forwarded in a ring of the ring network. For unicast packets, each time a node arrives, its destination address information is compared with the address information of the current node. If they are the same, they are stripped from the ring network (ie, the lower ring); if they are not the same, they are forwarded to the next node. , peel off from the ring network until reaching the destination node. If the message cannot reach the destination node, it will be stripped from the ring when it returns to the source node. For multicast messages, each time a node arrives, the message will be received, and then forwarded to the next node. Eventually, the message is stripped from the ring when it reaches the source node. For example, as shown in FIG. 2, there are 7 nodes in the ring network, and data sent from the source node 2 to the destination node 5 arrives at the node 5 via the outer ring via node 3 and node 4.
当环网故障时, RPR的拓朴倒换有两种模式: Wr ap模式和 S t eer i ng模式, 即绕回模式和抄近模式。  When the ring network fails, there are two modes for RPR topology switching: Wr ap mode and S e e er i ng mode, that is, wraparound mode and stencil mode.
Wrap模式: 如图 3所示, 当节点 3和节点 4间出现故障的时候, 发生故 障的线路两侧节点进行 Wrap倒换, 数据在节点 3绕回到内环, 即在节点 3内 环和外环招:接在一起, 报文经 3- >2->1- >7- >6- >5->4, 再从节点 4绕回到外 环方向, 由节点 5接收。 当故障恢复的时候, 外环和内环分别恢复通路, 节点 3和节点 4中搭接在一起的内环和外环断开。故障恢复后的报文重新通 过外环方向发送。 保护倒换过程中, 当报文从内环方向传送到节点 2的时 候, 报文的扩展控制信息中的 PS (pa s s ed s our ce)位置 1 , 表明报文从相 反方向经过了源节点。 总而言之, 当环路上的某个地方发生故障时, 则在 发生故障附近的节点处自动绕回, 即 ί巴内环和外环搭接在一起, 环回通过 协议在相邻失效节点之间进行, 进行自动环回的节点也称为绕回节点。  Wrap mode: As shown in Figure 3, when there is a fault between node 3 and node 4, the nodes on both sides of the faulty line perform Wrap switching, and the data is looped back to the inner ring at node 3, that is, inside the ring and outside of node 3. Ring stroke: Connected together, the message passes through 3- >2->1- >7- >6- >5->4, and then returns from node 4 back to the outer ring direction, and is received by node 5. When the fault is recovered, the outer ring and the inner ring respectively recover the path, and the inner ring and the outer ring which are joined together in the node 3 and the node 4 are disconnected. The packet after the fault is resent is sent again through the outer ring. During the protection switching process, when the message is transmitted from the inner ring to the node 2, the PS (pa s s ed s our ce) bit in the extended control information of the message indicates that the message passes through the source node from the opposite direction. In summary, when a fault occurs somewhere on the loop, it automatically wraps around the node near the fault, that is, the inner loop and the outer loop of the ί巴 are lapped together, and the loopback passes between the adjacent failed nodes through the protocol. The node that performs automatic loopback is also called the wraparound node.
在现有技术中, 存在两种已有的剥离报文的方法。  In the prior art, there are two existing methods of stripping messages.
第一种: 报文在环网上进行源地址 ( s a ) 剥离。 当数据报文 在环网上回到源节点的时候, 被从环网上剥离。 报文中携带有表 明其最初上环时所在环向(即源环向)的环标识信息, 协议规定, 报文只有在源环向上进行源地址剥离, 而不能在相反环向上进行 源地址剥离。 也就是从 0环上环的报文只能在 0环上被源地址剥 离, 而从 1环上环的报文只能在 1环上被源地址剥离。 因此, 在采 用 WRAP倒换的时候 , 会存在部分在故障产生时被绕回到相反环 向, 而在故障恢复时仍然在相反环向上传输的报文, 这些报文由 于环标识与当前传输的环向不同, 而无法被源地址剥离, 并且一 直在环网上转发, 占用环网带宽。 The first type: The message is stripped of the source address ( sa ) on the ring network. When the data message returns to the source node on the ring network, it is stripped from the ring network. The packet carries the ring identification information indicating the direction in which the ring is originally located (that is, the source ring direction). The protocol stipulates that the source address stripping only occurs in the source ring, but the source address stripping cannot be performed in the opposite ring direction. . That is, the packet from the ring on the ring 0 can only be stripped by the source address on the ring 0, and the packet from the ring on the ring can only be stripped by the source address on the ring. Therefore, in mining When WRAP is switched, there will be some packets that are looped back to the opposite direction when the fault occurs, and are still transmitted in the opposite loop when the fault is recovered. These packets are different from the current transmission ring because the ring identifier is different. It cannot be stripped by the source address and has been forwarded on the ring network, occupying the ring network bandwidth.
第二种: 才艮文在环网上每经过一个节点, U 1减 1 , U 1减到 0 时, 报文从环网上剥离。 协议规定, 当报文被绕回到相反环向的 时候, U 1不做减 1操作, 只有在源环向上才做减 1操作。 因此, 会存在部分在故障产生时被绕回到相反环向, 而在故障恢复时仍 然在相反环向上传输的报文, 这些报文由于环标识与当前传送的 的环向不同, t t l不故减 1操作, 因此不能由于 t t l = 0而被剥离, 并且一直在环网上转发, 占用环网带宽。  The second type: Whenever a node passes through a node on the ring network, U 1 is decremented by 1 and U 1 is reduced to 0, and the message is stripped from the ring network. The protocol stipulates that when the message is wrapped back to the opposite direction, U 1 does not perform the subtraction 1 operation, and only performs the subtraction 1 operation in the source loop. Therefore, there will be some packets that are looped back to the opposite direction when the fault occurs, and are still transmitted in the opposite loop when the fault is recovered. These packets are different from the currently transmitted loop because the ring identifier is different from the currently transmitted loop. The operation is decremented by 1 and therefore cannot be stripped due to ttl = 0, and is always forwarded on the ring network, occupying the ring network bandwidth.
请参阅图 4 , 其为为产生 R i ng ID不匹配报文的原因示意图。 在环网节点 3、 4间有故障, 采用 WRAP倒换的时候, 节点 2由外环 上环的报文到达节点 3后, 沿虚线所示的路线绕到内环继续转发。 此时如果节点 3、 4间故障消除, 内外环的数据通道恢复, 后续从 节点 2外环上环的报文到达节点 3后直接转发到节点 4而不需要绕 到内环。 而之前已经绕到内环的数据报文, 在数据通道恢复的时 候不能全部回到外环, 而是继续在内环转发。 这部分报文由于不 能回到自己上环的环向, 将不断在内环转发, 占用内环带宽。  Please refer to FIG. 4 , which is a schematic diagram of the reason for generating a R i ng ID mismatch message. When there is a fault between the ring nodes 3 and 4, when WRAP is used for switching, the node 2 reaches the node 3 by the packet of the outer ring and then goes to the inner ring along the route indicated by the dotted line to continue forwarding. At this time, if the faults of the nodes 3 and 4 are eliminated, the data channels of the inner and outer rings are restored, and the subsequent packets from the outer ring of the outer ring of the node 2 reach the node 3 and then directly forward to the node 4 without going to the inner ring. The data packets that have been bypassed to the inner ring cannot be returned to the outer ring when the data channel is restored, but continue to be forwarded in the inner ring. Because this part of the packet cannot return to its own ring, it will continue to forward in the inner ring and occupy the inner ring bandwidth.
综上所述, 采用 WRAP倒换的时候, 当环网故障消除后, 环网 上一部分被绕回到另一个环向的^ =艮文还在相反环向上, 由于环标 识 (R ing ID ) 与当前数据发送的环向不同而不能从环网上剥离, 这些报文将一直占用环网带宽, 导致环网上的有效带宽变小。 发明内容  In summary, when WRAP switching is used, when the ring network fault is eliminated, a part of the ring network is wound back to the other ring direction, and the ring is still in the opposite ring direction, due to the ring identifier (R ing ID ) and the current The data transmission direction is different and cannot be stripped from the ring network. These packets will always occupy the ring network bandwidth, resulting in a smaller effective bandwidth on the ring network. Summary of the invention
本发明的主要目的在于提供一种剥离环标识不匹配报文的方法和装 置。 当报文的环标识与该报文的传输环向不匹配的时候, 可以使 报文从环网上剥离, 而不会一直在环上转圈。  SUMMARY OF THE INVENTION A primary object of the present invention is to provide a method and apparatus for a peel ring identification mismatch message. When the ring identifier of the packet does not match the transmission ring direction of the packet, the packet can be stripped from the ring network instead of being circled on the ring.
本发明实施例公开了一种剥离环网上环标识不匹配报文的 方法: 如果预置修改条件满足, 则对流经的环网报文的标记信息 进行修改; 如果流经的环网报文信息满足预置剥离条件, 则直接 将所述环网报文从环网上剥离。 The embodiment of the invention discloses a method for stripping ring network identifiers that do not match packets: If the preset modification conditions are met, the label information of the ring network packets flowing through If the ring network packet information that meets the requirements meets the preset stripping condition, the ring network packet is directly stripped from the ring network.
本发明实施例公开了一种剥离 RPR环网上环标识不匹配报文 的装置, 所述装置包括标记模块, 用以在预置修改条件满足时对 流经的环网报文的标记信息进行修改; 比较模块, 用以将流经的 环网报文信息与预置剥离条件进行比较; 以及报文剥离模块, 用 以在比较模块的比较结果为两者相符时, 将所述环网报文从环网 上剥离。  The embodiment of the invention discloses a device for stripping the RPR ring network ring identifier mismatching message, the device comprising a marking module, configured to modify the marking information of the ring network message flowing through when the preset modification condition is satisfied; a comparison module, configured to compare the ring network message information flowing through the preset stripping condition, and a message stripping module, configured to: when the comparison result of the comparison module is the same, the ring network message is Stripped on the ring.
通过以上技术方案可以看出,本发明通过在预置修改条件满足时对环 网报文的标记信息进行修改; 使得环网报文的标记信息在某一时刻可以满 足预置剥离条件, 进而当预置剥离条件满足时可以直接将所述环网报文从 环网上剥离。 进而, 即使环网报文的环标识与该报文所在的传输环向不匹 配, 由于在满足预置修改条件时对其标记信息进行了修改, 因此该环标识 不匹配报文在某一时刻会满足预置剥离条件,从而使得该环标识不匹配报 文被从环网上剥离, 而不会一直在环网上转圈。  The above technical solution shows that the marking information of the ring network packet is modified when the preset modification condition is satisfied; the marking information of the ring network packet can satisfy the preset stripping condition at a certain moment, and then When the preset stripping condition is satisfied, the ring network message can be directly stripped from the ring network. In addition, even if the ring identifier of the ring network packet does not match the transmission ring direction of the packet, the ring identifier does not match the packet at a certain moment because the label information is modified when the preset modification condition is met. The preset stripping condition is met, so that the ring identification mismatch message is stripped from the ring network and does not always circle on the ring network.
附图说明 DRAWINGS
图 1为 RPR寺艮文格式说明;  Figure 1 is a description of the format of the RPR temple text;
图 2为正常模式下报文转发方式的示意图;  2 is a schematic diagram of a packet forwarding manner in a normal mode;
图 3为 Wrap倒换模式下报文转发方式的示意图;  Figure 3 is a schematic diagram of packet forwarding mode in Wrap switching mode;
图 4为产生 R i ng I D不匹配报文的原因示意图;  FIG. 4 is a schematic diagram of a reason for generating a R i ng I D mismatch message;
图 5为本发明第一个实施例所述方法的流程图;  Figure 5 is a flow chart of the method according to the first embodiment of the present invention;
图 6为本发明第二个实施例所述方法的流程图;  Figure 6 is a flow chart of a method according to a second embodiment of the present invention;
图 7为本发明剥离报文装置的实施例结构示意图。  FIG. 7 is a schematic structural diagram of an embodiment of a stripping message device according to the present invention.
具体实施方式 detailed description
下面结合附图和具体实施例对本发明作进一步说明, 但不作 为对本发明的限定。  The invention is further described with reference to the accompanying drawings and specific embodiments, which are not to be construed as limiting.
请参阅图 5 , 其为本发明公开的剥离环网上环标识不匹配报 文的方法第一优选实施例流程图。 本实施例中以 RPR环网为例进 行说明, 但是本领域技术人员应当认识到本发明所述环网并不局 限于此, 与 RPR具有类似工作模式的其他环网类型也可以适用本 发明的技术方案。 RPR环网上报文的扩展控制信息中的 PS位在初 始设置时为 0 ( 0表示报文没有在相反环向上经过源节点, 即没有 被绕回; 1表示报文已经在相反环向上经过了源节点,即被绕回)。 在环网从绕回保护模式恢复到正常模式后, 没有来得及回到正确 环向上——仍停留在相反环向上的报文将会反复经过源节点。 进 而, 通过本实施例下述步骤的执行, 可以将上述仍停留在相反环 向上的报文予以剥离, 从而不会出现它们在相反环向上一直转圈 的问题。 Please refer to FIG. 5 , which is a flowchart of a first preferred embodiment of a method for identifying a mismatched message on a ring ring on a strip ring. In this embodiment, the RPR ring network is taken as an example for description, but those skilled in the art should recognize that the ring network of the present invention does not matter. To be limited thereto, the other aspects of the ring network having a similar working mode as the RPR can also be applied to the technical solution of the present invention. The PS bit in the extended control information of the RPR ring network packet is 0 when the initial setting is set. (0 indicates that the packet does not pass through the source node in the opposite loop direction, that is, it is not bypassed; 1 indicates that the packet has passed in the opposite loop direction. The source node is wraparound). After the ring network is restored from the wraparound protection mode to the normal mode, there is no time to return to the correct loop direction - the message that remains in the opposite loop will repeatedly pass through the source node. Further, by the execution of the following steps of the embodiment, the above-mentioned messages which are still in the opposite loop direction can be peeled off, so that the problem that they are always circled in the opposite loop direction does not occur.
步骤 51 0 : 报文经过 RPR环网某个节点时, 判断报文源地址 Step 51 0: When the packet passes through a node on the RPR ring network, the source address of the packet is determined.
( s a ) 与本节点地址是否相同。 如果相同, 则执行步骤 520 ; 如 果不同, 则执行步骤 550。 ( s a ) Is the same as the address of this node. If they are the same, step 520 is performed; if not, step 550 is performed.
如果 文源地址与本节点地址相同, 则表明该 4艮文经过了它 的源节点。 如果报文源地址与本节点地址不相同, 则表明当前节 点不是该报文的源节点。  If the source address is the same as the address of the node, it indicates that the source has passed its source node. If the source address of the packet is different from the address of the local node, it indicates that the current node is not the source node of the packet.
步骤 520: 判断报文携带的环标识与该报文当前所在环向是 否相同。 如果相同, 则执行步驟 560 ; 如果不同, 则执行步骤 5 30。  Step 520: Determine whether the ring identifier carried in the packet is the same as the current ring direction of the packet. If they are the same, go to step 560; if they are different, go to step 5 30.
步骤 530: 判断该环标识不匹配报文当前扩展控制信息中的 PS位是否为 1。 如果为 1则执行步驟 560 ; 如果不为 1则执行步骤 540。  Step 530: Determine whether the PS bit in the current extension control information of the ring identifier does not match is 1. If it is 1, then step 560 is performed; if it is not 1, step 540 is performed.
如果 PS位为 1 , 则表明该^ =艮文此前已经在相反的环向上经过 该源节点; 如果 PS位不为 1, 则表明该报文此前没有在相反的环 向经过该源节点。  If the PS bit is 1, it indicates that the ^=艮 text has passed the source node in the opposite loop direction; if the PS bit is not 1, it indicates that the message has not passed through the source node in the opposite direction.
步骤 540 : 将该环标识不匹配报文的 PS位设置为 1。 此后, 执 行步骤 550。 将 PS位置 1 , 是用以记录该报文此次在相反环向经过 了源节点。  Step 540: Set the PS bit of the ring identifier mismatch message to 1. Thereafter, step 550 is performed. Setting the PS bit to 1 is used to record that the message passed the source node in the opposite direction.
步骤 550: 继续转发报文至下一节点。  Step 550: Continue forwarding the message to the next node.
如果是从步骤 540进入本步骤, 则说明该环标识不匹配报文 此时是第一次在相反环向经过当前源节点, 因此继续转发至下一 节点, 直至第二次在相反环向上经过该源节点时可以按照步骤If the process proceeds from step 540, the ring identifier mismatch packet is passed through the current source node in the opposite direction for the first time, so the forwarding continues to the next. The node, until the second pass through the source node in the opposite loop, can follow the steps
560进行剥离。 560 was peeled off.
如果是从步驟 510进入本步骤, 由于当前节点不是该报文的 源节点, 因此将该报文转发到下一个节点, 直至到达源节点时可 以按照 560进行剥离。  If the process proceeds from step 510 to this step, since the current node is not the source node of the message, the message is forwarded to the next node until the source node is reached, and may be stripped according to 560.
步骤 560: 将报文从环网上剥离。  Step 560: Strip the message from the ring.
如果是由步骤 520进入本步骤, 则报文携带的环标识与该报 文当前所在环向相同, 又由于当前节点是该报文的源节点, 因此 在当前节点剥离^ 1艮文。 If step 520 is entered from the present step, it is carried in packets with the packet ring identity is currently located in the same ring, and because the current node is the packet source node, the node in the current release paper Gen ^ 1.
如果是从步骤 530进入本步骤, 则由于报文已经是在相反环 向上第二次经过了源节点, 也就是报文在环网上打转, 因而此时 可以直接将报文从环网上剥离。  If the process proceeds from step 530, the packet is sent out from the ring network at this time because the packet has passed through the source node for the second time in the opposite direction, that is, the packet is rotated on the ring network.
请参阅图 6, 其为本发明公开的剥离环网上环标识不匹配报 文的方法第二优选实施例流程图。  Please refer to FIG. 6, which is a flow chart of a second preferred embodiment of a method for identifying a mismatched message on a stripping ring network ring.
步骤 610: 当报文经过 RPR环网某个节点时, 判断该报文的报 文生命时长(ttl)是否等于 0。 如果等于 0, 则执行步骤 660; 如果 不等于 0, 则执行步骤 620。  Step 610: When the packet passes through a node of the RPR ring network, it is determined whether the packet lifetime (ttl) of the packet is equal to 0. If it is equal to 0, step 660 is performed; if not equal to 0, step 620 is performed.
步骤 62Q: 判断该节点是否是绕回节点。 如果是绕回节点, 则执行步骤 630; 如果不是绕回节点, 则执行步骤 640。  Step 62Q: Determine whether the node is a wraparound node. If it is a wraparound node, step 630 is performed; if it is not around the node, step 640 is performed.
前文提过, 当环网发生故障时, 在发生故障附近的节点处报文会 自动环回, 进行自动环回的节点称为绕回节点。 因此, 在故障期间会产生 两个绕回节点, 故本步骤主要用以识别出故障期间经过绕回节点的报文。  As mentioned above, when the ring network fails, the packets at the node near the fault will automatically loop back, and the node that performs automatic loopback is called the wraparound node. Therefore, two bypass nodes are generated during the fault, so this step is mainly used to identify the packets that have passed back to the node during the fault.
步骤 630: 将该报文的 U1重置为 255。 此后执行步骤 650。 步骤 640: 无论该报文的传输环向是否与报文携带的环标识 相同, 都先将该报文的 ttl减 1后, 再执行步骤 650。  Step 630: Reset U1 of the message to 255. Thereafter, step 650 is performed. Step 640: If the transmission ring of the packet is the same as the ring identifier carried in the packet, the ttl of the packet is first decremented by one, and then step 650 is performed.
步骤 650: 将该报文按照当前传输环向转发至下一节点。 进 而, 后续节点依旧执行步骤 610至 650, 直至在某个节点执行步骤 610时判断出 TT1 = 0, 进而执行步骤 660。 Step 650: Forward the message to the next node according to the current transmission ring. Further, subsequent nodes still perform steps 610-6 50 TT1 = 0 until it is judged at step 610 a node, and then perform step 660.
步骤 660: 将该报文直接从环网上剥离。 只要报文的 ttl等于 0, 则无论传输环向是否与报文环标识相同, 都直接把该报文从 环网上剥离。 Step 660: The message is directly stripped from the ring network. As long as the ttl of the message is equal to 0, the message is directly stripped from the ring network regardless of whether the transmission ring direction is the same as the message ring identifier.
通过本实施例的实施方案可以看出, 只要当前节点不是绕回 节点, 那么无论传输环向是否与报文环标识相同, 都将 ttl减 1。 因此, 即使故障恢复的时候没有来得及回到正确环向 (即与报文 携带的环标识匹配的环向)上的报文,在短时间内 1;1;1将会减为0, 进而在 TT1减到 0时从环网上剥离, 从而不会一直在相反环向上一 直打转, 节约了环网带宽。 此外, 由于在绕回节点设置 ttl = 255 操作, 从而保证了原本能够在故障恢复之前回到正确环向的那些 报文不会被错误剥离。  As can be seen from the embodiment of the present embodiment, as long as the current node is not a wraparound node, ttl is decremented by one regardless of whether the transmission ring direction is the same as the message ring identifier. Therefore, even if the packet fails to return to the correct ring direction (that is, the ring direction matching the ring identifier carried by the packet), the message will be reduced to 0 in a short time, and then When TT1 is reduced to 0, it is stripped from the ring network, so that it does not always rotate in the opposite ring direction, saving the ring network bandwidth. In addition, since the ttl = 255 operation is set at the wraparound node, it is ensured that those messages that would otherwise return to the correct hoop before the failure recovery are not erroneously stripped.
基于与上述剥离环网上环标识不匹配报文的方法同一发明 构思, 本发明还公开了一种剥离环网上环标识不匹配报文的装 置, 该装置可以通过软件程序或硬件予以实现, 设置于 RPR协议 的 MAC ( Medium Access Control ) 层实体上。 请参阅图 7, 其为 本发明剥离环网上环标识不匹配报文的装置实施例结构示意图, 本实施例的装置具体包括标记模块 71、 比较模块 72以及报文剥离 模块 73, 其中, 标记模块 71用以在预置修改条件满足时对流经的 环网报文的标记信息进行修改; 比较模块 72用以将流经的环网报 文信息与预置剥离条件进行比较; 报文剥离模块 73用以在比较模 块的比较结果为两者相符时, 将所述环网报文从环网上剥离。  Based on the same inventive concept as the method for the above-mentioned stripping ring network ring identifier mismatching message, the present invention also discloses a device for stripping ring network ring identifier mismatching message, the device can be implemented by a software program or hardware, and is set in On the MAC (Medium Access Control) layer entity of the RPR protocol. Please refer to FIG. 7 , which is a schematic structural diagram of an apparatus for a ring-ring identification mismatch message on a stripping ring network according to the present invention. The apparatus of this embodiment specifically includes a marking module 71, a comparison module 72, and a message stripping module 73, wherein the marking module The method is configured to modify the label information of the ring network message that flows through when the preset modification condition is met; the comparison module 72 is configured to compare the ring network message information flowing through the preset stripping condition; the message stripping module 73 When the comparison result of the comparison module is the same, the ring network message is stripped from the ring network.
下面结合该装置的工作原理进一步介绍其内部结构, 由于该 装置采用两种具体工作模式均可以达到剥离环标识不匹配报文 的目的, 因此, 下面分别予以说明。  The internal structure of the device will be further described below in conjunction with the working principle of the device. Since the device adopts two specific working modes, the purpose of the peeling ring identification mismatching message can be achieved, and therefore, the following description will be respectively made.
实施方式 1  Embodiment 1
该装置中的比较模块 72设置有预置剥离条件: 环标识不匹配 报文在相反环向上经过源节点, 并且该报文中 PS的记录信息表明 该报文曾经在相反环向上经过源节点。 因此当有环网报文经过该 装置时, 需要通过比较模块 72将该报文的信息与预置剥离条件进 行比较, 如果比较结果为两者相符, 则告知报文剥离模块, 由报 文剥离模块 7 3将该环网报文进行剥离。 如果比较模块 7 2的结果为 不满足预置剥离条件, 则转由标记模块 7 1进行处理。 The comparison module 72 in the device is provided with a preset stripping condition: the ring identifier mismatch packet passes through the source node in the opposite loop direction, and the record information of the PS in the packet indicates that the packet has passed the source node in the opposite loop direction. Therefore, when the ring network message passes through the device, the comparison module 72 needs to compare the information of the message with the preset stripping condition. If the comparison result is consistent, the message stripping module is notified. The stripping module 7 3 strips the ring network message. If the result of the comparison module 7 2 is that the preset peeling condition is not satisfied, the processing is performed by the marking module 71.
标记模块 7 1中所述的标记信息是: 用以记录 艮文是否在相反 环向上经过源节点的状态位 P S ; 该模块中的预置修改条件是: 环 标识不匹配寺艮文在相反环向上经过源节点, 并且该 ^艮文中 PS的记 录信息表明该报文此前未在相反环向上经过源节点。 进而, 通过 标记模块 7 1查看该报文中当前 PS的记录信息是否满足预置修改 条件, 如果满足, 则标记模块 7 1将该报文中 PS修改为表明报文曾 经在相反环向上经过源节点的记录信息, 然后转发至下一节点。 此后, 再由下一个节点的本实施例所述装置进行相同处理。  The tag information described in the tag module 7 1 is: a status bit PS for recording whether the message passes through the source node in the opposite ring direction; the preset modification condition in the module is: the ring identifier does not match the temple text in the opposite ring Going up through the source node, and the record information of the PS in the message indicates that the message has not passed through the source node in the opposite loop. Further, the marking module 7 1 checks whether the recording information of the current PS in the packet satisfies the preset modification condition. If yes, the marking module 71 changes the PS in the packet to indicate that the packet has passed the source in the opposite loop. The node's record information is then forwarded to the next node. Thereafter, the same processing is performed by the apparatus of the present embodiment of the next node.
由此可以看出, 通过本发明实施例提供的装置, 环标识不匹 配报文会总在一个较短的时间内被剥离。 而不至于一直在环上转圈, 从而节约了环网带宽。  It can be seen that, by the device provided by the embodiment of the present invention, the ring identification mismatch message will always be stripped in a short time. Instead of always turning around the ring, the ring network bandwidth is saved.
需要说明, 上述标记模块和比较模块进行工作时并无必然的 先后顺序, 优选的, 可以先由比较模块进行工作, 在比较结果为 不符的情况下才需要再由标记模块进行处理; 当然, 也可以并行 处理。 换而言之, 虽然本实施例所示剥离环标识不匹配才艮文的装 置包括以上三个模块, 但是针对某一个流经该装置 (即该装置所 在节点) 的报文而言, 并不是所有模块都要工作或者都要完成全 部工作, 只有在某个模块的预置条件满足时该模块才完成全部工 作。 如果预置条件不满足, 则该模块可能只完成部分工作, 如标 记模块 7 1只完成检查 PS记录信息的这部分工作; 或者在不满足预 置条件下甚至不工作, 如报文剥离模块 7 3。  It should be noted that there is no inevitable sequence when the above marking module and the comparison module work. Preferably, the comparison module can work first, and if the comparison result is inconsistent, it needs to be processed by the marking module; Can be processed in parallel. In other words, although the device for the stripping ring identification mismatch shown in this embodiment includes the above three modules, it is not for a message that flows through the device (ie, the node where the device is located). All modules must work or have to do all the work. The module does all the work only when the preset conditions of a module are met. If the preset condition is not satisfied, the module may only perform part of the work, such as the marking module 7 1 only completes the part of the work of checking the PS record information; or even does not work if the preset condition is not met, such as the message stripping module 7 3.
实施方式 2  Embodiment 2
比较模块 72中设置的报文剥离条件是: 环网报文生命时长等 于 0。 所述环网 ^艮文包括环标识不匹配 4艮文, 当然还包括环标识 匹配报文。 如果比较模块在将流经的环网报文信息与前述报文剥 离条件比较时发现, 两者相符, 则告知报文剥离模块 7 3 , 进而由 报文剥离模块 7 3将该报文从环网上剥离。 如果比较模块的结果是 03507 The packet stripping condition set in the comparison module 72 is: The lifetime of the ring network message is equal to zero. The ring network does not match the ring identifier, and of course includes the ring identifier matching message. If the comparing module compares the ringing message information flowing through the packet with the foregoing packet stripping condition, it is found that if the two match, the packet stripping module 7 3 is notified, and then the packet stripping module 7 3 takes the packet from the ring. Stripped online. If the result of the comparison module is 03507
—9一 -9 one
不满足报文剥离条件, 进而转由标记模块 71进行处理。 The message stripping condition is not satisfied, and is further processed by the tagging module 71.
标记模块 71中所述的标记信息是: 报文生命时长; 标记模块 设置的预置修改条件为两个, 第一预置修改条件是: 环网报文当 前经过的节点不是绕回节点; 第二预置修改条件是: 所述环网报 文当前经过的节点是绕回节点。 不同预置修改条件, 需要标记模 块 71完成的修改任务是不同的。 对于第一个预置条件满足时, 标 记模块 71对流经报文生命时长进行减 1操作, 即修改后的报文生 命时长为原有数目减 1 ; 对于第二个预置条件满足时, 标记模块 71将流经报文中的生命时长设置为该报文所在环网的最大节点 数 (一般为 255 ) 。 标记模块进行上述处理后, 则将该环网报文 转发至下一节点, 进而由下一节点的本发明实施例所述装置进行 相同处理。  The tag information described in the tagging module 71 is: the lifetime of the message; the preset modification condition set by the tag module is two, and the first preset modification condition is: the node currently passing through the ring network packet is not a wraparound node; The second preset modification condition is: the node currently passing through the ring network packet is a wraparound node. Different modification conditions require different modification tasks to be completed by the tag module 71. When the first preset condition is satisfied, the marking module 71 performs a minus 1 operation on the life duration of the message, that is, the life length of the modified message is reduced by 1 from the original number; when the second preset condition is satisfied, the marking is performed. The module 71 sets the lifetime of the packet in the packet to the maximum number of nodes (generally 255) of the ring where the packet is located. After the marking module performs the above processing, the ring network message is forwarded to the next node, and the same processing is performed by the device in the embodiment of the present invention of the next node.
由此可以看出, 通过本发明实施例提供的装置, 环标识不匹 配报文总会在一个较短的时间内被剥离, 而不至于一直在环上转圈, 从而节约了环网带宽。 进一步, 由于标记模块在绕回节点修改报文 生命时长为其所在环网的最大节点数目 , 因此保证了原本能够在 故障恢复之前回到正确环向的那些报文不会被错误剥离。  It can be seen that, by using the device provided by the embodiment of the present invention, the ring identifier mismatching message is always stripped in a short time, and does not always circle on the ring, thereby saving the ring network bandwidth. Further, since the tagging module modifies the message lifetime of the wraparound node for the maximum number of nodes in the ring network, it ensures that those messages that could return to the correct ring direction before the fault recovery are not erroneously stripped.
上述各实施例是用于说明和解释本发明的原理的。 可以理解, 本发 明的具体实施方式并不限于此。 对于本领域技术人员而言, 在不 脱离本发明的实盾和范围的前提下进行的各种变更和修改均涵盖在本发 明的保护范围之内。  The various embodiments described above are illustrative of the principles of the invention. It will be understood that the specific embodiments of the present invention are not limited thereto. Various changes and modifications may be made without departing from the scope and scope of the invention.

Claims

权 利 要 求 Rights request
1 . 一种剥离环网上环标识不匹配拫文的方法, 其特征在于: 如果预置修改条件满足, 则对流经的环网报文的标记信息进 行修改;  A method for stripping ring network ring identifiers that does not match a message, wherein: if the preset modification condition is satisfied, the tag information of the ring network message flowing through is modified;
如果流经的环网报文信息满足预置剥离条件, 则直接将所述 环网报文从环网上剥离。  If the ring network packet information that meets the requirements meets the preset stripping condition, the ring network packet is directly stripped from the ring network.
2. 根据权利要求 1所述的方法, 其特征在于: 所述标记信息 为用以记录 艮文是否在相反环向上经过源节点的状态位 PS ,  2. The method according to claim 1, wherein: the flag information is a status bit PS for recording whether the message passes through the source node in the opposite loop direction,
所述预置修改条件为: 环标识不匹配 4艮文在相反环向上经过 源节点, 并且该 4艮文中 PS的记录信息表明该 ^艮文此前未在相反环 向上经过源节点。  The preset modification condition is: the ring identifier does not match. The 艮 text passes through the source node in the opposite loop, and the record information of the PS in the 艮 message indicates that the 艮 message has not passed the source node in the opposite loop.
3. 根据权利要求 2所述的方法, 其特征在于, 如果所述预置 修改条件满足, J¾ 'J所述对环网报文的标记信息进行修改的步骤具 体为: 将该报文的 PS修改为表明报文曾经在相反环向上经过源节 点的记录信息。  The method according to claim 2, wherein, if the preset modification condition is satisfied, the step of modifying the marking information of the ring network message according to J3⁄4 'J is specifically: Modified to indicate that the message has passed the record information of the source node in the opposite loop.
4. 根据权利要求 1至 3中任意一项所述的方法, 其特征在于, 所述预置剥离条件具体为: 环标识不匹配报文在相反环向上经过 源节点, 并且该 4艮文中 P S的记录信息表明该 文曾经在相反环向 上经过源节点。  The method according to any one of claims 1 to 3, wherein the preset stripping condition is specifically: the ring identifier mismatching message passes through the source node in the opposite loop direction, and the PS in the 4 艮 text The record information indicates that the text once passed through the source node in the opposite loop.
5. 根据权利要求 1所述的方法, 其特征在于: 所述环网报文 的标记信息为^ =艮文生命时长。  The method according to claim 1, wherein: the marking information of the ring network message is ^=the duration of the text.
6. 根据权利要求 5所述的方法, 其特征在于, 所述预置修改 条件包括第一预置修改条件: 所述环网报文当前经过的节点不是 绕回节点,  The method according to claim 5, wherein the preset modification condition comprises a first preset modification condition: the node currently passing through the ring network packet is not a wraparound node,
如果上述第一预置修改条件满足, 则所述对环网报文的标记 信息进行修改的步骤具体为: 将报文生命时长减 1。  If the first preset modification condition is met, the step of modifying the marking information of the ring network packet is specifically: reducing the lifetime of the packet by one.
7. 根据权利要求 6所述的方法, 其特征在于, 所述预置修改 条件还包括第二预置修改条件: 所述环网报文当前经过的节点是 绕回节点, 如果上述第二预置条件满足, 则所述对环网报文的标记信息 进行修改的步骤具体为: 将报文生命时长设置为该报文所在环网 的最大节点数。 The method according to claim 6, wherein the preset modification condition further includes a second preset modification condition: the node currently passing through the ring network packet is a wraparound node, If the second preset condition is met, the step of modifying the marking information of the ring network packet is as follows: Set the lifetime of the packet to the maximum number of nodes in the ring network where the packet is located.
8. 根据权利要求 5至 7中任意一项所述的方法, 其特征在于, 所述环网报文包括环标识不匹配报文。  The method according to any one of claims 5 to 7, wherein the ring network message comprises a ring identifier mismatching message.
9. 根据权利要求 5至 7中任意一项所述的方法, 其特征在于, 所述预置剥离条件为: 环网报文生命时长等于 0, 所述环网报文 包括环标识不匹配 4艮文。  The method according to any one of claims 5 to 7, wherein the preset stripping condition is: the ring network packet lifetime is equal to 0, and the ring network packet includes a ring identifier mismatch 4 Yan Wen.
1 0. 一种剥离 RPR环网上环标识不匹配 4艮文的装置, 其特征 在于, 所述装置包括:  1 0. A device for stripping RPR ring network ring identifiers that does not match, wherein the device comprises:
标记模块, 用以在预置修改条件满足时对流经的环网报文的 标记信息进行 4爹改;  a marking module, configured to perform tampering on the marking information of the ring network message flowing through when the preset modification condition is met;
比较模块, 用以将流经的环网报文信息与预置剥离条件进行 比较; 以及  a comparison module for comparing the ring network message information flowing through with the preset stripping condition;
报文剥离模块, 用以在比较模块的比较结果为两者相符时, 将所述环网 艮文从环网上剥离。  The message stripping module is configured to strip the ring network from the ring network when the comparison result of the comparison module is that the two match.
1 1. 根据权利要求 1 0所述的装置, 其特征在于: 所述标记信 息为用以记录报文是否在相反环向上经过源节点的状态位 P S , 所述预置修改条件为: 环标识不匹配 艮文在相反环向上经过 源节点, 并且该 4艮文中 PS的记录信息表明该报文此前未在相反环 向上经过源节点。  The device according to claim 10, wherein: the tag information is a status bit PS for recording whether the message passes through the source node in an opposite loop direction, and the preset modification condition is: a ring identifier The mismatched message passes through the source node in the opposite ring direction, and the record information of the PS in the message indicates that the message has not passed the source node in the opposite ring direction.
12. 根据权利要求 1 1所述的装置, 其特征在于, 如果预置修 改条件满足, 则经所述标记单元修改后的 PS记录信息表明报文曾 经在相反环向上经过源节点。  12. The apparatus according to claim 11, wherein if the preset modification condition is satisfied, the PS record information modified by the labeling unit indicates that the message has passed through the source node in the opposite loop direction.
1 3. 根据权利要求 1 0至 12中任意一项所述的装置, 其特征在 于, 所述预置剥离条件具体为: 环标识不匹配报文在相反环向上 经过源节点, 并且该报文中 PS的记录信息表明该报文曾经在相反 环向上经过源节点。  The apparatus according to any one of claims 10 to 12, wherein the preset stripping condition is specifically: the ring identifier mismatch packet passes through the source node in the opposite loop direction, and the packet The record information of the PS indicates that the message has passed through the source node in the opposite loop.
14. 根据权利要求 1 0所述的装置, 其特征在于: 所述环网报 文的标记信息为报文生命时长; 所述预置修改条件包括第一预置 修改条件: 所述环网报文当前经过的节点不是绕回节点, 14. The device according to claim 10, wherein: the ring network report The tag information of the text is the lifetime of the message; the preset modification condition includes the first preset modification condition: the node currently passing through the ring network packet is not a wraparound node,
如果上述第一预置修改条件满足, 则经所述标记单元修改后 的报文生命时长为原有数目减 1。  If the first preset modification condition is satisfied, the life duration of the modified message by the marking unit is reduced by one.
1 5. 根据权利要求 14所述的装置, 其特征在于, 所述预置修 改条件还包括第二预置修改条件: 所述环网报文当前经过的节点 是绕回节点,  The apparatus according to claim 14, wherein the preset modification condition further includes a second preset modification condition: the node currently passing through the ring network message is a wraparound node,
如果上述第二预置条件满足, 则经所述标记单元修改后的报 文生命时长为该报文所在环网的最大节点数。  If the second preset condition is satisfied, the lifetime of the modified message by the marking unit is the maximum number of nodes of the ring network where the packet is located.
16. 根据权利要求 14或 15所述的装置, 其特征在于, 所述环 网^ =艮文包括环标识不匹配^ =艮文。  The device according to claim 14 or 15, wherein the ring network includes a ring identifier that does not match ^=艮.
17. 根据权利要求 14或 15所述的装置, 其特征在于, 所述预 置剥离条件为: 环网报文生命时长等于 0 , 所述环网报文包括环 标识不匹配^ =艮文。  The device according to claim 14 or 15, wherein the pre-separation condition is: the ring network message lifetime is equal to 0, and the ring network message includes a ring identifier mismatch ^=艮文.
PCT/CN2006/003507 2006-05-10 2006-12-20 A method and apparatus for separating the id unmatched message on the ring network WO2007128178A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2006100788265A CN101047632B (en) 2006-05-10 2006-05-10 Method and system for removing ring identification nonmatched message on RPR ring network
CN200610078826.5 2006-05-10

Publications (1)

Publication Number Publication Date
WO2007128178A1 true WO2007128178A1 (en) 2007-11-15

Family

ID=38667405

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/003507 WO2007128178A1 (en) 2006-05-10 2006-12-20 A method and apparatus for separating the id unmatched message on the ring network

Country Status (2)

Country Link
CN (1) CN101047632B (en)
WO (1) WO2007128178A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763409B (en) * 2016-01-29 2019-04-09 新华三技术有限公司 A kind of flow forwarding method and device
CN106205110A (en) * 2016-09-07 2016-12-07 国网浙江省电力公司温州供电公司 A kind of power information acquisition system
CN108737238A (en) * 2018-05-28 2018-11-02 朱磊 Support the control looped network HardCnet chainlink control methods of distributed blackboard pattern interaction

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001041345A1 (en) * 1999-12-01 2001-06-07 The Trustees Of Columbia University In The City Of New York A method for operating a wavelength division multiplexed optical ring network
CN1728674A (en) * 2004-07-29 2006-02-01 中兴通讯股份有限公司 Method and device for implementing upper ring and lower ring of flexible gruoping ring
CN1756222A (en) * 2004-09-27 2006-04-05 华为技术有限公司 Looped network and its service realizing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100384177C (en) * 2004-07-14 2008-04-23 华为技术有限公司 A method of Ethernet transmission in a plurality of E1 channels
CN100512189C (en) * 2004-08-04 2009-07-08 杭州华三通信技术有限公司 Adapting device for resilient packet ring and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001041345A1 (en) * 1999-12-01 2001-06-07 The Trustees Of Columbia University In The City Of New York A method for operating a wavelength division multiplexed optical ring network
CN1728674A (en) * 2004-07-29 2006-02-01 中兴通讯股份有限公司 Method and device for implementing upper ring and lower ring of flexible gruoping ring
CN1756222A (en) * 2004-09-27 2006-04-05 华为技术有限公司 Looped network and its service realizing method

Also Published As

Publication number Publication date
CN101047632B (en) 2010-09-22
CN101047632A (en) 2007-10-03

Similar Documents

Publication Publication Date Title
US9871708B2 (en) Method and system for ring protection switching
EP2224644B1 (en) A protection method, system and device in the packet transport network
US8144601B2 (en) Fault detection method, communication system and label switching router
JP4074304B2 (en) Packet transfer method and packet transfer apparatus
EP1528731B1 (en) Rerouting MPLS traffic in ring networks
US7782763B2 (en) Failure protection in a provider backbone bridge network using forced MAC flushing
CN101159690B (en) Multi-protocol label switch forwarding method, device and label switching path management module
US7821971B2 (en) Protection providing method and customer edge apparatus
US7760621B2 (en) Method and system for protecting label switched path
US8902729B2 (en) Method for fast-re-routing (FRR) in communication networks
WO2008089633A1 (en) Method and apparatus for protecting ether ring net
WO2006006632A1 (en) Packet transmission method and packet transmission device
CN101577719B (en) A kind of double hot standby method, device and system
WO2012149862A1 (en) Ring network failover method and apparatus
US8611211B2 (en) Fast reroute protection of logical paths in communication networks
WO2010020146A1 (en) Correlative protection method, device and system for flux engineering channel
JP2007209040A (en) Packet transmission method and packet transmission device
WO2011015011A1 (en) Method and system for ring network fault detection and locating
WO2006079292A1 (en) A method for creating the path for the return label in the multi-protocol label switching system
WO2012106976A1 (en) Fault protection method and device
WO2007128178A1 (en) A method and apparatus for separating the id unmatched message on the ring network
WO2011020257A1 (en) Method and apparatus for notifying failure lsp information
WO2012097571A1 (en) Method and node device for recovering ring network service
WO2018149294A1 (en) Method and apparatus for processing service flow in packet network
WO2011020339A1 (en) Method and system for switching in segment protection

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

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

Country of ref document: EP

Kind code of ref document: A1