The TPS protection board detecting method
Technical field
The present invention relates to detection technique, refer to a kind of TPS protection board detecting method especially.
Background technology
TPS (Tributary Unit Protect Switch, the tributary unit protection is switched) is a kind of protection Switch mode of device level, promptly when protected plate breaks down, can use fender to substitute protected plate work, thereby business is protected.Fig. 1 is a kind of realization synoptic diagram of this system.
Under the normal condition, run business on the fender, therefore can not carry out alarm detection, the quality to fender can not detect like this.In fender bad time, if taking place, switches TPS, clearly can cause service disconnection, switch unsuccessful.Therefore be necessary to provide a kind of method that fender is detected, unsuccessful to avoid TPS to switch.
In the prior art, do not provide the method that the TPS protection plate is detected.
Summary of the invention
The invention provides a kind of TPS protection board detecting method, avoid because the bad TPS protection that causes of fender is unsuccessful.
TPS protection board detecting method provided by the invention comprises the following steps:
1) the I/O end with all of the port of TPS protection plate is concatenated into a closed circuit in regular turn;
2) the master control borad chip is provided with the output terminal transmission overhead byte of any port A in the described TPS protection plate all of the port, and remaining port place time slot is set at professional dispatching board place loopback;
3) the master control borad chip receives overhead byte from the input end of port A, and judges whether the overhead byte that receives is identical with the overhead byte of transmission, and if not, then this TPS protection plate of alarm report is bad, process ends; Otherwise, continue the following step;
4) the master control borad chip is provided with the output terminal transmission overhead byte of another arbitrary port B in the described TPS protection plate all of the port, cancels port B place time slot simultaneously at professional dispatching board place loopback, and port A place time slot is set at professional dispatching board place loopback;
5) the master control borad chip receives overhead byte from the input end of port B, and judges whether the overhead byte that receives is identical with the overhead byte that this port sends, and if not, then this TPS protection plate of alarm report is bad, process ends; Otherwise, report this TPS protection plate good, process ends.
According to said method of the present invention, described step 1 is to use relay that the I/O end of all of the port of TPS protection plate is concatenated into a closed circuit in regular turn.
According to said method of the present invention, in the described step 3, inequality as if the overhead byte of the overhead byte of judging reception and transmission, then go to step 2, repeat transmission, reception and the deterministic process of overhead byte, reach predetermined times, trigger alarm when judging result inequality continuously.
According to said method of the present invention, in the described step 5, inequality as if the overhead byte of the overhead byte of judging reception and transmission, then go to step 4, repeat transmission, reception and the deterministic process of overhead byte, reach predetermined times, trigger alarm when judging result inequality continuously.
According to said method of the present invention, after the time that interval one is set, repeating step 2-5.
Described overhead byte is that all unused bytes in the Higher Order Path Overhead or described overhead byte are all unused bytes in the rudimentary path overhead.
Adopt the inventive method can effectively detect the quality of TPS protection plate, in time fender quality situation is reported the user, avoided fender badly to cause TPS to switch failure.
Description of drawings
Fig. 1 is a TPS protection exchanging system connection diagram.
Fig. 2 is connected in series each port synoptic diagram on the TPS protection plate for the present invention with relay.
Fig. 3 is provided with all the other port time slots except that port one at professional dispatching board place loopback synoptic diagram in the embodiment of the invention.
Fig. 4 is the testing process figure corresponding to Fig. 3.
Fig. 5 is provided with all the other port time slots except that port 2 at professional dispatching board place loopback synoptic diagram in the embodiment of the invention.
Fig. 6 is the testing process figure corresponding to Fig. 5.
Embodiment
155M wiring board with 4 electricity mouths is the method that example explanation the present invention detects the TPS protection plate below.
As shown in Figure 2; when system is in normal operating conditions and does not promptly switch; with relay all of the port on the fender is concatenated into a closed loop in regular turn, i.e. in (input) end of relay out (output) termination (i+1) mod 4 of i port (i+1 removes 4 remainder) port relay.
The principle of work of the inventive method is: in the master control borad chip; can be by the overhead byte J1 of software setting port transmission; and be configured in the loopback that professional dispatching board (cross board) is gone up corresponding time slot; be set up port by judgement and send overhead byte J1, reach the purpose of monitoring and protection plate quality with the overhead byte J1 that the accepts identical quality of judging the path that this overhead byte is passed by whether.
Specific to embodiments of the invention, comprise the steps:
Referring to Fig. 4,1 port at first is set sends j1 byte, need in the processing earlier the loopback of 1 port to be removed, owing to might not remove the loopback of 1 port last time in the testing process, handle more insurance like this;
2,3,4 port time slots loopback on cross board is set again, as shown in Figure 3; After being provided with like this, j1 byte has traveled through and has removed 1 port in and hold cross board and cross board all fender paths to 1 port out end;
Whether the J1 that judges the transmission of 1 port output terminal is identical with the J1 that input end receives; if it is inconsistent; mean in the path that j1 byte passes through not intact part is arranged; mean promptly that also fender is undesired; if continuous 4 times (handle like this is in order to prevent erroneous judgement and alarm shake) judged result is inconsistent; to report the bad and alarm of fender this moment, and notify user's fender bad, testing process finishes.If send the identical of J1 and reception, mean that the path that j1 byte passes through is intact.Also remaining 1 port in this moment holds cross board and cross board not detected to the fender path of 1 port out end.In order to detect this section path, 2 port time slots are cancelled at cross board place loopback, simultaneously with 1 port time slot at cross board place loopback, as shown in Figure 5, carry out the step of second in the testing process and detect, concrete testing process as shown in Figure 6, the treatment step of its treatment step and Fig. 4 is similar, comprise: 2 ports are set send j1 byte, cancel 2 port place time slots at the infall loopback, with remaining port (comprising 1 port) place time slot at the infall loopback.Detect the different fenders that just report with input end reception J1 of 2 port output terminals transmission J1 as if continuous 4 times and badly alarm, purpose is to judge by accident and alarm and shake in order to prevent.If 2 ports send J1 and the identical of reception can judge that fender is good, reports fender good.4 times that mention in the top testing process is a recommended value, can change according to the actual conditions of equipment in the practical application.
Generally can finish by software for the detection of fender quality.When such scheme was realized, common way was to detect in a task.The priority of this task should be too not high, considers the load of system simultaneously, and the cycle of detection should be too not frequent.
Be to be example above with the STM-1 of 4 ports electricity port service disposable plates.Certainly the inventive method also can be used for E1/T1, E3/T3, and the TPS protection plate of the tributary card of E4 detects, and principle is similar, and application process is also similar, so no longer set forth.The overhead byte that is used to detect is J1 not necessarily, J2, and Higher Order Path Overhead, other unused bytes in the rudimentary path overhead also can be used for the detection of fender quality.
Adopt method of the present invention, when system need switch, the action of relay was controlled voluntarily by hardware and is removed the serial connection state, and the business that enters into protected plate is bridged to fender, realizes protection.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement 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 domain of claims.