Term-End Examination
June, 2006
CS-69 : TCP/IP PROGRAMMING
Time : 3 hours Maximum Marks : 75
Note Question no.1 is compulsory. Answer any three questions from the rest.
1. (a) Explain how data transmission occurs from one computer to another. Explain the main activities to be conducted at the TCP levels and IP levels in sending packets to the destination computer. (8)
(b) Identify the address classes of the following IP" addresses : (4)
(i) 196.202.101.102
(ii) 216. 111.52.12
(iii) 2.212.011.200
(iv) 150.156.10.10
(c) How does TCP handle time out and retransmission ? Explain the need for multiplexing at the transport layer. (7)
(d) How many networks can each IP address class A, B and C have ? Also, find the number of hosts per network in each given address class.(6)
(e) Write any three differences between the OSI reference model and the TCP/IP model. (3)
(f) Explain the meaning of the following IP addresses : (2)
(i) Network id 1111 1111
(ii) 000 ... 00 Host id
2. (a) Design UDP Client and Server algorithms, where the client should prompt a user to type a line of text and send it to the server. The server should listen to the clients concurrently and print the text with the client's name on the screen. (10)
(b) How does FTP work ? Explain the connection establishment procedure between a client and a
server.(5)
3. (a) Explain the concepts of IP subnet addressing and subnet masking, with the help of an example for each. (8)
(b) Explain any three fields in the ethernet frame format. Also explain how the ethernet frame format is related to the IP and TCP header.(7)
4. (a) Explain the importance of the following IP header fields in network communication (10)
(i) Time To Live
(ii) Fragment Offset
(iii) Type of Service
(iv) Header Checksum
(v) Padding
(b) How does name resolution take place in DNS? Explain this with the help of a suitable example.(5)
5. (a) How does TCP handle the flow control problem ? Also, write any four advantages of TCP over UDP.(7)
(b) Define the following terms.(8)
(i) Sliding Window
(ii) Multicasting
(iii) Congestion
(iv) Gateway