Cs 69

255 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
255
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cs 69

  1. 1. No. of Printed Pages : 3 CS-69(NI BACHELOR IN COMPUTER APPLICATIONScNico-1.C Term-End Examination June, 2011 CS-69 : TCP/IP PROGRAMMING Time : 2 hours Maximum Marks : 60 Note : Question number one is compulsory. Answer any three questions from the rest. 1. (a) What are the reserved bit patterns of the 2 first bytes for class A and class B respectively. (b) In a class A subnet, the IP address of one 2 of the hosts and the mask are as given below : IP address : 17. 34. 12. 57 Mask . • 255. 255. 224. 0 (c) What is the subnet address ? How many 2 octets are there in Ethernet hardware address ? (d) Explain the process of TCP correction 6 termination through illustration. CS-69 1 P.T.O.
  2. 2. (e) Write a client and a server program in 8 C- language to establish a TCP connection between a client and a server. Once a connection is established, the client program sends a string to the server. The server checks whether the string is a palindrome or not and send the reply to the client as YES or NO. Also, explain the logic of a program. (f) Write the syntax and purpose of the 5 following unix commands. (i) Head (ii) Who (iii) Ping (iv) IP config (v) Hostname (g) What is ARP ? Explain its functionality. 5 How does it differ from RARP.2. Differentiate between the followings : 10 (a) Class B and Class C address (b) Hubs and switches (c) Unicast and broadcast method of message transmission. (d) Stateful and stateless programsCS-69 2
  3. 3. 3. (a) How is FTP different from other application 4 layer protocols ? List and explain at least three attributes to be specified prior to data transfer using FTP. (b) Write the syntax and meaning of two 6 functions, one which converts data from the host format to the network format and the second from the network format to the data format respectively.4. Explain the purpose and importance of the 10 following IP and TCP header fields. (a) Header checksum (b) Type of service (c) Sequence number (d) Urgent pointer (e) Padding5. (a) Explain the following terms and meaning 6 and syntax of system call. (i) Socket descriptor (ii) Passive socket (iii) inet ( ) (b) What is the purpose of MIME protocol ? 4 Explain.CS-69 3

×