CN107911263A - It is a kind of to measure ethernet delay and the message of congestion at the same time - Google Patents

It is a kind of to measure ethernet delay and the message of congestion at the same time Download PDF

Info

Publication number
CN107911263A
CN107911263A CN201711184542.9A CN201711184542A CN107911263A CN 107911263 A CN107911263 A CN 107911263A CN 201711184542 A CN201711184542 A CN 201711184542A CN 107911263 A CN107911263 A CN 107911263A
Authority
CN
China
Prior art keywords
value
time
message
test packet
quantitative
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.)
Withdrawn
Application number
CN201711184542.9A
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 CN201711184542.9A priority Critical patent/CN107911263A/en
Publication of CN107911263A publication Critical patent/CN107911263A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Landscapes

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

Abstract

The present invention provides a kind of Network status test method and device for Ethernet, in this method and device, test packet quantity and the information of time can be included at the same time in the test packet transmitted by transmitting terminal to receiving terminal, and include test bag quantity in the answer message transmitted by receiving terminal to transmitting terminal, reply message amount and the information of time, so as to which transmitting terminal can obtain the packet loss of the Ethernet and the information of time delay at the same time, so that network administrator can be informed in the change situation of synchronization packet loss and time delay, and the quantity of test bag can be reduced, reduce the burden of Ethernet.

Description

