The content of the invention
It is a primary object of the present invention to provide a kind of pseudo-line service dual-homing protection processing method, apparatus and system, to solve
Certainly the work pseudo-wire of prior art consults failure, the problem of causing srvice instance flow interrupt and can not forward.
To achieve these goals, there is provided a kind of pseudo-line service dual-homing protection processing side according to an aspect of the present invention
Method.
Included according to the pseudo-line service dual-homing protection processing method of the present invention:It is double that first supplier edge device sets up pseudo-wire
Return protection group, and protection pseudo-wire is consulted to be success status, to obtain the pseudo-wire dual-homing protection group for generally consulting success status;
With work pseudo-wire foundation srvice instance flow can not normally forward in the case of, through consultation into protection pseudo-wire forward industry
Pragmatic example flow.
Further, the first supplier edge device sets up pseudo-wire dual-homing protection group, and protection pseudo-wire is consulted to be successfully
State, is included with the pseudo-wire dual-homing protection group for obtaining generally negotiation success status:First supplier edge device PE1 and second
Supplier edge device PE2 sets up work pseudo-wire, and sets up protection pseudo-wire with the 3rd supplier edge device PE3;PE2 by with
Pseudo-wire is put, is held consultation with PE1 work pseudo-wire, to set up srvice instance;PE3 is by configuring pseudo-wire, the protection pseudo-wire with PE1
Hold consultation, to set up srvice instance.
Further, in the case where can not normally be forwarded with the srvice instance flow for the pseudo-wire foundation that works, through consultation
Into protection pseudo-wire forwarding service example flow the step of include:Can not be normal in the srvice instance flow set up with the pseudo-wire that works
In the case of forwarding, the access side of srvice instance is searched according to work pseudo-wire;The srvice instance flow for accessing side is passed through into protection
Pseudo-wire is forwarded.
Further, through consultation into protection pseudo-wire forwarding service example flow after, method also includes:In work
Pseudo-wire recovery configuring is complete and pseudo-wire is consulted in the case of being success status, and srvice instance flow switch to the pseudo-wire that works is carried out
Forwarding.
Further, pseudo-wire dual-homing protection group includes the first pseudo-wire dual-homing protection and the second pseudo-wire dual-homing protection, and business is real
Example flow switches over forwarding according to negotiation state on the first pseudo-wire dual-homing protection and the second pseudo-wire dual-homing protection.
To achieve these goals, at according to another aspect of the present invention there is provided a kind of pseudo-line service dual-homing protection
Manage device.
Included according to the pseudo-line service dual-homing protection processing unit of the present invention:Creation module, for the first Provider Edge
Equipment sets up pseudo-wire dual-homing protection group, and protection pseudo-wire is consulted to be success status, and success status is generally consulted to obtain
Pseudo-wire dual-homing protection group;Forwarding module, in situation about can not normally be forwarded with the srvice instance flow for the pseudo-wire foundation that works
Under, through consultation into protection pseudo-wire forwarding service example flow.
Further, creation module includes:Module is set up, for the first supplier edge device PE1 and the second supplier
Edge device PE2 sets up work pseudo-wire, and sets up protection pseudo-wire with the 3rd supplier edge device PE3;First configuration module, is used
In PE2 by configuring pseudo-wire, held consultation with PE1 work pseudo-wire, to set up srvice instance;Second configuration module, for PE3
By configuring pseudo-wire, held consultation with PE1 protection pseudo-wire, to set up srvice instance.
Further, forwarding module includes:Searching modul, for work pseudo-wire foundation srvice instance flow can not
In the case of normal forwarding, the access side of srvice instance is searched according to work pseudo-wire;Sending module, for the business by side is accessed
Example flow is by protecting pseudo-wire to be forwarded.
Further, device also includes:Handover module, for complete and pseudo-wire consults to be into work pseudo-wire recovery configuring
In the case of work(state, srvice instance flow switch to the pseudo-wire that works is forwarded.
To achieve these goals, at according to a further aspect of the invention there is provided a kind of pseudo-line service dual-homing protection
Reason system.
Included according to the pseudo-line service dual-homing protection processing system of the present invention:Second supplier edge device PE2 and the 3rd
Supplier edge device PE3;First supplier edge device PE1, for setting up pseudo-wire dual-homing protection group.Work is set up with PE2
Pseudo-wire, and protection pseudo-wire is set up with PE3, and protection pseudo-wire is consulted to be success status, generally consult success status to obtain
Pseudo-wire dual-homing protection group, with work pseudo-wire foundation srvice instance flow can not normally forward in the case of, through consultation
Into protection pseudo-wire forwarding service example flow.
By the present invention, pseudo-wire dual-homing protection group is set up using the first supplier edge device, and protection pseudo-wire is consulted
For success status, generally consult the pseudo-wire dual-homing protection group of success status with acquisition;Real with the business for the pseudo-wire foundation that works
Example flow can not normally forward in the case of, through consultation into protection pseudo-wire forwarding service example flow, solve existing skill
The work pseudo-wire of art consults failure, the problem of causing srvice instance flow interrupt and can not forward, and then has reached guarantee business
The effect that example flow is normally forwarded.
In specific implementation process, the pseudo-wire dual-homing protection of establishment two-layer virtual private network (L2vpn) as shown in Figure 1
Scape, wherein having three PE equipment, PE1, PE2 and PE3.Two pseudo-wires are configured on PE1, work pseudo-wire, and path is:PE1-PE2;Protect
Pseudo-wire is protected, path is:PE1-PE3.L2vpn srvice instance is set up with the pseudo-wire that works.PE2 configures a pseudo-wire, the work with PE1
Pseudo-wire is consulted, and sets up L2vpn srvice instance;PE3 configures a pseudo-wire, consults with PE1 work pseudo-wire, sets up L2vpn business
Example.
Above-described embodiment is realized sets up pseudo-wire dual-homing protection in the case where work pseudo-wire configures imperfect or negotiation failure,
Protection pseudo-wire configuration is complete and consults successfully.Success status is consulted according to protection pseudo-wire, pseudo-wire dual-homing protection group is set generally
Consult success status, it is ensured that normally forwarded in protection pseudo-wire with the L2vpn service traffics for the pseudo-wire foundation that works, and work as work
Pseudo-wire configuration is complete and after consulting successfully, and pseudo-wire dual homed is switched to work pseudo-wire forwarding service flow again.
Fig. 2 is the flow chart of pseudo-line service dual-homing protection processing method according to embodiments of the present invention.As shown in Fig. 2 should
Method comprises the following steps:
Step S102, sets up pseudo-wire dual-homing protection group, and be by protection pseudo-wire negotiation by the first supplier edge device
Success status, to obtain the pseudo-wire dual-homing protection group for generally consulting success status;
Step S104, in the case where can not normally be forwarded with the srvice instance flow for the pseudo-wire foundation that works, through consultation
Into protection pseudo-wire forwarding service example flow.
The pseudo-line service dual-homing protection implementation method provided in above-described embodiment, configures imperfect or consults in work pseudo-wire
Pseudo-wire dual-homing protection is set up in the case of failure, protection pseudo-wire configuration is complete and consults successfully.Consulted successfully according to protection pseudo-wire
State, sets pseudo-wire dual-homing protection group generally to consult success status, it is ensured that existed with the L2vpn service traffics for the pseudo-wire foundation that works
Normally forwarded in protection pseudo-wire, reached the effect for ensureing that srvice instance flow is normally forwarded.
With reference to shown in Fig. 1 and Fig. 2, in the above embodiment of the present invention, the supplier edge devices of step S102 first are set up pseudo-
Line dual-homing protection group, and protection pseudo-wire is consulted to be success status, the pseudo-wire dual homed for generally consulting success status with acquisition is protected
Shield group can include:First supplier edge device PE1 and the second supplier edge device PE2 set up work pseudo-wire, and with
Three supplier edge device PE3 set up protection pseudo-wire;PE2 is held consultation, to build by configuring pseudo-wire with PE1 work pseudo-wire
Vertical srvice instance;PE3 is held consultation, to set up srvice instance by configuring pseudo-wire with PE1 protection pseudo-wire.
With reference to shown in Fig. 1 and 2, in the above embodiment of the present invention, step S104 is with the srvice instance for the pseudo-wire foundation that works
In the case that flow can not be forwarded normally, through consultation into protection pseudo-wire forwarding service example flow the step of include:With
In the case that the srvice instance flow that work pseudo-wire is set up can not be forwarded normally, the access of srvice instance is searched according to work pseudo-wire
Side;The srvice instance flow of side will be accessed by protecting pseudo-wire to be forwarded.The embodiment is realized when the configuration of work pseudo-wire is complete
And after consulting successfully, pseudo-wire dual homed is switched to work pseudo-wire forwarding service flow again.
Preferably, through consultation into protection pseudo-wire forwarding service example flow after, method can also include:In work
Make pseudo-wire recovery configuring completely and pseudo-wire is consulted in the case of being success status, srvice instance flow switch to the pseudo-wire that works is entered
Row forwarding.
In summary, the pseudo-wire dual-homing protection group in the embodiment of the present invention includes the first pseudo-wire dual-homing protection and the second pseudo-wire
Dual-homing protection, srvice instance flow is cut according to negotiation state on the first pseudo-wire dual-homing protection and the second pseudo-wire dual-homing protection
Change forwarding.
Fig. 3 is the detail flowchart of pseudo-line service dual-homing protection processing method according to embodiments of the present invention.Such as Fig. 3 institutes
Show, this method is that a kind of pseudo-line service dual-homing protection improves implementation method, and the handling process and state of this method include following step
Suddenly:
Step S201, sets up the pseudo-wire dual-homing protection scene of two-layer virtual private network (L2vpn), wherein there is three
The supplier edge device PE equipment of provider edge core layer equipments, PE1, PE2 and PE3 have some P equipment, also may be used
With no core layer provider vendor equipments P equipment.Two pseudo-wires, work pseudo-wire and protection pseudo-wire are configured on PE1, with work
L2vpn srvice instance is set up as pseudo-wire, first pseudo-wire dual-homing protection is not configured;PE2 configures a pseudo-wire, the work pseudo-wire with PE1
Consult, set up L2vpn srvice instance;PE3 configures a pseudo-wire, consults with PE1 protection pseudo-wire, sets up L2vpn srvice instance.
The pseudo-wire that worked under initial situation, on PE1 link down, the original state of work pseudo-wire is consults to fail, and protection is pseudo-
Wired link is connected, and the original state of protection pseudo-wire is to consult successfully.L2vpn srvice instance is now set up with the pseudo-wire that works, due to
Pseudo-wire dual-homing protection is also configured without, and work pseudo-wire is to consult failure, so now with the L2vpn industry for the pseudo-wire foundation that works
Pragmatic example consults failure due to work pseudo-wire, and service traffics can not be forwarded normally.
Step S202, on the basis of step S201, PE1 sets up pseudo-wire dual-homing protection, its work and protection pseudo-wire difference
For above-mentioned work pseudo-wire and protection pseudo-wire.Because protection pseudo-wire is to consult successful, the pseudo-wire dual-homing protection group is used as one
It is overall, the pseudo-wire dual-homing protection group is set to consult success status, and L2vpn srvice instance is found according to work pseudo-wire, and then
The access side (AC) of the L2vpn srvice instance is found, the service traffics for accessing side are imported into negotiation successfully protection pseudo-wire
Forwarded, now the L2vpn srvice instance flow can be forwarded normally.
Step S203, on the basis of step S202, configures complete and pseudo-wire by work pseudo-wire and consults successfully, pseudo-wire dual homed
Protection will recalculate guard mode, if pseudo-wire dual-homing protection is configured with reversing mode, pseudo-wire dual-homing protection state is cut
Work pseudo-wire is changed to, L2vpn srvice instance flow switch is forwarded to work pseudo-wire.Now complete pseudo-wire group protection shape
Into.Work and protection pseudo-wire are all in negotiation success status.
Step S204, on the basis of step S203, work and protection pseudo-wire all consult success, and pseudo-wire dual-homing protection is normal
Play a role.Hereafter work or protect pseudo- wired link to break down, dual-homing protection switches, and reaches what 50ms was switched fast
Performance.
It should be noted that the embodiment of the present invention can be in such as one group computer the step of the flow of accompanying drawing is illustrated
Performed in the computer system of executable instruction, and, although logical order is shown in flow charts, but in some situations
Under, can be with the step shown or described by being performed different from order herein.
Fig. 4 is the structural representation of pseudo-line service dual-homing protection processing unit according to embodiments of the present invention.Such as Fig. 4 institutes
Show, the device includes:
Creation module 10, sets up pseudo-wire dual-homing protection group, and protection pseudo-wire is consulted for the first supplier edge device
For success status, generally consult the pseudo-wire dual-homing protection group of success status with acquisition;
Forwarding module 30, in the case where can not normally be forwarded with the srvice instance flow for the pseudo-wire foundation that works, leading to
Cross the protection pseudo-wire forwarding service example flow consulted.
Said apparatus of the present invention sets up pseudo-wire dual-homing protection in the case where work pseudo-wire configures imperfect or negotiation failure,
Protection pseudo-wire configuration is complete and consults successfully.Success status is consulted according to protection pseudo-wire, pseudo-wire dual-homing protection group is set generally
Consult success status, it is ensured that normally forwarded in protection pseudo-wire with the L2vpn service traffics for the pseudo-wire foundation that works.Solve existing
The work pseudo-wire of technology consults failure, the problem of causing srvice instance flow interrupt and can not forward, and then has reached guarantee industry
The effect that pragmatic example flow is normally forwarded.
Creation module 10 in the above embodiments of the present application includes:Module 101 is set up, for the first supplier edge device
PE1 and the second supplier edge device PE2 set up work pseudo-wire, and set up protection pseudo-wire with the 3rd supplier edge device PE3;
First configuration module 102, for PE2 by configuring pseudo-wire, holds consultation, to set up srvice instance with PE1 work pseudo-wire;The
Two configuration modules 103, for PE3 by configuring pseudo-wire, hold consultation, to set up srvice instance with PE1 protection pseudo-wire.
Forwarding module 30 in the above embodiments of the present application includes:Searching modul 301, for the pseudo-wire foundation that works
In the case that srvice instance flow can not be forwarded normally, the access side of srvice instance is searched according to work pseudo-wire;Sending module
302, for the srvice instance flow by side is accessed by protecting pseudo-wire to be forwarded.
Preferably, the device can also include:Handover module 50, for complete and pseudo-wire is assisted in work pseudo-wire recovery configuring
In the case that business is success status, srvice instance flow switch to the pseudo-wire that works is forwarded.
In embodiment description more than, it can be seen that the present invention realizes following technique effect:Guarantee business is reached
The effect that example flow is normally forwarded.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and constituted
Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively multiple integrated circuit modules or by they
In multiple modules or step single integrated circuit module is fabricated to realize.So, the present invention is not restricted to any specific
Hardware and software is combined.
A preferred embodiment of the present invention has shown and described in described above, but as previously described, it should be understood that the present invention
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations,
Modification and environment, and above-mentioned teaching or the technology or knowledge of association area can be passed through in invention contemplated scope described herein
It is modified., then all should be in this hair and the change and change that those skilled in the art are carried out do not depart from the spirit and scope of the present invention
In the protection domain of bright appended claims.