CN100396030C - Method for testing reliability of cascade device and system therefor - Google Patents

Method for testing reliability of cascade device and system therefor Download PDF

Info

Publication number
CN100396030C
CN100396030C CNB2006100903901A CN200610090390A CN100396030C CN 100396030 C CN100396030 C CN 100396030C CN B2006100903901 A CNB2006100903901 A CN B2006100903901A CN 200610090390 A CN200610090390 A CN 200610090390A CN 100396030 C CN100396030 C CN 100396030C
Authority
CN
China
Prior art keywords
cascade device
cascade
module
testing
reliability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006100903901A
Other languages
Chinese (zh)
Other versions
CN1878098A (en
Inventor
张华�
潘玲娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100903901A priority Critical patent/CN100396030C/en
Publication of CN1878098A publication Critical patent/CN1878098A/en
Application granted granted Critical
Publication of CN100396030C publication Critical patent/CN100396030C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a method for testing the reliability of a cascading device, which is used in the process of testing the reliability of a cascading device, and the method comprises: step one, the service of a cascading device is configured; step two, a fault simulation order is issued to the cascading device which simulates the fault of a main module and triggers the switching of a main standby module; step three, the service information before and after the fault is simulated, the service information after the main standby module is switched and/ or the information of the cascading device is recorded; step four, the index of switching and testing performance is obtained according to recorded results. The present invention also discloses a system of testing the reliability of a cascading device. The present invention can enhance the accuracy and the reliability of testing the reliability of the cascading device.

Description

A kind of method and system of testing reliability of cascade device
Technical field
The present invention relates to communication field, relate in particular to a kind of method and system of testing reliability of cascade device.
Background technology
In the communication products, in order to realize big Capacity design, system realizes the networking characteristic of various capacity specifications flexibly mainly by many frames equipment cascading; The cascade characteristic of equipment, the high-speed channel of cascade is that the high reliability of communication products has been brought challenge between equipment frame; In order to ensure that Single Point of Faliure can not influence the operate as normal of system, the backup design has all been adopted in each physical channel of cascade device; For example all used backup for the interconnection of cascade signal, cascade veneer and cascade channel between important frame.Reliability design ensures when focusing on Single Point of Faliure takes place, and what equipment can be correct detects fault and finish fault masking automatically, realizes the nothing influence to business.Usually the backup design of cascade device, the detection when breaking down, trigger the reliability index that the reliability of masterslave switchover, the performance of switching etc. are directly connected to system automatically, therefore to just apparent extremely important of its testing authentication.
At present for the test of the reliability of cascade system, what adopt is that artificial method is carried out, the tester is for the cascade channel simulation master channel fault of 1+1 backup, reset as employing, following electricity is led with the veneer of cascade channel or the main cascade channel optical fiber of plug etc., trigger switching of cascade module, observe then and switch whether success, whether the cascade service channel is normal etc.
But verify the reliability of switching owing to switch the general test of switching that requires to carry out repeatedly of test,, expend time in very much and manpower by the test of manually carrying out; Especially for networking mode equipment flexibly, after the each upgrading of device software, the checking under the various networking models almost can't be finished mode by hand.
Secondly, read for partial fault simulation and state and to wait the test event high, adopt the manual testing, can lead to errors than length owing to the time interval to time requirement.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method and system of testing reliability of cascade device, can improve the accuracy and the reliability of testing reliability of cascade device.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of method of testing of reliability of cascade device, comprise step:
1) the business configuration configuration of cells cascade device business of testing reliability of cascade device system;
2) the Fault Control unit of testing reliability of cascade device system issues the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
3) before and after the recording unit records fault simulation of testing reliability of cascade device system and active and standbyly switch the back business information or/and cascade device information with module;
4) computing unit of testing reliability of cascade device system draws according to the record result and switches the test performance index.
Described step 2 after the described step 1)) comprise before:
11) whether inquiry business is normal, if business normally enters step 12), if professional undesired this flow process that then finishes;
12) empty the tester historical record;
13) whether the inquiry spare module is normal, if normally then enter step 2), if the undesired step 3) that then enters.
Preferably, described step 12) also comprises: the test loop maximum times is set;
Further after the described step 12):
121) whether inquiry business is normal, if normally enter step 13), if the undesired step 3) that enters;
Comprise after the described step 3):
31) cycle-index adds 1, if current cycle time is equal to or greater than maximum cycle, then enters step 4), if current cycle time is then returned step 121 less than maximum cycle).
Preferably, described step 2) the simulation master is with after the module failure, and active and standby the switching with module of described triggering further comprises before:
21) whether the inquiry fault simulation is normally finished, if normally finish, then triggering is active and standby automatically switches and execution in step 3 with module), if the undesired step 3) that then enters.
Preferably, described step 12) also comprises: the test loop maximum times is set;
Further after the described step 12):
121) whether inquiry business is normal, if normally enter step 13), if the undesired step 3) that enters;
Described step 2) simulation is main with after the module failure, and active and standby the switching with module of described triggering further comprises before:
21) whether the inquiry fault simulation is normally finished, if normally finish, then triggering is active and standby automatically switches and execution in step 3 with module), if the undesired step 3) that then enters;
Comprise after the described step 3):
31) cycle-index adds 1, if current cycle time is equal to or greater than maximum cycle, then enters step 4); If current cycle time is less than maximum cycle, current cascade device needs heavy new configuration service, enters step 32);
32) configuration cascade appliance services enters step 121).
Preferably, switching the test performance index in the described step 4) is: switch success rate or/and service outage duration;
Preferably, switch number of success and the total merchant who switches number of times and obtain switching success rate;
Preferably, Packet Service obtains service outage duration by the merchant who calculates packet loss number and packet sending speed, in the narrow band service: the merchant that the merchant of E1 frame structure by computing service interrupt number and 8000 adds error code number and 1984000 obtains service outage duration, and the merchant that the merchant of STM-1 frame structure by service disconnection number and 8000 adds error code number and 149.76 hundred ten thousand obtains service outage duration.
Preferably, described simulation is main with the module failure method to be: issue the fault simulation order and rewrite register shutoff transmission optical module or clock no-output, or issue the fault simulation order shutoff veneer output or the cascade chip that resets.
Preferably, the used test program of described testing reliability of cascade device method uses the design of TCL script, moves based on the TCL script interpreter.
The present invention also provides a kind of system of testing reliability of cascade device, comprising:
The business configuration unit is used to dispose the cascade appliance services;
The Fault Control unit is used to issue the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
Record cell is used for record and switches the result, before and after the record trouble simulation and active and standbyly switch back business information and/or cascade device information with module;
Computing unit is used for drawing and switching the test performance index according to the record result.
Preferably, described system also comprises:
Query unit is used to inquire about cascade equipment fault simulation front and back business information or/and cascade device information.
Preferably, described system also comprises:
Cycle-index is provided with the unit, be used to empty the tester historical record, test loop number of times maximum is set, and accumulation loop number of times, compare current cycle time and maximum cycle, if current cycle time is more than or equal to maximum cycle, then the Notification Record unit will write down the result and feed back to computing unit.
Above technical scheme as can be seen, owing to issue the order of control simulated failure to cascade device, can simulate the fault of cascade device master with the various devices of module, fault simulation wider also avoided the situation of the device damage that may occur by plug optical fiber or plug veneer simulated failure simultaneously in manual operation.
Further, cycle-index is set, circulation can be set repeatedly as required, the continuous various faults of the simulation cascade device of circulation can system, comprehensively test the reliability of cascade device, improves the breadth and depth of test.
Further, the situation of continuous inquiry business situation and cascade device in test process, and record traffic abnormal information and cascade device abnormal information, after record trouble is simulated in time each abnormal information professional and cascade device, make that the calculating of cascade device test performance is more accurate, more reliable.
Further, test program uses the design of TCL script, can be applied in easily in the test of various cascade systems, has improved the versatility of test, and TCL guarantees the portability of test in the field tests extensive use.
Description of drawings
Fig. 1 is that method first provided by the invention is implemented illustration;
Fig. 2 is that method second provided by the invention is implemented illustration;
Fig. 3 is that method the 3rd provided by the invention is implemented illustration;
Fig. 4 is that method the 4th provided by the invention is implemented illustration;
Fig. 5 is that system first provided by the invention implements illustration;
Fig. 6 is that system second provided by the invention implements illustration;
Fig. 7 is that system the 3rd provided by the invention implements illustration.
Embodiment
The present invention is applied in the testing reliability of cascade device process, realizes the automation of testing reliability of cascade device.Its core concept is: issue the fault simulation order, simulate active and standby the triggering with module failure and active and standbyly switch with module, and before and after the record trouble simulation and the abnormal information of switching the professional and cascade device in back, draw and switch the test performance index.
According to above-mentioned core concept, the invention provides detailed embodiment explanation.
Please refer to Fig. 1 is method first embodiment provided by the invention.
Whole test process is finished by the test program that operates on the PC in the present embodiment.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device by the accept business state of data flow of the transmission of query facility state and control monitoring instrument, and the record monitored results, and calculates and switch the test performance index.
This embodiment comprises step:
D1) configuration service;
The configuration cascade device is striden the frame business.
D2) issue the fault simulation order to cascade device, simulation is main uses module failure, triggers active and standbyly to switch with module;
Test program uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device and record monitored results by the accept business state of data flow of the transmission of query facility state and control monitoring instrument.
Simulation is main mainly to be realized by the analog machine hardware fault with module failure, and test program issues the control of fault simulation control command by the OMC network interface and realizes.Need to prove that cascade device need realize controlled to device interior, is the primary demand of the measurability of cascade device design.For the test of cascade part, main implementation method has following several:
By the configuration that test program is rewritten register, turn-off the main optical module of using.(suppose: 0 expression light mouth is luminous normal for optical module signal condition value in the register that concrete rewriting has defined, 1 expression light mouth shutoff) comes simulated failure, change the register signal state value into 1 by original 0 during simulated failure, turn-off main optical module, the main module failure of using of simulation with module.
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x01; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
This order is defined as follows:
dopra?mem?modify<start?address><byte?1><byte?2>...<byte?n>
<start?address>:a?HEX?number?with?the?prefix′0x′
<byte?i>:the?new?data?from<start?address>,where:every?byte?must?be?a?HEXwithout?the?prefix′0x′n<=255
Also can be by rewriting the fault of register configuration simulation active clock.Main using by simulation active clock failure of chip turn-offed active clock output, the clock signal state value in the register that has defined (suppose: 1 expression clock chip output is normal, and 0 expression clock chip no-output or output are unstable)
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x00; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
Close main output with the module one-board power supply, be that the triggering of analog veneer hardware fault is switched, test program is by order mnt xiadian sn, and wherein sn is a slot number, the veneer of supposing present simulated failure can turn-off the power supply of 1 groove veneer by mnt xiadian 1 order at 1 groove.
Can also intend the main module failure of using by the cascade chip dies that resets in addition, test program is by joining chip as the reset stage of issuing orders: rst chipid; The chip id that input will reset number (in this id equipment pre-defined, id number that supposes cascade chip is 0), then input command rst 0 cascade chip that resets triggers cascade and switches.
D3) record traffic information and/or cascade device information;
Before and after the record trouble simulation and active and standbyly switch back business information and cascade device information with module, business information mainly is packet sending speed, the packet loss number that professional monitoring instrument shows in service exception alarm, the Packet Service, service disconnection number, error code number etc. in the TDM business, switch unsuccessful number of times if the cascade device information spinner is active and standby with module, switch number of success, the information such as interruption of unit exception alarm, equipment.
In whole test process,,, only write down cascade device information then without record traffic information if business is normal all the time; When for once testing, at test process cascade equipment above-mentioned anomaly does not appear, the information of a record traffic equally.But in the test process of reality, follow active and standbyly, can occur the unusual of service exception and cascade device usually, so can record traffic information and cascade device information with the switching of module.
D4) draw and switch the test performance index.
The test performance index is switched in calculating according to the record result.
Switching test performance comprises: test is switched success rate, service outage duration, abnormality alarming etc.Wherein abnormality alarming is as the reference value of switching the test performance index, and those skilled in the art can judge that it is to switching the reference value of test performance according to experience.
The calculating of switching performance index, service outage duration are the test program information of statistical service and calculating automatically in test process; Switching unsuccessful number of times and switching number of success of statistic record switched number of success divided by total number of times of switching, and obtains switching success rate.
The wherein calculating of service outage duration: Packet Service is according to packet sending speed (V), packet loss number (N), computing service break period (T), T=N/V.TDM (arrowband) business, tester is according to frame statistics and report a service disconnection number (N1) and error code number (N2), can be according to TDM tester statistics computing service break period; The service outage duration computing formula of E1 frame structure: T=N1/8K+N2/1984K wherein, the service outage duration computing formula of STM-1 frame structure: T=N1/8K+N2/149.76M.
Please refer to Fig. 2 is method second embodiment provided by the invention.
Present embodiment is increased in the test process, inquiry business and status of equipment, whether successful the whether success of inquiry simulated failure switch process, increase query script and make whole test process more perfect in test process, whole test process is more accurately with reliable.
Whole test process is finished by the test program that operates on the PC in the present embodiment.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device by the accept business state of data flow of the transmission of query facility state and control monitoring instrument, and the record monitored results, and calculates and switch the test performance index.
This embodiment comprises step:
E1) configuration service;
The configuration cascade device is striden the frame business.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device and record monitored results by the accept business state of data flow of the transmission of query facility state and control monitoring instrument.
E2) whether inquiry business is normal;
If business normally enters step e 3), if professional undesired this flow process that then finishes;
Inquiry business mainly is query steps E1 herein) in the configuration the cascade device business whether normal.
E3) empty the tester historical record;
E4) whether the inquiry spare module is normal;
If spare module normally then enters step e 5), if the undesired step e 8 that then enters); If the inquiry spare module is undesired, illustrate that then cascade device can't switch test herein, promptly can think and switch unsuccessfully, in record cascade device information, write down this information.
E5) issue the fault simulation order to cascade device, the main module failure of using of simulation;
Simulation is main mainly to be realized by the analog machine hardware fault with module failure, and test program issues the control of fault simulation control command by the OMC network interface and realizes.Need to prove that cascade device need realize controlled to device interior, is the primary demand of the measurability of cascade device design.For the test of cascade part, main implementation method has following several:
By the configuration that test program is rewritten register, turn-off the main optical module of using.(suppose: 0 expression light mouth is luminous normal for optical module signal condition value in the register that concrete rewriting has defined, 1 expression light mouth shutoff) comes simulated failure, change the register signal state value into 1 by original 0 during simulated failure, turn-off main optical module, the main module failure of using of simulation with module.
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x01; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
This order is defined as follows:
dopra?mem?modify<start?address><byte?1><byte?2>...<byte?n>
<start?address>:a?HEX?number?with?the?prefix′0x′
<byte?i>:the?new?data?from<start?address>,where:every?byte?must?be?a?HEXwithout?the?prefix′0x′n<=255
Also can be by rewriting the fault of register configuration simulation active clock.Main using by simulation active clock failure of chip turn-offed active clock output, the clock signal state value in the register that has defined (suppose: 1 expression clock chip output is normal, and 0 expression clock chip no-output or output are unstable)
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x00; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
Close main output with the module one-board power supply, be that the triggering of analog veneer hardware fault is switched, test program is by order mnt xiadian sn, and wherein sn is a slot number, the veneer of supposing present simulated failure can turn-off the power supply of 1 groove veneer by mnt xiadian 1 order at 1 groove.
Can also intend the main module failure of using by the cascade chip dies that resets in addition, test program is by joining chip as the reset stage of issuing orders: rst chipid; The chip id that input will reset number (in this id equipment pre-defined, id number that supposes cascade chip is 0), then input command rst 0 cascade chip that resets triggers cascade and switches.
E6) whether the inquiry fault simulation is normally finished;
If normally finish, then enter step e 7), if the undesired step e 8 that then enters) record cascade device information;
E7) triggering is active and standby switches with module;
Triggering was active and standby automatically after fault simulation was normally finished switches with module.
E8) record traffic information is or/and cascade device information;
Before and after the record trouble simulation and active and standbyly switch back business information and cascade device information with module, business information mainly is packet sending speed, the packet loss number that professional monitoring instrument shows in service exception alarm, the Packet Service, service disconnection number, error code number etc. in the TDM business, switch unsuccessful number of times if the cascade device information spinner is active and standby with module, switch number of success, the information such as interruption of unit exception alarm, equipment.
Get nowhere, only write down when spare module is undesired cascade device information in simulated failure, can write down cascade device information and business information simultaneously after the fault simulation success.
E9) draw and switch the test performance index.
The test performance index is switched in calculating according to the record result.
Switching test performance comprises: test is switched success rate, service outage duration, abnormality alarming etc.Wherein abnormality alarming is as the reference value of switching the test performance index, and those skilled in the art can judge that it is to switching the reference value of test performance according to experience.
The calculating of switching performance index, service outage duration are the test program information of statistical service and calculating automatically in test process; Switching unsuccessful number of times and switching number of success of statistic record switched number of success divided by total number of times of switching, and obtains switching success rate.
The wherein calculating of service outage duration: Packet Service is according to packet sending speed (V), packet loss number (N), computing service break period (T), T=N/V.TDM (arrowband) business, tester is according to frame statistics and report a service disconnection number (N1) and error code number (N2), can be according to TDM tester statistics computing service break period; The service outage duration computing formula of E1 frame structure: T=N1/8K+N2/1984K wherein, the service outage duration computing formula of STM-1 frame structure: T=N1/8K+N2/149.76M.
Seeing also Fig. 3 is method the 3rd embodiment provided by the invention
Present embodiment increases default maximum cycle, and repeatedly the circulating analog master carries out wider, the more test of the degree of depth with the fault of module to whole cascade device.
Whole test process is finished by the test program that operates on the PC in the present embodiment.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device by the accept business state of data flow of the transmission of query facility state and control monitoring instrument, and the record monitored results, and calculates and switch the test performance index.
This embodiment comprises step:
F1) configuration service;
The configuration cascade device is striden the frame business.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device and record monitored results by the accept business state of data flow of the transmission of query facility state and control monitoring instrument.
F2) whether inquiry business is normal;
If business normally enters step F 3), if professional undesired this flow process that then finishes;
Inquiry business mainly is query steps F1 herein) in the configuration the cascade device business whether normal.
F3) empty the tester historical record, the test loop maximum times is set;
Test loop number of times maximum is set according to the needs of testing maximum times is set, it is 100 times or 1000 times that maximum times for example can be set.
F4) whether inquiry business is normal;
If normally enter step F 5), if the undesired step F 9 that enters);
Herein inquiry business mainly inquire about active and standby switch end with module after, whether entering before the next test process inquiry, to switch the back business normal.
F5) whether the inquiry spare module is normal;
If normally then enter step F 6), if the undesired step F 9 that then enters); If the inquiry spare module is undesired, illustrate that then cascade device can't switch test herein, promptly can think and switch unsuccessfully, in record cascade device information, write down this information.
F6) issue the fault simulation order to cascade device, the main module failure of using of simulation;
Simulation is main mainly to be realized by the analog machine hardware fault with module failure, and test program issues the control of fault simulation control command by the OMC network interface and realizes.Need to prove that cascade device need realize controlled to device interior, is the primary demand of the measurability of cascade device design.For the test of cascade part, main implementation method has following several:
By the configuration that test program is rewritten register, turn-off the main optical module of using.(suppose: 0 expression light mouth is luminous normal for optical module signal condition value in the register that concrete rewriting has defined, 1 expression light mouth shutoff) comes simulated failure, change the register signal state value into 1 by original 0 during simulated failure, turn-off main optical module, the main module failure of using of simulation with module.
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x01; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
This order is defined as follows:
dopra?mem?modify?<start?address><byte?1><byte?2>...<byte?n>
<start?address>:a?HEX?number?with?the?prefix′0x′
<byte?i>:the?new?data?from<start?address>,where:every?byte?must?be?a?HEXwithout?the?prefix′0x′n<=255
Also can be by rewriting the fault of register configuration simulation active clock.Main using by simulation active clock failure of chip turn-offed active clock output, the clock signal state value in the register that has defined (suppose: 1 expression clock chip output is normal, and 0 expression clock chip no-output or output are unstable)
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x00; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
Close main output with the module one-board power supply, be that the triggering of analog veneer hardware fault is switched, test program is by order mnt xiadian sn, and wherein sn is a slot number, the veneer of supposing present simulated failure can turn-off the power supply of 1 groove veneer by mnt xiadian 1 order at 1 groove.
Can also intend the main module failure of using by the cascade chip dies that resets in addition, test program is by joining chip as the reset stage of issuing orders: rst chipid; The chip id that input will reset number (in this id equipment pre-defined, id number that supposes cascade chip is 0), then input command rst 0 cascade chip that resets triggers cascade and switches.
F7) whether the inquiry fault simulation is normally finished;
If normally finish, then enter step F 8), if the undesired step F 9 that then enters) record cascade device abnormal information.
F8) triggering is active and standby switches with module;
Triggering was active and standby automatically after fault simulation was normally finished switches with module.
F9) record traffic information and/or cascade device information;
Before and after the record trouble simulation and active and standbyly switch back service exception information and cascade device abnormal information with module, if packet sending speed, packet loss number that the alarm of service exception information spinner service exception, professional monitoring instrument show, service disconnection number, error code number etc., whether the cascade device abnormal information mainly is active and standbyly to switch successfully with module, the information such as interruption of unit exception alarm, equipment.
Get nowhere, only write down when spare module is undesired cascade device information in simulated failure, can write down cascade device information and business information simultaneously after the fault simulation success.
F10) cycle-index adds 1, relatively current cycle time and maximum times;
If current cycle time is equal to or greater than maximum cycle, then enter step F 11), if then return step F 4) less than maximum cycle.
F11) draw and switch the test performance index.
The test performance index is switched in calculating according to the record result.
Switching test performance comprises: test is switched success rate, service outage duration, abnormality alarming etc.Wherein abnormality alarming is as the reference value of switching the test performance index, and those skilled in the art can judge that it is to switching the reference value of test performance according to experience.
The calculating of switching performance index, service outage duration are the test program information of statistical service and calculating automatically in test process, calculate each parameter of using, are that the data of repeatedly test record are averaged; Switch the success rate index, after test repeatedly, statistics is switched record, record switch number of success divided by total number of times of switching, obtain switching success rate.
The wherein calculating of service outage duration: Packet Service is according to packet sending speed (V), packet loss number (N), computing service break period (T), T=N/V.TDM (arrowband) business, tester is according to frame statistics and report a service disconnection number (N1) and error code number (N2), can be according to TDM tester statistics computing service break period; The service outage duration computing formula of E1 frame structure: T=N1/8K+N2/1984K wherein, the service outage duration computing formula of STM-1 frame structure: T=N1/8K+N2/149.76M.
Seeing also Fig. 4 is method the 4th embodiment provided by the invention.
Among this embodiment, increase the step of resetting the cascade device business; If service disconnection phenomenon or device interrupt phenomenon in whole test process, occur, then need to reset the cascade device business, guarantee that business is normal before test beginning next time, equipment normally moves.
Whole test process is finished by the test program that operates on the PC in the present embodiment.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device by the accept business state of data flow of the transmission of query facility state and control monitoring instrument, and the record monitored results, and calculates and switch the test performance index.
This embodiment comprises step:
G1) configuration service;
The configuration cascade device is striden the frame business.
Test program moves on PC, uses the design of TCL (Tool Command Language) script, moves based on the TCL script interpreter.
PC is controlled grouping and TDM operational trials instrument respectively by network interface and serial ports, 37718 of TDM operational trials instrument at present commonly used such as network testing instrument Aglient, the ANT20 of WG and the MP1570 of An Li, the network testing instrument SmartBits of Packet Service tester such as NetCom company etc. support TCL control; PC carries out oam by the OMC network interface of cascade device main control frame to be measured to frame device, and cascade device to be measured all provides the control maintenance interface, can pass through this interface transmitting control commands, the operation information of query facility.Test program is monitored the operating state of cascade device and record monitored results by the accept business state of data flow of the transmission of query facility state and control monitoring instrument.
G2) whether inquiry business is normal;
If business normally enters step G3), if professional undesired this flow process that then finishes;
Inquiry business mainly is query steps G1 herein) in the configuration the cascade device business whether normal.
G3) empty the tester historical record, the test loop maximum times is set;
Test loop number of times maximum is set according to the needs of testing maximum times is set, it is 100 times or 1000 times that maximum times for example can be set.
G4) whether inquiry business is normal;
If normally enter step G5), if the undesired step G9 that enters);
Herein inquiry business mainly inquire about active and standby switch end with module after, whether entering before the next test process inquiry, to switch the back business normal.
G5) whether the inquiry spare module is normal;
If normally then enter step G6), if the undesired step G9 that then enters); If the inquiry spare module is undesired, illustrate that then cascade device can't switch test herein, promptly can think and switch unsuccessfully, in record cascade device information, write down this information.
G6) issue the fault simulation order to cascade device, the main module failure of using of simulation;
Simulation is main mainly to be realized by the analog machine hardware fault with module failure, and test program issues the control of fault simulation control command by the OMC network interface and realizes.Need to prove that cascade device need realize controlled to device interior, is the primary demand of the measurability of cascade device design.For the test of cascade part, main implementation method has following several:
By the configuration that test program is rewritten register, turn-off the main optical module of using.(suppose: 0 expression light mouth is luminous normal for optical module signal condition value in the register that concrete rewriting has defined, 1 expression light mouth shutoff) comes simulated failure, change the register signal state value into 1 by original 0 during simulated failure, turn-off main optical module, the main module failure of using of simulation with module.
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x01; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
This order is defined as follows:
dopra?mem?modify<start?address><byte?1><byte?2>...<byte?n>
<start?address>:a?HEX?number?with?the?prefix′0x′
<byte?i>:the?new?data?from<start?address>,where:every?byte?must?be?a?HEXwithout?the?prefix′0x′n<=255
Also can be by rewriting the fault of register configuration simulation active clock.Main using by simulation active clock failure of chip turn-offed active clock output, the clock signal state value in the register that has defined (suppose: 1 expression clock chip output is normal, and 0 expression clock chip no-output or output are unstable)
The order of test program rewriting register is as follows:
Do mem modify 0x13000007 0x00; (order of this rewriting register has different command modes at different products, revises the test program statement according to the internal command of different product, and this is a prior art, does not give unnecessary details at this.)
Close main output with the module one-board power supply, be that the triggering of analog veneer hardware fault is switched, test program is by order mnt xiadian sn, and wherein sn is a slot number, the veneer of supposing present simulated failure can turn-off the power supply of 1 groove veneer by mnt xiadian 1 order at 1 groove.
Can also intend the main module failure of using by the cascade chip dies that resets in addition, test program is by joining chip as the reset stage of issuing orders: rst chipid; The chip id that input will reset number (pre-defined in this id equipment, id number that supposes cascade chip is 0), input command rst 0 cascade chip that resets triggers cascade and switches.
G7) whether the inquiry fault simulation is normally finished;
If normally finish, then enter step G8), if the undesired step G9 that then enters) record cascade device abnormal information.
G8) triggering is active and standby switches with module;
Triggering was active and standby automatically after fault simulation was normally finished switches with module.
G9) record traffic information and/or cascade device information;
Before and after the record trouble simulation and active and standbyly switch back service exception information and cascade device abnormal information with module, if packet sending speed, packet loss number that the alarm of service exception information spinner service exception, professional monitoring instrument show, service disconnection number, error code number etc., whether the cascade device abnormal information mainly is active and standbyly to switch successfully with module, the information such as interruption of unit exception alarm, equipment.
Get nowhere, only write down when spare module is undesired cascade device information in simulated failure, can write down cascade device information and business information simultaneously after the fault simulation success.
G10) cycle-index adds 1, relatively current cycle time and maximum times;
If current cycle time is equal to or greater than maximum cycle, then enter step G12), if then enter step G11) less than maximum cycle.
G11) configuration cascade appliance services;
Need to reconfigure the cascade device business under the situation that this step occurs interrupting at business or cascade device, guarantee the normal of business and cascade device before test next time; Enter next test after the configuration cascade appliance services, enter step G4);
G12) draw and switch the test performance index.
The test performance index is switched in calculating according to the record result.
Switching test performance comprises: test is switched success rate, service outage duration, abnormality alarming etc.Wherein abnormality alarming is as the reference value of switching the test performance index, and those skilled in the art can judge that it is to switching the reference value of test performance according to experience.
The calculating of switching performance index, service outage duration are the test program information of statistical service and calculating automatically in test process, calculate each parameter of using, are that the data of repeatedly test record are averaged; Switch the success rate index, after test repeatedly, statistics is switched record, record switch number of success divided by total number of times of switching, obtain switching success rate.
The wherein calculating of service outage duration: Packet Service is according to packet sending speed (V), packet loss number (N), computing service break period (T), T=N/V.TDM (arrowband) business, tester is according to frame statistics and report a service disconnection number (N1) and error code number (N2), can be according to TDM tester statistics computing service break period; The service outage duration computing formula of E1 frame structure: T=N1/8K+N2/1984K wherein, the service outage duration computing formula of STM-1 frame structure: T=N1/8K+N2/149.76M.
Seeing also Fig. 5 is first embodiment of system provided by the invention.As shown in the figure: comprise
Business configuration unit 100 is used to dispose the cascade appliance services;
Fault Control unit 200 is used to issue the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
Record cell 300 is used for record and switches the result, before and after the record trouble simulation and active and standbyly switch back business information and/or cascade device information with module;
Computing unit 400 is used for according to monitored results, draws to switch the test performance index.
Seeing also Fig. 6 is second embodiment of system provided by the invention, as shown in the figure, comprising:
Business configuration unit 100 is used to dispose the cascade appliance services;
Fault Control unit 200 is used to issue the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
Record cell 300 is used for record and switches the result, before and after the record trouble simulation and active and standbyly switch back business information and/or cascade device information with module;
Computing unit 400 is used for according to monitored results, draws to switch the test performance index;
Query unit 500 is used to inquire about cascade equipment fault simulation front and back business information or/and cascade device information.
Seeing also Fig. 7 is the 3rd embodiment of system provided by the invention, as shown in the figure, comprising:
Business configuration unit 100 is used to dispose the cascade appliance services;
Fault Control unit 200 is used to issue the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
Record cell 300 is used for record and switches the result, before and after the record trouble simulation and active and standbyly switch back business information and/or cascade device information with module;
Computing unit 400 is used for according to monitored results, draws to switch the test performance index;
Query unit 500 is used to inquire about cascade equipment fault simulation front and back business information or/and cascade device information.
Cycle-index is provided with unit 600, be used to empty the tester historical record, test loop number of times maximum is set, and accumulation loop number of times, compare current cycle time and maximum cycle, if current cycle time is more than or equal to maximum cycle, then the Notification Record unit will write down the result and feed back to computing unit.
More than the method and system of a kind of testing reliability of cascade device provided by the present invention are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (13)

1. the method for testing of a reliability of cascade device is characterized in that, comprises step:
1) the business configuration configuration of cells cascade device business of testing reliability of cascade device system;
2) the Fault Control unit of testing reliability of cascade device system issues the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
3) before and after the recording unit records fault simulation of testing reliability of cascade device system and active and standbyly switch the back business information or/and cascade device information with module;
4) computing unit of testing reliability of cascade device system draws according to the record result and switches the test performance index.
2. the method for testing of reliability of cascade device according to claim 1 is characterized in that, described step 2 after the described step 1)) comprise before:
11) whether inquiry business is normal, if business normally enters step 12), if professional undesired this flow process that then finishes;
12) empty the tester historical record;
13) whether the inquiry spare module is normal, if normally then enter step 2), if the undesired step 3) that then enters.
3. the method for testing of reliability of cascade device according to claim 2 is characterized in that, described step 12) also comprises: the test loop maximum times is set;
Further after the described step 12):
121) whether inquiry business is normal, if normally enter step 13), if the undesired step 3) that enters;
Comprise after the described step 3):
31) cycle-index adds 1, if current cycle time is equal to or greater than maximum cycle, then enters step 4), if current cycle time is then returned step 121 less than maximum cycle).
4. the method for testing of reliability of cascade device according to claim 3 is characterized in that, described step 2) the simulation master is with after the module failure, and active and standby the switching with module of described triggering further comprises before:
21) whether the inquiry fault simulation is normally finished, if normally finish, then triggering is active and standby automatically switches and execution in step 3 with module), if the undesired step 3) that then enters.
5. the method for testing of reliability of cascade device according to claim 2 is characterized in that, described step 12) also comprises: the test loop maximum times is set;
Further after the described step 12):
121) whether inquiry business is normal, if normally enter step 13), if the undesired step 3) that enters;
Described step 2) simulation is main with after the module failure, and active and standby the switching with module of described triggering further comprises before:
21) whether the inquiry fault simulation is normally finished, if normally finish, then triggering is active and standby automatically switches and execution in step 3 with module), if the undesired step 3) that then enters;
Comprise after the described step 3):
31) cycle-index adds 1, if current cycle time is equal to or greater than maximum cycle, then enters step 4); If current cycle time is less than maximum cycle, current cascade device needs heavy new configuration service, then enters step 32);
32) configuration cascade appliance services enters step 121).
6. according to the method for testing of claim 1,2,3,4 or 5 described reliability of cascade device, it is characterized in that, described simulation is main with the module failure method to be: issue fault simulation order rewriting register and turn-off the transmission optical module or turn-off clock output, or issue the fault simulation order shutoff one-board power supply output or the cascade chip that resets.
7. the method for testing of reliability of cascade device according to claim 6 is characterized in that, switches the test performance index in the described step 4) to be: switch success rate or/and service outage duration.
8. the method for testing of reliability of cascade device according to claim 7 is characterized in that, switches number of success and the total merchant who switches number of times and obtains switching success rate.
9. the method for testing of reliability of cascade device according to claim 8, it is characterized in that, Packet Service obtains service outage duration by the merchant who calculates packet loss number and packet sending speed, in the narrow band service: the merchant that the merchant of E1 frame structure by computing service interrupt number and 8000 adds error code number and 1984000 obtains service outage duration, and the merchant that the merchant of STM-1 frame structure by service disconnection number and 8000 adds error code number and 149760000 obtains service outage duration.
10. the method for testing of reliability of cascade device according to claim 9 is characterized in that, the used test program of described testing reliability of cascade device method uses the design of TCL script, moves based on the TCL script interpreter.
11. the system of a testing reliability of cascade device is characterized in that, comprising:
The business configuration unit is used to dispose the cascade appliance services;
The Fault Control unit is used to issue the fault simulation order to cascade device, and simulation is main uses module failure, triggers active and standbyly to switch with module;
Record cell is used for record and switches the result, before and after the record trouble simulation and active and standbyly switch back business information and/or cascade device information with module;
Computing unit is used for drawing and switching the test performance index according to the record result.
12. the system of testing reliability of cascade device according to claim 11 is characterized in that, described system also comprises:
Query unit is used to inquire about cascade equipment fault simulation front and back business information or/and cascade device information.
13. the system of testing reliability of cascade device according to claim 11 is characterized in that, described system also comprises:
Cycle-index is provided with the unit, be used to empty the tester historical record, test loop number of times maximum is set, and accumulation loop number of times, compare current cycle time and maximum cycle, if current cycle time is more than or equal to maximum cycle, then the Notification Record unit will write down the result and feed back to computing unit.
CNB2006100903901A 2006-07-05 2006-07-05 Method for testing reliability of cascade device and system therefor Expired - Fee Related CN100396030C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100903901A CN100396030C (en) 2006-07-05 2006-07-05 Method for testing reliability of cascade device and system therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100903901A CN100396030C (en) 2006-07-05 2006-07-05 Method for testing reliability of cascade device and system therefor

