Go backward to Announcements
Go up to Top
Go forward to LANs, Ethernet and Contention Protocols

Performance of Sliding Window Protocols

  1. In discussing the performance of stop and wait, we ignored the possibility of data errors. If we do the same with sliding window protocols, the behavior of the protocol is determined entirely by the size of the sender's window, W. The size of the receiver's window, B, is irrelevant in this case. In particular, if no packets are damaged, selective repeat and Go Back N perform equally well.

  2. This, of course, implies we should make some attempt to analyze the behavior of these protocols in the presence of errors.

  3. A precise analysis of selective repeat or Go Back N is beyond what I would attempt. With a bunch of major simplifying assumptions, however, we can get a rough estimate of its efficiency.

  4. The best case performance of Go Back N is rather different. Assuming the sender's buffer is large enough, lost acks will still be irrelevant. If a packet is actually lost, however, all the packets that follow it will be discarded by the receiver. Once the sender notices the problem (by timing out), it needs to go back (hence the name) to the lost packet and start things over again.

  5. The key here is that the behavior of Go Back N can be seen as cycle in which the system works at 100% efficiency for a while as long as no packets are lost. Once a loss occurs, a period of wasted transmissions occurs until the loss is recognized. Then, the sender backs up and starts another period of 100% efficiency.

  6. We can estimate the overall efficiency of the protocol by estimating the relative expected lengths of the 100% efficiency periods and the "go back" periods.

  7. The expected length of the 100% efficiency period is just the expected number of consecutive error free transmissions times the transmission time, TRF.

  8. Using this figure for the length of a run of packets delivered intact, the efficiency of Go Back N can be estimated as
    ((1/p) TRF)/((1/p) TRF + TRF + TRA + 2 P ) = (TRF)/(TRF + p(TRF + TRA + 2 P) )

  9. Finally, for small values of p, the efficiency of selective repeat, 1-p, is very closely approximated by 1/(1+p). Multiplying this formula top and bottom by TRF yields a formula for selective repeat's efficiency that is easily compared to the formula for Go Back N:
    (TRF)/(TRF + p(TRF) )

Computer Science 336
Department of Computer Science
Williams College

Prev Up Next