Tutorial 6
Tutorial 6
LAB#6
1. The following is a dump (contents) of a UDP header in hexadecimal format.
0045DF0000580000
a. What is the source port number?
b. What is the destination port number?
c. What is the total length of the user datagram?
d. What is the length of the data?
e. Is the packet directed from a client to a server or vice versa?
f. What is the application-layer protocol?
g. Has the sender calculated a checksum for this packet?
h. If you know that the destination IP address is 14.90.92.33, what is the value of the used
socket address?
2. What can you say about the TCP segment in which the value of the control field is one of
the following?
a) 000000
b) 000001
c) 010001
3. What is the value of HELN (in bits) in TCP segment if you know that the length of the
data is 60 bytes and the total segment length is 100 bytes?
4. An HTTP client opens a TCP connection using an initial sequence number (ISN) of
14,534 and the ephemeral port number of 59,100. The server opens the connection with an
ISN of 21,732. Show the three TCP segments during the connection establishment showing
the fields: source port, destination port, sequence number, Acknowledgement number, and
the flags.
6. In a connection, the value of cwnd is 3000 and the value of rwnd is 5000. The host has
sent 1500 bytes that is not been acknowledged. How many more bytes can be sent?
7. Compare the TCP header and the UDP header. List the fields in the TCP header that are
missing from UDP header. Give the reason for their absence.
8. Do port addresses need to be unique? Why or why not? Why are port addresses shorter than
IP addresses?