Zahedi Data Com May 2014: S E C 3 - F & E C
Zahedi Data Com May 2014: S E C 3 - F & E C
Zahedi Data Com May 2014: S E C 3 - F & E C
A stop & wait protocol is used in a half-duplex communication network with the following
characteristics: the propagation delay d is negligible, the processing time for each frame tp is
100 ms, the data rate b is 10 Mbps. Piggyback acknowledgment is assumed.
a) What is the minimum frame length l necessary to achieve a Line Utilization of 90%?
14
What is the EDR then?
ay i
(1+b×tp/ l) = 1/LU
20
M d
b×tp/ l = 1/LU – 1
he
l = b×tp/(1/LU-1) = 10e6×100e-3/(1/0.9-1) = 9 Mbits!
②
om a
C Z
No, because of the memory buffer limitations + effect of error would be disastrous on the
d
throughput. ②
at on
Exercise 2
A pipeline protocol is used in a full-duplex satellite communication channel with the following
parameters: propagation delay of 300 ms (half way), frame processing time of 10 ms, data rate
D m
a) What should be the size of the sender window to achieve a LU of 100% when there are
Ed
no errors?
a
a) What is the throughput if the size of the receiver window is 1 and there are no errors
and ignoring frame overhead?
If no errors ==> all channels are fully transmitting data ==> EDR = 100 kbps
b) What is the throughput if the size of the receiver window is 1 and the BER = 10-6 ignoring
frame overhead?
If we neglect the ack + control frames, the only source of overhead is the ARQ. So we need to
compute the number of frames retransmitted in every 1e6 bits = 1000 frames. ①
c) What shall be the size of the receiver window to achieve the best possible throughput?
14
Wr = 2 × (a + 1) = 2 × (b×d/l + 1) = 2 × (100e3×310e-3/1000 + 1) = 64
ay i
20
M d
a) What shall be the size of the transmitter window to achieve the best possible
throughput?
he
Ws = 4 × (a + 1) -1 = 4 × (b×d/l + 1) -1 = 4 × (100e3×310e-3/1000 + 1) -1 = 128 -1 = 127 ②
om a
C Zd
at on
D m
Ed
a
Exercise 3
a) Compute the FCS appended to the following data bits using the following G: x5+x2+1.
x5 x4 x3 x2 x1 x0
1 0 1 1 1 0 1 1 0 1 0 1 1 0 0 0 0 0 0 1 0 0 1 0 1
1 0 0 1 0 1
1 0 1 1 1 1
14
1 0 0 1 0 1
1 0 1 0 0 1
1 0 0 1 0 1
ay i
1 1 0 0 0 1
20
M d
1 0 0 1 0 1
1 0 1 0 0 1
he 1 0 0
1
1
1
1
0
1
0
0
0
0
1
0
1
1
0
0
0
0
1
1 0
R
om a
1 0 0 1 0 1
1 1 1 1 0 0
C Z
1 0 0 1 0 1
1 1 0 0 1 0
1 0 0 1 0 1
d
1 0 1 1 1
at on
Sent Frame ②
10111011010110 1 0 1 1 1
D m
①
Ed
a
x5 x4 x3 x2 x1 x0
1 0 1 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 1 1 0 0 1 0 1
1 0 0 1 0 1
1 0 1 1 1 1
1 0 0 1 0 1
1 0 1 0 0 1
1 0 0 1 0 1
1 1 0 0 0 1
14
1 0 0 1 0 1
1 0 1 0 0 1
1 0 0 1 0 1
ay i
20
1 1 0 0 0 1 R
M d
1 0 0 1 0 1
he 1
1
0
0
1
0
1
1
0
1
1
0
0
0
0
0
0
1
1
1
1
0
1
1
om a
1 0 0 1 0 1
1 0 0 1 0 1
C Z
0 0 0 0 0
b) Represent the message if an error occurs in the 3rd and 7th bit (from rightmost bit
which is the first one).
②
D m
10111010010010
Ed
d) Will this bit error be detected if the above CRC is used? Show your working.
x5 x4 x3 x2 x1 x0
1 0 1 1 1 0 1 1 0 1 0 1 0 0 1 0 0 1 1 1 0 0 1 0 1
1 0 0 1 0 1
1 0 1 1 1 1
1 0 0 1 0 1
1 0 1 0 0 1
1 0 0 1 0 1
1 1 0 0 0 1
14
1 0 0 1 0 1
1 0 1 0 0 0
1 0 0 1 0 1
ay i
20
1 1 0 1 0 1 R
M d
1 0 0 1 0 1
he 1
1
0
0
0
0
0
1
1
1
0
0
0
0
0
1
1 0 1 1
0 1 0 1
om a
0 1 1 1 1
C Z