Professional Documents
Culture Documents
Faculty of Engineering
Dept. of Electronics and Comm. Eng.
Output Interface
1
2
3
4
To which output interfaces will datagrams with the following destination addresses be
directed?
1. Destination Address: 239.23.24.170 24(dec)=00011000(bin) => Output Interface 2
2. Destination Address: 239.23.22.161 22(dec)=00010110(bin) => Output Interface 1
3. Destination Address: 238.23.22.160 238(dec)=11101110(bin) => Output Interface 4
10
2
3
2
2
3
ii) Consider a receiver in a selective repeat protocol with 4-bits sequence number and window size 4. If the
receiver has rcvbase equal to 14 and receives a segment with sequence number 3, then it shall send ACK(3) to the
sender.
iii) In a network such as the Internet the shortest path between router A and router B is always the same as the
shortest
path
between
router
B
and
router
A
but
with
reversed
nodes
order.
SEG 0
b- (9 points) A sliding window protocol is used over a 100 Mbps path with RTT of 500 msec and the maximum
segment lifetime is 30 seconds.
i) How many bits should the advertised window field be?
assume 100% utilization
W = #pkt_in_window * #Bytes_in_pkt
RTT < W/(R/8)
W = R * RTT / 8 = 100*10^6*500*10^-3/8
#in advertised window = log2(W)
ii) How many bits should the sequence number field be?
seq. no. > no. of bytes sent during life time
seq. no. > Tout * R / 8
seq. no. bits = log2(Tout * R / 8) = log2(30*100*10^6/8)
iii) If for the above setup TCP is used and at some point, the EstimatedRTT is 600 msec and all
subsequent RTTs are equal to 700 and initial deviation is equal to 100, calculate the estimate of the
timeout interval after 2 samples are received. Take alpha = 0.125 and beta = 0.25.
EstimatedRTT = (1- )*EstimatedRTT + *SampleRTT
DevRTT = (1-)*DevRTT +*|SampleRTT-EstimatedRTT|
1)
EstimatedRTT(1) = (1- .125)*600 + .125*700
DevRTT(1) = (1-.25)*100 +.25*|700-600|
2)
EstimatedRTT(2) = (1- .125)*EstimatedRTT(1) + .125*700
DevRTT(2) = (1-.25)*DevRTT(1) +.25*|700-EstimatedRTT(1)|
TimeoutInterval = EstimatedRTT(2) + 4*DevRTT(2)