CN102984035A - Loopback test method and system of packet loss probability of network data - Google Patents

Loopback test method and system of packet loss probability of network data Download PDF

Info

Publication number
CN102984035A
CN102984035A CN2013100010827A CN201310001082A CN102984035A CN 102984035 A CN102984035 A CN 102984035A CN 2013100010827 A CN2013100010827 A CN 2013100010827A CN 201310001082 A CN201310001082 A CN 201310001082A CN 102984035 A CN102984035 A CN 102984035A
Authority
CN
China
Prior art keywords
test packet
message
test
register
local device
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
Application number
CN2013100010827A
Other languages
Chinese (zh)
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN2013100010827A priority Critical patent/CN102984035A/en
Publication of CN102984035A publication Critical patent/CN102984035A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a loopback test method and a loopback test system of packet loss probability of network data. The method comprises the steps of: respectively integrating a packet sender for sending a test message in special number and format in an MAC layer on all terminals of a local device; starting a data loopback function between the local device and a remote device, appointing a port to be tested, and sending the test messages in special number to the remote device; receiving a loopback message which is fed back from the remote device to the local device and performing statistics of number of the loopback messages; and calculating the data packet loss probability between the local device and the remote device according to the number of test messages sent by the local device and the number of loopback messages received. The test messages are sent by the packet senders integrated in ports, so that the condition that other ports send the test messages is avoided, and the quality of the packet loss probability test is better.

Description

