CN1525693A - Statistic method for packet dropping number of communication device - Google Patents

Statistic method for packet dropping number of communication device Download PDF

Info

Publication number
CN1525693A
CN1525693A CNA031069282A CN03106928A CN1525693A CN 1525693 A CN1525693 A CN 1525693A CN A031069282 A CNA031069282 A CN A031069282A CN 03106928 A CN03106928 A CN 03106928A CN 1525693 A CN1525693 A CN 1525693A
Authority
CN
China
Prior art keywords
test
test pack
communication apparatus
port
pack
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.)
Granted
Application number
CNA031069282A
Other languages
Chinese (zh)
Other versions
CN100373870C (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
Priority to CNB031069282A priority Critical patent/CN100373870C/en
Publication of CN1525693A publication Critical patent/CN1525693A/en
Application granted granted Critical
Publication of CN100373870C publication Critical patent/CN100373870C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is a statistic method of lost package in communication device. It sets measuring package transmitting statistic counter at the measuring transmitting end of measurer correspondent to different output port of communication device, it sets measuring package receiving statistic counter at the measuring package receiving end correspondent to different input port of communication device; at each measuring package transmitting end, the packages are transmitted from the correpondnet input port of communication device to each output port, the number in each transmission statistic counter are filled into the measuring package which are transmitted to correspondent output port; the receiving end receives the package from correspondent output port, compares the receiving number and the transmission number, acquires the number of lost package. The invention provides a statistic method for lost package in measuring device, thus it upgrades the reliability and precision of measurement.

Description

Communication apparatus number of dropped packets quantitative statistics method
Technical field
The present invention relates to detection, relate in particular to a kind of method of statistics network communication apparatus packet loss quantity digital information transmission.
Background technology
Network communication apparatus has high and low end router, ATM switch, Ethernet switch, three-tier switch etc., when network communication apparatus is tested, the packet loss test of equipment is an important test item, but use existing communication apparatus tester, when the diverse network communication apparatus is carried out the packet loss test, all can't guarantee real-time.The existing employed method of tester, be after transmitting terminal sends the test pack of certain hour, stop the transmission of test pack, after waiting for the regular hour again (this time can guarantee that communication apparatus is sent to receiving port to test pack), check test pack that is sent and the test pack sum that receives then, both differences are exactly the number of dropped packets of communication apparatus in test process.Make and test packet loss in this way, after stopping to send with regard to the test pack that must wait until all of the port, just can calculate number of dropped packets.If to the test that a communication apparatus carried out several days even a few week is long-time, after needing for a long time, after just test pack sends and finishes, just can know the number of dropped packets of communication apparatus, but also not know that packet loss took place in that time period.
Be illustrated in figure 1 as existing packet loss test philosophy schematic diagram, generally have the polylith test card in the network communication apparatus tester, every test card has one or more test port (each port comprises the reception and the transmission of test pack) usually.Fig. 1 left side is the communication apparatus tester, for convenience, supposes that the communication apparatus tester only comprises two test cards of A, D, and every test card only provides a test port.Fig. 1 right side is a tested network communication apparatus, for convenience of description, supposes that communication apparatus has only A, B, C, four ports of D.* _ i is the input of port, * _ o be port output (* can represent A respectively, B, C, D).
Understand for convenience, the lower right of test pack quantity N has indicated the attribute of test pack in Fig. 1.Be illustrated in figure 2 as the key diagram of test pack quantity parameter, N is Number, the quantity of expression test pack; 1 is the attribute of test pack, can be t, r, and l, s, the test pack that sends of expression respectively, the test pack of reception, the test pack on transmission line is stored in the test pack in the equipment under test; 2 is the transmission source port of test pack, can be a, b, c, d, if for x the transmission source port of representing test pack for arbitrarily; 3 is the purpose receiving port of test pack, can be a, b, c, d, if for x the reception destination interface of representing test pack for arbitrarily.
In the present tester, generally the transmit port at every test card all can have a statistical counter that sends test pack, and the statistical counter of an acceptance test bag is arranged at receiving terminal.As test card A among Fig. 1 transmitting counter is arranged, statistics mails to the test pack quantity Ntax of other output port by the A input port, and the count pick up device is arranged, and statistics is mail to the test pack quantity Nrxa of A output port by other each input port.
With Fig. 1 Test Networking is example, introduces the packet loss statistical method of present test pack.Suppose that test card A is in T sometime, having sent quantity by the A input port of communication apparatus is that the test pack of Ntad is to the D output port, suppose that test card D is in identical time T, by communication apparatus D input port sent quantity be the test pack of Ntdd to the D output port, and the test pack quantity that can real-time statistics receives at the D output port at test card.Because at this moment in the T, some test pack on the line, perhaps in the memory of network communication apparatus: the test pack quantity on the line that the A input port mails to the D output port is Nlad, and the test pack quantity that is stored in the network communication apparatus memory is Nsad.The test pack quantity on the line that the D input port mails to the D output port is Nldd, and the test pack quantity that is stored in the network communication apparatus memory is Nsdd.If packet loss not in whole test process, the quantity of test pack constantly will satisfy following formula at T so:
Ntad+Ntdd=Nrad+Nrdd+Nlad+Nsad+Nldd+Nsdd;
If packet loss is arranged, the number of dropped packets of being calculated just is:
N=(Ntad+Ntdd)-(Nrad+Nrdd+Nlad+Nsad+Nldd+Nsdd);
Because the test pack number (Nlad+Nsad+Nldd+Nsdd) that is present in circuit and the communication apparatus memory can not be determined, so prior art is when the test packet loss, need close the transmit port of test card, wait for the t time (t is a second level), after being present in test pack in circuit and the communication apparatus memory and being received the port receiving and counting fully, carrying out packet loss again calculates, at this moment the value of (Nlad+Nsad+Nldd+Nsdd) is zero, and the packet loss sum just is in the whole test process so: N=(Ntad+Ntdd)-(Nrad+Nrdd).
When the test that receives was surrounded by contrary continuous phenomenon, mistake can appear in the statistics of number of dropped packets, so in actual applications, also needs to increase contrary continuous testing circuit, guaranteed not have to export under the contrary continuous situation at test pack the packet loss quantity of test pack.
From top testing procedure is described, have the shortcoming of method of testing as can be seen now:
1, after the test pack that must stop all test cards sends, just can count the packet loss sum of equipment under test, the packet loss quantity that can not accomplish the real-time statistics equipment under test.
2, in statistic processes, must stop the transmission of data, make test not link up and carry out.This mode has been destroyed the test traffic continuity, greatly reduces reliability and accuracy to the test of communication apparatus.
Summary of the invention
Technical problem to be solved by this invention is: overcome the packet loss quantity that the test of existing packet loss can't the real-time statistics equipment under test, and the test deficiency that can not link up and carry out, provide a kind of under the situation that uninterrupted test pack sends, the method of real-time statistics equipment under test packet loss quantity, thus the reliability and the accuracy of test improved.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
This communication apparatus number of dropped packets quantitative statistics method may further comprise the steps:
A, the test pack transmitting terminal of tester respectively the different output ports of corresponding communication apparatus test pack be set send statistical counter, the test pack receiving terminal of tester respectively the different input ports of corresponding communication apparatus test pack receiving and counting counter is set;
B, at described each test pack transmitting terminal, test pack is sent to each output port from the respective input mouth of communication apparatus, each transmission number that sends the statistical counter statistics is filled into respectively in the test pack that mails to the corresponding output end mouth;
C, described each test pack receiving terminal be from corresponding output port acceptance test bag, and the transmission number that carries in the reception number of each receiving and counting counters count and the test pack is compared, and draws the number of dropped packets of each input port to the corresponding output end mouth respectively.
All input ports of communication apparatus connect the different test pack transmitting terminals of tester respectively, all output ports connect the different test pack receiving terminals of tester respectively, and the input port of test gained is the packet loss sum of communication apparatus to the summation of output port number of dropped packets.
Comprise the polylith test card in the described tester, every test card provides one or more test ports, and each test port comprises a test pack transmitting terminal and corresponding test pack receiving terminal.
Among the described step B, each transmission number that sends the statistical counter statistics is filled in the data field of test pack.
Beneficial effect of the present invention is: the invention provides a kind of under the situation that uninterrupted test pack sends, the method of real-time statistics equipment under test packet loss quantity, the result of statistics can not be subjected to the influence of circuit and network equipment memory build-in test bag number (Nlad+Nsad+Nldd+Nsdd), feasible test can link up and carry out, improved the reliability and the accuracy of test, can be applicable in the test card or tester of diverse network communication apparatus.
Description of drawings
Fig. 1 is existing packet loss test philosophy schematic diagram;
Fig. 2 is test pack quantity parameter declaration figure;
Fig. 3 is the transmission statistical counter structural representation among the test card A of the present invention;
Fig. 4 is the receiving and counting counter structure schematic diagram among the test card A of the present invention;
The test pack data structure schematic diagram that Fig. 5 sends for the present invention;
Fig. 6 is a packet loss test philosophy schematic diagram of the present invention.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
The technology of the present invention is primarily aimed at the shortcoming of existing network communication apparatus packet loss test, under the situation that uninterrupted test pack sends, can accomplish the packet drop of real-time statistics equipment under test.Transmitting terminal at test card increases the counter of adding up respectively by different receiving ports (being the network communication apparatus output port), carries out the statistics of test pack according to different receiving ports; Increase the counter of adding up respectively according to different transmit ports (being the network communication apparatus input port) at receiving terminal, carry out test pack received quantity statistics according to different transmit ports; At transmitting terminal, the test pack of filling in the test pack according to the various objectives port statistics sends number.Transmission test pack sum and receiving terminal by the various objectives port that carries in the test pack calculate this receiving port packet loss sum by the total difference of acceptance test bag statistics of different transmit ports, and the summation of all receiving port number of dropped packets is the packet loss sum of network communication apparatus.
Below technical solution of the present invention is described in detail:
One, at first carries out the modification of transmitting and receiving terminal statistical counter
To being used in each test card to sending the counter that the overall budget number is added up, copy according to the number of communication apparatus receiving port.There is N as the receiving port number, so just need N transmission statistical counter and add up mailing to different destination interface test pack numbers respectively.As equipment under test N test port arranged, counter Ni just statistics mails to the transmission test pack sum that receiving port is Ni, 1~N during the scope of i.As shown in Figure 3, be example with test card A, because communication apparatus has 4 receiving ports, be 1 transmission statistical counter copy among the original test card A 4 so just, adding up receiving port respectively is A, B, C, D test pack sum.
In like manner to being used in each test card to receiving the counter that the overall budget number is added up, copy according to the number of communication apparatus transmit port.At the test card receiving terminal, there be N as the transmit port number, so just need N receiving and counting counter, statistics is from the test pack number of different transmit ports.Counter Ni just statistics is received from the transmission test pack sum that port is Ni, and the scope of i is 1~N.As shown in Figure 4, be example with test card A, because communication apparatus has 4 transmit ports, be an original receiving and counting counter copy 4 just at the test card receiver side so, adding up transmit port respectively is A, B, C, D test pack sum.
The transmission receiving and counting counter of other test card in the tester is also made this modification according to test card A.
Two, fill the test pack sum that mails to the various objectives port in the data field of test pack
Be illustrated in figure 5 as the test pack data structure schematic diagram of transmission, when test card when sending test pack, the value that the test pack that sends to the various objectives port is sent statistical counter is filled in the data field of test pack.Suppose that test card A is sending the D output port of a test pack to network communication apparatus, statistics transmitting counter A-sometime〉value of D will be filled in the data field of test pack (A-〉D be meant that test pack mails to the D port by the A port).
Three, calculate the number of dropped packets that can draw receiving port in real time by difference at the test card receiving terminal
As shown in Figure 6, suppose that tester has used two test card A, D, the configuration testing card makes test card A, D send test pack to communication apparatus D port respectively, when test card D after the D of network communication apparatus port receives test pack, will according to from different transmit ports (being the communication apparatus input port) count respectively.If test card D has received the test pack from test card A, owing to carried A-in the test pack〉test pack of D sends number, and A-is arranged again among the test card D〉the receiving and counting data of D, both differences are A-〉number of dropped packets of D.In like manner can obtain D-〉number of dropped packets of D.A-〉number of dropped packets and the D-of D D number of dropped packets and just be the packet loss sum of the tested network equipment in this is tested.As can be seen, the statistics of number of dropped packets is not subjected to the influence of circuit and network equipment memory build-in test bag number (Nlad+Nsad+Nldd+Nsdd) at all in this method of testing, can accomplish to send under the situation of test pack not stopping, and accomplishes that real-time statistics reports.
Four, draw each receiving port number of dropped packets and, be the packet loss sum of equipment under test
Has only 1 communication apparatus receiving port D among Fig. 6, so just be the number of dropped packets of this equipment under test in testing by the number of dropped packets of test card D statistics.When each port all being disposed a test card, promptly dispose 4 test cards, every test card all has when the test pack of each port sends and receives, as long as read out the packet loss statistics sum of each piece test card, they and be the packet loss sum of whole network communication apparatus in test.
The present invention is suitable for testing the network communication apparatus of any port number equally, utilizes the present invention, can need not to stop the transmission of test pack, has realized the real-time statistics of testing equipment number of dropped packets.
Certainly, a test card in the tester also can have a plurality of test ports, each test port comprises the transmitting terminal and the receiving terminal of test pack, utilize a test card also can realize the present invention like this, those skilled in the art do not depart from the scope of the present invention and spirit, can have the various deformation scheme to realize the present invention, appended claim comprises these distortion.

Claims (4)

1. communication apparatus number of dropped packets quantitative statistics method may further comprise the steps:
A, the test pack transmitting terminal of tester respectively the different output ports of corresponding communication apparatus test pack be set send statistical counter, the test pack receiving terminal of tester respectively the different input ports of corresponding communication apparatus test pack receiving and counting counter is set;
B, at described each test pack transmitting terminal, test pack is sent to each output port from the respective input mouth of communication apparatus, each transmission number that sends the statistical counter statistics respectively
Be filled in the test pack that mails to the corresponding output end mouth;
C, described each test pack receiving terminal be from corresponding output port acceptance test bag, and the transmission number that carries in the reception number of each receiving and counting counters count and the test pack is compared, and draws the number of dropped packets of each input port to the corresponding output end mouth respectively.
2. communication apparatus number of dropped packets quantitative statistics method according to claim 1, it is characterized in that: all input ports of communication apparatus connect the different test pack transmitting terminals of tester respectively, all output ports connect the different test pack receiving terminals of tester respectively, and the input port of test gained is the packet loss sum of communication apparatus to the summation of output port number of dropped packets.
3. communication apparatus number of dropped packets quantitative statistics method according to claim 1 and 2, it is characterized in that: comprise the polylith test card in the described tester, every test card provides one or more test ports, and each test port comprises a test pack transmitting terminal and corresponding test pack receiving terminal.
4. communication apparatus number of dropped packets quantitative statistics method according to claim 1 is characterized in that: among the described step B, each transmission number that sends the statistical counter statistics is filled in the data field of test pack.
CNB031069282A 2003-02-26 2003-02-26 Statistic method for packet dropping number of communication device Expired - Fee Related CN100373870C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031069282A CN100373870C (en) 2003-02-26 2003-02-26 Statistic method for packet dropping number of communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031069282A CN100373870C (en) 2003-02-26 2003-02-26 Statistic method for packet dropping number of communication device

Publications (2)

Publication Number Publication Date
CN1525693A true CN1525693A (en) 2004-09-01
CN100373870C CN100373870C (en) 2008-03-05

Family

ID=34282835

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031069282A Expired - Fee Related CN100373870C (en) 2003-02-26 2003-02-26 Statistic method for packet dropping number of communication device

Country Status (1)

Country Link
CN (1) CN100373870C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404170A (en) * 2011-11-18 2012-04-04 福建星网锐捷网络有限公司 Detection method, device and system of message loss
CN102404165A (en) * 2011-09-06 2012-04-04 天津汇讯视通科技有限公司 Automatic communication test method of ball holder circuit
CN102546081A (en) * 2010-12-21 2012-07-04 中兴通讯股份有限公司 Packet loss detection method, system and media client
CN102752169A (en) * 2012-06-25 2012-10-24 中兴通讯股份有限公司 Transmission monitoring method and device
CN103209103A (en) * 2013-03-25 2013-07-17 华为技术有限公司 Testing method and testing apparatus of network device
WO2018214057A1 (en) * 2017-05-24 2018-11-29 深圳市乃斯网络科技有限公司 Calculation method and system for packet loss in network link

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807156B1 (en) * 2000-11-07 2004-10-19 Telefonaktiebolaget Lm Ericsson (Publ) Scalable real-time quality of service monitoring and analysis of service dependent subscriber satisfaction in IP networks
US6930982B2 (en) * 2000-12-12 2005-08-16 Cisco Technology, Inc. Devices, software and methods for measuring packet loss burstiness to determine quality of voice data transmission through a network
JP2002314597A (en) * 2001-04-09 2002-10-25 Mitsubishi Electric Corp Voice packet communication equipment
US7020093B2 (en) * 2001-05-30 2006-03-28 Intel Corporation Delivery of streaming media

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546081A (en) * 2010-12-21 2012-07-04 中兴通讯股份有限公司 Packet loss detection method, system and media client
CN102546081B (en) * 2010-12-21 2015-09-16 中兴通讯股份有限公司 Method for detecting packet loss, system and media client
CN102404165A (en) * 2011-09-06 2012-04-04 天津汇讯视通科技有限公司 Automatic communication test method of ball holder circuit
CN102404170A (en) * 2011-11-18 2012-04-04 福建星网锐捷网络有限公司 Detection method, device and system of message loss
CN102404170B (en) * 2011-11-18 2014-01-22 福建星网锐捷网络有限公司 Detection method, device and system of message loss
CN102752169A (en) * 2012-06-25 2012-10-24 中兴通讯股份有限公司 Transmission monitoring method and device
WO2014000509A1 (en) * 2012-06-25 2014-01-03 中兴通讯股份有限公司 Transmission monitoring method and device
CN102752169B (en) * 2012-06-25 2016-06-15 中兴通讯股份有限公司 Transmitting, monitoring method and device
US9432275B2 (en) 2012-06-25 2016-08-30 Zte Corporation Transmission monitoring method and device
CN103209103A (en) * 2013-03-25 2013-07-17 华为技术有限公司 Testing method and testing apparatus of network device
CN103209103B (en) * 2013-03-25 2015-12-23 华为技术有限公司 The method of testing of the network equipment and device
WO2018214057A1 (en) * 2017-05-24 2018-11-29 深圳市乃斯网络科技有限公司 Calculation method and system for packet loss in network link

Also Published As

Publication number Publication date
CN100373870C (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN101729197B (en) Method, device and system for detecting packet loss rate
KR101298407B1 (en) Method and apparatus for transmitting data packet, and method and apparatus for receiving data packet
CN1933429A (en) Time delay characteristic measuring method in data communication network
EP0248190A2 (en) Method and apparatus for enhancing the operating capabilities of a telephone switching system
US6480892B1 (en) Apparatus and method for inserting predetermined packet loss into a data flow
CN1842033A (en) Method for monitoring frame loss rate in multi protocol label exchange network
CN101964727B (en) Method and device for measuring available bandwidth by using mixed messages
CN1759566A (en) Method for evaluating the bandwith of a digital link
CN103947191A (en) Video reception terminal, home gateway device, quality management system, and quality deterioration isolation system
CN101136806B (en) Label VLAN based switching chip port detecting method and apparatus
CN1525693A (en) Statistic method for packet dropping number of communication device
CN105897599A (en) Communication apparatus, communication system, and communication method
CN1645823A (en) Service disruption time determination apparatus and method therefor
US20020091495A1 (en) Monitoring traffic in telecommunications networks
CN1901484A (en) Measurement system and method of measuring a transit metric
CN1829972B (en) Method and apparatus for providing tandem connection, performance monitoring, and protection architectures over Ethernet protocols
CN110248379A (en) The performance test methods and device of base station in WLAN
CN1164065C (en) Universal protocol testing method for embedded system
CN1815976A (en) Apparatus and method for low cost, multi-port protocol analysis and monitoring
CN101582738B (en) Device and method for measuring frame error rate in transmission link
CN101141351B (en) Method of settling frame loss of frequency offset
CN1885797A (en) Communication link testing method
ITTO20010525A1 (en) TRANSMISSION PROCEDURE, FOR EXAMPLE FOR THE DIVIDED TRANSMISSION OF AUDIOVISUAL OR MULTIMEDIA FLOWS, TRANSMISSION SYSTEM, TRANSMISSION
JP2001094573A (en) Instrument for measuring quality of traffic
CN1697556A (en) Method for transferring status report

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080305

Termination date: 20160226