0% found this document useful (0 votes)
1 views

Tutorial 6

This document is a lab assignment for a course in Information Technology at Princess Nora Bint Abdulrahman University. It includes questions related to UDP and TCP protocols, such as analyzing a UDP header, understanding TCP segment control fields, and comparing TCP and UDP headers. Additionally, it covers concepts like sender window size and port address uniqueness.

Uploaded by

Dana Mohammed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Tutorial 6

This document is a lab assignment for a course in Information Technology at Princess Nora Bint Abdulrahman University. It includes questions related to UDP and TCP protocols, such as analyzing a UDP header, understanding TCP segment control fields, and comparing TCP and UDP headers. Additionally, it covers concepts like sender window size and port address uniqueness.

Uploaded by

Dana Mohammed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Princess Nora Bint Abdulrahman University Course Name: ---------------------------------------------

Faculty of Computer and Information Sciences Course Code: -----------


-----------------------------------
Department of Information Technology ---------- Semester 20-- /20--
Tutorial / Lab : -----------------------------

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.

5. What determines the Sender widow size in TCP?

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?

You might also like