A message forwarding method and device

By carrying time information in the message header and using correction queue technology, the jitter problem caused by clock deviation between network devices is solved, and the stability and reliability of data transmission are improved.

CN115277883BActive Publication Date: 2024-12-03NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210738489.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-12-03
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

During the data transmission between network devices, jitter caused by clock deviation cannot be effectively recovered, which affects the stability of message transmission, especially in audio and video services, the tolerance for jitter is low.

Method used

By carrying time information in the extended field of the message header, the receiving network device can correct the reference queue based on the carried time information, write the data stream message to the corrected queue, eliminate clock deviation, and reduce jitter to data transmission The impact of The specific steps include receiving data stream messages, recording reception time, parsing the message header to obtain the sending time, determining the correction value, and writing the data stream messages to the correction queue.

Benefits of technology

Effectively eliminate computing errors caused by different clocks of network equipment on both ends, recover jitter, improve the reliability of data transmission, and reduce the impact of jitter on data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277883B_ABST
    Figure CN115277883B_ABST
Patent Text Reader

Abstract

The present specification provides a message forwarding method and device, which relate to the field of communication technology. A message forwarding method, comprising: receiving a data stream message, recording the first time of receiving the data stream message; parsing the data stream message, obtaining the second time carried in the extension field of the message header of the data stream message; determining a reference queue from multiple queues, wherein the reference queue is a queue offset by a preset number from the sending queue, and adjacent queues are separated by a preset sending time; determining a correction value according to the ratio of the correction time to the sending time, wherein the correction time is the difference between the first difference and the average difference between the first time and the second time; writing the data stream message into the correction queue; when polling the correction queue, sending the data stream message written in the correction queue. Through the above method, the jitter generated in the message sending can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a message forwarding method and device. Background Art

[0002] With the application and popularization of network products, users have higher and higher requirements for network products. If the jitter generated during the transmission process is not corrected, it will cause packet loss and even network congestion, especially for services such as audio and video, which have a lower tolerance for jitter. In the case of clock deviation between the network devices at both ends, the clock deviation cannot be detected, so the jitter is difficult to recover, which affects the stability of message sending.

[0003] Therefore, how to reduce the impact of jitter on data transmission during message transmission has become an urgent problem to be solved by those skilled in the art. Summary of the invention

[0004] In order to overcome the problems existing in the related art, this specification provides a message forwarding method and device.

[0005] In conjunction with the first aspect of the implementation manner of this specification, the present application provides a message forwarding method, including:

[0006] Receive a data stream message and record the first time of receiving the data stream message;

[0007] Parse the data stream message to obtain a second time carried in an extension field of a message header of the data stream message, wherein the second time is a time when the data stream message is sent;

[0008] Determine a reference queue from the multiple queues, wherein the reference queue is a queue offset from the sending queue by a preset number, and adjacent queues are separated by a preset sending time;

[0009] Determine a correction value according to a ratio of the correction time to the sending time, wherein the correction time is a difference between a first difference value and an average difference value between the first time and the second time;

[0010] Writing the data stream message into a correction queue, wherein the correction queue is a queue determined by the reference queue according to the correction value offset;

[0011] When the correction queue is polled, the data stream message written in the correction queue is sent.

[0012] Further, according to the ratio of the correction time to the sending time, a correction value is determined, including:

[0013] Calculate a first difference between the first time and the second time;

[0014] Calculate the mean value based on the first difference and the average difference value recorded by itself, and update the average difference value based on the calculation result;

[0015] A correction value is determined according to a ratio of a difference between the first difference value and the updated average difference value to the sending time.

[0016] Optional, mean calculation, including:

[0017] Calculate the average value of the first difference and the average difference recorded by itself; or,

[0018] An average value is calculated based on the recorded number of times the message is received and the first difference between each recorded number of times.

[0019] Furthermore, before receiving the data stream message and recording the first time of receiving the data stream message, the method further includes:

[0020] receiving a test message, and recording a third time of receiving the test message;

[0021] Parse the test message to obtain a fourth time carried in an extension field of a message header of the test message, wherein the fourth time is a time when the test message is sent;

