Method and apparatus for IP fragmentation
A technology of IP fragmentation and IP message, applied in the field of network communication, can solve the problems of multiple fragmentation, increase of network burden, multiple reorganization at the receiving end, etc., and achieve the effect of reducing the frequency and quantity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0025] The following combination figure 1 and figure 2 An embodiment of the invention is provided:
[0026] figure 1 It is a flow chart of the IP fragmentation method in the embodiment of the present invention. The method includes:
[0027] 11. Obtain the length of the IP packet header and the length of the data content of the IP packet.
[0028] 12. Calculate the number of IP fragments. For example, the number of IP fragments FragNum=CEIL(Datalen / ((MTU-Hlen)&~7)), where Datalen is the length of the IP message data content, MTU is the value of the MTU, and Hlen is the length of the IP message header, CEIL is an upper integer function: CEIL(X) means the smallest one among the integers not less than X, & is a bit operation and, and ~ is a bit operation inversion.
[0029] 13. Calculate the data content length of the fragmented IP packet. For example, the data content length of the fragmented IP packet PerFrag_Len=(CEIL(Datalen / FragNum)+7)&˜7.
[0030] 14. The data conte...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 