this is the following question I have encountered in school.
There is a file of X bytes that needs to be transferred from Host A to Host B. The MSS is 10 bytes.
What is the maximum value of X such that the TCP sequence numbers are not exhausted? TCP sequence number field is 32 bits.
This is the answer I have been given:
MSS is irrelevant and the maximum value of X is 2 ^ (32).
I understand that in TCP, the sequence number represents the first byte in the segment. Since TCP sequence number is 32 bits, the range of sequence numbers is from 0 to 2^32 - 1.
This means the last sequence number, will have the first byte starting with 2^32 - 1. But if the last sequence contains 10 bytes as well, wouldn't it be 2^32 - 1 + 10 = 2^32 + 9 extra bytes, meaning it exceeds the size of 2^32. Could someone explain what I'm misunderstanding? Thank you!