Background technology
Ethernet is popular double layer network technology, and it is widely used among the network of enterprise network and operator.Ethernet adopts the mechanism of source address learning guide message repeating, and the mode that the message for destination address the unknown carries out broadcasting in broadcast domain processes.Broadcast domain can reduce by the technology (VLAN) of VLAN.But nonetheless, in a broadcast domain, still need the generation preventing broadcast storm.Spanning-Tree Protocol (STP) is a kind of common technology preventing Ethernet broadcast storm, however the convergence time of Spanning-Tree Protocol and for the protection of business on network still have its limitation part.For this reason, industry develops various ethernet ring network technology.Ethernet ring network technology reaches broadcast storm by the port blocking/open some node under normal/malfunction and suppresses and the protection simultaneously providing forward-path on network.
FRRP (Fast Ring Recovery Protocol, fast looped network recovers agreement) be the link layer protocol being specifically applied to Ethernet ring, the network storm that it can prevent data loopback from causing when Ethernet ring is complete, can start again backup link fast to ensure the largest connected property of Ethernet ring when link failure.FRRP, while realizing link load sharing, further provides than STP convergence rate faster.Ethernet ring network can be divided into three types as shown in Figure 1 according to topology.Other Ethernet articulating topologys can be considered as being made up of above three kinds of basic topologies.
Please refer to Fig. 2, tangent rings refers between two rings only has a common node, needs to configure a different FRRP territory for each ring in prior art.Four equipment in Fig. 2 on ring 1 are all configured to belong to territory 1, have identical control VLAN and protection VLAN in territory 1.Device A is configured to the host node of ring 1, and other are transmission node; And three equipment on ring 2 are configured to belong to territory 2, in territory 2, have identical control VLAN and protect VLAN, Device E to be host node, other are transmission node.So, loop prevention and the fast quick-recovery of link failure of looped network can be realized respectively to the ring in the ring in territory 1 and territory 2.But still there is certain weak point in above-mentioned networking plan: the intercommunication of the appliance services in two territories must arrange VLAN Interface by the equipment in ring joining, intercommunication could be realized at three layers, that is directly cannot carry out double layer intercommunication between two rings.Owing to directly cannot carry out double layer intercommunication, the network plannings such as the VLAN of user will be subject to larger restriction.
Summary of the invention
The defect of tangent ring networks two layers of networking application cannot be provided to solve prior art, the invention provides a kind of message processing method of tangent ring networks, it is applied on the tangent node of tangent ring networks, wherein said tangent ring networks comprises two the first and second tangent ethernet ring networks, two ethernet ring networks are configured with identical service VLAN and control VLAN, described tangent node comprises the first and second groups of ring upper port laid respectively on the first and second ethernet ring network and is positioned at; Wherein, this comprises:
A, when receiving from certain ring upper port of first group of ring upper port the control message sended over from the first looped network, sends this control message from another ring upper port first group of ring upper port;
B, when receiving from certain ring upper port of second group of ring upper port the control message sended over from the second looped network, sends this control message from another ring upper port second group of ring upper port;
C, when receiving known unicast Ethernet service message from any one ring upper port, the mac address forwarding table item searched in tangent node forwards this service message.
Preferably, also comprise:
D, when receiving unknown unicast or broadcast Ethernet service message from any one ring upper port, is gone out this Ethernet service message broadcasting by other all ring upper port.
Preferably, also comprise: certain ring upper port UP or Down event detected, report this event with the form controlling message to the host node in affiliated ethernet ring network by another ring upper port in ring upper port group.
Preferably, also comprise: send for receiving user the switching command switching to crossing characteristic to this node, and respective enable intersects the processing capacity module of characteristic.
The present invention also provides a kind of Ethernet switch, it is applied in tangent ring networks as tangent node, wherein said tangent ring networks comprises two the first and second tangent ethernet ring networks, two ethernet ring networks are configured with identical service VLAN and control VLAN, described tangent node comprises the first and second groups of ring upper port laid respectively on the first and second ethernet ring network and is positioned at; It is characterized in that, this Ethernet switch comprises:
Controlling message process unit, during for receiving from certain ring upper port of first group of ring upper port the control message sended over from the first looped network, this control message being sent from another ring upper port first group of ring upper port; Or when receiving from certain ring upper port of second group of ring upper port the control message sended over from the second looped network, this control message is sent from another ring upper port second group of ring upper port; And
Service message processing unit, during for receiving known unicast Ethernet service message from any one ring upper port, the mac address forwarding table item searched in tangent node forwards this service message.
Preferably, when described service message processing unit is further used for receiving unknown unicast or broadcast Ethernet service message from any one ring upper port, by other all ring upper port, this Ethernet service message broadcasting is gone out.
Preferably, control message process unit, being further used for when certain ring upper port UP or Down event being detected, reporting this event with the form controlling message to the host node in affiliated ethernet ring network by another ring upper port in ring upper port group.
Preferably, also comprising: management auxiliary unit, send for receiving user the switching command switching to crossing characteristic to this node, and respective enable intersecting the processing capacity module of characteristic.
Embodiment
Consider in the application of current tangent ring networks two layers of networking application that more tangent rings cannot be provided, the present invention sets about solving the problem from Ethernet switch characteristic, and on the basis of dealing with problems, consider the device characteristics required for compatible existing intersecting ring network.
Please refer to the networking diagram of a kind of typical tangent ring networks of the present invention of Fig. 3, each node is Ethernet switch.Node ABCD forms the first ethernet ring network, and Node B EF forms the second ethernet ring network, and wherein Node B is the tangent node of two looped networks.In application scenarios of the present invention, two ethernet ring networks are configured with identical service VLAN (also referred to as protection VLAN) and control VLAN.Node D comprises the first and second groups of ring upper port laid respectively on the first and second ethernet ring network as tangent node.
It should be noted that, as stated in the Background Art in the application of looped network, all have the concept in territory at present, different territories correspond to different service VLAN and different control VLAN.That is different territories means different logical cyclic ring networks, and looped network can be divided into multiple territory and form looped network on multiple logical meaning, and just look like that LAN and VLAN is the same, it is self-explantory to those skilled in the art.Therefore the present invention is all applicable to the looped network on logical meaning and physical significance, and unless otherwise noted, ethernet ring network of the present invention is not limited to the looped network of physical significance.
Please refer to the flow chart of Fig. 3 and the building-block of logic of Fig. 4 switch.In the application scenarios of Fig. 2.Node D is the key of all process, does not need other node correspondences to make any change.The process of node D mainly comprises the following steps:
Step 102, when receiving from certain ring upper port of first group of ring upper port the control message sended over from the first looped network, sends this control message from another ring upper port first group of ring upper port;
Step 103, when receiving from certain ring upper port of second group of ring upper port the control message sended over from the second looped network, sends this control message from another ring upper port second group of ring upper port;
Above two steps are responsible for process by the control message process unit 11 in Fig. 3.Specifically, control message and can be divided into many types according to event type, on such as ring, the link of other node reports disconnects/recovers (Link Up/Down) event; Or the various list items carrying out autonomous node empty, delete or the event such as refreshing; Or on typical ring each host node (Node B of such as first ring or the node E of the second ring) send for switch fast hello packet.The most important effect controlling message prevents the generation of broadcast loops and provides maximum service message forward-path integrality.Because the VLAN of the control message of two looped networks is identical, therefore message may transmit by transannular net, and the host node of next door looped network may be caused like this to make error handle.Such as, if certain node of first ring Down falls, this hello packet that the secondary port of host node can be caused cannot to receive host node master port send from ring, in this case, host node should do opening action on secondary port, allow the message in service VLAN by (be block traffic VLAN under initial situation, allow the message in control VLAN to pass through).If but the hello packet of the second ring host node is passed on first ring, the secondary port of the host node of first ring can receive hello packet, now the secondary port error ground of the host node of first ring thinks that any fault does not occur first ring, opening action can not be done, forward-path integrality is lost, and therefore the forwarding of service message will be interrupted.
Just because of this, the present invention needs according to ring upper port group is that unit processes especially to control message.A kind of preferred mode, can by the mode of ACL by controls message up sending to CPU process, strictly controlled in the port group by the transmission of the software process on CPU by control message.Such as node D receives from a ring upper port control message that the first looped network comes, and another looped network upper port by the first looped network is transmitted.So the control message of each looped network will be constrained within this looped network.Although the situation shown in Fig. 1 is that two rings are tangent, it is evident that, the present invention can support that more rings are tangent, because the control message of each looped network can control to transmit in this ring by tangent node of the present invention.
Furthermore, please refer to the tangent node of step 104 self also may need to produce control message, the some ring upper port UP/Down in a such as ring upper port group, and such event needs to report to host node by controlling message.After host node receives this event, need the secondary port opening self, the business forward-path of such guarantee looped network complete, prevent the interruption of business.In general, host node now also may can send and control other nodes on the ring of message requirement refreshing list item, because the UP/Down of port changes forward-path, therefore each node needs the control message sent according to host node to do corresponding refresh activity to self forwarding-table item.
Step 105, when receiving known unicast Ethernet service message from any one ring upper port, the mac address forwarding table item searched in tangent node forwards this service message.
Step 106, when receiving unknown unicast or broadcast Ethernet service message from any one ring upper port, is gone out this Ethernet service message broadcasting by other all ring upper port.
Step 105 and step 106 are performed by the service message processing unit 12 in Fig. 3.Appropriate process has been carried out owing to controlling message.The process of service message becomes more simple.Forwarding-table item is all inquired about for all messages forward, when ring upper port receives unknown unicast or broadcasting packet, broadcast in other all ring upper port.Due to any time, two rings all have the situation that a port is in down or block traffic VLAN, in any case therefore for service message, all can not produce broadcast storm.
Please further refer to Fig. 4, a kind of typical intersecting ring network, under this application scenarios, the switch of crossed node supports edge port characteristic, and this characteristic is mainly in order to stop the formation of 8 word loops.In order to the application of this intersecting ring network of compatibility, Ethernet switch of the present invention also can implant this edge port characteristic, support complicated intersecting ring network application.Ethernet switch of the present invention provides the management compatibility that auxiliary unit realizes this characteristic.Please refer to the step 101 in Fig. 2, receive the switching command that user sends, if user wishes that the scene of this application is the tangent ring networks of two layers, then it sends the switching command switching to tangent characteristic to switch, after the switching command that management auxiliary unit reception user sends, the tangent characteristic functions module that corresponding unlatching the present invention is above-mentioned, enters the handling process of step 102-106.On the contrary, if user wishes that the scene of this application is intersecting ring network application, then need to send to switch the switching command switching to crossing characteristic, management auxiliary unit receives the switching command that user sends to be had, and respective enable intersects the processing capacity module of characteristic.Crossing characteristic refers in multiple intersecting ring network networking scenario, the function of the enable typical fringe node of the switch as crossed node, to prevent the generation of 8 word forward-path loops.
Please refer to Fig. 4, if the link between device A and equipment B disconnects, link between equipment C and equipment D also disconnects, so subring CDE and subring CDF can detect that ring has fault simultaneously, in this case, the host node device E of subring CDE and the host node device F of subring CDF can decontrol their secondary port, and they are placed in forwarding state.Like this, the 8 word loops as red line mark in figure will be formed.
In order to solve the problem of 8 word loops under this dual-homed subring, require the transmission Edgehello message of two the port timings of fringe node C in main ring.If assistant edge node D have received this Edgehello message within the given time, describe main ring ABDC and have at least a link to be intact to make subring be in good working condition; If assistant edge node D does not receive this Edgehello message within the given time, the link that describes main ring both sides all faults, now subring has not been good working condition, assistant edge node D can send Majorfail message to two edge ports (port one and port 2), if fringe node C have received this Majorfail message, its edge port (being positioned at the port one on ring and port 2) will be blocked.Then, the host node F of the host node E of subring CDE and subring CDF can because can not receive their oneself hello packets each their secondary port can be set to forwarding state within the time of specifying, but now because the edge port of fringe node C blocks, 8 word loops can not be formed.About the description that crossing characteristic is more detailed, those of ordinary skill in the art can with reference to the realization of prior art.
The present invention, by the process controlling message, achieves Ethernet tangent ring networks two layers of networking form; Provide the user network construction form more flexibly.Simultaneously by management aid in treatment, achieve existing individual compatible processing.Described above is only the present invention's preferably implementation, and not in order to limit protection scope of the present invention, any equivalent change and amendment all should be encompassed within protection scope of the present invention.