How To Exam?

a knowledge trading engine...


Birla Institute of Technology (BIT Mesra) 2006 NETWORK PROGRAMMING - Question Paper

Saturday, 19 January 2013 10:25Web

Birla Institute of Technology & Science, Pilani

Distance Learning Programmes Division

Second Semester 2006-2007

Mid-Semester Test (EC-1 Regular)



Course No. : IS ZC462

Course Title : NETWORK PROGRAMMING

No. of Pages = 1

No. of ques. = five
Nature of examination : Closed Book

Weightage : 40%

Duration : two Hours

Date of examination : 03/02/2007 (FN)

Note:

1. Please follow all the Instructions to Candidates provided on the cover page of the ans book.

2. All parts of a ques. should be answered consecutively. every ans should begin from a fresh page.

3. Mobile phones and computers of any type should not be brought inside the exam hall.

4. Use of any unfair means will outcome in severe disciplinary action.

5. No Pseudo-code is to be written in place of programs wherever asked.



Q.1 (a) Write the responsibility of Application, Transport and Network layer in the TCP/IP protocol suite along with common protocols used?

Q.1 (b) In the TCP state diagram, state the basic reasons for the presence of the TIME_WAIT state. define the scenario that occurs during the TCP connection termination.

Q.1 (c) Write uses of FIFOs ? Why doesn’t fork return the process ID of the parent to the child and return zero to the parent? Justify? [2.5 + three + 2.5 = 8]



Q.2 (a) Why do sockets give the interface from the upper 3 layers of OSI model into the transport layer?

Q.2 (b) How do getsockname and getpeername functions differ from every other? provide all possible reasons for requiring these 2 functions while writing network application programs.

Q.2 (c) Which transport layer protocol is used by the DNS protocol? TCP or UDP? Justify?

[2 + three + three = 8]



Q.3 (a) Which conditions causes choose to return “writeable” for sockets when you use choose I/O multiplexing technique in the network programs?

Q.3 (b) Why must value-result arguments such as the length of a socket address structure be passed by reference?

Q.3 (c) Write the pseudo code to implement ls -l | wc –w using fork, exec, dup and pipe. Make all the necessary fault checks in your code. Display the output on the screen. [2 + two + five = 9]



Q.4. Write only a server program using I/O multiplexing concept, where it can service both TCP and UDP clients. UDP clients are sent with a greeting message “Hello” and TCP clients are sent with current day and time whenever they are connected to the server. After sending these messages the server closes down the connection. You should use choose for this purpose. [8]



Q.5. Write an unrelated client-server program using FIFOs such that Client reads a pathname of a file from user and sends on the IPC channel. Server reads file pathname from IPC channel and open the file for studying .The server responds by studying the file and writing it to IPC channel, otherwise server write an fault message on IPC channel. Client than reads it from IPC channel and write in a file whatever it receives. If file can’t be learn by server, client reads an fault message from server and display fault message on standard output. Your Client and Server must be an unrelated process. [7]



********



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Birla Institute of Technology (BIT Mesra) 2006 NETWORK PROGRAMMING - Question Paper