Go Back N Numericals
Go Back N Numericals
Go Back N Numericals
Problem-01:
If transmission delay and propagation delay in a sliding window protocol are 1 msec.
and 49.5 msec. respectively, then:
1- What should be the sender window size to get the maximum efficiency?
2- What is the minimum number of bits required in the sequence number field?
3- If only 6 bits are reserved for sequence numbers, then what will be the
efficiency?
Solution:
Given-
Transmission delay = 1 msec.
Propagation delay = 49.5 msec.
Calculating the minimum number of bits required in the sequence number field:
Minimum number of bits required in the sequence number field
= ⌈log2(1+2a) ⌉
= ⌈log2(100) ⌉
= ⌈6.8⌉
=7
Thus,
Minimum number of bits required in the sequence number field = 7.
Problem-02:
If transmission delay and propagation delay in a sliding window protocol are 1 msec.
and 99.5 msec. respectively, then:
1- What should be the sender window size to get the maximum efficiency?
2- What is the minimum number of bits required in the sequence number field?
3- If only 7 bits are reserved for sequence numbers, then what will be the efficiency?
Solution-
Given-
Transmission delay = 1 msec.
Propagation delay = 99.5 msec.
Calculating the minimum number of bits required in the sequence number field
= ⌈log2(1+2a) ⌉
= ⌈log2(200) ⌉
= ⌈7.64⌉
=8
Thus,
Minimum number of bits required in the sequence number field = 8.
Problem-03:
A 20 Kbps satellite link has a propagation delay of 400 msec., the transmitter employs
the “Go back N” ARQ” scheme with N set to 10.
Assuming that each frame is 100 bytes long, what is the maximum data rate possible?
Solution-
Given:
Bandwidth = 20 Kbps
Propagation delay (Tp) = 400 msec.
Frame size = 100 bytes
Go back N is used where N = 10.
Calculating Efficiency:
Efficiency (η) = N / (1+2a)
= 10 / (1 + 2 x 10)
= 10 / 21
= 0.476
= 47.6 %.
Solution-
Given-
Bandwidth = 1 Mbps
Distance = 2 x 36504 km = 73008 km
Propagation speed = 3 x 10^8 m/sec
Efficiency = 25% = 1/4
Go back N is used where N = 127
Let the packet size be L bits.
Problem-05:
Consider a network connecting two systems located 8000 km apart. The bandwidth
of the network is 500 x 10^6 bits per second. The propagation speed of the media is
4 x 10^6 meters per second. It is needed to design a Go back N sliding window
protocol for this network. The average packet size is 10^7 bits. The network is to be
used to its full capacity.
Assume that processing delays at nodes are negligible. What is the minimum size in
bits of the sequence number field?
Solution-
Given-
Distance = 8000 km
Bandwidth = 500 x 10^6 bps
Propagation speed = 4 x 10^6 m/sec
Packet size = 10^7 bits
Now, for using the network to its full capacity, Efficiency (η) = 1
Efficiency (η) = 1 when sender window size = 1+2a.
Problem-06:
Consider a 128 x 10^3 bits/sec satellited communication link with one-way
propagation delay of 150 msec. Selective Retransmission (repeat) protocol is used
on this link to send data with a frame size of 1 KB. Neglect the transmission time of
acknowledgement. What is the minimum number of bits required for the sequence
number field to achieve 100% utilization?
Solution-
Given-
Bandwidth = 128 x 10^3 bits/sec
Propagation delay (Tp) = 150 msec.
Frame size = 1 KB
Now, to achieve 100% utilization, efficiency must be 100%.
Efficiency is 100% when sender window size is optimal (i.e. 1+2a).