Background technology
EAPS(Ethernet Automatic Protection Switching; Ethernet automatic protection switching) be the Ethernet automatic protection switching scheme with considerable influence that IEEE issued in 2003, but the protected field of EAPS is confined in the scope of a belt networking.The operation principle of this technology: EAPS ring is made up of a host node and several transmission nodes; As shown in Figure 1: loop network control completes primarily of host node, host node is the promoter of looped network status poll, is also the policymaker of executable operations after network topology state changes; Transmission node is responsible for monitoring the link-state change direct-connected with it, if break down, is reported to host node.
As shown in Figure 1, be the operation principle of EAPS, a typical EAPS ring is just equal to the topology of a physical rings.Wherein telephone net node R1 ', R2 ', R3 ', R4 ' constitute ethernet ring network, and wherein R1 ' is host node, and all the other nodes are transmission node, and the M interface of R1 ' is main interface, and S interface is time interface.Under Complete state, host node R1 ' logically opens main interface M, and obturation, from interface S, does not allow from interface S forwarding messages, ensures looped network chain rupture in logic, avoids traffic loops.When link occurs fault, the S interface of R1 ' is decontroled, and notifies other node updates mac address tables.
But in actual networking, may there is the situation of multiple loop, current EAPS agreement cannot process the situation that there is multiple physical rings, and the service condition of EAPS agreement is more single, cannot use in the environment of the multiple loop of reality.
Summary of the invention
The invention provides the method that the many nets of a kind of Ethernet switch, by ethernet ring network changing method, avoid the outlet of multi-ring network, improve the protective capability of looped network.
For achieving the above object, the invention provides the method that the many nets of a kind of Ethernet switch, be characterized in, the method comprises:
Host node in Ethernet Circle configures the example of the Ethernet automatic protection switching of several looped networks;
Host node sends with the probe messages of example ID to the intermediate node in loop downstream, and intermediate node transmits probe messages according to loop sequences;
When certain intermediate node probe messages finds that service link exception or link bandwidth exceed default threshold value, intermediate node reports exception message to host node or aggregation node; Exception message comprises example ID and abnormal interface occurs;
Host node or aggregation node carry out looped network switching.
When above-mentioned host node completes exemplary configuration, the ownership of configuration node simultaneously.
In the ownership of above-mentioned configuration node, a main interface only belongs to an example, and a standby interface belongs to one or several examples.
The transmission probe messages of above-mentioned host node cycle.
Above-mentioned intermediate node periodically transmits probe messages.
The standard of above-mentioned service link exception is that link sends fault.
When normal the or link bandwidth of above-mentioned service link is lower than the threshold value preset, intermediate node continues cyclical transmission probe messages.
Above-mentioned when reporting exception message, often report to an intermediate node, namely detect this intermediate node and whether belong to aggregation node, if then carry out looped network switching, then continue if not to report exception message.
Above-mentioned aggregation node belongs to the different and type that outgoing interface is identical of the incoming interface of exception message; When aggregation node receives exception message, closed by incoming interface, exception message is reported to host node, and namely host node opens spare interface.
Above-mentioned aggregation node belongs to the identical and type that outgoing interface is different of the incoming interface of exception message; When aggregation node receives exception message, then continue to report exception message to host node;
Host node checks the whether multiplexing spare interface of Multi-instance according to example ID; If so, then Multi-instance in the loop between certain section of link share host node, host node opens spare interface; If not, then Multi-instance in the loop between certain section of link sharing occur abnormal, host node opens spare interface.
The method that the many nets of Ethernet of the present invention switch is compared with the Ethernet loop network control of prior art; its advantage is; the present invention utilizes the instance concepts based on Ethernet automatic protection switching; can at appearance two looped network; even when multi-ring network; the method adopting Ethernet looped network to switch, avoids the appearance of multi-ring network, improves the protective capability of looped network.
Embodiment
Below in conjunction with accompanying drawing, further illustrate specific embodiments of the invention.
As shown in Figure 2, Ethernet looped network there will be multiple physics loop, is respectively: the first loop: node R 1 to node R 2 to node R 3 to node R 4; Second loop: node R 1 to node R 2 to node R 3 to node R 1.Each node is the router in looped network.When actual conditions exist topology as shown in Figure 2, current EAPS cannot accomplish Loop Protection.
In order to realize the Loop Protection of Fig. 2 topology, the invention discloses the method that the many nets of a kind of Ethernet switch:
First, propose the instance concepts based on EAPS, each interface of each node can belong to Multi-instance, if but the main interface of this interface as host node time, its interface can only belong to an example.Any node all can carry example ID when transmission probe messages, and when detection is broken down time, the fault message of transmission also will carry example ID.
The EAPS example ID of the first loop (R1-R2-R3-R1) is 1; The example ID of the second loop (R1-R2-R3-R4-R1) is 2; Time the interface S5 supposing in node R 3 breaks down, node R 3 sends fault message to node R 1, carries example ID 2 to node R 1.Spare interface S2, according to example ID, opens by node R 1, keeps link unimpeded, can reach node R 4.
As shown in Figure 3, be the embodiment of the method that the many nets of a kind of Ethernet being applicable to multiple physics loop shown in Fig. 2 switch, the method includes the steps of:
Step 1, when there is multi-ring network (two looped networks), user can configure the EAPS example of multiple looped network by host node.When host node completes exemplary configuration, the ownership of configuration node simultaneously.In the ownership of configuration node, a main interface only belongs to an example, and a standby interface belongs to one or several examples.
The intermediate node to loop downstream of step 2, host node cycle sends the probe messages with example ID.Intermediate node then periodically transmits probe messages according to loop sequences.
Step 3, judge that certain intermediate node probe messages finds that whether service link exception or link bandwidth exceed default link bandwidth and uses threshold values, if so, then intermediate node reports exception message to host node or aggregation node; Exception message comprises example ID and abnormal interface occurs, and jumps to step 4; If not, then normal the or link bandwidth of service link is lower than the threshold value preset, and jump to step 2, intermediate node continues cyclical transmission probe messages.
Wherein, the standard of service link exception is that link sends fault.
Step 4, host node or aggregation node (i.e. the convergent point of multiple interface) carry out looped network switching.
Step 4.1, when reporting exception message, often report to an intermediate node, namely detect this intermediate node and whether belong to aggregation node, if then carry out looped network switching, jump to step 4.2, then continue if not to report exception message, and redirect return step 4.1 continue detect intermediate node whether belong to aggregation node.
Step 4.2, aggregation node are divided into A, B two class: category-A is the different and type that outgoing interface is identical of the incoming interface of exception message; Category-B is that the incoming interface of exception message is identical and the type that outgoing interface is different.
When aggregation node belongs to category-A (two incoming interfaces of exception message are different and type that outgoing interface is identical), when aggregation node receives exception message, namely on this aggregation node, carry out the switching of looped network, two different incoming interfaces are closed by aggregation node, exception message is reported to host node, and namely host node opens spare interface.
When aggregation node belongs to category-B (two of exception message incoming interface is identical and the type that outgoing interface is different), when aggregation node receives exception message, then aggregation node continues to report exception message to host node, and host node checks two whether multiplexing spare interface of example according to example ID; If so, then two examples in the loop between certain section of link share last host node, host node opens spare interface; If not, then two examples in the loop between certain section of link sharing occur abnormal, host node opens spare interface.
As shown in Figure 4, the invention also discloses a kind of Ethernet many nets switched system, this system mainly comprises: EAPS exemplary configuration module, business detecting module, link circuit resource detecting module, link switching module.
EAPS exemplary configuration module is in order to distinguish each different loop; This module is mainly configured EAPS example on the primary node, and when an interface is main interface time, it can only belong to an example; But time how an interface is spare interface, it can belong to multiple EAPS example.
Whether business detecting module is normal in order to comprehensive sounding; This module is mainly used in each router node, sends the whether normal message of comprehensive sounding link periodically downwards, if time the business that detects is abnormal, with regard to reporting fault message, and carries EAPS example ID; When business is normal, continue periodically to send probe messages.
Link circuit resource detecting module is in order to the occupation condition of detecting link; This module is mainly used in periodically sending probe messages, whether exceedes to detect link bandwidth service condition the link bandwidth use threshold values pre-set.
Link switching module, in order to after receiving fault and reporting message, according to EAPS example ID, is closed standby port or opens standby port.When host node is after the message receiving service exception or resource exception, according to example ID, spare interface is carried out to the module of handover operation.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.