Answer the question
In order to leave comments, you need to log in
How to determine the first and last segment in raw TCP packets in IP fragmentation?
Good evening. There is IP traffic, I listen to it and do my dirty deeds. Everything is fine, but as soon as a data burst is sent more than MSS (1460 bytes), MTU 1500 (Ehernet), naturally at the IP level it is cut into segments of size 1460 + 20 (ip header size) + 20 (tcp header size) and pieces are obtained , which I do not need, but I need the final packet in the form of TCP data. I looked through Wireshark, the first and the next, except for the last packet, goes without the PSH flag, but with data, and the last one with PSH flags and also with data. RFC read, did not find / did not understand. Will the following logic be correct:
determine the first and all following packets (except the last one) - if the ACK flag and data > 0
determine the last packet - if the ACK + PSH flag and data > 0
I would be glad for any information. Thank you =)
Answer the question
In order to leave comments, you need to log in
define first and last segment
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question