CN108390796A - A kind of latency test method and device - Google Patents

A kind of latency test method and device Download PDF

Info

Publication number
CN108390796A
CN108390796A CN201810137125.7A CN201810137125A CN108390796A CN 108390796 A CN108390796 A CN 108390796A CN 201810137125 A CN201810137125 A CN 201810137125A CN 108390796 A CN108390796 A CN 108390796A
Authority
CN
China
Prior art keywords
delay
message
local terminal
switching equipment
total
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
CN201810137125.7A
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 CN201810137125.7A priority Critical patent/CN108390796A/en
Publication of CN108390796A publication Critical patent/CN108390796A/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/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

Present invention is disclosed a kind of latency test method and devices, are suitable for switch device.Method is included in local terminal switching equipment and remote switching carries out parameter setting;Local terminal switching equipment periodically sends the message with timestamp to remote switching, and remote switching replys the message with timestamp, and local terminal switching equipment receives message and calculates two-way real-time time delay and two-way average delay according to the timestamp in message.The present invention calculates two-way real-time time delay by exchange chip and two-way average delay, CPU directly read result of calculation, alleviates CPU burdens.

Description

A kind of latency test method and device
Technical field
The present invention relates to a kind of network communication technology fields, more particularly, to a kind of latency test method and device.
Background technology
With the rapid development of Internet, network size constantly expands, network topology is increasingly complicated.Internet is from before Information superhighway becomes worldwide waiting.Various procotol tissues are primarily upon the reachable of message, but less focus on The arrival time of message, however the time delay that message reaches significantly impacts network service quality.In order to improve network server matter Amount, need to find out network there are the problem of, it is common practice that network performance index is measured, to orientation problem, is solved Problem.Network performance index includes time delay, flow etc., wherein it is also that most common network performance refers to that time delay, which is most important, Mark.
Traditional measurement network delay be by send DM (Delay Measurement, delay testing) protocol massages, Two-way timestamp is carried in message, and network delay is calculated by timestamp.However the processing of DM protocol massages is passed through mostly CPU beats timestamp, then calculates network delay by CPU, considerably increases the burden of CPU.
Invention content
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of latency test method and system are provided, are led to It crosses exchange chip and calculates two-way real-time time delay and two-way average delay, mitigate CPU burdens.
To achieve the above object, the following technical solutions are proposed by the present invention:A kind of latency test method, including walk as follows Suddenly:
S1, carries out parameter configuration in local terminal switching equipment, and the parameter includes message sending cycle Interval, time Initial position Offset, packet counting Count are stabbed, and whether receives message Received, while in remote switching Configure identical timestamp initial position Offset;
S2, when message sending cycle reaches, local terminal switching equipment judges whether to receive whether message Received is 1, if It is then directly to execute step S3, otherwise, after calculating two-way real-time time delay and two-way average delay, executes step S3;
S3, packet counting Count values add 1, and current time stamp and current message are counted in Count values deposit message, Message Received, which whether will be received, after transmission message to remote switching is set to 0;
The timestamp for receiving message and the timestamp for sending message are stored in message and are sent to by S4, remote switching Local terminal switching equipment;
S5, local terminal switching equipment judge packet counting Count values and packet counting Count in local terminal switching equipment in message Whether value is consistent, if so, it is 1 that whether configuration, which receives message Received, while calculating two-way real-time time delay and two-way average Time delay further executes step S2~S5.
Preferably, step S1 further includes being configured to the caching Buff that storage sends message in local terminal switching equipment.
Preferably, it stores local terminal switching equipment in message successively since the Offset of timestamp initial position and sends message Timestamp, remote switching receive the timestamp of the timestamp and remote switching transmission message of message.
Preferably, in step S2, the two-way real-time time delay and two-way average delay are calculated according to following formula:
Delay_L=Interval/2;Delay_R=Interval/2;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L is real-time time delay of the local terminal switching equipment to remote switching, and the distal ends Delay_R, which exchange, to be set The real-time time delay of local terminal switching equipment to the utmost, Average_L are average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and Total_L is that local terminal switching equipment is handed over to distal end The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
Preferably, in step s 5, two-way real-time time delay and two-way average delay are calculated according to following formula:
Delay_L=R_RX_TS-L_TX_TS;Delay_R=L_RX_TS-R_TX_TS;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L is real-time time delay of the local terminal switching equipment to remote switching, and Delay_R is that distal end exchanges For equipment to the real-time time delay of local terminal switching equipment, Average_L is average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and R_RX_TS is that remote switching receives message Timestamp, L_TX_TS be local terminal switching equipment send message timestamp, L_RX_TS be local terminal switching equipment receive message Timestamp, R_TX_TS be remote switching send message timestamp, Total_L be local terminal switching equipment to distal end friendship The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
A kind of latency test device, including
Initiation parameter configuration module, for carrying out parameter configuration in local terminal switching equipment, the parameter includes message hair Period Interval, timestamp initial position Offset, packet counting Count are sent, and whether receives message Received, together When identical timestamp initial position Offset is configured in remote switching;
First judgment module receives whether message Received is 1 for judging whether when message sending cycle reaches;
Second judgment module, for judging packet counting Count values and packet counting in local terminal switching equipment in message Whether Count values are consistent;
First message processing module (MPM), for packet counting Count values to be added 1, and by current time stamp and current message meter In number Count value deposit messages, whether will receive message Received after transmission message to remote switching and be set to 0;
Second message processing module (MPM), the timestamp of timestamp and transmission message for remote switching to be received to message In deposit message and it is sent to local terminal switching equipment;And
The first time-delay calculation module for calculating two-way real-time time delay and two-way average delay and the second time-delay calculation mould Block.
Preferably, the initiation parameter module is also configured to the caching Buff of stored messages in local terminal switching equipment.
Preferably, it stores local terminal switching equipment in message successively since the Offset of timestamp initial position and sends message Timestamp, remote switching receive the timestamp of the timestamp and remote switching transmission message of message.
Preferably, the first time-delay calculation module calculates two-way real-time time delay and two-way average delay according to following formula
Delay_L=Interval/2;Delay_R=Interval/2;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L is real-time time delay of the local terminal switching equipment to remote switching, and the distal ends Delay_R, which exchange, to be set The real-time time delay of local terminal switching equipment to the utmost, Average_L are average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and Total_L is that local terminal switching equipment is handed over to distal end The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
Preferably, whether the second time-delay calculation module will receive message Received and be configured to 1, and according to following public affairs Formula calculates two-way real-time time delay and two-way average delay:
Delay_L=R_RX_TS-L_TX_TS;Delay_R=L_RX_TS-R_TX_TS;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L is real-time time delay of the local terminal switching equipment to remote switching, and Delay_R is that distal end exchanges For equipment to the real-time time delay of local terminal switching equipment, Average_L is average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and R_RX_TS is that remote switching receives message Timestamp, L_TX_TS be local terminal switching equipment send message timestamp, L_RX_TS be local terminal switching equipment receive message Timestamp, R_TX_TS be remote switching send message timestamp, Total_L be local terminal switching equipment to distal end friendship The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
The beneficial effects of the invention are as follows:
Compared with prior art, latency test method and device of the present invention is calculated double by exchange chip To real-time time delay and two-way average delay, CPU directly reads result of calculation, reduces CPU computation burdens;Meanwhile the present invention is logical The timestamp for being stored in nanosecond in delay testing message is crossed, computational accuracy is improved.
Description of the drawings
Fig. 1 is the latency test method flow diagram of the present invention;
Fig. 2 is that the local terminal switching equipment of the present invention sends Message processing flow chart;
Fig. 3 is that the remote switching of the present invention receives Message processing flow chart;
Fig. 4 is that the local terminal switching equipment of the present invention receives Message processing flow chart;
Fig. 5 is the latency test apparatus structure block diagram of the present invention.
Specific implementation mode
Below in conjunction with the attached drawing of the present invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
A kind of disclosed latency test method and device, is mainly used in switch device, two-way reality The calculating of Shi Shiyan and two-way average delay are completed by exchange chip, and CPU directly reads result of calculation, reduce CPU meters Calculate burden.
As shown in Figure 1, a kind of latency test method, includes the following steps:
Step S1, carries out parameter configuration in local terminal switching equipment, the parameter include message sending cycle Interval, Timestamp initial position Offset, packet counting Count, and message Received whether is received, while exchanging and setting in distal end For the identical timestamp initial position Offset of middle configuration.
Specifically, Interval parameters are used to be arranged the sending cycle of delay testing message, are such as sent every 1 second or 5 seconds Delay testing message;Offset parameters are used to that the initial position that the resting period stabs in delay testing message to be arranged, and are opened from Offset Beginning, storage local terminal switching equipment successively sends message time stamp, remote switching receives message time stamp and remote switching Send message time stamp.Preferably, 24 bytes in delay testing message since Offset are stabbed for the resting period, and every A timestamp has the nanosecond of the second and 4 bytes of 4 bytes, therefore, the present invention can calculate nanosecond it is other two-way real-time when Prolong and two-way average delay.
Count parameters are used to count the delay testing message number of local terminal switching equipment transmission, when implementation, Count parameters Value needs carried in delay testing message, for being verified to the delay testing message received, it is ensured that local terminal exchange set It is standby to receive the delay testing message currently sent out.Preferably, 4 bytes in delay testing message after timestamp are for depositing Count numerical value is put, i.e. the 25th byte that Offset starts is for storing Count numerical value;Received parameters are for identifying this Whether end switching equipment receives delay testing message.The Received parameter quilts when local terminal switching equipment time of receipt (T of R) test packet It is set to 1, Received parameters are set to 0 after local terminal switching equipment transmission delay test packet.When implementation, Interval parameters, Offset parameters, Count parameters and Received parameters can be configured by software, and when initial, Count parameters are set It is set to 1 for 0, Received parameters.
Further, the buffering area (Buff) and delay testing report that are configured to send message are also needed in local terminal switching equipment Text, which is sent, enables (Enable), can be configured by software.
Step S2, local terminal switching equipment judges whether Received is 1 when message sending cycle reaches, if so, executing Otherwise step S3 after calculating two-way real-time time delay and two-way average delay, executes step S3;
Step S3, Count value adds 1, and will send message to remote in current time stamp and current Count values deposit message Received is set to 0 after the switching equipment of end.
Specifically, in conjunction with shown in Fig. 1 and Fig. 2, when local terminal switching equipment transmission delay test packet, delay testing message hair Enabled Enable is sent to be set to 1.When delay testing message sending cycle reaches, local terminal switching equipment sends first time delay and surveys Message is tried to remote switching.Due to it is initial when Count be set to 0, Received and be set to 1, local terminal switching equipment is first By Count plus 1, and message is read from Buff, current Count values 1 are stored in delay testing message, indicate that current local terminal is handed over What exchange device was sent is the 1st delay testing message.Further, local terminal switching equipment will also in transmission delay test packet It sends in the timestamp deposit delay testing message of the message, that is, is stored in 8 bytes that Offset starts.When delay testing report When literary sending cycle arrives again at, local terminal switching equipment is according to the value of Received to determine whether needing transmission delay test report Text is to remote switching.If local terminal switching equipment judges the value of Received for 0, then it represents that the time delay for not receiving transmission is surveyed Message is tried, two-way time delay and two-way average delay are calculated according to following formula at this time.
Delay_L=Interval/2;Delay_R=Interval/2;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, real-time time delay of the Delay_L expression local terminal switching equipment to remote switching;Delay_R indicates distal end Real-time time delay of the switching equipment to local terminal switching equipment;Total_L indicates local terminal switching equipment to the accumulative of remote switching Time delay;Total_R indicates remote switching to the accumulated delay of local terminal switching equipment;Average_L indicates that local terminal exchange is set The standby average delay for arriving remote switching;Average_R indicate remote switching to local terminal switching equipment average delay, Interval indicates delay testing message sending cycle;Count indicates delay testing packet counting.
After two-way real-time time delay and two-way average delay calculate, local terminal switching equipment continues Count values adding 1, and By in current time stamp and current Count values deposit message, sends message and be set to remote switching, while by Received 0。
The timestamp of the timestamp of message when receiving and transmission message is stored in message simultaneously by step S4, remote switching It is sent to local terminal switching equipment.
Step S5, local terminal switching equipment judge whether Count values and Count values in local terminal switching equipment are consistent in message, If so, configuration Received is 1, while two-way real-time time delay and two-way average delay are calculated, further execution step S2~ S5。
Specifically, in conjunction with shown in Fig. 3 and Fig. 4, remote switching is when receiving delay testing message, according to Offset's The timestamp for receiving the message is stored in the corresponding position of message by value, when replying also according to Offset values by transmission delay In the corresponding position of the time deposit message of test packet.If local terminal switching equipment receives delay testing message, further sentence Whether the Count values that Count values and local terminal switching equipment record in disconnected delay testing message are consistent, if inconsistent, when to this Delay test message does not make any processing;If consistent, then it represents that local terminal switching equipment has received the delay testing message currently sent out, Two-way real-time time delay and two-way average delay are further calculated according to following calculation formula:
Delay_L=R_RX_TS-L_TX_TS;Delay_R=L_RX_TS-R_TX_TS;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L is real-time time delay of the local terminal switching equipment to remote switching, and Delay_R is that distal end exchanges For equipment to the real-time time delay of local terminal switching equipment, Average_L is average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and R_RX_TS is that remote switching receives message Timestamp, L_TX_TS be local terminal switching equipment send message timestamp, L_RX_TS be local terminal switching equipment receive message Timestamp, R_TX_TS be remote switching send message timestamp, Total_L be local terminal switching equipment to distal end friendship The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment, and Count surveys for time delay Try packet counting.
After two-way real-time time delay and two-way average delay calculate, then step S2~S5 is continued to execute.It is sent in message When period reaches, local terminal switching equipment continues to send the delay testing report for calculating two-way real-time time delay and two-way average delay Text.After the completion of two-way real-time time delay and two-way average delay calculate, CPU can directly read data, greatly reduce the calculating of CPU Burden.
As shown in figure 5, a kind of latency test device, including initiation parameter configuration module, the first judgment module, Two judgment modules, the first message processing module (MPM), the second message processing module (MPM), the first time-delay calculation module and the second time delay meter Calculate module.Wherein, initiation parameter configuration module includes report for carrying out parameter configuration, the parameter in local terminal switching equipment Literary sending cycle Interval, timestamp initial position Offset, packet counting Count, and whether receive message Received, while identical timestamp initial position Offset is configured in remote switching;First judgment module, is used for Judge whether Received is 1 when message sending cycle reaches;Second judgment module is for judging Count values and sheet in message Hold Count values in switching equipment whether consistent;First message processing module (MPM) is used to Count values adding 1, and by current time stamp and In current Count values deposit message, Received is set to 0 after transmission message to remote switching;Second Message processing mould Block is used to remote switching receiving the timestamp of message and sends in the timestamp deposit message of message and send message extremely Local terminal switching equipment;First time-delay calculation module and the second time-delay calculation module are for calculating two-way real-time time delay and two-way average Time delay.
Specifically, initiation parameter configuration module processing configuration Interval parameters, Offset parameters, Count parameters, Outside Received parameters, also it is configured to send the buffering area Buff of message in local terminal switching equipment and delay testing message is sent Enabled Enable, can be configured by software.Further, the transmission of local terminal switching equipment is stored successively since Offset Message time stamp, remote switching receive message time stamp and remote switching sends message time stamp.Preferably, time delay 24 bytes in test packet since Offset are stabbed for the resting period, and each timestamp has the second and 4 of 4 bytes The nanosecond of a byte, therefore, the present invention can calculate the other two-way real-time time delay of nanosecond and two-way average delay.
When message sending cycle reaches, the first judgment module judge Received values for 1 when, then enter the first message at It manages module and carries out Message processing;When judge Received values for 0 when, then enter the first time-delay calculation module calculate it is two-way real-time when Prolong and two-way average delay.Wherein, the first time-delay calculation module calculates two-way real-time time delay and two-way average according to following formula Time delay:
Delay_L=Interval/2;Delay_R=Interval/2;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R.
When local terminal switching equipment receives message, the second judgment module judges in message that Count values are exchanged with local terminal and sets Whether standby middle Count values are consistent, if unanimously, entering the second time-delay calculation module and calculating two-way real-time time delay and two-way mean time Prolong.Second time-delay calculation module calculates two-way real-time time delay and two-way average delay according to following formula:
Delay_L=R_RX_TS-L_TX_TS;Delay_R=L_RX_TS-R_TX_TS;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R.
When implementation, it is embedded in exchange chip most preferably with latency test message device, the calculating of network delay is complete It is completed by exchanger chip, and the network delay of nanosecond can be calculated, while alleviating CPU burdens, improve calculating Precision.
The technology contents and technical characteristic of the present invention have revealed that as above, however those skilled in the art still may base Make various replacements and modification without departing substantially from spirit of that invention, therefore, the scope of the present invention in teachings of the present invention and announcement It should be not limited to the revealed content of embodiment, and should include various replacements and modification without departing substantially from the present invention, and be this patent Shen Please claim covered.

