CN105553745B - A kind of automated testing method and device of the networking of communication equipment complexity - Google Patents

A kind of automated testing method and device of the networking of communication equipment complexity Download PDF

Info

Publication number
CN105553745B
CN105553745B CN201610007709.3A CN201610007709A CN105553745B CN 105553745 B CN105553745 B CN 105553745B CN 201610007709 A CN201610007709 A CN 201610007709A CN 105553745 B CN105553745 B CN 105553745B
Authority
CN
China
Prior art keywords
node
accident
business
code
unit
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.)
Active
Application number
CN201610007709.3A
Other languages
Chinese (zh)
Other versions
CN105553745A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201610007709.3A priority Critical patent/CN105553745B/en
Publication of CN105553745A publication Critical patent/CN105553745A/en
Application granted granted Critical
Publication of CN105553745B publication Critical patent/CN105553745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Abstract

The invention discloses a kind of automated testing method and device of the networking of communication equipment complexity, which includes:Node determination unit, determines node total number;Gather determination unit, determines the set A for allowing that n event successively occurs;Acquiring unit obtains the first, second accident and the first and second node by random number generator;Execution unit executes the code of the first, second accident on the first, second node;Judging unit, the business that judges whether there is occur to interrupt, restore normal, and judge to execute the code of the first accident in first node and execute the code of the second accident whether in set A in second node;Unit is cancelled, the first, second accident is cancelled on the first, second node;Failure determination unit, according to the result of judging unit determine communication equipment whether failure.The present invention can maximize the chance event in the existing network operation of simulation, verify the q&r of communication equipment, greatly reduce duplicated code writes work.

Description

