CN104539469A - Method and device of testing master-slave switching time based on test messages - Google Patents
Method and device of testing master-slave switching time based on test messages Download PDFInfo
- Publication number
- CN104539469A CN104539469A CN201410707895.2A CN201410707895A CN104539469A CN 104539469 A CN104539469 A CN 104539469A CN 201410707895 A CN201410707895 A CN 201410707895A CN 104539469 A CN104539469 A CN 104539469A
- Authority
- CN
- China
- Prior art keywords
- test packet
- active
- equipment
- standby
- path
- 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.)
- Pending
Links
Abstract
The invention discloses a method and a device of testing master-slave switching time based on test messages. The method comprises the following steps of sending the test messages to receiving equipment on an opposite terminal from sending equipment at the set sending rate through a main path; disconnecting the main path and switching the test messages to be transmitted on a spare path between the sending equipment and the receiving equipment; enabling the sending equipment to stop sending the test messages to the receiving equipment; and computing according to the total number of the test messages sent by the sending equipment and the total number of the test messages received by the receiving equipment so as to obtain the master-slave switching time. The method and the device do not need to introduce a tester and change the original topology, the Test messages are independently sent by utilizing a chip of the equipment or a network processor NP, and measurement of the master-slave switching time of an Ethernet link and an LSP (Label Switch Path) can be implemented through a sending and receiving counting difference and the sending rate of the Test messages.
Description
Technical field
The present invention relates to network communication technology field, especially relate to method of testing and the device of a kind of active-standby switch time based on test packet.
Background technology
Carrier network carries a large amount of application, and these application propose very high requirement for the reliability of network.General carrier-class network requirement reliability reaches 99.999%, namely 1 year at most can only fault 5 minutes, and service outage duration must be less than 50ms, and service outage duration is once exceed this time, Consumer's Experience will be made to be deteriorated, to cause huge loss.Therefore carrier class network must provide enough means to carry out Logistics networks reliability, and pretection switch technology is exactly wherein topmost means.
Pretection switch, as the term suggests, be namely to provide certain network redundancy, go on load transfer to backup path when network failure, thus the business of guarantee can a kind of technology of quick-recovery soon.Pretection switch technology overlay network and equipment at all levels, is generally divided into trail protection and port protection from the viewpoint of network.
The universal method of switching time is protected in current industry test, is to utilize tester to send datagram with fixing number of pictures per second, then receives in opposite end.By the number of dropped packets in record protection handoff procedure, obtain out of service time divided by packet sending speed.
Generally there are following two shortcomings in this mode: 1, must by equipment connection to be tested on tester, and this is concerning especially inconvenient some are placed on the passback net base station of remote machine room; Even if 2 Devices to tests can be connected to tester, also must take equipment interface, the topological structure of access side can be changed, bring unforeseen impact.
Summary of the invention
The object of the invention is to the defect overcoming prior art, method of testing and the device of a kind of active-standby switch time based on test packet are provided, do not need by tester transmitting-receiving bag, do not need the topology changing access side, realize the accurate measurement of ethernet link or MPLS-LSP active-standby switch time yet.
For achieving the above object, the present invention proposes following technical scheme: the method for testing of a kind of active-standby switch time based on test packet, comprises the following steps:
By test packet to set transmission rate to send to opposite end through main path receiving equipment from transmitting apparatus;
Disconnect described main path, described test packet is switched on the standby path between described transmitting apparatus and receiving equipment and transmits;
Described transmitting apparatus stops sending described test packet to receiving equipment;
The test packet sum that the test packet sum sent according to described transmitting apparatus and described receiving equipment receive, calculates the active-standby switch time.
Preferably, transmitting-receiving and the counting of ethernet test message or MPLS-TP test packet supported by the chip of described transmitting and receiving device or network processing unit.
Preferably, the transmission rate of described test packet is not more than the minimum available bandwidth in described main path and described standby path.
Preferably, the transmission rate of described test packet is not less than 100 bags per second.
Preferably, before transmission test packet, between described transmitting apparatus and receiving equipment, main path is unimpeded, and described standby path blocks.
Preferably, the difference of test packet sum with receive total by the test packet of transmission, divided by the transmission rate of described test packet, calculates the active-standby switch time.
Preferably, between described main path, between standby path and respectively have a pair maintaining end point MEP between described transmitting apparatus and receiving equipment.
Another object of the present invention is also the testing apparatus providing a kind of active-standby switch time based on test packet, comprise transmitting apparatus, receiving equipment, active-standby switch equipment and a pair maintaining end point MEP, have the main path for test packet transmission and standby path between described transmitting apparatus and receiving equipment, described transmitting apparatus sends test packet to described receiving equipment with the transmission rate of setting by described main path or described standby path; Described active-standby switch equipment is used for carrying out active-standby switch to the transmission path of described test packet; Described maintaining end point between described transmitting apparatus and receiving equipment, for counting the transmission message number of described transmitting apparatus and the reception message number of described receiving equipment.
The invention has the beneficial effects as follows: the present invention is without the need to introducing tester, also without the need to changing original topology, the chip of equipment or network processing unit NP is utilized independently to send the message of Test, by transmitting-receiving count difference and the transmission rate of Test message, can realize ethernet link and the measurement of LSP active-standby switch time.
Accompanying drawing explanation
Fig. 1 a and Fig. 1 b is the principle schematic of the embodiment of the present invention one based on the method for testing of the Ethernet active-standby switch time of test packet;
Fig. 2 a and Fig. 2 b is the principle schematic of the embodiment of the present invention two based on the method for testing of the MPLS-TP active-standby switch time of test packet.
Embodiment
Below in conjunction with accompanying drawing of the present invention, clear, complete description is carried out to the technical scheme of the embodiment of the present invention.
The present invention realizes the measurement of active-standby switch time by the chip of equipment itself or the test packet of network processing unit NP transmission steady rate.Wherein, the characteristic support that equipment needs some rigid, is specially: 1, the chip of equipment or NP support based on the ethernet test message of ITU-Y.1731 agreement or the transmitting-receiving of MPLS-TP test packet and counting; 2, the transmission of test packet is not by the impact of link switching; 3, equipment supports the packet sending speed per second of nominative testing message, requires to keep rate stabilization in process of transmitting.Consider measurement effect, packet sending speed is preferably not less than 100 bags per second, and now certainty of measurement is 10ms; 4, equipment packet sending speed can not be greater than main/slave link minimum bandwidth on the way, must ensure packet loss not because bandwidth deficiency causes on path.As PTN (Packet Transport Network, the Packet Transport Network) equipment based on GreatBelt chip can meet above-mentioned requirements.
Shown in composition graphs 1 and Fig. 2, the embodiment of the present invention one is for Ethernet protection handoff scenario, and concrete introduction the present invention is based on the method for testing of the active-standby switch time of test packet.Three pairs MEP: a pair are used between primary link, for monitoring status of primary link in topology of the present invention; A pair between standby link, for monitoring standby link state; A pair between PE1 equipment and PE2 equipment, for test packet transmission message counting number or receive message counting number.
PE1 equipment sends ethernet test message to PE2 equipment, and under normal circumstances, ethernet test message transmits over the primary link, and when primary link is checked through interruption time, standby link is opened, the transmission of ethernet test message conversion standby link.And time G.8031 the main/slave link between PE1 equipment and PE2 equipment runs, only have a paths to be available, an other paths gets clogged, prevent from forming loop.
The method of testing of the embodiment of the present invention two specifically comprises the following steps:
Enable ethernet test message on the MEP at PE1 equipment and PE2 equipment two ends, by ethernet test message to set transmission rate to send to opposite end through primary link PE2 equipment from PE1 equipment, the transmission rate of setting ethernet test message is x bag per second;
After stability of flow, disconnect primary link, ethernet test message is switched on the standby link between PE1 equipment and PE2 equipment and transmits;
After stability of flow, PE1 equipment stops sending ethernet test message to PE2 equipment, stops two-way giving out a contract for a project, be in order to allow ethernet test message give out a contract for a project and packet receiving number no longer increases, so that it is poor to calculate transmitting-receiving bag number;
The test packet sum that the test packet sum sent according to PE1 equipment and PE2 equipment receive, calculates the active-standby switch time.
Particularly, by the test packet sum of transmission and the transmission rate x of the difference of the test packet sum received divided by test packet, calculate active-standby switch time Δ t, i.e. Δ t=Δ N/x, wherein, Δ N represents the difference of the test packet sum of transmission and the test packet sum of reception, and the unit of Δ t is s.
Give an example, the packet sending speed of setting test packet is stabilized in 1000 bags per second, if do not do active/standby link switchover, should not have packet loss, and namely packet receiving number and number of giving out a contract for a project are equal.If do active-standby switch, in this process, because data transfer path there occurs change, certainly have message and lost.But after being by the time switched to standby link, packet loss would not be had again.The difference of now contrast transmitting-receiving bag number, such as, find to have lost 10 packets.So calculate and use 10/1000pps exactly switching time, obtaining switching time is 0.01 second=10 milliseconds, i.e. 10ms.
Shown in composition graphs 2a and Fig. 2 b, the embodiment of the present invention two protects handoff scenario to be example with MPLS-TP LSP (label switch path, label switched path).Equally, in the topology of the embodiment of the present invention two, also use three couples of MEP, a pair between main LSP, for monitoring status of primary link; A pair between standby LSP, for monitoring standby link state; A pair between PE1 equipment and PE2 equipment, for test packet transmission message counting number or receive message counting number.
PE1 equipment sends MPLS-TP test packet to PE2 equipment, and under normal circumstances, MPLS-TP test packet transmits over the primary link, and when primary link is checked through interruption time, standby link is opened, the transmission of MPLS-TP test packet conversion standby link.And time G.8031 the main/slave link between PE1 equipment and PE2 equipment runs, only have a paths to be available, an other paths gets clogged, prevent from forming loop.
The method of testing of the embodiment of the present invention two specifically comprises the following steps:
Enable MPLS-TP test packet on the MEP at PE1 equipment and PE2 equipment two ends, by MPLS-TP test packet to set transmission rate to send to opposite end through primary link PE2 equipment from PE1 equipment, the transmission rate of setting MPLS-TP test packet is x bag per second;
After stability of flow, disconnect primary link, MPLS-TP message is switched on the standby link between PE1 equipment and PE2 equipment and transmits;
After stability of flow, PE1 equipment stops sending ethernet test message to PE2 equipment, stops two-way giving out a contract for a project, be in order to allow MPLS-TP test packet give out a contract for a project and packet receiving number no longer increases, so that it is poor to calculate transmitting-receiving bag number;
The test packet sum that the test packet sum sent according to PE1 equipment and PE2 equipment receive, calculates the active-standby switch time.
Present invention further teaches the testing apparatus of a kind of active-standby switch time based on test packet, comprise transmitting apparatus, receiving equipment, active-standby switch equipment and a pair maintaining end point MEP, there is between transmitting apparatus and receiving equipment the main path for test packet transmission and standby path, transmitting apparatus generally sends test packet to receiving equipment by main path with the transmission rate of setting, when main path fault or when disconnecting, be then switched on standby path and transmit;
Active-standby switch equipment is used for carrying out active-standby switch to the transmission path of test packet, on the contrary by path from main path be switched to standby path or; Maintaining end point between transmitting apparatus and receiving equipment, for counting the transmission message number of transmitting apparatus and the reception message number of receiving equipment.
And apparatus of the present invention equally also need some the rigid characteristic supports meeting above-mentioned introduction.
In addition, between main path, between standby path, also respectively there is a pair maintaining end point MEP, be respectively used to the state monitoring primary link, standby link.
Technology contents of the present invention and technical characteristic have disclosed as above; but those of ordinary skill in the art still may do all replacement and the modification that do not deviate from spirit of the present invention based on teaching of the present invention and announcement; therefore; scope should be not limited to the content that embodiment discloses; and various do not deviate from replacement of the present invention and modification should be comprised, and contained by present patent application claim.
Claims (10)
1., based on the method for testing of the active-standby switch time of test packet, it is characterized in that, comprise the following steps:
By test packet to set transmission rate to send to opposite end through main path receiving equipment from transmitting apparatus;
Disconnect described main path, described test packet is switched on the standby path between described transmitting apparatus and receiving equipment and transmits;
Described transmitting apparatus stops sending described test packet to receiving equipment;
The test packet sum that the test packet sum sent according to described transmitting apparatus and described receiving equipment receive, calculates the active-standby switch time.
2. the method for testing of the active-standby switch time based on test packet according to claim 1, it is characterized in that, the chip of described transmitting and receiving device or network processing unit support transmitting-receiving and the counting of ethernet test message or MPLS-TP test packet, and the packet sending speed that described transmitting and receiving device sends described test packet is stable.
3. the method for testing of the active-standby switch time based on test packet according to claim 1, is characterized in that, the transmission rate of described test packet is not more than the minimum available bandwidth in described main path and described standby path.
4. the method for testing of the active-standby switch time based on test packet according to claim 1 or 3, is characterized in that, the transmission rate of described test packet is not less than 100 bags per second.
5. the method for testing of the active-standby switch time based on test packet according to claim 1, is characterized in that, before transmission test packet, between described transmitting apparatus and receiving equipment, main path is unimpeded, and described standby path blocks.
6. the method for testing of the active-standby switch time based on test packet according to claim 1, it is characterized in that, the difference of test packet sum with receive total by the test packet of transmission, divided by the transmission rate of described test packet, calculates the active-standby switch time.
7. the method for testing of the active-standby switch time based on test packet according to claim 1, is characterized in that, between described main path, between standby path and respectively have a pair maintaining end point MEP between described transmitting apparatus and receiving equipment.
8. the testing apparatus based on the active-standby switch time of test packet, it is characterized in that, comprise transmitting apparatus, receiving equipment, active-standby switch equipment and a pair maintaining end point MEP, have the main path for test packet transmission and standby path between described transmitting apparatus and receiving equipment, described transmitting apparatus sends test packet to described receiving equipment with the transmission rate of setting by described main path or described standby path; Described active-standby switch equipment is used for carrying out active-standby switch to the transmission path of described test packet; Described maintaining end point between described transmitting apparatus and receiving equipment, for counting the transmission message number of described transmitting apparatus and the reception message number of receiving equipment.
9. the testing apparatus of the active-standby switch time based on test packet according to claim 8, it is characterized in that, the chip of described transmitting and receiving device or network processing unit support transmitting-receiving and the counting of ethernet test message or MPLS-TP test packet, and the packet sending speed that described transmitting and receiving device sends described test packet is stable.
10. the testing apparatus of the active-standby switch time based on test packet according to claim 8, is characterized in that, also respectively has a pair maintaining end point MEP between described main path, between standby path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410707895.2A CN104539469A (en) | 2014-11-27 | 2014-11-27 | Method and device of testing master-slave switching time based on test messages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410707895.2A CN104539469A (en) | 2014-11-27 | 2014-11-27 | Method and device of testing master-slave switching time based on test messages |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104539469A true CN104539469A (en) | 2015-04-22 |
Family
ID=52854938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410707895.2A Pending CN104539469A (en) | 2014-11-27 | 2014-11-27 | Method and device of testing master-slave switching time based on test messages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104539469A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104914853A (en) * | 2015-05-25 | 2015-09-16 | 南京国电南自美卓控制系统有限公司 | Measurement method and system for switching time of main and auxiliary controllers |
CN105049284A (en) * | 2015-07-09 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Linux system-based network redundancy testing method and device |
CN105262635B (en) * | 2015-09-07 | 2018-06-19 | 上海斐讯数据通信技术有限公司 | The method, apparatus and system of looped network protection protocol switching time automatic test |
CN113448242A (en) * | 2021-06-07 | 2021-09-28 | 华电电力科学研究院有限公司 | Method for measuring switching time of industrial control system controller |
CN116915670A (en) * | 2023-09-14 | 2023-10-20 | 浙江国利信安科技有限公司 | Method, apparatus and medium for determining network recovery time |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722627A (en) * | 2004-07-13 | 2006-01-18 | 华为技术有限公司 | A method and device for realizing switching between main and backup units in communication equipment |
CN1791233A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Active/standby single board changeover testing method |
CN101291206A (en) * | 2008-06-20 | 2008-10-22 | 中兴通讯股份有限公司 | Test device and method for single-board host-slave switching |
CN101404594A (en) * | 2008-07-10 | 2009-04-08 | 北京星网锐捷网络技术有限公司 | Hot backup performance test method and apparatus, communication equipment |
CN102316038A (en) * | 2011-09-09 | 2012-01-11 | 福建星网锐捷网络有限公司 | Method for determining hot backup main /standby switching time, apparatus and system thereof |
CN102412955A (en) * | 2011-11-28 | 2012-04-11 | 华为技术有限公司 | Method for obtaining time deviation between master device and slave device under condition of asymmetrical optical fibers and communication system |
CN102546135A (en) * | 2010-12-31 | 2012-07-04 | 富泰华工业(深圳)有限公司 | System and method for switching between active and standby servers |
CN102684946A (en) * | 2012-05-25 | 2012-09-19 | 中国舰船研究设计中心 | Dual-network-interface-card switching performance testing method for information integration system |
-
2014
- 2014-11-27 CN CN201410707895.2A patent/CN104539469A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722627A (en) * | 2004-07-13 | 2006-01-18 | 华为技术有限公司 | A method and device for realizing switching between main and backup units in communication equipment |
CN1791233A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Active/standby single board changeover testing method |
CN101291206A (en) * | 2008-06-20 | 2008-10-22 | 中兴通讯股份有限公司 | Test device and method for single-board host-slave switching |
CN101404594A (en) * | 2008-07-10 | 2009-04-08 | 北京星网锐捷网络技术有限公司 | Hot backup performance test method and apparatus, communication equipment |
CN102546135A (en) * | 2010-12-31 | 2012-07-04 | 富泰华工业(深圳)有限公司 | System and method for switching between active and standby servers |
CN102316038A (en) * | 2011-09-09 | 2012-01-11 | 福建星网锐捷网络有限公司 | Method for determining hot backup main /standby switching time, apparatus and system thereof |
CN102412955A (en) * | 2011-11-28 | 2012-04-11 | 华为技术有限公司 | Method for obtaining time deviation between master device and slave device under condition of asymmetrical optical fibers and communication system |
CN102684946A (en) * | 2012-05-25 | 2012-09-19 | 中国舰船研究设计中心 | Dual-network-interface-card switching performance testing method for information integration system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104914853A (en) * | 2015-05-25 | 2015-09-16 | 南京国电南自美卓控制系统有限公司 | Measurement method and system for switching time of main and auxiliary controllers |
CN105049284A (en) * | 2015-07-09 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Linux system-based network redundancy testing method and device |
CN105262635B (en) * | 2015-09-07 | 2018-06-19 | 上海斐讯数据通信技术有限公司 | The method, apparatus and system of looped network protection protocol switching time automatic test |
CN113448242A (en) * | 2021-06-07 | 2021-09-28 | 华电电力科学研究院有限公司 | Method for measuring switching time of industrial control system controller |
CN113448242B (en) * | 2021-06-07 | 2022-12-20 | 华电电力科学研究院有限公司 | Method for measuring switching time of industrial control system controller |
CN116915670A (en) * | 2023-09-14 | 2023-10-20 | 浙江国利信安科技有限公司 | Method, apparatus and medium for determining network recovery time |
CN116915670B (en) * | 2023-09-14 | 2023-12-05 | 浙江国利信安科技有限公司 | Method, apparatus and medium for determining network recovery time |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104539469A (en) | Method and device of testing master-slave switching time based on test messages | |
CN102007729B (en) | Connectivity fault management traffic indication extension | |
CN102316016B (en) | Method and device for forwarding multicasting flow | |
CN101710896B (en) | Method and device for detecting link quality | |
US10237165B2 (en) | Data traffic management system and method | |
CN101610535B (en) | Method, system and device for ensuring BFD conversation stability on the scene of multilink direct connection | |
CN102428676B (en) | Method For Signalling Of Data Transmission Path Properties To A Non-Oam Observent Client | |
EP2533473A1 (en) | Method and apparatus for bidirectional forwarding detection (bfd) oscillation damping | |
CN103023771A (en) | Method and device for processing fault of ring topological network and routing equipment | |
CN101299722A (en) | Improved quick rerouting method and network equipment | |
CN102487338A (en) | Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter | |
JP2017092870A (en) | Communication equipment and communication system | |
US10164823B2 (en) | Protection method and system for multi-domain network, and node | |
JP5352502B2 (en) | Packet communication system and packet communication apparatus control method | |
US11444723B2 (en) | Signal protection | |
CN102404143A (en) | Method for processing port failures based on LACP and LACP terminal | |
CN108965027A (en) | A kind of CES service nondestructive transfer approach | |
CN103036724A (en) | State information transmission method and network equipment and combination equipment | |
CN104253747A (en) | Transmission method and transmission device for performing 1: 1 protection on message in link aggregation group | |
JP5558436B2 (en) | Network system and network failure avoidance method | |
CN101729201B (en) | Method for detecting signal degradation defect | |
CN101795216B (en) | Method and equipment for resetting watch dog in multi-hop bidirectional forwarding detection (BFD) | |
CN113037622B (en) | System and method for preventing BFD from vibrating | |
JP2005268889A (en) | Transmission path switching system and operating method of the transmission path switching system | |
CN101989937A (en) | Method, device and system for sending data stream |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150422 |