CN112702231A - Network delay measuring method and system - Google Patents

Network delay measuring method and system Download PDF

Info

Publication number
CN112702231A
CN112702231A CN202011515621.5A CN202011515621A CN112702231A CN 112702231 A CN112702231 A CN 112702231A CN 202011515621 A CN202011515621 A CN 202011515621A CN 112702231 A CN112702231 A CN 112702231A
Authority
CN
China
Prior art keywords
signal
time
information
probe
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011515621.5A
Other languages
Chinese (zh)
Other versions
CN112702231B (en
Inventor
余嘉宁
于银刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Infrastructure Investment Co ltd
Traffic Control Technology TCT Co Ltd
Original Assignee
Traffic Control Technology TCT 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 Traffic Control Technology TCT Co Ltd filed Critical Traffic Control Technology TCT Co Ltd
Priority to CN202011515621.5A priority Critical patent/CN112702231B/en
Publication of CN112702231A publication Critical patent/CN112702231A/en
Application granted granted Critical
Publication of CN112702231B publication Critical patent/CN112702231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Testing arrangements

Abstract

The invention provides a method and a system for measuring network delay, comprising the following steps: connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment; under the condition that the sending equipment sends the test frame to the receiving equipment through the switch, a first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal by using a second probe, and recording a second time stamp of the second signal; in the case where the first signal matches the second signal, the time between the second time stamp and the first time stamp is acquired as the delay time of the network. The method and the system for measuring the network delay realize the network delay test in a physical layer by acquiring the action time difference of the sending equipment and the receiving equipment in the network to the same test frame, and the test result does not depend on the clock synchronization precision of the test equipment and does not influence the normal use of the network.

Description

Network delay measuring method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for measuring network delay.
Background
The network delay is the time between the arrival of information from one device to another device, and the magnitude of the network delay directly affects the network communication quality. In industrial TSN network communication, a message is sent from a sending end to a network switch and then sent to a receiving device by the switch. The delay time mainly comprises two parts of forwarding delay and transmission delay, wherein: the forwarding delay mainly refers to the time consumed from the time when the switch receives the data to the time when the switch forwards the data; the transmission delay is mainly the transmission time of the signal on the communication path.
Currently, for network delay measurement, a two-step measurement method is generally adopted, in which the time when a certain message is sent from one device and the time when the message is received by another device are measured, then another message is sent in the opposite direction, the same measurement is performed, and then the network delay is obtained through integration.
The above measurement method requires that the clocks of the two devices run completely synchronously, so that the accuracy of the time difference calculated by the devices can be ensured. However, under the condition that the synchronization precision during the network time synchronization is limited, the complete synchronous operation cannot be achieved, and the medium property and the path length of the transmission path will also affect the arrival time of the signal, so that certain errors are inevitably generated when the delay measurement between two devices is carried out.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a system for measuring network delay.
The invention provides a method for measuring network delay, which comprises the following steps: connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment; under the condition that the sending equipment sends a test frame to the receiving equipment through the switch, the first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal with the second probe and recording a second time stamp of the second signal; and under the condition that the first signal is matched with the second signal, acquiring the time difference between the second time stamp and the first time stamp to take the time difference as the delay time of the network where the sending device and the receiving device are located.
According to the network delay measuring method provided by the invention, the first signal and the second signal are waveform signals; the obtaining a time difference between the second timestamp and the first timestamp if the first signal matches the second signal comprises:
respectively carrying out waveform analysis on the first signal and the second signal to obtain first waveform information corresponding to the first signal and second waveform information corresponding to the second signal; comparing the first waveform information with the second waveform information to obtain a comparison result; and acquiring the time difference between the second time stamp and the first time stamp when the comparison result is matched.
According to the method for measuring network delay provided by the present invention, the comparing the first waveform information with the second waveform information to obtain a comparison result includes:
comparing first marking information and first time information related to the first waveform information with second marking information and second time information related to the second waveform information; and determining that the comparison result is matched under the condition that the first marking information is the same as the second marking information and the first time information is the same as the second time information.
The method for measuring the network delay provided by the invention further comprises the following steps: and changing the sending frequency of the test frame to re-determine the delay time of the network where the sending equipment and the receiving equipment are located according to the changed sending frequency.
According to the network delay measuring method provided by the invention, the test frame is a pulse wave formed by at least one of a rectangular wave, a sawtooth wave, a triangular wave, a spike wave and a step wave.
According to the method for measuring the network delay, provided by the invention, the network where the sending equipment and the receiving equipment are located is a time-sensitive network.
The invention also provides a system for measuring network delay, which comprises: an oscilloscope and a computer; the computer at least comprises a signal simulation module, a time acquisition module and an operation processing module;
the first probe of the oscilloscope is connected with a signal wire of the sending equipment, and the second probe of the oscilloscope is connected with a signal wire of the receiving equipment;
the signal simulation module is used for generating a test frame;
under the condition that the sending equipment sends the test frame to the receiving equipment through the switch, a first signal is collected by using the first probe, and a first timestamp of the first signal is recorded by the time acquisition module;
acquiring a second signal by using the second probe, and recording a second time stamp of the second signal by the time acquisition module;
and under the condition that the operation processing module determines that the first signal is matched with the second signal, acquiring a time difference between the second timestamp and the first timestamp to use the time difference as the delay time of the network where the sending device and the receiving device are located.
According to the network delay measuring system provided by the invention, the operation processing module comprises a waveform analysis unit, an information comparison unit and a difference value calculation unit;
the waveform analysis unit is used for respectively carrying out waveform analysis on the first signal and the second signal to acquire first waveform information corresponding to the first signal and second waveform information corresponding to the second signal;
the information comparison unit is used for comparing the first waveform information with the second waveform information to obtain a comparison result;
the difference calculating unit is configured to obtain a time difference between the second timestamp and the first timestamp when the comparison result matches the comparison result.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the network delay measuring method.
The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for measuring network latency as described in any of the above.
The method and the system for measuring the network delay realize the network delay test in a physical layer by acquiring the action time difference of the sending equipment and the receiving equipment in the network to the same test frame, and the test result does not depend on the clock synchronization precision of the test equipment and does not influence the normal use of the network.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for measuring network delay provided by the present invention;
FIG. 2 is a second schematic flow chart of the method for measuring network delay according to the present invention;
fig. 3 is a third schematic flow chart of the network delay measurement method provided by the present invention;
FIG. 4 is a signal diagram of a test frame according to the present invention;
FIG. 5 is a schematic structural diagram of a network delay measurement system provided by the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a method and a system for measuring network delay provided by the embodiment of the present invention with reference to fig. 1 to 6.
Fig. 1 is a schematic flow chart of a method for measuring network delay provided by the present invention, as shown in fig. 1, including but not limited to the following steps:
step S1: connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment;
step S2: under the condition that the sending equipment sends a test frame to the receiving equipment through the switch, the first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal with the second probe and recording a second time stamp of the second signal;
step S3: and under the condition that the first signal is matched with the second signal, acquiring the time difference between the second time stamp and the first time stamp to take the time difference as the delay time of the network where the sending device and the receiving device are located.
Because the currently adopted network delay measurement method requires that clocks of the signal sending equipment and the signal receiving equipment to be measured run completely synchronously, the accuracy of the calculated time difference can be ensured, but the complete synchronization is difficult to achieve in the actual operation process. In view of the above, the present invention provides a new method for measuring network delay, which uses an oscilloscope to perform measurement on a physical layer, does not need to precisely synchronize clocks of two devices, can completely eliminate errors caused by different time consumed by software processing and transmission paths, and simultaneously only needs to match data frames of a sending terminal and a receiving terminal, so that the normal use of the device is not affected during the test, and the magnitude of delay in the real use process can be obtained during the test.
The basic principle of the invention is that two probes of the same oscilloscope are used for respectively recording the time t1 when the sending equipment sends the test frame and the time t2 when the receiving equipment receives the test frame, and the difference value t2-t1 of the two times is the delay time of the network where the sending equipment and the receiving equipment are located.
The oscilloscope used by the invention is at least a two-channel oscilloscope. First, in step S1, a test platform is mainly set up, and a first probe of an oscilloscope is connected to a signal line of a transmitting device, and a second probe of the oscilloscope is connected to a signal line of a receiving device. The method for measuring the network delay provided by the invention measures in a network physical layer, and uses the oscilloscope probe to detect the arrival time of a signal, thereby effectively eliminating errors caused by asynchronous equipment clocks and software processing.
Fig. 2 is a second schematic flow chart of the method for measuring network delay according to the present invention, as shown in fig. 2, in step S2, a test frame is first sent to a receiving device through a signal sending device in a network to be tested, since a first probe is connected to a signal line of the sending device, a timestamp for the sending device to send the test frame can be determined in time according to a collected first signal as a first timestamp,
the test frame sent by the sending equipment reaches the receiving equipment after being exchanged, and the second probe of the oscilloscope is connected with the signal line of the receiving equipment, so that the time stamp when the receiving equipment receives the test frame can be determined in time according to the acquired second signal and used as the second time stamp.
Further, the first signal collected by the first probe needs to be compared with the second signal collected by the second probe to determine whether the test frame received by the receiving device is the same as the test frame sent by the sending device.
And under the condition that the first signal is matched with the second signal, calculating the time difference between the second time stamp and the first time stamp, thereby determining the time delay between the signals sent by the sending equipment to the receiving equipment and received as the time delay of the network.
The network delay measuring method provided by the invention realizes network delay test in a physical layer by acquiring the action time difference of the sending equipment and the receiving equipment in the network to the same test frame, and the test result does not depend on the clock synchronization precision of the test equipment and does not influence the normal use of the network.
Based on the content of the above embodiment, as an alternative embodiment, the first signal and the second signal are waveform signals; the obtaining a time difference between the second timestamp and the first timestamp if the first signal matches the second signal comprises:
respectively carrying out waveform analysis on the first signal and the second signal to obtain first waveform information corresponding to the first signal and second waveform information corresponding to the second signal; comparing the first waveform information with the second waveform information to obtain a comparison result; and acquiring the time difference between the second time stamp and the first time stamp when the comparison result is matched.
Fig. 3 is a third schematic flow chart of the method for measuring network delay provided by the present invention, and as shown in fig. 3, the method for measuring network delay provided by the present invention records a first time stamp t1 when a sending device sends a test frame to a receiving device, obtains a second time stamp t2 when the receiving device receives the test frame, and then determines the delay of the network by using a difference between t2 and t1, so it is necessary to ensure that the test frame received by the receiving device is sent by the sending device.
Further, when the oscilloscope is used for signal detection and analysis, the detected signal can be recorded and stored first, and then analyzed after the test is completed.
Furthermore, the network delay measurement method provided by the invention has the defect that errors may exist due to the interference of external factors when a certain test frame is simply adopted for network delay measurement, the test frame can be sent in a pulse wave form through sending equipment, and the test frame sent every time is different.
Specifically, after the oscilloscope probe collects and records every test frame waveform (hereinafter referred to as a current waveform), the waveform is analyzed to obtain waveform information, and the waveform information is matched with a previously recorded test frame waveform (hereinafter referred to as a historical waveform).
Because the waveforms of the test frames sent by the emitting device each time are different, if the historical waveforms have no waveform information matched with the current waveforms, the current waveforms are sent by the emitting device, and the current waveforms are added to the database to continue to be collected next time.
If the historical waveform information in the database contains information matched with the waveform information of the current waveform, the current waveform is proved to be received by the receiving equipment, the second time stamp of the current waveform is read at the moment, the first time stamp of the historical waveform corresponding to the second time stamp is read at the same time, and the time difference between the two time stamps is calculated, namely the time delay of the network.
Furthermore, a plurality of pairs of mutually matched waveforms can be simultaneously obtained, corresponding time differences are respectively determined, and then the average value of all the time differences is obtained to serve as the delay size of the network, so that the error caused by single sampling can be effectively reduced, and the detection precision is improved.
Based on the content of the foregoing embodiment, as an optional embodiment, the comparing the first waveform information and the second waveform information to obtain a comparison result includes:
comparing first marking information and first time information related to the first waveform information with second marking information and second time information related to the second waveform information;
and determining that the comparison result is matched under the condition that the first marking information is the same as the second marking information and the first time information is the same as the second time information.
Specifically, the waveform information may include mark information and time information.
Fig. 4 is a signal diagram of a test frame provided by the present invention, where a section of rectangular wave shown in fig. 4 is taken as a test frame, and the mark information and the time information included in the waveform information of the test frame specifically include:
the marking information is: 10101010, the corresponding time information is 1ms, 0.5ms, 1.5ms, 0.5ms, 1 ms.
In combination with the method for measuring network delay provided by the present invention, it is assumed that the first flag information and the first time information related to the acquired first waveform information are rectangular waves as shown in fig. 4, and if the second flag information related to the second waveform information is: 11101011 different from the first flag information; or, the second flag information related to the second waveform information is 10101010, but the corresponding time information is 1ms, 0.5ms, and 0.5ms, which are different from the first time information, and the comparison result is proved to be unmatched, and at this time, the test frame received by the receiving device is different from the test frame sent by the sending device, so that the waveform matched with the first waveform information needs to be continuously searched in the database.
According to the network delay measuring method provided by the invention, through information comparison between the waveform sent by the sending equipment and the waveform received by the receiving equipment, clutter interference of external signals can be effectively avoided, and the detection precision is improved.
Based on the content of the foregoing embodiment, as an optional embodiment, the method further includes: and changing the sending frequency of the test frame to re-determine the delay time of the network where the sending equipment and the receiving equipment are located according to the changed sending frequency.
Optionally, the method for measuring network delay provided by the present invention may simulate the network delay condition under different network occupation conditions by changing the sending frequency of the test frame, for example, by increasing the sending frequency of the test frame, the network delay under the condition of high network occupation rate is obtained; and the network delay under the condition of low network occupancy rate is obtained by reducing the sending frequency of the test frame.
Based on the content of the above embodiments, as an alternative embodiment, the test frame is a pulse wave composed of at least one of a rectangular wave, a sawtooth wave, a triangular wave, a spike wave, and a step wave.
Optionally, since the oscilloscope probes are connected to the signal output end of the sending device and the signal receiving end of the signal receiving device, the time consumed by signal transmission is recorded by the oscilloscope, so as to calculate the delay condition of the network according to the signal receiving time interval recorded by the two oscilloscope probes, the test frame sent by the sending device is required to be received by the receiving device and can be uniquely identified.
In view of this, the test frame in the present invention is required to have a unique pulse waveform, and the waveform transmitted during each pulse is also different. The test frame may be a pulse wave formed by any one of a rectangular wave, a sawtooth wave, a triangular wave, a spike wave and a step wave, or may be a test frame formed by splicing waveforms of various shapes, for example, a section of the test frame generated by combining the rectangular wave and the triangular wave is used as a first signal and is transmitted to the receiving device through the transmitting device. Accordingly, the acquisition of the second signal matched to the first signal at the second probe is also unique, so that clutter interference can be effectively avoided. The detection precision is improved.
Based on the content of the foregoing embodiment, as an optional embodiment, a network where the sending device and the receiving device are located is a Time-Sensitive Networking (TSN).
The TSN network is also called a time sensitive network, and its main applications include an integrated network used in a vehicular network or an industrial control, combining real-time video streaming and real-time control streaming. The TSN has the advantages of high bandwidth, safety, interoperability and the like, and can well meet the requirement of interconnection of everything in the future. The main working principle is the priority applicable (IEEE P802.3br) mechanism, which makes the priority processing of the key data packet in the transmission. This means that critical data does not have to wait for all non-critical data to finish being transferred before starting, thus ensuring a faster transmission path.
The network delay measuring method provided by the invention mainly aims at detecting the delay of the TSN network, and can fully play the advantages of signal receiving time recorded by two oscilloscope probes.
Fig. 5 is a schematic structural diagram of a network delay measurement system provided in the present invention, as shown in fig. 5, the system mainly includes: an oscilloscope and a computer; the computer at least comprises a signal simulation module, a time acquisition module and an operation processing module.
A first probe of the oscilloscope is connected with a signal wire of the sending equipment, and a second probe of the oscilloscope is connected with a signal wire of the receiving equipment; the signal simulation module is used for generating a test frame.
And under the condition that the sending equipment sends the test frame to the receiving equipment through the switch, the first probe is utilized to collect a first signal, and the time acquisition module records a first time stamp of the first signal.
A second signal is acquired with the second probe and a second time stamp of the second signal is recorded by the time acquisition module.
And under the condition that the operation processing module determines that the first signal is matched with the second signal, acquiring a time difference between the second timestamp and the first timestamp to use the time difference as the delay time of the network where the sending device and the receiving device are located.
The network delay measuring system provided by the invention realizes network delay test in a physical layer by acquiring the action time difference of the sending equipment and the receiving equipment in the network to the same test frame, and the test result does not depend on the clock synchronization precision of the test equipment and does not influence the normal use of the network.
Based on the content of the above embodiment, as an optional embodiment, the operation processing module includes a waveform analysis unit, an information comparison unit, and a difference calculation unit;
the waveform analysis unit is used for respectively carrying out waveform analysis on the first signal and the second signal to acquire first waveform information corresponding to the first signal and second waveform information corresponding to the second signal; the information comparison unit is used for comparing the first waveform information with the second waveform information to obtain a comparison result; the difference calculating unit is configured to obtain a time difference between the second timestamp and the first timestamp when the comparison result matches the comparison result.
It should be noted that, when specifically executed, the system for improving train positioning accuracy provided in the embodiment of the present invention may be implemented based on the method for improving train positioning accuracy described in any of the above embodiments, and details of this embodiment are not described herein.
Fig. 6 is a schematic structural diagram of an electronic device provided in the present invention, and as shown in fig. 6, the electronic device may include: a processor (processor)610, a communication interface (communication interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 are communicated with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a method of measuring network latency, the method comprising: connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment; under the condition that the sending equipment sends a test frame to the receiving equipment through the switch, the first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal with the second probe and recording a second time stamp of the second signal; and under the condition that the first signal is matched with the second signal, acquiring the time difference between the second time stamp and the first time stamp to take the time difference as the delay time of the network where the sending device and the receiving device are located.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method for measuring network latency provided by the above methods, the method comprising: connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment; under the condition that the sending equipment sends a test frame to the receiving equipment through the switch, the first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal with the second probe and recording a second time stamp of the second signal; and under the condition that the first signal is matched with the second signal, acquiring the time difference between the second time stamp and the first time stamp to take the time difference as the delay time of the network where the sending device and the receiving device are located.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the method for measuring network latency provided in the above embodiments, the method including: connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment; under the condition that the sending equipment sends a test frame to the receiving equipment through the switch, the first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal with the second probe and recording a second time stamp of the second signal; and under the condition that the first signal is matched with the second signal, acquiring the time difference between the second time stamp and the first time stamp to take the time difference as the delay time of the network where the sending device and the receiving device are located.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for measuring network delay is characterized by comprising the following steps:
connecting a first probe of the oscilloscope with a signal line of the sending equipment, and connecting a second probe of the oscilloscope with a signal line of the receiving equipment;
under the condition that the sending equipment sends a test frame to the receiving equipment through the switch, the first probe is used for acquiring a first signal, and a first timestamp of the first signal is recorded; acquiring a second signal with the second probe and recording a second time stamp of the second signal;
and under the condition that the first signal is matched with the second signal, acquiring the time difference between the second time stamp and the first time stamp to take the time difference as the delay time of the network where the sending device and the receiving device are located.
2. The method of claim 1, wherein the first signal and the second signal are waveform signals; the obtaining a time difference between the second timestamp and the first timestamp if the first signal matches the second signal comprises:
respectively carrying out waveform analysis on the first signal and the second signal to obtain first waveform information corresponding to the first signal and second waveform information corresponding to the second signal;
comparing the first waveform information with the second waveform information to obtain a comparison result;
and acquiring the time difference between the second time stamp and the first time stamp when the comparison result is matched.
3. The method of claim 2, wherein comparing the first waveform information with the second waveform information to obtain a comparison result comprises:
comparing first marking information and first time information related to the first waveform information with second marking information and second time information related to the second waveform information;
and determining that the comparison result is matched under the condition that the first marking information is the same as the second marking information and the first time information is the same as the second time information.
4. The method for measuring network delay according to claim 1, further comprising: and changing the sending frequency of the test frame to re-determine the delay time of the network where the sending equipment and the receiving equipment are located according to the changed sending frequency.
5. The method of claim 1, wherein the test frame is a pulse wave formed of at least one of a rectangular wave, a sawtooth wave, a triangular wave, a spike wave, and a step wave.
6. The method according to claim 1, wherein the network where the sending device and the receiving device are located is a time-sensitive network.
7. A system for measuring network delay, comprising: an oscilloscope and a computer; the computer at least comprises a signal simulation module, a time acquisition module and an operation processing module;
the first probe of the oscilloscope is connected with a signal wire of the sending equipment, and the second probe of the oscilloscope is connected with a signal wire of the receiving equipment;
the signal simulation module is used for generating a test frame;
under the condition that the sending equipment sends the test frame to the receiving equipment through the switch, a first signal is collected by using the first probe, and a first timestamp of the first signal is recorded by the time acquisition module;
acquiring a second signal by using the second probe, and recording a second time stamp of the second signal by the time acquisition module;
and under the condition that the operation processing module determines that the first signal is matched with the second signal, acquiring a time difference between the second timestamp and the first timestamp to use the time difference as the delay time of the network where the sending device and the receiving device are located.
8. The system for measuring network delay according to claim 7, wherein the operation processing module comprises a waveform analysis unit, an information comparison unit and a difference calculation unit;
the waveform analysis unit is used for respectively carrying out waveform analysis on the first signal and the second signal to acquire first waveform information corresponding to the first signal and second waveform information corresponding to the second signal;
the information comparison unit is used for comparing the first waveform information with the second waveform information to obtain a comparison result;
the difference calculating unit is configured to obtain a time difference between the second timestamp and the first timestamp when the comparison result matches the comparison result.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method steps of measuring network delay according to any one of claims 1 to 6 when executing the computer program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method steps of measuring network delay according to any one of claims 1 to 6.
CN202011515621.5A 2020-12-21 2020-12-21 Network delay measuring method and system Active CN112702231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011515621.5A CN112702231B (en) 2020-12-21 2020-12-21 Network delay measuring method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011515621.5A CN112702231B (en) 2020-12-21 2020-12-21 Network delay measuring method and system

Publications (2)

Publication Number Publication Date
CN112702231A true CN112702231A (en) 2021-04-23
CN112702231B CN112702231B (en) 2022-12-16

Family

ID=75507779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011515621.5A Active CN112702231B (en) 2020-12-21 2020-12-21 Network delay measuring method and system

Country Status (1)

Country Link
CN (1) CN112702231B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374625A (en) * 2021-12-24 2022-04-19 董亮 Time-sensitive network testing method and device, electronic equipment and storage medium
CN115396333A (en) * 2022-08-24 2022-11-25 北京智芯微电子科技有限公司 Visual chip, method and switch for communication network delay test

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11346238A (en) * 1998-01-23 1999-12-14 Hewlett Packard Co <Hp> Response time measurement system
CN1801995A (en) * 2005-01-05 2006-07-12 华为技术有限公司 Network time-delay testing method
CN102158334A (en) * 2011-01-28 2011-08-17 北京视博云科技有限公司 Internet protocol quadrature amplitude modulation (IPQAM) equipment delay detection method and device
US8214694B1 (en) * 2009-03-12 2012-07-03 Xilinx, Inc. Lightweight probe and data collection within an integrated circuit
CN104575503A (en) * 2015-01-16 2015-04-29 广东美的制冷设备有限公司 Speech recognition method and device
JP2016180679A (en) * 2015-03-24 2016-10-13 三菱電機株式会社 Time difference measuring system
CN109617743A (en) * 2019-01-10 2019-04-12 北京新宇航星科技有限公司 network performance monitoring and service testing system and testing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11346238A (en) * 1998-01-23 1999-12-14 Hewlett Packard Co <Hp> Response time measurement system
CN1801995A (en) * 2005-01-05 2006-07-12 华为技术有限公司 Network time-delay testing method
US8214694B1 (en) * 2009-03-12 2012-07-03 Xilinx, Inc. Lightweight probe and data collection within an integrated circuit
CN102158334A (en) * 2011-01-28 2011-08-17 北京视博云科技有限公司 Internet protocol quadrature amplitude modulation (IPQAM) equipment delay detection method and device
CN104575503A (en) * 2015-01-16 2015-04-29 广东美的制冷设备有限公司 Speech recognition method and device
JP2016180679A (en) * 2015-03-24 2016-10-13 三菱電機株式会社 Time difference measuring system
CN109617743A (en) * 2019-01-10 2019-04-12 北京新宇航星科技有限公司 network performance monitoring and service testing system and testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阿永嘎 等: "网络式仪器总线同步协议的精确时间戳生成方法的研究", 《机电工程》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374625A (en) * 2021-12-24 2022-04-19 董亮 Time-sensitive network testing method and device, electronic equipment and storage medium
CN115396333A (en) * 2022-08-24 2022-11-25 北京智芯微电子科技有限公司 Visual chip, method and switch for communication network delay test
CN115396333B (en) * 2022-08-24 2024-01-16 北京智芯微电子科技有限公司 Visual chip, method and switch for communication network delay test

Also Published As

Publication number Publication date
CN112702231B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
US6741952B2 (en) Instrument timing using synchronized clocks
CN112702231B (en) Network delay measuring method and system
EP3217249B1 (en) Method and structure for determining inter-system global clock
US8233506B2 (en) Correlation technique for determining relative times of arrival/departure of core input/output packets within a multiple link-based computing system
CN101207591A (en) Method and system for measuring signal characteristics of data signals transmitted between integrated circuit chips
CN109743228B (en) Method and system for measuring position of sampling point
US20100293243A1 (en) method and apparatus for measuring directionally differentiated (one-way) network latency
CN110554364B (en) System and method for testing radar signal pulse arrival time measurement accuracy
CN112395231A (en) Method and device for calculating data delay time among multiple processors
CN100334846C (en) High precision network delay measuring method based on universal PC
CN110263535B (en) Embedded hardware assisted tracking track synchronization method in distributed environment
CN103401813B (en) A kind of asymmetric delay compensation method and switch
CN106788841A (en) Synchronous net on-line monitoring system
CN101738225A (en) Method and apparatus for time synchronization of events for multiple instruments
CN116388896A (en) Device, system and method for testing BTM of transponder information receiving unit
US11606156B1 (en) Clock synchronization
CN114884605A (en) Method for realizing time synchronization of network nodes based on FPGA
Zhou et al. Hats: high accuracy timestamping system based on netfpga
CN109709422B (en) Clock drift elimination method and device
CN109583029B (en) Method and device for eliminating slope value of signal edge influenced by edge
CN202617149U (en) High-precision IP (Internet Protocol) network one-way time delay measuring device
CN112054939A (en) Precision testing method and device for high-precision clock synchronization
CN117155502A (en) Clock synchronization deviation determining method and device, test equipment and storage medium
CN109379252B (en) Network delay measurement method and device based on programmable logic device
CN113328823B (en) Clock identification method and device based on PTP

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
GR01 Patent grant
GR01 Patent grant
TA01 Transfer of patent application right

Effective date of registration: 20221207

Address after: Room 101, 1f, building 1, traffic control building, yard 3, Zhicheng North Street, Fengtai District, Beijing 100070

Applicant after: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd.

Applicant after: Beijing Infrastructure Investment Co.,Ltd.

Address before: No.2 and No.3 building, Beijing headquarters international, No.6 Haiying Road, science and Technology Park, Fengtai District, Beijing 100070

Applicant before: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right