A kind of automated testing method and device of the networking of communication equipment complexity
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of automated testing method of communication equipment complexity networking and Device.
Background technology
The shortcomings that in order to overcome manual test, communication equipment widely introduce automatization testing technique, and automation is surveyed Examination technology needs to carry out script compilation work, in the functional verification to communication equipment complexity networking in the preparation of early period Need repeatedly the priority of a variety of accidents of simulation that the influence to communication equipment occurs in test, when these accidents occur Influence to business is divided into two kinds of situations:Hit and interruption, and after cancelling accident, business can be restored.Existing communication The functional verification test method of equipment complexity networking is according to each light path, single-deck event between certain each website of rule sequential testing Hinder the influence to business, inevitably results in test case in this way and will appear the code largely repeated, meanwhile, how first accident It is to cause test result that there is prodigious one-sidedness by the previous work accumulation of code writers afterwards.
Invention content
The technical problem to be solved by the present invention is to the functional verification test methods of existing communication equipment complexity networking to lead Test case is caused the problem of a large amount of duplicated codes occur.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is to provide a kind of communication equipment complexity networking Automated testing method, include the following steps:
Step S1:Under the premise of known event sum, determine that node is total according to the topology diagram of complicated networking Number;
Step S2:After configuring business in complicated networking, being determined according to safeguard rule and topology diagram allows successively The set A that n event occurs, for example, n=2;
Step S3:In all business all normal operations, the first segment in node total number is obtained by random number generator Point and second node and the first accident in accident sum and the second accident;
Step S4:The code of the first accident is executed on first node, and it is prominent that second is then executed on second node The code of hair event;
Step S5:It judges whether there is business and hit or interruption occurs, if so, going to step S6;Otherwise, S9 is gone to step;
Step S6:Judge to execute the code of the first accident on first node and execute second on second node to dash forward Whether the code of hair event is in set A, if so, turning S11;Otherwise, S7 is gone to step;
Step S7:The first accident and the second accident are cancelled on first node and second node respectively, turns step Rapid S8;
Step S8:Judge whether hit or the business of interruption occurs restores normal, if so, going to step S3;Otherwise, turn step Rapid S11;
Step S9:The first accident and the second accident are cancelled on first node and second node respectively, turns step Rapid S10;
Step S10:Business is judged whether there is again, hit or interruption occurs, if so, going to step S11;Otherwise, it goes to step S3;
Step S11:Communication equipment breaks down.
In the above-mentioned technical solutions, the complexity of network is adjusted by adjusting the value of n, the more big then network of value of n Complexity it is bigger, the determination of the set A is more cumbersome.
In the above-mentioned technical solutions, the random number generator uses random function.
In the above-mentioned technical solutions, the code of the accident in the accident sum includes:Primary fiber break, Spare fibre interruption, power-off, main control unit failure and main control unit active-standby switch.
In the above-mentioned technical solutions, the business includes protection business and unprotect business.
The present invention also provides a kind of automatic test devices of communication equipment complexity networking, including:
Node determination unit determines under the premise of known event sum according to the topology diagram of complicated networking Node total number;
Gather determination unit, after configuring business in complicated networking, is determined and permitted according to safeguard rule and topology diagram Perhaps the set A that n event successively occurs, for example, n=2;
Acquiring unit, by random number generator obtain node total number in first node and second node and burst thing The first accident in part sum and the second accident;
Execution unit executes the code of the first accident on first node, second is then executed on second node The code of accident;
Judging unit, hit occurs for the business that judges whether there is or whether the business of interruption, generation hit or interruption is restored just Often, and judge to execute the code of the first accident on first node and execute the second accident on second node Whether code is in set A;
Unit is cancelled, cancels the first accident and the second accident on first node and second node respectively;
Failure determination unit, according to the judging unit as a result, when there is business that hit occurs or interrupts, if the The code of the first accident is executed on one node and the code of the second accident is executed on second node in set A, Then communication equipment breaks down, if not in set A, executes the revocation unit, if the business of hit or interruption occurs Do not restore normal, then communication equipment breaks down;When not having business hit or interrupting, the revocation unit is executed, If still there is business that hit or interruption occurs, communication equipment breaks down.
In the above-mentioned technical solutions, further include adjustment unit, the complexity of network is adjusted by adjusting the value of n, n The more big then network of value complexity it is bigger, the determination of the set A is more cumbersome.
In the above-mentioned technical solutions, the random number generator in the acquiring unit uses random function.
In the above-mentioned technical solutions, the code of the accident in the accident sum includes:Primary fiber break, Spare fibre interruption, power-off, main control unit failure and main control unit active-standby switch.
In the above-mentioned technical solutions, the business includes protection business and unprotect business.
The present invention determines that the node of generation accident and accident are total in node total number using random number generator Accident in number can maximumlly simulate the chance event in existing network operation, verify the q&r of communication equipment, Greatly reduce duplicated code writes work.
Description of the drawings
Fig. 1 is a kind of automated testing method flow chart of communication equipment complexity networking provided by the invention;
Fig. 2 is the topology diagram of complicated networking provided by the invention;
Fig. 3 is the set of accident provided by the invention;
Fig. 4 is a kind of automatic test device structural schematic diagram of communication equipment complexity networking provided by the invention;
Fig. 5 is test connection diagram provided by the invention.
Specific implementation mode
The automated testing method and device of communication equipment complexity networking provided by the invention, in opening up for complicated networking It flutters in scene, is accumulated according to code, obtain the code segment of accident, sum is Z, and the business and protected mode in node are matched After the completion of setting, obtaining one allows the event sets successively occurred, if the event in this event sets successively occurs, industry Business is only switched;If the event outside this event sets successively occurs, business is interrupted, but is disappeared in event The business interrupted afterwards can be restored.The first node Y1 and second node Y2 in node total number Y are determined using random function And the first accident Z1 in accident sum Z and the second accident Z2, it is prominent that first is executed on first node Y1 Then the code of hair event Z1 executes the code of the second accident Z2 on second node Y2, if the first accident Z1 With the second accident Z2 in event sets, then business can only switch;If the first accident Z1 and second is prominent Hair event Z2 is not in event sets, then hit or interruption can occur for business, once event disappearance, generation hit or interruption Business can be restored.The node and event that generation accident is determined using random function, can maximumlly be simulated and be saved in existing net The operating condition of point, and whole process is automated completion, and also maximumlly reduce duplicated code writes work.
The present invention is described in detail with specific implementation mode with reference to the accompanying drawings of the specification.
An embodiment of the present invention provides a kind of automated testing methods of communication equipment complexity networking, as shown in Figure 1, the party Method includes the following steps:
Step S101, it under the premise of known event sum Z, is determined according to the topology diagram of complicated networking complicated Node total number Y in networking.
Wherein, the topology diagram of complicated networking is as shown in Figure 2;The set of accident is as shown in figure 3, accident is total The code of accident in number Z includes:Primary fiber break, spare fibre interruption, power-off, main control unit failure and main control unit Active-standby switch etc..
Step S102, in complicated networking, configuration meets the various protection business and unprotect business of requirement of engineering.
Step S103, it after the completion of business configuration, according to safeguard rule (rule defined in G.8131 and G.8132) and opens up It flutters structure chart and determines the set A for allowing that n event successively occurs, for example, n=2.
Wherein, the complexity of network can be adjusted by adjusting the value of n, the complexity of the more big then network of value of n more Greatly, meanwhile, the determination of set A is more cumbersome, such as can enumerate permission according to safeguard rule and topology diagram and successively occur 2 The set A of a event allows the set B that 3 events successively occur, and allows the set C etc. that 4 events successively occur.
Step S104, by all business of meter check, all whether normal operation goes to step S105 if normal operation; Otherwise, S114 is gone to step.
Step S105, it according to the total number of events n (such as n=2) for allowing successively to occur in complicated networking, is given birth to using random number The first accident in first node Y1 and second node Y2 and accident sum Z in acquisition node total number of growing up to be a useful person Y Z1 and the second accident Z2.
Wherein, random number generator uses random function.
Step S106, the code that the first accident Z1 is executed on first node Y1, then holds on second node Y2 The code of the second accident of row Z2.
Step S107, it judges whether there is business and hit or interruption occurs, if so, going to step S108;Otherwise, it goes to step S111。
Step S108, judge to execute the code of the first accident Z1 on first node Y1 and be held on second node Y2 Whether the code of the second accident of row Z2 is in set A, if so, going to step S113;Otherwise, S109 is gone to step.
Step S109, the burst things of the first accident Z1 and second are cancelled on first node Y1 and second node Y2 respectively Part Z2, goes to step S110.
Step S110, judge whether hit or the business of interruption occurs restores normal, if so, going to step S105;Otherwise, Go to step S113.
Step S111, the burst things of the first accident Z1 and second are cancelled on first node Y1 and second node Y2 respectively Part Z2, goes to step S112.
Step S112, business is judged whether there is again, hit or interruption occurs, if so, going to step S113;Otherwise, turn step Rapid S105.
Step S113, communication equipment breaks down, and goes to step S114.
Step S114, terminate.
The present invention determines that the node of generation accident and accident are total in node total number using random number generator Accident in number can maximumlly simulate the chance event in existing network operation, verify the q&r of communication equipment, Greatly reduce duplicated code writes work.
The embodiment of the present invention additionally provides a kind of automatic test device of communication equipment complexity networking, as shown in figure 4, packet It includes:
Node determination unit 10, under the premise of known event sum, the topology diagram according to complicated networking is true Determine node total number;
Gather determination unit 20, after configuring business in complicated networking, is determined according to safeguard rule and topology diagram Allow the set A that n event successively occurs, for example, n=2;
Acquiring unit 30 obtains first node and second node and burst in node total number by random number generator The first accident in total number of events and the second accident;
Execution unit 40 executes the code of the first accident on first node, and is then executed on second node The code of two accidents;
Judging unit 50, hit occurs for the business that judges whether there is or whether the business of interruption, generation hit or interruption is restored Normally, and judge to execute the code of the first accident on first node and execute the second accident on second node Code whether in set A;
Unit 60 is cancelled, cancels the first accident and the second accident on first node and second node respectively;
Failure determination unit 70, according to the judging unit 50 as a result, have business occur hit or interrupt when, if The code of the first accident is executed on first node and the code of the second accident is executed on second node in set A In, then communication equipment breaks down, if not in set A, executes the revocation unit 60, if generation hit or interruption Business does not restore normal, then communication equipment breaks down;When not having business hit or interrupting, it is single to execute the revocation Member 60, if still there is business that hit or interruption occurs, communication equipment breaks down.
Test connection diagram as shown in figure 5, automatic test device and test equipment (communication equipment) connection not office Be limited to (automatic test device shared communication channel) in band, band outer (except automatic test device is independently of communication channel) or The interior Hybrid connections with outside band of band.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn that the knots made under the inspiration of the present invention Structure changes, and the technical schemes that are same or similar to the present invention are each fallen within protection scope of the present invention.

