CN112073271A - Network delay measuring method, device, equipment and medium - Google Patents

Network delay measuring method, device, equipment and medium Download PDF

Info

Publication number
CN112073271A
CN112073271A CN202011017614.2A CN202011017614A CN112073271A CN 112073271 A CN112073271 A CN 112073271A CN 202011017614 A CN202011017614 A CN 202011017614A CN 112073271 A CN112073271 A CN 112073271A
Authority
CN
China
Prior art keywords
delay
data
network
detection message
delay data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011017614.2A
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202011017614.2A priority Critical patent/CN112073271A/en
Publication of CN112073271A publication Critical patent/CN112073271A/en
Pending legal-status Critical Current

Links

Images

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/12Network monitoring probes

Landscapes

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

Abstract

The embodiment of the disclosure provides a method, a device, equipment and a medium for measuring network delay, wherein the method comprises the following steps: periodically sending a detection message to a measurement opposite terminal within a first set time length; for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of a response message of a measurement opposite terminal to the detection message; if the delay data is larger than the delay amplitude limiting data, the delay data is changed into the delay data confirmed in the previous period, and the delay amplitude limiting data is used for representing the maximum limit value of the delay data; and calculating to obtain the network delay according to the delay data obtained in the first set time length. By carrying out amplitude limiting processing on the delay data, abnormal data caused by interference is filtered, the anti-interference capability of network delay measurement is improved, and the current network quality is more accurately reflected.

Description

