Summary of the invention
Main purpose of the present invention is to provide a kind of pseudo-line service dual-homing protection processing method, Apparatus and system, consults failure with the pseudo-line of the work that solves prior art, causes the srvice instance flow interrupt and the problem that can't transmit.
To achieve these goals, according to an aspect of the present invention, provide a kind of pseudo-line service dual-homing protection processing method.
Pseudo-line service dual-homing protection processing method according to the present invention comprises: first supplier edge device is set up pseudo-line dual-homing protection group, and will protect pseudo-line to consult to be success status, serves as the pseudo-line dual-homing protection group of consulting success status to obtain integral body; Under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation.
Further, first supplier edge device is set up pseudo-line dual-homing protection group, and will protect pseudo-line to consult to be success status, to obtain integral body serves as that the pseudo-line dual-homing protection group of consulting success status comprises: the first supplier edge device PE1 and the second supplier edge device PE2 set up the pseudo-line of work, and set up the pseudo-line of protection with the 3rd supplier edge device PE3; PE2 holds consultation with the pseudo-line of the work of PE1, to set up srvice instance by the pseudo-line of configuration; PE3 holds consultation with the pseudo-line of the protection of PE1, to set up srvice instance by the pseudo-line of configuration.
Further, under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the step that the pseudo-line of the protection that becomes is through consultation transmitted the srvice instance flow comprises: under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, and the access side of searching srvice instance according to the pseudo-line of work; The srvice instance flow that inserts side is transmitted by protecting pseudo-line.
Further, after the pseudo-line of the protection that becomes was through consultation transmitted the srvice instance flow, method also comprised: complete and pseudo-line is consulted under the situation of success status in the pseudo-line recovery configuring of work, the srvice instance flow is switched to the pseudo-line of work transmit.
Further, pseudo-line dual-homing protection group comprises the protection of requiring to report his or her problems within a prescribed time and in a prescribed place of the first pseudo-line dual-homing protection and the second pseudo-line, and the srvice instance flow switches forwarding according to negotiation state on the first pseudo-line dual-homing protection and the second pseudo-line are required to report his or her problems within a prescribed time and in a prescribed place protection.
To achieve these goals, according to another aspect of the present invention, provide a kind of pseudo-line service dual-homing protection processing unit.
Pseudo-line service dual-homing protection processing unit according to the present invention comprises: creation module, be used for first supplier edge device and set up pseudo-line dual-homing protection group, and will protect pseudo-line to consult to be success status, serve as the pseudo-line dual-homing protection group of consulting success status to obtain integral body; Forwarding module is used under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, and the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation.
Further, creation module comprises: set up module, be used for the first supplier edge device PE1 and the second supplier edge device PE2 and set up the pseudo-line of work, and set up the pseudo-line of protection with the 3rd supplier edge device PE3; First configuration module is used for PE2 by the pseudo-line of configuration, holds consultation with the pseudo-line of the work of PE1, to set up srvice instance; Second configuration module is used for PE3 by the pseudo-line of configuration, holds consultation with the pseudo-line of the protection of PE1, to set up srvice instance.
Further, forwarding module comprises: search module, be used under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the access side of searching srvice instance according to the pseudo-line of work; Sending module is used for the srvice instance flow that inserts side is transmitted by protecting pseudo-line.
Further, device also comprises: handover module, and be used in the pseudo-line recovery configuring of work complete and pseudo-line and consult under the situation of success status, the srvice instance flow is switched to the pseudo-line of work transmit.
To achieve these goals, according to a further aspect of the invention, provide a kind of pseudo-line service dual-homing protection treatment system.
Pseudo-line service dual-homing protection treatment system according to the present invention comprises: the second supplier edge device PE2 and the 3rd supplier edge device PE3; The first supplier edge device PE1 is used to set up pseudo-line dual-homing protection group.Set up the pseudo-line of work with PE2; and set up the pseudo-line of protection with PE3; and will protect pseudo-line to consult to be success status; to obtain integral body is the pseudo-line dual-homing protection group of consulting success status; under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation.
By the present invention, adopt first supplier edge device to set up pseudo-line dual-homing protection group, and will protect pseudo-line to consult to be success status, serve as the pseudo-line dual-homing protection group of consulting success status to obtain integral body; Under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted; the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation; the pseudo-line of work that has solved prior art is consulted failure; the problem that causes the srvice instance flow interrupt and can't transmit, and then reached the effect that guarantees the normal forwarding of srvice instance flow.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, clear,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The invention provides a kind of pseudo-line service dual-homing protection treatment system.Fig. 1 is the structural representation according to the pseudo-line service dual-homing protection treatment system of the embodiment of the invention, and as shown in Figure 1, this pseudo-line service dual-homing protection treatment system comprises: the second supplier edge device PE2 and the 3rd supplier edge device PE3; The first supplier edge device PE1 is used to set up pseudo-line dual-homing protection group.Set up the pseudo-line of work with PE2; and set up the pseudo-line of protection with PE3; and will protect pseudo-line to consult to be success status; to obtain integral body is the pseudo-line dual-homing protection group of consulting success status; under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation.
In the specific implementation process, the pseudo-line dual-homing protection scene of establishment two-layer virtual private network (L2vpn) as shown in Figure 1 wherein has three PE equipment, PE1, PE2 and PE3.Two pseudo-lines of the last configuration of PE1, the pseudo-line of working, the path is: PE1-PE2; Protect pseudo-line, the path is: PE1-PE3.Pseudo-line is set up the L2vpn srvice instance to work.PE2 disposes a pseudo-line, consults with the pseudo-line of the work of PE1, sets up the L2vpn srvice instance; PE3 disposes a pseudo-line, consults with the pseudo-line of the work of PE1, sets up the L2vpn srvice instance.
It is imperfect or consult to set up pseudo-line dual-homing protection under the situation of failure that the foregoing description is implemented in the pseudo-line configuration of work, protects pseudo-line configuration complete and consult successfully.Consult success status according to the pseudo-line of protection; it is whole for consulting success status that pseudo-line dual-homing protection group is set; guarantee on the pseudo-line of protection, normally to transmit with the L2vpn service traffics of the pseudo-line foundation of working; and after the pseudo-line of work disposed complete and consults successfully, pseudo-line dual homed switched to the pseudo-line of work again and transmits service traffics.
Fig. 2 is the flow chart according to the pseudo-line service dual-homing protection processing method of the embodiment of the invention.As shown in Figure 2, this method comprises the steps:
Step S102 sets up pseudo-line dual-homing protection group by first supplier edge device, and will protect pseudo-line to consult to be success status, serves as the pseudo-line dual-homing protection group of consulting success status to obtain integral body;
Step S104, under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation.
The pseudo-line service dual-homing protection implementation method that provides in the foregoing description, imperfect or consult to set up pseudo-line dual-homing protection under the situation of failure in the configuration of the pseudo-line of work, protect pseudo-line configuration complete and consult successfully.According to protecting pseudo-line to consult success status, it is whole for consulting success status that pseudo-line dual-homing protection group is set, and guarantees normally to transmit on the pseudo-line of protection with the L2vpn service traffics of the pseudo-line foundation of working, and reached the effect that guarantees the normal forwarding of srvice instance flow.
In conjunction with illustrated in figures 1 and 2, in the above embodiment of the present invention, step S102 first supplier edge device is set up pseudo-line dual-homing protection group, and will protect pseudo-line to consult to be success status, to obtain integral body serves as that the pseudo-line dual-homing protection group of consulting success status can comprise: the first supplier edge device PE1 and the second supplier edge device PE2 set up the pseudo-line of work, and set up the pseudo-line of protection with the 3rd supplier edge device PE3; PE2 holds consultation with the pseudo-line of the work of PE1, to set up srvice instance by the pseudo-line of configuration; PE3 holds consultation with the pseudo-line of the protection of PE1, to set up srvice instance by the pseudo-line of configuration.
Shown in Fig. 1 and 2, in the above embodiment of the present invention, step S104 is under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the step that the pseudo-line of the protection that becomes is through consultation transmitted the srvice instance flow comprises: under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, and the access side of searching srvice instance according to the pseudo-line of work; The srvice instance flow that inserts side is transmitted by protecting pseudo-line.This embodiment realizes that after the pseudo-line of work disposed complete and consults successfully, pseudo-line dual homed switched to the pseudo-line of work again and transmits service traffics.
Preferably, after the pseudo-line of the protection that becomes was through consultation transmitted the srvice instance flow, method can also comprise: complete and pseudo-line is consulted under the situation of success status in the pseudo-line recovery configuring of work, the srvice instance flow is switched to the pseudo-line of work transmit.
In summary, the pseudo-line dual-homing protection group in the embodiment of the invention comprises the protection of requiring to report his or her problems within a prescribed time and in a prescribed place of the first pseudo-line dual-homing protection and the second pseudo-line, and the srvice instance flow switches forwarding according to negotiation state on the first pseudo-line dual-homing protection and the second pseudo-line are required to report his or her problems within a prescribed time and in a prescribed place protection.
Fig. 3 is the detail flowchart according to the pseudo-line service dual-homing protection processing method of the embodiment of the invention.As shown in Figure 3, this method is that a kind of pseudo-line service dual-homing protection improves implementation method, and the handling process and the state of this method comprise the steps:
Step S201; set up the pseudo-line dual-homing protection scene of two-layer virtual private network (L2vpn); the supplier edge device PE equipment that three provider edge core layer equipment are wherein arranged; PE1, PE2 and PE3; some P equipment are arranged, also can not have core layer provider vendor equipment P equipment.Two pseudo-lines of the last configuration of PE1, work pseudo-line and the pseudo-line of protection are set up the L2vpn srvice instance with the pseudo-line of working, and do not dispose earlier pseudo-line dual-homing protection; PE2 disposes a pseudo-line, consults with the pseudo-line of the work of PE1, sets up the L2vpn srvice instance; PE3 disposes a pseudo-line, consults with the pseudo-line of the protection of PE1, sets up the L2vpn srvice instance.
Under the initial situation, the pseudo-wired link of the last work of PE1 is interrupted, and the initial condition of the pseudo-line of working protects pseudo-wired link to be communicated with for consulting failure, and the initial condition of protecting pseudo-line is for to consult successfully.Set up L2vpn srvice instance with the pseudo-line of working this moment; owing to also do not dispose pseudo-line dual-homing protection; and the pseudo-line of working is to consult failure, thus the L2vpn srvice instance that set up with the pseudo-line of working this moment because the pseudo-line of work is consulted failure, service traffics can't normally be transmitted.
Step S202, on the basis of step S201, PE1 sets up pseudo-line dual-homing protection, pseudo-line of work and the pseudo-line of protection that its work and the pseudo-line of protection are respectively above-mentioned.Because the pseudo-line of protection is to consult successfully; this puppet line dual-homing protection group is done as a whole; this puppet line dual-homing protection group is set for consulting success status; and according to work pseudo-line find the L2vpn srvice instance; and then find the access side (AC) of this L2vpn srvice instance; the service traffics that insert side are imported to the pseudo-line of the successful protection of negotiation transmit, this moment, this L2vpn srvice instance flow can normally be transmitted.
Step S203; on the basis of step S202; the pseudo-line of will working disposes complete and pseudo-line is consulted successfully; pseudo-line dual-homing protection will recomputate guard mode; if pseudo-line dual-homing protection has disposed reversing mode; the pseudo-line of the work that then pseudo-line dual-homing protection state switched to, L2vpn srvice instance flow switch to the pseudo-line of work and transmit.This moment, complete pseudo-line group protection formed.Work and protect pseudo-line all to be in the negotiation success status.
Step S204 on the basis of step S203, works and protects pseudo-line to consult success, and pseudo-line dual-homing protection normally plays a role.After this work or protect pseudo-wired link to break down, dual-homing protection switches, and reaches the performance that 50ms switches fast.
Need to prove, the embodiment of the invention can be carried out in the computer system such as a set of computer-executable instructions in the step shown in the flow chart of accompanying drawing, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
Fig. 4 is the structural representation according to the pseudo-line service dual-homing protection processing unit of the embodiment of the invention.As shown in Figure 4, this device comprises:
Creation module 10 is used for first supplier edge device and sets up pseudo-line dual-homing protection group, and will protect pseudo-line to consult to be success status, serves as the pseudo-line dual-homing protection group of consulting success status to obtain integral body;
Forwarding module 30 is used under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, and the pseudo-line of the protection that becomes is transmitted the srvice instance flow through consultation.
Said apparatus of the present invention is imperfect or consult to set up pseudo-line dual-homing protection under the situation of failure in the configuration of the pseudo-line of work, protects pseudo-line configuration complete and consult successfully.Consult success status according to the pseudo-line of protection, pseudo-line dual-homing protection group integral body is set, guarantee L2vpn service traffics normally forwarding on the pseudo-line of protection of setting up with the pseudo-line of working for consulting success status.The pseudo-line of work that has solved prior art is consulted failure, causes the srvice instance flow interrupt and the problem that can't transmit, and then has reached and guarantee the normal effect of transmitting of srvice instance flow.
Creation module 10 in the above embodiments of the present application comprises: set up module 101, be used for the first supplier edge device PE1 and the second supplier edge device PE2 and set up the pseudo-line of work, and set up the pseudo-line of protection with the 3rd supplier edge device PE3; First configuration module 102 is used for PE2 by the pseudo-line of configuration, holds consultation with the pseudo-line of the work of PE1, to set up srvice instance; Second configuration module 103 is used for PE3 by the pseudo-line of configuration, holds consultation with the pseudo-line of the protection of PE1, to set up srvice instance.
Forwarding module 30 in the above embodiments of the present application comprises: search module 301, be used under the situation that the srvice instance flow of setting up with the pseudo-line of working can't normally be transmitted, the access side of searching srvice instance according to the pseudo-line of work; Sending module 302 is used for the srvice instance flow that inserts side is transmitted by protecting pseudo-line.
Preferably, this device can also comprise: handover module 50, and be used in the pseudo-line recovery configuring of work complete and pseudo-line and consult under the situation of success status, the srvice instance flow is switched to the pseudo-line of work transmit.
From above embodiment described, as can be seen, the present invention had realized following technique effect: reached the effect that guarantees the normal forwarding of srvice instance flow.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into a plurality of integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Above-mentioned explanation illustrates and has described a preferred embodiment of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard eliminating as to other embodiment, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection range of claims of the present invention.