Digital Assignment - 1
Digital Assignment - 1
Digital Assignment - 1
Slot :- A2+TA2
Operations
1. Sender: Transmits a single frame at a time.
2. Sender waits to receive ACK within time out.
3. Receiver: Transmits acknowledgement (ACK) as it receives a
frame.
4. Go to step 1 when ACK is received, or time out is hit.
If a frame or ACK is lost during transmission then the frame is re-transmitted.
This re-transmission process is known as ARQ (automatic repeat request).
The problem with Stop-and wait is that only one frame can be transmitted at a
time, and that often leads to inefficient transmission, because until the sender
receives the ACK it cannot transmit any new packet. During this time both the
sender and the channel are unutilised.
Pros and cons of stop and wait
Pros
Cons
The sender needs to wait for the ACK after every frame it transmits. This is a
source of inefficiency, and is particularly bad when the propagation delay is
much longer than the transmission delay.
Stop and wait can also create inefficiencies when sending longer
transmissions, when longer transmissions are sent there is more likely
chance for error in this protocol. If the messages are short the errors are
more likely to be detected early. More inefficiency is created when single
messages are broken into separate frames because it makes the
transmission longer.
Sliding Window
A method of flow control in which a receiver gives a transmitter permission to
transmit data until a window is full. When the window is full, the transmitter
must stop transmitting until the receiver advertises a larger window.
Go Back N
Selective Repeat
Comparision
Slot :- A2+TA2