CN100393055C - Automatic protection switching protocol testing method - Google Patents

Automatic protection switching protocol testing method Download PDF

Info

Publication number
CN100393055C
CN100393055C CNB021551219A CN02155121A CN100393055C CN 100393055 C CN100393055 C CN 100393055C CN B021551219 A CNB021551219 A CN B021551219A CN 02155121 A CN02155121 A CN 02155121A CN 100393055 C CN100393055 C CN 100393055C
Authority
CN
China
Prior art keywords
aps
network element
information
network
emulation
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
CNB021551219A
Other languages
Chinese (zh)
Other versions
CN1507208A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB021551219A priority Critical patent/CN100393055C/en
Publication of CN1507208A publication Critical patent/CN1507208A/en
Application granted granted Critical
Publication of CN100393055C publication Critical patent/CN100393055C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a testing method of an automatic protection switching protocol. The method comprises the following procedures: creating simulation APS networks and simulation network elements with corresponding numbers; configuring the association attributes of the simulation APS networks; establishing information transmission mechanisms between the simulation network elements; establishing an excitation information processing mechanism; transferring the excitation information to an APS protocol processing module of the simulation network elements; analyzing the processing result of the APS module that if the APS protocol processing result does not conforms to a requirement, input state information and output state information of the whole simulation APS networks are recorded; if the APS protocol processing result not conforms to the requirement, testing data of the simulation APS networks is generated. The present invention does not occupy hardware resources, greatly reduces testing cost, simplifies testing process, greatly improves the testing efficiency of the APS protocol, and greatly saves testing manpower and material resources and testing time.

Description

