- Information
- AI Chat
Was this document helpful?
Transport Answers - Introduction to computer network
Course: CSIT (ITMP200)
234 Documents
Students shared 234 documents in this course
University: Tribhuvan Vishwavidalaya
Was this document helpful?
COMP 3331/9331 Computer Networks and Applications
1
Answers to Sample Questions on Transport Layer
1) Which protocol – Go-Back-N or Selective-Repeat - makes more efficient use of
network bandwidth? Why?
Answer: Selective repeat makes more efficient use of network bandwidth since it only
retransmits those messages lost at the receiver (or prematurely timed out). In Go-Back-
N, the sender retransmits the first lost (or prematurely timed out) message as well as all
following messages (without regard to whether or not they have been received).
2) Consider a reliable data transfer protocol that uses only negative acknowledgements.
Suppose the sender sends data only infrequently. Would a NAK-only protocol be
preferable to a protocol that uses ACKs? Why? Now suppose the sender has a lot of data
to send and the end-to-end connection experiences few losses. In this second case, would
a NAK-only protocol be preferable to a protocol that uses ACKs? Why?
Answer: In a NAK only protocol, the loss of packet x is only detected by the receiver
when packet x+1 is received. That is, the receiver receives x-1 and then x+1, only when
x+1 is received does the receiver realizes that x was missed. If there is a long delay
between the transmission of x and the transmission of x+1, then it will be a long time
until x can be recovered, under a NAK only protocol.
On the other hand, if data is being sent often, then recovery under a NAK-only scheme
could happen quickly. Moreover, if errors are infrequent, then NAKs are only
occasionally sent (when needed), and ACK are never sent – a significant reduction in
feedback in the NAK-only case over the ACK-only case.
3) Refer to Figure 3.56 of the textbook (or a similar figure from the Week 5 lecture note)
which illustrates the convergence of TCP’s Additive Increase Multiplicative Decrease
(AIMD) algorithm. Suppose that instead of a multiplicative decrease, TCP decreased the
window size by a constant amount. Would the resulting AIAD (Additive Increase
Additive Decrease) algorithm converge to an equal share algorithm? Justify your answer
using a similar figure.
Answer: Refer to figure below. Point A is unstable resulting in packet loss. In this case,
both the flows will additively decrease their window resulting in movement along the 45-
degree line (dotted line in above figure) to point A. Eventually when they reach point C,
the sum of the throughputs will be less than the channel capacity and so the two flows
will again additively increase their windows resulting in increase in throughput along the
same dotted line. Again, this oscillation along the dotted line will continue. Hence
fairness will not be achieved and connection 2 will receive an unfairly large share of the
link bandwidth. Hence AIAD is not used by TCP.