Background technology
RRPP (Rapid Ring Protection Protocol; rapid ring protection protocol) is a link layer protocol that is specifically applied to Ethernet ring; it is when Ethernet ring is complete; can prevent the broadcast storm that data loopback causes; and when a link disconnects on the Ethernet ring, can enable backup link rapidly to recover the communication path between each node on the looped network.
The physically corresponding Ethernet topology of going in ring and connecting of RRPP ring referring to Fig. 1, is RRPP ring good working condition schematic diagram, wherein, the 4th, the host node of RRPP ring, the 1,2,3,5, the 6th, the transmission node of RRPP ring, 41 is the master port of host node, and 42 is the secondary port of host node.During good working condition, host node realizes preventing link Cheng Huan by blocking secondary port 42.
IEEE 802.3ah is Ethernet OAM (Operations, Administration, and Maintenance Operations, Administration and Maintenance) one of standard, it is proposed by EFMA, and become ieee standard, mainly solve the Ethernet OAM problem of " last kilometer ", also be applicable to the Ethernet physical link of two equipment rooms.Major function has: OAM capability discovery function, OAM link monitoring function, remote fault notification function, OAM remote loopback function and far-end MIB (Management InformationBase, management information bank) obtain function (inband network management).
Polling mechanism is the mechanism of the host node active detecting looped network health status of RRPP ring.With Fig. 1 is example, and host node 4 periodically sends the HELLO message from its master port 41, propagates on ring through each transmission node successively.If host node 4 can be received the HELLO message that oneself sends from secondary port 42, illustrate that loop network link is complete; Otherwise,, just think looped network generation link failure if host node 4 can not receive the HELLO message at the appointed time.
Referring to Fig. 2, be RRPP link failure recovery schematic diagram.The transmission node 1 of this RRPP ring and the link between the transmission node 2 break down, make host node 4 be in Failed (fault) state, when the host node 4 that is in the Failed state when secondary port 42 is received the HELLO message that oneself sends, move to Complete (complete) state immediately, decontrol secondary port 42, and refresh FDB (Forwarding Database, transmit), notify all transmission nodes to decontrol interim port blocked 42 and refresh FDB but also can send COMPLETE-FLUSH-FDB (looped network recovers to refresh the FDB message) from master port 41.
Referring to Fig. 3, be the schematic diagram of ether OAM and RRPP mixed networking.In the application scenarios of this networking, UPE (User-end Provider Edge, the user side edge device) adopt the mode of main/slave link dual homed to be linked on the PE-AGG (edge converging equipment), wherein main/slave link moves the 802.3ah agreement, detection to link failure is provided, realizes the link that dual homed inserts is switched guarantee fast.
In RRPP and ether OAM mixed networking, when the OAM link switchover took place, if the mechanism that transmitting of each node of RRPP refreshed not was the transmitting of untimely each node of the RRPP of refreshing, it is obstructed then may to cause data traffic to be transmitted, and the performance of data traffic is transmitted in influence.
Summary of the invention
When solving in the prior art RRPP and ether OAM mixed networking; do not transmit the problem that flush mechanism may cause transmitting the data traffic poor performance accordingly, the embodiment of the invention provides a kind of guard method, system and equipment of the RRPP ring net that dual homed is inserted.Described technical scheme is as follows:
A kind of guard method of the RRPP ring net that dual homed is inserted, described method comprises:
When ether OAM place link carries out link switchover, the generation link switchover of notice RRPP system;
Described RRPP system judges that the node that is connected with faulty link is host node or transmission node;
If transmission node, described transmission node is notified described master node network topology change;
Described host node refreshes transmitting of self, and notice all transmission nodes on the RRPP ring refresh and transmit;
After described all transmission nodes are received described notice, refresh transmitting of self.
The embodiment of the invention also provides a kind of protection system of the RRPP ring net that dual homed is inserted, and described system comprises:
User side edge device, first node, Section Point and the 3rd node, described first node, described Section Point and described the 3rd node constitute RRPP ring;
Described user side edge device comprises: fault detect and handover module, and whether the link that is used to detect ether OAM breaks down, and when breaking down, carries out link switchover;
Described Section Point comprises: transmit the refresh notification module and transmit refresh module, when described fault detect and handover module carry out link switchover, the described node of transmitting on the refresh notification module notice RRPP ring refreshes to be transmitted, and the described refresh module of transmitting refreshes and transmits;
Described first node and the 3rd node comprise: transmit refresh module, be used to receive described transmit that the refresh notification module sends refresh transmit notice after, refresh and transmit.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is:
By transmitting on the refresh node timely, can play the quick switching of dual homed access link effectively, guarantee that data traffic transmits normally, strengthened the reliability and stability of RRPP system, prevent the generation that data traffic is interrupted.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but the present invention is not limited to following examples.
The embodiment of the invention is expanded the RRPP protocol massages; increase a kind of new protocol massages---topology changed messages; refresh by each node in this topology changed messages notice ring and to transmit, protection RRPP and ether OAM mixed networking are normally transmitted data traffic.The effect of this topology changed messages is to refresh transmitting of each RRPP node, guarantees that ether OAM switches the back data traffic and transmits normal.Referring to table 1, be the form of RRPP protocol massages.
0 7 |
8 15 |
16 23 |
24 31 |
32 39 |
40 47 |
Destination MAC Address(6 bytes) |
|
|
|
|
|
Source MAC Address(6 bytes) |
|
|
|
|
|
EtherType |
PRI |
VLAN ID |
Frame Length |
|
|
DSAP/SSAP |
CONTROL |
OUI=0x00e02b |
|
|
|
0x00bb |
0x99 |
0x0b |
RRPP Length |
|
|
0 7 |
8 15 |
16 23 |
24 31 |
32 39 |
40 47 |
RRPP_VER |
RRPPTYPE |
Domain ID |
Ring ID |
|
|
0x0000 |
SYSTEM_MAC_ADDR(6 bytes) |
|
|
|
|
|
HELLO_TIMER |
FAIL_TIMER |
|
|
|
0x00 |
LEVEL |
HELLO_SEQ |
0x0000 |
|
|
RESERVED(0x000000000000) |
|
|
|
|
|
RESERVED(0x000000000000) |
|
|
|
|
|
RESERVED(0x000000000000) |
|
|
|
|
|
RESERVED(0x000000000000) |
|
|
|
|
|
RESERVED(0x000000000000) |
|
|
|
|
|
RESERVED(0x000000000000) |
|
|
|
|
|
Table 1
Wherein, being described as follows of each list item:
Destination MAC Address:48bits, the purpose MAC of protocol massages.
Source Mac Address:48bits, the source MAC of protocol massages.
EtherType:8bits, message encapsulated type territory, 0x8100, expression Tagged encapsulation.
PRI:4bits, COS (Class of Service) priority.
VLAN ID:12bits, the ID of message place VLAN.
Frame Length:16bits, ethernet frame length.
DSAP/SSAP:16bits, purpose service access point/source service access point.
CONTROL:8bits。
OUI:24bits。
RRPP_LENGTH:16bits, RRPP protocol Data Unit length.
RRPP_VERS:16bits, the RRPP version information.
The ID of RRPP domain under the DOMAIN_ID:16bits, message.
The ID of RRPP ring under the RING_ID:16bits, message.
SYSTEM_MAC_ADDR:48bits, the bridge MAC of transmission message node.
HELLO_TIMER:16bits, the time-out time of the Hello timer that transmission message node uses, unit (s).
FAIL_TIMER:16bits, the time-out time of the Fail timer that transmission message node uses, unit (s).
HELLO_SEQ:16bits, the sequence number of hello packet.
When RRPP and ether OAM mixed networking, adopt RRPP to converge, ether OAM dual homed is linked on two nodes of RRPP ring.When the link generation link switchover of ether OAM place, the node on the RRPP ring need refresh to be transmitted, and promptly deletes the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table and the ARP table.Wherein, the RRPP port refers to the node that RRPP ring links to each other with ether OAM place link.
Embodiment 1
Referring to Fig. 4, be the guard method flow chart of RRPP ring net that dual homed is inserted.The guard method of the RRPP ring net that dual homed is inserted may further comprise the steps:
Step 401: ether OAM active link breaks down, and carries out link switchover, switches to reserve link by active link.
Step 402: the notice current ether OAM of RRPP system link switchover.
After this notice is received by step 403:RRPP system, judge whether the equipment that ether OAM faulty link connects is the host node of RRPP ring, if not, execution in step 404; Otherwise, execution in step 405.
Step 404: the equipment that ether OAM faulty link connects is transmission node, this transmission node is constructed a kind of new protocol massages (TOPO-CHANGE message, topology changed messages), circulate a notice of topology change by this TOPO-CHANGE message to host node, execution in step 405 then.This TOPO-CHANGE message has only host node to send processing on can carrying out in the present embodiment, and other transmission node only carries out transparent transmission.
Step 405: host node sends all transmission nodes of COMMON-FLUSH-FDB message notifying, refreshes and transmits, and promptly deletes the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table on each node and the table of the ARP on each node.
Step 406: host node refreshes transmitting of self, promptly deletes the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table and the ARP table.
After each transmission node of step 407:RRPP receives the COMMON-FLUSH-FDB message, refresh and transmit, promptly delete the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table and the ARP table.
Embodiment 2
In order to accelerate the failure convergence speed that ether OAM link switchover causes, transmission node is done outside the normal forwarding this TOPO-CHANGE, send processing on also carrying out, notify the ARP list item at RRPP port place in MAC address entries that other node in time deletes RRPP port place in the MAC table and the ARP table.After host node receives the TOPO-CHANGE message, except the MAC address entries and ARP list item of deleting self, just no longer go to notify each transmission node to refresh having transmitted separately.
Referring to Fig. 5, be the guard method flow chart of another kind to the RRPP ring net of dual homed access.The guard method of the RRPP ring net that dual homed is inserted in the present embodiment may further comprise the steps:
Step 501: ether OAM active link breaks down, and carries out link switchover, switches to reserve link by active link.
Step 502: the notice current ether OAM of RRPP system link switchover.
After this notice is received by step 503:RRPP system, judge whether the equipment that ether OAM faulty link connects is the host node of RRPP ring, if, execution in step 504; Otherwise, execution in step 507.
Step 504: host node sends all transmission nodes of COMMON-FLUSH-FDB message notifying, refreshes and transmits, and promptly deletes the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table on each node and the table of the ARP on each node.
Step 505: host node refreshes transmitting of self, promptly deletes the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table and the ARP table.
After each transmission node of step 506:RRPP receives the COMMON-FLUSH-FDB message, refresh and transmit, the ARP list item at RRPP port place during promptly the MAC address entries at RRPP port place and ARP show in the MAC table.
Step 507: the equipment that ether OAM faulty link connects is transmission node, this transmission node is constructed a kind of new protocol massages (TOPO-CHANGE message, topology changed messages), circulate a notice of topology change by this TOPO-CHANGE message to other node (comprising host node and other transmission node).
Step 508: this transmission node refreshes to be transmitted, and promptly deletes the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table and the ARP table.
After other node on the step 509:RRPP ring receives the circular of TOPO-CHANGE message, refresh and transmit, promptly delete the ARP list item at RRPP port place in the MAC address entries at RRPP port place in the MAC table and the ARP table.
Embodiment 3
Referring to Fig. 6, be a kind of schematic diagram of protection system of the RRPP ring net that dual homed is inserted, present embodiment provides a kind of protection system of the RRPP ring net that dual homed is inserted, and comprising:
Fault detect and handover module, whether the link that is used to detect ether OAM breaks down, and when breaking down, carries out link switchover;
Transmit the refresh notification module, be used for when fault detect and handover module carry out link switchover, the node on the notice RRPP ring refreshes to be transmitted;
Transmit refresh module, be used to receive that refreshing of transmitting that the refresh notification module sends transmitted notice after, refresh and transmit.
In addition, when the equipment that connects when ether OAM faulty link is transmission node on the RRPP ring, increase topology changed messages in the RRPP agreement, this topology changed messages is used to transmit the refresh notification module and sends to refresh and transmit notice.
When the equipment that connects when ether OAM faulty link is host node on the RRPP ring, transmits the refresh notification module and send that to refresh what transmit that notice uses be the COMMON-FLUSH-FDB message.
Wherein, transmitting refresh module specifically comprises:
The MAC address entries delete cells, be used to receive that refreshing of transmitting that the refresh notification module sends transmitted notice after, the MAC address entries at RRPP port place in the deletion MAC table;
ARP list item delete cells, be used to receive that refreshing of transmitting that the refresh notification module sends transmitted notice after, the ARP list item at RRPP port place in the deletion ARP table.
Embodiment 4
Referring to Fig. 7, the schematic diagram of the equipment that provides for the embodiment of the invention.Present embodiment provides a kind of equipment, and this equipment comprises:
Transmit refresh module, be used for when ether OAM place link carries out link switchover, refreshing transmitting of self;
Notification module, be used to transmit refresh module refresh finish after, notice other node on the RRPP ring refreshes to be transmitted.
Wherein, transmitting refresh module specifically comprises:
The MAC address entries delete cells is used for when ether OAM place link carries out link switchover, the MAC address entries at RRPP port place in the deletion MAC table;
ARP list item delete cells is used for when ether OAM place link carries out link switchover, the ARP list item at RRPP port place in the deletion ARP table;
Refresh and finish notification module, be used for when MAC address entries delete cells and ARP list item delete cells finish refresh after, send to refresh to notification module and finish notice.
The technical scheme that above embodiment provides can realize that program code can be stored on the medium that can read by program code, as: CD, hard disk etc.
The above embodiment of the present invention can play the quick switching of dual homed access link effectively by transmitting on the refresh node timely, guarantees that data traffic transmits normally, has strengthened the reliability and stability of RRPP system, prevents the generation that data traffic is interrupted.
Above-described embodiment is a more preferably embodiment of the present invention, and common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacement all should be included in protection scope of the present invention.