•How large do sequence numbers need to be?
–Must be able to detect wrap-around
–Depends on sender/receiver window size
•E.g.
–Assume SWS = RWS = 7. Also assume that we use 3-bitsequence numbers, i.e., 0..7
–Sender sends frames 0..6
•Assume receiver received all these frames successfully BUT allACKs are lost
•Receiver expects 7,0..5
•Sender timeouts and retransmits old 0..6
•Receiver receives these but assumes these are new frames!!
•It turns out that the sending window size can be nomore than half as big as the number of availablesequence numbers
–WS <= (MaxSeqNo +1)/2