CN105591860B - Looped network protecting method and device based on RRPP - Google Patents
Looped network protecting method and device based on RRPP Download PDFInfo
- Publication number
- CN105591860B CN105591860B CN201510621108.7A CN201510621108A CN105591860B CN 105591860 B CN105591860 B CN 105591860B CN 201510621108 A CN201510621108 A CN 201510621108A CN 105591860 B CN105591860 B CN 105591860B
- Authority
- CN
- China
- Prior art keywords
- node
- link
- port
- message
- state
- 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.)
- Active
Links
Abstract
This application discloses a kind of looped network protecting method and devices based on RRPP, wherein this method comprises: detecting the state of the primary link and standby link between this node and assistant edge node when as fringe node;Wherein, standby link is link Chong Die with subring on main ring, and primary link is the link between the fringe node in main ring in addition to standby link and assistant edge node;When the state for detecting primary link and standby link is Down, block the edge port of this node, and LinkDown message is sent to the host node of subring by edge port, for notifying the host node of subring to open secondary port.The application has achieved the purpose that the subring fast convergence in main ring failure, and the break period of data flow has been greatly shortened.
Description
Technical field
This application involves network communication technology field, in particular to a kind of looped network protecting method and device based on RRPP.
Background technique
Metropolitan Area Network (MAN) and enterprise network mostly use Ethernet ring greatly to construct to guarantee high reliability.RRPP(Rapid Ring
Protection Protocol, rapid ring protection protocol) it is the link layer protocol for being specifically applied to Ethernet ring, RRPP's
Convergence time is unrelated with the number of nodes on looped network, can be applied to the biggish network of network diameter.Convergence time within 50ms, and
And configuration is relatively easy.
In the looped network for including main ring and at least one subring, when the state health of main ring, the host node of subring is from master
Port sends Hello and (shakes hands) message, is received after main ring by the secondary port of the host node of subring.
Following problems exist in the prior art: when main ring link Down (failure), that is, main ring top edge node and auxiliary
When the state of both links between fringe node is Down, the host node of subring is in predetermined amount of time (assuming that being denoted as T)
The hello packet that the sending of this node is not received from secondary port, can just open secondary port, such that between certain nodes
Flow interruption for a period of time (longest reaches T time), is unable to fast convergence so as to cause subring.
Summary of the invention
In view of this, this application provides a kind of looped network protecting method and devices based on RRPP.
The technical solution of the application is as follows:
On the one hand, a kind of ring net protection method based on RRPP is provided, is applied to include main ring and at least one subring
Looped network in node, this method comprises:
When as fringe node, the state of the primary link and standby link between this node and assistant edge node is detected;
Wherein, standby link is link Chong Die with subring on main ring, primary link be fringe node in main ring in addition to standby link with it is auxiliary
Help the link between fringe node;
When the state for detecting primary link and standby link is Down, block the edge port of this node, and passes through side
Acies mouth sends LinkDown message to the host node of subring, for notifying the host node of subring to open secondary port.
On the other hand, a kind of looped network protection device based on RRPP is additionally provided, is applied to including main ring and at least one
In node in the looped network of subring, which includes:
Detection module, for when the device be applied to fringe node in when, detection fringe node and assistant edge node it
Between primary link and standby link state;Wherein, standby link is link Chong Die with subring on main ring, and primary link is removed in main ring
Link between fringe node other than standby link and assistant edge node;
Port blocking module, when for detecting that the state of primary link and standby link is Down when detection module, obstruction
The edge port of fringe node;
Sending module passes through edge when for detecting that the state of primary link and standby link is Down when detection module
Port sends LinkDown message to the host node of subring, for notifying the host node of subring to open secondary port.
In the above technical scheme of the application, after fringe node detects that the state of primary link and standby link is all Down,
At this point, main ring failure, blocks edge port and the actively host node by transmission LinkDown message notifying to subring, subring
It after host node receives the LinkDown message, will be considered that it is subring failure, then secondary port can be opened immediately, to reach in master
The purpose of subring fast convergence when ring failure, has been greatly shortened the break period of data flow.
Detailed description of the invention
Fig. 1 is the configuration diagram of typical RRPP domain;
Fig. 2 is the transmission schematic diagram of hello packet in the networking of RRPP monocycle;
Fig. 3 is in the networking of RRPP monocycle, the transmission schematic diagram for the LinkDown message that when port Down sends;
Fig. 4 is in the networking of RRPP list ring, and in the case where main ring health, the transmission of the hello packet in subring is shown
It is intended to;
Fig. 5 is in the networking of RRPP list ring, when main ring upper pathway is node B → node D link failure, in subring
The transmission schematic diagram of hello packet;
Fig. 6 is in the networking of the more subrings of RRPP, in the case where main ring Down, the transmission schematic diagram of data message;
Fig. 7 is in the networking of the more subrings of RRPP, and the prior art detects the message transmissions schematic diagram of the state of main ring link;
Fig. 8 is the configuration diagram of the RRPP ring net of the embodiment of the present application application;
Fig. 9 is the flow chart of the ring net protection method based on RRPP of the embodiment of the present application;
Figure 10 is the flow chart of the fringe node detection primary link of the embodiment of the present application and the state of standby link;
When Figure 11 is the port the P1 Down of the node C in Fig. 8, the transmission schematic diagram of LinkDown message;
When Figure 12 is the port the P3 Down of the node D in Figure 11, the transmission schematic diagram of LinkDown message;
Message transmissions schematic diagram when Figure 13 is the port the P1 Up of the node C in Figure 12;
Figure 14 is a kind of structural schematic diagram of the looped network protection device based on RRPP of the embodiment of the present application;
Figure 15 is another structural schematic diagram of the looped network protection device based on RRPP of the embodiment of the present application.
Specific embodiment
First basic concepts involved in RRPP and mechanism are simply introduced below.
One, the basic conception in RRPP
RRPP domain: domain ID is the unique identification of RRPP domain, and a RRPP domain is by with same domain ID and control VLAN and phase
Intercommunicated equipment is constituted.It include following element in RRPP domain: main ring, subring, control VLAN, host node, transmission node, edge
Node, assistant edge node, master port, secondary port, common port and edge port etc..
RRPP ring: the ether net topology of an annular connection is known as a RRPP ring.RRPP ring is divided into main ring and subring, ring
Role can be by specifying the rank of RRPP ring set: the rank of main ring is 0, and the rank of subring is 1.One RRPP domain can
To be made of a RRPP ring, can also be collectively formed by a main ring and several subrings.As shown in Figure 1, RRPP domain be by
One main ring and a subring are constituted.
Control VLAN: RRPP protocol massages are used for transmission.The port that RRPP ring is accessed in equipment belongs to control VLAN, and
This control VLAN can be added in the port for only accessing RRPP ring.Each RRPP domain there are two control VLAN: main control VLAN and
Son control VLAN, wherein main control VLAN is that the control VLAN, sub- control VLAN of main ring are the control VLAN of subring.
Data vlan: it is used for transmission data message.It both may include the port RRPP in data vlan, and also may include the non-end RRPP
Mouthful.
The role of node: every equipment on RRPP ring is referred to as a node, and the role of node is specified by user, is divided into
It is several below:
Host node: one and only one host node on each RRPP ring is the promoter and policymaker of RRPP agreement.Such as figure
Node A in 1 is the host node of main ring, and node E is the host node of subring.
Transmission node: host node, subring and master are removed on the other all nodes and subring on main ring in addition to host node
Other all nodes other than ring crossed node are all transmission node.Node B, node C and node D as shown in figure 1 is transmission section
Point.Transmission node is responsible for monitoring the state of the direct-connected RRPP link of this node, and link change is notified to host node, then by
Host node comes how decision is handled.
Fringe node: being special joint that is a kind of while being located on main ring and subring, it is host node or biography on main ring
Defeated node, and in subring it is fringe node.Node B as shown in figure 1 is fringe node.
Assistant edge node: and a kind of special joint being located on main ring and subring simultaneously, it is main section on main ring
Point or transmission node, and in subring it is assistant edge node.Assistant edge node uses in pairs with fringe node, for detecting
The integrality and progress loop prevention of main ring.Node D as shown in figure 1 is assistant edge node.
The role of port is divided into following several:
Primary port and secondary port: in two ports of host node and transmission node access RRPP ring, one is master port,
Another is secondary port.The role of port is specified by user.The port Pri and the port Sec of node A is respectively main side as shown in figure 1
Mouth and secondary port.
Common port and edge port: public port is the port of Edge node and assistant edge node access main ring, i.e.,
Two ports that Edge node and assistant edge node configures on main ring respectively.Edge port is fringe node and assistant edge
The port of node access subring.It as shown in figure 1, is edge port as the port P3 of the node B of fringe node, P1 and P2 are public
Port.
Two, the mechanism of RRPP monocycle
It sends Hello as shown in Fig. 2, host node A periodically passes through master port (Pri) and (shakes hands) message, successively pass through
Each transmission node is transmitted on RRPP ring.If the secondary port (Sec) of host node A can receive the transmission of this node
Hello packet then illustrates that main ring is health status (i.e. no failure), can block secondary port (Sec), prevent cyclization.
As the port Down of some node in RRPP ring, the i.e. direct-connected RRPP link of port failure itself or the port
When failure, which can send Linkdown (link failure) message from another port, and host node receives the Linkdown
Secondary port can be opened after message, RRPP ring can be made quickly and effectively to be restrained in this way.As shown in figure 3, the master port of node D
(Pri) after Down, Linkdown message is sent from secondary port (Sec), equally, node B can also send Linkdown message.
Three, the polycyclic mechanism of RRPP
RRPP networking list ring situation is as shown in figure 4, in the case where main ring health, and subring host node G is from master port
(Pri) hello packet is sent finally to be connect by the secondary port (Sec) of the host node G of subring by the node B and node D of main ring
It receives.As shown in figure 5, if the port Down of node B, at this point, the port of node D also Down, then node B and node D can be from
The port of UP sends LinkDown message, after the host node A of main ring receives LinkDown message, can open the secondary end of this node
Mouth (Sec), in this way, the forward-path of the hello packet of subring is node G → node B → node A → node C → node D → section
Point G.Only when the chain that the link and path that path is Node B-Node D in main ring are Node B-Node A- node C- node D
Road all Down, the secondary port of the host node G of subring just can because of time-out not receive this node sending hello packet and by
It opens.
The case where RRPP networking more subrings, is as shown in fig. 6, subring 1 and 2 dual homed of subring belong to main ring, when path is in main ring
When the link of Node B-Node D and path have been link all Down of Node B-Node A- node C- node D, the master of subring 1
The secondary port of node E and the host node F of subring 2 are all turned on, at this point, data message along node E → node B → node F →
The direction node D → node E cyclization.
As shown in fig. 7, fringe node B can send Edge- every 0.5s two public ports for passing through this node respectively
Hello (shakes hands at edge) message, so as to the main ring link between fringe node B and assistant edge node D (that is, path is section
The link that the link of point B- node A- node C- node D and path are Node B-Node D) it is detected.Assistant edge node D connects
Edge-Hello message is received, if assistant edge node D does not receive Edge-Hello message in 2s, then it represents that fringe node
Main ring link Down between B and assistant edge node D is (that is, link and road that path is Node B-Node A- node C- node D
Diameter is the equal Down of link of Node B-Node D), assistant edge node D can send Major-Fault (main ring event along subring direction
Barrier) message, fringe node B receives the edge port that can block this node after Major-Fault message, can prevent subring in this way
Cyclization.
From the above, it can be seen that as main ring link Down, as shown in fig. 6, main ring top edge node B and assistant edge node
D between both links: the link and path that path is Node B-Node D are the link of Node B-Node A- node C- node D
State when being Down, the host node E of subring does not receive this section from secondary port in predetermined amount of time (assuming that being denoted as T)
The hello packet that point issues, can just open secondary port, such that the flow interruption between certain nodes is for a period of time (most
Length reaches T time), for example, the flow interruption between node E and node C, is unable to fast convergence so as to cause subring.
In order to solve the problems, such as that subring convergence existing in the prior art is slower, one is provided in the application following embodiment
Ring net protection method of the kind based on RRPP, and a kind of looped network protection device based on RRPP that can apply this method.
As shown in figure 8, including: main ring and at least one subring (merely illustrating a subring in Fig. 8) in looped network.
Following concept is introduced in the application following embodiment:
Node ID (IDentity, mark): each node on main ring has the unique identification of oneself, can configure
Title or MAC (Media Access Control, the media access control) node ID of address as the node of node.
Primary link and standby link: there are both links between main ring top edge node and assistant edge node, wherein on main ring
The link Chong Die with subring is known as standby link, and another link on main ring is known as primary link.As shown in figure 8, path is node
The link of B- node D- node F is standby link, and path is that the link of Node B-Node A- node C- node E- node F is main chain
Road.
The Primary port and secondary port of Edge node and assistant edge node: master is accessed on Edge node and assistant edge node
The public port of link is master port, accesses the public port of standby link as secondary port.As shown in figure 8, the Pri of fringe node B
Port is master port, the port Sec is secondary port, and the port Pri of assistant edge node F is master port, the port Sec is secondary port.
The type of node: the node on main ring is classified as three classes on fringe node: main chain circuit node removes on primary link
Node other than Edge node and assistant edge node, such as node A, node C, the node E in Fig. 8;Standby link node, i.e., for chain
Node of the road in addition to Edge node and assistant edge node node, such as the node D in Fig. 8;Assistant edge node, in Fig. 8
Node F.
In addition, also having carried out following extension to RRPP protocol massages in the application following embodiment:
(1) node ID for issuing the node of the LinkDown message is carried in existing LinkDown message, and
LinkDown message can be handled and be forwarded in fringe node transmitted to CPU;
(2) Link Query (link inquiry) message and Link Reply (link acknowledgement) message have been increased newly, that is, edge section
When the state of point active inquiry primary link and standby link, Link Query message is sent by Primary port and secondary port respectively, it should
The VLAN carried in Link Query message is main control VLAN, source MAC is the MAC Address of fringe node, purpose MAC
Location is a kind of special MAC Address, is used to indicate only assistant edge node and just needs transmitted to CPU processing Link Query report
Text;The node of approach is directly forwarded after receiving Link Query message;Assistant edge node receives Link Query report
Wen Hou, transmitted to CPU are handled, and reply Link Reply message by the inbound port of the Link Query message, wherein should
The MAC Address that the VLAN carried in Link Reply message is main control VLAN, target MAC (Media Access Control) address is fringe node.
As shown in figure 9, the ring net protection method based on RRPP of the embodiment of the present application the following steps are included:
Step S102, fringe node detect the state of primary link and standby link between this node and assistant edge node,
Step S104 is executed later;
As a port Down of any node on RRPP ring, which can send LinkDown from another port
Message, in the application following embodiment, fringe node can use the mechanism, detect the state of primary link and standby link.Specifically
, in step s 102, the method that fringe node detects the state of primary link and standby link is as shown in Figure 10, including following step
It is rapid:
Step S202 judges whether to have received LinkDown message, if so, thening follow the steps S204, otherwise, returns to step
Rapid S202;
Wherein, the node ID for issuing the node of the LinkDown message is carried in LinkDown message;
Step S204 obtains the node ID carried in the LinkDown message;
Step S206 judges to issue whether the node of the LinkDown message is primary link section according to the node ID got
Otherwise point, executes step S214 if so, thening follow the steps S208;
Step S208 determines that the state of primary link is Down;
Specifically, set main chain circuit node mark MasterNode_flag is 1, the state to record primary link is
Down。
Step S210, judge standby link state whether Down, if so, then follow the steps S212, otherwise, return step
S202;
Specifically, judging standby link node mark SecNode_falg, whether set is 1, and if 1, then standby link state is
Down。
Step S212 executes step S104;
Step S214 judges to issue whether the node of the LinkDown message is standby link section according to the node ID got
Otherwise point, executes step S220 if so, thening follow the steps S216;
Step S216 determines that the state of standby link is Down;
Specifically, set standby link node mark SecNode_flag is 1, the state to record standby link is Down.
Step S218, judge primary link state whether Down, if so, then follow the steps S212, otherwise, return step
S202;
Step S220 judges to issue whether the node of the LinkDown message is assistant edge according to the node ID got
Otherwise node, terminates this process if so, thening follow the steps S222;
Step S222 judges that the inbound port of the LinkDown message is that master port or secondary port are then held if master port
Row step S216, if secondary port, thens follow the steps S208.
In addition, being there are also a kind of situation: the port failure of fringe node itself, at this point, if detecting the main side of this node
Mouth failure, it is determined that the state of primary link is Down;If detecting the secondary port failure of this node, it is determined that the state of standby link
For Down.
Step S104, when the state for detecting primary link and standby link is Down, fringe node blocks edge port,
And LinkDown message is sent to the host node of subring by edge port, for notifying the host node of subring to open secondary port.
It after the host node of subring receives LinkDown message, can think that failure has occurred in subring, then open secondary port immediately.
Wherein, after port is blocked, the port of the obstruction can abandon the message after receiving message, also, will not continue to turn
Send out the message.
Subsequent, when primary link or standby link become Up, the host node of subring will receive the Hello report of this node sending
Text, and Complete-Flush-FDB (completely refreshing forwarding-table item) message is sent, to notify each section in subring and main ring
The MAC that the state of primary link and standby link of the point deletion between fringe node and assistant edge node learns when being Down
Address list item.In the embodiment of the present application, fringe node can use the mechanism, send in the host node for receiving subring
After Complete-Flush-FDB message, the edge port of this node is opened, and is sent respectively by Primary port and secondary port
Link Query message;Assistant edge node is after receiving the Link Query message that fringe node is sent, by this
The inbound port of Link Query message replys Link Reply message;Fringe node receives the Link of assistant edge node reverts back
After Reply message, when the inbound port of the Link Reply message is master port, determine that the state of primary link is Up, at this
When the inbound port of Link Reply message is secondary port, determine that the state of standby link is Up.
In the method for the above embodiments of the present application, fringe node detects that the state of primary link and standby link is all Down
Afterwards, at this point, main ring failure, fringe node can block edge port and actively be informed by sending LinkDown message to subring
Host node after the host node of subring receives the LinkDown message, then can open secondary port immediately, to reach in main ring event
The purpose of subring fast convergence when barrier, has been greatly shortened the break period of data flow.
In addition, in the prior art by periodically sending Edge-Hello respectively from two public ports of fringe node
Message, to detect the state of the main ring link between fringe node and assistant edge node, and the transmission of Edge-hello message
Frequency is higher, to can affect to the performance of node.In order to solve this problem, the method for the embodiment of the present application
In, the link between main ring top edge node and assistant edge node is divided into primary link and standby link, wherein standby link position
In the main ring chain road Chong Die with subring, another is primary link, and Edge node and assistant edge node node will be removed on primary link
Node in addition is known as main chain circuit node, and the node on standby link in addition to Edge node and assistant edge node node is known as standby chain
Circuit node, the public port that primary link is accessed on fringe node are defined as master port, and the public port for accessing standby link is defined as
Standby port, and, existing LinkDown message is extended, addition issues the section of the LinkDown message in LinkDown message
The node ID of point;Using in the prior art as the Single port Down of any node, then LinkDown report is sent by another port
The mechanism of text, fringe node can be after receiving LinkDown message, according to the section carried in the LinkDown message received
Point ID judges that the node for issuing the LinkDown message is main chain circuit node, standby link node or assistant edge node, most
Eventually, it determines the state of primary link and standby link, thus, it is possible to be quickly detected the failure of main ring, and is sent out without additional timing
Packet alleviates the burden of node, improves the performance of node to carry out link detecting.
In addition, the link between main ring top edge node and assistant edge node is divided into primary link and standby link, one
Denier finds that the state of primary link or standby link is Down, is convenient for localization of fault on primary link or standby link.
Below by taking RRPP ring net as shown in Figure 8 as an example, the method for above-described embodiment is introduced.Shown in Figure 11
It include: a main ring and a subring in RRPP ring net, the host node of main ring is node A, and the host node of subring is node G, section
Point B is fringe node, and node F is assistant edge node.The master port of fringe node B and assistant edge node F be the port Pri,
Secondary port is the port Sec.
As shown in figure 11, as the port the P1 Down of node C, node C can send LinkDown message, edge from the port P2
After node B receives the LinkDown message, according to the node ID of the node C carried in the LinkDown message, judgement is set out
The node (i.e. node C) of the LinkDown message is main chain circuit node out, it is determined that primary link Down, record primary link Down's
Mark;Subsequent, as shown in figure 12, as the port the P3 also Down of node D, node D can send LinkDown message from the port P4,
After fringe node B receives the LinkDown message, according to the node ID of the node D carried in the LinkDown message, judge
The node (i.e. node D) for issuing the LinkDown message is standby link node, it is determined that standby link Down records standby link Down
Mark.
At this point, fringe node B discovery primary link and standby link Down, determine main ring Down, can block marginal end
Mouth simultaneously sends the LinkDown message for carrying son control VLAN from edge port.The host node G of subring receives LinkDown report
Subring Down is thought after text, can decontrol secondary port (port Sec) immediately, thus, achieve the purpose that fast convergence.
Subsequent, as shown in figure 13, when the port the P1 Up of node C, the host node of subring can receive the Hello of itself sending
Message (forward-path is node G → node B → node A → node C → node E → node F → node G), can block secondary port,
And send each knot removal MAC Address list item of Complete-Flush-FDB message notifying.Fringe node B receives this
After Complete-Flush-FDB message, edge port can be opened, and Link is sent by Primary port and secondary port respectively
Query message inquires the state of primary link and standby link;Assistant edge node F receives Link Query report by the port Pri
Wen Houhui is replied after Link Reply message gives fringe node B, fringe node B to receive the Link Reply message from the port Pri,
Judge that the port for receiving the Link Reply message is master port (port Pri), it is determined that primary link Up deletes primary link
The mark of Down.
For the method in above-described embodiment, additionally provided in the embodiment of the present application it is a kind of can using this method based on
The looped network protection device of RRPP, the device are applied to include in the node in main ring and the looped network of at least one subring.
As shown in figure 14, it is comprised the following modules in the device: detection module 301, port blocking module 302 and sending module
303, in which:
Detection module 301, for detecting fringe node and assistant edge node when the device is applied in fringe node
Between primary link and standby link state;Wherein, standby link is link Chong Die with subring on main ring, and primary link is in main ring
Link between fringe node in addition to standby link and assistant edge node;
Port blocking module 302, for detecting that the state of primary link and standby link is Down when detection module 301
When, block the edge port of fringe node;
Sending module 303 when for detecting that the state of primary link and standby link is Down when detection module 301, leads to
The edge port for crossing fringe node sends LinkDown message to the host node of subring, for notifying that it is secondary that the host node of subring is opened
Port.
It wherein, include: LinkDown message receiving unit, judging unit, Port detecting unit and chain in detection module 301
Line state determination unit, in which:
LinkDown message receiving unit, for receiving LinkDown message, wherein carried in the LinkDown message
Issue the node ID of the node of the LinkDown message;
Judging unit, the node carried in the LinkDown message for being received according to LinkDown message receiving unit
ID judges the type for issuing the node of the LinkDown message;Wherein, the type of node includes: main chain circuit node, standby link section
Point and assistant edge node, main chain circuit node are node, the standby chain on primary link in addition to Edge node and assistant edge node node
Circuit node is the node on standby link in addition to Edge node and assistant edge node node;
Port detecting unit, the state of the Primary port and secondary port for detecting fringe node;
Link state determination unit, if judging for judging unit, the type for issuing the node of the LinkDown message is
Main chain circuit node, it is determined that the state of primary link is Down, if judging unit is judged to issue the node of the LinkDown message
Type be standby link node, it is determined that the state of standby link is Down, if judging unit judges to issue LinkDown report
The type of the node of text is assistant edge node, then when the inbound port of the LinkDown message is master port, determines standby link
State be Down, when the inbound port of the LinkDown message is secondary port, determine primary link state be Down;Wherein,
The public port that primary link is accessed on Edge node and assistant edge node is master port, accesses the public port of standby link as pair
Port;If being also used to the master port failure that Port detecting unit detects fringe node, it is determined that the state of primary link is Down,
If Port detecting unit detects the secondary port failure of fringe node, it is determined that the state of standby link is Down.
As shown in figure 15, in the device further include: receiving module 304 and port open module 305, in which:
Receiving module 304, what the host node for when the device is applied in fringe node, receiving subring was sent
Complete-Flush-FDB message;It is also used to receive assistant edge node and is directed to the Link that Link Query message is replied
Reply message;
Port open module 305, the Complete- that the host node for receiving subring in receiving module 304 is sent
After Flush-FDB message, the edge port of fringe node is opened;
Sending module 303 is also used to the Complete- sent in the host node that receiving module 304 receives subring
After Flush-FDB message, Link Query message is sent by the Primary port and secondary port of fringe node respectively;
Detection module 301 is also used to receive the Link Reply message of assistant edge node reverts back in receiving module 304
Later, when the inbound port of the Link Reply message is master port, determine that the state of primary link is Up, in the Link Reply
When the inbound port of message is secondary port, determine that the state of standby link is Up.
In addition, receiving module 304, is also used to when in the host node that the device is applied to subring, the sending of this node is received
Hello packet;It is also used to receive the Link Query that fringe node is sent when the device is applied in assistant edge node
Message;Sending module 303 is also used to after the hello packet that receiving module 304 receives the sending of this node, is sent
Complete-Flush-FDB message;It is also used to receive the Link Query message that fringe node is sent in receiving module 304
Later, Link Reply message is replied by the inbound port of the Link Query message.
To sum up, the application above embodiments can achieve following technical effect:
(1) after fringe node detects that the state of primary link and standby link is all Down, at this point, main ring failure, edge section
Point can block edge port and actively inform that the host node of subring, the host node of subring receives by sending LinkDown message
After the LinkDown message, then secondary port can be opened immediately, to reach the mesh of the subring fast convergence in main ring failure
, the break period of data flow has been greatly shortened.
(2) in the prior art by periodically sending Edge-Hello report respectively from two public ports of fringe node
Text, to detect the state of the main ring link between fringe node and assistant edge node, and the transmission of Edge-hello message is frequently
Rate is higher, to can affect to the performance of node.In order to solve this problem, in the method for the embodiment of the present application,
Link between main ring top edge node and assistant edge node is divided into primary link and standby link, wherein standby link is located at
Main ring it is Chong Die with subring chain road, another be primary link, and will on primary link except Edge node and assistant edge node node with
Outer node is known as main chain circuit node, and the node on standby link in addition to Edge node and assistant edge node node is known as standby link
Node, the public port that primary link is accessed on fringe node are defined as master port, access standby link public port be defined as it is standby
Port, and, existing LinkDown message is extended, addition issues the node of the LinkDown message in LinkDown message
Node ID;Using in the prior art as the Single port Down of any node, then LinkDown message is sent by another port
Mechanism, fringe node can be after receiving LinkDown message, according to the node carried in the LinkDown message received
ID judges that the node for issuing the LinkDown message is main chain circuit node, standby link node or assistant edge node, finally,
The state of primary link and standby link is determined, thus, it is possible to be quickly detected the failure of main ring, and without additionally periodically giving out a contract for a project
Link detecting is carried out, the burden of node is alleviated, improves the performance of node.
(3) link between main ring top edge node and assistant edge node is divided into primary link and standby link, once
It was found that the state of primary link or standby link is Down, it is convenient for localization of fault on primary link or standby link.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of ring net protection method based on rapid ring protection protocol RRPP, which is characterized in that be applied to include main ring and
Node in the looped network of at least one subring, which comprises
When as fringe node, the state of the primary link and standby link between this node and assistant edge node is detected;Wherein,
The standby link is link Chong Die with subring on main ring, and the primary link is the edge section in main ring in addition to the standby link
Link between point and assistant edge node;
When the state for detecting the primary link and the standby link is failure Down, block the edge port of this node,
And by the edge port to the host node transmission link failure LinkDown message of subring, for notifying the host node of subring
Open secondary port.
2. the method according to claim 1, wherein detecting the primary link between this node and assistant edge node
Method with the state of standby link includes:
Receive LinkDown message, wherein the section for issuing the node of the LinkDown message is carried in the LinkDown message
Point identification ID;
According to the node ID, the type for issuing the node of the LinkDown message is judged;Wherein, the type of node includes: master
Link nodes, standby link node and assistant edge node, the main chain circuit node are on the primary link except fringe node and auxiliary
Help the node other than fringe node, the standby link node be on the standby link in addition to Edge node and assistant edge node node
Node;
If the type for issuing the node of the LinkDown message is the main chain circuit node, it is determined that the state of the primary link is
Down;
If the type for issuing the node of the LinkDown message is the standby link node, it is determined that the state of the standby link is
Down;
If the type for issuing the node of the LinkDown message is assistant edge node, in the inbound port of the LinkDown message
When being master port, determines that the state of the standby link is Down, when the inbound port of the LinkDown message is secondary port, determine
The state of the primary link is Down;Wherein, the public port of the primary link is accessed on Edge node and assistant edge node
For master port, the public port of the standby link is accessed as secondary port.
3. according to the method described in claim 2, it is characterized in that, detecting the primary link between this node and assistant edge node
With the method for the state of standby link further include:
If detecting the master port failure of this node, it is determined that the state of the primary link is Down;
If detecting the secondary port failure of this node, it is determined that the state of the standby link is Down.
4. according to the method in any one of claims 1 to 3, which is characterized in that further include:
When as fringe node, in the complete refreshing forwarding-table item Complete- that the host node for receiving subring is sent
After Flush-FDB message, the edge port of this node is opened, and is inquired respectively by Primary port and secondary port transmission link
Link Query message;
Receive assistant edge node for the Link Query message reply link acknowledgement Link Reply message it
Afterwards, when the inbound port of the Link Reply message is master port, determine that the state of the primary link is normal Up, in the Link
When the inbound port of Reply message is secondary port, determine that the state of the standby link is Up.
5. according to the method described in claim 4, it is characterized by further comprising:
When the host node as subring, after the hello packet of shaking hands for receiving the sending of this node, Complete- is sent
Flush-FDB message;
When as to assist fringe node, after receiving the Link Query message that fringe node is sent, pass through the Link
The inbound port of Query message replys Link Reply message.
6. a kind of looped network protection device based on rapid ring protection protocol RRPP, which is characterized in that be applied to include main ring and
In node in the looped network of at least one subring, described device includes:
Detection module, for detecting between fringe node and assistant edge node when described device is applied in fringe node
Primary link and standby link state;Wherein, the standby link is link Chong Die with subring on main ring, and the primary link is main
Link between fringe node in ring in addition to the standby link and assistant edge node;
Port blocking module, for detecting that the state of the primary link and the standby link is failure when the detection module
When Down, block the edge port of fringe node;
Sending module, when for detecting that the state of the primary link and the standby link is Down when the detection module,
By the edge port to the host node transmission link failure LinkDown message of subring, for notifying the host node of subring to open
Open secondary port.
7. device according to claim 6, which is characterized in that the detection module includes:
LinkDown message receiving unit, for receiving LinkDown message, wherein carry sending in the LinkDown message
The node identification ID of the node of the LinkDown message;
Judging unit, the node carried in the LinkDown message for being received according to the LinkDown message receiving unit
ID judges the type for issuing the node of the LinkDown message;Wherein, the type of node includes: main chain circuit node, standby link section
Point and assistant edge node, the main chain circuit node is the section on the primary link in addition to Edge node and assistant edge node node
Point, the standby link node are the nodes on the standby link in addition to Edge node and assistant edge node node;
Link state determination unit, if judging for the judging unit, the type for issuing the node of the LinkDown message is
The main chain circuit node, it is determined that the state of the primary link is Down, is somebody's turn to do if the judging unit is judged to issue
The type of the node of LinkDown message is the standby link node, it is determined that the state of the standby link is Down, if described
Judging unit judges that the type for issuing the node of the LinkDown message is assistant edge node, then in the LinkDown message
Inbound port when being master port, determine that the state of the standby link is Down, be secondary end in the inbound port of the LinkDown message
When mouth, determine that the state of the primary link is Down;Wherein, the primary link is accessed on Edge node and assistant edge node
Public port is master port, accesses the public port of the standby link as secondary port.
8. device according to claim 7, which is characterized in that the detection module further include: Port detecting unit,
In:
The Port detecting unit, the state of the Primary port and secondary port for detecting fringe node;
The link state determination unit, if being also used to the master port failure that the Port detecting unit detects fringe node,
The state for then determining the primary link is Down, if the Port detecting unit detects the secondary port failure of fringe node,
The state for determining the standby link is Down.
9. the device according to any one of claim 6 to 8, which is characterized in that further include: receiving module and port open
Module, in which:
The receiving module, the host node for when described device is applied in fringe node, receiving subring send complete
Refresh forwarding-table item Complete-Flush-FDB message;It is also used to receive assistant edge node and inquires Link for link
The link acknowledgement Link Reply message that Query message is replied;
The port open module, the Complete- that the host node for receiving subring in the receiving module is sent
After Flush-FDB message, the edge port of fringe node is opened;
The sending module is also used to the Complete-Flush- sent in the host node that the receiving module receives subring
After FDB message, Link Query message is sent by the Primary port and secondary port of fringe node respectively;
The detection module, be also used to the receiving module receive assistant edge node reverts back Link Reply message it
Afterwards, when the inbound port of the Link Reply message is master port, determine that the state of the primary link is normal Up, in the Link
When the inbound port of Reply message is secondary port, determine that the state of the standby link is normal Up.
10. device according to claim 9, which is characterized in that
The receiving module is also used to receive shaking hands for this node sending when in the host node that described device is applied to subring
Hello packet;It is also used to receive the Link Query that fringe node is sent when described device is applied in assistant edge node
Message;
The sending module is also used to after the hello packet that the receiving module receives the sending of this node, is sent
Complete-Flush-FDB message;It is also used to receive the Link Query message that fringe node is sent in the receiving module
Later, Link Reply message is replied by the inbound port of the Link Query message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510621108.7A CN105591860B (en) | 2015-09-25 | 2015-09-25 | Looped network protecting method and device based on RRPP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510621108.7A CN105591860B (en) | 2015-09-25 | 2015-09-25 | Looped network protecting method and device based on RRPP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105591860A CN105591860A (en) | 2016-05-18 |
CN105591860B true CN105591860B (en) | 2019-03-12 |
Family
ID=55931111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510621108.7A Active CN105591860B (en) | 2015-09-25 | 2015-09-25 | Looped network protecting method and device based on RRPP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105591860B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234200B (en) * | 2017-12-21 | 2019-08-27 | 中国联合网络通信集团有限公司 | Communication processing method and device based on access ring |
CN112751740B (en) * | 2020-12-20 | 2022-04-05 | 武汉迈威通信股份有限公司 | ERPS subring resource release method, system, server and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1575221A1 (en) * | 2004-03-08 | 2005-09-14 | Extreme Networks | Ethernet automatic protection switching |
CN1960310A (en) * | 2006-11-01 | 2007-05-09 | 华为技术有限公司 | Method and system of realizing rig network protection |
CN101075935A (en) * | 2007-06-27 | 2007-11-21 | 华为技术有限公司 | Method, system and apparatus for realizing loop protection |
CN101686167A (en) * | 2008-09-22 | 2010-03-31 | 中兴通讯股份有限公司 | Method for controlling recovery of faults of Ethernet |
CN103414591A (en) * | 2013-08-19 | 2013-11-27 | 杭州华三通信技术有限公司 | Method and system for fast converging when port failure is recovered |
CN103746912A (en) * | 2014-01-03 | 2014-04-23 | 杭州华三通信技术有限公司 | Data message transmission method and equipment based on subring link |
-
2015
- 2015-09-25 CN CN201510621108.7A patent/CN105591860B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1575221A1 (en) * | 2004-03-08 | 2005-09-14 | Extreme Networks | Ethernet automatic protection switching |
CN1960310A (en) * | 2006-11-01 | 2007-05-09 | 华为技术有限公司 | Method and system of realizing rig network protection |
CN101075935A (en) * | 2007-06-27 | 2007-11-21 | 华为技术有限公司 | Method, system and apparatus for realizing loop protection |
CN101686167A (en) * | 2008-09-22 | 2010-03-31 | 中兴通讯股份有限公司 | Method for controlling recovery of faults of Ethernet |
CN103414591A (en) * | 2013-08-19 | 2013-11-27 | 杭州华三通信技术有限公司 | Method and system for fast converging when port failure is recovered |
CN103746912A (en) * | 2014-01-03 | 2014-04-23 | 杭州华三通信技术有限公司 | Data message transmission method and equipment based on subring link |
Non-Patent Citations (1)
Title |
---|
RRPP以太环网保护协议;黄陶明 等;《现代计算机》;20071031;正文第34-35页 |
Also Published As
Publication number | Publication date |
---|---|
CN105591860A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103843286B (en) | For the method and apparatus based on the triggering router state change of exchanger connectivity | |
EP2207307B1 (en) | Method for processing the failure of the slave port of the master node in an ethernet ring network system | |
US9467332B2 (en) | Node failure detection for distributed linear protection | |
CN101252500A (en) | Intersect looped network, node and realizing method of random topology intersect looped network | |
CN102571738B (en) | Based on the intrusion prevention method and system that VLAN exchanges | |
CN108123824A (en) | A kind of network fault detecting method and device | |
CN100493006C (en) | Loop fault detecting method, subring main node and subring | |
CN101072155B (en) | Single optical fiber fault processing method for Ethernet automatic protection system | |
CN103873333B (en) | Ring network three-layer convergence method and device | |
CN104184708B (en) | Suppress the method and edge device ED of MAC Address attack in EVI networks | |
WO2011021179A1 (en) | Technique for dual homing interconnection between communication networks | |
WO2016116050A1 (en) | Failure protection method, device and system for ring protection link | |
CN101557343A (en) | Detecting and protecting method of double-layer loop in VRRP topological network | |
TWI514821B (en) | Network devices and loopback detection methods | |
JP5862445B2 (en) | Communication device | |
CN101815006A (en) | aggregation control method of links passing through provider network and system | |
CN105591860B (en) | Looped network protecting method and device based on RRPP | |
CN102857379A (en) | Control method and control device for protecting connectivity among nodes of Ethernet ring network and first node | |
WO2010031295A1 (en) | Control method for ethernet failure recovery | |
CN106533776B (en) | A kind of VRRP gateway, VRRP system and double main detections and restorative procedure | |
EP2858302B1 (en) | Connectivity check method of service stream link, related apparatus and system | |
CN106487696B (en) | Link failure detection method and device | |
CN103220201B (en) | A kind of method and device of detection and protection of ring network faults | |
CN101547131A (en) | EAPS looped network single-channel fault location and protection method | |
CN110380966A (en) | A kind of method and its relevant device finding forward-path |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |