Re: [Cse461] Fishnet transport interoperability

From: Janet Davis (jlnd_at_cs.washington.edu)
Date: Wed Mar 10 2004 - 16:05:44 PST

  • Next message: Janet Davis: "[Cse461] Quiz section tomorrow"

    On Wed, 10 Mar 2004, Eileen Hash wrote:
    > On Tue, 9 Mar 2004, Janet Davis wrote:
    >
    > > 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).
    > >
    > Shouldn't the corresponding acknowledgement be (seq + payload.length) ?
    >
    > if seq = 3, and the length of the packet is 4 bytes, the packet holds data
    > bytes 3 through 6, and the ack should be 7 (for the next data byte
    > expected). 7 = seq + bytes, not seq + bytes + 1.

    Yes, my goof. Those off-by-one errors can be a real pain. Thanks for the
    correction.

    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
    

  • Next message: Janet Davis: "[Cse461] Quiz section tomorrow"

    This archive was generated by hypermail 2.1.6 : Wed Mar 10 2004 - 16:05:49 PST