Background technology
(Optic Protection Modular is a kind of inactive component OPM) to the light path baffle, is used for the block function that flow duplicates and realizes secure router.When secure router broke down, the light path baffle can pass through the service traffics by this faulty equipment from bypass, thereby realized the defencive function to service traffics.
Fig. 1 is the connection diagram of light path baffle.As shown in Figure 1, six interfaces are arranged on the light path baffle, P1, P1 ', P2, P2 ', P3 and P4, wherein:
P1: transmitting-receiving bidirectional connects outside router A;
P2: transmitting-receiving bidirectional connects outside router B;
All Business Streams all enter the light path baffle through P1, P2 two interfaces and are replicated also protected;
P1 ': transmitting-receiving bidirectional, No. 1 interface of attachment security router interface plate;
P2 ': transmitting-receiving bidirectional, No. 2 interfaces of attachment security router interface plate;
P3: send unidirectionally, the connection traffic watch-dog sends beam split from P1;
P4: send unidirectionally, the connection traffic watch-dog sends beam split from P2.
Light path baffle operate as normal PASS (by) under the pattern, send flow secure router to filter and be redirected, and duplicate output flow to P3, P4; When detecting secure router and break down, automatically switch to BYPASS (bypass) pattern, do not send flow secure router to handle, only flow is duplicated transparent transmission.
Wherein, the switching between PASS pattern and the BYPASS pattern (light path switching) is by the optical switch control that is arranged in the light path baffle.But optical switch can cause the end-to-end router interface to report Down, and trigger the agreement Down on this interface when switching, thereby causes on this interface each quasi-protocol to be lost, and causes network oscillation.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method and optical path protecting device of light path protection seamless switching, guarantees that as far as possible light signal does not interrupt in the light path handoff procedure, thereby makes that network can stable operation.
For solving the problems of the technologies described above, it is as follows to the invention provides technical scheme:
A kind of optical path protecting device, comprise, light connects first interface of first network equipment, light connects second interface of second network equipment, light connects third and fourth interface of Network Security Device, light is connected in first optical splitter between described first and third interface, and light is connected in first optical switch between described second, four interfaces; Described first optical splitter is connected with the described first optical switch light; Form first light path through described first interface, described first optical splitter, described the 3rd interface, described Network Security Device to described first optical switch; Form second light path through described first interface, described first optical splitter, to described first optical switch; Wherein:
The output of described first optical switch is gone back light and is connected to one first splicer;
Described first splicer is used for, and finishes between described first light path and described second light path before the switching, receiving the light signal of one first light mouth input at described first optical switch, and the light signal of described first light mouth input is outputed to described second network equipment.
A kind of method of light path protection seamless switching comprises:
The output light of the optical switch in the light path baffle is connected to a splicer;
Described splicer light is connected to Yi Guangkou;
Before described optical switch was finished the light path switching, described splicer received the light signal of also exporting described light mouth input.
Compared with prior art, the invention has the beneficial effects as follows:
By the use in splicer and light filling source, when not switching, splicer is only exported the regular traffic flow, and the signal in output light filling source can guarantee that as far as possible light signal does not interrupt in handoff procedure in the handoff procedure, makes that whole network can stable operation.
Embodiment
For ease of understanding the present invention better, at first report the reason of Down to analyze here to router port in the prior art.Switching between PASS pattern and the BYPASS pattern (light path switching) is by the optical switch control that is arranged in the light path baffle; should select the fast high accuracy device of switch speed for use based on the optical switch of passive techniques; no matter but switch speed how soon; always there is a switching time; at this section in switching time; optical switch does not have light signal output, can cause end-to-end router to think that light signal loses, thereby cause the end-to-end router interface to report Down.
Key of the present invention is, the output light of the optical switch in the light path baffle is connected to a splicer; Described splicer light is connected to Yi Guangkou, and described light mouth can provide the light filling signal; Before described optical switch was finished the light path switching, described splicer received the light signal of also exporting described light mouth input; After described optical switch was finished the light path switching, described splicer received the light signal of also exporting described optical switch input.So, can guarantee that as far as possible light signal does not interrupt in handoff procedure, make that whole network can stable operation.
For making the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the accompanying drawings and the specific embodiments.
With reference to Fig. 2, the light path baffle of the embodiment of the invention comprises at least: interface P1, interface P1 ', interface P2, interface P2 ', optical splitter C1, optical splitter C2, optical switch S1, optical switch S2.The interface P1 light of described light path baffle connects router-A, and interface P2 light connects router B, and interface P1 ', P2 ' be light attachment security router interface plate all.Optical splitter C1, optical switch S2 all light are connected between interface P1, P1 '; Optical splitter C2, optical switch S1 all light are connected between interface P2, P2 '; Optical splitter C1 is connected with optical switch S 1 light; Optical splitter C2 is connected with optical switch S2 light; Form first light path through interface P1, optical splitter C1, interface P1 ', secure router to optical switch S1; Form second light path through interface P1, optical splitter C1, to optical switch S1; Form the 3rd light path through interface P2, optical splitter C2, interface P2 ', secure router to optical switch S2; Form the 4th light path through interface P2, optical splitter C2, to optical switch S2.
In order to guarantee as far as possible that in the light path handoff procedure (comprising: from the PASS mode switch to the BYPASS pattern, from the BYPASS mode switch to the PASS pattern) light signal does not interrupt, the embodiment of the invention has also been set up light mouth 1, light mouth 2 on the secure router interface board, between interface P1 and router-A, set up splicer C4, between interface P2 and router B, set up splicer C3.The light signal that is input as optical switch S1 through interface P2 output of splicer C3, another one is input as the light filling signal of light mouth 1 output, and splicer C3 outputs to router B after the light signal of importing is synthesized; The light signal that is input as optical switch S2 through interface P1 output of splicer C4, another one is input as the light filling signal of light mouth 2 outputs, and splicer C4 outputs to router-A after the light signal of importing is synthesized.
When secure router normally moved, light mouth 1,2 was in closed condition.At this moment, splicer C3, C4 output is the normal light signal: after the optical signals optical switch S1 output of first light path, arrive router B through interface P2, splicer C3; After the optical signals optical switch S2 output of the 3rd light path, arrive router-A through interface P1, splicer C4.
(fault type has a variety of, when detecting the interface board forwarding engine and can't normally E-Packet, can determine that then secure router breaks down) opens light mouth 1,2 when secure router breaks down.At this moment, what splicer C3, C4 exported is the light signal that is provided by light mouth 1,2, simultaneously; optical switch S1 starts the switching from first light path to second light path; optical switch S2 starts the switching from the 3rd light path to the four light paths, that is, with the light path baffle from the PASS mode switch to the BYPASS pattern.In the light path handoff procedure, router-A, B can detect light signal, and the port of router can not reported DOWN.Light path switch finish after, close the optical signals optical switch S1 output of black out mouth 1,2, the second light paths again after, arrive router B through interface P2, splicer C3; After the optical signals optical switch S2 output of the 4th light path, arrive router-A through interface P1, splicer C4.
After the fault recovery of secure router, need be with the light path baffle from the BYPASS mode switch to the PASS pattern.At this moment, open light mouth 1,2 earlier, restart the switching of light path.After opening light mouth 1,2, and before starting the light path switching, the light signal (light signal of second light path) that is input as optical switch S1 through interface P2 output of splicer C3, another one is input as the light filling signal of light mouth 1 output, and splicer C3 outputs to router B after the light signal of importing is synthesized; The light signal (light signal of the 4th light path) that is input as optical switch S2 through interface P1 output of splicer C4, another one is input as the light filling signal of light mouth 2 outputs, and splicer C4 outputs to router-A after the light signal of importing is synthesized.Carry out second light path in the handoff procedure of first light path at optical switch S1, and carry out in the handoff procedure of the 4th light path to the three light paths at optical switch S2, what splicer C3, C4 exported is the light signal that is provided by light mouth 1,2.As can be seen, in the light path handoff procedure, router-A, B can detect light signal, and the port of router can not reported DOWN.After the light path switching is finished, close black out mouth 1,2, at this moment, what splicer C3, C4 exported is the normal light signal: after the optical signals optical switch S1 output of first light path, arrive router B through interface P2, splicer C3; After the optical signals optical switch S2 output of the 3rd light path, arrive router-A through interface P1, splicer C4.
What the foregoing description was described is that optical switch S1, S2 start the situation that light path is switched.But, when secure router breaks down, also might only cause the optical communication of a direction to be interrupted, at this moment, the light path that also can only carry out a direction is switched, and only a splicer is carried out light filling.
In the above-described embodiments, light filling source (light mouth 1,2) is arranged on the secure router interface board, and it also can be arranged on described light path baffle inside to save the external interface resource, perhaps directly introduces by external equipment; Splicer is arranged on light path baffle outside, and it also can be integrated in the light path baffle, for example, splicer C3 light is connected between interface P2 and the optical switch S1, and splicer C4 light is connected between interface P1 and the optical switch S2.
In sum, the present invention has realized maintaining light signal output always in the light path handoff procedure, and the end-to-end router perception takes place less than switching, and can guarantee as far as possible that router port do not report Down, thereby make whole network stabilization operation.Wherein, from BYPASS mode switch PASS pattern, the present invention can realize protecting fully; To the BYPASS pattern, can reduce the number of times that router interface is reported Down from the PASS mode switch.
Should be noted that at last above router, secure router only are exemplary introductions, those of ordinary skill in the art should be appreciated that the present invention can also be used for other network equipments such as switch.