Summary of the invention
Embodiments of the invention provide a kind of looped network mid point to the guard method of multipoint service and the pressed on ring node in the looped network, can reduce when breaking down by the professional required time of protection link transmission.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the invention provide the guard method of a kind of looped network mid point to multipoint service, and the method comprises:
The pressed on ring node of point-to-multipoint service is set up respectively active link and the protection link take described pressed on ring node as start node on looped network, wherein, described point-to-multipoint service comprises first time link point and second time link point, the opposite direction of the direction of described active link and described protection link at least at the lower link point of described looped network;
When breaking down in the described looped network, described pressed on ring node judges that whether described active link is through the fault point;
If described active link is through the fault point, and on the direction of described active link, described first time link point is positioned at the downstream of described pressed on ring node and the upstream of described fault point, and described pressed on ring node transfers to described first time link point by described active link at least with described point-to-multipoint service;
If described active link is through the fault point; and on the direction of described active link; described second time link point is positioned at the downstream of described fault point and the upstream of described pressed on ring node, and described pressed on ring node transfers to described second time link point by described protection link at least with described point-to-multipoint service.
In the possible implementation of the first, according to first aspect, the method that the pressed on ring node of described point-to-multipoint service is set up take described pressed on ring node as the active link of start node at looped network comprises:
Described pressed on ring node obtains the configuration information of active link, and the configuration information of described active link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on described active link direction;
Described pressed on ring node is determined last lower link point on the active link direction according to the configuration information of active link;
Described pressed on ring node is other node configuration forwarding labels except described last lower link point on the active link.
In the possible implementation of the second, in conjunction with first aspect or the possible implementation of the first, the method that the pressed on ring node of described point-to-multipoint service is set up the protection link take described pressed on ring node as start node at looped network comprises:
Described pressed on ring node obtains the configuration information of protection link, and the configuration information of described protection link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on described protection link direction;
Described pressed on ring node is determined at last lower link point of protecting on the link direction according to the configuration information of protection link;
Described pressed on ring node is other node configuration forwarding labels except described last lower link point on the protection link.
Second aspect, the embodiment of the invention provide the node of the pressed on ring in a kind of looped network, comprising:
The link establishment module, be used on looped network, setting up respectively active link and protection link take described pressed on ring node as start node, wherein, described point-to-multipoint service comprises first time link point and second time link point, the opposite direction of the direction of described active link and described protection link at least at the lower link point of described looped network;
Judge module when breaking down in the described looped network, is used for judging that whether described active link is through the fault point;
Professional transport module, if described active link is through the fault point, and on the direction of described active link, described first time link point is positioned at the downstream of described pressed on ring node and the upstream of described fault point, is used for by described active link described point-to-multipoint service being transferred to described first time link point at least; If described active link is through the fault point; and on the direction of described active link; described second time link point is positioned at the downstream of described fault point and the upstream of described pressed on ring node, is used for by described protection link described point-to-multipoint service being transferred to described second time link point at least.
In the possible implementation of the first, according to second aspect, described link establishment module comprises:
The first acquisition module, be used for obtaining the configuration information of described active link, the configuration information of described active link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on described active link direction;
The first determination module is for last lower link point of determining according to the configuration information of described active link on described active link direction;
The first configuration module is used to other node configuration forwarding labels except described last lower link point on the described active link.
In the possible implementation of the second, in conjunction with second aspect or the possible implementation of the first, described link establishment module comprises:
The second acquisition module, be used for obtaining the configuration information of described protection link, the configuration information of described protection link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on described protection link direction;
The second determination module is used for described configuration information according to the protection link and determines last lower link point on described protection link direction;
The second configuration module is used to other node configuration forwarding labels except described last lower link point on the described protection link.
The looped network mid point that the embodiment of the invention provides is to the guard method of multipoint service and the pressed on ring node in the looped network; by judging that whether active link is through the fault point; and then the pressed on ring node can get around the fault point, selects active link and/or protection link transmission point-to-multipoint service.Compared with prior art, reduced switching to the professional required time of protection link transmission when active link breaks down, avoided the same section transmitted in both directions on the path, saved bandwidth resources.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides the guard method of a kind of looped network mid point to multipoint service, as shown in Figure 3, comprising:
The pressed on ring node of S101, point-to-multipoint service is set up respectively above link point and is the active link of start node and protection link on looped network; wherein; point-to-multipoint service comprises first time link point and second time link point at least at the lower link point of looped network, the direction of active link and the opposite direction of protecting link.
The pressed on ring node can be set up respectively on the looped network with from as the active link of start node and protection link by obtaining configuration information from webmaster or being defined in according to multiprotocol label switching (English full name is Multi-Protocol Label Switching, referred to as MPLS) agreement.
Take looped network shown in Figure 4 as example, this looped network comprises node A, B, C, D, E, F, and Node B be this point-to-multipoint service at the pressed on ring node of this looped network, node D, E, F are that this point-to-multipoint service is at the lower link point of this looped network.
The active link take Node B as start node that Node B is set up at looped network as among Fig. 4 with (BCDEF) shown in the solid line of arrow and, the protection link take Node B as start node of foundation as among Fig. 4 with (BAFED) shown in the dotted line of arrow.Exemplary, the direction of active link is clockwise direction among Fig. 4, the direction of protection link is counterclockwise.
S102, when breaking down in the looped network, the pressed on ring node judges that whether active link is through the fault point.
Optionally, each node in the looped network can utilize operation management maintain (Operation Administration and Maintenance, OAM) whether adjacent link or the node of mechanism detection breaks down, when determining that adjacent link or node break down, node that should be adjacent with the fault point can be in looped network Broadcast Fault information.
Take scene shown in Figure 5 as example, in this scene, the fault point is between node D and node E.Node D and node E all utilize OAM mechanism to detect adjacent link fault has occured, and therefore, node D and node E can broadcast fault message in looped network.Wherein, the fault message indication of node D broadcasting is broken down in the clockwise downstream of node D, the fault message indication of node E broadcasting is broken down in the clockwise upstream of node E, therefore, other nodes on the looped network can know that fault has occured the link between node D and node E.Similarly, when certain node failure, adjacent two nodes of this malfunctioning node also can be in looped network Broadcast Fault information.
Therefore, when breaking down in the looped network, the pressed on ring node can be according to the fault message that obtains, the particular location of the localization of faults, and then judge that whether active link is through the fault point.
If the S103 active link is through the fault point, and on the direction of active link, first time the link point is positioned at the downstream of pressed on ring node and the upstream of fault point, the pressed on ring node transfers to the link point by active link first time at least with this point-to-multipoint service; If active link is through the fault point, and on the direction of active link, second time the link point is positioned at the downstream of fault point and the upstream of pressed on ring node, the pressed on ring node transfers to the link point by the protection link second time at least with this point-to-multipoint service.
Still take scene as shown in Figure 5 as example, because the fault point is between node D and node F, and the active link of this point-to-multipoint service in looped network be BCDEF, so active link is through the fault point.The lower link point of this point-to-multipoint service in looped network is node D, E and F, wherein, in the clockwise direction, lower link point D is positioned at the downstream of pressed on ring Node B and the upstream of fault point, therefore, the pressed on ring Node B transfers to lower link point D by active link with this point-to-multipoint service; Lower link point E and F are positioned at the downstream of fault point and the upstream of pressed on ring Node B, and therefore, the pressed on ring Node B transfers to lower link point E and F by the protection link with this point-to-multipoint service.
Optionally; if the quantity of above-mentioned first time link point is 0; then illustrate on the direction of active link; all lower link points all are positioned at the downstream of described fault point and the upstream of described pressed on ring node; therefore, the pressed on ring node can transfer to all lower link points with this point-to-multipoint service by the protection link.Similarly, if the quantity of above-mentioned second time link point is 0, then illustrate on the direction of active link, all lower link points all are positioned at the downstream of described pressed on ring node and the upstream of described fault point, therefore, the pressed on ring node can transfer to all lower link points with this point-to-multipoint service by active link.
Optionally, as shown in Figure 6, among the above-mentioned S101, the pressed on ring node can comprise at the active link of looped network foundation take described pressed on ring node as start node:
S201, pressed on ring node obtain the configuration information of active link, and the configuration information of this active link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on the active link direction.
Optionally, the pressed on ring node obtains the configuration information of active link from webmaster, also can be the configuration information that obtains active link according to mpls protocol.
Webmaster in the present embodiment, the network equipment that can be comprised of webmastering software platform, webmaster support programs, webmaster workbench and the bearing reticular tube agreement of support network management protocol can provide the basic management of configuration, fault, performance and network user's distribution aspect of network system.
S202, pressed on ring node determine last lower link point on the active link direction according to the configuration information of active link.
S203, pressed on ring node are other node configuration forwarding labels except last lower link point on the active link.
Still describe as an example of Fig. 4 example.
The pressed on ring Node B is obtained the configuration information of active link, and configuration information comprises the address of address, lower link point D, E and the F of pressed on ring Node B at least, and the address of the node C that will pass through from the pressed on ring Node B to lower link point D, E, F on the active link direction;
The pressed on ring Node B determines that according to configuration information lower link point F is last the lower link point on the active link direction;
The pressed on ring Node B is the forwarding label that the node configuration except last lower link point F is used for transmitting this point-to-multipoint service on the active link, be that the pressed on ring Node B is node C, lower link point D and lower link point E configuration forwarding label, node C, lower link point D, lower link point E transmit this point-to-multipoint business according to the forwarding label that self configures after receiving this point-to-multipoint business.
For example, this point-to-multipoint service is during from the Node B pressed on ring, mails to node C after adding one deck ring label;
Node C will encircle label and replace with the forwarding label that self configures, and then this point-to-multipoint service be mail to lower link point D;
Lower link point D copies as two parts with this point-to-multipoint service, and lower link point D is handled as follows portion wherein: peel off forwarding label, then this point-to-multipoint service leaves this looped network from lower link point D; Lower link point D is handled as follows another part: the forwarding label of node C is replaced with the forwarding label that self configures, then this point-to-multipoint service is mail to lower link point E;
The processing to this point-to-multipoint service of lower link point E is identical with lower link point D, lower ring behind a peeling label, and another part mails to lower link point F after replacing forwarding label;
After lower link point F receives this point-to-multipoint service, forwarding label is peeled off, then this point-to-multipoint service leaves this looped network from lower link point F.
Similarly, as shown in Figure 7, among the above-mentioned S101, the pressed on ring node can comprise at the protection link of looped network foundation take described pressed on ring node as start node:
S301, pressed on ring node obtain the configuration information of protection link, and the configuration information of protection link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on the protection link direction.
Optionally, the pressed on ring node obtains the configuration information of protection link from webmaster, also can be the configuration information that obtains the protection link according to mpls protocol.
S302, pressed on ring node are determined at last lower link point of protecting on the link direction according to the configuration information of protection link.
S303, pressed on ring node are other node configuration forwarding labels except last lower link point on the protection link.
Still describe as an example of Fig. 4 example.
The pressed on ring Node B is obtained the configuration information of protection link, and configuration information comprises the address of address, lower link point F, E and the D of pressed on ring Node B at least, and the address of the node A that will pass through from the pressed on ring Node B to lower link point F, E, D on the protection link direction;
The pressed on ring Node B determines that according to configuration information lower link point D is last the lower link point on the protection link direction;
The pressed on ring Node B is used for transmitting the forwarding label of this point-to-multipoint service for each node configuration except last lower link point D on the protection link; be that the pressed on ring Node B is node A, lower link point F and lower link point E configuration forwarding label; node A, lower link point F, lower link point E transmit this point-to-multipoint service according to the forwarding label that self configures after receiving this point-to-multipoint business.
For example, this point-to-multipoint service is during from the Node B pressed on ring, mails to node A after adding one deck ring label;
Node A will encircle label and replace with the forwarding label that self configures, and then this point-to-multipoint service be mail to lower link point F;
Lower link point F copies as two parts with this point-to-multipoint service, and lower link point F is handled as follows portion wherein: peel off forwarding label, then this point-to-multipoint service leaves this looped network from lower link point F; Lower link point F is handled as follows another part: the forwarding label of node A is replaced with the forwarding label that self configures, then this point-to-multipoint service is mail to lower link point E;
The processing to this point-to-multipoint service of lower link point E is identical with lower link point F, lower ring behind a peeling label, and another part mails to lower link point D after replacing forwarding label;
After lower link point D receives this point-to-multipoint service, forwarding label is peeled off, then this point-to-multipoint service leaves this looped network from lower link point D.
Need to prove the restriction of setting up active link and setting up not free order between the protection link.
The method that the embodiment of the invention provides, by whether judging active link through the fault point, and then the pressed on ring node can get around the fault point, selects active link and/or protection link transmission point-to-multipoint service.Compared with prior art, reduced switching to the professional required time of protection link transmission when active link breaks down, avoided the same section transmitted in both directions on the path, saved bandwidth resources.
The embodiment of the invention provides the node of the pressed on ring in a kind of looped network, as shown in Figure 8, comprising:
Link establishment module 10, be used on looped network, setting up respectively active link and protection link take described pressed on ring node as start node, wherein, described point-to-multipoint service comprises first time link point and second time link point, the opposite direction of the direction of described active link and described protection link at least at the lower link point of described looped network;
Judge module 11 when breaking down in the described looped network, is used for judging that whether described active link is through the fault point;
Professional transport module 12, if described active link is through the fault point, and on the direction of described active link, described first time link point is positioned at the downstream of described pressed on ring node and the upstream of described fault point, is used for by described active link described point-to-multipoint service being transferred to described first time link point at least; If described active link is through the fault point; and on the direction of described active link; described second time link point is positioned at the downstream of described fault point and the upstream of described pressed on ring node, is used for by described protection link described point-to-multipoint service being transferred to described second time link point at least.
Optionally, as shown in Figure 9, described link establishment module 10 comprises:
The first acquisition module 100, be used for obtaining the configuration information of described active link, the configuration information of described active link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on described active link direction;
The first determination module 101 is for last lower link point of determining according to the configuration information of described active link on described active link direction;
The first configuration module 102 is used to other node configuration forwarding labels except described last lower link point on the described active link.
Optionally, as shown in figure 10, described link establishment module 10 comprises:
The second acquisition module 103, be used for obtaining the configuration information of described protection link, the configuration information of described protection link comprises pressed on ring nodal information, lower link dot information and the nodal information that will pass through to lower link point from the pressed on ring node at least on described protection link direction;
The second determination module 104 is for last lower link point of determining according to the configuration information of described protection link on described protection link direction;
The second configuration module 105 is used to other node configuration forwarding labels except described last lower link point on the described protection link.
Pressed on ring node in the looped network that the embodiment of the invention provides, by whether judging active link through the fault point, and then the pressed on ring node can get around the fault point, selects active link and/or protection link transmission point-to-multipoint service.Compared with prior art, reduced switching to the professional required time of protection link transmission when active link breaks down, avoided the same section transmitted in both directions on the path, saved bandwidth resources.
The embodiment of the invention provides the node of the pressed on ring in a kind of looped network, as shown in figure 11, comprising:
Memory 1 is used for the storage instruction;
Processor 2; be used for carrying out described instruction; described instruction is used for behind the active link and protection link set up respectively on the looped network take described pressed on ring node as start node; wherein; described point-to-multipoint service comprises first time link point and second time link point at least at the lower link point of described looped network; the opposite direction of the direction of described active link and described protection link; when breaking down in the described looped network; judge that whether described active link is through the fault point; if and described active link is through the fault point; and on the direction of described active link; described first time link point is positioned at the downstream of described pressed on ring node and the upstream of described fault point; by described active link described point-to-multipoint service is transferred to described first time link point at least; perhaps; if described active link is through the fault point; and on the direction of described active link; described second time link point is positioned at the downstream of described fault point and the upstream of described pressed on ring node, by described protection link described point-to-multipoint service transferred to described second time link point at least.
The node that the embodiment of the invention provides, by whether judging active link through the fault point, and then node can get around the fault point, selects active link and/or protection link transmission point-to-multipoint service.Compared with prior art, reduced switching to the professional required time of protection link transmission when active link breaks down, avoided the same section transmitted in both directions on the path, saved bandwidth resources.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.