Exercises PDF
Exercises PDF
45 00 00 54 00 03 00 00 20 06 00 00 7C 4E 03 02 B4 0E 0F 02
56. In a datagram, the M bit is zero, the value of HLEN is 5, the value of total length is 200,
and the offset value is 200. What is the number of the first byte and number of the last
byte in this datagram? Is this the last fragment, the first fragment, or a middle fragment?
57. An ICMP message has arrived with the header (in hexadecimal):
03 0310 20 00 00 00 00
What is the type of the message? What is the code? What is the purpose of the message?
58. An ICMP message has arrived with the header (in hexadecimal):
05 00 11 12 11 0B 03 02
What is the type of the message? What is the code? What is the purpose of the message?
What is the value of the last 4 bytes? What do the last bytes signify?
59. Show the entries for the header of a UDP user datagram that carries a message from a
TFTP client to a TFTP server. Fill the checksum field with 0s. Choose an appropriate
ephemeral port number and the correct well-known port number. The length of data is
40 bytes. Show the UDP packet
60. An SNMP client residing on a host with IP address 122.45.12.7 sends a message to an
SNMP server residing on a host with IP address 200.112.45.90. What is the pair of
sockets used in this communication?
61. A TFTP server residing on a host with IP address 130.45.12.7 sends a message to a
TFTP client residing on a host with IP address 14.90.90.33. What is the pair of sockets
used in this communication?
62. Answer the following questions:
63. A client uses UDP to send data to a server. The data length is 16 bytes. Calculate the
efficiency of this transmission at the UDP level (ratio of useful bytes to total bytes).
64. Redo Exercise 63, calculating the efficiency of transmission at the IP level. Assume no
options for the IP header.
65. Redo Exercise 63, calculating the efficiency of transmission at the data link layer.
Assume no options for the IP header and use Ethernet at the data link layer.
66. The following is a dump of a UDP header in hexadecimal format.
0045DF000058FE20
67. Compare the TCP header and the UDP header. List the fields in the TCP header that
are not part of the UDP header. Give the reason for each missing field.
68. UDP is a message-oriented protocol. TCP is a byte-oriented protocol. If an application
needs to protect the boundaries of its message, which protocol should be used, UDP or
TCP?
69. What is the maximum size of the TCP header? What is the minimum size of the TCP
header?
70. If the value of HLEN is 0111, how many bytes of option are included in the segment?
71. Show the entries for the header of a TCP segment that carries a message from an FTP
client to an FTP server. Fill the checksum field with 0s. Choose an appropriate
ephemeral port number and the correct well-known port number. The length of data is
40 bytes.
72. What can you say about the TCP segment in which the value of the control field is one
of the following: