Network Programming

loyalsockvillemobNetworking and Communications

Oct 27, 2013 (3 years and 9 months ago)

95 views

POKHARA UNI VERSI TY


Level:
Bachelor

Semester


Fall

Year : 2010

Programme:
BE

Full Marks : 100

Pass Mark : 45

Course:
Network Programming

Time : 3 hrs


Candidates are required to give their answers in their own words as far
as pract
icable.

The figures in the margin indicate full marks.

Attempt all the questions.


1.

a.

Explain the similarities and differences between stream and
datagram protocols.

b.

Compare SNA and OSI model with suitable diagram.

c.

Explain the concept of UUCP in UNIX ne
tworks.

5


5

5

2.

a.

Define a port. Write its significance in a socket. Write a small
part of the code
that binds the port number to the socket.

b.

Draw the flowchart of Socket System Call for connection
-
oriented protocol and connection

less protocol in Berkle
y
Socket.

8


7

3.

a.

Explain different functions that can be used with the socket
system calls.

b.

Give an outline of the design of a concurrent TCP server and
explain the system calls used.

8


7

4.

a.

What do you mean by I/O Multiplying? When do we need I/O
mul
tiplying in programming? Explain the function that we use
for I/O multiplying.

b.

Briefly describe the Windows Blocking, Non
-
blocking and
asynchronous I/O.

8



7

5.

a.

What is windows socket? How does windows socket differ from
Berkely socket?

b.

What is File Desc
riptor? Explain the mechanism of passing file
description in UNIX Socket Programming.

7


8

6.

a.

Explain the datagram service provided by IPX. Explain the
initialization and termination process in IPX.

b.

Explain the IPX packet format along with the use of each

field.

8


7

7.

Write short notes on
(Any Two):

a.

FTP and TFTP

b.

Remote Login

c.

SPX function

2×5