CN102726091B - Method and device for testing link performance - Google Patents

Method and device for testing link performance Download PDF

Info

Publication number
CN102726091B
CN102726091B CN201280000361.5A CN201280000361A CN102726091B CN 102726091 B CN102726091 B CN 102726091B CN 201280000361 A CN201280000361 A CN 201280000361A CN 102726091 B CN102726091 B CN 102726091B
Authority
CN
China
Prior art keywords
link
closed loop
described test
measured
loop link
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
CN201280000361.5A
Other languages
Chinese (zh)
Other versions
CN102726091A (en
Inventor
宋颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102726091A publication Critical patent/CN102726091A/en
Application granted granted Critical
Publication of CN102726091B publication Critical patent/CN102726091B/en
Expired - Fee Related 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a method and device for testing link performance. The method for testing link performance comprises: links to be tested are selected; links to be tested are connected in an order that forms a closed test link path; test packets are inserted into the closed test link path; the maximum speed that the closed test link path uses to transmit the test packets is the throughput of the links to be tested. The method and device for testing link performance presented in embodiments of the present invention utilize a test closed link path formed using a packet distribution network or using the links within the device itself, and obtains the performance of the links to be tested according to inserted test packets, thereby achieving low-cost, real-time link performance testing with no need to rely on other external devices.

Description

The method of testing of link performance and testing apparatus
Technical field
The present invention relates to moving communicating field, particularly relate to a kind of method of testing and testing apparatus of link performance.
Background technology
For the packet message transmission network in communication system or equipment, need to test the performance of these message repeating networks and equipment, existing method of testing is all utilize testing tool outside these message repeating networks and equipment itself, as the protocol layer method of testings such as external Meter Test instrument, externally hung software, the embedded IP/ETH of the network equipment (such as Y.1731 TEST performance test methods).
But these external method of testings all have respective defect, external Meter Test instrument own hardware cost is very high, and the cost that enters the station is also very high, poor real.Externally hung software also cannot realize remote testing, and needs people for entering the station.Existing protocol layer method of testing inserts ability under usually needing hardware supports high-speed message, such as: 10M/s, 100M/s, 1000M/s, 10000M/s can meet performance test requirement, and a lot of used equipment is not supported, and also hardware cost can be increased when new equipment is supported.
Summary of the invention
Embodiments provide a kind of method of testing and testing apparatus of link performance, achieve low cost and real-time link performance is tested.
Embodiments provide a kind of method of testing of link performance, described method comprises:
Select link to be measured, described link head and the tail to be measured are connected to form test closed loop link in turn;
Test packet is injected in described test closed loop link;
The velocity maximum that described test closed loop link transmits described test packet is the throughput of described link to be measured.
The embodiment of the present invention additionally provides a kind of testing apparatus of link performance, and described device comprises:
Described link head and the tail to be measured, for selecting link to be measured, are connected to form test closed loop link by selected cell in turn;
Injection unit, for injecting test packet in described test closed loop link;
Acquiring unit, the velocity maximum transmitting described test packet for described test closed loop link is the throughput of described link to be measured.
The method of testing of the link performance of the embodiment of the present invention and testing apparatus, the link of self in message distributing network or equipment is utilized to form test closed loop link, obtain the performance of link to be measured according to the test packet injected, thus realize low cost and the test of real-time link performance when not relying on other external equipments.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for testing of embodiment of the present invention link performance;
Fig. 2 is the flow chart of the method for testing of another link performance of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the testing apparatus of embodiment of the present invention link performance;
Fig. 4 is the schematic diagram of the testing apparatus of another link performance of the embodiment of the present invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The method of testing of the link performance of the embodiment of the present invention and testing apparatus, do not need external test instrumentation just can the performance of test packet message repeating network or equipment link, and do not need access arrangement website just remote operation can complete the performance of the link of packet message transmission network or equipment.
Fig. 1 is the flow chart of the method for testing of embodiment of the present invention link performance, and as shown in the figure, the present embodiment specifically comprises the steps:
Step 101, selects link to be measured, and link head and the tail to be measured are connected to form test closed loop link in turn;
In message repeating network or equipment, select the link to be measured needing test, then the head and the tail of link to be measured are coupled together in turn, the test closed loop link that formation one is airtight thus.The head and the tail of link to be measured connect in turn can craft or automatic ring winding, travels through the link to be measured that will test, makes it end to end, form test closed loop link.
Step 102, injects test packet in test closed loop link;
In above-mentioned airtight test closed loop link, the test packet of transmission network or equipment self-generating is injected in timing, and the type of message can define arbitrarily.
Step 103, the velocity maximum of test closed loop link test transmission message is the throughput of link to be measured; And the velocity maximum of test transmission message is specially, in the continuous several times unit interval, when test packet number, byte number or transmission rate are constant, the actual speed rate that test closed loop link carries.
Optionally, the throughput can carrying out link to be measured carries out ratio setting, namely obtains any percentage throughput required for test by link speed limit mode.
The method of testing of the link performance of the present embodiment, by the path of solderless wrapped connection link to be tested, forms the test closed loop link of closed loop, and or else disconnected injection test packet, is raised speed by message cycle, then realizes the test of high-rate packets equipment performance.
Due to the two ends solderless wrapped connection of two-way service link, link just becomes a closed test loop, the message injected this time can not run off from airtight test loop, therefore by constantly injecting message, data bandwidth in final link reaches the actual saturated bandwidth that can carry of this link, i.e. throughput bandwidth.So do not need external testing tool test, also do not need externally hung software, just can realize remote controlled link performance test that is real-time and low cost.
Above-described embodiment is the process describing the test throughput of link to be measured and the speed of test transmission message, and the packet loss of the time delay and link to be measured that can also treat surveyor's chain road is tested.Fig. 2 is the flow chart of the method for testing of another link performance of the embodiment of the present invention, and as shown in Figure 2, the present embodiment specifically comprises the steps:
Step 201, selects link to be measured, and link head and the tail to be measured are connected to form test closed loop link in turn;
In message repeating network or equipment, select the link to be measured needing test, then the head and the tail of link to be measured are coupled together in turn, the test closed loop link that formation one is airtight thus.The head and the tail of link to be measured connect in turn can be selected around ring by hand or automatically, travels through the link to be measured that will test, makes it end to end, forms test closed loop link.
Step 202, injects test packet in test closed loop link;
In above-mentioned airtight test closed loop link, the test packet of transmission network or equipment self-generating is injected in timing, and the type of message can define arbitrarily, comprises frame length.
Step 203, forms detection messages;
Detection messages is unicast message or multicast message, because detection messages needs to be captured, so by this special detection message of the mark such as target MAC (Media Access Control) address or source MAC.
Step 204, lower slotting detection messages in test closed loop link; The time of lower slotting detection messages is very first time T1, and it is input port first message number TX1 that test closed loop link input port TX adds up test packet number, and it is output port first message number RX1 that test closed loop link output port RX adds up test packet number;
Step 205, Acquisition Detection message in test closed loop link, Acquisition Detection message utilizes the marks such as the target MAC (Media Access Control) address of detection messages or source MAC to realize; The time of Acquisition Detection message is the second time T2, and it is input port second message number TX2 that test closed loop link input port TX adds up test packet number, and it is output port second message number RX2 that test closed loop link output port RX adds up test packet number;
Step 206, the difference T2-T1 of the second time and the very first time is the time delay of link to be measured; The packet loss of link to be measured is abs ([(RX2-RX1)-(TX2-TX1)])/(RX2-RX1); RX1 is link output mouth first message number to be measured, and RX2 is link output mouth second message number to be measured, and TX1 is link input first message number to be measured, and TX2 is link input second message number to be measured, and abs is for taking absolute value.
The method of testing of the link performance of the present embodiment adopts equipment embedded software and the spontaneous packet mode of equipment to realize the data performance test of the closed loop link in message forwarding equipment or in network, as packet loss and time delay, the link performance that realizes that is practical, efficient and low cost is tested.
The method of testing of the link performance of the embodiment of the present invention, compared with existing extension instrument method of testing, can be saved instrument and purchase or lease cost, and supports that human cost is saved in remote testing.
Can utilize compared with the method for testing of existing embedded software and realize two-forty by the loop oscillation principle test traffic reached at a high speed and test, and the method for testing of existing embedded software can only realize low speed flow or must depend on high hardware capabilities just can reach high speed test flow, therefore this method does not need the requirement to device hardware, thus saves device hardware cost.And achieve Long-distance Control test, overcome the shortcoming at local network or the plug-in testing software of equipment.
Fig. 3 is the schematic diagram of the testing apparatus of embodiment of the present invention link performance, and as shown in Figure 3, the present embodiment comprises: selected cell 11, injection unit 12 and acquiring unit 13.
Link head and the tail to be measured, for selecting link to be measured, are connected to form test closed loop link by selected cell 11 in turn; Injection unit 12 for injecting test packet in test closed loop link; Acquiring unit 13 is the throughput of described link to be measured for the velocity maximum that described test closed loop link transmits described test packet.
The testing apparatus of the link performance of the present embodiment is due to the two ends solderless wrapped connection of two-way service link, link just becomes a closed test loop, the message injected this time can not run off from airtight test loop, therefore by constantly injecting message, data bandwidth in final link reaches the actual saturated bandwidth that can carry of this link, i.e. throughput bandwidth.So do not need external testing tool test, also do not need externally hung software, just can realize the remote controlled link performance test of low cost.
Fig. 4 is the schematic diagram of the testing apparatus of another link performance of the embodiment of the present invention, and as shown in the figure, the present embodiment comprises: selected cell 21, injection unit 22, forming unit 23, lower slotting unit 24, capturing unit 25 and acquiring unit 26.
Link head and the tail to be measured, for selecting link to be measured, are connected to form test closed loop link by selected cell 21 in turn; Injection unit 22 for injecting test packet in test closed loop link; Forming unit 23 is for the formation of detection messages; Detection messages is unicast message or multicast message.Lower slotting unit 24 is for slotting detection messages lower in test closed loop link; The time of lower slotting detection messages is very first time T1, the input port TX of test closed loop link adds up test packet number as input port first message number TX1, and the output port RX of test closed loop link adds up test packet number as output port first message number RX1.
Capturing unit 25 is for Acquisition Detection message in test closed loop link; The time of Acquisition Detection message is the second time T2, the input port TX of test closed loop link adds up test packet number as input port second message number TX2, and the output port RX of test closed loop link adds up test packet number as output port second message number RX2.Acquiring unit 26 is the time delay of link to be measured for the difference T2-T1 of the second time and the very first time; The packet loss of link to be measured is abs ([(RX2-RX1)-(TX2-TX1)])/(RX2-RX1); RX1 is link output mouth first message number to be measured, and RX2 is link output mouth second message number to be measured, and TX1 is link input first message number to be measured, and TX2 is link input second message number to be measured, and abs is for taking absolute value.
The testing apparatus of the link performance of the present embodiment adopts equipment embedded software and the spontaneous packet mode of equipment to realize the data performance test of the closed loop link in message forwarding equipment or in network, as packet loss and time delay.Can arrange arbitrary velocity and can reach link linear speed, the link performance that realizes that is practical, efficient and low cost is tested.
Professional should recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection range be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. a method of testing for link performance, is characterized in that, described method comprises:
Select link to be measured, described link head and the tail to be measured are connected to form test closed loop link in turn;
Timing injects test packet in described test closed loop link;
The velocity maximum that described test closed loop link transmits described test packet is the throughput of described link to be measured;
Described method also comprises:
Form detection messages, described detection messages is unicast message or multicast message;
Lower slotting described detection messages in described test closed loop link; The time of inserting down described detection messages is the very first time, the input port of described test closed loop link adds up described test packet number as input port first message number, and the output port of described test closed loop link adds up described test packet number as output port first message number;
Described in described test closed loop link lower insert described detection messages after also comprise, in described test closed loop link, catch described detection messages; The time of catching described detection messages was the second time, the input port of described test closed loop link adds up described test packet number as input port second message number, and the output port of described test closed loop link adds up described test packet number as output port second message number;
Described in described test closed loop link, catch described detection messages after also comprise:
The time delay of described link to be measured is T2-T1, and wherein T2 was the second time, and T1 is the very first time;
The packet loss of described link to be measured is abs ([(RX2-RX1)-(TX2-TX1)])/(RX2-RX1), wherein RX2 is output port second message number, RX1 is output port first message number, TX2 is input port second message number, TX1 is input port first message number, for abs takes absolute value.
2. the method for testing of link performance according to claim 1, it is characterized in that, the velocity maximum that described test closed loop link transmits described test packet is specially, in the continuous several times unit interval, when described test packet number, byte number or transmission rate are constant, the actual speed rate that described test closed loop link carries.
3. a testing apparatus for link performance, is characterized in that, described device comprises:
Described link head and the tail to be measured, for selecting link to be measured, are connected to form test closed loop link by selected cell in turn;
Injection unit, injects test packet for timing in described test closed loop link;
Acquiring unit, the velocity maximum transmitting described test packet for described test closed loop link is the throughput of described link to be measured;
Described device also comprises:
Forming unit, for the formation of detection messages, described detection messages is unicast message or multicast message;
Lower slotting unit, inserts described detection messages for lower in described test closed loop link; The time of inserting down described detection messages is the very first time, the input port of described test closed loop link adds up described test packet number as input port first message number, and the output port of described test closed loop link adds up described test packet number as output port first message number;
Described acquiring unit specifically for catching described detection messages in described test closed loop link; The time of catching described detection messages was the second time, the input port of described test closed loop link adds up described test packet number as input port second message number, and the output port of described test closed loop link adds up described test packet number as output port second message number;
Described device also comprises computing unit, and be T2-T1 for calculating the time delay of described link to be measured, wherein T2 was the second time, and T1 is the very first time; The packet loss of described link to be measured is abs ([(RX2-RX1)-(TX2-TX1)])/(RX2-RX1), wherein RX2 is output port second message number, RX1 is output port first message number, TX2 is input port second message number, TX1 is input port first message number, for abs takes absolute value.
CN201280000361.5A 2012-03-15 2012-03-15 Method and device for testing link performance Expired - Fee Related CN102726091B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/072400 WO2012103828A2 (en) 2012-03-15 2012-03-15 Method and device for testing link performance

Publications (2)

Publication Number Publication Date
CN102726091A CN102726091A (en) 2012-10-10
CN102726091B true CN102726091B (en) 2014-12-31

Family

ID=46603131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280000361.5A Expired - Fee Related CN102726091B (en) 2012-03-15 2012-03-15 Method and device for testing link performance

Country Status (2)

Country Link
CN (1) CN102726091B (en)
WO (1) WO2012103828A2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483296B (en) * 2017-09-26 2020-11-03 北京润科通用技术有限公司 Optical fiber transmission rate testing method and system
CN108616418A (en) * 2018-03-30 2018-10-02 新华三技术有限公司 Detect the method and device of failure
CN115002006B (en) * 2022-04-27 2023-07-07 北京中睿天下信息技术有限公司 Network equipment time delay test method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383737A (en) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 Method and system for link quality detection based on link layer discovery protocol
CN102035691A (en) * 2009-09-28 2011-04-27 中国移动通信集团公司 Method and device for detecting quality of network link

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7710888B2 (en) * 2004-04-05 2010-05-04 Verizon Business Global Llc Apparatus and method for testing and fault isolation in a communication network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383737A (en) * 2008-08-25 2009-03-11 中兴通讯股份有限公司 Method and system for link quality detection based on link layer discovery protocol
CN102035691A (en) * 2009-09-28 2011-04-27 中国移动通信集团公司 Method and device for detecting quality of network link

Also Published As

Publication number Publication date
WO2012103828A2 (en) 2012-08-09
CN102726091A (en) 2012-10-10
WO2012103828A3 (en) 2013-01-24

Similar Documents

Publication Publication Date Title
CN102098301B (en) The adaptive data transmission method of multilink and system
CN105591912B (en) A kind of selection method and device of forward-path
CN104717108B (en) Network bottleneck Bandwidth Measurement Method based on active measurement and inter-packet gap model
CN102946260B (en) Automatic meter reading system and communication link quality detecting method thereof
CN101534249A (en) Method for transmitting data on bound link and network equipment thereof
CN103023716A (en) System and method for monitoring network quality with zero traffic consumption
CN106375161A (en) 10-gigabit Ethernet tester
CN104363181A (en) Traffic transmission control method and device
CN104486167A (en) Concurrence network performance and network trending direction testing method based on MESH network
CN106787215A (en) Intelligent relay protection device information transfer time automatic checkout system and its detection method
CN104038554B (en) Power system high-speed data acquisition communication means and communication equipment based on FPGA
CN104618019A (en) WiFi (wireless fidelity) access system based on visible light transmission and data frame transformation method
CN102726091B (en) Method and device for testing link performance
CN107528667A (en) The method and apparatus that frame data transmission is carried out between proximal device and remote equipment
CN109104479A (en) A kind of acquisition data flow transmission method and system based on multidiameter delay transmission technology
CN107070708A (en) A kind of transformer station process layer network communication performance emulation mode based on OPNET
CN104009878A (en) Method and apparatus for measuring network transmission delay
CN102083094B (en) Interference measuring method and apparatus in wireless communication system
CN105376118B (en) A kind of test method of AFDX interchangers sending performance
CN108769942B (en) Wireless synchronous sampling system and method based on ZIGBEE broadcast and multicast
CN103067223A (en) Peer-to-peer (p2p) testing method based on high-performance network over coax (HINOC)
CN115766506A (en) Communication network quality testing method and device based on FPGA
CN105871629B (en) The method and system of internet of things equipment transmission data
CN107769997A (en) AFDX trade-to products switching technology delay index testing device and method of testing
CN105471776B (en) A kind of method for transmitting signals and device

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

Termination date: 20160315

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