The loop testing method of network data packet loss and system
Technical field
The present invention relates to network communication field, relate in particular to a kind of loop testing method and system of network data packet loss.
Background technology
Packet loss (packet loss rate) refers to that institute's lost data packets quantity in the network data transmission process accounts for the ratio of the packet sum that sends, and packet loss is for network communicating system, is one to weigh the important parameter of communication quality.In the prior art, comprise the method for data packet transmission packet loss between the multiple network apparatus test, also the corresponding processing method that has produced multiple reply different packet loss situation.
Join shown in Figure 1, for based on EFM OAM(Ethernet in the First Mile OAM) the schematic diagram of packet loss loop-back test system.Wherein, when EFM enables loop fuction, the non-EFM message that the transmit port of local device (Local DTE) sends can by remote equipment (Remote DTE) loopback, afterwards, calculate the packet loss of current tested port by the quantity of the received loopback message of statistics transmit port.Yet, because the test packet (non-EFM message) of the local device in this technology is to transmit by other ports of this equipment, in the case, the situation that " a plurality of other ports send test packet to remote equipment simultaneously " unavoidably occur, this certainly will bring difficulty to the quantity statistics of loopback message, and then affects the calculating of packet loss.
Summary of the invention
The technical problem of solution required for the present invention is to provide a kind of loop testing method of network data packet loss, carry out the transmission of test packet by the device of giving out a contract for a project that is integrated in each port, thereby avoid occurring the situation that a plurality of other ports send test packet, the quality of packet loss test is better.
Correspondingly, the present invention also provides a kind of loop-back test system of network data packet loss.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows:
A kind of loop testing method of network data packet loss comprises the steps: respectively integrated one device of giving out a contract for a project for the test packet that sends specific quantity, specific format of S1, the MAC layer in local device on all of the port; Data loop fuction between S2, unlatching local device and the remote equipment is specified port to be tested, and the device of giving out a contract for a project that port is corresponding thus sends the test packet of specific quantity to remote equipment; S3, receive the loopback message that is fed back to described local device by described remote equipment, and the quantity of adding up described loopback message; The number of the quantity of S4, the test packet that sends according to local device and the loopback message that receives thereof calculates the data packet loss between local device and the remote equipment.
As a further improvement on the present invention, the method specifically comprises: the first register and the second register are set; Wherein, the first register is deposited the enable switch of message transmission and the quantity of required transmission test packet, and the second register is deposited the test packet content of specific format; If it is effective to detect described enable switch, then the message content of the quantity of read test message and specific format sends, and behind test packet of every transmission, the quantity in described the first register is subtracted one, if the quantity in described the first register is zero, close described enable switch to stop to send test packet.
As a further improvement on the present invention, the method also comprises: when test packet occurs, close the function of all forwarding extended formatting messages between basis, remote equipment.
As a further improvement on the present invention, the specific format of described test packet comprises special MAC and specific VLAN.
In addition, the loop-back test system of a kind of network data packet loss of the present invention, comprise local device and the remote equipment that can intercom mutually, wherein, the MAC layer in described local device on all of the port is integrated one device of giving out a contract for a project for the test packet that sends specific quantity, specific format respectively; This system also comprises such as lower unit: packet sending unit, be used for to open the data loop fuction between local device and the remote equipment, specifies port to be tested, and the test packet of device to remote equipment transmission specific quantity of giving out a contract for a project corresponding to port thus; Message loopback unit, be used for to receive the loopback message that is fed back to described local device by described remote equipment, and the quantity of adding up described loopback message; And the packet loss computing unit, be used for the quantity of the test packet that sends according to local device and the number of the loopback message that receives, calculate the data packet loss between local device and the remote equipment.
As a further improvement on the present invention, this system specifically is used for: the first register and the second register are set; Wherein, the first register is deposited the enable switch of message transmission and the quantity of required transmission test packet, and the second register is deposited the test packet content of specific format; If it is effective to detect described enable switch, then the message content of the quantity of read test message and specific format sends, and behind test packet of every transmission, the quantity in described the first register is subtracted one, if the quantity in described the first register is zero, close described enable switch to stop to send test packet.
As a further improvement on the present invention, this system also is used for: when test packet occurs, close the function of all forwarding extended formatting messages between basis, remote equipment.
As a further improvement on the present invention, the specific format of described test packet comprises special MAC and specific VLAN.
Than prior art, the present invention carries out the transmission of test packet by the device of giving out a contract for a project that is integrated in each port, thereby avoids the situation that a plurality of other ports send test packet occurring, so that the quality of packet loss test is better.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the specific embodiment of the invention or prior art, the below will do to introduce simply to the accompanying drawing of required use in the specific embodiment of the invention or existing the description, apparently, following accompanying drawing only is a part of accompanying drawing of the present invention, for those of ordinary skills, under the prerequisite of not making creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of the loop-back test system of packet loss in the prior art;
Fig. 2 is the flow chart of the loop testing method of network data packet loss in the embodiment of the invention;
Fig. 3 is the schematic diagram of the loop-back test system of packet loss in the embodiment of the invention;
Fig. 4 is the cell schematics of the loop-back test system of network data packet loss in the embodiment of the invention.
Embodiment
Describe the present invention below with reference to embodiment shown in the drawings.But these execution modes do not limit the present invention, and based on various embodiments of the present invention, those of ordinary skill in the art all should be included in protection scope of the present invention not making the every other embodiment that obtains under the prerequisite of creative work.
With reference to Fig. 2 and shown in Figure 3, in one embodiment of the invention, the loop testing method of described network data packet loss comprises the steps:
S1, the MAC layer in local device (Local DTE) on all of the port be integrated one device of giving out a contract for a project for the test packet that sends specific quantity, specific format respectively; Wherein, originally all be a kind of data terminal equipment (Data Terminal Equipment, DTE) to equipment.EFM OAM(Ethernet in the First Mile OAM) realization of function is based upon on the basis of EFM OAM connection, EFM OAM establishment of connection process is also referred to as the Discovery stage, and namely local device is found remote equipment, also the process of dialogue is stablized in foundation with it.
Wherein, the present invention is that MAC layer corresponding to each port in the local device all arranges the device of giving out a contract for a project, when so needing again to test the transfer of data packet loss of a certain port, just only need the forwarding by the test packet of such give out a contract for a project device specific format, specific quantity, and need not to carry out message repeating by other ports.Certainly, local terminal as herein described, opposite equip. suppose that for comparatively speaking two equipment are A and B, and when A sent message to B, A was called local terminal, and B is called the opposite end; If but when B sent message to A, just A is called the opposite end, and B was called local terminal, that is to say, in order to satisfy testing requirement, such device of giving out a contract for a project can be set all on each port in above-mentioned A, B equipment.
Wherein, in the present embodiment, the operation principle of device of giving out a contract for a project is as follows: be provided with two registers in chip, first register is deposited the quantity of the test packet of the enable switch that sends message and required transmission, and second register deposited the content (specific format) of reporting and submitting message.After this, whether the enable switch that hardware can detect first register is effective, if effectively then read the quantity that sends message and the message content in the second register sends, the quantity of giving out a contract for a project in corresponding register of every transmission can subtract one, quantity is 0 if give out a contract for a project, then enable switch is closed, to stop the transmission of test packet.Wherein, the form of test packet of the present invention comprises specific MAC and specific VLAN, and the realization of specific MAC, VLAN is to realize by the message content that disposes in the second register.
Data loop fuction between S2, unlatching local device (Local DTE) and the remote equipment (Remote DTE) is specified port to be tested, and the device of giving out a contract for a project that port is corresponding thus sends the test packet of specific quantity N to remote equipment; Wherein, when loop fuction referred to that the DTE entity under the aggressive mode sends special packet to far-end, far-end DTE entity was transmitted not according to its destination address after receiving message, but message is returned to local terminal DTE entity by former road.In the present embodiment, after sending above-mentioned test packet by certain order, system closes the function that all send other messages from acquiescence, to be convenient to number of dropped packets purpose statistics.
S3, receive the loopback message that is fed back to described local device by described remote equipment, and the quantity of adding up described loopback message; The test packet of local device should turn back to local device (being called the loopback message) by former road, by its quantity of counters count M after loop fuction is opened.
The number of the quantity of S4, the test packet that sends according to local device and the loopback message that receives thereof calculates the data packet loss between local device and the remote equipment.Packet loss is: (N-M)/and N.
Join shown in Figure 4, in one embodiment of the invention, the loop-back test system of a kind of network data packet loss of the present invention, comprise local device and the remote equipment that can intercom mutually, wherein, integrated one device of giving out a contract for a project that be used for to send the test packet of specific quantity, specific format respectively of the MAC layer on all of the port in described local device; This system also comprises such as lower unit:
Packet sending unit 101, be used for to open the data loop fuction between local device and the remote equipment, specifies port to be tested, and the test packet of device to remote equipment transmission specific quantity of giving out a contract for a project corresponding to port thus; Wherein, when loop fuction referred to that the DTE entity under the aggressive mode sends special packet to far-end, far-end DTE entity was transmitted not according to its destination address after receiving message, but message is returned to local terminal DTE entity by former road.In the present embodiment, after sending above-mentioned test packet by certain order, system closes the function that all send other messages from acquiescence, to be convenient to number of dropped packets purpose statistics.
Message loopback unit 102, be used for to receive the loopback message that is fed back to described local device by described remote equipment, and the quantity of adding up described loopback message; And
Packet loss computing unit 103, be used for the quantity of the test packet that sends according to local device and the number of the loopback message that receives, calculate the data packet loss between local device and the remote equipment.
In this system, the specific works principle of device of giving out a contract for a project is as follows: be provided with two registers in chip, first register is deposited the quantity of the test packet of the enable switch that sends message and required transmission, and second register deposited the content (specific format) of reporting and submitting message.After this, whether the enable switch that hardware can detect first register is effective, if effectively then read the quantity that sends message and the message content in the second register sends, the quantity of giving out a contract for a project in corresponding register of every transmission can subtract one, quantity is 0 if give out a contract for a project, then enable switch is closed, to stop the transmission of test packet.Wherein, the form of test packet of the present invention comprises specific MAC and specific VLAN, and the realization of specific MAC, VLAN is to realize by the message content that disposes in the second register.
It is worth mentioning that the present invention puts down in writing concrete technical characterictic and function among the embodiment of loop-back test system of relevant network data packet loss, please refer to the embodiment of the loop testing method of above-mentioned related network data packet loss, no longer given unnecessary details at this.
In sum, the present invention carries out the transmission of test packet by the device of giving out a contract for a project that is integrated in each port, sends the situation of test packet thereby avoid occurring a plurality of other ports, and can automatically carry out the statistics of packet loss, so that the quality of packet loss test is better.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each execution mode of the application or execution mode.
Device embodiments described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation of not paying creative work.
Be to be understood that, although this specification is described according to execution mode, but be not that each execution mode only comprises an independently technical scheme, this narrating mode of specification only is for clarity sake, those skilled in the art should make specification as a whole, technical scheme in each execution mode also can through appropriate combination, form other execution modes that it will be appreciated by those skilled in the art that.
Above listed a series of detailed description only is specifying for feasibility execution mode of the present invention; they are not to limit protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill spirit of the present invention does and all should be included within protection scope of the present invention.