Network delay measuring method, device, equipment and medium
Technical Field
The disclosed embodiments relate to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for measuring network latency.
Background
Nowadays, the network is not separated in work and life, and in order to avoid risks caused by network faults when the network is used, the quality of the network is often monitored in real time so as to adopt corresponding strategies in time when the quality of the network is poor. When monitoring network quality, one important indicator is network delay. The network delay is composed of processing delay, queuing delay, transmission delay and propagation delay, and when the network delay is higher than a normal value within a certain time, the current network quality can be judged to be poor.
In the prior art, a method of sending a data packet to a target address and performing a difference according to a timestamp of the data packet after receiving a response data packet is mainly adopted for measuring network delay. The algorithm for measuring the network delay is too simple, and when an unexpected event such as electromagnetic interference causes overtime or packet loss of a data packet, the measured network delay is too large, so that the quality of the current network cannot be accurately reflected.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method, an apparatus, a device, and a medium for measuring network delay, so as to effectively solve the problem of inaccurate network delay measurement caused by unexpected interference.
Specifically, the embodiment of the present disclosure is implemented by the following technical solutions:
in a first aspect, a method for measuring network delay is provided, where the method includes:
periodically sending a detection message to a measurement opposite terminal within a first set time length;
for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of a response message of a measurement opposite terminal to the detection message;
if the delay data is larger than the delay amplitude limiting data, the delay data is changed into the delay data confirmed in the previous period, and the delay amplitude limiting data is used for representing the maximum limit value of the delay data;
and calculating to obtain the network delay according to the delay data obtained in the first set time length.
In a second aspect, an apparatus for measuring network delay is provided, the apparatus comprising:
the detection module is used for periodically sending a detection message to the measurement opposite terminal within a first set time length; for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of a response message of a measurement opposite terminal to the detection message;
the judging module is used for changing the delay data into delay data confirmed in the previous period when the delay data is larger than the delay amplitude limiting data, and the delay amplitude limiting data is used for representing the maximum limit value of the delay data;
and the calculating module is used for calculating to obtain the network delay according to the delay data obtained in the first set time length.
In a third aspect, a computer device is provided, which includes an internal bus, a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the steps of the network delay measurement method according to any embodiment of the present disclosure are implemented.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, performs the steps of the network delay measurement method of any of the embodiments of the present disclosure.
According to the technical scheme provided by the embodiment of the disclosure, the embodiment of the disclosure carries out amplitude limiting processing by comparing the delay data of the sending detection message and the receiving response message with the delay amplitude limiting data in network delay measurement, so that abnormal data caused by interference is filtered, the anti-interference capability of the network delay measurement is improved, and the current network quality is more accurately reflected.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
In order to more clearly illustrate one or more embodiments of the present disclosure or technical solutions in related arts, the drawings used in the description of the embodiments or related arts will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in one or more embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a flowchart illustrating a method for measuring network delay according to an embodiment of the present disclosure;
FIG. 2 is a graph of actual measured delay data according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another method for measuring network delay according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a network delay measuring device according to an embodiment of the disclosure;
fig. 5 is a block diagram of another network delay measurement apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a hardware structure of a network delay measuring device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with embodiments of the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosed embodiments, as detailed in the appended claims.
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present disclosure. As used in the disclosed embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of embodiments of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The following provides a detailed description of examples of the present specification.
As shown in fig. 1, fig. 1 is a flowchart of a method for measuring network delay according to an embodiment of the present disclosure, including the following steps:
step S101, periodically sending a detection message to a measurement opposite terminal within a first set time length.
As an example, the execution subject of the embodiment of the present disclosure may be a user computer, and the user computer sends a probe packet to the measurement peer. In other examples, the probe message may also be sent by other network devices such as a mobile phone and a printer. The measurement peer may be a peer server, and the probe packet may be a TCP (Transmission Control Protocol) or ICMP (Internet Control Message Protocol) probe packet. For the specific form of the network device and the measurement peer end that send the probe packet, and the specific content of the probe packet, this embodiment is not limited, and those skilled in the art may select and design themselves according to different needs/different scenarios, and these selections and designs that may be used herein do not depart from the spirit and scope of the embodiments of the present disclosure.
The first set duration in this step is a time period of network delay to be measured, and the cycle is a time interval of sending a message, and can be set by a system or a user.
In the following description, taking the measurement peer as the peer server as an example, the user computer sends a message to the peer server for description. After a user configures a network delay measurement strategy corresponding to an opposite-end server, a user computer can independently start a thread for the network delay measurement, and after the measurement is started, the user computer periodically sends a TCP detection message to the opposite-end server until the first set time length is finished. When the TCP detection message is sent to an opposite terminal server by a user computer, the sending time T1 of the user computer at the moment is stored in the timestamp field.
Step S102, for each sent detection message, obtaining the delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of the response message of the measurement opposite end to the detection message.
After receiving the TCP detection messages sent by the user computer within the first set time length, the opposite-end server replies corresponding TCP response messages to the user computer for each TCP detection message. When the opposite-end server sends the TCP response message, the sending time T1 analyzed from the timestamp field of the TCP detection message is stored in the timestamp echo field of the corresponding TCP response message timestamp.
After receiving the TCP response packet, the user computer may analyze the sending time T1 of the corresponding TCP probe packet from the timestamp echo field of the TCP response packet, and subtract the sending time T1 from the receiving time T2 of the received TCP response packet, so as to obtain the delay data corresponding to the TCP probe packet, where the unit is generally milliseconds.
Particularly, the user may set an timeout time, and when the timeout time is exceeded after the detection message is sent out, and the response message is still not received, the packet loss is determined. And when the packet loss result is packet loss, recording the overtime as the delay data of the detection message.
Step S103, if the delay data is larger than the delay amplitude limiting data, the delay data is changed into the delay data confirmed in the previous period, and the delay amplitude limiting data is used for representing the maximum limit value of the delay data.
The TCP detection messages of a plurality of periods can be sent within the first set duration. For example, it is assumed that M TCP probe packets are sent within a first set time duration, where M is a natural number greater than 1. For each detection message, the delay data corresponding to the detection message can be determined according to the above steps, and there are M delay data.
In one example, the delay-limited data may be set by a user, and the delay-limited data is less than a set timeout time for representing a maximum limit value of the delay-limited data.
The obtained M delay data within the first set duration may be compared with the delay limiting data, respectively.
And when the delay data is smaller than the delay amplitude limiting data, confirming the delay data as the delay data confirmed in the period.
When an unexpected event such as electromagnetic interference causes overtime of a detection message or a response message, the obtained delay data is overlarge, when the delay data is larger than the delay amplitude limiting data, the delay data obtained in the period is not used any more, the delay data confirmed in the previous period is used as the delay data of the period, namely the delay data confirmed in the previous period is confirmed as the delay data of the period, and therefore the condition that the finally calculated network delay is abnormal due to the overlarge delay data and the real network condition cannot be reflected is avoided. The "delay data confirmed in the previous period" is delay data corresponding to a detection packet sent once before the delay data of this time.
And finishing the step by comparing the obtained M delay data according to the time sequence of sending the detection message.
And step S104, calculating to obtain the network delay according to the delay data obtained in the first set time length.
In an exemplary embodiment, when calculating the network delay, the delay data obtained in the first set time period may be subjected to arithmetic mean to obtain the network delay of the line between the user computer and the peer server in the first set time period. Of course, in other examples, the network delay may also be obtained by using other calculation methods, for example, the network delay may also be calculated by obtaining a truncated average of the delay data obtained within the first set time duration.
According to the method for measuring the network delay, the delay data is subjected to amplitude limiting through the delay amplitude limiting data, the problem that the measured network delay is overlarge under the condition that a message is overtime or lost due to accidental interference is solved, and the anti-interference capability and accuracy of network delay measurement are improved.
By using the measurement method of the embodiment, when the actual network delay measurement is performed, the first set duration is 100 seconds, the period is 1 second, the user computer sends a detection message to the opposite-end server every 1 second, the size of each detection message is 64 bytes, and the set message timeout time is 1 second. As shown in fig. 2, three times of packet loss occurs in the measurement process, and the timeout time is recorded as the delay data of the period where the packet is lost. The network delay calculated by the existing algorithm is 68.75ms, while the network delay calculated by the algorithm of the embodiment of the present disclosure is 39.24 ms. Therefore, the method for measuring the network delay has a good filtering effect on the interference, and the accuracy of the network delay measurement is effectively improved.
Fig. 3 illustrates a flowchart of another network delay measurement method provided in the embodiment of the present disclosure, and in this embodiment, another obtaining manner of the above-mentioned delay limited data is illustrated. Of course, it is understood that in practical implementations, other ways of obtaining the delay-limited data may be used by those skilled in the art. Referring to fig. 3, the method comprises the following steps:
step S200, initializing a network delay queue.
In an embodiment, when the network delay measurement starts, if the network delay queue is empty, the probe packet may be periodically sent to the measurement peer within x periods, where x is a natural number. For each sent detection message, x pieces of delay data are obtained according to the sending time of the detection message and the receiving time of a response message of a measurement opposite end to the detection message, and the x pieces of delay data are stored into a network delay queue as x network delays according to the time sequence, wherein the x pieces of delay data are D (1), D (2), … and D (x).
When the network delay queue is empty, it may also be initialized in other manners, for example, a user may directly set a value in the network delay queue.
Step S201, periodically sending a probe packet to the measurement peer within a first set time duration.
Step S202, for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of the response message of the measurement opposite end to the detection message.
Step S203, obtaining part or all of the network delays in the network delay queue, where each network delay included in the network delay queue is calculated according to the delay data of each first set duration.
For example, a portion of the network delay data may be selected from a network delay queue. For example, the part may be selected by selecting n network delays arranged at the bottom of the network delay queue, in order of storage time of the data, where n is a natural number, and n is smaller than x, and is D (t), D (t-1), …, and D (t-n +1), respectively, where t is a natural number, and is a count of the network delays stored in the network delay queue. By selecting the new data to be compared, the data calculation can be more accurate. For another example, the values of the network delays at the front, middle and back of the network delay queue can be selected separately, so that the overall delay is considered under the condition of not too large calculation amount.
For another example, all network delays in the queue may be selected so that the data reflects the overall network conditions.
And step S204, carrying out weighted average on the partial or all network delays to obtain the delay amplitude limiting data.
In one embodiment, when selecting the n network delays arranged at the bottom of the network delay queue, the delay-limited data can be calculated according to the following formula:
E(t)= (k1*D(t) + k2*D(t-1) +…+ kn*D(t-n+1))/n (1)
wherein, k1, k2, …, kn are weighted values set by the system or the user, n is a natural number, and not limited herein, D (t), D (t-1), …, D (t-n +1) are the last n network delays in the network delay queue, t is a natural number, and is a count of the network delays stored in the network delay queue, and e (t) is delay amplitude limiting data obtained through weighted average operation.
Step S205, if the delay data is greater than the delay limiting data, the delay data is changed to the delay data confirmed in the previous period, and the delay limiting data is used to represent the maximum limit value of the delay data.
The delay limited data is the delay limited data E (t) calculated in the last step.
And step S206, calculating to obtain the network delay according to the delay data obtained in the first set time length.
Step S207, adding the network delay to the network delay queue.
The network delay queue is a data structure of the first-in first-out type in which the network delays are stored according to the time sequence. And storing the calculated network delay D (t +1) into a network delay queue after the network delay D (t).
When the measurement of the network delay of the next first set time period is started, the process returns to step S201.
According to the method for measuring the network delay, the delay and amplitude limiting data is calculated through the network delay in the network delay queue, and the delay and amplitude limiting data is updated in real time along with the change of the network delay, so that the actual situation of the network is better fitted when amplitude limiting is carried out by comparing the delay data with the delay and amplitude limiting data, and the accuracy of network delay measurement is further improved.
Optionally, in this embodiment or some other embodiments of the present disclosure, in a first set duration, the delay data corresponding to the detection packet in each period is compared with the delay limiting data, and when the delay data corresponding to the detection packet is greater than the delay limiting data, before the delay data in the period is changed into the delay data confirmed in the previous period, it is further required to record that the delay data corresponding to the detection packet is the overrun data. In the process, when the recorded overrun data reaches a preset condition, for other delay data which is greater than the delay amplitude limiting data in the first set time length, the delay data is kept unchanged, namely the delay data confirmed in the previous period is not changed, and the delay data which is changed before is kept unchanged.
The preset conditions include, but are not limited to, the following two examples:
for example, there are continuously set values of delay data recorded as overrun data. For example, the set value may be 5, when 20 periods of delay data are obtained within the first set duration, the 20 periods of delay data are compared with the delay limiting data one by one, starting from the 4 th period of delay data, the continuous 8 periods of delay data are greater than the delay limiting data, because when the delay data corresponding to the detection packet is greater than the delay limiting data, the delay data of the present period is changed to the delay data confirmed in the previous period, the 4 th period of delay data is recorded as the overrun data, and then the 4 th period of delay data is changed to the delay data confirmed in the previous period, that is, the delay data of the 3 rd period; and recording the delay data of the 5 th period as overrun data, changing the delay data of the 5 th period into the delay data confirmed in the previous period, namely the delay data of the 3 rd period, and sequentially comparing, wherein the delay data of the 4 th to 8 th periods are recorded as overrun data and are changed into the delay data of the 3 rd period. However, since the condition that 5 consecutive delay data are recorded as overrun data is satisfied from the delay data of the 9 th cycle, the delay data of the 9 th to 11 th cycles are no longer recorded as overrun data, and the delay data are kept unchanged without being changed. And when the delay data of the later period, such as the delay data of the 16 th period is larger than the delay amplitude limiting data, the delay data are not recorded as the overrun data any more, and the delay data are kept unchanged.
For another example, the overrun data in the compared delay data reaches a set percentage. For example, the set percentage is 40%, when 20 periods of delay data are obtained in the first set duration, the 20 periods of delay data are compared with the delay limiting data one by one, and when the 10 th period of delay data is compared, the 10 th period of delay data is the 4 th delay data which is greater than the delay limiting data and is marked as the overrun data, that is, in the first set duration, the overrun data in the compared delay data reaches 40%, starting from the 11 th period of delay data and ending at the 20 th period of delay data, wherein the delay data which is greater than the delay limiting data is no longer marked as the overrun data, and the delay data is kept unchanged.
In the network delay measuring method of the embodiment, when the network condition is really poor and a plurality of messages are overtime, the amplitude limiting processing is not carried out on the delay time any more, so that the measured network delay reflects the real network quality.
The embodiment of the present disclosure further provides a device for measuring network delay, where the device can implement the processing of any one of the above method embodiments of the present disclosure. The following is a brief description of the device structure, and the specific processing thereof can be described with reference to the method embodiment. Referring to fig. 4, fig. 4 is a schematic diagram of a network delay measuring apparatus according to an embodiment of the present disclosure, where the apparatus may include:
a detection module 301, configured to periodically send a detection packet to a measurement peer within a first set time duration; and for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of a response message of the opposite end to the detection message.
As an example, the measurement peer is a server, and the detection message is a TCP or ICMP detection message.
A determining module 302, configured to change the delay data to delay data determined in a previous period when the delay data is greater than delay limit data, where the delay limit data is used to represent a maximum limit value of the delay data.
And the calculating module 303 is configured to calculate to obtain the network delay according to the delay data obtained within the first set time duration.
The network delay measuring device in the embodiment of the disclosure can perform amplitude limiting processing on the obtained delay data, and filter abnormal data caused by interference, so that the measurement of network delay is more accurate.
In the embodiment of the present disclosure, as shown in fig. 5, the apparatus may further include:
the amplitude limiting module 304 is configured to obtain part or all of the network delays in the network delay queue before the delay data is greater than the delay amplitude limiting data and the delay data is changed into the delay data confirmed in the previous period, where each network delay included in the network delay queue is calculated according to each delay data of the first set time length, and the part or all of the network delays are weighted and averaged to obtain the delay amplitude limiting data.
And the computing module is also used for adding the network delay into the network delay queue.
In the embodiment of the present disclosure, as shown in fig. 5, the apparatus may further include:
a queue initialization module 305, configured to periodically send a probe packet to a measurement peer within n periods when the network delay queue is empty, where n is a natural number, and for each sent probe packet, obtain delay data according to sending time of the probe packet and receiving time of a response packet of the measurement peer to the probe packet, and store each delay data as a network delay in the network delay queue.
In an embodiment of the present disclosure, the determining module 302 is further configured to: and recording the delay data as overrun data when the delay data is greater than the delay amplitude limiting data in the first set time length, and keeping the delay data unchanged for other delay data greater than the delay amplitude limiting data in the first set time length when the overrun data reaches a preset condition.
Referring to fig. 6, which is a hardware structure diagram of an apparatus according to an embodiment of the present disclosure, the apparatus includes: an internal bus 401, a memory 402, a processor 403 and a computer program stored on the memory 402 and executable on the processor 403, which when executed by the processor implements the steps of the network delay measurement method of any embodiment of the present disclosure.
In addition, the embodiments of the present disclosure also provide a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the network delay measurement method of any embodiment of the present disclosure.
The implementation processes of the functions and actions of the modules in the above devices, apparatuses, and computer-readable storage media are specifically described in the implementation processes of the corresponding steps in the above methods, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A method for measuring network delay, the method comprising:
periodically sending a detection message to a measurement opposite terminal within a first set time length;
for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of a response message of a measurement opposite terminal to the detection message;
if the delay data is larger than the delay amplitude limiting data, the delay data is changed into the delay data confirmed in the previous period, and the delay amplitude limiting data is used for representing the maximum limit value of the delay data;
and calculating to obtain the network delay according to the delay data obtained in the first set time length.
2. The method of claim 1,
before changing the delay data to the delay data confirmed in the previous period if the delay data is greater than the delay amplitude limiting data, the method further includes:
acquiring partial or all network delays in a network delay queue, wherein each network delay in the network delay queue is obtained by calculation according to delay data of each first set time length;
carrying out weighted average on the partial or all network delays to obtain the delay amplitude limiting data;
after the network delay is calculated according to the delay data obtained within the first set duration, the method further includes:
and adding the network delay into the network delay queue.
3. The method of claim 2, further comprising:
if the network delay queue is empty, periodically sending a detection message to a measurement opposite terminal within x periods, wherein x is a natural number;
for each sent detection message, obtaining delay data according to the sending time of the detection message and the receiving time of a response message of a measurement opposite terminal to the detection message;
and taking each delay data as a network delay and storing the network delay data into the network delay queue.
4. The method according to any one of claims 1-3, further comprising:
within the first set duration, when the delay data is greater than the delay amplitude limiting data, recording the delay data as overrun data;
and when the overrun data reaches a preset condition, keeping the delay data unchanged for other delay data which are greater than the delay amplitude limiting data in the first set time length.
5. An apparatus for measuring network latency, the apparatus comprising:
the detection module is used for periodically sending a detection message to the measurement opposite terminal within a first set time length; for each sent detection message, obtaining delay data corresponding to the detection message according to the sending time of the detection message and the receiving time of a response message of a measurement opposite terminal to the detection message;
the judging module is used for changing the delay data into delay data confirmed in the previous period when the delay data is larger than the delay amplitude limiting data, and the delay amplitude limiting data is used for representing the maximum limit value of the delay data;
and the calculating module is used for calculating to obtain the network delay according to the delay data obtained in the first set time length.
6. The apparatus of claim 5,
the device also comprises an amplitude limiting module, a time delay data acquisition module and a time delay data processing module, wherein the amplitude limiting module is used for acquiring part or all of network delays in a network delay queue before the time delay data is larger than the time delay amplitude limiting data and is changed into the time delay data confirmed in the previous period, each network delay in the network delay queue is obtained through calculation according to the time delay data of each first set time length, and the part or all of the network delays are subjected to weighted average to obtain the time delay amplitude limiting data;
the computing module is further configured to add the network delay to the network delay queue.
7. The apparatus of claim 6, further comprising:
and the queue initialization module is used for periodically sending a detection message to a measurement opposite terminal within x periods when the network delay queue is empty, wherein x is a natural number, for each sent detection message, delay data is obtained according to the sending time of the detection message and the receiving time of a response message of the measurement opposite terminal to the detection message, and each delay data is used as a network delay and is stored in the network delay queue.
8. The apparatus according to any one of claims 5 to 7, wherein the determining module is further configured to record the delay data as over-limit data when the delay data is greater than the delay limiting data in the first set time duration, and keep the delay data unchanged for other delay data greater than the delay limiting data in the first set time duration when the over-limit data reaches a preset condition.
9. A computer device comprising an internal bus, a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the processor executes the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202011017614.2A 2020-09-24 2020-09-24 Network delay measuring method, device, equipment and medium Pending CN112073271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017614.2A CN112073271A (en) 2020-09-24 2020-09-24 Network delay measuring method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017614.2A CN112073271A (en) 2020-09-24 2020-09-24 Network delay measuring method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112073271A true CN112073271A (en) 2020-12-11

