Tutorial-5p2
Tutorial-5p2
Exercises Sheet 5
Exercise 1
(c) Why does UDP exist? Couldn’t IP have been used instead for data transfer?
(d) Which fields in the UDP/TCP header change during packet routing?
(e) What does the TCP transmission window allow? What are its special features?
(f) Can a TCP module handle several connections simultaneously? If so, how can these
connections be distinguished?
(i) Consider TCP operating on a 1 Gbit/s link. How long does it take for the sequence number
to loop back completely?
Exercise 2
The TCP exchange shown in the figure 1 corresponds to the transfer of a WEB page between a
WEB browser and a WEB server. It is assumed that the request to the WEB page is 100 bytes
and that the WEB page returned is 1000 bytes. There are no transmission errors. For each data
segment, different information are displayed.
The indicators such as SYN, FIN, ACK have been mentionned, and the number in brackets
corresponds to the total number bytes transmitted in the segment.
If the segment has a positive acknowledgement, the ACK flag is displayed and next to it the the
value of the TCP segment acknowledgement field.
Figure 1: Exercise 2
Exercise 3
Complete the sequence and acknowledgment numbers:
Figure 2: Exercise 3
Exercise 4
Host A and B are communicating over a TCP connection, and Host B has already received
from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B
back-to-back. The first and second segments contain 80 and 40 bytes of data, respectively. Host
B sends an acknowledgment whenever it receives a segment from Host A. Complete the sequence
and acknowledgment numbers:
Figure 3: Exercise 4
Exercise 5
The following is a dump of a UDP header in hexadecimal form:
06 32 00 0D 00 1C E2 17
e) Considering that an IP frame can have a maximum total length of 65 535 bytes, what is
the maximum length of the data in a UDP frame?
Exercise 6
Host A opens a TCP connection to host B, and starts sending a file of size F = 10 bytes, in
segments of size MSS = 1 byte each. As a result of a faulty link, the 5-th packet (without
counting the SYN packet in the TCP handshake) transmitted by A is lost.
vi) The first segment that A transmits will have a sequence number of 1.
Considering the above assumptions, complete the sequence diagram in Figure 4 with all packets
exchanged between A and B (we have completed part of the diagram to help you get started.)
timeout
for pkt 5
Figure 4: Exercise 6