Publications (2)

Publication Number Publication Date
CN1878098A CN1878098A (en) 2006-12-13
CN100396030C true CN100396030C (en) 2008-06-18

Family

ID=37510404

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100903901A Expired - Fee Related CN100396030C (en) 2006-07-05 2006-07-05 Method for testing reliability of cascade device and system therefor

Country Status (1)

Country Link
CN (1) CN100396030C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346527A (en) * 2014-10-13 2015-02-11 中国船舶重工集团公司第七二六研究所 Equipment system testability evaluation calculating method

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036737B (en) * 2012-12-07 2015-08-12 无锡美森微电子科技有限公司 The self-test method of multi-node system on a kind of sheet of extensive network-on-chip
CN103001831B (en) * 2012-12-19 2016-03-09 迈普通信技术股份有限公司 A kind of system and method testing many activation detection perform
CN106452968A (en) * 2016-10-24 2017-02-22 郑州云海信息技术有限公司 Accelerated detection method for reliability of PCIE (Peripheral Component Interconnect Express) equipment
CN107294594B (en) * 2017-07-03 2023-11-14 博为科技有限公司 Passive optical network device, switching method and system
CN108134689B (en) * 2017-12-11 2021-07-23 杭州迪普科技股份有限公司 Method and device for checking faults of cascade interface inside frame type equipment
CN108763039B (en) * 2018-04-02 2021-09-21 创新先进技术有限公司 Service fault simulation method, device and equipment
CN111638967A (en) * 2020-06-01 2020-09-08 杭州鸿雁电器有限公司 Scene processing method and device, storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4875209A (en) * 1988-04-04 1989-10-17 Raytheon Company Transient and intermittent fault insertion
WO2001061706A1 (en) * 2000-02-18 2001-08-23 Invensys Systems, Inc. Fault-tolerant data transfer
CN1619990A (en) * 2003-11-17 2005-05-25 日立通讯技术株式会社 Radio substation testing method and testing apparatus
CN1713599A (en) * 2004-06-22 2005-12-28 中兴通讯股份有限公司 Multi-mouth switching device and testing method for network exchanger

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4875209A (en) * 1988-04-04 1989-10-17 Raytheon Company Transient and intermittent fault insertion
WO2001061706A1 (en) * 2000-02-18 2001-08-23 Invensys Systems, Inc. Fault-tolerant data transfer
CN1619990A (en) * 2003-11-17 2005-05-25 日立通讯技术株式会社 Radio substation testing method and testing apparatus
CN1713599A (en) * 2004-06-22 2005-12-28 中兴通讯股份有限公司 Multi-mouth switching device and testing method for network exchanger

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346527A (en) * 2014-10-13 2015-02-11 中国船舶重工集团公司第七二六研究所 Equipment system testability evaluation calculating method