Family

ID=73682620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017614.2A Pending CN112073271A (en) 2020-09-24 2020-09-24 Network delay measuring method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112073271A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080033074A (en) * 2006-10-09 2008-04-16 삼성전자주식회사 Method and apparatus for estimating one-way delay
CN106230652A (en) * 2016-07-19 2016-12-14 东北大学 SDN performance measurement method based on OpenFlow agreement
CN108886479A (en) * 2018-02-12 2018-11-23 深圳前海达闼云端智能科技有限公司 Network quality evaluation method and device, network detection equipment and readable storage medium
CN109831328A (en) * 2019-01-30 2019-05-31 杭州迪普科技股份有限公司 Switching method, device, the electronic equipment of intelligent route selection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080033074A (en) * 2006-10-09 2008-04-16 삼성전자주식회사 Method and apparatus for estimating one-way delay
CN106230652A (en) * 2016-07-19 2016-12-14 东北大学 SDN performance measurement method based on OpenFlow agreement
CN108886479A (en) * 2018-02-12 2018-11-23 深圳前海达闼云端智能科技有限公司 Network quality evaluation method and device, network detection equipment and readable storage medium
CN109831328A (en) * 2019-01-30 2019-05-31 杭州迪普科技股份有限公司 Switching method, device, the electronic equipment of intelligent route selection