Claims (10)

1. a kind of automated testing method of communication equipment complexity networking, which is characterized in that include the following steps:
Step S1:Under the premise of known event sum, node total number is determined according to the topology diagram of complicated networking;
Step S2:After configuring business in complicated networking, priority is allowed according to safeguard rule and topology diagram determination The set A of event, the number for allowing that event successively occurs is n, n >=2;
Step S3:In all business all normal operations, by random number generator obtain node total number in first node and The first accident in second node and accident sum and the second accident;
Step S4:The code of the first accident is executed on first node, and the second burst thing is then executed on second node The code of part;
Step S5:It judges whether there is business and hit or interruption occurs, if so, going to step S6;Otherwise, S9 is gone to step;
Step S6:Judge to execute the code of the first accident on first node and executes the second burst thing on second node Whether the code of part is in set A, if so, turning S11;Otherwise, S7 is gone to step;
Step S7:The first accident and the second accident are cancelled on first node and second node respectively, goes to step S8;
Step S8:Judge whether hit or the business of interruption occurs restores normal, if so, going to step S3;Otherwise, it goes to step S11;
Step S9:The first accident and the second accident are cancelled on first node and second node respectively, is gone to step S10;
Step S10:Business is judged whether there is again, hit or interruption occurs, if so, going to step S11;Otherwise, S3 is gone to step;
Step S11:Communication equipment breaks down.
2. the method as described in claim 1, which is characterized in that be adjusted to the complexity of network by adjusting the value of n, n The more big then network of value complexity it is bigger, the determination of the set A is more cumbersome.
3. the method as described in claim 1, which is characterized in that the random number generator uses random function.
4. the method as described in claim 1, which is characterized in that the code packet of the accident in the accident sum It includes:Primary fiber break, spare fibre interruption, power-off, main control unit failure and main control unit active-standby switch.
5. the method as described in claim 1, which is characterized in that the business includes protection business and unprotect business.
6. a kind of automatic test device of communication equipment complexity networking, which is characterized in that including:
Node determination unit determines node under the premise of known event sum according to the topology diagram of complicated networking Sum;
Gather determination unit, after configuring business in complicated networking, being determined according to safeguard rule and topology diagram allows first The set A that event occurs afterwards, the number for allowing that event successively occurs is n, n >=2;
Acquiring unit, by random number generator obtain node total number in first node and second node and accident it is total The first accident in number and the second accident;
Execution unit executes the code of the first accident on first node, and the second burst is then executed on second node The code of event;
Judging unit, hit occurs for the business that judges whether there is or whether the business of interruption, generation hit or interruption restores normal, with And judge the code for executing the code of the first accident on first node and executing the second accident on second node Whether in set A;
Unit is cancelled, cancels the first accident and the second accident on first node and second node respectively;
Failure determination unit, according to the judging unit as a result, have business occur hit or interrupt when, if in first segment The code of the first accident is executed on point and the second accident is executed on second node code in set A, then lead to Believe that equipment breaks down, if not in set A, execute the revocation unit, if the business that hit or interruption occurs does not have Restore normal, then communication equipment breaks down;When not having business hit or interrupting, the revocation unit is executed, if also It is to have business that hit or interruption occurs, then communication equipment breaks down.
7. device as claimed in claim 6, which is characterized in that further include adjustment unit, answered network by adjusting the value of n Miscellaneous degree is adjusted, and the complexity of the more big then network of value of n is bigger, and the determination of the set A is more cumbersome.
8. device as claimed in claim 6, which is characterized in that the random number generator in the acquiring unit use with Machine function.
9. device as claimed in claim 6, which is characterized in that the code packet of the accident in the accident sum It includes:Primary fiber break, spare fibre interruption, power-off, main control unit failure and main control unit active-standby switch.
10. device as claimed in claim 6, which is characterized in that the business includes protection business and unprotect business.
CN201610007709.3A 2016-01-07 2016-01-07 A kind of automated testing method and device of the networking of communication equipment complexity Active CN105553745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610007709.3A CN105553745B (en) 2016-01-07 2016-01-07 A kind of automated testing method and device of the networking of communication equipment complexity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610007709.3A CN105553745B (en) 2016-01-07 2016-01-07 A kind of automated testing method and device of the networking of communication equipment complexity