Also Published As

Publication number Publication date
CN1878098A (en) 2006-12-13

Similar Documents

Publication Publication Date Title
CN100396030C (en) Method for testing reliability of cascade device and system therefor
JP7434417B2 (en) Topology processing method, device, and system
CN103176084B (en) Intelligent substation simulation system in panoramic replace mode and integration testing method for intelligent substation simulation system
CN102571198B (en) System and method for carrying out EPON (Ethemet-based passive optical network) performance test based on emulational ONU (optical network unit)
CN109873497B (en) Power distribution main station and terminal automatic joint debugging acceptance method based on intelligent acceptance device
CN100546262C (en) A kind of broadband aviation electronic bus testing apparatus and method of operation thereof
CN108923849B (en) Batch test method for high-speed parallel multi-channel photoelectric transceiving modules
CN106341183A (en) Method for monitoring optical module by netmanager software
CN105591770A (en) Determination method and apparatus for fault type in PON
CN102193056A (en) Test apparatus and test method
CN105785170B (en) A kind of data flow panorama display device and method towards intelligent substation
CN108802517A (en) A kind of test method and system of site protective device
CN105629926A (en) Event generation management for an industrial controller
CN110943881A (en) Test system and method based on in-situ protection industrial debugging
US20080159506A1 (en) Network element provisioning and event simulation in a communications network
CN107565690B (en) Rapid replacement method for transformer substation measurement and control device under fault condition
CN103376777B (en) Testing method of Modbus communication interface of controller and upper computer
CN114430366A (en) Information acquisition application issuing method, related device and computer program product
CN109815073A (en) A kind of test method of the High Speed Serial SRIO based on PXI platform
CN201072431Y (en) Broadband aviation electronic bus testing device
CN117312067A (en) Network card debugging system, method, equipment and storage medium
CN109870834A (en) A kind of liquid-crystalline glasses power-up detection system
CN115203287A (en) Remote checking method and system for version of relay protection device
CN108599372A (en) A kind of novel distribution network automatic measure control terminal
CN103647760A (en) Manufacturing message specification (MMS) communication platform of intelligent substation digital protection device and access method of manufacturing message specification (MMS) communication platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080618

Termination date: 20150705

EXPY Termination of patent right or utility model