Similar Documents

Publication Publication Date Title
CN112217686B (en) System, method and device for evaluating round trip delay
EP2242236B1 (en) Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
CN106658381B (en) A kind of landslide method for early warning based on wireless sensor network
CN110890972B (en) Health degree evaluation method and device of business system
CN106911927B (en) Method and device for evaluating experience quality of network video user and DPI equipment
JP5104738B2 (en) Packet loss rate measuring method, packet loss rate measuring device, and computer program
Nguyen et al. Rigorous statistical analysis of internet loss measurements
CN102045222A (en) Real-time overall test method of network system
CN111431772B (en) Network delay measuring method, system, readable storage medium and terminal equipment
CN111541626A (en) Network bandwidth updating method and device, electronic equipment and storage medium
CN106656642B (en) Method, device and system for measuring round trip delay
EP2856703A2 (en) Methods and nodes for improved estimation of available path capacity of a data transfer path
US7366790B1 (en) System and method of active latency detection for network applications
CN112688837B (en) Network measurement method and device based on time sliding window
CN110019386A (en) A kind of stream data processing method and equipment
CN115426284A (en) Network quality detection method, device, terminal equipment and storage medium
CN109697247A (en) A kind of detection method and device of data accuracy
CN113507396B (en) Network state analysis method, device, equipment and machine-readable storage medium
CN112073271A (en) Network delay measuring method, device, equipment and medium
CN107438268B (en) Method and device for accelerating wireless network for mobile device
CN110740078A (en) Agent monitoring method for servers and related product
CN110784337A (en) Cloud service quality monitoring method and related product
CN114422407B (en) Network testing method, system, terminal and storage medium
US20180150432A1 (en) Method and apparatus for measuring time samp unit of remote device
US11677651B2 (en) UDPING—continuous one-way monitoring of multiple network links

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201211

RJ01 Rejection of invention patent application after publication