The present invention relates to the Ethernet ring network technology, and in particular, to a control method and apparatus for protecting connectivity between Ethernet ring network nodes when there is an incompatible device in the Ethernet ring network and a first node.
The Ethernet develops toward the direction of multi-service carrying, and with the higher requirements on the reliability and the instantaneity of the network, etc., by some services, the Ethernet already adopts the redundancy networking mode extensively to improve the reliability of the network, to meet the demand such as the instantaneity of the service, etc. In the redundancy networking structure of the Ethernet, it is usually required that the speed of the protection switching is fast enough and the duration of the protection switching needs to be within 50 ms.
At present, the technologies related to the fast protection switching are the RFC3619 standard provided by the Internet Engineering Task Force (IETF) and the G.8032 standard provided by the International Telecommunications Union (ITU-T), etc.
In the G.8032 standard provided by the ITU-T, the automatic protection switchover protocol and mechanism are defined for the Ethernet layer of the ring topology Ethernet, and such automatic protection switchover method is suitable for the ring topology Ethernet. The implementation procedure of the method is as follows: in the ring topology Ethernet, a section of link is selected as the ring protection link; when the links of the Ethernet ring network are all fault-free, there is at least one node which blocks the port connected with the ring protection link in the two adjacent nodes of the ring protection link, to prevent the protected data from passing through the ring protection link; in this way, there is only the unique communication path between any two nodes on the Ethernet ring network, so the closed loop in the communication path will not be generated in the Ethernet ring network, to prevent the closed loop and the network storm; when the link in the Ethernet ring network fails and the fault link is not the ring protection link, the node which originally blocks the port connected to the ring protection link opens the blocked port, to make the protected data be able to pass through the ring protection link, thus make the communication path be established again and the reliability of the network be improved.
Though the technology, such as the Ethernet ring network of the G.8032 standard, etc., provides the automatic protection switchover protocol and mechanism, the launching time of the G.8032 is later than the application time of the Ethernet, so in the real network, the scene that the new device supporting the G.8032 and the old device not supporting the G.8032 make the networking together is very general; there are often nodes that do not support the G.8032 standard in the Ethernet ring network, which leads to that the butt joint among the nodes is incompatible and the automatic protection switchover of the Ethernet ring network cannot be realized.
The nodes S1, S2, S5, S6, S3 and S4 make up the Ethernet ring network in
So in the real application of the network, the scene that the nodes supporting the Ethernet ring network protection technology and the nodes not supporting the Ethernet ring network protection technology make the networking together is more and more general; if there is no technology processing the butt joint to the incompatible Ethernet ring network node, the application of the network protection switchover technology will be obstructed greatly, and even the network failure is caused, so a technology processing the butt joint to the incompatible Ethernet ring network node is required, to ensure the maximum connectivity of the network.
The technical problem that the embodiment of the present invention requires to solve is to provide a technology for processing the butt joint incompatible with the Ethernet ring network protection technology, which can perform the protection switchover and ensure the maximum connectivity of the network when there is the node not supporting the Ethernet ring network protection technology in the Ethernet ring network.
In order to achieve the above-mentioned objective, the embodiment of the present invention provides a control method for protecting connectivity between Ethernet ring network nodes, used for a first node supporting an Ethernet ring network protection technology, comprising: interacting with a second node supporting the Ethernet ring network protection technology and near the first node, to detect link connectivity, where there is at least one third node not supporting the Ethernet ring network protection technology between the first node and the second node, and there is no node supporting the Ethernet ring network protection technology between the first node and the second node; when detecting a link fault, blocking a port connecting the first node to a failure link end; and sending a link fault alarm protocol frame to other nodes supporting the Ethernet ring network protection technology in the Ethernet ring network, to notify other nodes supporting the Ethernet ring network protection technology to perform protection switchover.
Alternatively, in the above-mentioned control method, the link fault alarm protocol frame comprises a first node number of the first node; and the control method further comprises: after receiving the link fault alarm protocol frame sent by the second node when detecting the link fault, comparing a second node number of the second node carried in the received link fault alarm protocol frame with the first node number, judging whether a comparison result meets a preset condition, and if the comparison result meets the preset condition, then opening a port blocked by the first node supporting the Ethernet ring network protection technology and connected to the failure link end.
Alternatively, in the above-mentioned control method, the preset condition is that the second node number is greater than the first node number or the second node number is smaller than the first node number.
In order to achieve the above-mentioned objective, the embodiment of the present invention further provides a control apparatus for protecting connectivity between Ethernet ring network nodes, used for a first node supporting an Ethernet ring network protection technology, comprising: a link connectivity detection unit, configured to interact with a second node supporting the Ethernet ring network protection technology and near the first node, to detect link connectivity, where there is at least one third node not supporting the Ethernet ring network protection technology between the first node and the second node, and there is no node supporting the Ethernet ring network protection technology between the first node and the second node; a port blocking unit, configured to: when detecting a link fault, block a port connecting the first node to a failure link end; and a link fault alarm protocol frame transceiving unit, configured for the first node supporting the Ethernet ring network protection technology to send a link fault alarm protocol frame to notify other nodes supporting the Ethernet ring network protection technology to perform protection switchover.
Alternatively, in the above-mentioned control apparatus, the link fault alarm protocol frame comprises a first node number of the first node; and the control apparatus further comprises: a comparison and judgment control unit, configured to: after receiving the link fault alarm protocol frame sent by the second node when detecting the link fault, compare a second node number of the second node carried in the received link fault alarm protocol frame with the first node number, judge whether a comparison result meets a preset condition, and if the comparison result meets the preset condition, then open a port blocked by the first node supporting the Ethernet ring network protection technology and connected to the failure link end.
Alternatively, in the above-mentioned control apparatus, the preset condition is that the second node number is greater than the first node number or the second node number is smaller than the first node number.
In order to achieve the above-mentioned objective, the embodiment of the present invention further provides a node device comprising the above-mentioned control apparatus for protecting the connectivity between the Ethernet ring network nodes.
By adopting the method and apparatus of the embodiment of the present invention, when the link connected to the node not supporting Ethernet ring network protection technology fails, nodes supporting the Ethernet ring network protection technology adjacent to the node not supporting Ethernet ring network protection technology can detect the link fault through the connectivity detection, to realize the network protection switchover; and the protected data can pass through the opened ring protection link, thus ensuring the connectivity of the service data. At the same time, after the two nodes supporting the Ethernet ring network protection technology and detecting the link fault receive the link fault alarm protocol frame from each other mutually, the node of which the node number is smaller (or uniquely greater than) opens the blocked port, and the node not supporting the Ethernet ring network protection technology transmits the service data through the opened port with other nodes. So the embodiment of the present invention can not only make the incompatible Ethernet ring network node be able to process the butt joint, but also ensures the maximum connectivity of the network.
The present invention is described in detail with reference to the accompanying drawings and the embodiments hereinafter.
The control method for protecting connectivity between Ethernet ring network nodes provided by the embodiment of the present invention is shown in
In step S410, the first node supporting an Ethernet ring network protection technology interacts with a second node supporting the Ethernet ring network protection technology and near the first node, to detect link connectivity, where there is at least one third node not supporting the Ethernet ring network protection technology between the first node and the second node, and there is no node supporting the Ethernet ring network protection technology between the first node and the second node.
In the Ethernet ring network, if two adjacent nodes support the Ethernet ring network protection technology, then the link connectivity is detected between these two adjacent nodes.
If the two adjacent nodes are not all supporting the Ethernet ring network protection technology, then between the two nodes supporting the Ethernet ring network protection technology adjacent to the node not supporting the Ethernet ring network protection technology, the link connectivity is detected through the mode of penetrating the node not supporting the Ethernet ring network protection technology.
In step S420, when the first node supporting the Ethernet ring network protection technology detects the link fault, the port connecting the first node to the failure link end is blocked.
In step S430, the first node supporting the Ethernet ring network protection technology sends the link fault alarm protocol frame to other nodes supporting the Ethernet ring network protection technology, to notify other nodes supporting the Ethernet ring network protection technology to perform the protection switchover.
In the step, the link fault alarm protocol frame sent by the first node supporting the Ethernet ring network protection technology to other nodes supporting the Ethernet ring network protection technology includes the node number of the first node.
The connection among most nodes can be realized through the above-mentioned mode. While in order to improve the connection rate, the specific embodiment of the present invention further includes the following step.
After receiving the link fault alarm protocol frame sent by the second node supporting the Ethernet ring network protection technology when the second node detects the link fault, the first node supporting the Ethernet ring network protection technology compares the second node number of the second node carried in the received link fault alarm protocol frame with the first node number, judges whether a comparison result meets a preset condition, and if the comparison result meets the preset condition, then opens the port blocked by the first node supporting the Ethernet ring network protection technology and connected to the failure link end.
The preset condition is that the received second node number sent by the second node supporting the Ethernet ring network protection technology is greater or smaller than the first node number of the first node supporting the Ethernet ring network protection technology.
Certainly, it should be understood that all nodes can use the same judgment criterion.
By adopting the method provided by the embodiment of the present invention, when the link connected to the node not supporting Ethernet ring network protection technology fails, the adjacent node supporting the Ethernet ring network protection technology node can detect the link fault through the connectivity detection, and then blocks the failure port, and sends the link fault alarm protocol frame to notify other nodes supporting the Ethernet ring network protection technology to perform the protection switchover; after the node affiliated to the ring protection link knows the link fault, the blocked port connected with the ring protection link is opened, and each node on the Ethernet ring network refreshes the address forwarding table, to realize the network protection switchover; and the protected data can pass through the opened ring protection link, to ensure the connectivity of the service data. But because both two nodes supporting the Ethernet ring network protection technology and detecting the link fault block the failure ports, the nodes not supporting the Ethernet ring network protection technology are unable to transmit the service data with other nodes, which cannot ensure the maximum connectivity of the network. After the two nodes supporting the Ethernet ring network protection technology and detecting the link fault receive the link fault alarm protocol frame from each other mutually, if it is found that its own node number is smaller (or uniquely greater than) the node number of the node of the other side, then the node opens the blocked port, and the node not supporting the Ethernet ring network protection technology transmits the service data through the opened port with other nodes. So the embodiment of the present invention can not only make the incompatible Ethernet ring network node be able to process the butt joint, but also ensures the maximum connectivity of the network.
The control apparatus for protecting the connectivity between the Ethernet ring network nodes provided by the embodiment of the present invention is used for the first node, and its specific structure is as shown in
The link connectivity detection unit 510 is configured to detect the link connectivity between the first node supporting the Ethernet ring network protection technology and the second node supporting the Ethernet ring network protection technology and near the first node, wherein, there is at least one third node not supporting the Ethernet ring network protection technology between the first node and the second node, and there is no node supporting the Ethernet ring network protection technology between the first node and the second node.
The port blocking unit 520 is configured to: when the link connectivity detection unit detects that the link fault occurs between the two adjacent first node and second node supporting the Ethernet ring network protection technology, block the port connecting the first node to the failure link end.
The link fault alarm protocol frame transceiving unit 530 is configured for the first node supporting the Ethernet ring network protection technology to send the link fault alarm protocol frame to notify other nodes supporting the Ethernet ring network protection technology to perform the protection switchover.
The link fault alarm protocol frame transceiving unit 530 includes the node number of the first node in the link fault alarm protocol frame sent to other nodes supporting the Ethernet ring network protection technology.
The control apparatus provided by the embodiment of the present invention further includes the following units.
The comparison and judgment control unit 540 is configured to: after the first node supporting the Ethernet ring network protection technology receives the link fault alarm protocol frame sent by the second node supporting the Ethernet ring network protection technology when detecting the link fault, compare the second node number of the second node carried in the detected link fault alarm protocol frame with its own first node number, judge whether the comparison result meets a preset condition, and if the comparison result meets the preset condition, then open the port blocked by the first node supporting the Ethernet ring network protection technology and connected to the failure link end.
The condition presetting unit 550 is configured to preset the condition, and the preset condition is that the received second node number sent by the second node supporting the Ethernet ring network protection technology is greater or smaller than the first node number of the first node supporting the Ethernet ring network protection technology.
The embodiment of the present invention provides the control apparatus for protecting the connectivity between the Ethernet ring network nodes, when the link connected to the node not supporting Ethernet ring network protection technology fails, the node supporting the Ethernet ring network protection technology node adjacent to the node not supporting Ethernet ring network protection technology can detect the link fault through the connectivity detection, to realize the network protection switchover; and the protected data can pass through the opened ring protection link, to ensure the connectivity of the service data.
In order to describe the control method and apparatus for protecting the connectivity between the Ethernet ring network nodes provided by the embodiment of the present invention much more clear, another specific preferred embodiment is provided from the overall situation for explanation.
As shown in
Because the nodes S5 and S6 do not support the Ethernet ring network protection technology, the technology for detecting the link connectivity between the nodes S2 and S3 supporting the Ethernet ring network protection technology adjacent to the nodes S5 and S6 respectively is launched according to the technology of the embodiment of the present invention.
As shown in
After the node S1 affiliated to the ring protection link receives the link fault alarm protocol frame, it opens the blocked port 11 connected with the ring protection link, and each node on the Ethernet ring network refreshes the address forwarding table, to realize the network protection switchover, and the protected data can pass through the opened ring protection link, so the node S2<->S1<->S4<->S3 can be connected therebetween, but because both the nodes S2 and S3 block the port connected with the failure link end, the nodes S5 and S6 cannot connect to other nodes.
As shown in
In order to describe the control method and apparatus for protecting the connectivity between the Ethernet ring network nodes provided by the embodiment of the present invention more clear, another specific preferred embodiment is provided from the overall situation for explanation.
Because the nodes S5 and S8 do not support the Ethernet ring network protection technology, the technology for detecting the link connectivity is used between the nodes S2 and S6 supporting the Ethernet ring network protection technology adjacent to the nodes S5 according to the method of the embodiment of the present invention. The technology for detecting the link connectivity is used between the nodes S3 and S7 supporting the Ethernet ring network protection technology adjacent to the nodes S8.
In
In
It can be understood by those skilled in the art that all or part of steps in the above-mentioned method can be fulfilled by programs instructing the relevant hardware components, and the programs can be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk, etc. Alternatively, all or part of the steps in the above-mentioned embodiments can be implemented with one or more integrated circuits. Accordingly, each module/unit in the above-mentioned embodiments can be implemented in the form of hardware, or in the form of software function module. The present invention is not limit to any specific form of the combination of the hardware and software.
It should be explained finally that, the above-mentioned embodiments are only used to illustrate the technical scheme of the present invention while not to limit. Those skilled in the art should understand that they can make the modifications and equivalents according to the technical scheme of the present invention without departing from the spirit and scope of the present invention, which should be embodied in the scope of the appending claims of the present invention.
By adopting the method and apparatus of the embodiment of the present invention, when the link connected to the node not supporting Ethernet ring network protection technology fails, the adjacent node supporting the Ethernet ring network protection technology node can detect the link fault through the connectivity detection, to realize the network protection switchover; and the protected data can pass through the opened ring protection link, to ensure the connectivity of the service data. At the same time, after the two nodes supporting the Ethernet ring network protection technology and detecting the link fault receive the link fault alarm protocol frame of the other side mutually, the node of which the node number is smaller (or uniquely greater than) opens the blocked port, and the node not supporting the Ethernet ring network protection technology transmits the service data through the opened port with other nodes. So the embodiment of the present invention not only can make the incompatible Ethernet ring network node be able to process the butt joint, but also ensures the maximum connectivity of the network.
Number | Date | Country | Kind |
---|---|---|---|
201210346466.8 | Sep 2012 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/079156 | 7/10/2013 | WO | 00 |