The APS protocol testing method
Technical field
The present invention relates to Optical synchronization digital is transmitted the test of APS (APS) agreement of system (SDH), particularly relate to the method for testing that Optical synchronization digital transmits APS (APS) agreement of Multiplex Section Shared Protection Ring (MS-RING) in the system (SDH).
Background technology
Transmit the system field at Optical synchronization digital; for high-end Optical synchronization digital transmission network network; that be most widely used is two fibres/four fiber complex section protection rings (MS-RING 2F/4F); then utilize APS (APS, the below unified APS that is called for short) agreement to carry out network protection for this two fibres/four fiber complex section protection rings.
At present, adopt usually at each looped network unit node all to comprise a processing unit that is called the APS controller, realized that by it APS protocol processes function realizes, that is to say,, all moving an APS protocol process module for each MS-RING network node.Be illustrated in figure 1 as the networking of a typical four fiber complex section protection rings; on the protection passage, transmitting K1, K2 byte; moving an APS protocol process module on each network element; the APS protocol process module is being followed the G.841 APS processing protocol of regulation; according to the business board alarm of the alarm on the K byte that receives, the circuit, this network element and the protection switching control command of webmaster; carry out status change; send corresponding K byte; and control unit transmission bridge joint switch messages, the bridge joint switching operation of control network element are switched in the protection of giving network element.Because the net element information combined situation is very complicated, has caused APS protocol processes situation complicated unusually.
Usually the APS protocol testing method that adopts is the practical operation situation by analogue network element at first, adopt Optical synchronization digital transmission network network equipment to build the MS_RING network, then according to contingent representative network information state, make corresponding information incentive, judge the correctness of APS protocol processes according to the final result of SDH equipment, carry out the test of APS agreement thus.Exactly because and the APS protocol processes exists above-mentioned complexity in the MS-RING network, even utilizing prior art simplifies the combined situation of network, but also can't overcome also unusual huge present situation of possible number of combinations, this shows that it is difficult unusually to utilize traditional method of testing to carry out the APS protocol test.
Summary of the invention
The object of the present invention is to provide a kind of restriction that is not subjected to net element information and combination thereof, the APS agreement is carried out the method for testing of full test.
In order to achieve the above object; the invention provides a kind of APS protocol testing method to Optical synchronization digital transmission network network system; utilize software emulation network test environment and tested element, to finish the test of APS agreement, this method may further comprise the steps:
Create the emulation network element of simulating APS network and corresponding number.
Dispose described simulating APS network association attributes;
Set up the information transmission mechanism between described emulation network element;
Set up the excitation information treatment mechanism;
Described excitation information is passed to the APS protocol process module of emulation network element;
When the output result of APS protocol process module changes, by information transmission mechanism the information that changes is passed to the information thread of the adjacent network element of East and West direction according to the state information change of bus;
By information transmission mechanism, state information change is transmitted between the emulation network element repeatedly, has formed simulating APS network of network status change, and the state of simulating APS network finally enters stable state; And
Analyze the result of described APS protocol process module
If the result of APS protocol processes is undesirable, write down whole described simulating APS network
The input and output state information;
If the result of APS protocol processes meets the requirements, generate the test data of simulating APS network.
Adopt method of testing provided by the invention that Optical synchronization digital is transmitted the APS (APS) of system (SDH) when agreement is tested, need not to build actual multiplexing share protect loop network, do not take hardware resource, greatly reduce testing cost, simplified test process; Simultaneously, the failure problems of APS protocol processes can also be navigated to concrete information processing layer,, greatly improve the testing efficiency of APS agreement, save the human and material resources resource and the testing time of test greatly for fault provides effective solution.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, so that purpose of the present invention, feature and advantage are had more deep understanding.
Description of drawings
Fig. 1 shows a typical four fiber complex section protection rings networking schematic diagram.
Fig. 2 shows the test of a specific embodiment of the present invention and the flow chart of fault location.
Fig. 3 shows the fundamental diagram of APS protocol process module.
Embodiment
With network environment shown in Figure 1 is example, and Fig. 2 has provided the testing process to the auto switching protection agreement at the type APS networking, and the concrete steps of this flow process are described as follows:
At first, create the simulating APS network, set up the emulation network element of corresponding number, reach each emulation network element and carry out emulation, comprise an APS protocol process module, step 201 in each network element thread by an independent network element thread; As a typical four fiber complex section protection rings networking diagram; for the Multiplex Section Shared Protection Ring network; include 2-16 network element; need network element number according to real network; set up the emulation network element of corresponding number, for actual SDH network, if a network element is supported a plurality of APS networks simultaneously; in this method of testing, treat and handle according to a plurality of simulating APS networks and a plurality of emulation network element.
APS is carried out attribute setting, step 202; The APS ID of attribute kit purse rope unit, multiplex section protection type (two fibres, four fibres), Signal Degrade are switched switch, the carrying of East and West direction extra traffic, WTR time, error connection prevention, are trans-oceanicly switched, the APS ID of network element East and West direction adjacent node etc.,
Set up the information transmission mechanism of simulating APS network, step 203.For each emulation network element is set up an independently message buffer, be responsible for handling I/O information, for consistent, message buffer is called bus with real network; By the information transmission, each artificial network network element all can receive adjacent network element to the K byte information that self sends; Each artificial network network element all can be to the K byte output information of adjacent network element transmission after the APS protocol processes.
In the APS of emulation network, start APS agreement, step 204; After the simulating APS network was set up, the APS state of acquiescence was a halted state, when needs carry out the operation of APS network simulation, open by sending APS to the network element thread/information of stopping opens/stops the APS protocol process module of network element,
Set up the information incentive treatment mechanism of simulating APS network, step 205; Wherein excitation information mainly arrives information from device fault information, warning information, external control command information (webmaster control command), WTR time, can select the above-mentioned various excitation informations of input according to the test needs of reality.The excitation information of input directly is sent in the bus, realizes the information of excitation information is imported and transmitted by the information transmission mechanism of simulating APS network,
The monitor message thread of bus passes to the APS protocol process module of this network element, step 206 with information incentive;
When the output result of APS protocol process module changed, the information thread passed to the information thread of East and West direction adjacent network element, step 207 by information transmission mechanism with the information that changes according to the state information change of bus.
By information transmission mechanism, state information change is transmitted between the emulation network element repeatedly, has formed simulating APS network of network status change, and the state of simulating APS network finally enters stable state, step 208.
The tester is according to the APS agreement input and output information under the stable state, according to the correctness of G.841 advising APS protocol processes in the predetermined process standard judgement APS network, step 209;
If the result of APS protocol processes does not meet the G.841 requirement of suggestion, illustrate that the APS protocol processes is wrong, write down the input and output state information of whole APS network, carry out the fault feedback analysis, step 210;
If the result of APS protocol processes meets the G.841 requirement of suggestion, illustrate that the APS protocol processes is correct, the processing capacity that this moment, the tester utilized the simulating APS network system to provide, the output result of APS protocol processes is generated the test template storehouse of simulating APS network, for use in later regression test, step 211;
The excitation information input of APS protocol processes is generated the test case library of APS network, form input and output information bank one to one with the test template storehouse of APS network, generate test result thus, and the information bank that forms is used for later regression test, step 212.
When regression test, from the test case library of APS network, extract the test case that needs test, the input function of utilizing the simulating APS network system to provide, automatically reappear original test process, and the result that the artificial network under the stable state is exported in result and the APS network ATL compares, both consistent explanation APS protocol processes are correct, inconsistently illustrate that then the APS protocol process module of redaction is wrong.Realize regression test thus to the APS protocol process module.
In the test of reality, according to the test case and the APS network test ATL of APS protocol processes, in the simulating APS network system, create automatic test machine system, realize automatic regression test to the APS network.The tester is by analyzing the result of test automatically, to false-proceed failure feedback wherein.Along with progressively carrying out of test, test case constantly accumulates, and progressively realizes the full test of APS agreement thus.
As shown in Figure 3, fundamental diagram for the APS protocol process module, it has illustrated the external drive information that comprises in step 205, comprising: APS protocol process module 301, be responsible for the APS protocol processes, input information: east orientation is received K byte, west to receiving K byte, webmaster control command, equipment fault and alarm and WTR timer time to signal; Output information: east orientation is sent out K byte, west to sending out K byte, equipment state control command and WTR timer commencing signal.
SDH network and network element by software emulation reality.
Each emulation network element is all moving an APS protocol processor, and is similar with the network element of reality.
By the external environment condition excitation information of software emulation network element, comprise that equipment fault and warning information, external control command information (webmaster control command), WTR time are to information.
By formulating the information transmission mechanism rule of emulation network element, each artificial network network element all can receive adjacent network element to the K byte information that self sends.
The excitation information of emulation and the K byte information that receives pass to the APS protocol processor together and carry out protocol processes.
By the information transmission mechanism of emulation network element, each artificial network network element all can be to the K byte output information of adjacent network element transmission after the APS protocol processes.
Information such as equipment state control command of exporting after the APS protocol processes and WTR timer begin as the output of the input information of next step processing, and can show one of the K byte information of output and output, as the foundation of judging APS protocol processes correctness.
In artificial network, network element passes to adjacent network element by the output information with the APS protocol processes, forms the continuous transition of APS network state, enters stable state up to the simulating APS network.
The input and output information of the APS protocol processor of each network element by analyzing the APS network under the stable state, the correctness that can diagnose the APS protocol processor to handle according to suggestion G.841.
For astable simulating APS network, then handle as the wrong attitude of APS protocol processes.
Carry out the test of APS agreement by said method.
By the test case and the test result of continuous accumulation, realize the automatic regression test of APS agreement.

