Homework 2 (due November 11, 2003)
[50 points] Consider the following
protocol, a modified version of Stop-and-Wait which was already
defined in Homework #1.
Assume that there are three hosts, two of which are senders and one is
receiver, sharing the same transmission medium. All hosts can listen
to the medium and do so before transmitting any packet. Of course, we
assume that all packets are of finite length. Assume an integer number
CW, such that:
0 < CWmin £
CW £
CWmax < ¥
NOTE: This is a simplified version of the CSMA/CA protocol used in IEEE 802.11 wireless LANs.
Each sender follows these steps for all packets that it has to transmit until all of its packets are successfully transmitted:
NOTE: If something is not clear about the problem statement you can either send me an email and request explanation or you can make your own reasonable assumptions which will help you solve the problem. In the latter case, make sure you clearly state and explain the assumptions in your solution.
HINT: Use the same methodology as in the textbook, Example 3.15, page 190, but for each sender consider the time when the other sender is transmitting as if the server (i.e., receiver) is on vacation. M/G/1 queues with vacations are covered in Section 3.5.1.
NOTE: According to the above algorithm, when a transmission is unsuccessful the sender has to re-contend for the medium. The other sender may win contention, which means that "vacations" are possible between successive retransmissions of the same packet.