Reputation: 1827
I'm trying to get my head around TCP and parsing the massive RFC isn't helping. I believe I understand the connect and close handshakes, but I can't seem to find anything that summarizes what the actual data stream looks like.
What does a TCP packet look like in between the connect and close handshakes? (particularly the header)
Upvotes: 0
Views: 2256
Reputation: 239041
In the usual steady-state case during the connection, the header will have:
ACK
flag set;PSH
flag is also likely to be set;There is also likely to be a type 8 option field, representing the Time Stamp Option described in RFC1323.
So, for example, during the portion of a HTTP connection in which the server is sending a large amount of data to the client, the client will be sending packets with ACK
set, the sequence number field remaining constant, the acknowledge field incrementing by the size of the segments that the server is sending, and the window size somewhere around the size of one segment. The server will be sending packets with ACK
set, the sequence number field advancing by the size of the segments being sent, the acknowledge field remaining constant, and the window size at maximum.
I recommend using Wireshark to examine a range of real-world connections.
Upvotes: 5