CN108259289A - A kind of looped network abnormal protection method and device - Google Patents

A kind of looped network abnormal protection method and device Download PDF

Info

Publication number
CN108259289A
CN108259289A CN201611244908.2A CN201611244908A CN108259289A CN 108259289 A CN108259289 A CN 108259289A CN 201611244908 A CN201611244908 A CN 201611244908A CN 108259289 A CN108259289 A CN 108259289A
Authority
CN
China
Prior art keywords
node
port
erps
rings
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611244908.2A
Other languages
Chinese (zh)
Other versions
CN108259289B (en
Inventor
任莉
潘德志
许培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
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
Priority to CN201611244908.2A priority Critical patent/CN108259289B/en
Publication of CN108259289A publication Critical patent/CN108259289A/en
Application granted granted Critical
Publication of CN108259289B publication Critical patent/CN108259289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The embodiment of the present application discloses a kind of looped network abnormal protection method and device, and method therein may include:The first port of the first node that first node determines exits ether ring protection handoff protocol ERPS rings, it is described exit ERPS rings and be used to indicate the first port do not handle ERPS protocol massages in the state of ERPS rings are exited;The first node blocks second port, and the second port is port of the first node on the ERPS rings, and the second port is different from the first port;The first node sends the first message approaching one's end to second node, wherein, the first node and the second node are on the ERPS rings, the first node and the second node are different nodes, and the first port that first message approaching one's end is used to indicate the first node exits the ERPS rings.Can be solved the problems, such as using the application can not normal communication there may be certain nodes in ERPS rings in the prior art.

Description

A kind of looped network abnormal protection method and device
Technical field
This application involves network communication technology field more particularly to a kind of looped network abnormal protection methods and device.
Background technology
Ether ring protection switching (Ethernet Ring Protection Switching, ERPS) agreement is international telecommunication A kind of looped network protection agreement of alliance (International Telecommunications Union, ITU) exploitation, also referred to as G.8032.It is a link layer protocol for being specifically applied to ethernet ring network, and data ring can be prevented when ethernet ring network is complete Broadcast storm caused by road is an agreement that loop is abolished for ethernet link layer, and when a link on ethernet ring network It can restore the communication on looped network between each node during disconnection rapidly.
ERPS is using ERPS rings as base unit, comprising several nodes, by setting looped network protection link on ERPS rings RPL (Ring Protection Link) is blocked in the both ends port of the RPL chains road, looped network protection link host node RPL Owner ports and looped network protection link neighbor node RPL neighbour ports, and control other common ports so that port State forwarding (Forwarding) and block (Discarding) between switch, achieve the purpose that cancellation loop.It is however, existing Have in technology, only describe node or link under normal circumstances and the processing mode in the case of breaking down, and for Other abnormal conditions, do not make associated description, cause node is possibly in some special cases can not normal communication.
Invention content
The embodiment of the present application provides a kind of looped network abnormal protection method and device, can solve in ERPS rings in the prior art There may be certain nodes can not normal communication the problem of.
In a first aspect, the embodiment of the present application provides a kind of looped network abnormal protection method, it may include:
The first port of the first node that first node determines exits ether ring protection handoff protocol ERPS rings, described to move back Go out ERPS rings and be used to indicate the first port not handling ERPS protocol massages, the first end in the state of ERPS rings are exited Mouth is port of the first node on the ERPS rings;The first node blocks second port, and the second port is Port of the first node on the ERPS rings, the second port are different from the first port;The first node The first message approaching one's end is sent to second node, wherein, the first node and the second node are on the ERPS rings, institute It is different node that first node, which is stated, with the second node, and first message approaching one's end is used to indicate the first node First port exits the ERPS rings.Implement the embodiment of the present application, be defined, and to node by exiting ERPS rings to node The processing (such as sending message approaching one's end) of exiting done in the case where exiting ERPS rings provided, can be allowed in ERPS rings Other node perceiveds are exited to the node, and can carry out relevant setting according to the message approaching one's end, to avoid subsequently exiting Node when adding in ERPS rings again may caused by node communication abnormality problem.
With reference to first aspect, in the first possible implementation, the first node determines the first node First port exits ether ring protection handoff protocol ERPS rings, specifically includes:The first node determines the first node Ether ring protection handoff protocol ERPS rings are exited in first port preparation.Implement the embodiment of the present application, can be exited in first port Before with regard to carrying out the obstruction of second port and the transmission of the first message approaching one's end, exit ERPS rings too early to avoid port and result in Loop.
The possible realization method of with reference to first aspect or with reference to first aspect the first, in second of possible reality In existing mode, first message approaching one's end includes the MAC address of the first node.Pass through the MAC of node Address and the flow path of message approaching one's end, second node can specifically judge the source of the first message approaching one's end, i.e., specific section Point and port.
The possible realization method of with reference to first aspect or with reference to first aspect the first, alternatively, with reference to first aspect Second of possible realization method, in the third possible realization method, on the ERPS rings include looped network protection link RPL, the port at the RPL both ends is looped network protection link host node RPL owner ports and looped network protection link neighbor node RPL neighbour ports.Implement the embodiment of the present application, in the case of RPL can be included on ERPS rings, effectively avoid orphan The occurrence of island, prevents node communication abnormality.
The possible realization method of with reference to first aspect or with reference to first aspect the first, alternatively, with reference to first aspect Second of possible realization method, alternatively, the third possible realization method with reference to first aspect, possible at the 4th kind In realization method, the method further includes:If the second port of the first node exits the ERPS rings, to described second Node sends the second message approaching one's end, and the second port that second message approaching one's end is used to indicate the first node exits described ERPS rings.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method, described second Message approaching one's end includes the MAC address of the second node.
Second aspect, the embodiment of the present application provide a kind of looped network abnormal protection method, it may include:
Second node receives the first message approaching one's end, wherein, first message approaching one's end is used to indicate the first of first node Ether ring protection handoff protocol ERPS rings are exited in port, and the first port is end of the first node on the ERPS rings Mouthful, on the ERPS rings, the first node and the second node are not for the first node and the second node Identical node;If port of the second node on the ERPS rings is there are port blocked, by the port blocked State is switched to forwarding state.Implement the embodiment of the present application, define in the case where the first port of first node exits, it should The feedback that other nodes on ERPS rings where first node are done required for being exited for the node is (such as by the end of current congestion Mouth is switched to forwarding state), it can effectively avoid in the case of being added in again after being exited because of the port on ERPS rings, the Two nodes because caused by can not perceiving node possibly can not normal communication the problem of.
With reference to second aspect, in the first possible implementation, first message approaching one's end includes the first segment The MAC address of point;After the second node receives the first message approaching one's end, further include:The second node The second message approaching one's end is received, the second port that second message approaching one's end is used to indicate the first node exits the ERPS Ring, the second port are port of the first node on the ERPS rings, and second message approaching one's end includes described the The MAC address of two nodes;If the second node judges that the described second message approaching one's end and described first faces MAC Address in whole message is identical, then controls and perform port initialization flow journey.Implement the embodiment of the present application, by same Two ports on node perform port initialization flow journey in the case of exiting, can be to avoid two on same node The problem of caused ERPS is cyclic in the case of exiting for port, avoids broadcast storm.
With reference to the first possible realization method of second aspect or combination second aspect, in second of possible reality In existing mode, after the second node receives the first message approaching one's end, further include:Second node adjustment port parameter so that It obtains the ERPS ring cuttings and is changed to pending states undetermined.Implement the embodiment of the present application, first can be received in second node and faced Whole message is first adjusted to state undetermined, so as to allow port that can handle a greater variety of events.
With reference to the first possible realization method of second aspect or combination second aspect, alternatively, with reference to second aspect Second of possible realization method, in the third possible realization method, on the ERPS rings include looped network protection link RPL, the port at the RPL both ends is looped network protection link host node RPL owner ports and looped network protection link neighbor node RPL neighbour ports.
The third aspect, the embodiment of the present application provide a kind of looped network abnormal protection device, it may include:
Processing module, the first port for determining first node exits ether ring protection handoff protocol ERPS rings, described It exits ERPS rings and is used to indicate the first port and do not handle ERPS protocol massages in the state of ERPS rings are exited, described first Port is port of the first node on the ERPS rings;
The processing module, is additionally operable to obstruction second port, and the second port is the first node in the ERPS Port on ring, the second port are different from the first port;
Sending module, for sending the first message approaching one's end to second node, wherein, the first node and second section Point is on the ERPS rings, and the first node and the second node are different nodes, first message approaching one's end The first port for being used to indicate the first node exits the ERPS rings.
With reference to the third aspect, in the first possible implementation, the processing module is used to determine first node First port exits ether ring protection handoff protocol ERPS rings, specially:
Determine that ether ring protection handoff protocol ERPS rings are exited in the first port preparation of the first node.
With reference to the first possible realization method of the third aspect or the combination third aspect, in second of possible reality In existing mode, first message approaching one's end includes the MAC address of the first node.
With reference to the first possible realization method of the third aspect or the combination third aspect, alternatively, with reference to the third aspect Second of possible realization method, in the third possible realization method, on the ERPS rings include looped network protection link RPL, the port at the RPL both ends is looped network protection link host node RPL owner ports and looped network protection link neighbor node RPL neighbour ports.
With reference to the first possible realization method of the third aspect or the combination third aspect, alternatively, with reference to the third aspect Second of possible realization method, it is possible at the 4th kind alternatively, with reference to the third possible realization method of the third aspect In realization method, the sending module is additionally operable to:
If the second port of the first node exits the ERPS rings, the second report approaching one's end is sent to the second node Text, the second port that second message approaching one's end is used to indicate the first node exit the ERPS rings.
With reference to the 4th kind of possible realization method of the third aspect, in the 5th kind of possible realization method, described second Message approaching one's end includes the MAC address of the second node.
Fourth aspect, the embodiment of the present application provide a kind of looped network abnormal protection device, it may include:
Receiving module, for receiving the first message approaching one's end, wherein, first message approaching one's end is used to indicate first node First port exits ether ring protection handoff protocol ERPS rings, and the first port is the first node on the ERPS rings Port, the first node and the second node are on the ERPS rings, the first node and the second node It is different node;
Processing module, if for port of the second node on the ERPS rings there are port blocked, by described in The state of port blocked is switched to forwarding state.
With reference to fourth aspect, in the first possible implementation, first message approaching one's end includes the first segment The MAC address of point;
The receiving module, is additionally operable to:
After the first message approaching one's end is received, the second message approaching one's end is received, second message approaching one's end is used to indicate described The second port of first node exits the ERPS rings, and the second port is end of the first node on the ERPS rings Mouthful, second message approaching one's end includes the MAC address of the second node;
The processing module, if being additionally operable to the second node judges the described second message approaching one's end and described first approaching one's end MAC Address in message is identical, then controls and perform port initialization flow journey.
With reference to the first possible realization method of fourth aspect or combination fourth aspect, in second of possible reality In existing mode, the processing module is additionally operable to:
After the first message approaching one's end is received, adjustment port parameter is so that the ERPS ring cuttings are changed to pending undetermined State.
With reference to the first possible realization method of fourth aspect or combination fourth aspect, alternatively, with reference to fourth aspect Second of possible realization method, in the third possible realization method, on the ERPS rings include looped network protection link RPL, the port at the RPL both ends is looped network protection link host node RPL owner ports and looped network protection link neighbor node RPL neighbour ports.
5th aspect, the application provide a kind of node device, which includes processor, and processor is configured as The node device is supported to perform corresponding function in a kind of looped network abnormal protection method that first aspect provides.The node device is also It can include memory, memory preserves the necessary program instruction of the node device and data for being coupled with processor.It should Node device can also include communication interface, for the node device and other equipment or communication.
6th aspect, the application provide a kind of node device, which includes processor, and processor is configured as The node device is supported to perform corresponding function in a kind of looped network abnormal protection method that second aspect provides.The node device is also It can include memory, memory preserves the necessary program instruction of the node device and data for being coupled with processor.It should Node device can also include communication interface, for the node device and other equipment or communication.
7th aspect, the application provide a kind of computer storage media, for saving as the ring that the above-mentioned third aspect provides Computer software instructions used in net abnormal protection device, it includes for performing the program designed by above-mentioned aspect.
Eighth aspect, the application provide a kind of computer storage media, for saving as the ring that above-mentioned fourth aspect provides Computer software instructions used in net abnormal protection device, it includes for performing the program designed by above-mentioned aspect.
9th aspect, the embodiment of the present application provide a kind of computer program, which includes instruction, when the meter When calculation machine program is computer-executed so that computer can perform the network slice resource of any one in above-mentioned first aspect Flow in mapping method.
Tenth aspect, the embodiment of the present application provide a kind of computer program, which includes instruction, when the meter When calculation machine program is computer-executed so that computer can perform the network slice resource of any one in above-mentioned second aspect Flow in mapping method.
Implement the embodiment of the present application, have the advantages that:
The embodiment of the present application exits ether ring protection handoff protocol by first node in the first port for determining itself In the case of ERPS rings, other second nodes on ERPS rings in addition to the first node send the first message approaching one's end, so as to State switching is carried out to itself current port blocked according to the message approaching one's end that first node is sent in other nodes, is avoided in spy Formed in the case of different node can not normal communication situation.It is defined i.e. in the application by exiting ERPS rings to node, And the processing (such as sending message approaching one's end) of exiting done to node in the case where exiting ERPS rings is provided and to this Other nodes on ERPS rings where node are directed to the feedback for having node to be done required for exiting and (such as cut the port of current congestion It is changed to forwarding state) it is provided, it can effectively avoid the feelings added in again after being exited because of the port on ERPS rings Under condition, caused by other nodes can not perceive node can not normal communication the problem of.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is looped network model schematic provided by the embodiments of the present application,;
Fig. 2 is a kind of flow diagram of looped network abnormal protection method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another looped network abnormal protection method provided by the embodiments of the present application;
Fig. 4 is a kind of structure diagram of looped network abnormal protection device provided by the embodiments of the present application;
Fig. 5 is the structure diagram of another looped network abnormal protection device provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of node device provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the embodiment of the present application is described.
Term " first ", " second ", " third " in the description and claims of this application and the attached drawing and " Four " etc. be for distinguishing different objects rather than for describing particular order.In addition, term " comprising " and " having " and it Any deformation, it is intended that cover non-exclusive include.Such as it contains the process of series of steps or unit, method, be The step of system, product or equipment are not limited to list or unit, but optionally further include the step of not listing or list Member is optionally further included for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Hereinafter, the part term in the application is explained, in order to those skilled in the art understand that.
1), ERPS rings are to be configured with identical control virtual LAN (Virtual Local Area by one group Network, VLAN) and interconnection two-layer switching equipment form, be ERPS agreements base unit.One ERPS ring is physically right Answer the ether net topology of an annular connection.
2), node, the two-layer switching equipment for adding in ERPS rings are referred to as node.Each node has and only adds there are two port Enter same ERPS rings.Node can be that routing device may be switching equipment.
3), looped network protection link RPL (Ring Protection Link), the link between host node and neighbor node is Looped network protection link, when ERPS rings are normal, the port status of RPL both ends port is blocked state, referred to as port blocked, is used for Blocking data message transmissions, anti-loops, the port status of connection ERPS rings is forwarding state on other nodes;When in ERPS rings When having node failure, the port status of RPL both ends port is switched to forwarding state, is used for transmission data message.
4), port role, port role specified in ERPS agreements mainly have RPL owner ports, RPL neighbour Port and common port three types.
5), RPL owner ports, only there are one RPL owner for an ERPS ring, are determined by user configuration, pass through obstruction RPL owner ports prevent from generating loop in ERPS rings.The equipment where RPL owner receives failure message and learns ERPS rings When other upper nodes or link failure, RPL owner ports can be decontroled automatically, and sending and receiving for flow is restored in this port, protects Card flow will not interrupt.Link where RPL owner is ring protection link RPL.
6), RPL neighbour ports, RPL neighbour ports refer to what is be connected directly with RPL owner ports Port.Under normal circumstances, RPL owner ports and RPL neighbour ports can be all blocked, and be generated to prevent loops.When When ERPS rings break down, RPL owner ports and RPL neighbour ports can be all released.Introduce RPL neighbour Port role can be in the case where link where RPL breaks down, and the node reduced on ERPS rings refreshes forwarding database The number of (Forwarding DataBase, FDB) list item.
7), common port, in ERPS rings, the port in addition to RPL owner and RPL neighbour is all common end Mouthful.It is responsible for monitoring the link state of oneself direct-connected ERPS agreement, and the change message of link state is led in time in common port Know other ports.
8) there are multiple ports in, fraternal port on same node, but in same ERPS rings, each node have and Only there are two ports to add in same ERPS rings (G.8032 ring), and two ports are mutually known as fraternal port.
9) G.8032, idle state (Idle State), ITU-T define idle state (Idle State) and protection 2 kinds of states of state (Protecting State), Idle State (aftermentioned referred to as Idle states) are that do not having in the event of failure just Normal working condition, Protecting State are to detect the state that switch protecting has occurred after link failure.Under normal circumstances, ERPS rings are in idle condition, and all nodes connect in a ring fashion, and ERPS agreements are by blocking RPL, it is ensured that will not cyclization.
Firstly, it is necessary to explanation, ERPS rings event is exited in port defined herein, in particular to port is gone to make Energy ERPS, receives but does not reprocess ERPS protocol massages, is also no longer participate in the calculating of ERPS agreements, after port is exited, port State can revert to default conditions, and default conditions are the manufactures that forwarding state or blocked state then will specifically see node device The either artificial setting of setting, then can be with transparent data if forwarding state.It should also be noted that, port is not being exited Under normal condition before ERPS rings, understand the state that calculated according to ERPS agreements, be set as forwarding or block, disappeared with reaching Except the purpose of loop.If some port is exited, which needs to switch or remain blocked state.
The premise for also needing to emphasize is, when ERPS rings are under Idle states, if the RPL owner ports on ERPS rings are not It exits, then it can be with Fixed Time Interval (such as 5s) for period other node transmission link recovery/looped network protection links into ring Block (No Request/RPL Blocked, NRRB) message, represent that ERPS ring current inks are all gone well.Therefore when ERPS rings In other nodes when receiving the NRRB messages, then know that the RPL Owner ports in the current ERPS rings are in normal resistance Plug-like state, because without extra port blocked, so, if having port blocked at this time on common port, can receive It is decontroled immediately after NRRB messages, is switched to forwarding state.Wherein, NRRB messages belong to looped network automatic protection switching (Ring Automatic Protection Switching, RAPS) message.
Being decontroled to port mentioned in the application refers to the state of port being switched to forwarding shape by blocked state State.
For the ease of understanding the embodiment of the present application, based on above-mentioned, it is necessary first to the skill first solved to the embodiment of the present application The corresponding application scenarios of art problem are illustrated and analyze.Fig. 1 is looped network model schematic provided by the embodiments of the present application, please be joined Fig. 1, the structure of ERPS rings as shown in Figure 1 are read, ring 1 is configured as main ring (i.e. closed-loop), and node C is configured as the master of ring 1 Node, node D are configured as the neighbor node of ring 1, and the link between node C and node D is the RPL of ring 1.Node C is in RPL On port 1 and node D be in the port 2 on RPL as port blocked, respectively RPL owner ports and RPL neighbour Port.Due in the prior art, when the RPL on ERPS rings has been configured, also meaning that the port blocked on ERPS rings RPL owner ports and RPL neighbour ports are fixed to, if the ERPS rings are in Idle states, and RPL owner What port or RPL neighbour ports did not get ordinary node exits and adds in information, then will not handle the ERPS rings Looped network automatic protection switching link-recovery (Ring Automatic Protection transmitted by upper ordinary node Switching No Request, R-APS NR) message, therefore it is constant to be always maintained at blocked state.Based on this, if ERPS rings In Idle states, in some scenes, the exiting to add of node may form " isolated island ", and concrete condition is as follows:
Situation one:
(1), in the case where ring 1 is in Idle states, the port 2 on node C is first exited, and the port 1 on node B retreats Go out, at this point, the fraternal port of the port 2 on node C, that is, RPL owner ports (port 1) are blocked, the port 1 on node B Corresponding brother port, that is, port 2 is blocked, and can select wherein one in the port of node C 1 and the port of node B 2 at this time It is a to be blocked, it is assumed that be the port 2 of node B;
(2), the port 2 on node D is still blocked state due to not perceiving exiting for above-mentioned node port at this time;
(3), when the port 1 on the port 2 and node B on node C is sequentially added on the ERPS rings again, due to there is port Addition, therefore needed between node C and node B retransmit NR (No Request) message, carry out the selection of port blocked, Assuming that port blocked is arranged on according to the size of MAC Address by the port 2 on the node B of MAC Address bigger at this time.Wherein, It should be noted that it is counted again since the RPL owner ports for sending NRRB messages responsible in (1) have already passed through in (1) It calculates and blocks, therefore it no longer sends NRRB messages to other ports, so the port 2 on node B will not be decontroled at this time, protect Hold obstruction;
(4), therefore, there is the obstruction of port 2 two on the RPL neighbour ports and node B on node D on ERPS rings Port at this point, data traffic message can not reach node C from A → B, also can not reach node C, therefore, node C phases from A → D When in being isolated, becoming " isolated island ", normal communication can not be carried out.Need user's manual intervention or Wait-to-Restore timer WTR Time-out (most short 1min gives tacit consent to 5mins) could revert to again only to be carried out by RPL owner ports and RPL neighbour ports The situation of obstruction.
The reason of above-mentioned abnormal conditions occur is that in existing ERPS mechanism, undefined node exits event, more uncertain Adopted node exits the relevant operation and processing after ERPS rings.Therefore, the port of node is exited and is added in again in the ring, Its node can not know the information, therefore can cause node A and node D in ERPS rings that can not perceive on port 2 and B on C Port 1 exit.Again because port defined herein is exited and is not equal to port failure of the prior art, even Port default exits state and is set as forwarding state, then port is exited and also will continue to transparent data, only without ERPS agreements The processing of message.Therefore, current ERPS rings can be caused trouble-free " illusion " to other nodes on ERPS rings, so the application In situation 1 in, RPL neighbour ports also " are thought " itself to be in Idle states, therefore will not handle other nodes The NR messages of transmission, therefore RPL owner ports will continue to keep blocked state.And at the same time, there is port to exit or add in Ordinary node between can also recalculate and determine a port blocked, and due to the RPL neighbour ends in situation 1 Mouth is just recalculated in (1) and blocks, therefore can not send out NRRB messages, therefore recalculated simultaneously on ordinary node Determining port blocked would not also be decontroled, then at this point, two port blockeds can may on different links be formed, then must It can so cause the node between two port blockeds that can not carry out normal communication, i.e. data with other nodes on ERPS rings Message can not be sent to the node, form isolated island.
In addition, in addition to said circumstances one, can also including scenario described below, there is also above " isolated island " problems.
Situation two:
(1), in the case where ring 1 is in Idle states, the port 1 on node B is first exited, and port 1 on nodeb is also not Before receiving the NRRB message times that the port 1 (RPL owner ports) of node C is sent out, the port 2 of node C is exited.
(2) (3) (4) are similar with situation in said circumstances 1, please refer to the description in situation 1.
Since in the situation two, the port 2 of node C is also to have not enough time to send in its fraternal port RPL owner port It exits before NRRB messages, therefore RPL owner ports just moving back due to its brother port 2 before NRRB messages are not sent Go out and recalculate and block, therefore can not continue to retransmit NRRB messages, then can not allow on ordinary node and recalculate And determining port blocked is decontroled, then finally may also can exit and add in formation two not in same due to node The port blocked of chain road leads to " isolated island " problem.
It is that " isolated island " situation can occur in the case where meeting the following conditions in summary:One:At the ERPS rings of place In idle states, it that is to say on the ERPS rings there is no nodes break down;Secondly:RPL neighbour ports keep obstruction namely It is that event is not exited in RPL neighbour ports itself and its fraternal port;Thirdly:The port for having node exit and Addition leads to the port blocked in addition to RPL neighbour ports redefined, and during this period, RPL owner ends Mouthful NRRB messages can not be normally sent out so that the port blocked selected again is decontroled, wherein, RPL owner ports can not be just Often the reason of sending out NRRB messages, may there is exiting or recalculating for the RPL owner ports, and therein recalculate It is exiting due to the fraternal port of RPL owner ports in fact;It four:Again the port blocked and RPL selected Neighbour ports are not on same chain road.Meet aforementioned four condition, then will certainly form some section in the ERPS rings Point can not communicate with other nodes, form isolated island.
Therefore, it is necessary to explanation, the embodiment of the present application exits event and port by defining the port on ERPS rings Exiting needs to send message approaching one's end, solve the node on ERPS rings can not sensing node exit the event added in again, have Conducive to the information opened ensured between node, the situation of ERPS rings exception that may occur is avoided.Also, further, when When including RPL links on ERPS rings, then implementing the embodiment of the present application, that node can effectively be avoided to be formed is above-mentioned analyzed " isolated island " situation ensures the normal communication between node.
It is above-mentioned for what is proposed in the application with reference to the embodiment of looped network abnormal protection method provided herein Technical problem is analyzed and is solved.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of looped network abnormal protection method in the embodiment of the present application, below will The looped network abnormal protection method in the embodiment of the present application is described in detail to from first node side with reference to attached drawing 2.Such as Fig. 2 institutes Show, this method may comprise steps of S201- steps S203.
Step S201:The first port of the first node that first node determines exits ether ring protection handoff protocol ERPS Ring.
Specifically, it is described exit ERPS rings and be used to indicate the first port do not handled in the state of ERPS rings are exited ERPS protocol massages, the first port are port of the first node on the ERPS rings.For example, the of first node Single port is the port 1 on the node B in Fig. 1.It should be noted that the node in the application exit ERPS rings may be due to The failure of the non-physical type of node, it is also possible to which node caused by artificial setting exits ERPS loops, treats the non-physical of node The fault recovery of type is artificially reset, and node can add the ERPS rings again again.
In a kind of possible realization method, the first node determines that the first port of the first node exits ether Ring protection handoff protocol ERPS rings, specifically include:The first node determines that the first port preparation of the first node is exited Ether ring protection handoff protocol ERPS rings.I.e. first node can just be held before first port plan is exited but is not exited also Row subsequent processes flow or while determining that first port exits ERPS rings performs subsequent processes flow.
Step S202:The first node blocks second port, and the second port is the first node described Port on ERPS rings, the second port are different from the first port.
Specifically, the second port is port of the first node on the ERPS rings, as first port Fraternal port, for example, the first port of first node is the port 1 on the node B in Fig. 1, the second port of first node is then For the port 2 on the node B in Fig. 1.Since the first port of first node exits, fraternal port second port then needs Switching keeps blocked state, and cyclic in order to prevent, it is necessary to first block second port, then carry out moving back for first port Go out.
It is understood that multiple first nodes may be present on the ERPS rings, i.e., when the end for there are multiple nodes on ERPS rings When mouth exits, then what first node represented is exactly multiple nodes exited.
Step S203:The first node sends the first message approaching one's end to second node.
Specifically, the first node and the second node be on the ERPS rings, the first node with it is described Second node is different node, and the first port that first message approaching one's end is used to indicate the first node exits described ERPS rings.Port is defined not only in the application and default conditions are set as in the state of ERPS rings are exited, and do not handle ERPS Protocol massages, and it is no longer participate in the calculating of ERPS agreements;Also define that port exits ERPS rings needs to inform other nodes Transmitted message approaching one's end, allow other node perceiveds to have node exiting with add in so as to carry out relevant processing.Described The first port that one message approaching one's end is used to indicate the first node exits the ERPS rings.Further, described first is approaching one's end Message can include the MAC address of the first node.And wherein specifically judge that the first message approaching one's end is specific Which port of first node come from, then the flow path that can be sent from the message may determine that, for example, in Fig. 1, if The message approaching one's end sent out when being exited from the port 1 on B, then flow path is node C → node D → node A;If from B The message approaching one's end that port 2 is sent out when exiting, then flow path is node A → node D → node C.
Optionally, other nodes of the first port of first node on ERPS rings in addition to the first node send first The specific time of message approaching one's end can be before or while first port exits ERPS rings, if because just being sent after exiting Message approaching one's end is then likely to that other nodes is caused to have little time to carry out relevant treatment, results in loop.And it requires emphasis Illustrate, the obstruction of the fraternal port of the first port of first node must be before first port exits, and otherwise may It can lead to cyclization.
Step S204:Second node receives the first message approaching one's end,
Specifically, after second node (such as node A, C and D in Fig. 1) receives the first message approaching one's end, can to this One message approaching one's end is first stored, convenient for subsequently being parsed.It should be noted that second node is described in step S201 Other all nodes in addition to first node on the ERPS rings, i.e., on ERPS rings described herein except the Other nodes other than one node are construed as second node, and the application only specifically with one of second node into Row detailed description.
Step S205:If port of the second node on the ERPS rings is there are port blocked, by the obstruction The state of port is switched to forwarding state.
Specifically, when the second node (being exactly the node on the ERPS rings in addition to first node in fact) in ERPS rings obtains There is port to exit on cicada first node, and since exiting for the first port on first node will certainly lead to second port Obstruction, so port blocked is necessarily had in ERPS rings at this time, therefore in order to avoid Such analysis is due to port blocked mistake Node caused by more forms isolated island, therefore can decontrol port of the current state on second node for blocked state, i.e., It is switched to forwarding state.In addition to the second port of first node obstruction, other node (i.e. all second sections in i.e. described ERPS rings Point) it is required for port blocked being switched to forwarding state.Thus, even if the first port of the first node subsequently exited again During addition, then the negotiation of port blocked is re-started, a port blocked also only can be finally determined on entire ERPS rings.Reason It is, a port blocked (second end for first node is only remained after the first port of first node exits, in ERPS rings Mouthful), and the port blocked is due to the obstruction for exiting progress of its fraternal port, which can receive and process The NR messages that other ports are sent participate in the final of port blocked and calculate and determine, therefore according to the port blocked of the prior art Calculation only can finally determine a port blocked (being typically the larger port of MAC Address), therefore would not also lead to certain A node can not carry out normal communication.
In a kind of possible realization method, when including looped network protection link RPL on the ERPS rings, due to RPL two The port at end is looped network protection link host node RPL owner ports and looped network protection link neighbor node RPL neighbour Port, therefore, in this case, aforementioned the analyzed orphan of solution that the embodiment provided in the application can be further Island problem ensures in the case of including RPL links on ERPS rings, when each node adds in again after exiting, will not cause Islanding problem ensures the communication between node.
It, can be with after ERPS link-recoveries are normal it is understood that since ERPS rings are divided into switchback/non-revertive mode Decide whether to block again RPL owner ports by setting switchback/non-revertive mode of ERPS.Under revertive mode, such as Fruit faulty link restores, and after waiting for the WTR times, obstruction RPL owner ports, blocking links can switch back to RPL again again On.Under non-revertive mode, if faulty link restores, WTR Timer are not started, and blocking links are also maintained at original On faulty link, it will not switch back on RPL again.Under default condition, ERPS rings are in revertive mode.That is, in switchback Under pattern, final port blocked may revert to RPL owner ports after the WTR times.
The embodiment of the present application exits ether ring protection handoff protocol by first node in the first port for determining itself In the case of ERPS rings, other nodes, that is, second node on ERPS rings in addition to the first node sends the first report approaching one's end Text, in order to which other nodes carry out state switching according to the message approaching one's end that first node is sent to itself current port blocked, Avoid being formed in a special case node can not normal communication situation.I.e. in the application by node is exited ERPS rings into Row definition, and the processing (such as sending message approaching one's end) of exiting done to node in the case where exiting ERPS rings is provided, And other nodes on the ERPS rings where the node are directed to the feedback for having node to be done required for exiting (such as by current congestion Port be switched to forwarding state) provided, can effectively avoid because the port on ERPS rings exit after again In the case of addition, caused by other nodes can not perceive node can not normal communication the problem of.
Referring to Fig. 3, Fig. 3 is the flow diagram of another looped network abnormal protection method in the embodiment of the present application, below By with reference to attached drawing 3 to the interaction side from first node and second node to the looped network abnormal protection method in the embodiment of the present application into Row detailed description.As shown in figure 3, this method may comprise steps of S301- steps S308.
Step S301:The first port of the first node that first node determines exits ether ring protection handoff protocol ERPS Ring, it is described exit ERPS rings and be used to indicate the first port do not handle ERPS protocol massages in the state of ERPS rings are exited, The first port is port of the first node on the ERPS rings.
Step S302:The first node blocks second port, and the second port is the first node described Port on ERPS rings, the second port are different from the first port.
Step S303:The first node sends the first message approaching one's end to second node, wherein, the first node and institute Second node is stated on the ERPS rings, the first node and the second node are different nodes, described first The first port that message approaching one's end is used to indicate the first node exits the ERPS rings.
Specifically, step S301- steps S303 can refer to the step S201- step S203 in above-mentioned Fig. 2 embodiments, here It repeats no more.
Optionally, first node can first block second port, then perform the first message approaching one's end in step S302 It sends, finally carries out exiting for first port again, thus, can ensure on ERPS rings first there are one port blocked, Then it determines to decontrol other port blockeds on ERPS rings by sending for the first message approaching one's end again, finally just carry out Port is exited, and it is cyclic before ERPS rings are exited to be effectively prevented first port.
Step S304:Second node receives the first message approaching one's end.
Specifically, step S303 can refer to the step S202 in above-mentioned Fig. 2 embodiments, and which is not described herein again.
Step S305:The second node adjusts port parameter so that the ERPS rings are maintained at pending shapes undetermined State.
Specifically, all second nodes on ERPS rings are after message approaching one's end is received, optionally can be by adjusting The port status of itself so that entire ERPS ring cuttings are changed to Pending states undetermined, because under pending states, port can To handle a greater variety of events, such as the processing of NR does not differentiate between RPL owner ports and RPL neighbour ports, own The message of port is all handled.
Step S306:If port of the second node on the ERPS rings is there are port blocked, by the obstruction The state of port is switched to forwarding state.
Specifically, step S306 can refer to the step S205 in above-mentioned Fig. 2 embodiments, and which is not described herein again.
Step S307:If the second port of the first node exits the ERPS rings, the is sent to the second node Two messages approaching one's end.
Specifically, the described second message approaching one's end is used to indicate the second port of the first node and exits the ERPS rings. If second port (such as port 2 node B in Fig. 1 on) of another of first node on ERPS rings also exits this ERPS rings, then can also send the second message approaching one's end, and second message approaching one's end is used to indicate the second port of the first node The ERPS rings are exited, second message approaching one's end includes the MAC address of the second node, in order to The identification of two nodes recognizes that message approaching one's end is specifically what is sent out from which port of which node on ERPS rings.
Step S308:The second node receives the second message approaching one's end.
Specifically, the described second message approaching one's end is used to indicate the second port of the first node and exits the ERPS rings, The second port is port of the first node on the ERPS rings, and second message approaching one's end includes the described second section The MAC address of point.It needs when second node receives the second message approaching one's end and receives and store before First message approaching one's end is compared, because, if if two ports of exiting for sending message approaching one's end come from same node, then It will cause the two ports on the node all in the state for exiting ERPS rings, and the state for exiting ERPS rings can lead to this Node is in the state of transparent data, that is to say, that reliably port blocked currently is not likely to form, and before this due to first The relieving for leading to the port blocked on other nodes is exited, therefore be likely to form loop at this time in port, causes to broadcast Storm.
Step S309:If the second node is judged in the described second message approaching one's end and first message approaching one's end MAC Address is identical, then controls and perform port initialization flow journey.
Specifically, when second node judges the MAC Address in the described second message approaching one's end and first message approaching one's end It is identical, then assert second port and first port is port on first node, as same source port can not lead at this time It crosses and controls the port status on some node to abolish loop, and need while ERPS rings maintain pending states, and Perform port initialization flow journey, again restore RPL on RPL owner ports and RPL neighbour ports obstruction or Again port blocked is selected.
The embodiment of the present application not only remains the advantageous effect of the corresponding embodiments of Fig. 2, also further port is exited It is a variety of it can happen that, as situation about being exited when two ports on node provides corresponding solution party Case, to avoid on ERPS rings due to the exiting of port, add in caused by isolated island situation, the node being effectively guaranteed on ERPS rings Between normal communication.
For the ease of preferably implementing the said program of the embodiment of the present application, present invention also provides implement for coordinating State the relevant equipment of scheme.The structure of the embodiment of the relevant device provided with reference to Fig. 4-the application shown in fig. 6 is shown It is intended to, is described in detail:
Referring to Fig. 4, Fig. 4 is a kind of structural representation of the embodiment of looped network abnormal protection device provided by the embodiments of the present application Figure, the device 10 may include:Processing module 101 and sending module 102, wherein:
Processing module 101, the first port for determining first node exit ether ring protection handoff protocol ERPS rings, institute It states to exit ERPS rings and be used to indicate the first port and does not handle ERPS protocol massages in the state of ERPS rings are exited, described Single port is port of the first node on the ERPS rings;
Processing module 101, is additionally operable to obstruction second port, and the second port is the first node in the ERPS rings On port, the second port is different from the first port;
Sending module 102, for sending the first message approaching one's end to second node, wherein, the first node and described the Two nodes are on the ERPS rings, and the first node and the second node are different nodes, and described first is approaching one's end The first port that message is used to indicate the first node exits the ERPS rings.
Specifically, processing module is used to determine that the first port of first node exits ether ring protection handoff protocol ERPS Ring, specially:Determine that ether ring protection handoff protocol ERPS rings are exited in the first port preparation of the first node.
Further, the described first message approaching one's end includes the MAC address of the first node.
Still further, including looped network protection link RPL on the ERPS rings, the port at the RPL both ends is protected for looped network Protect link host node RPL owner ports and looped network protection link neighbor node RPL neighbour ports.
Still further, sending module 102, is additionally operable to:
If the second port of the first node exits the ERPS rings, the second report approaching one's end is sent to the second node Text, the second port that second message approaching one's end is used to indicate the first node exit the ERPS rings.
Still further, second message approaching one's end includes the MAC address of the second node.
In the present embodiment, looped network abnormal protection device 10 is to present in modular form.Here " module " can be with Refer to application-specific integrated circuit (application-specific integrated circuit, ASIC), perform one or more The processor and memory of a software or firmware program, integrated logic circuit and/or other the device of above-mentioned function can be provided Part.In addition, Yi Shang processing module 101 can be realized by the processor 301 of looped network abnormal protection device 30 shown in fig. 6, hair Module 102 is sent communication interface 303 can be controlled to realize by the processor 301 of looped network abnormal protection device 30 shown in fig. 6.
It will be appreciated that the function of each module can be corresponded to reference to above-mentioned Fig. 2-Fig. 3 correspondences in looped network abnormal protection device 10 Embodiment of the method in specific implementation, which is not described herein again.
Referring to Fig. 5, Fig. 5 is that the structure of the embodiment of another looped network abnormal protection device provided by the embodiments of the present application is shown It is intended to, which may include:Receiving module 201 and processing module 202, wherein:
Receiving module 201, for receiving the first message approaching one's end, wherein, first message approaching one's end is used to indicate first segment The first port of point exits ether ring protection handoff protocol ERPS rings, and the first port is the first node in the ERPS Port on ring, the first node and the second node are on the ERPS rings, the first node and described second Node is different node;
Processing module 202, if for port of the second node on the ERPS rings there are port blocked, by institute The state for stating port blocked is switched to forwarding state.
Specifically, the described first message approaching one's end includes the MAC address of the first node;
Receiving module 201, is additionally operable to:After the first message approaching one's end is received, the second message approaching one's end is received, described second faces The second port that whole message is used to indicate the first node exits the ERPS rings, and the second port is the first node Port on the ERPS rings, second message approaching one's end include the MAC address of the second node;
Processing module 202, if being additionally operable to the second node judges the described second message approaching one's end and described first approaching one's end MAC Address in message is identical, then controls and perform port initialization flow journey.
Further, processing module 202 are additionally operable to:
After the first message approaching one's end is received, adjustment port parameter is so that the ERPS ring cuttings are changed to pending undetermined State.
Still further, including looped network protection link RPL on the ERPS rings, the port at the RPL both ends is protected for looped network Protect link host node RPL owner ports and looped network protection link neighbor node RPL neighbour ports.
In the present embodiment, looped network abnormal protection device 20 is to present in modular form.Here " module " can be with Refer to application-specific integrated circuit (application-specific integrated circuit, ASIC), perform one or more The processor and memory of a software or firmware program, integrated logic circuit and/or other the device of above-mentioned function can be provided Part.In addition, Yi Shang processing module 202 can be realized by the processor 301 of looped network abnormal protection device 30 shown in fig. 6, connect Receiving module 201 can control communication interface 303 to realize by the processor 301 of looped network abnormal protection device 30 shown in fig. 6.
It will be appreciated that the function of each module can be corresponded to reference to above-mentioned Fig. 2-Fig. 3 correspondences in looped network abnormal protection device 20 Embodiment of the method in specific implementation, which is not described herein again.
As shown in fig. 6, Fig. 6 is a kind of structure diagram of the embodiment of node device provided by the embodiments of the present application, In, looped network abnormal protection device 10 and looped network abnormal protection device 20 can be realized with the structure of the node device in Fig. 6, should Node device 30 includes at least one processor 301, at least one processor 302, at least one communication interface 303.It in addition, should Node device can also including antenna etc. universal components, this will not be detailed here.
Processor 301 can be general central processor (CPU), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) or one or more are used to control above scheme journey The integrated circuit that sequence performs.
Communication interface 303, for other equipment or communication, such as Ethernet, wireless access network (RAN), nothing Line LAN (Wireless Local Area Networks, WLAN) etc..
Memory 302 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored Breath and the other kinds of dynamic memory or Electrically Erasable Programmable Read-Only Memory (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to Enable or data structure form desired program code simultaneously can by any other medium of computer access, but not limited to this. Memory can be individually present, and be connected by bus with processor.Memory can also be integrated with processor.
Wherein, the memory 302 for store perform above scheme application code, and by processor 301 Control performs.The processor 301 is used to perform the application code stored in the memory 302.
Node device shown in fig. 6 be looped network abnormal protection device 10 when, memory 302 store code can perform more than The looped network abnormal protection method that the looped network abnormal protection device 10 of offer performs, for example determine that the first port of first node exits Ether ring protection handoff protocol ERPS rings, the ERPS rings that exit are used to indicate the first port in the state for exiting ERPS rings Under do not handle ERPS protocol massages, the first port is port of the first node on the ERPS rings;Obstruction second Port, the second port are port of the first node on the ERPS rings, the second port and the first end Mouth is different;The first message approaching one's end is sent to second node, wherein, the first node and the second node are in the ERPS On ring, the first node and the second node are different nodes, and first message approaching one's end is used to indicate described the The first port of one node exits the ERPS rings.
Node device shown in fig. 6 be looped network abnormal protection device 20 when, memory 302 store code can perform more than The looped network abnormal protection method that the looped network abnormal protection device 20 of offer performs, for example the first message approaching one's end is received, wherein, it is described The first port that first message approaching one's end is used to indicate first node exits ether ring protection handoff protocol ERPS rings, the first end Mouth is port of the first node on the ERPS rings, and the first node and the second node are in the ERPS rings On, the first node and the second node are different nodes;If end of the second node on the ERPS rings There are port blockeds for mouth, then the state of the port blocked are switched to forwarding state.
It will be appreciated that the function of each module can be corresponded to reference to the corresponding method realities of above-mentioned Fig. 2-Fig. 3 in node device 30 The specific implementation in example is applied, which is not described herein again.
The embodiment of the present application also provides a kind of computer storage media, wherein, which can be stored with journey Sequence, including the part or all of of any one looped network abnormal protection method described in the above method embodiment when which performs Step.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It should be noted that for aforementioned each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement because According to the application, certain steps may may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this Shen It please be necessary.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of Division of logic function, can there is an other dividing mode in actual implementation, such as multiple units or component can combine or can To be integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit or Each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated unit Both the form that hardware may be used is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc., can be specifically the processor in computer equipment) is held The all or part of step of each embodiment above method of row the application.Wherein, aforementioned storage medium may include:USB flash disk, shifting Dynamic hard disk, magnetic disc, CD, read-only memory (English:Read-Only Memory, abbreviation:) or random access memory ROM (English:Random Access Memory, abbreviation:The various media that can store program code such as RAM).
The above, above example are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to before Embodiment is stated the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or carry out equivalent replacement to which part technical characteristic;And these Modification is replaced, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (20)