Claims (11)

1. APS protocol testing method, it may further comprise the steps:
Create the emulation network element of simulating APS network and corresponding number;
Dispose described simulating APS network association attributes;
Set up the information transmission mechanism between described emulation network element;
Set up the excitation information treatment mechanism;
Described excitation information is passed to the APS protocol process module of emulation network element;
When the output result of APS protocol process module changes, by information transmission mechanism the information that changes is passed to the information thread of the adjacent network element of East and West direction according to the state information change of bus;
By information transmission mechanism, state information change is transmitted between the emulation network element repeatedly, has formed simulating APS network of network status change, and the state of simulating APS network finally enters stable state; And
Analyze the result of described APS protocol process module;
If the result of APS protocol processes is undesirable, write down the input and output state information of whole described simulating APS network;
If the result of APS protocol processes meets the requirements, generate the test data of simulating APS network.
2. APS protocol testing method as claimed in claim 1, the quantity of wherein said emulation network element is set according to network element number in the APS networking of actual emulation.
3. APS protocol testing method as claimed in claim 1; the emulation network element that wherein said emulation network element is single simulating APS network; if a network element is supported a plurality of APS networks simultaneously, treat and handle according to a plurality of simulating APS networks and a plurality of emulation network element.
4. APS protocol testing method as claimed in claim 1, wherein said emulation network element carries out emulation by an independent network element thread.
5. APS protocol testing method as claimed in claim 1, wherein said each emulation network element carries out emulation by an independent network element thread, and each network element thread all comprises an APS protocol process module.
6. APS protocol testing method as claimed in claim 1, wherein said simulating APS network association attributes comprise that APS ID, multiplex section protection type, the Signal Degrade of network element are switched switch, the carrying of East and West direction extra traffic, WTR time, error connection prevention, trans-oceanicly switched, the APS ID of network element East and West direction adjacent node etc.
7. APS protocol testing method as claimed in claim 1 is wherein set up the information transmission mechanism between described emulation network element, more is included as each emulation network element and sets up an independently message buffer, is responsible for handling I/O information.
8. APS protocol testing method as claimed in claim 1; wherein set up the information transmission mechanism between described emulation network element; comprise that further each emulation network element all can receive adjacent emulation network element to the K byte information that self sends, each artificial network network element all can be to the K byte output information of adjacent network element transmission after the APS protocol processes.
9. APS protocol testing method as claimed in claim 1, wherein said excitation information mainly arrive information from device fault information, warning information, external control command information (webmaster control command), WTR time.
10. APS protocol testing method as claimed in claim 9, wherein various excitation informations can select input according to the test needs of reality.
11. APS protocol testing method as claimed in claim 1; the test data step of wherein said generation simulating APS network; also comprise the test case library that the excitation information input of APS protocol processes is generated the APS network; form input and output information bank one to one with the test template storehouse of APS network; generate test result thus, and the information bank that forms is used for later regression test.
CNB021551219A 2002-12-10 2002-12-10 Automatic protection switching protocol testing method Expired - Fee Related CN100393055C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021551219A CN100393055C (en) 2002-12-10 2002-12-10 Automatic protection switching protocol testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021551219A CN100393055C (en) 2002-12-10 2002-12-10 Automatic protection switching protocol testing method

