I'm trying to understand how the sequence numbers of the TCP header are generated.
In some places I read that it is the "index of the first byte in the packet" (link here), on some other sites it is a random 32bit generated number that is then incremented.
I don't really know which is which, so here are some questions:
- How is the initial sequence number generated? (Please provide an RFC number if there is one)
- How is it incremented?
- How is the secret key generated?
I read some of the RFCs like RFC 6528, RFC 793, and RFC 1948 but I can't seem to understand which one is actually implemented.
I read about the "std" status but still...
Thank you in advance!