It is a kind of to measure ethernet delay and the message of congestion at the same time
Technical field
The present invention relates to network communication technology field, more particularly to a kind of ethernet delay and congestion of can measuring at the same time Message.
Background technology
Ethernet has the advantages that easy-to-use, cheap, it has been obtained for being widely applied in a local network;At present, With gigabit, the maturation of ten thousand mbit ethernet technologies, Ethernet starts to be applied in Metropolitan Area Network (MAN) and wide area network field.
Ethernet is initially LAN and designs, since LAN has possessed higher reliability and stability in itself, because This is at the beginning of Ethernet is designed and does not set up the mechanism of management service.And relative to LAN, Metropolitan Area Network (MAN) and wide area network are in link It is all rapid in length and network size to expand, easily break down and the problem of be difficult positioning to failure so as to cause.In network In, message packet loss and time delay are two critically important parameters for describing network service quality, once the packet loss of certain section of link Expection is exceeded with time delay, then can determining this section of link, there occurs failure;And packet loss and time delay are often what is be accompanied, There is certain relation;In practice, for measured message packet loss and time delay, often transmitted on certain section of link a certain number of Test packet, and link is for data message transmission, therefore, it is necessary to reduce the transmission quantity of test packet.
Therefore, design it is a kind of for Ethernet, packet loss and time delay can be measured at the same time and send test packet quantity it is few Test method, just become a urgent problem to be solved.
The content of the invention
Ethernet delay and the message of congestion can be measured at the same time it is an object of the invention to provide a kind of.
In order to realize the foregoing invention first purpose, an embodiment of the present invention provides a kind of transmission for transmitting terminal and surveys The method for trying message, comprises the following steps:Initialization is used for the first quantitative value for characterizing the quantity of the test packet sent; Continuously carry out the first quantitative value increase by 1 and sent to receiving terminal comprising the first quantitative value and for characterizing the of current time The operation of the test packet of one time value, until meeting the first stop condition.
Further as an embodiment of the present invention is improved, the first stop condition of the satisfaction, including:Determining first When quantitative value is more than or equal to preset value, meet the first stop condition.
Further as an embodiment of the present invention is improved, described to perform by the first quantitative value increase by 1 and to receiving terminal The operation of the test packet comprising the first quantitative value and the first time value for characterizing current time is sent, including:Perform general First quantitative value increase by 1 and sent to receiving terminal comprising the first quantitative value and for characterizing the first time value of current time Test packet and the operation for waiting preset time.
An embodiment of the present invention provides a kind of device of the transmission test packet for transmitting terminal, including with lower die Block:First initialization module, for initializing the first quantitative value of the quantity for being used to characterize the test packet sent;First Message sending module, for continuously carrying out the first quantitative value increase by 1 and sending comprising the first quantitative value and be used for receiving terminal The operation of the test packet of the first time value of current time is characterized, until meeting the first stop condition.
An embodiment of the present invention provides a kind of method of the answer test packet for receiving terminal, including following step Suddenly:Initialization is used for the second quantitative value for characterizing the quantity of the answer message sent;Receiving transmitted by transmitting terminal During test packet, the second time value for being used for characterizing the time for receiving test packet is obtained, the second quantitative value is increased by 1, is obtained The first quantitative value in the test packet is taken, obtains the 3rd time value for being used for characterizing current time, sends and wraps to receiving terminal Answer message containing the first quantitative value, the second quantitative value, first time value, the second time value and the 3rd time value is to transmitting terminal.
An embodiment of the present invention provides a kind of device of the answer test packet for receiving terminal, including with lower die Block:Second initialization module, for initializing the second quantitative value of the quantity for being used to characterize the answer message sent;Second Message sending module, for when receiving the test packet transmitted by transmitting terminal, obtaining and receiving test packet for characterization Time the second time value, by the second quantitative value increase by 1, obtain the first quantitative value in the test packet, acquisition is used for The 3rd time value of current time is characterized, is sent to receiving terminal comprising the first quantitative value, at the first time the second quantitative value, value, the The answer message of two time values and the 3rd time value is to transmitting terminal.
An embodiment of the present invention provides a kind of method that reception for transmitting terminal replies message, including following step Suddenly:The answer message transmitted by receiving terminal is received, obtains and is used to characterize the 4th time value for receiving the time for replying message; The first quantitative value, at the first time the second quantitative value, value, the second time value and the 3rd time value are obtained from the answer message; Both-end time delay=(4th time value-first time value)-(3rd the-the second time value of time value), the time value of distal end time delay=second- It is worth at the first time, the-the three time value of time value of near-end time delay=the 4th.
An embodiment of the present invention provides the device that a kind of reception for transmitting terminal replies message, including with lower die Block:First receives connection module, for receiving the answer message transmitted by receiving terminal, obtains and replies message for characterizing to receive The 4th time value of time;First processing module, for from it is described answer message in obtain the first quantitative value, the second quantitative value, Value, the second time value and the 3rd time value at the first time;Both-end time delay=(4th time value-first time value)-(3rd time It is worth the-the second time value), the time value of distal end time delay=second-first time value, the-the three time value of time value of near-end time delay=the 4th.
An embodiment of the present invention provides a kind of method that reception for transmitting terminal replies message, including following step Suddenly:The answer message transmitted by receiving terminal is persistently received, until meeting the second stop condition, and obtains and is had been received by for characterization Answer message quantity the 3rd quantitative value;Reply in message for obtaining last received answer message and receiving earliest First difference of one quantitative value, it is last received reply message and receive earliest reply message in the second quantitative value second Difference, then the-the second difference of difference of distal end message dropping quantity=first, the-the three quantity of difference of near-end message dropping quantity=second Value.
An embodiment of the present invention provides the device that a kind of reception for transmitting terminal replies message, including with lower die Block:Second receives connection module, for persistently receiving the answer message transmitted by receiving terminal, until meet the second stop condition, and Obtain the 3rd quantitative value of the quantity for being used to characterize the answer message having been received by;Second processing module, for connect to the end The answer message of receipts and receive earliest reply message in the first quantitative value the first difference, it is last received answer message with What is received earliest replies the second difference of the second quantitative value in message, then distal end message dropping quantity=first difference-the second is poor Value, the-the three quantitative value of difference of near-end message dropping quantity=second.
An embodiment of the present invention provides a kind of test packet, and the test packet is based on SLM messages, the test report The TxFcf fields of text are used to store the first quantitative value;Include successively in the Optional TLV fields of the test packet Types value, at the first time length value and value;The length of the types value is a byte;The length value is used to characterize described the The byte number and length of one time value are two bytes;The length of the first time value is four bytes.
An embodiment of the present invention provides a kind of answer message, and the test packet is based on SLR messages, described to reply report The TxFcf fields of text are used to store the first quantitative value, TxFcb fields for storing the second quantitative value;In the answer message Include types value, at the first time length value and value, the second time value and the 3rd time value in Optional TLV fields successively; The length of the types value is a byte;The length value is used to characterize the first time value, the second time value and the 3rd The summation and length of the byte number of time value are two bytes;First time value, the second time value and the 3rd time value Length be four bytes.
Further as an embodiment of the present invention is improved, and the Optional TLV fields for replying message also include There is the 4th time value, the 4th time value is located at after the 3rd time value, and the length of the 4th time value is four bytes, The length value is used for the byte number for characterizing the first time value, the second time value, the 3rd time value and the 4th time value Summation.
Relative to the prior art, the technical effects of the invention are that:The present invention provides a kind of network for Ethernet Status testing method and device, can be at the same time in the test packet transmitted by transmitting terminal to receiving terminal in this method and device Include test packet quantity and the information of time, and include test in the answer message transmitted by receiving terminal to transmitting terminal Bag quantity, reply message amount and the information of time, so that transmitting terminal can obtain the packet loss and time delay of the Ethernet at the same time Information so that network administrator can be informed in the change situation of synchronization packet loss and time delay, and can reduce The quantity of test bag, reduces the burden of Ethernet.
Brief description of the drawings
Fig. 1 is the flow diagram of the method for the transmission test packet for being used for transmitting terminal in the embodiment of the present invention one;
Fig. 2 is the flow diagram of the method for the answer test packet for being used for receiving terminal in the embodiment of the present invention two;
Fig. 3 is the flow diagram of the method for the reception answer message for being used for transmitting terminal in the embodiment of the present invention three;
Fig. 4 is the flow diagram of the method for the reception answer message for being used for transmitting terminal in the embodiment of the present invention four;
Fig. 5 is the form schematic diagram of the test packet in the embodiment of the present invention five;
Fig. 6 is the form schematic diagram of the answer message in the embodiment of the present invention five.
Embodiment
Below with reference to each embodiment shown in the drawings, the present invention will be described in detail.But these embodiments are not The limitation present invention, structure that those of ordinary skill in the art are made according to these embodiments, method or change functionally Change and be all contained in protection scope of the present invention.
In scene in the invention, the first device end and the second device end are connected by Ethernet, it is possible to understand that , the first device end is transmitting terminal, and the second device end is receiving terminal;Can also the second device end be transmitting terminal, One device end is receiving terminal.And in the first device end and second between terminal, there are two unidirectional ethernet links:(1) First device end be sent to message to second for terminal unidirectional ethernet link;(2)Second device end is sent to message To the unidirectional ethernet link of the first device end.It is understood that the message includes being used for the data message for carrying data.
The embodiment of the present invention one provides a kind of method of the transmission test packet for transmitting terminal, as shown in Figure 1, including Following steps:
Step 101:Initialization is used for the first quantitative value for characterizing the quantity of the test packet sent;Optionally, by first Quantitative value is initialized as 0.
Step 102:Continuously carry out the first quantitative value increase by 1 and send comprising the first quantitative value and be used for receiving terminal The operation of the test packet of the first time value of current time is characterized, until meeting the first stop condition.
Here, in a step 102, can continue to send test packet to receiving terminal, in practice, in order to more comprehensive The situation for detecting network, the quantity of some test packets is usually all very big;Therefore, the quantity of some test packets is extremely It is two less.It is understood that the first time value and the first quantitative value in different test packets are all different, because This, value and the first quantitative value can be also used for being identified each test packet at the first time.
In a step 101, the first quantitative value is initialized(One initial value is set), in a step 102, every When sending a test packet, the first quantitative value all increases by 1, and therefore, the difference between the first quantitative value and its initial value is with regard to energy Enough represent the quantity of test packet sent;If initial value is 0, the first quantitative value can just represent what is sent The quantity of test packet.
Here, first time value can be understood as the time of " transmission test packet ", in practice, it is necessary to first obtain first Time value, retransmits test packet afterwards, it will be understood that the two certainly exist time difference, and the time between performing step Difference is more short better.Optionally, in order to reduce the time difference, it can realize that the two perform step using hardware.
Here it is possible to one register is set in transmitting terminal(For example, the register is set in network interface card)To store first Quantitative value, can quickly perform reading and writing and the operation by the first quantitative value increase by 1, so as to quickly perform step 102, you can with the huge test bag of quantity forwarded in a short time, and then can more fully test out transmitting terminal and reception The problem of ethernet link between end(Including packet loss and time delay).
Preferably, the first stop condition of the satisfaction, including:It is full when definite first quantitative value is more than or equal to preset value The first stop condition of foot.Here, the difference between the first quantitative value and initial value is equal to the quantity of the message sent, that is, sends The method of test packet can be accurately controlled the quantity for sending test packet.
Preferably, it is described to perform the first quantitative value increase by 1 and sent to receiving terminal comprising the first quantitative value and for table The operation of the test packet of the first time value of current time is levied, including:Perform by the first quantitative value increase by 1 and to receiving terminal Send the test packet comprising the first quantitative value and the first time value for characterizing current time and wait preset time Operation.
Here, which can send a test packet every preset time, so as to adjust transmission test packet Speed;It is understood that in link between transmitting terminal and receiving terminal can data message transmission, if the test packet The excessive velocities of transmission, then will certainly influence the transmission of data message, therefore, in order not to influence the normal transmission of data message, The transmission speed of test packet can be reduced to a suitable scope.
Here, suppose that the first device end terminal into the second equipment sends test packet, but at the same time, the first equipment Terminal also may also send test packet to the 3rd device end, it is seen then that in order to ensure the correct of the Network status test method Property, it is necessary to distinguish test packets of the two tests, then can include in test packet being capable of the unique mark test report The identifier of text(Such as:The sufficiently long random number of length).I.e. in the first device end, the method for difference transmission test packet Identifier in transmitted test packet differs, and the first quantitative value can only be surveyed by the transmission for initializing first quantitative value Try the method for message increases by 1 to perform reading and writing and value;I.e. in transmitting terminal, identifier and the method for sending test packet(Example Such as, this method can be performed with a process or thread etc.)Between there is one-to-one relation.
The embodiment of the present invention additionally provides a kind of device of the transmission test packet for transmitting terminal, including with lower module:
First initialization module, for initializing the first quantitative value of the quantity for being used to characterize the test packet sent;
First message sending module, for continuously carrying out the first quantitative value increase by 1 and including the first quantity to receiving terminal transmission The operation of the test packet of value and the first time value for characterizing current time, until meeting the first stop condition.
The embodiment of the present invention two provides a kind of method of the answer test packet for receiving terminal, comprises the following steps:
Step 201:Initialization is used for the second quantitative value for characterizing the quantity of the answer message sent;Optionally, by second Quantitative value is initialized as 0.
Step 202:When receiving the test packet transmitted by transmitting terminal, obtain and receive test packet for characterizing The second time value of time, increases by 1 by the second quantitative value, obtains the first quantitative value in the test packet, and acquisition is used for table The 3rd time value of current time is levied, is sent to receiving terminal comprising the first quantitative value, at the first time the second quantitative value, value, second The answer message of time value and the 3rd time value is to transmitting terminal.
In step 201, the second quantitative value is initialized(One initial value is set), in step 202, sending out When sending an answer message, the second quantitative value all increases by 1, and therefore, the difference between the second quantitative value and its initial value just can Represent the quantity of answer message sent;If initial value is 0, the second quantitative value can just represent the survey sent Try the quantity of message.It is understood that transmitting terminal sends test packet to receiving terminal by Ethernet, then in this Ethernet On, test packet can be delayed, it is also possible to can lose, in step 202, due to often receiving a test packet When, a corresponding answer message can be all sent, therefore, the quantity for the test packet having been received by is answered equal to what is sent The quantity of multiple message, the difference being equal between the second quantitative value and its initial value.
In practice, it is necessary to first receive test packet, the second time value is then obtained again, it is to be understood that the two Perform and certainly exist the time difference between step, and the time difference is more short better, it is preferred that can using hardware come realize this two A execution step.Here, the 3rd time value is used to characterize the time for sending and replying message, in practice, it is necessary to first obtain the 3rd Time value, then retransmits answer message, it is to be understood that the two certainly exist the time difference between performing operation, and should Time difference is more short better, it is preferred that can realize that the two perform step using hardware.
In practice, receiving terminal also needs to carry out certain operations after test packet is received(For example, disassemble test report Text, generation reply message etc.), these operations are required for expending some times, and therefore, the 3rd time value is usually in the second time After value.
Here, if the test packet transmitted by transmitting terminal includes identifier, needed in receiving terminal for different marks Know the method that symbol all creates an answer test packet, and the second quantitative value can only be surveyed by the answer for initializing second quantitative value Try the method for message increases by 1 to perform reading and writing and value;I.e. in the receiving end, method of the identifier with replying test packet(Example Such as, this method can be performed with a process or thread etc.)Between there is one-to-one relation.In practice, reception is worked as When termination receives a test packet, when the definite test packet includes identifier, found in receiving terminal with being somebody's turn to do The corresponding method for replying test packet of identifier, the test packet is handled by the method for the answer test packet;And if Search less than the method for then needing to create a new answer test packet(For example, create new a process or thread)Come Handle the test packet.
The embodiment of the present invention additionally provides a kind of device of the answer test packet for receiving terminal, including with lower module:
Second initialization module, for initializing the second quantitative value of the quantity for being used to characterize the answer message sent;
Second message sending module, for when receiving the test packet transmitted by transmitting terminal, obtaining and being received for characterization The second time value of the time of test packet, increases by 1 by the second quantitative value, obtains the first quantitative value in the test packet, The 3rd time value for being used for characterizing current time is obtained, when being sent to receiving terminal comprising the first quantitative value, the second quantitative value, first Between value, the answer message of the second time value and the 3rd time value to transmitting terminal.
The embodiment of the present invention three provides a kind of method that reception for transmitting terminal replies message, comprises the following steps:
Step 301:Receive the answer message transmitted by receiving terminal, obtain and be used to characterizing receive time for replying message the Four time values;In practice, it is necessary to after answer message is received, the 4th time value is obtained, it is to be understood that receive and survey Examination message and obtain the 4th time value the two perform steps between certainly exist the time difference, it is and the smaller the better;Optionally, may be used To realize that the two perform step using hardware.
Step 302:The first quantitative value, at the first time the second quantitative value, value, the second time are obtained from the answer message Value and the 3rd time value;Both-end time delay=(4th time value-first time value)-(3rd the-the second time value of time value), distal end The time value of time delay=second-first time value, the-the three time value of time value of near-end time delay=the 4th.
Here, in transmitting terminal and receiving terminal, there is two one way links:(1)Transmitting terminal sends message and reaches receiving terminal First one way link;(2)Receiving terminal sends the second one way link that message reaches transmitting terminal;It is understood that message is When being transmitted on one one way link and the second one way link, it can all postpone, or go out active.Then both-end time delay is used to characterize and reports The sum of time delay of the text on the first one way link and the second one way link, distal end time delay are used to characterize message in the first one way link On time delay, near-end time delay be used for characterize time delay of the message on the second one way link.
Here, value, the 4th time value are measured by transmitting terminal at the first time, and the second time value, the 3rd time value Measured by receiving terminal;Therefore, in order to ensure the accuracy of distal end time delay and near-end time delay, it is necessary to transmitting terminal and receiving terminal Time keep synchronous.Include value and the first quantitative value at the first time in message due to replying, it can use in both Any to identify test packet and corresponding answer message, i.e., the method that the reception replies message, can accurately measure Both-end time delay, distal end time delay and the near-end time delay of each test packet.
The embodiment of the present invention additionally provides the device that a kind of reception for transmitting terminal replies message, including with lower module:
First receives connection module, for receiving the answer message transmitted by receiving terminal, obtains and receives answer message for characterization Time the 4th time value;
First processing module, for obtaining the first quantitative value, at the first time the second quantitative value, value, the from the answer message Two time values and the 3rd time value;Both-end time delay=(4th time value-first time value)-(3rd-the second time of time value Value), the time value of distal end time delay=second-first time value, the-the three time value of time value of near-end time delay=the 4th.
The embodiment of the present invention four provides a kind of method that reception for transmitting terminal replies message, comprises the following steps:
Step 401:The answer message transmitted by receiving terminal is persistently received, until meeting the second stop condition, and obtains and is used for table Levy the 3rd quantitative value of the quantity for the answer message having been received by;Here it is possible to understand, sufficient amount only have received Answer message, the packet loss of these messages can be calculated, it is necessary to set the second stop condition.Second stops bar Part can be:Receive the answer message of default quantity;Further, it is to be appreciated that receiving terminal is in embodiment one has been performed After the method for the transmission test packet, according to practical experience, over time, become, transmitting terminal should be able to receive most The corresponding answer message of the latter test packet, therefore, after this time is reached, that is, meets the second stop condition.
Step 402:Reply the first quantitative value in message for obtaining last received answer message and receiving earliest One difference, last received the second difference for replying the second quantitative value in message for replying message and receiving earliest, then distally The-the second difference of difference of message dropping quantity=first, the-the three quantitative value of difference of near-end message dropping quantity=second.
Here, message dropping quantity in distal end is used to characterize loss situation of the message on the first one way link, near-end message Quantity is lost to be used to characterize loss situation of the message on the second one way link;The first quantitative value in embodiment one is initial with it The difference of value can just characterize the quantity of the test packet sent, therefore, the quotient of distal end message dropping quantity and the difference The message packet loss on the first one way link can be just characterized, near-end message dropping quantity and the quotient of the difference can just characterize Message packet loss on second one way link.
Here, the method that the reception in embodiment three and example IV replies message can be run at the same time in transmitting terminal, So as to which transmitting terminal only needs to send some test packets, it is possible to while measure the message packet loss and time delay of Ethernet so that Technical staff understand that the situation of change in same moment message packet loss and time delay;And only need to send a small amount of survey Message is tried, so as to mitigate the burden of Ethernet.
An embodiment of the present invention provides the device that a kind of reception for transmitting terminal replies message, including with lower module:
Second receives connection module, for persistently receiving the answer message transmitted by receiving terminal, until meet the second stop condition, and Obtain the 3rd quantitative value of the quantity for being used to characterize the answer message having been received by;
Second processing module, for the first quantitative value replied in message for obtaining last received answer message with receiving earliest The first difference, it is last received reply message and receive earliest reply message in the second quantitative value the second difference, then The-the second difference of difference of distal end message dropping quantity=first, the-the three quantitative value of difference of near-end message dropping quantity=second.
The embodiment of the present invention five provides a kind of test packet, as shown in figure 5, the test packet is based on SLM (Synthetic Loss Message, synthesize loss packet test message)Message, wherein:
The TxFcf fields of the test packet are used to store the first quantitative value;In the Optional TLV words of the test packet Include types value, at the first time length value and value in section successively;The length of the types value is a byte;The length value Byte number and length for characterizing the first time value are two bytes;The length of the first time value is four Byte.Here, the type that types value is used to characterize the SLM messages is test packet.
The embodiment of the present invention additionally provides a kind of answer message, as shown in fig. 6, the test packet is based on SLR (Synthetic Loss Reply, synthesis packet loss reply message)Message, wherein:
The TxFcf fields for replying message are used to store the first quantitative value, TxFcb fields for storing the second quantitative value; Include types value, at the first time length value and value, the second time in the Optional TLV fields for replying message successively Value and the 3rd time value;The length of the types value is a byte;The length value is used to characterize the first time value, the The summation and length of the byte number of two time values and the 3rd time value are two bytes;The first time value, the second time The length of value and the 3rd time value is four bytes.Here, the type that types value is used to characterize the SLR messages is test report Text.Optionally, the types value that the types value in message is not equal in test packet is replied.
Preferably, the Optional TLV fields for replying message also include the 4th time value, the 4th time Value is located at after the 3rd time value, and the length of the 4th time value be four bytes, and the length value is for characterizing described the One time value, the second time value, the 3rd time value and the 4th time value byte number summation.
Test packet in the present embodiment and reply message based on the SLM/SLR messages in Y.1731 agreement on, can The measurement of disposable complete network packet loss rate, handling capacity and time delay, reduces the workload of user, improves testing efficiency, meets The demand of user.
It should be appreciated that although the present specification is described in terms of embodiments, not each embodiment only includes one A independent technical solution, this narrating mode of specification is only that those skilled in the art will should say for clarity For bright book as an entirety, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can With the other embodiment of understanding.
Those listed above is a series of to be described in detail only for feasibility embodiment of the invention specifically Bright, they simultaneously are not used to limit the scope of the invention, all equivalent implementations made without departing from skill spirit of the present invention Or change should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of method of transmission test packet for transmitting terminal, it is characterised in that comprise the following steps:
Initialization is used for the first quantitative value for characterizing the quantity of the test packet sent;
Continuously carry out the first quantitative value increase by 1 and sent to receiving terminal comprising the first quantitative value and for characterizing current time First time value test packet operation, until meet the first stop condition.
2. the method according to claim 1 for sending test packet, it is characterised in that the first stop condition of the satisfaction, Including:When definite first quantitative value is more than or equal to preset value, meet the first stop condition.
3. the method according to claim 1 for sending test packet, it is characterised in that described perform increases the first quantitative value Add 1 and the behaviour of the test packet comprising the first quantitative value and the first time value for characterizing current time is sent to receiving terminal Make, including:
Perform the first quantitative value increase by 1 and sent to receiving terminal comprising the first quantitative value and for characterizing the of current time The test packet of one time value and the operation for waiting preset time.
4. the device of a kind of transmission test packet for transmitting terminal, it is characterised in that including with lower module:
First initialization module, for initializing the first quantitative value of the quantity for being used to characterize the test packet sent;
First message sending module, for continuously carrying out the first quantitative value increase by 1 and including the first quantity to receiving terminal transmission The operation of the test packet of value and the first time value for characterizing current time, until meeting the first stop condition.
5. a kind of method of answer test packet for receiving terminal, it is characterised in that comprise the following steps:
Initialization is used for the second quantitative value for characterizing the quantity of the answer message sent;
When receiving the test packet transmitted by transmitting terminal, when acquisition is used for characterize the time for receiving test packet second Between be worth, the second quantitative value is increased by 1, obtains the first quantitative value in the test packet, obtains and is used to characterize current time 3rd time value, sends comprising the first quantitative value, at the first time the second quantitative value, value, the second time value and the 3rd to receiving terminal The answer message of time value is to transmitting terminal.
6. the device of a kind of answer test packet for receiving terminal, it is characterised in that including with lower module:
Second initialization module, for initializing the second quantitative value of the quantity for being used to characterize the answer message sent;
Second message sending module, for when receiving the test packet transmitted by transmitting terminal, obtaining and being received for characterization The second time value of the time of test packet, increases by 1 by the second quantitative value, obtains the first quantitative value in the test packet, The 3rd time value for being used for characterizing current time is obtained, when being sent to receiving terminal comprising the first quantitative value, the second quantitative value, first Between value, the answer message of the second time value and the 3rd time value to transmitting terminal.
7. a kind of method that reception for transmitting terminal replies message, it is characterised in that comprise the following steps:
The answer message transmitted by receiving terminal is received, obtains and is used to characterize the 4th time for receiving the time for replying message Value;
The first quantitative value, at the first time the second quantitative value, value, the second time value and the 3rd time are obtained from the answer message Value;Both-end time delay=(4th time value-first time value)-(3rd the-the second time value of time value), the time of distal end time delay=second Value-first time value, the-the three time value of time value of near-end time delay=the 4th.
8. a kind of reception for transmitting terminal replies the device of message, it is characterised in that including with lower module:
First receives connection module, for receiving the answer message transmitted by receiving terminal, obtains and receives answer message for characterization Time the 4th time value;
First processing module, for obtaining the first quantitative value, at the first time the second quantitative value, value, the from the answer message Two time values and the 3rd time value;Both-end time delay=(4th time value-first time value)-(3rd-the second time of time value Value), the time value of distal end time delay=second-first time value, the-the three time value of time value of near-end time delay=the 4th.
9. a kind of method that reception for transmitting terminal replies message, it is characterised in that comprise the following steps:
The answer message transmitted by receiving terminal is persistently received, until meeting the second stop condition, and obtains to be used to characterize and has received 3rd quantitative value of the quantity of the answer message arrived;
Obtain the first difference of last received answer message and the first quantitative value in the answer message that receives earliest, be most followed by The answer message of receipts and receive earliest reply message in the second quantitative value the second difference, then distal end message dropping quantity= First the-the second difference of difference, the-the three quantitative value of difference of near-end message dropping quantity=second.
10. a kind of reception for transmitting terminal replies the device of message, it is characterised in that including with lower module:
Second receives connection module, for persistently receiving the answer message transmitted by receiving terminal, until meet the second stop condition, and Obtain the 3rd quantitative value of the quantity for being used to characterize the answer message having been received by;
Second processing module, for the first quantitative value replied in message for obtaining last received answer message with receiving earliest The first difference, it is last received reply message and receive earliest reply message in the second quantitative value the second difference, then The-the second difference of difference of distal end message dropping quantity=first, the-the three quantitative value of difference of near-end message dropping quantity=second.
11. a kind of test packet, the test packet is based on SLM messages, it is characterised in that:
The TxFcf fields of the test packet are used to store the first quantitative value;In the Optional TLV words of the test packet Include types value, at the first time length value and value in section successively;The length of the types value is a byte;The length value Byte number and length for characterizing the first time value are two bytes;The length of the first time value is four Byte.
12. one kind replies message, the test packet is based on SLR messages, it is characterised in that:
The TxFcf fields for replying message are used to store the first quantitative value, TxFcb fields for storing the second quantitative value; Include types value, at the first time length value and value, the second time in the Optional TLV fields for replying message successively Value and the 3rd time value;The length of the types value is a byte;The length value is used to characterize the first time value, the The summation and length of the byte number of two time values and the 3rd time value are two bytes;The first time value, the second time The length of value and the 3rd time value is four bytes.
13. answer message according to claim 12, it is characterised in that:
The Optional TLV fields for replying message also include the 4th time value, when the 4th time value is located at the 3rd Between be worth after, the length of the 4th time value be four bytes, and the length value is for characterizing the first time value, second The summation of the byte number of time value, the 3rd time value and the 4th time value.
CN201711184542.9A 2017-11-23 2017-11-23 It is a kind of to measure ethernet delay and the message of congestion at the same time Withdrawn CN107911263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711184542.9A CN107911263A (en) 2017-11-23 2017-11-23 It is a kind of to measure ethernet delay and the message of congestion at the same time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711184542.9A CN107911263A (en) 2017-11-23 2017-11-23 It is a kind of to measure ethernet delay and the message of congestion at the same time

