Summary of the invention
Consider the problems referred to above and make the present invention that for this reason, main purpose of the present invention is to provide a kind of Link State transmission method and Resilient Packet Ring that is used for Resilient Packet Ring, to address the above problem.
According to an aspect of the present invention, provide a kind of Link State transmission method that is used for Resilient Packet Ring.
The Link State transmission method that is used for Resilient Packet Ring according to the embodiment of the invention comprises: the node of Resilient Packet Ring is created the enhancing link condition transmission groups, wherein, the enhancing link condition transmission groups of creating is independently of one another, and each strengthens the node that link condition transmission groups comprises two equities; Its Link State of each node detection in the enhancing link condition transmission groups of creating, and the Link State that detects is notified to another node in the enhancing link condition transmission groups at its place by the expectant control frame.
Wherein, each node is with the predetermined period transmission control frame.
Further, this method comprises: under a node did not receive from the situation that is in the control frame of another node in the same enhancing link condition transmission groups with it during predetermined period, this node was closed its port and is alarmed.
Preferably, a node receive be the control on Abnormal frame from the expression Link State that is in another node in the same enhancing link condition transmission groups with it after, this node is closed its port and is alarmed.
Wherein, transmission control frame on the both direction of each node in Resilient Packet Ring.
Preferably, control frame comprise in the following information one of at least: destination node address, source node address, Link State, enhancing link condition transmission groups sign, redundant cyclic check code, Resilient Packet Ring sign.
According to a further aspect in the invention, provide a kind of Resilient Packet Ring.
Resilient Packet Ring comprises according to an embodiment of the invention: the enhancing link condition transmission groups independent of each other that comprises a plurality of nodes and a plurality of nodes are created, wherein, each strengthens the node that link condition transmission groups comprises two equities, and, its Link State of each node detection in the enhancing link condition transmission groups of creating is notified to the Link State that detects by the expectant control frame another node in the enhancing link condition transmission groups at its place.
Wherein, under a node does not receive from the situation that is in the control frame of another node in the same enhancing link condition transmission groups with it in the section at the fixed time or a node receive be the control on Abnormal frame from the expression Link State that is in another node in the same enhancing link condition transmission groups with it after, this node is closed its port and is alarmed.
Preferably, transmission control frame on the both direction of each node in Resilient Packet Ring.
Preferably, control frame comprise in the following information one of at least: destination node address, source node address, Link State, enhancing link condition transmission groups sign, redundant cyclic check code, Resilient Packet Ring sign.
By technique scheme of the present invention, by RPR ring malfunction is delivered to fast and receives professional equipment, thereby impel the device switching of accepting business to the protection path or adopt other guard method, avoid losing for a long time of business.
Embodiment
For addressing the above problem, the present invention proposes a kind of method in the enterprising line link state bi-directional of Resilient Packet Ring (RPR) ring.When above-mentioned said problem appears in business, by the RPR ring malfunction is delivered to fast and receives professional equipment, below in conjunction with the accompanying drawings the embodiment of the invention being described.
Method embodiment
According to the embodiment of the invention, provide a kind of Link State transmission method that is used for Resilient Packet Ring.
Fig. 1 is that as shown in Figure 1, this method may further comprise the steps according to the flow chart of the Link State transmission method that is used for Resilient Packet Ring of the embodiment of the invention:
Step S102 creates the enhancing link condition transmission groups to the node of Resilient Packet Ring, and wherein, the enhancing link condition transmission groups of establishment is independently of one another, and each strengthens the node that link condition transmission groups comprises two equities;
Step S104, its Link State of each node detection in the enhancing link condition transmission groups of creating, and the Link State that detects is notified to another node in the enhancing link condition transmission groups with its place by the expectant control frame, wherein, each node is with the predetermined period transmission control frame, and can send this control frame on the both direction in Resilient Packet Ring.
The technical scheme that provides by the embodiment of the invention is delivered to malfunction fast by the RPR ring and receives professional equipment, thereby impels the device switching of accepting business to the protection path or adopt other guard method, avoids losing for a long time of business.
And, in step S204, can also during predetermined period, not receive from be in same enhancing link condition transmission groups (Enhanced Link StateTransport with it at a node, abbreviate ELST as) under the situation of control frame of another node, this node is closed its port and is alarmed; And, a node receive be the control on Abnormal frame from the expression Link State that is in another node in the same enhancing link condition transmission groups with it after, this node is closed its port and is alarmed.
Wherein, control frame comprise in the following information one of at least: destination node address, source node address, Link State, enhancing link condition transmission groups sign, redundant cyclic check code, Resilient Packet Ring sign.
Preferably, the user can dispose the node number that is comprised in the number that strengthens link condition transmission groups and this group according to the needs of business arbitrarily, and, be relation independent of each other between the different enhancing link condition transmission groups, the different nodes that strengthen between the link condition transmission groups do not have information interaction.
Preferably, two nodes in each ELST group regularly detect the Link State of local terminal, and according to Link State transmission control frame on ring, and this control frame periodically encircles and transmit, and timing decides according to user's demand.
Preferably, in each ELST group, the Link State of a node is under the normal situation therein, sends the normal control frame of Link State to another node that is in its opposite end; The Link State of a node is under the unusual situation therein, sends Link State control on Abnormal frame to another node that is in its opposite end.
Wherein, two nodes among each ELST are analyzed the control frame that receives respectively, and each node is only discerned the control frame information of the node in the ELST group that belongs to himself, when each node is unusual at the control frame Link State that receives its peer node, close the port of this node, and give the user alarming information report; When if this node does not receive the control frame that its peer node sends within a certain period of time, it is unusual to think that then its peer node or RPR ring has occurred, and closes the port of this node, and gives the user with alarming information report; If this node receives the normal control frame of Link State that its peer node sends, then open the port of this node, and will alarm disappearance information and report the user.
Fig. 2 is according to the detailed process flow chart of the Link State transmission method that is used for Resilient Packet Ring of the inventive method embodiment, as shown in Figure 2, may further comprise the steps:
Step S202, user create the ELST group, and specify two nodal informations that comprised among the ELST, and wherein, the user can or adopt the TLENET mode to create the ELST group on webmaster;
Step S204, equipment receive after the order of creating the ELST group, the pairing control frame information of each node in the initialization ELST group, and wherein, node address be the MAC Address number of himself, the numbering of ELST group then is the numbering according to user's establishment;
Step S206, each node regularly detects the Link State of this node, and according to the both direction while transmission control frame of Link State on the RPR ring, under the normal situation of Link State, mode field in the control frame is " normally ", under the unusual situation of Link State, the Link State in the control frame is " unusually ";
Step S208, whether the regular detection of each node receives the control frame that its peer node sends;
If within certain hour, do not receive the control frame of opposite end, illustrate that then fault has appearred in the node of RPR ring or this node opposite end, the Link State of putting this node is LINKDOWN, and gives the user with alarming information report;
If receive the unusual control frame that its opposite end sends over, the Link State that the opposite end is described is LINKDOWN, and then the Link State with local terminal is changed to LINKDOWN, and gives the user with alarming information report;
If within certain hour, receive the normal control frame that the opposite end sends over again, illustrate that then the opposite end operating state recovers normal, then the Link State with local terminal is changed to LINKUP, and will alarm disappearance information and report the user.In addition,, receive the node of alarm protocol frame positive closing port, should send the normal protocol frame to the opposite end for preventing deadlock.
Fig. 3 is the flow chart according to the detection Link State of the inventive method embodiment, and at this moment, each node can be used as transmitting terminal in each ELST group, as shown in Figure 3, may further comprise the steps:
Step S302, each node is to himself advancing detecting of Link State in each ELST group;
Step S304, under the normal situation of Link State, execution in step S306; Under the unusual situation of Link State, execution in step S308;
Step S306, this node send normal control frame on the RPR ring;
Step S308, this node send the control on Abnormal frame on the RPR ring.
Fig. 4 is the flow chart that control frame that the utilization according to the inventive method embodiment receives detects Link State, and at this moment, each node can be used as receiving terminal in each ELST group, as shown in Figure 4, may further comprise the steps:
Step S402, each node is judged the control frame of whether receiving that within a certain period of time its peer node sends in each ELST group, is under the situation that is in judged result, execution in step S404, otherwise carry out S408;
Step S404 judges whether the control frame that receives is normal protocol frame, is under the situation that is in judged result, execution in step S406, otherwise carry out S408;
Step S406 is changed to LINKUP with the Link State of this node;
Step S408 is changed to LINKDOWN with the Link State of this node.
The embodiment of the invention also provides a kind of Resilient Packet Ring, the enhancing link condition transmission groups independent of each other that this Resilient Packet Ring comprises a plurality of nodes and described a plurality of nodes are created, wherein, each strengthens the node that link condition transmission groups comprises two equities, and, its Link State of each node detection in the enhancing link condition transmission groups of creating, the described Link State that will detect by the expectant control frame is notified to another node in the enhancing link condition transmission groups with its place, wherein, transmission control frame on the both direction of each node in Resilient Packet Ring.
Preferably, under a node does not receive from the situation that is in the control frame of another node in the same enhancing link condition transmission groups with it in the section at the fixed time or a node receive be the control on Abnormal frame from the expression Link State that is in another node in the same enhancing link condition transmission groups with it after, this node is closed its port and is alarmed.
Wherein, control frame comprise in the following information one of at least: destination node address, source node address, Link State, enhancing link condition transmission groups sign, redundant cyclic check code, Resilient Packet Ring sign.
Fig. 5 is the networking diagram according to the relays link state of the Resilient Packet Ring of the embodiment of the invention, and as shown in Figure 5, this networking diagram comprises fournodes 1,2,3,4, reach two router Router1 and Router2, wherein,node 1 is connected with Router1, andnode 3 is connected with Router2.
By the Resilient Packet Ring that the embodiment of the invention provides, impel the device switching of accepting business to the protection path or adopt other guard method, avoid professional losing for a long time.
As above; by means of Link State transmission method and the Resilient Packet Ring that is used for Resilient Packet Ring provided by the invention; by the RPR ring malfunction is delivered to the professional equipment that receives fast; thereby impel the device switching of accepting business to the protection path or adopt other guard method, avoid professional losing for a long time.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.