[0022] The difference determined based on the third time and the fourth time is recorded as the average difference.

[0023] Optionally, the extension field is the option field in the Internet Protocol IP header;

[0024] When the first time is written to the option field, the checksum field in the IP header is recalculated.

[0025] In conjunction with the second aspect of the implementation manner of this specification, the present application provides a message forwarding device, including:

[0026] A receiving unit, used for receiving a data stream message and recording a first time of receiving the data stream message;

[0027] A parsing unit, used to parse the data stream message, and obtain a second time carried in an extension field of a message header of the data stream message, wherein the second time is a time when the data stream message is sent;

[0028] A processing unit, configured to determine a reference queue from a plurality of queues, wherein the reference queue is a queue offset by a preset number from the sending queue, and adjacent queues are separated by a preset sending time;

[0029] a calculation unit, configured to determine a correction value according to a ratio of the correction time to the sending time, wherein the correction time is a difference between a first difference value and an average difference value between the first time and the second time;

[0030] A writing unit, used to write the data stream message into a correction queue, wherein the correction queue is a queue determined by the reference queue according to the correction value offset;

[0031] The sending unit is used to send the data stream message written in the correction queue when polling the correction queue based on the sending time.

[0032] Furthermore, the computing unit comprises:

[0033] A calculation module, used for calculating a first difference between a first time and a second time;

[0034] An updating module, configured to calculate a mean value based on the first difference value and the mean difference value recorded by itself, and update the mean difference value based on the calculation result;

[0035] The correction module is used to determine a sending correction value according to the ratio of the difference between the first difference value and the updated average difference value and the sending time.

[0036] Optional, mean calculation, including:

[0037] Calculate the average value of the first difference and the average difference recorded by itself; or,

[0038] An average value is calculated based on the recorded number of times the message is received and the first difference between each recorded number of times.

[0039] Optionally, the device further includes: an updating unit;

[0040] The receiving unit is further configured to receive a test message and record a third time of receiving the test message before receiving the data stream message and recording the first time of receiving the data stream message;

[0041] The parsing unit is further used to parse the test message and obtain a fourth time carried in an extension field of a message header of the test message, wherein the fourth time is a time when the test message is sent;

[0042] The updating unit is further used to determine the difference between the third time and the fourth time as an average difference and record it.

[0043] Optionally, the extension field is the option field in the Internet Protocol IP header;

[0044] When the first time is written to the option field, the checksum field in the IP header is recalculated.

[0045] In combination with the third aspect of the implementation manner of this specification, the present application provides a network device, including a transceiver, a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to: implement any of the above method steps.

[0046] In conjunction with the fourth aspect of the implementation manner of this specification, the present application provides a machine-readable storage medium storing machine-executable instructions. When called and executed by a processor, the machine-executable instructions prompt the processor to: implement any of the above method steps.

[0047] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0048] In the implementation manner of the present specification, by carrying time information in the extended field of the message header, the network device that receives the message can correct the reference queue based on the carried time information, write the message into the corrected queue, eliminate the calculation errors caused by the different clocks of the network devices at both ends, and recover the jitter between the network device that sends the message and the network device that receives the message, thereby reducing the impact of the jitter on data transmission and improving the reliability of data transmission.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0051] Figure 1 It is a flow chart of a message forwarding method involved in an implementation manner of the present application;

[0052] Figure 2 It is a processing schematic diagram of a message forwarding method involved in an implementation manner of the present application;

[0053] Figure 3 It is a structural schematic diagram of a message forwarding device involved in an implementation manner of the present application;

[0054] Figure 4 It is a structural diagram of a network device involved in an implementation manner of the present application. DETAILED DESCRIPTION

[0055] Here, exemplary embodiments are described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification.

[0056] This application provides a message forwarding method, such as Figure 1 As shown, including:

[0057] S100: Receive a data stream message, and record the first time of receiving the data stream message.

[0058] Data streams can be transmitted between two network devices, such as Figure 2 As shown, the network device on the side sending the data stream can be called a sending end, and the network device on the side receiving the data stream can be called a receiving end.

