Documente Academic
Documente Profesional
Documente Cultură
2013 / 2014
Module Title Introduction to Computer Networks and Communications
Instructions to Students
[Turn over]
Q1 Consider a host A that wants to send a 1 Mbyte packet to host B.
Assume that A and B are connected via router R. Link AR connects A
to R, and link RB connects R to B. Link AR is 1 km long and link RB
is 2 km long. Suppose the capacity of each link is 10 Mbytes/s, the
propagation speed is 2*10*8 m/s and the processing delay at R is 10
msec. Find after how long will host B receive the packet.
Solution:
Total delay = delay from A to R + delay from R to B.
Delay from A to R = transmission delay + propagation delay
= 1/10 + 1000/2*10^8
= 100.005 msec.
Delay at router R = 10 mec (given)
Delay from R to B = 1/10 + 2000/2*10^8
= 100.01 msec.
[Total: 10 marks]
Solution:
The combination of a client’s IP address and its source port
is enough to uniquely discriminate between different
sessions arriving at the same Mail server
Solution:
Within the same session, each byte is represented by a
unique sequence number.
iii. Why is TCP well suited for applications like HTTP and POP
(email)? [4 marks]
Solution:
These applications require reliability and do not have any
limitations with respect to timeliness of data delivery. Thus the
overhead (or delay) incurred from possible retransmissions that
help ensure reliability do not degrade the performance of the
application significantly.
[Total: 16 marks]
Solution:
This is a TCP based protocol, so we use slow-start.
1st RTT: SYN + SYN/ACK
2nd RTT: 1500 bytes of data + ACK
3rd RTT: 3000 bytes of data + two ACKs
4th RTT: 6000 bytes of data + four ACKs
5th RTT: 3500 bytes of data + three ACKs
6th RTT: FIN handshake
Solution:
i. Any IP address in range 128.119.40.128 to 128.119.40.191
Solution:
IP packet = 600 data bytes, MTU = 200 bytes, IP header = 20
header bytes.
Maximum possible data length per fragment = MTU – IP header =
200 – 20 = 180 bytes.
The data length of each fragment must be a multiple of eight bytes,
therefore the maximum number of data bytes that can be carried
per fragment is 22*8=176 bytes.
The data packet must be divided into 4 frames, as follows:
176 + 176 + 176 + 72 = 600 (data size)
196, 196, 196, 92 (total size)
The sequence of frames and packet headers is shown below:
Total length Id Mf Fragment Offset
Original Packet 620 x 0 0
Fragment 1 196 x 1 0
Fragment 2 196 x 1 22
Fragment 3 196 x 1 44
Fragment 4 92 x 0 66
[Total: 16 marks]
[Total: 16 marks]
Solution:
Q7 Draw the signal encodings of the given bit-stream : 101110001, for
the encoding schemes RZ and NRZ-I
[18 marks]
Solution: