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

Pending Publication Date: 2014-06-25
亿赞普(北京)科技有限公司
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a message reassembly method and device to solve the problem of low efficiency of TCP fragment message reassembly in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for packet reassembly
  • Method and device for packet reassembly
  • Method and device for packet reassembly

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for packet reassembly. The method comprises the steps of receiving a TCP fragmentation message of a HTTP message, determining a TCP session to which the HTTP message belongs according to a source IP, a target IP and a source port of the TCP fragmentation message; calculating a Hash keyword of the TCP session according to the Hash function, and linking the received TCP fragmentation message to a Hash chain table of the established TCP session according to the sequence of message serial numbers; conducting HTTP packet reassembly according to the Hash chain table corresponding to the TCP session when all TCP fragmentation messages of the TCP session are received. Therefore, the method and device for packet reassembly can solve the problem in the prior art that reassembly efficiency of the TCP fragmentation message is low.

Description

technical field [0001] The present application relates to the field of network technologies, in particular to a message reassembly method and device. Background technique [0002] HTTP GET messages are used to obtain data information on the server. Therefore, at present, when processing large data, most of them filter HTTP GET messages on port TCP80 (TCP protocol + destination port 80), and then filter the filtered HTTP GET messages. Conduct analysis to understand user needs. However, the amount of TCP fragments in HTTP GET messages accounts for 15%-23%. To obtain a complete HTTP GET message, it is necessary to reassemble the TCP fragments in the received HTTP GET message. . [0003] At present, the TCP reassembly method usually monitors all data in the entire connection process during the TCP transmission process, that is, three handshakes establish a connection, and four handshakes disconnect the connection. During data transmission in the middle, since the TCP sequence...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L12/741H04L45/74
Inventor 罗峰黄苏支李娜
Owner 亿赞普(北京)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products