[0059] The sending end sends a data stream to the receiving end. The data stream includes multiple messages with the same five-tuple, which are subsequently referred to as data stream messages. When the receiving end receives the data stream message, the time when the data stream message enters the receiving end can be recorded, which is the first time. The first time is the timestamp generated by the crystal oscillator when the network device receives the message.

[0060] Before sending the data stream message, the sender can record the second time in the message header of the data stream message, and the second time is also the timestamp generated by the network device through the crystal oscillator. The second time can be recorded by the sender in the extension field of the message header, such as the option field of the IP (Internet Protocol) header, or the extension field of the TCP (Transmission Control Protocol) header.

[0061] S101. Parse a data stream message to obtain a second time carried in an extension field of a message header of the data stream message.

[0062] The second time is the time for sending the data stream message.

[0063] In order to modify the protocol less and improve the versatility of the solution, the extension field is optionally the option field in the Internet Protocol IP header. The identifier, length and content need to be agreed upon in the option field. According to the agreement, the sender and the receiver can determine that the first time is carried in the IP header and can obtain the second time.

[0064] It should be noted that when the second time is written into the option field (ie, the sender sends the data stream message), the network device as the sender needs to recalculate the checksum field in the IP header so that the IP header can be verified.

[0065] Of course, the second time may also be carried at other positions in the message header of the data stream message, as long as the modified protocol is supported between the sending end and the receiving end.

[0066] After the network device receives the data stream message, it parses the data stream message so that the network device as the receiving end can determine that the second time can be obtained.

[0067] S102: Determine a reference queue from multiple queues.

[0068] Multiple queues are pre-set at the receiving end, each queue is set to a preset size to store messages, and a sending time is set for these queues for polling and sending, such as 200 microseconds. Every 200 microseconds, the receiving end will read the data stream message from the sending queue for sending, that is, the preset sending time is between adjacent queues.

[0069] A timer is set in the receiving end, and the queue is polled by the timer. The time set by the timer is the sending time. When the timer reaches the sending time, the receiving end sends the data flow message in the current queue to the next network device, points to the next queue, resets the timer for timing, and the network device records the current time and the queue currently pointed to.

[0070] The number of queues can be set according to actual needs. Specifically, the number of queues can be determined based on the jitter range that the network can tolerate. For example, in a network that can tolerate 4 milliseconds of jitter, at least 20 queues are preset. Of course, more queues can be set, such as Figure 2 In the example shown, 100 queues can be set up on the receiving end.

[0071] When a data stream message is received at the receiving end, the data stream message needs to be written into a queue. The queue to be written is determined according to the preset number of offsets of the current sending queue, and the selected queue is the reference queue. The preset number can be set based on the jitter range that can be actually tolerated, and there is no restriction on this.

[0072] However, it should be noted that due to the time difference between the sending end and the receiving end, if the data stream message is sent according to the reference queue, there will be a large jitter. Therefore, in order to eliminate the jitter, the receiving end needs to correct the queue where the data stream message is written.

[0073] S103: Determine a correction value according to the ratio of the correction time to the sending time.

[0074] The correction time is the difference between the first difference and the average difference between the first time and the second time.

[0075] After determining the second time of sending the data stream message and the first time of receiving the data stream message, a first difference between the two can be determined. When the data stream message is received for the first time, the average difference can be set to 0. Then, when the data stream message is received for the first time, a first difference can be determined and the first difference is assigned to the average difference.

[0076] After determining the first difference, the ratio of the difference between the first difference and the average difference to the sending time of the queue is calculated to determine a correction value. The correction value can be understood as the queue deviation caused by jitter. The deviation may be positive or negative. When the deviation is positive, it indicates that the time of the receiving end is later than that of the sending end, and it is necessary to move forward from the reference queue. When the deviation is negative, it indicates that the time of the receiving end is earlier than that of the sending end, and it is necessary to move backward from the reference queue.

[0077] Since jitter fluctuates within a certain range, the first difference value each time is not necessarily the same. In order to make the average difference value close, the data stream message can be received multiple times, and based on the first difference value and the average difference value, the average difference value is converged to a fixed value, which can be considered as the sum of the actual transmission delay, clock deviation and jitter. Since the transmission delay and clock deviation vary very little within a similar time when the network equipment is normal, the difference between the first difference value and the average difference value generated when the data stream message is sent this time can be considered as the deviation caused by the jitter between the two times.

