CN112134747A - Method for detecting transmission delay and related equipment - Google Patents
Method for detecting transmission delay and related equipment Download PDFInfo
- Publication number
- CN112134747A CN112134747A CN201910550657.8A CN201910550657A CN112134747A CN 112134747 A CN112134747 A CN 112134747A CN 201910550657 A CN201910550657 A CN 201910550657A CN 112134747 A CN112134747 A CN 112134747A
- Authority
- CN
- China
- Prior art keywords
- timestamp
- routing device
- data packet
- destination
- end routing
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 84
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000012545 processing Methods 0.000 claims description 47
- 230000002457 bidirectional effect Effects 0.000 claims description 31
- 238000005538 encapsulation Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 230000010365 information processing Effects 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000001934 delay Effects 0.000 claims 3
- 238000010586 diagram Methods 0.000 description 16
- 238000001514 detection method Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 238000005259 measurement Methods 0.000 description 5
- 239000000284 extract Substances 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000005577 local transmission Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
- H04L43/0858—One way delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a method for detecting transmission delay and related equipment, wherein one of the methods comprises the following steps: a destination end routing device receives a first IP data message sent by a source end routing device, wherein the first IP data message carries a first timestamp of the first IP data message sent by the source end routing device; and calculating the one-way transmission time delay from the source end routing equipment to the destination end routing equipment according to the first time stamp and the second time stamp of the first IP data message received by the destination end routing equipment. Therefore, the Ethernet data service transmission channel resource is saved, and the service channel use efficiency is improved.
Description
Technical Field
The present invention relates to, but not limited to, ethernet technology, and in particular, to a method for detecting transmission delay and a related device.
Background
The current ethernet technology is widely applied to transmission systems due to its advantages of good economy, interoperability and usability. With the rapid development of carrier-grade ethernet technology and standards, ethernet gradually extends to metropolitan area networks and wide area networks, thereby providing multi-service bearers as carrier-grade transport technology. The complexity and the function of the ethernet technology in network operation are continuously improved, the core data exchange technology is developed from simple circuit exchange to two-layer exchange, and is gradually developed from the two-layer exchange to the three-layer exchange which is mature today, and different ethernet network layers provide different requirements for the security and manageability of the system. In order to provide users of different network layers of the ethernet with fault Management and performance detection capabilities that are easy to operate and have powerful functions, OAM (Operation Administration and Management) functions of each layer are the key points of current research. The network delay is the time taken by a message to transmit in a transmission medium, i.e., the time from the beginning of the message entering the network to the time of leaving the network, and is expressed in milliseconds (ms) or microseconds (us). The measurement of the time delay is related to the following parameters: port rate, interface type, transmission distance, forwarding mode and caching mode. Many applications, especially 5G businesses, now become sensitive to latency performance, and therefore need to know how much latency performance an actual ethernet network can provide.
Currently, two delay detection modes used by an ethernet three-layer OAM are mainly available:
1, Ping (Packet Internet Grope, Internet Packet explorer) mode: only two-way delay measurements are supported. The Ping operation uses an icmp (Internet Control message Protocol) Protocol provided by a TCP (Transmission Control Protocol)/IP (Internet Protocol), and can immediately obtain two pieces of information, namely, whether the destination host is still operating normally, and the time of packet back and forth, namely, network delay. The working principle of ping is as follows: after sending an Echo Request message to the target host, performing interception (listen), waiting for an Echo Reply response of the target host, and if the target host does not respond after a specified Time, considering the target host as "Time out" (overtime).
The DMM/DMR Message transmission has a local timestamp, and the working principle is that a source end periodically transmits a DMM Message to a destination end, the destination end directly calculates single-end Delay through timestamp information after receiving the DMM Message, or returns the DMR Message to the source end, and the source end calculates bidirectional Delay.
However, both of the above approaches have drawbacks:
1, aiming at the Ping mode, the IP address configured on the Ping network device on the host computer, because the network device at the slightly higher end generally will be protected by the CPU (Central Processing Unit) of the control layer, and the priority of the response Processing to the Ping packet is very low, the delay test value will be generally higher or even packet loss will occur, but this does not actually reflect the real network performance, and the IP message with option field on many network devices also needs to be sent to the CPU for Processing, and the tested delay will be higher;
and 2, aiming at the DMM/DMR message mode, the DMM/DMR control message and the data Service message share a transmission channel, and when the flow is blocked or overloaded, the speed limit is easily adjusted by QoS (Quality of Service), even the speed limit is discarded. Thereby affecting the accuracy of the delay statistics.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method for detecting a transmission delay, including:
a destination end routing device receives a first IP data message sent by a source end routing device, wherein the first IP data message carries a first timestamp of the first IP data message sent by the source end routing device;
calculating the one-way transmission delay from the source end routing equipment to the destination end routing equipment according to the first timestamp and the second timestamp of the first IP data message received by the destination end routing equipment;
or sending a second IP data packet to the source end routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination end routing device receiving the first IP data packet, and a third timestamp of the destination end routing device sending the second IP data packet, so that the source end routing device calculates a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp of the source end routing device receiving the second IP data packet.
The embodiment of the invention also provides a method for detecting the transmission delay, which comprises the following steps:
the source end routing equipment sends a first IP data message to destination end routing equipment, wherein the first IP data message carries a first time stamp of the first IP data message sent by the source end routing equipment, so that the destination end routing equipment calculates the one-way transmission delay from the source end routing equipment to the destination end routing equipment according to the first time stamp and a second time stamp of the first IP data message received by the destination end routing equipment.
The embodiment of the invention also provides a method for detecting the transmission delay, which comprises the following steps:
a source end routing device sends a first IP data message to a destination end routing device, wherein the first IP data message carries a first timestamp of the first IP data message sent by the source end routing device;
receiving a second IP data packet sent by the destination routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination routing device receiving the first IP data packet, and a third timestamp of the destination routing device sending the second IP data packet;
and calculating the bidirectional transmission delay according to the first time stamp, the second time stamp, the third time stamp and a fourth time stamp of the source end routing equipment for receiving the second IP data message.
The embodiment of the present invention further provides a destination routing device, including: the receiving unit, still include: a calculation unit or a transmission unit;
the receiving unit is configured to receive a first IP data packet sent by a source end routing device, where the first IP data packet carries a first timestamp of the first IP data packet sent by the source end routing device;
the calculating unit is configured to calculate a one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and a second timestamp of the first IP data packet received by the destination end routing device;
the sending unit is configured to send a second IP data packet to the source end routing device, where the second IP data packet carries the first timestamp, a second timestamp that the destination end routing device receives the first IP data packet, and a third timestamp that the destination end routing device sends the second IP data packet, so that the source end routing device calculates a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp that the source end routing device receives the second IP data packet.
The embodiment of the present invention further provides a source routing device, including:
the sending unit is configured to send a first IP data packet to a destination routing device, where the first IP data packet carries a first timestamp of the source routing device sending the first IP data packet, so that the destination routing device calculates a one-way transmission delay from the source routing device to the destination routing device according to the first timestamp and a second timestamp of the destination routing device receiving the first IP data packet.
The embodiment of the present invention further provides a source routing device, including:
a sending unit, configured to send a first IP data packet to a destination routing device, where the first IP data packet carries a first timestamp of the source routing device sending the first IP data packet;
a receiving unit, configured to receive a second IP data packet sent by the destination routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination routing device receiving the first IP data packet, and a third timestamp of the destination routing device sending the second IP data packet;
and a calculating unit, configured to calculate a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp of the source end routing device receiving the second IP data packet.
The embodiment of the present invention further provides a destination routing device, including:
the second port is used for receiving a first IP data message sent by a source end routing device and recording a second timestamp of the destination end routing device receiving the first IP data message, wherein the first IP data message carries a first timestamp of the source end routing device sending the first IP data message;
the second processing unit is used for calculating the one-way transmission time delay from the source end routing equipment to the destination end routing equipment according to the first time stamp and the second time stamp;
or, the first time stamp, the second time stamp, and a third time stamp for sending a second IP data packet are loaded into an unused field of the second IP data packet, a header length, a packet total length, and a header checksum of an IP packet header of the second IP data packet are updated, and then MAC layer encapsulation is performed, and the second IP data packet is sent to the source end routing device through the second port, so that the source end routing device calculates a bidirectional transmission delay according to the first time stamp, the second time stamp, the third time stamp, and a fourth time stamp for the source end routing device to receive the second IP data packet.
The embodiment of the present invention further provides a source routing device, including: a first port and a first processing unit;
the first processing unit is configured to load a first timestamp of a first IP data packet sent by the source end routing device into an unused field of the first IP data packet, update a header length, a packet total length, and a header checksum of an IP packet header of the first IP data packet, perform MAC layer encapsulation, and send the first IP data packet to the destination end routing device through the first port, so that the destination end routing device calculates a one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and a second timestamp of the first IP data packet received by the destination end routing device.
The embodiment of the present invention further provides a source routing device, including: a first port and a first processing unit;
the first processing unit is configured to load the first timestamp into an unused field of the first IP data packet, update a header length, a packet total length, and a header checksum of an IP packet header of the first IP data packet, perform MAC layer encapsulation, and send the first IP data packet to a destination routing device through the first port;
the first port is further configured to receive a second IP data packet sent by the destination router, and record a fourth timestamp of the source router receiving the second IP data packet; the second IP data packet carries the first timestamp, the second timestamp, and a third timestamp of the second IP data packet sent by the destination routing device;
the first processing unit is further configured to decapsulate the MAC encapsulation and analyze the second IP data packet to obtain the first timestamp, the second timestamp, and the third timestamp, and calculate a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.
The embodiment of the present invention further provides a destination routing device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the method for detecting transmission delay performed by the destination routing device is implemented.
The embodiment of the present invention further provides a source routing device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the method for detecting transmission delay performed by the source routing device.
An embodiment of the present invention further provides a computer-readable storage medium, where an information processing program is stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the method for detecting a transmission delay as described in any of the above is implemented.
The technical scheme provided by the embodiment of the invention saves the resources of the Ethernet data service transmission channel and improves the service channel use efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flowchart of a method for detecting a transmission delay according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for detecting a transmission delay according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for detecting a transmission delay according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention;
fig. 6(a) is a schematic diagram of an IP packet header structure of an IPv4 packet according to an embodiment of the present invention;
fig. 6(b) is a message structure diagram of an IPv6 message according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention;
fig. 8 is a schematic diagram illustrating an architecture of a system for detecting propagation delay according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a destination routing device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a source routing device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a source routing device according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of a destination routing device according to another embodiment of the present invention;
fig. 14 is a schematic structural diagram of a source routing device according to another embodiment of the present invention;
fig. 15 is a schematic structural diagram of a source routing device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a schematic flowchart of a method for detecting a transmission delay according to an embodiment of the present invention, as shown in fig. 1, the method includes:
102, calculating the one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and the second timestamp of the first IP data message received by the destination end routing device;
or, step 103, sending a second IP data packet to the source end routing device, where the second IP data packet carries the first timestamp, a second timestamp that the destination end routing device receives the first IP data packet, and a third timestamp that the destination end routing device sends the second IP data packet, so that the source end routing device calculates a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp that the source end routing device receives the second IP data packet.
Wherein the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
Fig. 2 is a schematic flowchart of a method for detecting a transmission delay according to another embodiment of the present invention, as shown in fig. 2, the method includes:
Wherein, the first time stamp is loaded in the unused field of the IP message.
Fig. 3 is a schematic flowchart of a method for detecting a transmission delay according to another embodiment of the present invention, as shown in fig. 3, the method includes:
Wherein the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
Fig. 4 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention,
in this embodiment, the application scenario is one-way transmission delay detection.
As shown in fig. 4, the method includes:
for example, when the first IP datagram is an IPv4 datagram, the first timestamp is carried in an option field or an unused part of an IP datagram data segment reserved in an IPv4 datagram header. And when the first IP data message is an IPv6 message, the first timestamp is borne on an IPv6 expansion header or an unused part of an IP message data segment.
Specifically, the processing unit of the source end routing device may extract the local time information, load the timestamp information into an unused field of the IP packet before forwarding the packet to the port of the source end routing device, and then forward the packet to the destination end port through the source end port.
Specifically, after receiving the first IP data packet, the port of the destination routing device records a second timestamp of the destination routing device receiving the first IP data packet. Then, the processing unit of the destination routing device analyzes the first IP data packet to obtain a first timestamp, and compares the first timestamp with a local receiving timestamp, that is, a second timestamp, so as to calculate a unidirectional transmission delay value from the source routing device to the destination routing device, that is, the unidirectional transmission delay value is the second timestamp — the first timestamp.
Fig. 5 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention,
in this embodiment, the application scenario is bidirectional transmission delay detection.
As shown in fig. 5, the method includes:
for example, when the first IP datagram is an IPv4 datagram, the first timestamp is carried in an option field or an unused part of an IP datagram data segment reserved in an IPv4 datagram header. And when the first IP data message is an IPv6 message, the first timestamp is borne on an IPv6 expansion header or an unused part of an IP message data segment.
Specifically, the processing unit of the source end routing device may extract the local time information, load the timestamp information into an unused field of the IP packet header before forwarding the packet to the port of the source end routing device, and then forward the packet to the port of the destination end through the source end port, that is, send the packet to the destination end routing device.
specifically, after receiving the first IP data packet, the port of the destination routing device records a second timestamp of the destination routing device receiving the first IP data packet.
specifically, the processing unit of the destination routing device may load the first timestamp, the second timestamp, and a third timestamp, which is a local transmission time of the second IP datagram, into an unused field of the second IP datagram; and then the data is forwarded out through a port of the destination end routing equipment, namely, the data is sent to the source end routing equipment.
For example, when the second IP datagram is an IPv4 datagram, the timestamp is carried in an option field reserved in an IPv4 datagram header or an unused portion of an IP datagram data segment. And when the second IP data message is an IPv6 message, the timestamp is borne on the IPv6 expansion header or the unused part of the IP message data segment.
Specifically, after receiving the second IP data packet, the port of the source end routing device records a fourth timestamp of the source end routing device receiving the second IP data packet. Then, the processing unit of the source-end routing device analyzes the second IP data packet to obtain the first timestamp, the second timestamp, and the third timestamp, compares the first timestamp, the second timestamp, and the third timestamp with a local receiving timestamp, that is, a fourth timestamp, and calculates a bidirectional transmission delay, that is, a value of the bidirectional transmission delay is (fourth timestamp-first timestamp) - (third timestamp-second timestamp).
In another embodiment of the present invention, when the transmitted IP data packet is an IPv4 packet, the IP header structure is as shown in fig. 6(a), and the option field reserved in the data service IP header may be used to store the timestamp information. When the transmitted IP data packet is an IPv6 packet, the IP packet data structure is as shown in fig. 6(b), and the timestamp information may be stored using an extension header of the IP packet or an unused portion of the data portion.
For example, when only one-way time delay needs to be calculated, 1-2 spaces with the width of 8 bytes are needed in an option field or an unused data segment of an IP packet header, and the one-way time stamps of routing devices at two ends are stored:
uint64TxTimef,// Source Router device sending timestamp
Uint64RxTimef,// destination routing device receives the timestamp
When bidirectional time delay needs to be calculated, 3-4 spaces with the width of 8 bytes are needed in an option field or an unused part of a data section of an IP message header, and bidirectional time stamps of routing equipment at two ends are stored:
uint64TxTimef,// Source Router device sending timestamp
Uint64RxTimef,// destination routing device receives the timestamp
Uint64TxTimeb,// destination routing device sends a timestamp
Uint64 RxTimab,// Source routing device receive timestamp
Fig. 7 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention,
in this embodiment, the application scenario is one-way transmission delay detection. The present embodiment is applied to the system architecture shown in fig. 8, and as shown in fig. 8, the source end routing device 1 includes a processing unit 101 and a port 102. The destination routing device comprises a processing unit 201 and a port 202, and the ports 102 and 202 communicate with each other to transmit data.
As shown in fig. 7, the method includes:
for example, when the first IP data packet is an IPv4 packet, the timestamp TxTimef is carried in an option field reserved in an IPv4 header or an unused part of an IP packet data segment. When the first IP data packet is an IPv6 packet, the timestamp TxTimef is carried in an IPv6 extension header or an unused part of an IP packet data segment.
in step 704, the processing unit 201 calculates a one-way delay value by using RxTimef-TxTimef according to the received packet timestamp RxTimef and the source end transmission timestamp TxTimef.
Wherein, the one-way time delay value is RxTimef-TxTimef.
The one-way delay measurement requires strict synchronization of clocks of a source end and a destination end.
Fig. 9 is a flowchart illustrating a method for detecting a propagation delay according to another embodiment of the present invention,
in this embodiment, the application scenario is bidirectional transmission delay detection. The present embodiment is applied to the system architecture shown in fig. 8, and as shown in fig. 8, the source end routing device 1 includes a processing unit 101 and a port 102. The destination routing device comprises a processing unit 201 and a port 202, and the ports 102 and 202 communicate with each other to transmit data.
As shown in fig. 9, the method includes:
for example, when the second IP datagram is an IPv4 datagram, the timestamp is carried in an option field reserved in an IPv4 datagram header or an unused portion of an IP datagram data segment. And when the second IP data message is an IPv6 message, the timestamp is borne on the IPv6 expansion header or the unused part of the IP message data segment.
in step 907, the processing unit 101 calculates a bidirectional delay value according to the TxTimef/rx time RxTimeb sent by the source terminal and the TxTimeb/rx time RxTimef sent by the destination terminal.
Wherein, the bidirectional delay value is (RxTimeb-TxTimef) - (TxTimeb-RxTimef).
In another embodiment of the present invention, the method for detecting the transmission delay may be implemented by using interrupt-triggered software or in a hardware module, and the processing unit 101 or 201 may be implemented by using a dedicated chip or a hardware logic processor.
In another embodiment of the present invention, in the process of double-ended delay testing, in order to ensure the accuracy of delay detection, the source router should store the transmission timestamp, when receiving a return packet from the destination, check whether TxTimef in the packet belongs to the previously stored transmission timestamp, and if yes, calculate the bidirectional delay value. Otherwise, the message is considered invalid and discarded.
In the technical solution provided by the above embodiment of the present invention, the delay detection is performed based on the data packet, so that the delay is favorable for the normal operation of the data flow required by the internal test. And if the bidirectional time delay test is carried out, the data flow is required to run normally in the bidirectional mode. In the time delay detection process, local real-time needs to be acquired, and the local real-time is quickly loaded into a message and forwarded out; when a message is received, local receiving real-time needs to be rapidly recorded, and time delay values at two ends are calculated. Any delay processing in the middle will affect the accuracy of the delay detection. The collection and processing of time information is preferably implemented by dedicated hardware logic or chips.
The technical scheme provided by the embodiment of the invention adopts a mode of storing the timestamp by using the unused field reserved in the IP message of the data service to realize the one-way or two-way time delay measurement, compared with the Ping mode and the DMM/DMR mode in the prior art, the method does not use a special time delay detection packet to occupy a service channel, saves the resources of an Ethernet data service transmission channel, improves the service channel use efficiency, and the field belongs to one part of an IP message header, has higher priority level in a digital service processor, and has more timely response of a source end route and a destination end route, thereby greatly improving the accuracy of the time delay measurement.
Fig. 10 is a schematic structural diagram of a destination routing device according to an embodiment of the present invention, and as shown in fig. 10, the destination routing device includes: the receiving unit also comprises a calculating unit and/or a sending unit;
the receiving unit is configured to receive a first IP data packet sent by a source end routing device, where the first IP data packet carries a first timestamp of the first IP data packet sent by the source end routing device;
the calculating unit is configured to calculate a one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and a second timestamp of the first IP data packet received by the destination end routing device;
the sending unit is configured to send a second IP data packet to the source end routing device, where the second IP data packet carries the first timestamp, a second timestamp that the destination end routing device receives the first IP data packet, and a third timestamp that the destination end routing device sends the second IP data packet, so that the source end routing device calculates a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp that the source end routing device receives the second IP data packet.
Wherein the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
Fig. 11 is a schematic structural diagram of a source routing device according to an embodiment of the present invention, and as shown in fig. 11, the source routing device includes:
the sending unit is configured to send a first IP data packet to a destination routing device, where the first IP data packet carries a first timestamp of the source routing device sending the first IP data packet, so that the destination routing device calculates a one-way transmission delay from the source routing device to the destination routing device according to the first timestamp and a second timestamp of the destination routing device receiving the first IP data packet.
Wherein, the first time stamp is loaded in the unused field of the IP message.
Fig. 12 is a schematic structural diagram of a source routing device according to another embodiment of the present invention, and as shown in fig. 12, the source routing device includes:
a sending unit, configured to send a first IP data packet to a destination routing device, where the first IP data packet carries a first timestamp of the source routing device sending the first IP data packet;
a receiving unit, configured to receive a second IP data packet sent by the destination routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination routing device receiving the first IP data packet, and a third timestamp of the destination routing device sending the second IP data packet;
and a calculating unit, configured to calculate a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp of the source end routing device receiving the second IP data packet.
Wherein the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
Fig. 13 is a schematic structural diagram of a destination routing device according to another embodiment of the present invention, and as shown in fig. 13, the destination routing device includes:
the second port is used for receiving a first IP data message sent by a source end routing device and recording a second timestamp of the destination end routing device receiving the first IP data message, wherein the first IP data message carries a first timestamp of the source end routing device sending the first IP data message;
the second processing unit is used for calculating the one-way transmission time delay from the source end routing equipment to the destination end routing equipment according to the first time stamp and the second time stamp;
or, the first time stamp, the second time stamp, and a third time stamp for sending a second IP data packet are loaded into an unused field of the second IP data packet, a header length, a packet total length, and a header checksum of an IP packet header of the second IP data packet are updated, and then MAC layer encapsulation is performed, and the second IP data packet is sent to the source end routing device through the second port, so that the source end routing device calculates a bidirectional transmission delay according to the first time stamp, the second time stamp, the third time stamp, and a fourth time stamp for the source end routing device to receive the second IP data packet.
Wherein, the second processing unit is a special chip or a hardware logic processor.
Wherein the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
Fig. 14 is a schematic structural diagram of a source routing device according to another embodiment of the present invention, and as shown in fig. 14, the source routing device includes:
the method comprises the following steps: a first port and a first processing unit;
the first processing unit is configured to load a first timestamp of a first IP data packet sent by the source end routing device into an unused field of the first IP data packet, update a header length, a packet total length, and a header checksum of an IP packet header of the first IP data packet, perform MAC layer encapsulation, and send the first IP data packet to the destination end routing device through the first port, so that the destination end routing device calculates a one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and a second timestamp of the first IP data packet received by the destination end routing device.
Wherein, the first processing unit is a special chip or a hardware logic processor.
Fig. 15 is a schematic structural diagram of a source routing device according to another embodiment of the present invention, and as shown in fig. 15, the source routing device includes:
the method comprises the following steps: a first port and a first processing unit;
the first processing unit is configured to load the first timestamp into an unused field of the first IP data packet, update a header length, a packet total length, and a header checksum of an IP packet header of the first IP data packet, perform MAC layer encapsulation, and send the first IP data packet to a destination routing device through the first port;
the first port is further configured to receive a second IP data packet sent by the destination router, and record a fourth timestamp of the source router receiving the second IP data packet; the second IP data packet carries the first timestamp, the second timestamp, and a third timestamp of the second IP data packet sent by the destination routing device;
the first processing unit is further configured to decapsulate the MAC encapsulation and analyze the second IP data packet to obtain the first timestamp, the second timestamp, and the third timestamp, and calculate a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.
Wherein the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
Wherein, the first processing unit is a special chip or a hardware logic processor.
The embodiment of the present invention further provides a destination routing device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the method for detecting a transmission delay, which is performed by the destination routing device, is implemented.
The embodiment of the present invention further provides a source routing device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, and when the computer program is executed by the processor, the source routing device implements any one of the methods for detecting transmission delay performed by the source routing device.
An embodiment of the present invention further provides a computer-readable storage medium, where an information processing program is stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the method for detecting a transmission delay as described in any of the above is implemented.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Claims (15)
1. A method of detecting transmission delay, comprising:
a destination end routing device receives a first IP data message sent by a source end routing device, wherein the first IP data message carries a first timestamp of the first IP data message sent by the source end routing device;
calculating the one-way transmission delay from the source end routing equipment to the destination end routing equipment according to the first timestamp and the second timestamp of the first IP data message received by the destination end routing equipment;
or sending a second IP data packet to the source end routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination end routing device receiving the first IP data packet, and a third timestamp of the destination end routing device sending the second IP data packet, so that the source end routing device calculates a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp of the source end routing device receiving the second IP data packet.
2. The method of claim 1,
the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
3. A method of detecting transmission delay, comprising:
the source end routing equipment sends a first IP data message to destination end routing equipment, wherein the first IP data message carries a first time stamp of the first IP data message sent by the source end routing equipment, so that the destination end routing equipment calculates the one-way transmission delay from the source end routing equipment to the destination end routing equipment according to the first time stamp and a second time stamp of the first IP data message received by the destination end routing equipment.
4. The method of claim 3,
the first timestamp is carried in an unused field of the IP packet.
5. A method of detecting transmission delay, comprising:
a source end routing device sends a first IP data message to a destination end routing device, wherein the first IP data message carries a first timestamp of the first IP data message sent by the source end routing device;
receiving a second IP data packet sent by the destination routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination routing device receiving the first IP data packet, and a third timestamp of the destination routing device sending the second IP data packet;
and calculating the bidirectional transmission delay according to the first time stamp, the second time stamp, the third time stamp and a fourth time stamp of the source end routing equipment for receiving the second IP data message.
6. The method of claim 5,
the first timestamp, the second timestamp, or the third timestamp is carried in an unused field of an IP packet.
7. A destination routing device, comprising: the receiving unit, still include: a calculation unit or a transmission unit;
the receiving unit is configured to receive a first IP data packet sent by a source end routing device, where the first IP data packet carries a first timestamp of the first IP data packet sent by the source end routing device;
the calculating unit is configured to calculate a one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and a second timestamp of the first IP data packet received by the destination end routing device;
the sending unit is configured to send a second IP data packet to the source end routing device, where the second IP data packet carries the first timestamp, a second timestamp that the destination end routing device receives the first IP data packet, and a third timestamp that the destination end routing device sends the second IP data packet, so that the source end routing device calculates a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp that the source end routing device receives the second IP data packet.
8. A source routing device, comprising:
the sending unit is configured to send a first IP data packet to a destination routing device, where the first IP data packet carries a first timestamp of the source routing device sending the first IP data packet, so that the destination routing device calculates a one-way transmission delay from the source routing device to the destination routing device according to the first timestamp and a second timestamp of the destination routing device receiving the first IP data packet.
9. A source routing device, comprising:
a sending unit, configured to send a first IP data packet to a destination routing device, where the first IP data packet carries a first timestamp of the source routing device sending the first IP data packet;
a receiving unit, configured to receive a second IP data packet sent by the destination routing device, where the second IP data packet carries the first timestamp, a second timestamp of the destination routing device receiving the first IP data packet, and a third timestamp of the destination routing device sending the second IP data packet;
and a calculating unit, configured to calculate a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and a fourth timestamp of the source end routing device receiving the second IP data packet.
10. A destination routing device, comprising:
the second port is used for receiving a first IP data message sent by a source end routing device and recording a second timestamp of the destination end routing device receiving the first IP data message, wherein the first IP data message carries a first timestamp of the source end routing device sending the first IP data message;
the second processing unit is used for calculating the one-way transmission time delay from the source end routing equipment to the destination end routing equipment according to the first time stamp and the second time stamp;
or, the first time stamp, the second time stamp, and a third time stamp for sending a second IP data packet are loaded into an unused field of the second IP data packet, a header length, a packet total length, and a header checksum of an IP packet header of the second IP data packet are updated, and then MAC layer encapsulation is performed, and the second IP data packet is sent to the source end routing device through the second port, so that the source end routing device calculates a bidirectional transmission delay according to the first time stamp, the second time stamp, the third time stamp, and a fourth time stamp for the source end routing device to receive the second IP data packet.
11. A source routing device, comprising: a first port and a first processing unit;
the first processing unit is configured to load a first timestamp of a first IP data packet sent by the source end routing device into an unused field of the first IP data packet, update a header length, a packet total length, and a header checksum of an IP packet header of the first IP data packet, perform MAC layer encapsulation, and send the first IP data packet to the destination end routing device through the first port, so that the destination end routing device calculates a one-way transmission delay from the source end routing device to the destination end routing device according to the first timestamp and a second timestamp of the first IP data packet received by the destination end routing device.
12. A source routing device, comprising: a first port and a first processing unit;
the first processing unit is configured to load the first timestamp into an unused field of the first IP data packet, update a header length, a packet total length, and a header checksum of an IP packet header of the first IP data packet, perform MAC layer encapsulation, and send the first IP data packet to a destination routing device through the first port;
the first port is further configured to receive a second IP data packet sent by the destination router, and record a fourth timestamp of the source router receiving the second IP data packet; the second IP data packet carries the first timestamp, the second timestamp, and a third timestamp of the second IP data packet sent by the destination routing device;
the first processing unit is further configured to decapsulate the MAC encapsulation and analyze the second IP data packet to obtain the first timestamp, the second timestamp, and the third timestamp, and calculate a bidirectional transmission delay according to the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp.
13. A destination routing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing a method for detecting propagation delays as claimed in any one of claims 1 to 2.
14. A source routing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the method of detecting propagation delays according to any one of claims 3 to 6.
15. A computer-readable storage medium, having stored thereon an information processing program which, when executed by a processor, implements the steps of the method of detecting propagation delays of any of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910550657.8A CN112134747A (en) | 2019-06-24 | 2019-06-24 | Method for detecting transmission delay and related equipment |
PCT/CN2020/090075 WO2020259112A1 (en) | 2019-06-24 | 2020-05-13 | Method for measuring transmission time delay and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910550657.8A CN112134747A (en) | 2019-06-24 | 2019-06-24 | Method for detecting transmission delay and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112134747A true CN112134747A (en) | 2020-12-25 |
Family
ID=73849823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910550657.8A Pending CN112134747A (en) | 2019-06-24 | 2019-06-24 | Method for detecting transmission delay and related equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112134747A (en) |
WO (1) | WO2020259112A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113037859A (en) * | 2021-03-24 | 2021-06-25 | 新华三技术有限公司 | Session information management method, device, exchange equipment and medium |
CN115250243A (en) * | 2022-07-22 | 2022-10-28 | 中国电信股份有限公司 | Time delay data measuring method, device, system, electronic equipment and storage medium |
CN115706707A (en) * | 2021-08-05 | 2023-02-17 | 北京金山云网络技术有限公司 | Method, device, storage medium and electronic equipment for measuring network one-way delay |
TWI804371B (en) * | 2022-06-30 | 2023-06-01 | 和碩聯合科技股份有限公司 | Transmission delay detection method and transmission delay detection system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937541A (en) * | 2005-09-20 | 2007-03-28 | 华为技术有限公司 | Network performance test method |
CN101854268A (en) * | 2009-04-04 | 2010-10-06 | 华为技术有限公司 | Method, device and system of IP (Internet Protocol) network performance measurement as well as method, device and system of IP network service quality control |
CN102217237A (en) * | 2011-05-09 | 2011-10-12 | 华为技术有限公司 | Method and device for medium stream performance monitoring |
CN102281283A (en) * | 2010-06-09 | 2011-12-14 | 索尼公司 | communication processing device, communication processing system, communication processing method and program |
CN103595588A (en) * | 2013-11-26 | 2014-02-19 | 北京奥普维尔科技有限公司 | Method for accurately measuring asynchronous Ethernet circuit time delay |
CN103986943A (en) * | 2014-05-31 | 2014-08-13 | 中国科学院国家授时中心 | Large-ring time delay measurement method of digital satellite television timing system |
US20150030028A1 (en) * | 2011-12-30 | 2015-01-29 | British Telecommunications Public Limited Company | Obtaining information from data items |
CN104518919A (en) * | 2013-09-26 | 2015-04-15 | 成都鼎桥通信技术有限公司 | Cluster service time delay measuring method |
CN106452972A (en) * | 2016-10-31 | 2017-02-22 | 清华大学 | Method and device for acquiring data packet delay time |
CN109644503A (en) * | 2016-12-05 | 2019-04-16 | Oppo广东移动通信有限公司 | For the method for random access, the network equipment and terminal device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080059897A (en) * | 2006-12-26 | 2008-07-01 | 한국정보통신대학교 산학협력단 | Method for measuring end-to-end available bandwidth using time stamp message and delay variance in ip packet network |
CN101296048B (en) * | 2008-06-17 | 2011-04-20 | 杭州华三通信技术有限公司 | Time synchronization method and apparatus |
US8861352B2 (en) * | 2010-05-28 | 2014-10-14 | Alcatel Lucent | Dynamic delay budget allocation using single-point estimation of end-to-end delay |
CN108111365B (en) * | 2016-11-24 | 2021-08-10 | 中国移动通信集团广东有限公司 | Time delay measurement processing method and system |
-
2019
- 2019-06-24 CN CN201910550657.8A patent/CN112134747A/en active Pending
-
2020
- 2020-05-13 WO PCT/CN2020/090075 patent/WO2020259112A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1937541A (en) * | 2005-09-20 | 2007-03-28 | 华为技术有限公司 | Network performance test method |
CN101854268A (en) * | 2009-04-04 | 2010-10-06 | 华为技术有限公司 | Method, device and system of IP (Internet Protocol) network performance measurement as well as method, device and system of IP network service quality control |
CN102281283A (en) * | 2010-06-09 | 2011-12-14 | 索尼公司 | communication processing device, communication processing system, communication processing method and program |
CN102217237A (en) * | 2011-05-09 | 2011-10-12 | 华为技术有限公司 | Method and device for medium stream performance monitoring |
US20150030028A1 (en) * | 2011-12-30 | 2015-01-29 | British Telecommunications Public Limited Company | Obtaining information from data items |
CN104518919A (en) * | 2013-09-26 | 2015-04-15 | 成都鼎桥通信技术有限公司 | Cluster service time delay measuring method |
CN103595588A (en) * | 2013-11-26 | 2014-02-19 | 北京奥普维尔科技有限公司 | Method for accurately measuring asynchronous Ethernet circuit time delay |
CN103986943A (en) * | 2014-05-31 | 2014-08-13 | 中国科学院国家授时中心 | Large-ring time delay measurement method of digital satellite television timing system |
CN106452972A (en) * | 2016-10-31 | 2017-02-22 | 清华大学 | Method and device for acquiring data packet delay time |
CN109644503A (en) * | 2016-12-05 | 2019-04-16 | Oppo广东移动通信有限公司 | For the method for random access, the network equipment and terminal device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113037859A (en) * | 2021-03-24 | 2021-06-25 | 新华三技术有限公司 | Session information management method, device, exchange equipment and medium |
CN113037859B (en) * | 2021-03-24 | 2022-04-22 | 新华三技术有限公司 | Session information management method, device, exchange equipment and medium |
CN115706707A (en) * | 2021-08-05 | 2023-02-17 | 北京金山云网络技术有限公司 | Method, device, storage medium and electronic equipment for measuring network one-way delay |
TWI804371B (en) * | 2022-06-30 | 2023-06-01 | 和碩聯合科技股份有限公司 | Transmission delay detection method and transmission delay detection system |
CN115250243A (en) * | 2022-07-22 | 2022-10-28 | 中国电信股份有限公司 | Time delay data measuring method, device, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020259112A1 (en) | 2020-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113709057B (en) | Network congestion notification method, proxy node, network node and computer equipment | |
CN112134747A (en) | Method for detecting transmission delay and related equipment | |
US11228515B2 (en) | Data packet detection method, device, and system | |
RU2608879C2 (en) | Driven by oam controller for openflow | |
US8774045B2 (en) | Packet loss detecting method and apparatus, and router | |
EP4012989A1 (en) | Method and device for service packet transmission | |
CN106936661B (en) | Network monitoring method, device and system | |
CN111371634B (en) | Communication method, device and system | |
US20230102193A1 (en) | Network Performance Measurement Method, Apparatus, Device, and System, and Storage Medium | |
US8594127B2 (en) | Communication device and communication method | |
US20230318970A1 (en) | Packet Processing Method and Apparatus | |
CN115002008B (en) | Method, device, equipment and storage medium for measuring network delay | |
CN108199913B (en) | Method and equipment for realizing time delay test | |
US20030091052A1 (en) | Flexible mapping of circuits into packets | |
CN103685007B (en) | A kind of mac learning method when edge device message forwards and edge device | |
CN113055293A (en) | Routing method and device in software defined wide area network and communication system | |
CN106161124B (en) | Message test processing method and device | |
CN115604183A (en) | Message processing method, device, network equipment and storage medium | |
CN114598636A (en) | Traffic scheduling method, equipment and system | |
CN114915564A (en) | Network state measuring method, device and system | |
CN114301852A (en) | Message transmission control, generation and transmission method, configuration method, equipment and medium | |
WO2023005927A1 (en) | Srv6-based tunnel quality measurement method and related apparatus | |
US20240179226A1 (en) | Packet Mirroring Method, Apparatus, and System | |
WO2023273608A1 (en) | Base station transmission self-checking method, base station, electronic device, and computer-readable storage medium | |
WO2022222693A1 (en) | Message processing method and apparatus, electronic device, and computer-readable storage medium |
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: 20201225 |
|
RJ01 | Rejection of invention patent application after publication |