Claims (8)

1. the loop testing method of a network data packet loss is characterized in that, it comprises the steps:
S1, the MAC layer in local device on all of the port be integrated one device of giving out a contract for a project for the test packet that sends specific quantity, specific format respectively;
Data loop fuction between S2, unlatching local device and the remote equipment is specified port to be tested, and the device of giving out a contract for a project that port is corresponding thus sends the test packet of specific quantity to remote equipment;
S3, receive the loopback message that is fed back to described local device by described remote equipment, and the quantity of adding up described loopback message;
The number of the quantity of S4, the test packet that sends according to local device and the loopback message that receives thereof calculates the data packet loss between local device and the remote equipment.
2. method according to claim 1 is characterized in that, the method specifically comprises:
The first register and the second register are set; Wherein, the first register is deposited the enable switch of message transmission and the quantity of required transmission test packet, and the second register is deposited the test packet content of specific format;
If it is effective to detect described enable switch, then the message content of the quantity of read test message and specific format sends, and behind test packet of every transmission the quantity in described the first register is subtracted one,
If the quantity in described the first register is zero, close described enable switch to stop to send test packet.
3. method according to claim 1 is characterized in that, the method also comprises:
When test packet occurs, close the function of all forwarding extended formatting messages between basis, remote equipment.
4. method according to claim 1 is characterized in that, the specific format of described test packet comprises special MAC and specific VLAN.
5. the loop-back test system of a network data packet loss, it is characterized in that, it comprises local device and the remote equipment that can intercom mutually, and wherein, the MAC layer in described local device on all of the port is integrated one device of giving out a contract for a project for the test packet that sends specific quantity, specific format respectively;
This system also comprises such as lower unit:
Packet sending unit, be used for to open the data loop fuction between local device and the remote equipment, specifies port to be tested, and the test packet of device to remote equipment transmission specific quantity of giving out a contract for a project corresponding to port thus;
Message loopback unit, be used for to receive the loopback message that is fed back to described local device by described remote equipment, and the quantity of adding up described loopback message; And
The packet loss computing unit, be used for the quantity of the test packet that sends according to local device and the number of the loopback message that receives, calculate the data packet loss between local device and the remote equipment.
6. system according to claim 5 is characterized in that, this system specifically is used for:
The first register and the second register are set; Wherein, the first register is deposited the enable switch of message transmission and the quantity of required transmission test packet, and the second register is deposited the test packet content of specific format;
If it is effective to detect described enable switch, then the message content of the quantity of read test message and specific format sends, and behind test packet of every transmission the quantity in described the first register is subtracted one,
If the quantity in described the first register is zero, close described enable switch to stop to send test packet.
7. system according to claim 5 is characterized in that, this system also is used for:
When test packet occurs, close the function of all forwarding extended formatting messages between basis, remote equipment.
8. system according to claim 5 is characterized in that, the specific format of described test packet comprises special MAC and specific VLAN.
CN2013100010827A 2013-01-04 2013-01-04 Loopback test method and system of packet loss probability of network data Pending CN102984035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100010827A CN102984035A (en) 2013-01-04 2013-01-04 Loopback test method and system of packet loss probability of network data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100010827A CN102984035A (en) 2013-01-04 2013-01-04 Loopback test method and system of packet loss probability of network data