Claims (10)

1. a kind of latency test method, which is characterized in that include the following steps:
S1, carries out parameter configuration in local terminal switching equipment, and the parameter includes message sending cycle Interval, timestamp Beginning position Offset, packet counting Count, and message Received whether is received, while being configured in remote switching Identical timestamp initial position Offset;
S2, when message sending cycle reaches, local terminal switching equipment judges whether to receive whether message Received is 1, if so, Step S3 is directly executed, otherwise, after calculating two-way real-time time delay and two-way average delay, executes step S3;
S3, packet counting Count values add 1, and current time stamp and current message are counted in Count values deposit message, send Message Received whether will be received after message to remote switching is set to 0;
The timestamp for receiving message and the timestamp for sending message are stored in message and are sent to local terminal by S4, remote switching Switching equipment;
S5, local terminal switching equipment judge that packet counting Count values are with packet counting Count values in local terminal switching equipment in message It is no consistent, if so, it is 1 that whether configuration, which receives message Received, while two-way real-time time delay and two-way average delay are calculated, Further execute step S2~S5.
2. according to the method described in claim 1, it is characterized in that, step S1 further includes being configured to deposit in local terminal switching equipment Storage sends the caching Buff of message.
3. according to the method described in claim 1, it is characterized in that, in message since the Offset of timestamp initial position successively It stores local terminal switching equipment and sends the timestamp of message, the timestamp of remote switching reception message and remote switching hair Deliver newspaper text timestamp.
4. according to the method described in claim 1, it is characterized in that, in step S2, the two-way real-time time delay and two-way average Time delay is calculated according to following formula:
Delay_L=Interval/2;Delay_R=Interval/2;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L be local terminal switching equipment to the real-time time delay of remote switching, Delay_R remote switchings are extremely The real-time time delay of local terminal switching equipment, Average_L are average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and Total_L is that local terminal switching equipment is handed over to distal end The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
5. according to the method described in claim 1, it is characterized in that, in step s 5, two-way real-time time delay and two-way mean time Prolong and is calculated according to following formula:
Delay_L=R_RX_TS-L_TX_TS;Delay_R=L_RX_TS-R_TX_TS;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L be local terminal switching equipment to the real-time time delay of remote switching, Delay_R is remote switching To the real-time time delay of local terminal switching equipment, Average_L is average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and R_RX_TS is that remote switching receives message Timestamp, L_TX_TS be local terminal switching equipment send message timestamp, L_RX_TS be local terminal switching equipment receive message Timestamp, R_TX_TS be remote switching send message timestamp, Total_L be local terminal switching equipment to distal end friendship The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
6. a kind of latency test device, which is characterized in that including
Initiation parameter configuration module, for carrying out parameter configuration in local terminal switching equipment, the parameter includes that message sends week Phase Interval, timestamp initial position Offset, packet counting Count, and message Received whether is received, while Identical timestamp initial position Offset is configured in remote switching;
First judgment module receives whether message Received is 1 for judging whether when message sending cycle reaches;
Second judgment module, for judging packet counting Count values and packet counting Count values in local terminal switching equipment in message It is whether consistent;
First message processing module (MPM) for packet counting Count values to be added 1, and current time stamp and current message is counted Count values are stored in message, and whether will receive message Received after transmission message to remote switching is set to 0;
Second message processing module (MPM), the timestamp deposit of timestamp and transmission message for remote switching to be received to message In message and it is sent to local terminal switching equipment;And
The first time-delay calculation module and the second time-delay calculation module for calculating two-way real-time time delay and two-way average delay.
7. device according to claim 6, which is characterized in that the initiation parameter module is also matched in local terminal switching equipment Set the caching Buff for stored messages.
8. device according to claim 6, which is characterized in that in message since the Offset of timestamp initial position successively It stores local terminal switching equipment and sends the timestamp of message, the timestamp of remote switching reception message and remote switching hair Deliver newspaper text timestamp.
9. device according to claim 6, which is characterized in that the first time-delay calculation module is calculated according to following formula Two-way real-time time delay and two-way average delay
Delay_L=Interval/2;Delay_R=Interval/2;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L be local terminal switching equipment to the real-time time delay of remote switching, Delay_R remote switchings are extremely The real-time time delay of local terminal switching equipment, Average_L are average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and Total_L is that local terminal switching equipment is handed over to distal end The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
10. device according to claim 6, which is characterized in that whether the second time-delay calculation module will receive message Received is configured to 1, and calculates two-way real-time time delay and two-way average delay according to following formula:
Delay_L=R_RX_TS-L_TX_TS;Delay_R=L_RX_TS-R_TX_TS;
Average_L=Total_L/Count, Total_L=Total_L+Delay_L;
Average_R=Total_R/Count, Total_R=Total_R+Delay_R;
Wherein, Delay_L be local terminal switching equipment to the real-time time delay of remote switching, Delay_R is remote switching To the real-time time delay of local terminal switching equipment, Average_L is average delay of the local terminal switching equipment to remote switching, Average_R is average delay of the remote switching to local terminal switching equipment, and R_RX_TS is that remote switching receives message Timestamp, L_TX_TS be local terminal switching equipment send message timestamp, L_RX_TS be local terminal switching equipment receive message Timestamp, R_TX_TS be remote switching send message timestamp, Total_L be local terminal switching equipment to distal end friendship The accumulated delay of exchange device, Total_R are accumulated delay of the remote switching to local terminal switching equipment.
CN201810137125.7A 2018-02-10 2018-02-10 A kind of latency test method and device Withdrawn CN108390796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810137125.7A CN108390796A (en) 2018-02-10 2018-02-10 A kind of latency test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810137125.7A CN108390796A (en) 2018-02-10 2018-02-10 A kind of latency test method and device

