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

Socket Programming

This document contains questions about IP datagrams and TCP/IP networking concepts: 1. Questions ask about header field values in IP datagrams including header length, total length, data length, identification numbers, and checksums. 2. It also asks about fragmenting a large IP packet into smaller packets according to the MTU size. 3. Other questions cover sockets, connection-oriented vs connectionless protocols, TCP connection establishment and termination processes, and usage of EOF with TCP termination.

Uploaded by

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

Socket Programming

This document contains questions about IP datagrams and TCP/IP networking concepts: 1. Questions ask about header field values in IP datagrams including header length, total length, data length, identification numbers, and checksums. 2. It also asks about fragmenting a large IP packet into smaller packets according to the MTU size. 3. Other questions cover sockets, connection-oriented vs connectionless protocols, TCP connection establishment and termination processes, and usage of EOF with TCP termination.

Uploaded by

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

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.

You might also like