1. a kind of looped network abnormal protection method, which is characterized in that including:
The first port of the first node that first node determines exits ether ring protection handoff protocol ERPS rings, described to exit ERPS rings are used to indicate the first port and do not handle ERPS protocol massages, the first port in the state of ERPS rings are exited For port of the first node on the ERPS rings;
The first node blocks second port, and the second port is port of the first node on the ERPS rings, The second port is different from the first port;
The first node sends the first message approaching one's end to second node, wherein, the first node and the second node are equal On the ERPS rings, the first node and the second node are different nodes, and first message approaching one's end is used for Indicate that the first port of the first node exits the ERPS rings.
2. the method as described in claim 1, which is characterized in that the first node determines the first port of the first node Ether ring protection handoff protocol ERPS rings are exited, are specifically included:
The first node determines that ether ring protection handoff protocol ERPS rings are exited in the first port preparation of the first node.
3. method as claimed in claim 1 or 2, which is characterized in that first message approaching one's end includes the first node MAC address.
4. the method as described in any one in claim 1-3, which is characterized in that include looped network protection on the ERPS rings Link RPL, the port at the RPL both ends are saved for looped network protection link host node RPLowner ports and looped network protection link neighbours Point RPL neighbour ports.
5. the method as described in any one in claim 1-4, which is characterized in that the method further includes:
If the second port of the first node exits the ERPS rings, the second message approaching one's end, institute are sent to the second node It states the second message approaching one's end and is used to indicate the second port of the first node and exit the ERPS rings.
6. method as claimed in claim 5, which is characterized in that second message approaching one's end includes the media of the second node Access control MAC addresses.
7. a kind of Ethernet Circle guard method, which is characterized in that including:
Second node receives the first message approaching one's end, wherein, first message approaching one's end is used to indicate the first port of first node Ether ring protection handoff protocol ERPS rings are exited, the first port is port of the first node on the ERPS rings, On the ERPS rings, the first node is to differ with the second node for the first node and the second node Node;
If there are port blockeds for port of the second node on the ERPS rings, the state of the port blocked is switched For forwarding state.
8. the method for claim 7, which is characterized in that first message approaching one's end includes the media of the first node Access control MAC addresses;
After the second node receives the first message approaching one's end, further include:
The second node receives the second message approaching one's end, and second message approaching one's end is used to indicate the second end of the first node Mouth exits the ERPS rings, and the second port is port of the first node on the ERPS rings, and described second is approaching one's end Message includes the MAC address of the second node;
If the second node judges that the described second message approaching one's end is identical with the MAC Address in the described first message approaching one's end, Control performs port initialization flow journey.
9. method as claimed in claim 7 or 8, which is characterized in that after the second node receives the first message approaching one's end, also Including:
The second node adjusts port parameter so that the ERPS ring cuttings are changed to pending states undetermined.
10. the method as described in any one in claim 7-9, which is characterized in that include looped network on the ERPS rings and protect Link RPL is protected, the port at the RPL both ends is looped network protection link host node RPLowner ports and looped network protection link neighbours Node R PL neighbour ports.
11. a kind of looped network abnormal protection device, which is characterized in that including:
Processing module, the first port for determining first node exits ether ring protection handoff protocol ERPS rings, described to exit ERPS rings are used to indicate the first port and do not handle ERPS protocol massages, the first port in the state of ERPS rings are exited For port of the first node on the ERPS rings;
The processing module, is additionally operable to obstruction second port, and the second port is the first node on the ERPS rings Port, the second port is different from the first port;
Sending module, for sending the first message approaching one's end to second node, wherein, the first node and the second node are equal On the ERPS rings, the first node and the second node are different nodes, and first message approaching one's end is used for Indicate that the first port of the first node exits the ERPS rings.
12. device as claimed in claim 11, which is characterized in that the processing module is used to determine the first end of first node Mouth exits ether ring protection handoff protocol ERPS rings, specially:
Determine that ether ring protection handoff protocol ERPS rings are exited in the first port preparation of the first node.
13. the device as described in claim 11 or 12, which is characterized in that first message approaching one's end includes the first node MAC address.
14. the device as described in any one in claim 11-13, which is characterized in that include looped network on the ERPS rings Link RPL is protected, the port at the RPL both ends is adjacent for looped network protection link host node RPLowner ports and looped network protection link Occupy node R PL neighbour ports.
15. the device as described in any one in claim 11-14, which is characterized in that the sending module is additionally operable to:
If the second port of the first node exits the ERPS rings, the second message approaching one's end, institute are sent to the second node It states the second message approaching one's end and is used to indicate the second port of the first node and exit the ERPS rings.
16. device as claimed in claim 15, which is characterized in that second message approaching one's end includes the matchmaker of the second node Body access control MAC addresses.
17. a kind of Ethernet ring line protection device, which is characterized in that including:
Receiving module, for receiving the first message approaching one's end, wherein, first message approaching one's end is used to indicate the first of first node Ether ring protection handoff protocol ERPS rings are exited in port, and the first port is end of the first node on the ERPS rings Mouthful, on the ERPS rings, the first node and the second node are not for the first node and the second node Identical node;
Processing module, if for port of the second node on the ERPS rings there are port blocked, by the obstruction The state of port is switched to forwarding state.
18. device as claimed in claim 17, which is characterized in that first message approaching one's end includes the matchmaker of the first node Body access control MAC addresses;
The receiving module, is additionally operable to:
After the first message approaching one's end is received, the second message approaching one's end is received, second message approaching one's end is used to indicate described first The second port of node exits the ERPS rings, and the second port is port of the first node on the ERPS rings, Second message approaching one's end includes the MAC address of the second node;
The processing module, if being additionally operable to the second node judges the described second message approaching one's end and first message approaching one's end In MAC Address it is identical, then control perform port initialization flow journey.
19. the device as described in claim 17 or 18, which is characterized in that the processing module is additionally operable to:
After the first message approaching one's end is received, adjustment port parameter is so that the ERPS ring cuttings are changed to pending states undetermined.
20. the device as described in any one in claim 17-19, which is characterized in that include looped network on the ERPS rings Link RPL is protected, the port at the RPL both ends is adjacent for looped network protection link host node RPLowner ports and looped network protection link Occupy node R PL neighbour ports.
CN201611244908.2A 2016-12-29 2016-12-29 Loop network abnormity protection method and device Active CN108259289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611244908.2A CN108259289B (en) 2016-12-29 2016-12-29 Loop network abnormity protection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611244908.2A CN108259289B (en) 2016-12-29 2016-12-29 Loop network abnormity protection method and device