Publications (1)

Publication Number Publication Date
CN107911263A true CN107911263A (en) 2018-04-13

Family

ID=61847667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711184542.9A Withdrawn CN107911263A (en) 2017-11-23 2017-11-23 It is a kind of to measure ethernet delay and the message of congestion at the same time

Country Status (1)

Country Link
CN (1) CN107911263A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545214A (en) * 2019-08-21 2019-12-06 视联动力信息技术股份有限公司 time delay detection method based on video network and switch
WO2022062931A1 (en) * 2020-09-25 2022-03-31 华为技术有限公司 Network anomaly determination method and apparatus
CN114500330A (en) * 2021-12-28 2022-05-13 芯讯通无线科技(上海)有限公司 Test method, system, equipment and storage medium of Internet of things platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080031146A1 (en) * 2006-08-03 2008-02-07 Kwak Dong Y Method and apparatus for measuring label switch path performance parameters using performance monitoring operation and management packet in multi-protocol label switching network
CN101282248A (en) * 2007-05-16 2008-10-08 清华大学 Method for measuring network application performance supporting internet high bandwidth real time video application
US7821937B1 (en) * 2007-06-29 2010-10-26 Symantec Corporation Network protocol with damage loss resilient congestion control algorithm
CN102394796A (en) * 2011-11-04 2012-03-28 华为技术有限公司 Link time delay detection method, source terminal, destination terminal and system
CN105357066A (en) * 2015-10-09 2016-02-24 盛科网络(苏州)有限公司 Method and device for automatically clearing remote statistical information in packet loss rate measurement
CN105827476A (en) * 2016-01-21 2016-08-03 北京荣达千里科技有限公司 High-speed PING implementation method and PING testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080031146A1 (en) * 2006-08-03 2008-02-07 Kwak Dong Y Method and apparatus for measuring label switch path performance parameters using performance monitoring operation and management packet in multi-protocol label switching network
CN101282248A (en) * 2007-05-16 2008-10-08 清华大学 Method for measuring network application performance supporting internet high bandwidth real time video application
US7821937B1 (en) * 2007-06-29 2010-10-26 Symantec Corporation Network protocol with damage loss resilient congestion control algorithm
CN102394796A (en) * 2011-11-04 2012-03-28 华为技术有限公司 Link time delay detection method, source terminal, destination terminal and system
CN105357066A (en) * 2015-10-09 2016-02-24 盛科网络(苏州)有限公司 Method and device for automatically clearing remote statistical information in packet loss rate measurement
CN105827476A (en) * 2016-01-21 2016-08-03 北京荣达千里科技有限公司 High-speed PING implementation method and PING testing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545214A (en) * 2019-08-21 2019-12-06 视联动力信息技术股份有限公司 time delay detection method based on video network and switch
WO2022062931A1 (en) * 2020-09-25 2022-03-31 华为技术有限公司 Network anomaly determination method and apparatus
CN114500330A (en) * 2021-12-28 2022-05-13 芯讯通无线科技(上海)有限公司 Test method, system, equipment and storage medium of Internet of things platform