[0078] S104: Write the data stream message into the correction queue.

[0079] The correction queue is the queue determined by the reference queue according to the correction value offset. For example, when the data stream message is sent for the first time, since the first difference is the same as the average difference, the correction value is 0, so no offset is performed, that is, the correction queue is the reference queue. When the data stream message is sent for the second time, there is a deviation between the first difference and the average difference (that is, the first difference of the previous time), so the correction value changes, such as Figure 2 As shown, the reference queue is queue 10 and the correction value is 2, so it can be determined that the correction queue is queue 8.

[0080] After that, the average difference gradually converges and approaches a fixed value. By subtracting the current first difference from the average difference, the jitter of this time can be considered to be determined. After the correction value is determined based on the jitter and the sending time, the queue to which the message actually needs to be written after eliminating the clock deviation of the network device can be determined by offsetting it based on the reference queue.

[0081] After determining the correction queue, the receiving end can write the data stream message into the correction queue, such as Figure 2 As shown, that is queue 8.

[0082] S105. When the correction queue is polled, the data stream message written in the correction queue is sent.

[0083] When the correction queue is polled, the data flow message stored in the correction queue can be sent out.

[0084] By carrying time information in the extended field of the message header, the network device that receives the message can correct the reference queue based on the carried time information, write the message into the corrected sending queue, eliminate the calculation errors caused by the different clocks of the network devices at both ends, and recover the jitter between the network device that sends the message and the network device that receives the message, thereby reducing the impact of jitter on data transmission and improving the reliability of data transmission.

[0085] Further, step S103, determining a correction value according to the ratio of the correction time to the sending time, includes:

[0086] S103A: Calculate a first difference between the first time and the second time.

[0087] S103B, performing mean calculation based on the first difference and the mean difference recorded by itself, and updating the mean difference based on the calculation result.

[0088] Since jitter may cause a large error each time a data stream message is sent, the mean difference may be converged by calculating the mean.

[0089] Optional, mean calculation, including:

[0090] Method 1: Calculate the average value of the first difference and the average difference recorded by itself.

[0091] For example, when the data stream message is sent for the first time, the first time is X1 and the second time is Y1, then the first difference A1 = X1-Y1. After the data stream message sent for the first time is forwarded, since the receiving end does not currently record the average difference, the receiving end writes the first difference to the receiving end and stores it as the average difference.

[0092] When the data stream message is sent for the second time, the first time is X2 and the second time is Y2, then the first difference A2 = X2-Y2. Since the average difference value has been stored in the receiving end, the average value can be calculated based on the first difference value and the average difference value, and the recorded average difference value can be updated based on the average value.

[0093] By analogy, the average value of the first difference value calculated each time and the average difference value that has been recorded is calculated and updated, so that the average difference value can gradually converge as time goes by.

[0094] Method 2: Calculate the average value based on the recorded number of times the message is received and the first difference between each recorded number of times.

[0095] When the receiving end receives a message, the number of times the message is received and the first difference between the first time and the second time calculated when the message is received can be recorded respectively. After a preset period of time has passed, or after the first difference of the preset number of times is recorded, an average calculation is performed, that is, the sum of N first differences / the number of times the message is received, so as to obtain the average value within a period of time and record it as the average difference. At this time, the receiving end can reset the recorded number of times the message is received and the cached average difference, and only record the average difference calculated after clearing. Through the average difference, the data stream message received subsequently can be corrected.

[0096] And, after the time or number of times has passed again, the average value can be recalculated as the average difference value, and the original average difference value can be updated for averaging. Since the average difference value generated the second time is closer to the current time, a coefficient can be set for weighted averaging.

[0097] S103C: Determine a sending correction value according to the ratio of the updated average difference value to the sending time.

[0098] After determining the updated mean difference value, the correction value of the sending queue is determined by calculating the ratio of the recorded mean difference value and the sending time.

[0099] In this way, a correction queue with respect to the reference queue offset correction value can be determined.

[0100] Optionally, before step S100, receiving the data stream message and recording the first time of receiving the data stream message, the method further includes:

[0101] S106: Receive a test message, and record a third time of receiving the test message.

[0102] S107: Parse the test message, and obtain the fourth time carried in the extension field of the message header of the test message.

[0103] The fourth time is the time for sending the test message.

[0104] S108. The difference determined according to the third time and the fourth time is recorded as an average difference.

[0105] Since the average difference is not recorded when the receiving end just starts working, the sending end can send a group of test messages when the sending end and the receiving end start working. The test message points to the receiving end and carries a fourth time corresponding to the second time in the message header of the test message.

[0106] After receiving the test message, the receiving time of the test message is recorded, that is, the third time corresponding to the first time. According to the third time and the fourth time, calculation can also be performed to determine the average difference and record it.

[0107] In order to improve reliability, similarly, several test messages may be sent and the average value of the first difference may be calculated.

[0108] Correspondingly, the present application provides a message forwarding device, such as Figure 3 As shown, including:

[0109] A receiving unit, used for receiving a data stream message and recording a first time of receiving the data stream message;

[0110] A parsing unit, used to parse the data stream message, and obtain a second time carried in an extension field of a message header of the data stream message, wherein the second time is a time when the data stream message is sent;

[0111] A processing unit, configured to determine a reference queue from a plurality of queues, wherein the reference queue is a queue offset by a preset number from the sending queue, and adjacent queues are separated by a preset sending time;

[0112] a calculation unit, configured to determine a correction value according to a ratio of the correction time to the sending time, wherein the correction time is a difference between a first difference value and an average difference value between the first time and the second time;

[0113] A writing unit, used to write the data stream message into a correction queue, wherein the correction queue is a queue determined by the reference queue according to the correction value offset;

[0114] The sending unit is used to send the data stream message written in the correction queue when polling the correction queue based on the sending time.

[0115] Furthermore, the computing unit comprises:

[0116] A calculation module, used for calculating a first difference between a first time and a second time;

[0117] An updating module, configured to calculate a mean value based on the first difference value and the mean difference value recorded by itself, and update the mean difference value based on the calculation result;

[0118] The correction module is used to determine a sending correction value according to the ratio of the difference between the first difference value and the updated average difference value and the sending time.

[0119] Optional, mean calculation, including:

[0120] Calculate the average value of the first difference and the average difference recorded by itself; or,

[0121] An average value is calculated based on the recorded number of times the message is received and the first difference between each recorded number of times.

[0122] Optionally, the device further includes: an updating unit;

[0123] The receiving unit is further configured to receive a test message and record a third time of receiving the test message before receiving the data stream message and recording the first time of receiving the data stream message;

[0124] The parsing unit is further used to parse the test message and obtain a fourth time carried in an extension field of a message header of the test message, wherein the fourth time is a time when the test message is sent;

[0125] The updating unit is further used to determine the difference between the third time and the fourth time as an average difference and record it.

[0126] Optionally, the extension field is the option field in the Internet Protocol IP header;

[0127] When the first time is written to the option field, the checksum field in the IP header is recalculated.

[0128] Correspondingly, the present application provides a network device, such as Figure 4 As shown, it includes a transceiver, a processor and a machine-readable storage medium, the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement any of the above method steps.

[0129] In conjunction with the fourth aspect of the implementation manner of this specification, the present application provides a machine-readable storage medium storing machine-executable instructions. When called and executed by a processor, the machine-executable instructions prompt the processor to: implement any of the above method steps.

[0130] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0131] In the implementation manner of the present specification, by carrying time information in the extended field of the message header, the network device that receives the message can correct the reference queue based on the carried time information, write the message into the corrected sending queue, eliminate the calculation errors caused by the different clocks of the network devices at both ends, and recover the jitter between the network device sending the message and the network device receiving the message, thereby reducing the impact of the jitter on data transmission and improving the reliability of data transmission.

[0132] It should be understood that the present description is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