Publications (2)

Publication Number Publication Date
CN108259289A true CN108259289A (en) 2018-07-06
CN108259289B CN108259289B (en) 2021-01-15

Family

ID=62719858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611244908.2A Active CN108259289B (en) 2016-12-29 2016-12-29 Loop network abnormity protection method and device

Country Status (1)

Country Link
CN (1) CN108259289B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637052A (en) * 2020-12-18 2021-04-09 迈普通信技术股份有限公司 Switching method, switching device, ring network, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232427A (en) * 2007-01-23 2008-07-30 华为技术有限公司 Ethernet loop protection method and apparatus
CN101854283A (en) * 2010-06-01 2010-10-06 杭州华三通信技术有限公司 Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN101873244A (en) * 2010-06-09 2010-10-27 神州数码网络(北京)有限公司 Automatic multi-loop protection method
CN102238067A (en) * 2010-04-28 2011-11-09 杭州华三通信技术有限公司 Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
CN104767663A (en) * 2014-01-07 2015-07-08 艾默生网络能源有限公司 Ring communication network main node switching method, device and system
CN105591859A (en) * 2015-09-02 2016-05-18 杭州华三通信技术有限公司 Method and device for dynamically adjusting blocked port for ERPS ring
CN105812152A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Ethernet ring network fault notification method
WO2016173213A1 (en) * 2015-04-27 2016-11-03 华为技术有限公司 Ethernet ring protection switching method and node

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232427A (en) * 2007-01-23 2008-07-30 华为技术有限公司 Ethernet loop protection method and apparatus
CN102238067A (en) * 2010-04-28 2011-11-09 杭州华三通信技术有限公司 Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
CN101854283A (en) * 2010-06-01 2010-10-06 杭州华三通信技术有限公司 Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN101873244A (en) * 2010-06-09 2010-10-27 神州数码网络(北京)有限公司 Automatic multi-loop protection method
CN104767663A (en) * 2014-01-07 2015-07-08 艾默生网络能源有限公司 Ring communication network main node switching method, device and system
CN105812152A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Ethernet ring network fault notification method
WO2016173213A1 (en) * 2015-04-27 2016-11-03 华为技术有限公司 Ethernet ring protection switching method and node
CN105591859A (en) * 2015-09-02 2016-05-18 杭州华三通信技术有限公司 Method and device for dynamically adjusting blocked port for ERPS ring

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MOHAMMAD NURUJJAMAN: "Improving service availability In ERP based mesh networks", 《2012 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM)》 *
崔素娟: "基于G.8032的以太网环网保护技术研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637052A (en) * 2020-12-18 2021-04-09 迈普通信技术股份有限公司 Switching method, switching device, ring network, electronic equipment and storage medium
CN112637052B (en) * 2020-12-18 2022-02-22 迈普通信技术股份有限公司 Switching method, switching device, ring network, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108259289B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
EP1878168B1 (en) System and method for implementing reflector ports within hierarchical networks
EP1994694B1 (en) System and method for preventing loops in the presence of control plane failures
US8274919B2 (en) System and method for implementing multiple ring networks using a common link
US8462668B2 (en) System and method for implementation of layer 2 redundancy protocols across multiple networks
CN101854283B (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
US8687523B2 (en) System and method for integrating ring-protocol-compatible devices into network configurations that also include non-ring-protocol compatible devices
CN106992931B (en) Switch redundancy backup method based on double-loop and double-loop system
TW201308940A (en) Recovery method for ring-based network
CN101771705B (en) Processing method based on RRPP and device
CN106789521A (en) A kind of ring network fault reverse method and link point
CN102916862B (en) Intelligent looped network dynamic protection method of industrial Ethernet switch
CN107547369B (en) flow switching method and device
GB2406486A (en) Configuring a spanning tree
CN112995002B (en) Switch ring network design method, switch and storage medium
CN108259289A (en) A kind of looped network abnormal protection method and device
CN104780138B (en) The transmitting method and device of STP/RSTP messages in privately owned redundancy protocol network
CN103618630B (en) A kind of data safe transmission method and equipment based on double up-links
CN102984027A (en) Method and device for message loop detection
JP2011223172A (en) Ring-type network system, communication apparatus and failure detection method
CN107104870B (en) Switch capable of realizing multiple network redundancy settings
EP3232617B1 (en) Protection switching method and system, and nodes
CN101729349B (en) RRPP-based detection method and device for connectivity of main ring access
CN106059824A (en) Fault processing method and device
CN104184639A (en) Processing method and device for multi-point fault of EPRS loop circuit
CN110213146A (en) Packet Transport Network PTN service protecting method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant