WO2013078997A1 - Method for processing fault in mrp ring network, and mrp ring network - Google Patents

Method for processing fault in mrp ring network, and mrp ring network Download PDF

Info

Publication number
WO2013078997A1
WO2013078997A1 PCT/CN2012/085454 CN2012085454W WO2013078997A1 WO 2013078997 A1 WO2013078997 A1 WO 2013078997A1 CN 2012085454 W CN2012085454 W CN 2012085454W WO 2013078997 A1 WO2013078997 A1 WO 2013078997A1
Authority
WO
WIPO (PCT)
Prior art keywords
mrm
mrc
state
link
ring network
Prior art date
Application number
PCT/CN2012/085454
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 浙江网新技术有限公司
Publication of WO2013078997A1 publication Critical patent/WO2013078997A1/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 MRP ring networks, and in particular, to a method for processing a fault in an MRP ring network and a corresponding MRP ring network.
  • MRP Media Redundancy Protocol
  • the MRP ring network consists of one MRM and multiple MRCs. Both MRM and MRC have the function of a switch. All kinds of Ethernet services can enter the MRP ring network through MRM or MRC connections.
  • the MRP ring network includes: an MRM node 101, a plurality of MRC nodes 102, a terminal node 103 accessing the ring network, and a link cable 104 connecting the nodes, wherein:
  • the MRM node 101 is a medium redundancy management node. Each ring network needs to have one and only one MRM node under normal working state; the MRM implements the following functions:
  • Test Frame Periodically send a test frame (Test Frame) to the ring network through its own two loop ports to detect the ring network state
  • the MRM cannot receive the test frames sent by each other during the set interval, the loop has a problem. At this time, the MRM sends a Topology Change Frame from the two ports. All nodes (including MRM and MRC) in the control ring network perform the empty filtering database FDB operation after a specific time interval;
  • the MRM receives the port up/down frame from the MRC.
  • topology state change frame After (LinkUp/LinkDown Frame), a topology state change frame is also issued; 5. MRM does not forward MRP protocol frames between its own two ports, including topology state change frames, test frames, and port uplink/downline frames.
  • the MRC node 102 which is a medium redundant client node, may have multiple MRCs in each ring network. Based on the performance requirements, the total number of nodes of the MRM and the MRC generally does not exceed 50; the MRC implements the following functions:
  • the port will send out the link up/down frame (LinkUp/LinkDown Frame) through two ports to notify the MRM of the change status.
  • the terminal node 103 the terminal node enters the ring network through the MRM or MRC connection, and is the initiator and receiver of the service; the terminal node may be a host or a common switch and a host connected thereto;
  • Link 104 used to connect the physical cable or logical path of each node.
  • the link error between the two nodes indicates that the communication between the nodes is blocked, and the loop status changes accordingly.
  • the state transition of MRM is shown in Figure 2.
  • the state machine of MRM is powered by initial state (Power_On), waiting for connection state (AC_STAT1), master port online state (PRM-UP), open loop state (CHK- R0) and closed loop state (CHK-RC);
  • the power-on initial state 201 complete the initialization work, including setting the two loop ports of the MRM to the BLOCKED state, and setting the related static address table;
  • Waiting for the connection state 202 after the initial state of power-on is completed, directly enters the waiting connection state (MRM state conversion 206), and its role is to wait for any port of the MRM to go online; in this state, since no port is online, no test frame is sent; Port online status 203, there is only one loop port online (LinkUp) state, in this state, the online port is called the main port, and is set to FORWARDING state (the other port (sub-port) is still BLOCKED Status); At the same time, start sending test frames (Test Frame) periodically to both ports (even if the secondary port is not online yet);
  • Open loop state 204 In this state, both loop ports are online (LinkUp) and the state is set to FORWARDING; this state is entered when there is a fault in the ring or link in the ring network (see MRM state transition 215). In the open loop state, the MRM periodically sends a test frame (Test Frame) to the two ports;
  • both loop ports are in the online state (LinkUp), and the primary port is set to the FORWARDING state, and the secondary port is set to the BLOCKED state; the ring network maintains this state during normal operation; MRM periodically sends a test frame (Test Frame) to the two ports; MRM state transition 207, when in the waiting connection state 202, if there is no port uplink (LinkUp), the state machine remains in the waiting connection state 202;
  • the MRM state transition 208 when in the waiting connection state 202, if a port is online (LinkUp), the state machine enters the main port online state 203, and the main port is set to the FORWARDING state, and the test frame (Test Frame) is started to be sent; Conversion 209, when in the primary port online state 203, if the only uplink (LinkUp) port is again offline (LinkDown), the state machine returns to the waiting connection state 202;
  • the MRM state transition 210 when in the primary port online state 203, if it does not receive the test frame sent by itself and the secondary port does not go online, it remains in the current state;
  • the state transition of the MRC is shown in Figure 3.
  • the state machine of the MRC is powered by the initial state (Power-On), waiting for the connection state.
  • AC—STATl Data Exchange Idle, DEP, Pass Through, Data Exchange, and Pass-through Idle (PT-IDLE, Pass Through Idle) Composition; among them,
  • the power-on initial state 301 the initialization work is completed, including setting the two loop ports of the MRC to the BLOCKED state, and setting the related static forwarding table;
  • Data exchange status 305 the intermediate transition state of the MRC from two port uplinks (LinkUp) to only one port uplink (LinkUp) transfer is called data exchange state;
  • MRC state transition 308 if in the waiting for connection state 302, the MRC two ports have not been online (LinkUp), the state is maintained in the waiting connection state 302;
  • MRC state transition 309 while waiting for connection state 302, when the MRC detects a loop port uplink (LinkUp), it is set as the master port, the port state is set to FORWARDING, enter the data exchange idle state 303;
  • LinkUp loop port uplink
  • the MRC state transition 311 when in the data exchange idle state 303, if only the primary port is online (LinkUp), it remains in the current state; if the topology state change frame sent by the MRM is received, the time carried in the topology state change frame is extracted. The parameter, and after waiting for the interval defined by the time parameter, the operation of clearing the filtering database FDB is performed; when the MRC state is converted 312, when the data exchange idle state 303 is reached, if the other port is also online (LinkUp), the state is converted into the punch-through state.
  • the default is to continuously send 5 frames, one every 1 millisecond; during this time, the state remains in the punch-through state 304;
  • the port is set as the primary port, and the port downlink frame (LinkDown Frame) is sent out from the two ports. The default is to continuously send 5 frames, and send one every 1 millisecond.
  • MRC state transition 315 in the through state 304 (see state transition 312 or state transition 318), if the default 5 port uplink frames are sent, the state is converted to the punch-through idle state 306; if the 5 ports are sent on the line frame In the process, after receiving the topology state change frame sent by the MRM (indicating that the MRM has observed that the MRC port state has changed and responded), the sending of the remaining port uplink frames is stopped, and the state is converted into the punch-through idle state 306;
  • MRC state transition 316 in data exchange state 305 (see state transition 314 or state transition 320), if the default 5 port offline frames are sent, the state is converted to data exchange idle state 303; if 5 ports are being sent During the process of the offline frame, after receiving the topology state change frame sent by the MRM (indicating that the MRM has observed that the MRC port status has changed and responded), the remaining port downlink frames are stopped, and the state is converted into data exchange. Idle state 303;
  • MRC state transition 317 in the data exchange state 305, if the remaining ports also go offline (LinkDown), then both ports are offline, then stop sending the port offline frame, the state is converted to wait for connection state 302;
  • the MRC state transition 318 when in the data exchange state 305, if the previously offline port is back online (LinkUp), then both ports are online, then the port downlink frame is stopped, the state is converted to the punch-through state 302, and the direction begins.
  • Outgoing port uplink frame (LinkUp Frame);
  • the MRC state transition 319 when in the data exchange state 305, begins to send the port offline frame (see state transition 314 or state transition 320); the default is to continuously send 5 frames, one every 1 millisecond; , the state remains in the data exchange state 305;
  • the MRC state is converted to 320.
  • the through state is idle 306, if a port goes offline (LinkDown), the state is converted into a data exchange state 305, and the port that is still online (LinkUp) is set as the master port, and starts to go out.
  • the MRC state transition 321 is in the through state idle state 306. If the port offline (LinkDown) does not occur, the state remains in this state; now, a link in the ring network fails, and then the link is restored.
  • LinkDown The specific process of MRP ring network redundancy protection:
  • Dotted line 407 although the link 407 is physically connected, since the secondary port of the MRM is set to the BLOCKED state, the service does not pass the link indicated by 407 (the solid line represents the path of the service between the nodes, and the dotted line represents the link due to the failure or port BLOCKED can not pass the business, the same below);
  • MRC 1 As shown by 401 in Figure 4, a normal MRC node, assuming that there is traffic communicating with MRC 1 402;
  • MRC 1 as shown by 402 in Figure 4, a normal MRC node, assuming that there is traffic communicating with MRC 0 401;
  • Link 403 in the normal state, MRC 0 401 and MRC 1 402 communicate through the directly connected link 403 (because the MRM sub-port is set to the BLOCKED state, MRC 0 and MRC 1 pass the address learning to select the link 403 To communicate); If a link between MRCs fails at a certain time, as shown in Figure 5, according to the protocol state machine conversion process, the following steps occur:
  • Step 402 at a certain moment, the link between the MRC 0 501 and the MRC 1 502 in FIG. 5 fails (link 503 is disconnected); Step 403, the two ports of the MRM cannot receive themselves due to the failure of the intermediate link
  • the sent test frame is converted into 215 by the MRM state, and the MRM enters the open loop state 204, and both ports are set to the FORWARDING state, and the topology state change frame is sent out;
  • Step 404 After receiving the topology state change frame, each node in the ring network changes the time interval parameter in the frame according to the topology state, starts a countdown, and performs an operation of clearing the filtering database FDB after the countdown is completed;
  • Step 405 After all the nodes perform the operation of clearing and filtering the database FDB, the node performs address learning and service forwarding operations again, and the service is turned on again;
  • step 406 the loop state transition is as shown in FIG. 5, wherein the dotted line represents that no traffic passes due to the link 503 failure, and the traffic circulates through the path (links 506, 507, and 508) indicated by the solid line. If the link failure is fixed at a certain time, according to the protocol state machine conversion process, the following steps occur:
  • Step 501 the link failure point is restored, and the link between the MRC 0 501 and the MRC 1 502 is reconnected normally; Step 502, since the entire link of the ring network is normal, the two loop ports of the MRM are re-received and mutually sent out.
  • Test frame Test Frame
  • Step 503 by MRM state conversion 214, the MRM enters a closed loop state 205, sets the secondary port from FORWARDING to BLOCKED, and issues a topology state change frame from the two loop ports;
  • Step 504 After receiving the topology state change frame, each node in the ring network changes the time interval parameter in the frame according to the topology state, starts a countdown, and performs an operation of clearing the filtering database FDB after the countdown is completed;
  • Step 505 After all the nodes perform the operation of clearing the filtering database FDB, the address learning and the service forwarding are performed again. Operation, the business is turned on again;
  • Step 506 the node loop state is restored to the state shown in FIG. 4, wherein the dotted line represents that the link has no traffic due to the MRM secondary port being in the BLOCKED state, and the traffic is circulated through the line (link 403) indicated by the solid line;
  • Steps 401-406 and steps 501-506 respectively represent the process of protecting the traffic flow according to the MRP protocol after a link error in the ring network and an incorrect link recovery.
  • Step 601 In the ring state diagram of the normal operation shown in FIG. 4, the MRC 0 401 and the MRC 1 402 communicate, and in the normal state, the MRC 0 401 and the MRC 1 402 are connected by the link 403 directly connected to the two. Communication; Step 602, at some point, the link between MRC 0 401 and MRC 1 402 fails (see the link in Figure 5)
  • the service re-addresses the learning, after which MRC 0 and MRC 1 communicate through the link through the MRM node, that is, step 401-step 406;
  • Step 603 assuming that the MRM is restarted due to the failure reason (shown by the MRM dotted line 605 in FIG. 6), during the MRM restart, the previously failed link 503 (ie, the link 603 in FIG. 6) is also repaired. , reclose, as shown in Figure 6;
  • the closed loop state 205 is used for state transition. Since the two ports of the MRM can receive the test frame sent by themselves, according to the state transition 217, the MRM is maintained in the closed loop state. 205, and its secondary port is in a BLOCKED state;
  • the present invention provides a method for handling a fault in a medium redundancy protocol MRP ring network, which ensures that the MRC can communicate normally when an MRC fault and an MRM fault occur simultaneously, or when a link fault and an MRM fault occur simultaneously.
  • the present invention also provides an MRP ring network in which normal ring communication can be ensured if an MRC failure or a link failure and an MRM failure occur simultaneously.
  • a method for processing a fault in a medium redundancy protocol MRP ring network comprising a medium redundancy management node MRM, a plurality of medium redundancy client nodes MRC, and a link connecting each node, wherein
  • the method includes the following steps: after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, the MRM also fails;
  • the MRM sends a topology state change frame during the restart.
  • a medium redundancy protocol MRP ring network includes a medium redundancy management node MRM, a plurality of medium redundant client nodes MRC and a link, wherein:
  • the MRC connecting the other MRC or the MRM through the link;
  • the link is used to connect the MRM and the multiple MRCs into the MRP ring network
  • the MRM is configured to manage the MRP ring network, after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, if the MRM also fails And after the MRC, or the link between the MRCs, or the failure of the link between the MRM and the MRC, the failure of the MRM is also restored and restarted, then the MRM A topology state change frame is sent during the restart.
  • FIG. 1 is a schematic diagram of an MRP ring network
  • FIG. 2 is a schematic diagram of state transition of an MRM
  • Figure 3 is a schematic diagram showing the state transition of the MRC
  • Figure 4 is a state diagram of the ring network during normal operation
  • Figure 5 is a state diagram of the ring network after a link failure occurs
  • Figure 6 shows the MRM restart operation and the faulty link recovery
  • FIG. 7 is a schematic diagram of the communication state between MRCs after the MRM restart is completed.
  • IEC International Electrotechnical Commission, International Electrotechnical Commissioner
  • MRP Media Redundancy Protocol, media redundancy protocol, defined by IEC 62439-2. Originally developed by Siemens, a redundant protection protocol based on a ring structure;
  • MRM Media Redundancy Manager, media redundancy management node, MRP administrator role defined by MRP protocol, only one MRM is allowed in each MRP ring network;
  • NO— TC No Topology Change, suppresses topology state change
  • NO—TC is an indicator variable inside MRM.
  • MRC Media Redundancy Client, media redundant client node, MRP client role defined by MRP protocol, one or more MRCs are allowed in each MRP ring network;
  • Ring Port The two ports of the MRM or MRC connected ring network are called loop ports. Each node has two loop ports connected to the same ring network. Among the two ring ports, first The port of the LinkUp is called the Primary Ring Port, and the other is called the Secondary Ring Port.
  • FDB Filtering Data Base, filtering database, lookup table established and maintained by the Ethernet switch for forwarding data frames, also called Forwarding Table;
  • Static forwarding table The forwarding entry for the special address configured by the administrator is configured according to the application requirements.
  • Clearing the filtering database (FDB) The action of the Ethernet switch to clear the internal filtering database (FDB). Affected;
  • Ethernet switch records the source address of the Ethernet frame entering a port and the entered port number into the filtering database for subsequent address lookup;
  • the Ethernet switch searches for the corresponding entry from the filtering database according to the destination address of the received Ethernet frame. If there is an entry corresponding to the destination address in the database, the frame is forwarded from the port specified in the entry. Go out; if the corresponding entry is not found, broadcast it from all ports, also called FLOODING operation;
  • Test Frame MRP test frame, MRM is used to detect the ring network status and periodically send specific MRP protocol frames;
  • Topology Change Frame The MRP control frame sent by all the nodes of the ring network after the MRM detects the change of the state of the ring network.
  • This frame contains a time parameter for clearing the filtering database FDB (default is 1. 5- 0. 5 milliseconds), indicating how many time intervals the node has to empty the filtering database FDB; after issuing such a frame, the MRM starts the countdown according to the time parameter carried in the sending frame, and after the countdown is completed, clears the filtering database.
  • FDB operation after receiving such a frame, each MRC node extracts the time parameter carried in the frame, and starts the countdown, and after the countdown is completed, performs the operation of clearing the filtering database FDB;
  • LinkUp I LinkDown Frame The MRP port uplink/downline message frame is sent by the MRC. After the MRC detects that the loop port of the local node is LinkUp/LinkDown, this message frame is sent to notify the MRM to take the corresponding action.
  • FORWARDING Forward state, one of the MRP loop port states, in which all frames are forwarded.
  • the MRM restart process if the original fault link (including the fault between the MRC and the fault between the MRM and the MRC) or the fault MRC is also restored, the inter-node communication may still be blocked, and the MRM in the existing MRP protocol The state machine has been modified.
  • the specific method is:
  • Step 701 When the MRM receives a port uplink (LinkUp) signal, and the state machine is converted from the waiting connection state 202 to the main port online state 203, the original state machine action only sets the main port to the FORWARDING state, and starts to send the test.
  • a test frame as shown in the state transition 208 in FIG. 2; the method proposed by the present invention is: adding a topology change frame (Topology Change Frame) behavior based on the original behavior (state transition 208);
  • Step 702 Perform a restart operation on the faulty MRM in FIG. 6 according to the method in step 701, and recover the fault link or the fault MRC in the ring network.
  • the MRM is in the restart process, if the faulty link has been Recovery, when the MRM detects that a loop port (primary port) is online, it is converted 208 by the state in FIG. 2, and the state machine transits from the waiting connection state 202 to the main port online state 203, and simultaneously issues a topology state change frame; After receiving the topology state change frame sent by the MRM in step 702, each node of the ring network extracts the time parameter carried in the frame, and starts the countdown. After the countdown is completed, the FDB operation is performed to clear the filter database; As shown in FIG. 7, the MRM service forwarding path originally reserved by the MRC 0 701 and the MRC 1 702 is cleared, and the two communicate through the link 703 through address learning and service forwarding, that is, the service is resumed;
  • Step 704 in synchronization with step 703, when the state machine of the MRM detects that the second port (the secondary port) is also online, the state transition 212 from the state in FIG. 2, and the MRM is changed from the primary port online state 203 to the closed loop state 205. And the secondary port is set to the BLOCKED state; since the loop is physically looped at this time, since the two ports of the MRM can receive the test frame sent by themselves, according to the state transition 217, the MRM is maintained in the closed loop state 205; Step 705, the state of the ring network after completing step 701 704 is as shown in FIG. 4.
  • the original MRP protocol can only handle one node failure or link failure, in actual applications, there may be two or more failure points (including MRM), when the link between MRC, or MRC, or After the link between the MRC and the MRM and the MRM fail simultaneously, if the MRM is restored (or restarted) after the other failure points are recovered, if only the original protocol is used, the service communication cannot be recovered due to the topology change ( Steps 601-605); Therefore, when the MRM transitions from the waiting connection state 202 to the primary port online state 203, the topology change frame is added to re-switch the service (steps 701-705);
  • the topology change state frame is sent, and the previously started node is emptied to filter the database FDB operation, thereby performing address learning and service forwarding, so that the service re-establishes communication;
  • the MRM will detect the loop status by periodically sending a test frame after the MRM works normally. If the ring network still has a fault, the MRM will send a topology state change frame according to the state transition 215, so that the service is enabled. Relearning and restoring; if the fault is recovered, according to the state transition 214, the MRM will also issue a topology state change frame to re-learn and recover the service.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a method for processing a fault in a media redundancy protocol (MRP) ring network and an MRP ring network. The MRP ring network comprises a media redundancy management node (MRM), a plurality of media redundancy client nodes (MRC), and links for connecting the nodes. The method for processing a fault in an MRP ring network comprises: after an MRC, a link between MRCs, or a link between an MRM and an MRC is faulty, the MRM being faulty; after the MRC, the link between the MRCs, or the link between the MRM and the MRC recovers from a fault, the MRM recovering from a fault and being restarted; the MRM sending a topology change frame when being restarted. In the process that the MRM is restarted, the topology change frame is sent, so that the MRC node can perform an operation of clearing a filtering database; through the address learning and service forwarding, communication is performed again through the link recovering from the fault, thereby ensuring that the MRC can perform communication normally in the case of multiple faults.

Description

说 明 书 一种处理 MRP环网中的故障的方法和 MRP环网 技术领域 本发明涉及 MRP环网技术领域, 具体地讲, 涉及处理 MRP环网中的故障的方法和相应的 MRP环网。 背景技术  TECHNICAL FIELD The present invention relates to the field of MRP ring networks, and in particular, to a method for processing a fault in an MRP ring network and a corresponding MRP ring network. Background technique
MRP (Media Redundancy Protocol , 介质冗余协议)是用于对环形网络中单个交换机或者 单个交换机链接发生错误而设计的。 MRP (Media Redundancy Protocol) is designed to make errors in a single switch or a single switch link in a ring network.
MRP环网由一个 MRM和多个 MRC组成, 其中, MRM和 MRC都具有交换机的功能, 各类以太 网业务可以通过 MRM或 MRC连接进入 MRP环网。  The MRP ring network consists of one MRM and multiple MRCs. Both MRM and MRC have the function of a switch. All kinds of Ethernet services can enter the MRP ring network through MRM or MRC connections.
如图 1所示, MRP环网的组成包括: 一个 MRM节点 101, 多个 MRC节点 102, 接入环网的 终端节点 103以及连接各节点之间的链路线缆 104, 其中:  As shown in FIG. 1, the MRP ring network includes: an MRM node 101, a plurality of MRC nodes 102, a terminal node 103 accessing the ring network, and a link cable 104 connecting the nodes, wherein:
MRM节点 101, 为介质冗余管理节点, 每个环网正常工作状态下, 需有且仅有一个 MRM节 点; MRM实现以下功能:  The MRM node 101 is a medium redundancy management node. Each ring network needs to have one and only one MRM node under normal working state; the MRM implements the following functions:
1. 周期性地通过自身的两个环路端口向环网发送测试帧 (Test Frame ) , 以检测环网状 态;  1. Periodically send a test frame (Test Frame) to the ring network through its own two loop ports to detect the ring network state;
2. 如果 MRM的一个环路端口能收到另一个环路端口发出的测试帧,说明环路正常,此时, MRM将其中一个端口 (主端口, 首先 LinkUp上线的端口称为主端口) 设为转发状态 105 (FORWARDING), 将另一个端口 (副端口) 设为阻塞状态 106 (BLOCKED), 以防止 业务成环;  2. If one loop port of the MRM can receive the test frame sent by another loop port, the loop is normal. At this time, the MRM will set one of the ports (the master port, the port on which the LinkUp goes online first as the master port). To forward state 105 (FORWARDING), set the other port (secondary port) to blocking state 106 (BLOCKED) to prevent the traffic from looping;
3. 如果 MRM在设定的时间间隔内两个端口都无法收到相互发出的测试帧, 说明环路存在 问题, 此时 MRM会从两个端口发出拓扑状态改变帧 (Topology Change Frame ), 用于 控制环网中所有节点 (包括 MRM和 MRC) 在特定时间间隔后进行清空过滤数据库 FDB 操作;  3. If the MRM cannot receive the test frames sent by each other during the set interval, the loop has a problem. At this time, the MRM sends a Topology Change Frame from the two ports. All nodes (including MRM and MRC) in the control ring network perform the empty filtering database FDB operation after a specific time interval;
4. 如果 MRM设置为响应 MRC 的端口变化, 则 MRM在收到 MRC发出的端口上线 /下线帧 4. If the MRM is set to respond to the MRC's port change, the MRM receives the port up/down frame from the MRC.
( LinkUp/LinkDown Frame ) 后, 也会发出拓扑状态改变帧; 5. MRM不会在其自身的两个端口间转发 MRP协议帧, 包括拓扑状态改变帧, 测试帧, 端 口上线 /下线帧; After (LinkUp/LinkDown Frame), a topology state change frame is also issued; 5. MRM does not forward MRP protocol frames between its own two ports, including topology state change frames, test frames, and port uplink/downline frames.
MRC节点 102, 为介质冗余客户节点, 每个环网中可以有多个 MRC, 基于对性能的要求, MRM和 MRC的节点总数一般不超过 50个; MRC实现以下功能:  The MRC node 102, which is a medium redundant client node, may have multiple MRCs in each ring network. Based on the performance requirements, the total number of nodes of the MRM and the MRC generally does not exceed 50; the MRC implements the following functions:
1. 在两个环路端口间转发 MRM发出的测试帧和拓扑状态改变帧;  1. Forward the test frame and topology state change frame sent by the MRM between the two loop ports;
2. 收到拓扑状态改变帧后, 提取拓扑状态改变帧里携带的时间参数, 并在等待此时间参 数定义的间隔后进行清空过滤数据库 FDB的操作;  2. After receiving the topology state change frame, extract the time parameter carried in the topology state change frame, and perform the operation of clearing the filtering database FDB after waiting for the interval defined by the time parameter;
3. 如果端口检测到链路状态变化 (LinkUp/LinkDown ) , 会通过两个端口发出端口上线 / 下线帧 (LinkUp/LinkDown Frame ), 用于将变化状态通知 MRM;  3. If the link status change (LinkUp/LinkDown) is detected, the port will send out the link up/down frame (LinkUp/LinkDown Frame) through two ports to notify the MRM of the change status.
终端节点 103, 终端节点通过 MRM或 MRC连接进入环网, 是业务的发起者和接收者; 终 端节点可以是一台主机或一个普通的交换机及其下连接的主机;  The terminal node 103, the terminal node enters the ring network through the MRM or MRC connection, and is the initiator and receiver of the service; the terminal node may be a host or a common switch and a host connected thereto;
链路 104, 用于连接各节点的物理线缆或逻辑通路, 两个节点间的链路出错代表节点间 的通信受阻, 环路状态也会相应发生变化。  Link 104, used to connect the physical cable or logical path of each node. The link error between the two nodes indicates that the communication between the nodes is blocked, and the loop status changes accordingly.
下面分别介绍 MRM和 MRC的状态机运行及转化关系;  The following describes the state machine operation and conversion relationship of MRM and MRC respectively;
MRM的状态转化如图 2所示, MRM的状态机由上电初始状态 (Power— On), 等待连接状态 (AC— STAT1 ), 主端口在线状态 (PRM— UP), 开环状态 (CHK— R0)和闭环状态 (CHK— RC)组成; 其中,  The state transition of MRM is shown in Figure 2. The state machine of MRM is powered by initial state (Power_On), waiting for connection state (AC_STAT1), master port online state (PRM-UP), open loop state (CHK- R0) and closed loop state (CHK-RC);
上电初始状态 201, 完成初始化的工作, 包括将 MRM的两个环路端口设为 BLOCKED状态, 设置相关的静态地址表;  The power-on initial state 201, complete the initialization work, including setting the two loop ports of the MRM to the BLOCKED state, and setting the related static address table;
等待连接状态 202, 上电初始状态完成后, 直接进入等待连接状态 (MRM状态转化 206), 其作用是等待 MRM的任一端口上线; 此状态下由于没有端口上线, 因而不发送测试帧; 主端口在线状态 203, 有且仅有一个环路端口在线 (LinkUp)时的状态, 此状态下, 将在 线的端口称为主端口, 并设为 FORWARDING状态 (另一个端口 (副端口) 仍为 BLOCKED状 态); 同时, 开始向两个端口 (即使此时副端口还没有上线) 周期性地发送测试帧 (Test Frame );  Waiting for the connection state 202, after the initial state of power-on is completed, directly enters the waiting connection state (MRM state conversion 206), and its role is to wait for any port of the MRM to go online; in this state, since no port is online, no test frame is sent; Port online status 203, there is only one loop port online (LinkUp) state, in this state, the online port is called the main port, and is set to FORWARDING state (the other port (sub-port) is still BLOCKED Status); At the same time, start sending test frames (Test Frame) periodically to both ports (even if the secondary port is not online yet);
开环状态 204, 此状态下, 两个环路端口均处于在线状态 (LinkUp ) , 且状态都设为 FORWARDING; 环网中有节点或链路存在故障时会进入此状态 (见 MRM状态转化 215 ); 开 环状态下, MRM会向两个端口周期性地发送测试帧 (Test Frame );  Open loop state 204. In this state, both loop ports are online (LinkUp) and the state is set to FORWARDING; this state is entered when there is a fault in the ring or link in the ring network (see MRM state transition 215). In the open loop state, the MRM periodically sends a test frame (Test Frame) to the two ports;
闭环状态 205, 此状态下, 两个环路端口均处于在线状态 (LinkUp ) , 且主端口设为 FORWARDING状态, 副端口设为 BLOCKED状态; 环网正常工作时会维持在此状态; 闭环状 态下, MRM会向两个端口周期性地发送测试帧 (Test Frame ); MRM状态转化 207, 当处于等待连接状态 202, 如果一直没有端口上线 (LinkUp), 状态机 维持在等待连接状态 202; Closed loop state 205. In this state, both loop ports are in the online state (LinkUp), and the primary port is set to the FORWARDING state, and the secondary port is set to the BLOCKED state; the ring network maintains this state during normal operation; MRM periodically sends a test frame (Test Frame) to the two ports; MRM state transition 207, when in the waiting connection state 202, if there is no port uplink (LinkUp), the state machine remains in the waiting connection state 202;
MRM状态转化 208, 当处于等待连接状态 202, 如果某一端口上线 (LinkUp), 状态机进入 主端口在线状态 203, 并将主端口设为 FORWARDING状态, 开始发送测试帧(Test Frame ); MRM状态转化 209, 当处于主端口在线状态 203, 如果惟一上线 (LinkUp) 的端口又重新 下线 (LinkDown), 状态机回到等待连接状态 202;  The MRM state transition 208, when in the waiting connection state 202, if a port is online (LinkUp), the state machine enters the main port online state 203, and the main port is set to the FORWARDING state, and the test frame (Test Frame) is started to be sent; Conversion 209, when in the primary port online state 203, if the only uplink (LinkUp) port is again offline (LinkDown), the state machine returns to the waiting connection state 202;
MRM状态转化 210, 当处于主端口在线状态 203时, 若没有收到自身发出的测试帧并且副 端口没有上线, 则仍保持在当前状态;  The MRM state transition 210, when in the primary port online state 203, if it does not receive the test frame sent by itself and the secondary port does not go online, it remains in the current state;
M履状态转化 211, 当处于开环状态 204时, 若有一个端口下线 (LinkDown), 则进入主 端口在线状态 202; 若下线的是原先的主端口, 则将原先的副端口 (仍在线)设为新的主 端口, 并发送拓扑状态改变帧 (因为主端口的变化会引起环路中业务方向的变化); MRM状态转化 212, 当处于主端口在线状态 203时, 若收到自身发出的测试帧 (说明环路 已通, 此时设置 NO— TC = 0)或者副端口上线 (此时两个端口均上线, 环路的状态还未知, 可以后续通过测试帧继续检测, 此时设置 NO— TC = 1 ), 转至闭环状态 205;  The M-state transition 211, when in the open-loop state 204, if there is a port offline (LinkDown), the main port is in the online state 202; if the offline is the original primary port, the original secondary port is still Online) set to the new primary port and send the topology status change frame (because the change of the primary port will cause the change of the service direction in the loop); the MRM state transition 212, when it is in the online status of the primary port 203, if it receives itself The test frame is sent (indicating that the loop is open, NO_TC = 0 is set at this time) or the secondary port is online. At this time, both ports are online, and the state of the loop is unknown. You can continue to test through the test frame. Set NO_TC = 1) to go to closed loop state 205;
MRM状态转化 213, 当处于开环状态 204时, 若一直无法收到自身发出的测试帧 (说明环 路还是存在问题) 或者收到 MRC发出的端口上线 /下线帧 (表明 MRC有变化, MRM还是要 通过测试帧的检测来判断环路状态), 状态维持开环状态 204; MRM state transition 213, when in the open loop state 204, if it has been unable to receive the test frame sent by itself (indicating that the loop still has a problem) or receives the port uplink/downline frame sent by the MRC (indicating that the MRC has changed, MRM Still to judge the loop state by the detection of the test frame), the state maintains the open loop state 204;
MRM状态转化 214, 当处于开环状态 204时, 若收到自身发出的测试帧 (说明环路已通, 设置 NO— TC = 0), 此时, 状态机转至闭环状态 205, 并通过两个端口发出拓扑状态改变 帧;  The MRM state transition 214, when in the open loop state 204, if it receives a test frame sent by itself (indicating that the loop is open, setting NO_TC = 0), at this time, the state machine goes to the closed loop state 205, and passes two Ports issue topology state change frames;
MRM状态转化 215, 当处于闭环状态 205时, 若连续三个测试帧的时间间隔 (默认为 1毫 秒) 后没有收到测试帧, 则状态转为开环状态; 若当前 NO— TC = 0, 则还会向外发送拓扑 状态改变帧; 若当前 NO— TC = 1, 则不发送拓扑状态改变帧 (见 MRM状态转化 212、 214 和 217 );  The MRM state transition 215, when in the closed loop state 205, if the test frame is not received after the interval of three consecutive test frames (the default is 1 millisecond), the state transitions to the open loop state; if the current NO_TC = 0, The topology state change frame is also sent out; if the current NO_TC = 1, the topology state change frame is not sent (see MRM state transitions 212, 214 and 217);
M履状态转化 216, 当处于闭环状态 205时, 若有一个端口下线 (LinkDown), 则进入主 端口在线状态 202; 若下线的是原先的主端口, 则将原先的副端口 (仍在线)设为新的主 端口, 并发送拓扑状态改变帧 (因为主端口的变化会引起环路中业务方向的变化); MRM状态转化 217, 当处于闭环状态 205时, 若收到自身发出的测试帧 (说明环路正常, 设置 NO— TC = 0), 则维持在闭环状态 205;  M-state transition 216, when in the closed-loop state 205, if there is a port offline (LinkDown), then enter the main port online state 202; if the offline is the original primary port, the original secondary port (still online ) set to the new primary port, and send the topology state change frame (because the change of the primary port will cause the change of the service direction in the loop); MRM state transition 217, when in the closed loop state 205, if it receives the test issued by itself Frame (indicating loop normal, setting NO_TC = 0), then maintaining in closed loop state 205;
MRC的状态转化如图 3所示, MRC的状态机由上电初始状态 (Power— On), 等待连接状态 (AC— STATl ), 数据交换空闲状态 (DE— IDLE, Data Exchange Idle ) , 穿通状态 (PT, Pass Through),数据交换状态(DE, Data Exchange)和穿通空闲状态(PT— IDLE, Pass Through Idle) 组成; 其中, The state transition of the MRC is shown in Figure 3. The state machine of the MRC is powered by the initial state (Power-On), waiting for the connection state. (AC—STATl), Data Exchange Idle, DEP, Pass Through, Data Exchange, and Pass-through Idle (PT-IDLE, Pass Through Idle) Composition; among them,
上电初始状态 301, 完成初始化的工作, 包括将 MRC的两个环路端口设为 BLOCKED状态, 设置相关的静态转发表;  The power-on initial state 301, the initialization work is completed, including setting the two loop ports of the MRC to the BLOCKED state, and setting the related static forwarding table;
等待连接状态 302, 上电初始状态完成后, 直接进入等待连接状态 (MRC状态转化 307), 其作用是等待 MRC的环路端口上线 (LinkUp);  Waiting for the connection state 302, after the initial state of the power-on is completed, directly enters the waiting connection state (MRC state conversion 307), and its role is to wait for the loop port of the MRC to go online (LinkUp);
数据交换空闲状态 303, 此状态表明 MRC有且仅有一个端口处于稳定地在线(LinkUp)状 态;  Data exchange idle state 303, this state indicates that the MRC has one and only one port is in a steady online (LinkUp) state;
穿通状态 304, MRC从一个端口上线 (LinkUp) 到两个端口上线 (LinkUp) 转移的中间过 渡状态称为穿通状态;  Through state 304, the intermediate transition state of the MRC from one port uplink (LinkUp) to two port uplinks (LinkUp) is called the punch-through state;
数据交换状态 305, MRC从两个端口上线 (LinkUp) 到只有一个端口上线 (LinkUp) 转移 的中间过渡状态称为数据交换状态;  Data exchange status 305, the intermediate transition state of the MRC from two port uplinks (LinkUp) to only one port uplink (LinkUp) transfer is called data exchange state;
穿通空闲状态 306, MRC两个端口都稳定地在线 (LinkUp) 的状态称为穿通空闲状态, 此 时, 两个环路端口都设为 FORWARDING;  Pass-through idle state 306, the MRC two ports are in a stable online (LinkUp) state called the punch-through idle state, at this time, both loop ports are set to FORWARDING;
MRC状态转化 308,如果处于等待连接状态 302时, MRC两个端口一直都没有上线(LinkUp), 则状态维持在等待连接状态 302;  MRC state transition 308, if in the waiting for connection state 302, the MRC two ports have not been online (LinkUp), the state is maintained in the waiting connection state 302;
MRC状态转化 309, 处于等待连接状态 302时, 当 MRC检测到某一环路端口上线(LinkUp) 时, 将其设为主端口, 端口状态设为 FORWARDING, 进入数据交换空闲状态 303;  MRC state transition 309, while waiting for connection state 302, when the MRC detects a loop port uplink (LinkUp), it is set as the master port, the port state is set to FORWARDING, enter the data exchange idle state 303;
MRC状态转化 310, 处于数据交换空闲状态 303 时, 若惟一在线 (LinkUp) 的端口下线 MRC state transition 310, in the data exchange idle state 303, if the only online (LinkUp) port goes offline
(LinkDown) 了, 此时, 重新回到等待连接状态 302; (LinkDown), at this point, return to the waiting connection state 302;
MRC状态转化 311, 处于数据交换空闲状态 303时, 若一直只有主端口在线 (LinkUp), 则维持在当前状态; 若收到 MRM发出的拓扑状态改变帧, 则提取拓扑状态改变帧里携带 的时间参数, 并在等待此时间参数定义的间隔后进行清空过滤数据库 FDB的操作; MRC状态转化 312, 处于数据交换空闲状态 303时, 若另一端口也上线 (LinkUp) 了, 则 状态转化为穿通状态 304, 并开始从两个环路端口向外发送端口上线帧 (LinkUp Frame); MRC状态转化 313, 处于穿通状态 304时, 开始向外发送端口上线帧 (见状态转化 312或 状态转化 318); 默认是连续发送 5个帧, 每隔 1毫秒发一个; 这段时间内, 状态保持在 穿通状态 304;  The MRC state transition 311, when in the data exchange idle state 303, if only the primary port is online (LinkUp), it remains in the current state; if the topology state change frame sent by the MRM is received, the time carried in the topology state change frame is extracted. The parameter, and after waiting for the interval defined by the time parameter, the operation of clearing the filtering database FDB is performed; when the MRC state is converted 312, when the data exchange idle state 303 is reached, if the other port is also online (LinkUp), the state is converted into the punch-through state. 304, and starts to send the port uplink frame (LinkUp Frame) from the two loop ports; the MRC state transition 313, when in the punch-through state 304, starts to send the port uplink frame (see state transition 312 or state transition 318); The default is to continuously send 5 frames, one every 1 millisecond; during this time, the state remains in the punch-through state 304;
MRC状态转化 314, 处于穿通状态 304时, 若某一端口发生下线 (LinkDown), 则转化为 数据交换状态 305, 并停止发送端口上线帧 (LinkUp Frame), 将仍在线 (LinkUp) 的端 口设为主端口, 开始从两个端口向外发送端口下线帧 (LinkDown Frame ), 默认是连续发 送 5个帧, 每隔 1毫秒发一个; The MRC state transition 314, when in the through state 304, if a port goes offline (LinkDown), it is converted into a data exchange state 305, and stops transmitting the port uplink frame (LinkUp Frame), which will still be online (LinkUp) end The port is set as the primary port, and the port downlink frame (LinkDown Frame) is sent out from the two ports. The default is to continuously send 5 frames, and send one every 1 millisecond.
MRC状态转化 315, 处于穿通状态 304 (见状态转化 312或状态转化 318 ) 时, 若发送完 默认的 5个端口上线帧, 则状态转化为穿通空闲状态 306; 若在发送 5个端口上线帧的过 程中, 收到 MRM发出的拓扑状态改变帧 (表明 MRM已观察到 MRC的端口状态发生变化, 并作出了响应), 则停止发送剩余的端口上线帧, 状态转化为穿通空闲状态 306;  MRC state transition 315, in the through state 304 (see state transition 312 or state transition 318), if the default 5 port uplink frames are sent, the state is converted to the punch-through idle state 306; if the 5 ports are sent on the line frame In the process, after receiving the topology state change frame sent by the MRM (indicating that the MRM has observed that the MRC port state has changed and responded), the sending of the remaining port uplink frames is stopped, and the state is converted into the punch-through idle state 306;
MRC状态转化 316, 处于数据交换状态 305 (见状态转化 314或状态转化 320) 时, 若发 送完默认的 5个端口下线帧, 则状态转化为数据交换空闲状态 303; 若在发送 5个端口下 线帧的过程中, 收到 MRM发出的拓扑状态改变帧 (表明 MRM已观察到 MRC的端口状态发 生变化, 并作出了响应), 则停止发送剩余的端口下线帧, 状态转化为数据交换空闲状态 303;  MRC state transition 316, in data exchange state 305 (see state transition 314 or state transition 320), if the default 5 port offline frames are sent, the state is converted to data exchange idle state 303; if 5 ports are being sent During the process of the offline frame, after receiving the topology state change frame sent by the MRM (indicating that the MRM has observed that the MRC port status has changed and responded), the remaining port downlink frames are stopped, and the state is converted into data exchange. Idle state 303;
MRC状态转化 317, 处于数据交换状态 305时, 若剩下的端口也发生下线 (LinkDown) , 此时两个端口均下线, 则停止发送端口下线帧, 状态转化为等待连接状态 302;  MRC state transition 317, in the data exchange state 305, if the remaining ports also go offline (LinkDown), then both ports are offline, then stop sending the port offline frame, the state is converted to wait for connection state 302;
MRC状态转化 318, 处于数据交换状态 305时, 若先前下线的端口重新上线 (LinkUp) , 此时两个端口均在线, 则停止发送端口下线帧, 状态转化为穿通状态 302, 并开始向外发 送端口上线帧 (LinkUp Frame );  The MRC state transition 318, when in the data exchange state 305, if the previously offline port is back online (LinkUp), then both ports are online, then the port downlink frame is stopped, the state is converted to the punch-through state 302, and the direction begins. Outgoing port uplink frame (LinkUp Frame);
MRC状态转化 319,处于数据交换状态 305时,开始向外发送端口下线帧(见状态转化 314 或状态转化 320); 默认是连续发送 5个帧, 每隔 1毫秒发一个; 这段时间内, 状态保持 在数据交换状态 305;  The MRC state transition 319, when in the data exchange state 305, begins to send the port offline frame (see state transition 314 or state transition 320); the default is to continuously send 5 frames, one every 1 millisecond; , the state remains in the data exchange state 305;
MRC状态转化 320, 处于穿通空闲状态 306时, 若某一端口发生下线 (LinkDown), 则状 态转化为数据交换状态 305, 将仍就在线 (LinkUp) 的端口设为主端口, 并开始向外发送 端口下线帧;  The MRC state is converted to 320. When the through state is idle 306, if a port goes offline (LinkDown), the state is converted into a data exchange state 305, and the port that is still online (LinkUp) is set as the master port, and starts to go out. Send port offline frame;
MRC状态转化 321, 处于穿通空闲状态 306时, 若没有发生端口下线 (LinkDown), 则一 直保持在此状态; 现在以环网中一个链路发生故障, 之后链路恢复的这种情况来说明 MRP环网冗余保护的 具体过程:  The MRC state transition 321 is in the through state idle state 306. If the port offline (LinkDown) does not occur, the state remains in this state; now, a link in the ring network fails, and then the link is restored. The specific process of MRP ring network redundancy protection:
正常工作状态下, MRP环网的状态如图 4所示, 其中,  Under normal working conditions, the state of the MRP ring network is as shown in Figure 4, where
BL0CKED404, 表示 MRM的副端口设为 BLOCKED状态, 以防止业务成环;  BL0CKED404, indicating that the secondary port of the MRM is set to the BLOCKED state to prevent the service from being looped;
虚线 407, 虽然链路 407是物理连通的, 但是由于 MRM的副端口设为 BLOCKED状态, 业务 不会通过 407所示链路 (实线代表节点间业务的通路, 虚线代表此链路由于故障或端口 BLOCKED而无法通业务, 下同); Dotted line 407, although the link 407 is physically connected, since the secondary port of the MRM is set to the BLOCKED state, the service does not pass the link indicated by 407 (the solid line represents the path of the service between the nodes, and the dotted line represents the link due to the failure or port BLOCKED can not pass the business, the same below);
MRC 0, 由图 4中 401所示, 普通 MRC节点, 假设有业务与 MRC 1 402通信;  MRC 0, as shown by 401 in Figure 4, a normal MRC node, assuming that there is traffic communicating with MRC 1 402;
MRC 1, 由图 4中 402所示, 普通 MRC节点, 假设有业务与 MRC 0 401通信;  MRC 1, as shown by 402 in Figure 4, a normal MRC node, assuming that there is traffic communicating with MRC 0 401;
链路 403, 正常状态下, MRC 0 401和 MRC 1 402通过两者直接相连的链路 403进行通信 (由于 MRM的副端口设为 BLOCKED状态, MRC 0和 MRC 1经过地址学习会选择链路 403进 行通信); 若某一时刻 MRC间的一个链路发生故障, 如图 5所示, 依据协议状态机转化流程, 发生 以下几步动作:  Link 403, in the normal state, MRC 0 401 and MRC 1 402 communicate through the directly connected link 403 (because the MRM sub-port is set to the BLOCKED state, MRC 0 and MRC 1 pass the address learning to select the link 403 To communicate); If a link between MRCs fails at a certain time, as shown in Figure 5, according to the protocol state machine conversion process, the following steps occur:
步骤 401, 环网处于正常状态, MRM处于闭环状态 205, 根据状态转化 217, 此时 NO— TC = 0;  Step 401, the ring network is in a normal state, the MRM is in a closed loop state 205, and according to the state transition 217, at this time NO_TC = 0;
步骤 402, 某一时刻, 图 5中 MRC 0 501和 MRC 1 502之间链路发生故障(链路 503断开); 步骤 403, MRM的两个端口由于中间链路的故障而无法收到自身发出的测试帧, 由 MRM状 态转化 215, MRM进入开环状态 204, 将两个端口都设为 FORWARDING状态, 并向外发出拓 扑状态改变帧;  Step 402, at a certain moment, the link between the MRC 0 501 and the MRC 1 502 in FIG. 5 fails (link 503 is disconnected); Step 403, the two ports of the MRM cannot receive themselves due to the failure of the intermediate link The sent test frame is converted into 215 by the MRM state, and the MRM enters the open loop state 204, and both ports are set to the FORWARDING state, and the topology state change frame is sent out;
步骤 404, 环网中各节点都收到拓扑状态改变帧后, 分别根据拓扑状态改变帧中的时间间 隔参数, 启动倒计时, 在倒计时完成后, 进行清空过滤数据库 FDB的操作;  Step 404: After receiving the topology state change frame, each node in the ring network changes the time interval parameter in the frame according to the topology state, starts a countdown, and performs an operation of clearing the filtering database FDB after the countdown is completed;
步骤 405, 所有节点进行清空过滤数据库 FDB操作之后, 节点重新进行地址学习和业务转 发的操作, 业务得以再次导通;  Step 405: After all the nodes perform the operation of clearing and filtering the database FDB, the node performs address learning and service forwarding operations again, and the service is turned on again;
步骤 406, 环路状态转化如图 5所示, 其中, 虚线代表由于链路 503故障而无业务通过, 业务通过实线所示的路径 (链路 506、 507和 508 ) 流通。 若某一时刻链路故障被修复, 依据协议状态机转化流程, 发生以下几步动作:  In step 406, the loop state transition is as shown in FIG. 5, wherein the dotted line represents that no traffic passes due to the link 503 failure, and the traffic circulates through the path (links 506, 507, and 508) indicated by the solid line. If the link failure is fixed at a certain time, according to the protocol state machine conversion process, the following steps occur:
步骤 501, 链路故障点恢复, MRC 0 501和 MRC 1 502之间的链路重新正常连接; 步骤 502, 由于环网整个链路都正常了, MRM的两个环路端口重新收到相互发出的测试帧 ( Test Frame );  Step 501, the link failure point is restored, and the link between the MRC 0 501 and the MRC 1 502 is reconnected normally; Step 502, since the entire link of the ring network is normal, the two loop ports of the MRM are re-received and mutually sent out. Test frame (Test Frame);
步骤 503, 由 MRM状态转化 214, MRM进入闭环状态 205, 将副端口从 FORWARDING设为 BLOCKED, 并从两个环路端口发出拓扑状态改变帧;  Step 503, by MRM state conversion 214, the MRM enters a closed loop state 205, sets the secondary port from FORWARDING to BLOCKED, and issues a topology state change frame from the two loop ports;
步骤 504, 环网中各节点都收到拓扑状态改变帧后, 分别根据拓扑状态改变帧中的时间间 隔参数, 启动倒计时, 在倒计时完成后, 进行清空过滤数据库 FDB的操作;  Step 504: After receiving the topology state change frame, each node in the ring network changes the time interval parameter in the frame according to the topology state, starts a countdown, and performs an operation of clearing the filtering database FDB after the countdown is completed;
步骤 505, 所有节点进行清空过滤数据库 FDB操作之后, 重新进行地址学习和业务转发的 操作, 业务再次导通; Step 505: After all the nodes perform the operation of clearing the filtering database FDB, the address learning and the service forwarding are performed again. Operation, the business is turned on again;
步骤 506, 节点环路状态恢复到图 4所示的状态, 其中, 虚线代表此链路由于 MRM副端口 为 BLOCKED状态而无业务通过, 业务通过实线所示的线路 (链路 403 ) 流通;  Step 506, the node loop state is restored to the state shown in FIG. 4, wherein the dotted line represents that the link has no traffic due to the MRM secondary port being in the BLOCKED state, and the traffic is circulated through the line (link 403) indicated by the solid line;
步骤 401-406和步骤 501-506分别代表了环网中一个链路发生错误以及错误的链路恢复 后, 根据 MRP协议进行的保护业务流通的过程。  Steps 401-406 and steps 501-506 respectively represent the process of protecting the traffic flow according to the MRP protocol after a link error in the ring network and an incorrect link recovery.
上述过程虽然仅仅示出了 MRC间链路故障后恢复的过程, 但是 MRM和 MRC之间的链路故 障以及恢复的过程和上述过程相同, 不再赘述。 下面列举一种现实中可能出现的情形 (MRC间链路或 MRC节点与 MRM同时出现故障, 又 都先后恢复) 而仅用现有协议无法恢复节点间业务通信的情况:  Although the above process only shows the process of recovering after a link failure between MRCs, the link failure between MRM and MRC and the recovery process are the same as those described above, and will not be described again. The following is a list of situations that may occur in reality (the link between the MRC or the MRC node fails simultaneously with the MRM, and both recover) and the service communication between the nodes cannot be restored using only the existing protocol:
步骤 601, 在图 4所示的正常工作时的环网状态图中, MRC 0 401和 MRC 1 402进行通信, 正常状态下, MRC 0 401与 MRC 1 402通过两者直接相连的链路 403进行通信; 步骤 602, 某一时刻, MRC 0 401与 MRC 1 402之间的链路发生故障 (参见图 5中的链路 Step 601: In the ring state diagram of the normal operation shown in FIG. 4, the MRC 0 401 and the MRC 1 402 communicate, and in the normal state, the MRC 0 401 and the MRC 1 402 are connected by the link 403 directly connected to the two. Communication; Step 602, at some point, the link between MRC 0 401 and MRC 1 402 fails (see the link in Figure 5)
503), MRM检测到故障后(无法收到自身发出的测试帧),发出拓扑状态改变帧(Topology503), after the MRM detects the fault (cannot receive the test frame sent by itself), issues the topology state change frame (Topology
Change Frame ) , 所有节点清空过滤数据库 FDB之后, 业务重新进行地址学习, 此后 MRC 0 与 MRC 1通过经由 MRM节点的链路进行通信, 即步骤 401-步骤 406 ; Change Frame), after all the nodes clear the filtering database FDB, the service re-addresses the learning, after which MRC 0 and MRC 1 communicate through the link through the MRM node, that is, step 401-step 406;
步骤 603, 假设此时, MRM由于故障原因进行重启 (图 6中 MRM虚线 605所示), 在 MRM 重启的过程中, 先前故障的链路 503 (即图 6中链路 603 ) 刚好也被修复, 重新闭合, 如 图 6所示;  Step 603, assuming that the MRM is restarted due to the failure reason (shown by the MRM dotted line 605 in FIG. 6), during the MRM restart, the previously failed link 503 (ie, the link 603 in FIG. 6) is also repaired. , reclose, as shown in Figure 6;
步骤 604, MRM重启完成后, 由于环路中故障已经消除, MRM的状态机按上电初始化 201-〉 等待连接状态 202-〉 (状态转化 208 ) 主端口在线状态 203-〉 (状态转化 212, 且条件为 副端口上线, 并设置了 NO— TC = 1 ) 闭环状态 205进行状态转换; 由于 MRM的两个端口能 收到自身发出的测试帧, 根据状态转化 217, MRM—直维持在闭环状态 205, 且其副端口 为 BLOCKED状态;  Step 604, after the MRM restart is completed, because the fault in the loop has been eliminated, the state machine of the MRM is initialized by power-on 201-> waiting for the connection state 202-> (state transition 208) the master port online state 203-> (state transition 212, The condition is that the secondary port is online, and NO_TC = 1 is set. The closed loop state 205 is used for state transition. Since the two ports of the MRM can receive the test frame sent by themselves, according to the state transition 217, the MRM is maintained in the closed loop state. 205, and its secondary port is in a BLOCKED state;
步骤 605, 由于 MRC 0与 MRC 1内部的 FDB没有进行清除操作 (因为 NO— TC = 1, MRM没 有发出拓扑状态改变帧来让各个节点清空过滤数据库 FDB), 仍保留先前经由 MRM的业务 转发路径 (即图 7中链路 706、 707和 708), 而 MRM的副端口已经是 BLOCKED 704状态, 业务无法通过 (虚线链路 707所示); 因此, 虽然环路的物理连接已经恢复, 但是 MRC 0 与 MRC 1之间却仍无法通信, 如图 7所示。  Step 605, since the MDB 0 and the FDB inside the MRC 1 do not perform the clear operation (because NO_TC = 1, the MRM does not issue the topology state change frame to let each node clear the filtering database FDB), and still retains the service forwarding path previously through the MRM. (ie, links 706, 707, and 708 in FIG. 7), and the secondary port of the MRM is already in the BLOCKED 704 state, and the service cannot pass (shown by the dotted link 707); therefore, although the physical connection of the loop has been restored, the MRC 0 still cannot communicate with MRC 1, as shown in Figure 7.
上述过程虽然仅仅示出了 MRC间链路故障和 MRM故障同时发生后恢复过程中所出现的问 题, 但是 MRM和 MRC间的链路故障和 MRM故障同时发生后恢复的过程中也会存在和上述问题 相同的问题, 不再赘述。 发明内容 本发明提供了一种处理介质冗余协议 MRP环网中的故障的方法,实现了在 MRC故障和 MRM 故障同时发生, 或者链路故障和 MRM故障同时发生时, 保证 MRC能够正常通信。 Although the above process only shows the problems occurring in the recovery process after the MRC link failure and the MRM failure occur simultaneously, the link failure between the MRM and the MRC and the MRM failure occur simultaneously after the recovery process and the above Problem The same problem will not be repeated. SUMMARY OF THE INVENTION The present invention provides a method for handling a fault in a medium redundancy protocol MRP ring network, which ensures that the MRC can communicate normally when an MRC fault and an MRM fault occur simultaneously, or when a link fault and an MRM fault occur simultaneously.
本发明还提供了一种 MRP环网, 在此环网中, 如果在 MRC故障或者链路故障和 MRM故障 同时发生时, 能够保证此环网正常通信。  The present invention also provides an MRP ring network in which normal ring communication can be ensured if an MRC failure or a link failure and an MRM failure occur simultaneously.
为了达到上述目的, 本发明的技术方案是这样来实现的:  In order to achieve the above object, the technical solution of the present invention is implemented as follows:
一种处理介质冗余协议 MRP环网中的故障的方法, 所述 MRP环网包括一个介质冗余管理 节点 MRM、 多个介质冗余客户节点 MRC和连接各节点的链路, 其特征在于, 包括以下步骤: 所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障后, 所 述 MRM也发生故障;  A method for processing a fault in a medium redundancy protocol MRP ring network, the MRP ring network comprising a medium redundancy management node MRM, a plurality of medium redundancy client nodes MRC, and a link connecting each node, wherein The method includes the following steps: after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, the MRM also fails;
在所述 MRC或者所述 MRC间的链路所发生的故障恢复后, 所述 MRM的故障恢复并重新启 动;  After the failure of the link between the MRC or the MRC is recovered, the failure of the MRM is restored and restarted;
所述 MRM在重新启动的过程中发送拓扑状态改变帧。  The MRM sends a topology state change frame during the restart.
一种介质冗余协议 MRP环网, 所述 MRP环网包括一个介质冗余管理节点 MRM、 多个介质 冗余客户节点 MRC和链路, 其特征在于:  A medium redundancy protocol MRP ring network, the MRP ring network includes a medium redundancy management node MRM, a plurality of medium redundant client nodes MRC and a link, wherein:
所述 MRC, 通过所述链路连接其它 MRC或所述 MRM;  The MRC, connecting the other MRC or the MRM through the link;
所述链路, 用于将所述 MRM和所述多个 MRC串联成所述 MRP环网;  The link is used to connect the MRM and the multiple MRCs into the MRP ring network;
所述 MRM, 用于管理所述 MRP环网, 在所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM 和所述 MRC间的链路发生故障后, 如果所述 MRM也发生故障, 并且在所述 MRC、 或者所述 MRC 间的链路、 或者所述 MRM和所述 MRC间的链路所发生的故障恢复后, 所述 MRM的故障也恢复 并重新启动, 那么所述 MRM在重新启动的过程中发送拓扑状态改变帧。  The MRM is configured to manage the MRP ring network, after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, if the MRM also fails And after the MRC, or the link between the MRCs, or the failure of the link between the MRM and the MRC, the failure of the MRM is also restored and restarted, then the MRM A topology state change frame is sent during the restart.
本发明所提供的处理介质冗余协议 MRP环网中的故障的方法和 MRP环网, 通过在 MRM重 新启动的过程中, 发送拓扑状态改变帧, 使得 MRC节点可以进行清空过滤数据库 FDB的操作, 从而使得 MRC原先保留的经 MRM的业务转发路径被清除, 通过地址学习和业务转发, 重新通 过恢复后的故障链路进行通信, 保证了在多故障发生的情况下, MRC能够正常通信。 附图说明 图 1是 MRP环网示意图;  The method for processing a fault in the MRP ring network and the MRP ring network provided by the present invention, by sending a topology state change frame during the MRM restart process, enables the MRC node to perform the operation of clearing the filtering database FDB. Therefore, the MRM service forwarding path originally reserved by the MRC is cleared, and the address recovery and the service forwarding are used to re-transmit the recovered faulty link to ensure that the MRC can communicate normally in the event of multiple faults. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of an MRP ring network;
图 2是 MRM的状态转化示意图; 图 3是 MRC的状态转化示意图; 2 is a schematic diagram of state transition of an MRM; Figure 3 is a schematic diagram showing the state transition of the MRC;
图 4是正常工作时的环网状态图;  Figure 4 is a state diagram of the ring network during normal operation;
图 5是发生一个链路故障后的环网状态图;  Figure 5 is a state diagram of the ring network after a link failure occurs;
图 6是 MRM进行重启操作, 同时故障链路恢复;  Figure 6 shows the MRM restart operation and the faulty link recovery;
图 7是 MRM重启完成后 MRC间通信状态示意图 具体实施方式 下面对涉及到的名词进行解释:  Figure 7 is a schematic diagram of the communication state between MRCs after the MRM restart is completed. DETAILED DESCRIPTION The following terms are explained:
IEC : International Electrotechnical Commission, 国际电工委员;  IEC : International Electrotechnical Commission, International Electrotechnical Commissioner;
MRP : Media Redundancy Protocol , 介质冗余协议, 由 IEC 62439-2定义。 最初由西门 子公司开发, 基于环形结构的冗余保护协议;  MRP: Media Redundancy Protocol, media redundancy protocol, defined by IEC 62439-2. Originally developed by Siemens, a redundant protection protocol based on a ring structure;
MRM : Media Redundancy Manager, 介质冗余管理节点, MRP协议定义的 MRP管理员角 色, 每个 MRP环网中只允许存在一个 MRM;  MRM: Media Redundancy Manager, media redundancy management node, MRP administrator role defined by MRP protocol, only one MRM is allowed in each MRP ring network;
NO— TC : No Topology Change, 抑制拓扑状态改变; NO— TC为 MRM内部的一个指示变量, 当 NO— TC = 1时, 不发送拓扑状态改变帧, 当 NO— TC = 0时, 可以发送拓扑状态改变帧; NO— TC : No Topology Change, suppresses topology state change; NO—TC is an indicator variable inside MRM. When NO—TC=1, no topology state change frame is sent. When NO—TC=0, the topology can be sent. State change frame;
MRC : Media Redundancy Client, 介质冗余客户节点, MRP协议定义的 MRP客户端角色, 每个 MRP环网中允许存在一个或多个 MRC; MRC: Media Redundancy Client, media redundant client node, MRP client role defined by MRP protocol, one or more MRCs are allowed in each MRP ring network;
Ring Port : 环路端口, MRM或 MRC连接环网的两个端口称为环路端口, 每个节点有且 仅有两个环路端口连入同一个环网; 两个环路端口中, 首先上线 (LinkUp) 的端口称为主端 口 (Primary Ring Port ), 而另一个称为副端口 (Secondary Ring Port );  Ring Port: The two ports of the MRM or MRC connected ring network are called loop ports. Each node has two loop ports connected to the same ring network. Among the two ring ports, first The port of the LinkUp is called the Primary Ring Port, and the other is called the Secondary Ring Port.
FDB : Filtering Data Base, 过滤数据库, 以太网交换机用于转发数据帧而建立和维护 的查找表, 也叫转发表( Forwarding Table);  FDB: Filtering Data Base, filtering database, lookup table established and maintained by the Ethernet switch for forwarding data frames, also called Forwarding Table;
静态转发表: 由管理员配置的针对特殊地址的转发表项, 根据应用需要而配置; 清空过滤数据库 (FDB): 以太网交换机将内部的过滤数据库 (FDB)清空的动作, 一般静 态转发表不受影响;  Static forwarding table: The forwarding entry for the special address configured by the administrator is configured according to the application requirements. Clearing the filtering database (FDB): The action of the Ethernet switch to clear the internal filtering database (FDB). Affected;
地址学习: 以太网交换机将进入某个端口的以太网帧的源地址和进入的端口号记录到过 滤数据库中, 用于后续地址查找;  Address learning: The Ethernet switch records the source address of the Ethernet frame entering a port and the entered port number into the filtering database for subsequent address lookup;
业务转发: 以太网交换机根据收到的以太网帧的目的地址, 从过滤数据库中查找相应的 表项, 若数据库中存在目的地址相应的表项, 则将此帧从表项中规定的端口转发出去; 若没 有找到相应的表项, 则从所有端口广播出去, 也叫 FLOODING操作;  Service forwarding: The Ethernet switch searches for the corresponding entry from the filtering database according to the destination address of the received Ethernet frame. If there is an entry corresponding to the destination address in the database, the frame is forwarded from the port specified in the entry. Go out; if the corresponding entry is not found, broadcast it from all ports, also called FLOODING operation;
Test Frame : MRP测试帧, MRM用于检测环网状态而定期发出的特定 MRP协议帧; Topology Change Frame : MRP拓扑状态改变帧, MRM在检测到环网状态发生变化后, 向 环网所有节点发出的 MRP 控制帧; 此帧含有一个清空过滤数据库 FDB 的时间参数 (默认为 1. 5-0. 5毫秒), 表明节点过多少时间间隔后进行清空过滤数据库 FDB的操作; MRM在发出此 类帧后, 根据发出帧内携带的时间参数, 启动倒计时, 在倒计时完成后, 进行清空过滤数据 库 FDB操作; 各 MRC节点在收到此类帧后, 提取帧内携带的时间参数, 并启动倒计时, 在倒 计时完成后, 进行清空过滤数据库 FDB操作; Test Frame: MRP test frame, MRM is used to detect the ring network status and periodically send specific MRP protocol frames; Topology Change Frame: The MRP control frame sent by all the nodes of the ring network after the MRM detects the change of the state of the ring network. This frame contains a time parameter for clearing the filtering database FDB (default is 1. 5- 0. 5 milliseconds), indicating how many time intervals the node has to empty the filtering database FDB; after issuing such a frame, the MRM starts the countdown according to the time parameter carried in the sending frame, and after the countdown is completed, clears the filtering database. FDB operation; after receiving such a frame, each MRC node extracts the time parameter carried in the frame, and starts the countdown, and after the countdown is completed, performs the operation of clearing the filtering database FDB;
LinkUp I LinkDown Frame : MRP端口上线 /下线消息帧, 由 MRC发出, 当 MRC检测到本 节点的环路端口发生 LinkUp/LinkDown之后, 发出此消息帧, 用于通知 MRM采取相应动作; LinkUp I LinkDown Frame: The MRP port uplink/downline message frame is sent by the MRC. After the MRC detects that the loop port of the local node is LinkUp/LinkDown, this message frame is sent to notify the MRM to take the corresponding action.
FORWARDING: 转发状态, MRP环路端口状态之一, 在此状态下, 所有帧都被转发。 针对 MRM重启过程中, 原先故障链路 (包括 MRC间的故障和 MRM和 MRC间的故障) 或故 障 MRC也同时恢复的情况下, 节点间通信仍可能受阻的情况, 对现有 MRP协议中 MRM的状态 机作了修改, 具体方法是: FORWARDING: Forward state, one of the MRP loop port states, in which all frames are forwarded. In the case of the MRM restart process, if the original fault link (including the fault between the MRC and the fault between the MRM and the MRC) or the fault MRC is also restored, the inter-node communication may still be blocked, and the MRM in the existing MRP protocol The state machine has been modified. The specific method is:
步骤 701, 在 MRM收到一个端口上线 (LinkUp) 信号, 状态机由等待连接状态 202向主 端口在线状态 203转化时, 原有的状态机动作只是将主端口设为 FORWARDING状态, 并开 始发送测试帧 (Test Frame ), 见图 2中的状态转化 208; 本发明提出的方式是: 在原有 的行为 (状态转化 208 ) 基础上, 增加发送拓扑状态改变帧 (Topology Change Frame ) 行为;  Step 701: When the MRM receives a port uplink (LinkUp) signal, and the state machine is converted from the waiting connection state 202 to the main port online state 203, the original state machine action only sets the main port to the FORWARDING state, and starts to send the test. A test frame, as shown in the state transition 208 in FIG. 2; the method proposed by the present invention is: adding a topology change frame (Topology Change Frame) behavior based on the original behavior (state transition 208);
步骤 702, 按照步骤 701的方法, 对于图 6中发生故障的 MRM进行重启操作, 同时环网 中的故障链路或故障 MRC恢复的情况, 当 MRM在重启过程中, 如果出现故障的链路已经 恢复, 当 MRM检测到一个环路端口 (主端口) 上线后, 由图 2中的状态转化 208, 状态 机由等待连接状态 202转为主端口在线状态 203, 同时发出拓扑状态改变帧; 步骤 703, 环网各节点收到 MRM在步骤 702发出的拓扑状态改变帧后, 提取帧内携带的 时间参数, 并启动倒计时, 在倒计时完成后, 进行清空过滤数据库 FDB操作; 通过清空 过滤数据库 FDB的操作, 如图 7中所示, MRC 0 701和 MRC 1 702原先保留的经 MRM业 务转发路径被清除, 两者通过地址学习和业务转发, 重新通过链路 703进行通信, 即业 务重新恢复;  Step 702: Perform a restart operation on the faulty MRM in FIG. 6 according to the method in step 701, and recover the fault link or the fault MRC in the ring network. When the MRM is in the restart process, if the faulty link has been Recovery, when the MRM detects that a loop port (primary port) is online, it is converted 208 by the state in FIG. 2, and the state machine transits from the waiting connection state 202 to the main port online state 203, and simultaneously issues a topology state change frame; After receiving the topology state change frame sent by the MRM in step 702, each node of the ring network extracts the time parameter carried in the frame, and starts the countdown. After the countdown is completed, the FDB operation is performed to clear the filter database; As shown in FIG. 7, the MRM service forwarding path originally reserved by the MRC 0 701 and the MRC 1 702 is cleared, and the two communicate through the link 703 through address learning and service forwarding, that is, the service is resumed;
步骤 704, 与步骤 703同步进行, 当 MRM的状态机在检测到第二个端口 (副端口) 也上 线后, 由图 2中的状态转化 212, MRM由主端口在线状态 203转为闭环状态 205, 并将副 端口设为 BLOCKED状态; 由于此时环路是物理成环的, 由于 MRM的两个端口能收到自身 发出的测试帧, 根据状态转化 217, MRM—直维持在闭环状态 205; 步骤 705, 完成步骤 701 704之后的环网状态如图 4所示。 Step 704, in synchronization with step 703, when the state machine of the MRM detects that the second port (the secondary port) is also online, the state transition 212 from the state in FIG. 2, and the MRM is changed from the primary port online state 203 to the closed loop state 205. And the secondary port is set to the BLOCKED state; since the loop is physically looped at this time, since the two ports of the MRM can receive the test frame sent by themselves, according to the state transition 217, the MRM is maintained in the closed loop state 205; Step 705, the state of the ring network after completing step 701 704 is as shown in FIG. 4.
由于原始的 MRP协议仅能处理一个节点故障或链路的故障, 而在实际的应用场合, 可能 存在两个或以上故障点 (包括 MRM在内), 当 MRC、 或 MRC间的链路、 或 MRC和 MRM间的链路 和 MRM同时出现故障后, 若 MRM在其它故障点恢复之后恢复 (或重新启动) 的情况下, 如果 仅使用原始的协议, 业务通信会因为拓扑的变化而无法恢复 (步骤 601-605 ) ; 因此, 提出在 MRM从等待连接状态 202向主端口在线状态转换 203时, 加发拓扑状态改变帧, 来使业务重 新导通 (步骤 701-705 ) ;  Since the original MRP protocol can only handle one node failure or link failure, in actual applications, there may be two or more failure points (including MRM), when the link between MRC, or MRC, or After the link between the MRC and the MRM and the MRM fail simultaneously, if the MRM is restored (or restarted) after the other failure points are recovered, if only the original protocol is used, the service communication cannot be recovered due to the topology change ( Steps 601-605); Therefore, when the MRM transitions from the waiting connection state 202 to the primary port online state 203, the topology change frame is added to re-switch the service (steps 701-705);
基于上述方式:  Based on the above method:
1.在正常情况下, MRM启动过程中, 若有一个环路端口上线 (图 2中的状态转化 208), 也会发出拓扑状态改变帧, 所有节点同步清空过滤数据库 FDB; 由于此时处于初始状态, 节 点清空过滤数据库 FDB不会造成问题;  1. Under normal circumstances, during the MRM startup process, if a loop port is online (state transition 208 in Figure 2), a topology state change frame will also be issued, and all nodes will simultaneously clear the filter database FDB; State, node emptying the filtering database FDB does not cause problems;
2.在发生多个节点 (包括 MRM) 或链路故障并先后恢复的情况下:  2. In the case of multiple nodes (including MRM) or link failures and recovery in succession:
若 MRM迟于其它节点重新启动, 发送拓扑状态改变帧后, 会使先前启动的节点进行清空 过滤数据库 FDB操作, 从而进行地址学习和业务转发, 使业务重新建立通信;  If the MRM is restarted after the other nodes are restarted, the topology change state frame is sent, and the previously started node is emptied to filter the database FDB operation, thereby performing address learning and service forwarding, so that the service re-establishes communication;
若 MRM先于其它节点重新启动, 则 MRM正常工作后, 通过周期性地发送测试帧来检测环 路状态, 若环网仍存在故障, 根据状态转化 215, MRM会发出拓扑状态改变帧, 使业务重新学 习和恢复; 若故障恢复, 根据状态转化 214, MRM也会发出拓扑状态改变帧, 使业务重新学习 和恢复。  If the MRM is restarted before other nodes, the MRM will detect the loop status by periodically sending a test frame after the MRM works normally. If the ring network still has a fault, the MRM will send a topology state change frame according to the state transition 215, so that the service is enabled. Relearning and restoring; if the fault is recovered, according to the state transition 214, the MRM will also issue a topology state change frame to re-learn and recover the service.
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范围, 凡在本发明 的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应当包含在本发明的保护范围 之内。  The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc., which are included in the spirit and principles of the present invention, should be included in Within the scope of protection of the present invention.

Claims

权 利 要 求 书 Claim
1.一种处理介质冗余协议 MRP环网中的故障的方法, 所述 MRP环网包括一个介质冗余 管理节点 MRM、 多个介质冗余客户节点 MRC和连接各节点的链路, 其特征在于, 包括以下步 骤: A method for processing a fault in a medium redundancy protocol MRP ring network, the MRP ring network comprising a medium redundancy management node MRM, a plurality of medium redundant client nodes MRC, and a link connecting the nodes, the characteristics thereof It consists of the following steps:
所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障后, 所 述 MRM也发生故障;  After the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, the MRM also fails;
在所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路所发生的故障 恢复后, 所述 MRM的故障恢复并重新启动;  After the MRC, or the link between the MRCs, or the failure of the link between the MRM and the MRC, the failure of the MRM is restored and restarted;
所述 MRM在重新启动的过程中发送拓扑状态改变帧。  The MRM sends a topology state change frame during the restart.
2.如权利要求 1所述的方法, 其特征在于, 在所述 MRM重新启动的过程中, 当所述 MRM 的状态从等待连接状态向主端口在线状态转换时, 发送拓扑状态改变帧。  The method according to claim 1, wherein in the restarting of the MRM, a topology state change frame is sent when a state of the MRM transitions from a waiting connection state to a primary port online state.
3.如权利要求 2所述的方法, 其特征在于, 当所述 MRM检测到所述 MRM的一个环路端口 上线后, 将所述上线的环路端口设为转发 FORWARDING状态, 所述 MRM的状态从等待连接状态 向主端口在线状态转换。  The method according to claim 2, wherein, after the MRM detects that a loop port of the MRM is online, setting the loop port of the uplink to a forwarding FORWARDING state, the MRM The state transitions from waiting for the connection state to the primary port online state.
4.如权利要求 3所述的方法, 其特征在于, 当所述 MRM的状态从等待连接状态向主端口 在线状态转换时, 还发送测试帧。  The method according to claim 3, wherein the test frame is further sent when the state of the MRM transitions from the waiting connection state to the main port online state.
5.如权利要求 1-4之一所述的方法, 其特征在于, 所述方法进一步包括: 在所述 MRM发 送拓扑状态改变帧之后, 接收到拓扑状态改变帧的 MRC进行清空过滤数据库 FDB的操作, 进 行地址学习和业务转发, 使业务重新建立通信。  The method according to any one of claims 1 to 4, wherein the method further comprises: after the MRM sends a topology state change frame, receiving an MRC of the topology state change frame to clear the filter database FDB. Operation, address learning and service forwarding, so that the service re-establishes communication.
6.如权利要求 5所述的方法, 其特征在于, 所述接收到拓扑状态改变帧的 MRC进行清空 过滤数据库 FDB的操作包括: 接收到拓扑状态改变帧的 MRC提取拓扑状态改变帧中携带的时 间参数, 并等待所述时间参数定义的时间间隔后进行清空过滤数据库 FDB的操作。  The method of claim 5, wherein the operation of the MRC that receives the topology state change frame to perform the clearing of the filtering database FDB comprises: receiving the topology state change frame of the MRC to extract the topology state change frame carried The time parameter is, and waits for the time interval defined by the time parameter to perform the operation of clearing the filtering database FDB.
7.如权利要求 5所述的方法, 其特征在于, 通过清空过滤数据库 FDB的操作, MRC所保 留的经 MRM的业务转发路径被清除, 重新通过故障恢复后的 MRC或 MRC间的链路进行通信。  The method according to claim 5, wherein, by clearing the operation of filtering the database FDB, the MRM-preserved service forwarding path reserved by the MRC is cleared, and the link between the MRC or the MRC after the fault recovery is resumed. Communication.
8.如权利要求 3-4之一所述的方法, 其特征在于: 当所述 MRM检测到所述 MRM的另一个 环路端口也上线后, 所述 MRM由主端口在线状态转为闭环状态, 并将所述上线的另一个环路 端口设为阻塞 BLOCKED状态。  The method according to any one of claims 3-4, wherein: after the MRM detects that another loop port of the MRM is also online, the MRM is changed from a primary port online state to a closed loop state. And set another loop port of the upper line to block the BLOCKED state.
9.如权利要求 1所述的方法, 其特征在于, 所述 MRM通过发送测试帧来发现所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障。  The method according to claim 1, wherein the MRM discovers that the MRC, or a link between the MRCs, or a link between the MRM and the MRC occurs by sending a test frame. malfunction.
10.如权利要求 9所述的方法, 其特征在于, 所述 MRM通过发送测试帧来发现所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障具体包括: 当 MRM无法 收到自身发出的测试帧时, 发现所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC 间的链路发生故障。 The method according to claim 9, wherein the MRM discovers the MRC by sending a test frame, Or the link between the MRC or the link between the MRM and the MRC specifically includes: when the MRM cannot receive the test frame sent by itself, the MRC or the chain between the MRCs is found. The road, or the link between the MRM and the MRC fails.
11.如权利要求 9-10之一所述的方法, 其特征在于, 在所述 MRC、 或者所述 MRC间的链 路、 或者所述 MRM和所述 MRC间的链路发生故障之后且所述 MRM发生故障之前, 所述 MRM的 状态机进入开环状态, 所述 MRM将两个端口设为转发 FORWARDING状态, 并向外发送拓扑状态 改变帧。  The method according to any one of claims 9 to 10, wherein after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, Before the MRM fails, the state machine of the MRM enters an open loop state, and the MRM sets the two ports to forward the FORWARDING state, and sends the topology state change frame to the outside.
12.如权利要求 11所述的方法, 其特征在于, 在所述 MRC、 或者所述 MRC间的链路、 或 者所述 MRM和所述 MRC间的链路发生故障之后且所述 MRM发生故障之前, MRC节点收到拓扑 状态改变帧, 进行清空过滤数据库 FDB操作, 重新进行地址学习, 通过经由所述 MRM的链路 进行通信。  The method according to claim 11, wherein after the MRC, or a link between the MRCs, or a link between the MRM and the MRC fails, and the MRM fails Previously, the MRC node receives the topology state change frame, performs an empty filter database FDB operation, performs address learning again, and communicates through the link through the MRM.
13.一种介质冗余协议 MRP环网, 所述 MRP环网包括一个介质冗余管理节点 MRM、 多个介 质冗余客户节点 MRC和链路, 其特征在于:  A media redundancy protocol MRP ring network, the MRP ring network comprising a media redundancy management node MRM, a plurality of media redundant client nodes MRC and a link, wherein:
所述 MRC, 通过所述链路连接其它 MRC或所述 MRM;  The MRC, connecting the other MRC or the MRM through the link;
所述链路, 用于将所述 MRM和所述多个 MRC串联成所述 MRP环网;  The link is used to connect the MRM and the multiple MRCs into the MRP ring network;
所述 MRM, 用于管理所述 MRP环网, 在所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM 和所述 MRC间的链路发生故障后, 如果所述 MRM也发生故障, 并且在所述 MRC、 或者所述 MRC 间的链路、 或者所述 MRM和所述 MRC间的链路所发生的故障恢复后, 所述 MRM的故障也恢复 并重新启动, 那么所述 MRM在重新启动的过程中发送拓扑状态改变帧。  The MRM is configured to manage the MRP ring network, after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, if the MRM also fails And after the MRC, or the link between the MRCs, or the failure of the link between the MRM and the MRC, the failure of the MRM is also restored and restarted, then the MRM A topology state change frame is sent during the restart.
14.如权利要求 13所述的 MRP环网, 其特征在于, 在所述 MRM重新启动的过程中, 当所 述 MRM的状态从等待连接状态向主端口在线状态转换时, 发送拓扑状态改变帧。  The MRP ring network according to claim 13, wherein, in the process of restarting the MRM, when the state of the MRM is changed from a waiting connection state to a main port online state, a topology state change frame is sent. .
15.如权利要求 14所述的 MRP环网, 其特征在于, 当所述 MRM检测到一个环路端口上线 后, 将所述上线的环路端口设为转发 FORWARDING状态, 所述 MRM的状态从等待连接状态向主 端口在线状态转换。  The MRP ring network according to claim 14, wherein, after the MRM detects that a loop port is online, the loop port of the uplink is set to forward a FORWARDING state, and the state of the MRM is from Waiting for the connection state to transition to the primary port online state.
16.如权利要求 15所述的 MRP环网, 其特征在于, 当所述 MRM的状态从等待连接状态向 主端口在线状态转换时, 还发送测试帧。  The MRP ring network according to claim 15, wherein a test frame is further transmitted when a state of the MRM transitions from a waiting connection state to a master port online state.
17.如权利要求 13-16之一所述的 MRP环网, 其特征在于, 所述 MRC还用于在接收到所述 MRM发送的拓扑状态改变帧后进行清空过滤数据库 FDB的操作, 并进行地址学习和业务转发, 使业务重新建立通信。  The MRP ring network according to any one of claims 13 to 16, wherein the MRC is further configured to perform an operation of clearing the filtering database FDB after receiving the topology state change frame sent by the MRM, and performing Address learning and service forwarding enable the service to re-establish communication.
18.如权利要求 17所述的 MRP环网, 其特征在于, 所述 MRC进行清空过滤数据库 FDB的 操作包括: MRC 提取拓扑状态改变帧中携带的时间参数, 并等待所述时间参数定义的时间间 隔后进行清空过滤数据库 FDB的操作。 The MRP ring network according to claim 17, wherein the operation of the MRC to clear the filtering database FDB comprises: extracting, by the MRC, a time parameter carried in the topology state change frame, and waiting for the time defined by the time parameter Room After the interval, the operation of filtering the database FDB is emptied.
19.如权利要求 17所述的 MRP环网, 其特征在于, 通过清空过滤数据库 FDB的操作, MRC 所保留的经所述 MRM的业务转发路径被清除, 重新通过故障恢复后的 MRC或 MRC间的链路进 行通信。  The MRP ring network according to claim 17, wherein the operation forwarding path of the MRM retained by the MRC is cleared by the operation of clearing the filtering database FDB, and the MRC or the MRC between the fault recovery is re-passed. The link communicates.
20.如权利要求 15-16之一所述的 MRP环网, 其特征在于, 所述 MRM还用于在检测到所述 MRM 的另一个环路端口也上线后, 由主端口在线状态转为闭环状态, 并将所述上线的另一个 环路端口设为阻塞 BLOCKED状态。  The MRP ring network according to any one of claims 15-16, wherein the MRM is further configured to: after detecting that another loop port of the MRM is also online, the online status of the main port is changed to The closed loop state, and the other loop port of the upper line is set to block the BLOCKED state.
21.如权利要求 13所述的 MRP环网, 其特征在于, 所述 MRM还用于发送测试帧来发现所 述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障。  The MRP ring network according to claim 13, wherein the MRM is further configured to send a test frame to discover the MRC, or a link between the MRCs, or between the MRM and the MRC. The link has failed.
22.如权利要求 21所述的 MRP环网, 其特征在于, 所述 MRM发送测试帧来发现所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障具体包括: 当 MRM无法 收到自身发出的测试帧时, 发现所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC 间的链路发生故障。  The MRP ring network according to claim 21, wherein the MRM sends a test frame to discover the link between the MRC, or the MRC, or a link between the MRM and the MRC. The failure includes: when the MRM cannot receive the test frame sent by itself, the link between the MRC, or the MRC, or the link between the MRM and the MRC is found to be faulty.
23.如权利要求 21-22之一所述的方法, 其特征在于, 在所述 MRC、 或者所述 MRC间的链 路、 或者所述 MRM和所述 MRC间的链路发生故障之后且所述 MRM发生故障之前, 所述 MRM的 状态进入开环状态, 所述 MRM将两个端口设为转发 FORWARDING状态, 并向外发送拓扑状态改 变帧。  The method according to any one of claims 21 to 22, wherein after the MRC, or the link between the MRCs, or the link between the MRM and the MRC fails, Before the MRM fails, the state of the MRM enters an open loop state, and the MRM sets the two ports to forward the FORWARDING state, and sends the topology state change frame to the outside.
24.如权利要求 23所述的 MRP环网, 其特征在于, 在所述 MRC、 或者所述 MRC间的链路、 或者所述 MRM和所述 MRC间的链路发生故障之后且所述 MRM也发生故障之前, 所述 MRC节点 还用于在收到拓扑状态改变帧之后, 进行清空过滤数据库 FDB操作, 重新进行地址学习, 通 过经由所述 MRM的链路通信。  The MRP ring network according to claim 23, wherein after the MRC, or a link between the MRCs, or a link between the MRM and the MRC fails, and the MRM Before the fault occurs, the MRC node is further configured to perform an operation of clearing the filtering database FDB after receiving the topology state change frame, and performing address learning again, by communicating through the link of the MRM.
25.如权利要求 13-16和 21-22之一所述的 MRP环网, 其特征在于, 所述 MRP环网还包括 通过 MRM或 MRC接入环网的终端节点。  The MRP ring network according to any one of claims 13-16 and 21-22, wherein the MRP ring network further comprises a terminal node that accesses the ring network through the MRM or the MRC.
PCT/CN2012/085454 2011-11-28 2012-11-28 Method for processing fault in mrp ring network, and mrp ring network WO2013078997A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110381594.1A CN102420737B (en) 2011-11-28 2011-11-28 Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network
CN201110381594.1 2011-11-28

Publications (1)

Publication Number Publication Date
WO2013078997A1 true WO2013078997A1 (en) 2013-06-06

Family

ID=45944981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/085454 WO2013078997A1 (en) 2011-11-28 2012-11-28 Method for processing fault in mrp ring network, and mrp ring network

Country Status (2)

Country Link
CN (1) CN102420737B (en)
WO (1) WO2013078997A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055227A (en) * 2021-03-02 2021-06-29 北京航天自动控制研究所 Ring topology networking communication-oriented fault processing method and device and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420737B (en) * 2011-11-28 2015-07-15 浙江网新技术有限公司 Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network
CN103685079A (en) * 2014-01-02 2014-03-26 武汉迈威实达软件有限公司 Self-adaptive Ethernet single-loop network algorithm
US11277279B2 (en) 2016-12-12 2022-03-15 Johnson Controls Tyco IP Holdings LLP Systems and methods for incorporating a single-port ethernet device in a media protocol ring
US10411984B2 (en) * 2016-12-12 2019-09-10 Johnson Controls Technology Company Systems and methods related to diagnostics for ethernet rings based on media redundancy protocol
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425952A (en) * 2008-12-09 2009-05-06 中兴通讯股份有限公司 Method and apparatus for ensuring Ether ring network reliable operation
WO2009101531A2 (en) * 2008-02-14 2009-08-20 Allied Telesis Holdings Kabushiki Kaisha System and method for network recovery from multiple link failures
CN101640622A (en) * 2009-09-07 2010-02-03 中兴通讯股份有限公司 Ethernet ring net protection method and transit node
CN102420737A (en) * 2011-11-28 2012-04-18 浙江网新技术有限公司 Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620043B2 (en) * 2005-09-29 2009-11-17 Fujitsu Limited Using CRC-15 as hash function for MAC bridge filter design

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009101531A2 (en) * 2008-02-14 2009-08-20 Allied Telesis Holdings Kabushiki Kaisha System and method for network recovery from multiple link failures
CN101425952A (en) * 2008-12-09 2009-05-06 中兴通讯股份有限公司 Method and apparatus for ensuring Ether ring network reliable operation
CN101640622A (en) * 2009-09-07 2010-02-03 中兴通讯股份有限公司 Ethernet ring net protection method and transit node
CN102420737A (en) * 2011-11-28 2012-04-18 浙江网新技术有限公司 Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055227A (en) * 2021-03-02 2021-06-29 北京航天自动控制研究所 Ring topology networking communication-oriented fault processing method and device and storage medium

Also Published As

Publication number Publication date
CN102420737A (en) 2012-04-18
CN102420737B (en) 2015-07-15

Similar Documents

Publication Publication Date Title
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
CN101610193B (en) Method for automatically discovering Ethernet ring and generating ring
US7440397B2 (en) Protection that automatic and speedily restore of Ethernet ring network
JP4454516B2 (en) Fault detection device
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
JP4598647B2 (en) Path protection method and layer 2 switch
CN100369436C (en) Looped network and its protecting method
CN101479992B (en) A method and device to realize punch-through of point-to-multipoint network link status
WO2013078997A1 (en) Method for processing fault in mrp ring network, and mrp ring network
EP1958364B1 (en) Vpls remote failure indication
JP2005130049A (en) Node
JP2007525895A (en) Recovery mechanism for network topology
CN1981279A (en) Tandem node system and a method thereor
CN101141365A (en) Network node and fault recovery method of Ethernet ring network therein
EP2466804B1 (en) Protection switching method for ethernet automatic protection switching (eaps) ring network and master node in eaps ring network
CN110635940B (en) Main/standby switching method of EAPS Ethernet ring network
WO2012171380A1 (en) Far-end failure processing method and device for ethernet
CN102238067B (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
JP2003258822A (en) Packet ring network and inter-packet ring network connection method used in the same
WO2010031295A1 (en) Control method for ethernet failure recovery
CN112995002B (en) Switch ring network design method, switch and storage medium
JP2010239279A (en) Communication apparatus and method thereof, and communication system and method thereof
CN101641915A (en) Method for reconfiguring a communication network
CN103840965B (en) Method for enhancing quick fault convergence in RSTP
EP2180636B1 (en) Method for signaling a unidirectional failure of a packet-switched link

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

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

Country of ref document: EP

Kind code of ref document: A1