Publications (2)

Publication Number Publication Date
CN1507208A CN1507208A (en) 2004-06-23
CN100393055C true CN100393055C (en) 2008-06-04

Family

ID=34235727

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021551219A Expired - Fee Related CN100393055C (en) 2002-12-10 2002-12-10 Automatic protection switching protocol testing method

Country Status (1)

Country Link
CN (1) CN100393055C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100420223C (en) * 2003-02-26 2008-09-17 华为技术有限公司 A test method for multiplexing segment protection protocol
CN100420208C (en) * 2006-01-19 2008-09-17 华为技术有限公司 Protocol simulation testing device
CN100479394C (en) * 2007-01-15 2009-04-15 华为技术有限公司 Simulated testing system and method of the business processing network element
CN102571391B (en) * 2010-12-22 2014-12-10 中兴通讯股份有限公司 Method and system for status synchronization of protection switching protocol
CN102725997B (en) 2011-12-09 2016-11-23 华为技术有限公司 Switch method for realizing low power consumption and device thereof and switch
CN103580929A (en) * 2013-11-21 2014-02-12 盛科网络(苏州)有限公司 Automation testing method and automation testing device for looped network switch delay

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05206979A (en) * 1992-01-29 1993-08-13 Anritsu Corp Aps testing equipment for transmitter
CA2277493A1 (en) * 1998-08-20 2000-02-20 Thomas S. Afferton Fault detection and isolation in a synchronous optical network (sonet) and in a synchronous digital hierachy (sdh) network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05206979A (en) * 1992-01-29 1993-08-13 Anritsu Corp Aps testing equipment for transmitter
CA2277493A1 (en) * 1998-08-20 2000-02-20 Thomas S. Afferton Fault detection and isolation in a synchronous optical network (sonet) and in a synchronous digital hierachy (sdh) network

Also Published As

Publication number Publication date
CN1507208A (en) 2004-06-23

Similar Documents

Publication Publication Date Title
EP0372765B1 (en) Methods and apparatus for performing restricted token operations on an FDDI network
CN100546262C (en) A kind of broadband aviation electronic bus testing apparatus and method of operation thereof
CN105245301A (en) Time-triggered based airborne optical network simulation system
CN107508640A (en) Dual loop redundancy self-healing fiber optic network construction method based on Fibre Channel technologies
JPH0630511B2 (en) Ring transmission system with variable station order
JPS609259A (en) Switching system testing circuit
CN100393055C (en) Automatic protection switching protocol testing method
CN107070911A (en) The method and traffic comprehensive monitoring system of a kind of information transfer
JPH11341031A (en) Phenomenon simulator for remote communication network and method for simulating operation of such network
CN201072431Y (en) Broadband aviation electronic bus testing device
JPH11136244A (en) Control method for input output device
CN107547256A (en) A kind of power telecom network Hardware In The Loop Simulation Method and system
CN103782549A (en) Information transmission network and corresponding network node
US5784591A (en) Parallel simulator for semiconductor integrated circuit
JPS60236340A (en) Communication system
CN100555974C (en) The method of operating data bus system and transfer station
CN107465530A (en) The collocation method and device of optical network unit ONU
CN108664656A (en) Knowledge data automatic synchronous method and knowledge data method for automatically inputting
Wen et al. A system architecture for managing complex experiments in wireless sensor networks
CN107204905A (en) A kind of management method, system and the computer equipment of separate type gateway
CN101895362A (en) Service loopback method and device for synchronizing digital system
KR100289689B1 (en) Number Seven Signal Message Handling Processor Using Signal Link Function
Warden et al. Fibre channel testing for avionics applications
JPH06311574A (en) Network synchronization control method
JPH0227843A (en) Programmable controller

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: 20080604

Termination date: 20171210

CF01 Termination of patent right due to non-payment of annual fee