Publications (1)

Publication Number Publication Date
CN108390796A true CN108390796A (en) 2018-08-10

Family

ID=63075749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810137125.7A Withdrawn CN108390796A (en) 2018-02-10 2018-02-10 A kind of latency test method and device

Country Status (1)

Country Link
CN (1) CN108390796A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382040A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Network performance testing method and device
WO2021128936A1 (en) * 2019-12-26 2021-07-01 盛科网络(苏州)有限公司 Message processing method and apparatus
CN113507396A (en) * 2021-06-30 2021-10-15 新华三信息安全技术有限公司 Network state analysis method, device, equipment and machine readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001257A (en) * 2006-12-25 2007-07-18 华为技术有限公司 Link quality method based on address analytic protocol and correlation device and system
CN101272290A (en) * 2008-05-12 2008-09-24 中国电信股份有限公司 Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
CN101282230A (en) * 2007-04-05 2008-10-08 中兴通讯股份有限公司 Method for implementing broadcast data whole-network synchronization
CN101378337A (en) * 2007-08-28 2009-03-04 华为技术有限公司 Method for measuring service quality, network appliance and network system
CN101404597A (en) * 2008-11-19 2009-04-08 华为技术有限公司 Network quality index acquirement method, system and apparatus
CN101674204A (en) * 2009-10-13 2010-03-17 东南大学 Method for measuring multimedia multicast service quality based on client
CN101729320A (en) * 2009-12-14 2010-06-09 华为技术有限公司 Transmission control method, access device and transmission system
CN101778405A (en) * 2010-01-05 2010-07-14 武汉理工大学 Method and system for synchronous acquisition of wireless sensor network for structural health monitoring
CN101848051A (en) * 2010-05-19 2010-09-29 中兴通讯股份有限公司 Method and device for performing clock synchronization between equipment
US20150327191A1 (en) * 2014-05-10 2015-11-12 Samsung Electronics Co., Ltd. Method and apparatus for synchronization in device to device communication system
CN106603183A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Timestamp filtering method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001257A (en) * 2006-12-25 2007-07-18 华为技术有限公司 Link quality method based on address analytic protocol and correlation device and system
CN101282230A (en) * 2007-04-05 2008-10-08 中兴通讯股份有限公司 Method for implementing broadcast data whole-network synchronization
CN101378337A (en) * 2007-08-28 2009-03-04 华为技术有限公司 Method for measuring service quality, network appliance and network system
CN101272290A (en) * 2008-05-12 2008-09-24 中国电信股份有限公司 Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
CN101404597A (en) * 2008-11-19 2009-04-08 华为技术有限公司 Network quality index acquirement method, system and apparatus
CN101674204A (en) * 2009-10-13 2010-03-17 东南大学 Method for measuring multimedia multicast service quality based on client
CN101729320A (en) * 2009-12-14 2010-06-09 华为技术有限公司 Transmission control method, access device and transmission system
CN101778405A (en) * 2010-01-05 2010-07-14 武汉理工大学 Method and system for synchronous acquisition of wireless sensor network for structural health monitoring
CN101848051A (en) * 2010-05-19 2010-09-29 中兴通讯股份有限公司 Method and device for performing clock synchronization between equipment
US20150327191A1 (en) * 2014-05-10 2015-11-12 Samsung Electronics Co., Ltd. Method and apparatus for synchronization in device to device communication system
CN106603183A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Timestamp filtering method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382040A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Network performance testing method and device
WO2021128936A1 (en) * 2019-12-26 2021-07-01 盛科网络(苏州)有限公司 Message processing method and apparatus
CN113507396A (en) * 2021-06-30 2021-10-15 新华三信息安全技术有限公司 Network state analysis method, device, equipment and machine readable storage medium
CN113507396B (en) * 2021-06-30 2023-07-14 新华三信息安全技术有限公司 Network state analysis method, device, equipment and machine-readable storage medium