Similar Documents

Publication Publication Date Title
CN107508719B (en) Method and device for measuring network time delay and network node
CN102273136B (en) Method and apparatus for detecting multi-service performance in tunnel
US7961632B2 (en) Communication apparatus and OAM frame transmission method
US10616088B2 (en) Apparatus and method for measurements at intermediate nodes in end-to-end performance test
CN106656679B (en) Availability bandwidth measurement method
CN107911263A (en) It is a kind of to measure ethernet delay and the message of congestion at the same time
US20150281030A1 (en) Method for devices in a network to participate in an end-to-end measurement of latency
CN101026504A (en) Network for formance measuring method
US20150036510A1 (en) Method and device for measuring ethernet performance
CN101272290A (en) Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
EP3398296B1 (en) Performance measurement in a packet-switched communication network
CN105634840A (en) Method and device for measuring packet loss
CN102546117A (en) Frame loss measuring method, frame loss measuring device and frame loss measuring system
CN104205738B (en) Interconnect the methods, devices and systems of error detection
CN103684923A (en) Method for measuring packet loss and network device
US9331927B2 (en) Communication system, communication device, and communication method
CN107889132A (en) The method, apparatus and system of a kind of link quality measurements
CN100421395C (en) Method based on elastic group ring for obtaining link evaluating parameter
CN110248379A (en) The performance test methods and device of base station in WLAN
CN101729306B (en) Method and system for testing downlink broadband of access line of broadband network user
CN102025571B (en) The method and apparatus that multipoint link packet loss is measured
CN102404152B (en) Method and equipment for identifying response messages
CN114375001B (en) Network speed measuring method and device
CN117221175A (en) Time delay measuring method and device, storage medium and program product thereof
CN112583658B (en) Available bandwidth measuring method, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180413