Sri Lanka Institute of Information Technology
Data Communications and Computer Networks-III/ Computer Communications
3rd Year, IT/ CSN
Tutorial-01
1. Value of header length in an IP datagram is 7. How many option bytes are presented?
2. Value of the total length field in an IP datagram is 36 bytes and it has no options. What is
the length of data?
3. An IP packet is carrying 1024 bytes of data. If there is no option information, what is the
value of header length field? What is the value of the total length field?
4. A host is sending 100 IP packets to another host. If the identification number of the 1st
packet is 1024, what is the possible identification number of the last packet?
5. A normal IP packet has 6000 bytes of data. The MTU (Maximum Transfer Unit) of the
data link layer is 1500. Therefore the IP packet has to be fragmented. Draw the original IP
packet and the fragmented IP packets. (Identification no=1123). Fill the header only with
available data.
6. An IP datagram has arrived with the following information in the header (in hexadecimal):
45 00 00 54 00 03 00 00 20 06 00 00 7C 4E 03 02 B4 0E 0F 02
I.
Are there any options?
II.
Is the packet fragmented?
III.
What is the size of the data?
IV.
Is a checksum used?
V.
How many more routers can the packet travel to?
VI.
What is the identification number of the packet?
7. Briefly explain what you mean by a raw socket?
8. Why do sockets provide the interface from the upper three layers of the OSI model into the
transport layer?
9. Briefly explain the difference between connectionless and connection-oriented protocols.
Give examples for each category.
10. Clearly explain the TCP connection establishment (three-way handshake) and termination
phases (Important: You should indicate when the relevant socket functions been called and
their points of return).
11. Briefly explain the usage of EOF with respect to TCP connection termination.