Similar Documents

Publication Publication Date Title
CN108390796A (en) A kind of latency test method and device
CN104115432B (en) Method and apparatus for the tramsfer time information between temporal cognition equipment
CN100479361C (en) Synchronous medium access controller
FR2790348B1 (en) SYSTEM AND METHOD FOR MEASURING HANDOVER TIMES AND LOSS RATES IN HIGH-SPEED TELECOMMUNICATIONS NETWORKS
RU2010145045A (en) SYSTEM AND METHOD FOR COMMUNICATION COMMUNICATION IN CELLS IN CELLULAR SYSTEM
CN108650051A (en) The clock synchronization apparatus and method of general devices at full hardware single step 1588
US20080247331A1 (en) Method and Apparatus for High Resolution Passive Network Latency Measurement
CN101729197A (en) Method, device and system for detecting packet loss rate
WO2010057398A1 (en) Device and method for implementing clock transparent transmission
CN102035692A (en) Method and device for detecting quality of link
WO2015096636A1 (en) Method for measuring lost packets and network device
CN104618087A (en) Method for accurately measuring wide-area power grid PMU (Phasor Measurement Unit) data time delay
CN101707509A (en) Method, system and device for detecting packet loss rate by using OAM
US9667722B2 (en) Method and system for non-tagged based latency calculation
CN109996325A (en) A kind of clock system and method for wireless sensor network
CN101951300A (en) Method for realizing accurate time tick of Ethernet
CN102857385B (en) Packet loss detection method and system in a kind of Packet Transport Network
CN106877967B (en) IEEE1588 transparent clock residence time measurement method and its device
WO2016123892A1 (en) Packet loss determination processing, determination method, and apparatus
CN108259105A (en) A kind of time synchronizing method, apparatus and synchronizing network
CN107425936A (en) A kind of transparent clock measurement apparatus
WO2011128464A1 (en) Process and system for calculating distances between wireless nodes
CN104601269B (en) Master-salve clock synchronous method and system
CN102984030B (en) Chip-level method and device for realizing Ethernet OAM frame delay measurement
JP2002152266A (en) Packet loss measurement system

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

Application publication date: 20180810

WW01 Invention patent application withdrawn after publication