Data pack serial number counting method and data pack transmission method
A calculation method and data packet technology, which is applied in the field of communication, can solve the problems of serial number error of the whole header data packet, ignoring the out-of-order or even packet loss of data packets, and achieve the effect of ensuring correctness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0055] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0056] The invention provides a data packet serial number calculation method, which is used for the receiving end to obtain the data packet serial number of the full header data packet. see figure 1 , which is a flowchart of a method for calculating a sequence number of a data packet. It includes the following steps:
[0057] S10: Set the range [a, b) of the sliding window, the starting point a of the sliding window is the sequence number of the expected data packet, and the end point b of the sliding window is determined by the preset sliding window length L. When a+L-1>=65535, b=(a+L+1)&0xFFFF. Because the protocol stipulates that the serial number of the data packet starts from 1 and cannot be 0. When a+L-1<65535, b=a+L.
[0058] S20: The data packet sequence number c is composed of the high byte of a and the low byte of the currently received data packet seq...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 