Publications (2)

Publication Number Publication Date
CN105553745A CN105553745A (en) 2016-05-04
CN105553745B true CN105553745B (en) 2018-07-24

Family

ID=55832685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610007709.3A Active CN105553745B (en) 2016-01-07 2016-01-07 A kind of automated testing method and device of the networking of communication equipment complexity

Country Status (1)

Country Link
CN (1) CN105553745B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5923873A (en) * 1995-12-28 1999-07-13 Lucent Technologies Inc. Method for determining server staffing in management of finite server queueing systems
CN1472652A (en) * 2003-07-17 2004-02-04 中国科学院计算技术研究所 Software breakdown testing method for dynamic resouce management
CN1705280A (en) * 2004-05-26 2005-12-07 华为技术有限公司 Method and system for implementing white box virtual network element in optical transmission network management system
CN101901186A (en) * 2010-07-08 2010-12-01 西北工业大学 Embedded system reliability analysis and evaluation method
CN102393833A (en) * 2011-10-17 2012-03-28 哈尔滨工业大学 Component software reliability analysis method capable of considering limitation of debugging resources based on HFSQM (Hybrid Finite Server Queuing Model)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5923873A (en) * 1995-12-28 1999-07-13 Lucent Technologies Inc. Method for determining server staffing in management of finite server queueing systems
CN1472652A (en) * 2003-07-17 2004-02-04 中国科学院计算技术研究所 Software breakdown testing method for dynamic resouce management
CN1705280A (en) * 2004-05-26 2005-12-07 华为技术有限公司 Method and system for implementing white box virtual network element in optical transmission network management system
CN101901186A (en) * 2010-07-08 2010-12-01 西北工业大学 Embedded system reliability analysis and evaluation method
CN102393833A (en) * 2011-10-17 2012-03-28 哈尔滨工业大学 Component software reliability analysis method capable of considering limitation of debugging resources based on HFSQM (Hybrid Finite Server Queuing Model)

