Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide the preset routings of multipath based on ASON
Automated testing method and system carry out automatic test in conjunction with network management, error analyzer and photoswitch, manual test are avoided to deposit
Test leakage risk, improve the accuracy and testing efficiency of test.
To achieve the above objectives, the present invention takes a kind of preset routing automated testing method of the multipath based on ASON,
Comprising steps of
Photoswitch is disposed between the adjacent network element of any two in network topology, setting control machine controls photoswitch respectively, misses
Code analyzer and network management simultaneously initialize;
The control machine obtains testing process and test relevant information by external file, and controls the initial work of network management configuration
Make routing and automatically configures a plurality of preset routing;
By the photoswitch analog line failure generate routing switch, error analyzer carry out business monitoring, network management into
Row route monitoring, and testing process monitoring and research and application result are carried out by control machine.
Based on the above technical solution, the test relevant information includes expected results, expected routing, need to configure
A plurality of preset routing, the expected results are routing switch standard time or service error, and the control machine passes through described basic
Information and external file content analyze the initialization routing iinformation and preset routing iinformation needed to configure.
Based on the above technical solution, when the control machine control network management configuration initialization routing, network management is institute
Initialization route assignment ID or circuit name are stated, and returns to the storage of control machine;The control machine control network management is based on initial work
Make the ID routed or circuit name, automatically configures a plurality of preset routing;After the completion of a plurality of preset routing configuration, initialization road
By the upper a plurality of preset routing iinformation of carrying, and a plurality of preset routing according to priority arranges.
Based on the above technical solution, the initialization procedure of the photoswitch includes: that control machine obtains network topology
Essential information, and at least one channel in each photoswitch is defined as a breakpoint, the company of being initially set to of breakpoint
Logical state.
Based on the above technical solution, the control machine, which carries out the premise of testing process monitoring, is: normal in business
When, the control machine obtains testing process according to external file, and is controlled by the on-off that photoswitch carries out breakpoint, generates routing
It switches;Wherein, the on-off control of the breakpoint includes single-break on-off and multibreak on-off.
Based on the above technical solution, the control machine carries out in testing process monitoring process, falls when generating routing
Change rear business it is abnormal when, and be more than the pre-set waiting time after business it is still abnormal, then control machine record traffic
Mistake;If controlling machine record traffic mistake, the expected results are also service error, then the test point of switching time passes through.
Based on the above technical solution, the control machine carries out in testing process monitoring process, after routing switch
When business is normal, error analyzer records switching time, routes if the switching time is less than in the test relevant information
It switches the standard time, then the test point of switching time passes through.
Based on the above technical solution, the control machine carries out in testing process monitoring process, after routing switch
When business is normal, machine is controlled by network management and reads current routing, if pre- in the current routing and the test relevant information
Phase routing is identical, then the test point for switching routing passes through.
Based on the above technical solution, the control machine obtains external file, according to the test of the external file
Process determines next operation step until test is completed;Control machine for record each testing process, test relevant information and
Test result, analyzes test result and calculates percent of pass, generates test report by unified format.
The present invention also provides a kind of preset routing automatization test systems of multipath based on ASON, comprising:
At least one photoswitch, each photoswitch are deployed between the adjacent network element of any two in network topology;The light
Switch generates routing switch for analog line failure;
Network management is used to configure initialization routing and automatically configures a plurality of preset routing, is also used to route monitoring;
Error analyzer connects the network element, and whether the business for judging monitoring is normal and monitors routing switch
Time;
Control machine is separately connected the photoswitch, error analyzer and network management, passes through outside for testing process monitoring
File obtains testing process and test relevant information, and monitoring and test process records and analyzes test result.
The beneficial effects of the present invention are:
1, the present invention carries out the functions such as business configuration, deletion and routing inquiry by network management, controls optical fiber by photoswitch
On-off, simulate actual track in fault scenes;On-off monitoring and the switching time prison of business are carried out by error analyzer
It surveys;Route monitoring is carried out by network management;Entire testing process is controlled by control machine, full-automatic test is realized, without artificial
Intervene, improves testing efficiency, avoid test leakage, it is high relative to manual test accuracy, testing efficiency is improved, human factor wave is reduced
The time taken reduces testing cost.
2, the on-off that photoswitch is controlled by control machine can provide the disconnected fine function of second grade, simulate Single Point of Faliure, multiple spot
The various faults scene such as failure and combined fault improves measuring accuracy to increase the covering surface of test scene and test.
3, control machine carries out testing process monitoring, realizes automatic result record, and analyzes the survey that result exports unified format
Examination report, relative to manual testing reduce result record and output analysis time, and can evade it is poor by tester's technical capability
Test result analysis difference problem caused by different;Achievable a large amount of, high-intensitive pressure test, reduces manpower when pressure test
Cost, while occasional problem discovery rate can be promoted.
4, control machine is realized and is imported outside testing process, can be realized in needing the external file that imports testing process and
The flexible design of standard, to increase the process diversity of the preset routing test of multipath, increase testing process design and survey
It tries process and executes isolated mode, the reusability of test design can also be promoted (design is repeatable).
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
It is the connection of realization business in ASON control plane, can constructs and route in terminal room, by the configuration of routing,
It can specify the communication path and mode of communicating of business, in order to ensure the stabilization of business, can be configured in initialization routing
A plurality of preset routing, when initial Work route breaks down, in business meeting auto switching to preset routing, to ensure business
Stabilization.
At the same time, preset routing has certain priority, priority P riority according to the difference of routing configuration sequence
For 0-n, n is the integer greater than 0, and the value of priority is smaller, then priority is higher.When routing failure, ASON can be automatic
It is switched in the highest normal preset routing of current priority.Therefore it when routing failure, needs according to current test
Condition (such as: the disconnected fine position of route) following test point of test:
1. whether routing is successfully switched in the highest normal preset routing of current priority;
2. whether the routing switch time is in critical field.
The present invention is based on the preset routing automated testing methods of the multipath of ASON, comprising steps of
Photoswitch is disposed between the adjacent network element of any two in network topology, setting control machine controls photoswitch respectively, misses
Code analyzer and network management simultaneously initialize;
The control machine obtains testing process and test relevant information by external file, and controls the initial work of network management configuration
Make routing and automatically configures a plurality of preset routing;
By the photoswitch analog line failure generate routing switch, error analyzer carry out business monitoring, network management into
Row route monitoring, and testing process monitoring and research and application result are carried out by control machine.
First embodiment:
As shown in Figure 1, the preset routing automated testing method of multipath of the present embodiment based on ASON, specifically includes step
It is rapid:
S1. photoswitch is disposed between the adjacent network element of any two (i.e. terminal) in network topology, a photoswitch exists extremely
At least one channel, can be defined as a breakpoint bpi by a few channel, and wherein i is the serial number of breakpoint, and breakpoint is initially set
It is set to connected state (i.e. photoswitch interface is set on).
When breakpoint disconnects, the corresponding photoswitch of breakpoint is set to off-state (i.e. photoswitch interface is set to off).Actual rings
The number of the border point of interruption can be disposed accordingly according to actual physics environment, and configure the corresponding pass of corresponding breakpoint-photoswitch
It is configuration file, routing cost configuration file and the whole network routed path configuration file.
S2. initial configuration is carried out, photoswitch information, network management information, error analyzer are obtained by initial configuration and believed
Breath, self-defined information and essential information of whole network topology etc..
S3. initialization control is carried out, control machine can be connected automatically by photoswitch information realization photoswitch, and control machine passes through
Self-defined information defines the breakpoint in each photoswitch, and breakpoint is initially set to connected state.At the same time, machine is controlled
Network management initialization connection can be realized by network management information, completed when network management connects, control machine can realize network management control.Control machine can
By error analyzer information, the connection to error analyzer is realized, after the completion of error analyzer connection, control machine can be real
The control of existing error analyzer.
S4. control it is machine-readable take external file, the type of external file can be modified according to demand, read in the present embodiment
Take external .csv file.
Control machine obtains external file content, including testing process and test relevant information;It includes pre- for testing relevant information
Phase result, expected routing, a plurality of preset routing that need to be configured, wherein expected results can be service error service error
Or the routing switch standard time.
Control machine passes through the essential information obtained when initial configuration and external file content, analyze need to configure just
Beginning Work route information and preset routing iinformation;And network management configuration initialization routing is controlled, and route based on initialization
Automatically configure a plurality of preset routing.
S5. control machine passes through the on-off analog line failure of photoswitch, generates routing switch, is carried out by error analyzer
Business monitoring carries out route monitoring by network management, and carries out testing process monitoring and research and application result by control machine.
Second embodiment:
The present embodiment is on the basis of first embodiment, and in step s 4, control machine analyzes the initial work needed to configure
Make routing iinformation and preset routing iinformation includes:
Network management carries out the configuration of initialization routing based on the essential information of initial configuration, and network management is the initial work obtained
Make route assignment ID and perhaps circuit name and the ID of distribution or circuit name are returned into control machine, is stored by control machine, with
Routing is searched accordingly convenient for subsequent.Wherein, initialization routing can carry out manual configuration by network management, can also pass through control
Machine control network management carries out automatically configuring for initialization routing, and certainly, in the case of automatically configuring, efficiency can be higher, and precision can be more
Accurately.
After initialization routing configuration, control machine control network management, based on initialization routing ID or circuit name into
The a plurality of preset routing of row automatically configures.Specifically, a plurality of preset routing is based on initial work when routing ID there are initialization
Make the ID routed configuration.When there is no initialization routing ID, the circuit name that can be routed based on initialization carries out a plurality of
Preset routing configuration.After the completion of whole routing configurations, a plurality of preset routing iinformation will be carried in initialization routing, and more
The preset routing of item according to priority arranges.
3rd embodiment:
In front on the basis of embodiment, control machine passes through the on-off analog line failure of photoswitch, generates routing switch,
Routing is monitored by network management again, control machine is monitored result record, and letter related to the test from external file
Expected results and expected routing are compared in breath, control machine research and application result.As shown in Fig. 2, specific steps include:
S500. the business configuration of error analyzer is carried out, configuration service type can be obtained from error analyzer information.
S501. whether normal business is judged by error analyzer, if so, into S503;If it is not, into S502.Specifically
, if the business of error analyzer is logical, then it represents that business is normal, if the business of error analyzer disconnects, then it represents that
Business is abnormal.
S502. the routing of configuration is deleted, and terminates to test.
S503. the testing process obtained according to external file, control machine are controlled by the on-off that photoswitch carries out breakpoint, are produced
Raw routing switch, and business is monitored.Specifically, including breakpoint object and breakpoint status, breakpoint object in testing process
It can be single-break bpi or multibreak bpi, bpj ... bpx, when for multibreak, successively carry out breakpoint control in sequence.It is disconnected
Dotted state can be connected state on and disconnected fine state off.Therefore, the on-off control of breakpoint includes single-break on-off and multibreak
On-off, with single-break bpi in the present embodiment, breakpoint status continues to test for being off.
S504. whether business is normal after judging routing switch by error analyzer, if so, into S506;If it is not, into
S505。
S505. the test result for recording error analyzer is service error, into S507.
S506. illustrate routing switch success, the switching time and record of error analyzer are read, into S507.
S507. result will be recorded to be compared with the expected results controlled in the machine-readable external file taken.
If record the result is that service error, and expected results are also service error, then the test point of switching time
Pass through.
If record the result is that switching time, it is contemplated that the result is that the routing switch standard time, and the switching time is small
In the routing switch standard time, then the test point of switching time passes through.
If the routing switch standard time is equal to or more than the routing switch standard time, the test point of switching time does not have
Pass through.
S508. control machine reads current routing by network management, and network management is currently routed back to control machine of giving for reading, controls
Machine ID can be routed by initialization in the current routing of inquiry or circuit name obtains current practical routing, and records current
Routing.Control machine compares current route with routing expected in the external file of reading, if the two is consistent, switches routing
Test point pass through;Otherwise, the test point for switching routing does not pass through.
S509. the testing process that control machine is obtained according to file, determines operating procedure next time, and judgement has tested whether
At if it is not, being transferred to S503;If so, into S510.
S510. control machine records each testing process, test relevant information and test result, and analysis test passes through accordingly
Rate.
Fourth embodiment:
On the basis of 3rd embodiment, whether in step S504, switching rear business normally can be according to error analyzer
Business on-off judge that the business of error analyzer is logical, then represent business normal;The business of error analyzer is disconnected, then represents
Business is abnormal.Also, subsequent test needs are monitored when business is normal.
When the business of error analyzer is abnormal, after waiting for a period of time, judge whether business is normal again, if so,
Illustrate routing switch success;If it is not, the test result of record error analyzer is service error.Wherein, the waiting time can root
It is configured according to demand, the general high latency that is arranged is no more than 30 seconds.
5th embodiment:
In front on the basis of embodiment, control machine is analyzed obtaining test result, generates the test of unified format
Report, file format can be modified according to demand.In the present embodiment, test report is excel format, is had recorded every time disconnected
The standard results of testing process, error analyzer when point operation, the actual result of error analyzer record, expected routing and real
Border routing etc..
Further, it is also possible to initialize photoswitch, all photoswitches are set to open state on, are waited for a period of time later, to
Circuit reverts to normal state, routes ID by initialization or circuit name deletes circuit.
Sixth embodiment:
As shown in figure 3, the present invention is based on the preset routing automatization test system of the multipath of ASON, including network management 1, control
Machine 2, error analyzer 4 and at least one photoswitch 3.
Single photoswitch 3 is deployed between the adjacent network element of any two in network topology, by the on-off of breakpoint, is used to mould
Quasi- line fault, generates routing switch.Specifically, there are at least one channels for a photoswitch 3, it can be by least one channel
It is defined as a breakpoint bpi, wherein i is the serial number of breakpoint, and (i.e. photoswitch interface is set to the connected state that is initially set to of breakpoint
on).When breakpoint disconnects, the corresponding photoswitch 3 of breakpoint is set to off-state (i.e. photoswitch interface is set to off).
Network management 1 automatically configures a plurality of preset routing for configuring initialization routing, and according to initialization routing.Specifically
, network management 2 is the initialization route assignment ID or circuit name of acquisition, a plurality of preset when routing ID there are initialization
Route the ID configuration routed based on initialization.When there is no initialization routing ID, it can be routed based on initialization
Circuit name carries out a plurality of preset routing configuration.After the completion of whole routing configurations, it will be carried in initialization routing a plurality of preset
Routing iinformation, and the priority arrangement of configuration sequence is pressed in a plurality of preset routing.
Error analyzer 4 connects the network element, when whether the business for judging monitoring is normal and monitors routing switch
Between.
Control machine 2 is separately connected photoswitch 3, error analyzer 4 and network management 1, and to photoswitch 3, error analyzer 4 and net
Pipe 1 is controlled.Control machine 2 is used to obtain testing process and test relevant information by external file, is also used to monitoring and test
Process simultaneously obtains test result.In addition, control machine 2 is also used to generate the test report of unified format according to test result, it is unified
And record and the analysis of test result have been standardized, test result analysis cost is reduced, the risk artificially analyzed is reduced, enhances result
Accuracy.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.