TCP Sequence Numbers Past 0xffffffff?
Posted on 2008-06-18
This question is directly related to the TCP protocol. I have had no luck discoving what happens to the next generated TCP sequence number that would be greater than 0xffffffff. Does it wrap back around starting from 0?
For example, say the current sequence number is 0xfffffffa and the next pack sent contains 10 Bytes of data, would the next sequence number then be 0x00000004? Or does the connection reset before this can occur?
When the reciever recieves a packet containing the RST flag, does it genereate new sequence numbers, or does the connection have to be reestablished via the 3 way handshake? If the three way handshake occurs does the application controlling the stream then have to resend all initial login data ect, or does the recieving application continue on as if the connection was never reset? Is the RST process transparent to the application?
I know this is a very complex question, but hopefully someone or multiple experts can produce the multiple answers needed to solve this question.