[0133] The above description is only a preferred implementation of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A message forwarding method, It is characterized in that include: Receiving a data stream message, and recording a first time of receiving the data stream message; Parsing the data stream message, obtaining a second time carried in an extension field of a message header of the data stream message, wherein the second time is a time when the data stream message is sent; Determine a reference queue from a plurality of queues, wherein the reference queue is a queue offset by a preset number from the sending queue, and adjacent queues are separated by a preset sending time; Determine a queue correction value according to a ratio of the correction time to the sending time, wherein the correction time is a difference between a first difference and an average difference between the first time and the second time; Writing the data stream message into a correction queue, wherein the correction queue is a queue determined by the reference queue according to the correction value offset; When the correction queue is polled, the data stream message written in the correction queue is sent; Before the receiving of the data stream message and recording the first time of receiving the data stream message, the method further includes: receiving a test message, and recording a third time of receiving the test message; Parsing the test message to obtain a fourth time carried in an extension field of a message header of the test message, wherein the fourth time is a time when the test message is sent; The difference determined according to the third time and the fourth time is recorded as an average difference.

2. The method according to claim 1, It is characterized in that Determining the correction value according to the ratio of the correction time to the sending time includes: Calculate a first difference between the first time and the second time; Calculate the mean value according to the first difference value and the average difference value recorded by itself, and update the average difference value according to the calculation result; A correction value is determined according to a ratio of a difference between the first difference value and the updated average difference value to the sending time.

3. The method according to claim 2, It is characterized in that The mean value calculation includes: Calculate the average value of the first difference and the average difference recorded by itself; or, An average value is calculated based on the recorded number of times the message is received and the first difference between each recorded number of times.

4. The method according to any one of claims 1 to 3, It is characterized in that The extension field is the option field in the Internet Protocol IP header; When the first time is written to the option field, the checksum field in the IP header is recalculated.

5. A message forwarding device, It is characterized in that include: A receiving unit, configured to receive a data stream message and record a first time of receiving the data stream message; A parsing unit, configured to parse the data stream message, and obtain a second time carried in an extension field of a message header of the data stream message, wherein the second time is a time when the data stream message is sent; A processing unit, configured to determine a reference queue from a plurality of queues, wherein the reference queue is a queue offset by a preset number from a sending queue, and adjacent queues are separated by a preset sending time; a calculation unit, configured to determine a correction value according to a ratio of a correction time to the sending time, wherein the correction time is a difference between a first difference and an average difference between the first time and the second time; A writing unit, used for writing the data stream message into a correction queue, wherein the correction queue is a queue determined by the reference queue according to the correction value offset; A sending unit, configured to send the data stream message written in the correction queue when the correction queue is polled based on the sending time; The device further includes: an updating unit; The receiving unit is further configured to receive a test message and record a third time of receiving the test message before receiving the data stream message and recording the first time of receiving the data stream message; The parsing unit is further configured to parse the test message to obtain a fourth time carried in an extension field of a message header of the test message, wherein the fourth time is a time when the test message is sent; The updating unit is further configured to determine a difference between the third time and the fourth time as an average difference and record the difference.

6. The device according to claim 5, It is characterized in that The computing unit comprises: A calculation module, used for calculating a first difference between the first time and the second time; An updating module, configured to calculate a mean value based on the first difference value and the mean difference value recorded by itself, and update the mean difference value according to the calculation result; The correction module is used to determine a sending correction value according to the ratio of the difference between the first difference value and the updated average difference value and the sending time.

7. The device according to claim 6, It is characterized in that The mean value calculation includes: Calculate the average value of the first difference and the average difference recorded by itself according to the first difference; or, An average value is calculated based on the recorded number of times the message is received and the first difference between each recorded number of times.

8. The device according to any one of claims 5 to 7, It is characterized in that The extension field is the option field in the Internet Protocol IP header; When the first time is written to the option field, the checksum field in the IP header is recalculated.

9. A network device, It is characterized in that The invention comprises a transceiver, a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 4.

10. A machine-readable storage medium, It is characterized in that Machine executable instructions are stored, and when called and executed by a processor, the machine executable instructions prompt the processor to implement the method steps described in any one of claims 1-4.

Citation Information

Patent Citations

  • Information sending and message loss detecting method and device, and network equipment

    CN107769988A

  • Dynamic allocation device and method in 10 gigabit-capable passive optical network

    KR101532181B1