Publications (1)

Publication Number Publication Date
CN102984035A true CN102984035A (en) 2013-03-20

Family

ID=47857796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100010827A Pending CN102984035A (en) 2013-01-04 2013-01-04 Loopback test method and system of packet loss probability of network data

Country Status (1)

Country Link
CN (1) CN102984035A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997433A (en) * 2014-05-16 2014-08-20 瑞斯康达科技发展股份有限公司 Packet loss rate measuring method, device and system
WO2016074366A1 (en) * 2014-11-12 2016-05-19 中兴通讯股份有限公司 Method and device for testing multicast function of access device
CN106789430A (en) * 2016-12-26 2017-05-31 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN107888457A (en) * 2017-12-08 2018-04-06 新华三技术有限公司 Port method for detecting packet loss, device and communication equipment
CN109218119A (en) * 2017-06-30 2019-01-15 迈普通信技术股份有限公司 Network Packet Loss diagnostic method and the network equipment
CN112073128A (en) * 2020-08-18 2020-12-11 江苏创通电子股份有限公司 Communication equipment performance test method and device
CN112468999A (en) * 2020-12-16 2021-03-09 国铁吉讯科技有限公司 Link quality monitoring method and system for communication system
WO2021114722A1 (en) * 2019-12-12 2021-06-17 苏州浪潮智能科技有限公司 Switch, loopback diagnosis method and apparatus for management network port thereof, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972219A (en) * 2005-11-23 2007-05-30 杭州华为三康技术有限公司 Network performance test method, system and network device
CN102315964A (en) * 2011-08-19 2012-01-11 华为技术有限公司 Loopback method for testing message and exchange device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972219A (en) * 2005-11-23 2007-05-30 杭州华为三康技术有限公司 Network performance test method, system and network device
CN102315964A (en) * 2011-08-19 2012-01-11 华为技术有限公司 Loopback method for testing message and exchange device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997433A (en) * 2014-05-16 2014-08-20 瑞斯康达科技发展股份有限公司 Packet loss rate measuring method, device and system
CN103997433B (en) * 2014-05-16 2017-10-31 瑞斯康达科技发展股份有限公司 A kind of packet loss rate measurement method, measuring apparatus and measuring system
WO2016074366A1 (en) * 2014-11-12 2016-05-19 中兴通讯股份有限公司 Method and device for testing multicast function of access device
CN106789430A (en) * 2016-12-26 2017-05-31 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN106789430B (en) * 2016-12-26 2019-11-05 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN109218119A (en) * 2017-06-30 2019-01-15 迈普通信技术股份有限公司 Network Packet Loss diagnostic method and the network equipment
CN109218119B (en) * 2017-06-30 2020-11-27 迈普通信技术股份有限公司 Network packet loss diagnosis method and network equipment
CN107888457A (en) * 2017-12-08 2018-04-06 新华三技术有限公司 Port method for detecting packet loss, device and communication equipment
WO2021114722A1 (en) * 2019-12-12 2021-06-17 苏州浪潮智能科技有限公司 Switch, loopback diagnosis method and apparatus for management network port thereof, and storage medium
CN112073128A (en) * 2020-08-18 2020-12-11 江苏创通电子股份有限公司 Communication equipment performance test method and device
CN112468999A (en) * 2020-12-16 2021-03-09 国铁吉讯科技有限公司 Link quality monitoring method and system for communication system

