(Paper) BCA : CS-69 TCP/IP Programming (Set - 3)

Paper : BCA : CS-69 TCP/IP Programming (Set - 3)
Note: Question number 1 is compulsory. Answer any three questions from the rest.

Q.1.
(a) Identify the address classes of the following IP addresses:
(i) 196.201.190.6
(ii) 120.10.10.17
(iii) 172.196.112.18
(iv) 150.150.15.315

(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.

(c) What is 3-Way handshake mechanism? Also, explain how the mechanism is used for establishing and terminating a TCP connection.

(d) What is the maximum number of fragments possible from an IP datagram?

(e) Write the five characteristics of the User Datagram Protocol?

(f) How does TCP handle the flow control problem using sliding window protocol?

(g) What is the main mechanism that TCP uses to create a reliable connection? Explain with the help of a diagram.

Q.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.

(b) How does TCP handle multiplexing issue?

Q.3.
(a) Explain the concepts of IP subnet addressing and subnet masking with the help of an example for each.

(b) List the important characteristics of UDP. In spite of its drawbacks why it is used? Explain with the help of an example.

(c) Why does lost acknowledgement not necessarily force the re-transmission of TCP data segment?

Q.4.
(a) Explain the importance of the following header fields used in TCP and IP:
(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.

Q.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.

(b) Explain the following terms with the help of an example for each:
(1) Checksum
(2) Authentication
(3) Port
(4) 2-Way handshake