Method and device for packet reassembly
A technology of message and message sequence number, applied in the network field, can solve the problem of low efficiency of TCP fragmented message reassembly, and achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] refer to figure 1 , which shows a flow chart of a message reassembly method in Embodiment 1 of the present application, including:
[0047]Step 101: Receive a TCP fragment of the HTTP message, and determine the TCP session to which the HTTP message belongs according to the source IP, destination IP, and source port of the TCP fragment.
[0048] During the TCP transmission process, the TCP fragmented message of the received HTTP message mainly includes the source IP, destination IP, destination MAC address and source port, which can be based on the source IP, destination IP and The source port determines the TCP session to which a TCP fragment belongs. For example: if the source IP of the TCP fragmented message=11, the destination IP of the TCP fragmented message=22, and the source port of the TCP fragmented message=88, further, the sequence of the above source IP, destination IP and source port is spliced, The character array 112288 is obtained, and the TCP session ca...
Embodiment 2
[0056] refer to figure 2 , shows a flowchart of a packet reassembly method in Embodiment 2 of the present application.
[0057] A message reassembly method in this embodiment includes:
[0058] Step 201: Receive a TCP fragment of the HTTP message, and determine the TCP session to which the HTTP message belongs according to the source IP, destination IP, and source port of the TCP fragment.
[0059] After the step of receiving the TCP fragment message of the HTTP message, the method further includes: using a circular array to store the received TCP fragment message of the TCP session.
[0060] Further, in order to improve the storage speed, the present application adopts the method of applying for static memory space to store the received TCP fragment message of the TCP session, that is, first apply for a large memory, separate it into arrays, and then store the received TCP session TCP fragmented packets are stored in delimited circular arrays. The circular array at least ...
Embodiment 3
[0084] refer to image 3 , which shows a structural block diagram of a message reassembly device in Embodiment 3 of the present application, which may specifically include:
[0085] The determination module 301 is configured to receive a TCP fragment message of the HTTP message, and determine the TCP session to which the HTTP message belongs according to the source IP, destination IP and source port of the TCP fragment message.
[0086]The establishment module 302 is used to calculate the hash key of the TCP session according to the hash function, and link the received TCP fragment message to the hash list of the established TCP session according to the sequence number of the message middle.
[0087] The reassembly module 303 is configured to reassemble the HTTP message according to the hash list corresponding to the TCP session after receiving all the TCP fragmented messages of the TCP session.
[0088] It should be noted that the packet reassembly device in the third embod...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com