Term-End Examination
December, 2006
CS-69 : TCP/IP PROGRAMMING
Time : 3 hours Maximum Marks : 75
Note : Question number 1 is compulsory. Answer any three questions from the rest.
1. (a) Identify the address classes of the following IP addresses : (4)
(i) 196.201.190.6
(ii) 120.10.10.17
(iii) 172.196.112.18
(iv) 150.150.15.15
(b) How many networks can each IP address Class A, B,C have ? Also, find the number of hosts per network in each given address class. (3)
(c) What is 3-way handshake mechanism ? Also, explain how the mechanism is used for establishing and terminating a TCP connection. (5)
(d) What is the maximum number of fragments possible from an IP datagram ? (3)
(e) Write the five characteristics of the User Datagram Protocol. (5)
(f) How does TCP handle the flow control problem using sliding window protocol ? (5)
(g) What is the main mechanism that TCP uses to create a reliable connection ? Explain with the help of a diagram. (5)
2. (a) Design a TCP client-server algorithm, where the client should prompt a user to type a line of text and send it to the server. The server should print the text, number of characters in the text and the client's name on the screen. (10)
(b) How does TCP handle multiplexing issue ? (5)
3. (a) Explain the concepts of IP subnet addressing and subnet masking with the help of an example for each. (5)
(b) List the important characteristics of UDP. In spite of its drawbacks why is it used ? Explain with the help of an example. (6)
(c) Why does lost acknowledgement not necessarily force the re-transmission of TCP data segment?(4)
4. (a) Explain the importance of the following header fields used in TCP and IP 10
(i) Sequence number
(ii) Fragment offset
(iii) Urgent pointer
(iv) Header checksum
(v) Option + padding
(b) Write the differences and similarities between the TCP/IP and OSI models. (5)
5. (a) List the important domain names used in Internet.How does the name resolution take place in DNS ? Explain it with the help of a diagram. (7)
(b) Explain the following terms with the help of an example for each : (8)
(i) Checksum
(ii) Authentication
(iii) Port
(iv) 2-way handshake