Also Published As

Publication number Publication date
CN105553745A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
KR100686664B1 (en) Method and device for mutual monitering of controll unit
KR101581403B1 (en) Method for monitoring at least two microcontrollers
CN106028299A (en) Method and system for selecting short message transmitting channel
CN106354124A (en) Self diagnosis system and method based on channels of FPGA analog input device
US20150082096A1 (en) Method and apparatus for fault detection n a controller area network
CN107632590B (en) A kind of bottom event sort method priority-based
CN107547572A (en) A kind of CAN communication means based on pseudo random number
CN106682370A (en) Simulation verification system
CN105929270A (en) Fault injection method and device
WO2011003121A1 (en) System-on-chip fault identification
CN105812170B (en) Failure analysis methods and device based on data center
CN106712295A (en) Logical power distribution terminal based on distributed power distribution automation system and communication method thereof
CN106789193A (en) A kind of cluster ballot referee method and system
CN104104542A (en) Real-time intelligent debugging method based on RS485
CN112562299A (en) Distribution network automation terminal distributed test method
CN105553745B (en) A kind of automated testing method and device of the networking of communication equipment complexity
CN108958225A (en) Npp safety grade DCS platform intergration test device
CN102281103B (en) Optical network multi-fault recovering method based on fuzzy set calculation
US10613963B2 (en) Intelligent packet analyzer circuits, systems, and methods
CN111446015A (en) Nuclear power station reactor control rod group test method, device, equipment and medium
CN110519107A (en) Metropolitan Area Network (MAN) circuit expansion method and device
CN107924722A (en) Nuclear plant safety management system
CN110768871A (en) Test method and system for automatically counting data transmission correctness of DCS (distributed control system)
CN109167691B (en) Network redundancy design method of weapon control system
CN110213093B (en) Method and system for reporting node fault auxiliary diagnosis based on airport internet of things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant