From: Janet Davis (jlnd_at_cs.washington.edu)
Date: Tue Mar 09 2004 - 14:49:08 PST
For interoperability, the sequence number in a transport data packet
should be the number of the *first* byte in the payload. The
corresponding acknowledgement number then is (seq + payload.length + 1).
Similarly, if you are using stop-and-wait, when you get (ACK n), the next
packet you send will have (SEQ=n).
I've heard recently that some people are using the last byte rather than
the first byte for the sequence number. It's pretty much arbitrary
whether the sequence number represents the first or the last byte in the
packet, but it's important for interoperability that we all agree.
Cheers,
Janet
-- Janet Davis jlnd_at_cs.washington.edu http://www.cs.washington.edu/homes/jlnd/ _______________________________________________ Cse461 mailing list Cse461_at_cs.washington.edu http://mailman.cs.washington.edu/mailman/listinfo/cse461
This archive was generated by hypermail 2.1.6 : Tue Mar 09 2004 - 14:49:12 PST