A method for sorting messages in tcp communication connection
A sorting method and message technology, applied in transmission systems, electrical components, etc., can solve problems such as identification, failure to pass ports, inaccurate port identification results, etc., and achieve the effect of simple calculation process, easy implementation, and rapid judgment
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0022] The present invention will be further described in detail below in conjunction with the reaction scheme and specific examples.
[0023] Such as figure 1 As shown, a method for sorting messages in a TCP communication connection includes the following steps: obtaining the last message in the queue is pkt1, its sequence number, confirmation sequence number, and length are respectively seq1, ack1, and len1, and the new message is pkt2 in addition The sequence number, confirmation sequence number, and length are seq2, ack2, and len2 respectively;
[0024] If pkt1 and pkt2 are in the same direction, the source ip address, source port, destination ip address, and destination port of the packet pkt1 are consistent with those of the packet pkt2, and the confirmation sequence number ack1 of the packet pkt1 is equal to the confirmation sequence number ack2 of the packet pkt2 , the sequence number seq1 of packet pkt1 is updated to min(seq1, seq2), and the length len1 of packet pkt...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