Similar Documents

Publication Publication Date Title
CN102984035A (en) Loopback test method and system of packet loss probability of network data
CN102571479B (en) Method, device and system for measuring time delay
CN103236956A (en) Method and switch for testing throughput of communication equipment
CN103618646B (en) Network performance, packet loss, time delay measuring method and network edge node equipment
US8654654B2 (en) Traffic distribution control
CN105634840A (en) Method and device for measuring packet loss
CN103107924A (en) Testing method for performance of network device with high-rate port by utilizing low-rate port
CN103416022A (en) In-service throughput testing in distributed router/switch architectures
CN107547430A (en) A kind of file transmitting method and device
CN105743816B (en) A kind of link aggregation method and device
CN110061892A (en) Method, system, storage medium and the electronic equipment of real-time display Network status
CN102201949B (en) System and method for testing network equipment forwarding performance
CN102209003A (en) Link detection method, system and loopback initiation equipment
US8966321B2 (en) Logical port and layer protocol test configuration resource manager
CN110784378B (en) Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier)
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN102025571B (en) The method and apparatus that multipoint link packet loss is measured
CN105376118B (en) A kind of test method of AFDX interchangers sending performance
CN102497296A (en) Method for testing normality of network card receiving and sending packets
CN106506273B (en) Bandwidth measurement method, device and system
CN107846301B (en) End-to-end service test system and method
CN102291206B (en) Test method, device and system of uploading and downloading speed of 3G interface
CN113037581B (en) Backboard channel testing method and device, board card and computer readable storage medium
CN103580959A (en) Distributed statistical reporting implementation method
CN202172422U (en) Network service provider double exit connecting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130320