DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING LIST OF ASSIGNMENTS

dimerusticΔίκτυα και Επικοινωνίες

23 Οκτ 2013 (πριν από 4 χρόνια και 20 μέρες)

89 εμφανίσεις

ST ANN’S COLLEGE OF ENGINEERING & TECHNOLOGY : CHIRALA

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

LIST OF ASSIGNMENTS

Subject :
Network Programming(NP).

Year :
IV B.Tech


I Sem A&B.

Faculty :
A.V.S.Sudhakar Rao.

ASSIGNMENT
-

1

November
-

2010

1. (a)
Describe in detail about the steps and buffers when an application writes to TCP

socket.


(b) Explain about UDP in detail. [8+8]

2
. (a) Explain about TCP connection establishment and termination.


(b) Discuss different UNIX standards in detail. [8+8]

3
. (a) Explain about TCP connection establishment and termination.


(b) Discuss in detail standard internet services. [8+8]

4
. (a) Discuss in detail about protocol usage by common internet applications.


(b) Describe about limitations of buffer size
s that affect the data on application can

transmit. [8+8]

February
-

2011

1. a) Describe in detail about the steps and buffers when an application writes to TCP

socket.


b) Discuss different UNIX standards in detail. [8+8]

2
. a) Explain about TCP connec
tion establishment and termination.


b) Describe about limitations of buffer sizes that affect the data on application can

transmit. [8+8]

3
. a) Discuss in detail about protocol usage by common internet applications.


b) Explain about Buffer sizes
and their limitations. [8+8]

4
. a) Discuss in detail on standard internet services.


b) Explain about TCP connection establishment and termination. [8+8]

November

-


2011

1. a) Describe the OSI reference model and Unix Standards.


b) Write briefly ab
out the TCP and UDP connection establishment, format and Buffer

sizes.

[8+8]

2
. Write notes on the following:


i. OSI model.

ii. Types of Resources Records (entries in the DNS).

[8+8]

3
. a) Describe the connection establishment handshake of TCP.


b) Discuss the uses of the following TCP Socket options:

[8+8]


i) TCP_MAXSEG

ii) TCP_NODELAY.

4
. a) Compare UDP with TCP protocols.


b) What are the limitations on the size of the IP datagram? Also explain how they

affect the


data
transmitted by an application.

[8+8]

February

-

2012

1. a) Distinguish between UDP & TCP protocol.


b) What are the limitations on the size of the IP datagram ? How they affect the data transmitted by


an application.

[8+8]

2. a) With
the help of a neat sketch explain the steps and buffers involved when an application writes to


a TCP socket.


b) Summarize the protocol usage of any 4 common Internet applications.

[8+8]

3. a) Draw the OSI seven layered model along with the app
roximate mapping to the internet protocol


suite.

Explain the functions offered by each layer?


b) Explain how TCP connection is established using Three


way handshake protocol.
[8+8]

4. a) What are the limitations on the size of the IP datagr
am ? How they affect the data transmitted by


an application.


b) Summarize the protocol usage of any 4 common Internet applications.

[8+8]



ASSIGNMENT
-

2

November
-

2010

1. (a) Give in detail about socket and different socket address
structures.


(b) Discuss different elementary TCP sockets in detail. [8+8]

2. (a)Discuss in detail about fork and exec functions in detail.


(b) Explain in detail about byte ordering and manipulation functions. [8+8]

3. (a) Explain in detail about co
nnect and bind functions.


(b) Describe in detail about concurrent servers. [8+8]

4. (a) Explain about connect and bind functions in detail.


(b) Give in detail about relationship and differences among six exec functions. [8+8]

February
-

2011

1. a)
Explain in detail about socket ,connect and bind functions.


b) Write a Concurrent server program which uses TCP and show the status of Client


and Server before call to fork, after fork and after socket closing by parent and child. [8+8]

2. a)
Discuss in detail about accept, fork and exec functions in detail.


b) Describe byte ordering and manipulation function and its related functions in detail. [8+8]

3. a) Give in detail about socket and different socket address structures.


b) Explain
elementary TCP sockets in detail. [8+8]

4. a) Give in detail about socket and different socket address structures.


b) Give in detail about relationship and differences among six exec functions. [8+8]

November
-

2011

1. Explain the IPv4 Socket Address S
tructure and IPv6 Socket Address Structure with examples.[16]

2. Explain the following with suitable examples


a) Value

Result Arguments and Byte ordering functions


b) Byte Manipulation functions


c) Address conversion functions. [8+4+4]

3. a)
Give the IPv4 socket address structure and explain the significance of each field.


b) Explain how multiple clients are handled by a concurrent server. [8+8]

4. a) Explain with a suitable diagram the socket system calls used for connection oriented



Communication between a client and a server.


b) Explain the differences among the exec family of functions of UNIX. [8+8]

5. a) Describe the syntax and purpose of the each of the following:


i) Socket ii) Bind iii) Accept iv) listen v) conn
ect


b) Explain briefly the byte order conversion functions. [8+8]

February
-

2012

1. Write the syntax and explain each of the following socket functions.


a) Listen b) Close and related c) Connect d) Bind

2. a) Explain byte orderin
g and byte manipulation functions.


b) Explain about exec functions and close function and related functions.

3. a) Discuss IPv4 socket address structure and the significance of each field?


b) Explain byte ordering and byte manipulation functions.

4. Write the syntax and explain each of the following socket functions.


a) Listen b) Close and related c) Connect d) Bind






ASSIGNMENT
-

3

November
-

2010

1. (a) Explain in detail about TCP echo server.


(b) Discuss about shut down of server host. [8+8]

2. (a) Discuss in detail about termination of server process.


(b) Discuss about crashing and rebooting of server host. [8+8]

3. (a) Discuss in detail about handling SIGCHILD signal.


(b) Give dif
ferentiation between wait and waitpid. [8+8]

4. (a) Explain about connection abort before accept returns in detail.


(b) Discuss in detail about SIGPIPE signal . [8+8]

February
-

2011

1. a) Discuss in detail about handling SIGCHILD signal.


b) Give d
ifferentiation between wait and waitpid. [8+8]

2. a) Explain about connection abort before accept returns in detail.


b) Give TCP client
-
server from client and server’s perspective. [8+8]

3. a) Explain about TCP echo server.


b) Explain with examples

normal startup and normal termination. [8+8]

4. a) Discuss in detail about crashing, rebooting and shut down of server host.


b) Explain in detail about TCP Echo server functions. [8+8]

November
-

2011

1. a) Describe elementary TCP socket functions wit
h an example.


b) Write briefly Posix Signal Handling and Termination of Server Process. [8+8]

2. a) Explain how the signals are handled in Unix.


b) Consider the TCP Echo Server and TCP Echo Client application and discuss


what happens to the

client when the server process crashes. [8+8]

3. a) What are signals? Describe the methods of handling SIGCHLD signals.


b) Crashing and Rebooting of Server Host in TCP Client/Server application. [8+8]

4. a) Briefly describe Posix Signal Semantics.


b) Explain what happens when the server host crashes? [8+8]

February
-

2012

1. a) Explain about terminate and signal handling in server process termination.


b) Discuss about TCP Echo server function. [8+8]

2. a) Explain about normal startup and ter
mination between client and server.


b) Explain the procedure steps Crashing, Rebooting and Shutdown of server hosts. [8+8]

3. a) Explain the procedure steps for rebooting and shutdown of server hosts.


b) Discuss about signal handling and server pro
cess termination. [8+8]

4. a) Discuss about TCP Echo server function.


b) Explain the procedure steps Crashing and Shutdown of server hosts. [8+8]











ASSIGNMENT
-

4

November
-

2010

1. (a) Discuss different I/O models in detail.


(b) Under wha
t conditions are socket descriptors ready for? [8+8]

2. (a) Describe in detail about getsockopt and setsockopt functions in detail.


(b) Discuss in detail about poll function. [8+8]

3. (a) Compare different I/O models in detail.


(b) Explain about batch input and shut down functions. [8+8]

4. (a) Explain in detail about select function.


(b) Explain in detail about socket function . [8+8]

February
-

2011

4. a) Explain in detail about socket states and also discuss in detail
about IPV6 socket option.


b) Explain in detail I/O multiplexing. [8+8]

4. a) Describe in detail about getsockopt and setsockopt functions in detail.


b) Under what conditions is a descriptor ready? Discuss in detail. [8+8]

4. a) Compare different I/
O models in detail.


b) Explain about batch input and shut down functions. [8+8]

4. a) Why would an application call shut down with an argument of SHUT
-
RDWR


instead of just calling close?


b) Explain in detail socket states. [8+8]

November
-

2011

5. What is I/O Multiplexing? Explain different types of Synchronous and asynchronous I/O Models. [16]

6. Discuss the use of Generic Socket and IPv4 Socket options. Write briefly about


getsockopt and setsockopt functions.[16]

2. a) Explain with di
agrams the following I/O models provided by Unix:


i. Blocking I/O model. ii. Non blocking I/O model.


b) Explain the functionality provided by poll function. [8+8]

2. a) Explain with a diagram signal driven I/O model.


b) What are th
e differences in functionality between the poll and select functions? [8+8]

February
-

2011

1. a) Explain about IPv6 socket options and TCP socket options.


b) Make a comparison of five different I/O Models. [8+8]

2. a) What socket options are processed

by IPv6 with a level of IPPROTO_IPv6? Explain.


b) Explain Protocol Independent socket options. [8+8]

3. Write short note on


a) Batch Input b) Select function c) Shutdown function d) Poll function [4+4+4+4]

4. a) Explain Protocol
Independent socket options.


b) Explain about IPv6 socket options and TCP socket options. [8+8]











ASSIGNMENT
-

5

November
-

2010

1. (a) Discuss in detail about determining outgoing interface with UDP.


(b) Write dg
-
cli function that writes a
fixed number of datagrams to the server. [8+8]

2. (a) Explain in detail about UDP echo server.


(b) Discuss in detail about lack of flow control with UDP. [8+8]

3. (a) Explain about connect function with UDP.


(b) Explain about outgoing interface wit
h UDP. [8+8]

4. (a) Write dg
-
echo function in detail.


(b) What is datagram? Write dg
-
cli function that verifies returned socket address. [8+8]

February
-

2011

1. a) Discuss in detail about determining outgoing interface with UDP.


b) Explain elementary UDP sockets. [8+8]

2. a) Write dg
-
cli function that writes a fixed number of data grams to the server.


b) Explain UDP echo server function in detail. [8+8]

3. a) Elucidate on lack of flow control with UDP.


b) Explain what
happens if a client datagram is lost? [8+8]

4. a) Write dg
-
echo function in detail.


b) What is datagram? Write dg
-
cli function that verifies returned socket address. [8+8]

November
-

2011

1. a) Describe the UDP Echo server functions and lost datagram w
ith an example.


b) Write briefly about lack of flow control with UDP. List the differences between TCP and UDP.[8+8]

2. a) Write a sample to discuss the lack of flow control with UDP.


b) Distinguish between recvfrom and read functions. [8+8]

3. a)
Explain with a sample code how a connected UDP socket can be used to determine the


outgoing interface.


b) Discuss the lack of flow control with UDP with a suitable example. [8+8]

4. a) Write the function to echo lines on a datagram socket and
explain.


b) Discuss the effect of UDP not having any flow control. [8+8]

February
-

2012

1. a) Explain about Lack of flow control with UDP.


b) Describe the important functions of UDP echo server. [8+8]

2. Explain UDP client


server application for

echoing the text given by the user. [16]

3. Write a program for UDP Echo server and Echo client and Explain? [16]

4. a) Determine outgoing Interface with UDP?


b) Explain about Lack of flow control with UDP. [8+8]













ASSIGNMENT
-

6

November
-

2010

1. (a) Discuss in detail about domain name server and entries in DNS.


(b) Describe in detail about obsolete IPV6 address lookup functions. [8+8]

2. (a) Explain about network related information in detail.


(b) Explain about elementary name and

address conversions in detail. [8+8]

3. (a) Describe in detail about reentrant functions .


(b) Explain in detail about gethostbyname functions. [8+8]

4. (a) Describe about gethostbyname functions in detail.


(b) Explain about elementary name and ad
dress conversions in detail. [8+8]

February
-

2011

1. a) Explain about elementary name and address conversions in detail.


b) Describe in detail about reentrant functions . [8+8]

2. a) Explain in detail about gethostbyname and uname functions.


b) Give typical arrangement of client’s resolvers and name servers. [8+8]

3. a) Discuss in detail about domain name server and entries in DNS.


b) Explain about resolver option in detail. [8+8]

4. a) Describe in detail about obsolete IPV6 address l
ookup functions.


b) Give typical arrangement of clients resolvers and name servers. [8+8]

November
-

2011

1. Write short notes on the following


a) File and Record locking b) DNS and RPC transparency. [8+8]

2. Write notes on the following:


i. OSI model.


ii. Types of Resources Records (entries in the DNS). [8+8]

3. a) What are the four types of network
-
related information that an application might want


to look up? Also mention the keyed lookup functions provided by them.



b) Explain the role of a resolver with a neat diagram that depicts the typical arrangement


of applications, resolvers and name servers. [8+8]

February
-

2012

1. a) Explain the use of Uname function with an example.


b) Discuss the use of ge
thostbyname function with an example. [8+8]

2. a) Describe getservbyName and getservbyPort functions with example.


b) Explain about Resolver options. [8+8]

3. Explain the following functions.


a) gethostbyName b) uname [8+8]

4. a) Expla
in about Resolver options.


b) Explain the use of Uname function with an example. [8+8]











ASSIGNMENT
-

7

November
-

2010

1. (a) Give description on name spaces for IPC.


(b) Discuss about message queues in detail. [8+8]

2. (a) Compare
File locking Vs record locking.


(b) Explain in detail about pipes with client server example. [8+8]

3. (a) Explain about system V IPC in detail.


(b) What is a semaphore? Explain in detail about structure of information that


maintained in k
ernel in detail. [8+8]

4. (a) Discuss in detail file and record locking.


(b) What is FIFO? Discuss in detail about FIFOs with a client/Server. [8+8]

February
-

2011

1. a) Compare File locking Vs record locking.


b) Explain in detail about pipes with

client server example. [8+8]

2. a) Explain about system V IPC in detail.


b) What is a semaphore? Explain in detail about structure of information that maintained in kernel


in detail. [8+8]

3. a) What is FIFO? Discuss in detail about FIFOs
with a client/Server.


b) Give description on name spaces for IPC. [8+8]

4. a) Give description on name spaces for IPC.


b) Discuss in detail about FIFOs streams and messages. [8+8]

November
-

2011

1. a) Compare the IPC functionality provided by pipe
s and message queues.


b) Explain file locking with semaphores. [8+8]

2. a) What are named and unnamed pipes? How are they created?


b) Explain in detail how the IPC functionality is provided by message queues. [8+8]

3. a) What is a pipe? How are

FIFOs different from Pipes? Explain with suitable example.


b) Write a program to lock a file using semaphore. [8+8]

February
-

2012

1. a) Explain about File Locking and Record Locking.


b) Explain how semaphores are ised to synchronize the acces
s to the shared memory segments? [8+8]

2. a) What are the advantages of FIFO’s over Pipes? Explain stream and messages with examples.


b) Discuss the importance of message queue? Explain different functions. [8+8]

3. a) What is semaphore? Explain how

locking can be achieved with semaphores?


b) What is Pipe? How Pipes are are different from FIFO’s? [8+8]

4. a) Explain about File and Record Locking? Write a program to lock a file using advisory locking.


b) Discuss about FIFO’s and Pipes? Give an

example. [8+8]












ASSIGNMENT
-

8

November
-

2010

1. (a) Discuss in detail about pseudo terminals and about recording process with pseudo terminals


and about recording process with pseudo terminals.


(b) Explain about control terminals in detail. [8+8]

2. (a) Discuss in detail about rlogin .


(b) Discuss in detail about RPC transparency issues in detail. [8+8]

3. (a) Give an overview of recording in detail.


(b) Explain about terminal modes i
n detail. [8+8]

4. (a) Discuss in detail about RPC transparency issues in detail.


(b) Explain about terminal line disciplines in detail. [8+8]

February
-

2011

1. a) Explain about terminal line disciplines in detail.


b) Give an overview of recording

process. [8+8]

2. a) Discuss in detail about rlogin.


b) Discuss in detail about pseudo terminals and about recording process with pseudo


terminals and about recording process with pseudo terminals. [8+8]

3. a) Explain about Pseudo
-
Terminals an
d control terminals in detail.


b) Discuss in detail about rlogin . [8+8]

4. a) Discuss different terminal modes in detail.


b) Briefly discuss in detail about remote login. [8+8]

November
-

2011

1. Write short notes on the following


a) rlogin


b) DNS and RPC transparency [8+8]

2. Explain in detail the various issues needed to be considered to make the use of RPC transparent to


the application. [16]

3. Write notes on the following:


a) Pseudo
-
Terminals.


b) Explain with a di
agram the steps that normally take place in a remote procedure call. [8+8]

4. a) Show a picture of all the processes involved in the 4.3BSD remote login client and server side


and explain.


b) “4.3BSD considers a terminal device in one of three
modes.” Explain them. [8+8]

February
-

2012

1. Discuss about Terminal modes and control Terminals. [16]

2. a) Explain about RPC Transparency issues.


b) Briefly explain on Pseudo
-
Terminals. [8+8]

3. a) Briefly discuss overview of rlogin with an example
?


b) Explain about Terminal lin disciplines? [8+8]

4. a) Briefly discuss overview of rlogin with an example?


b) Discuss about control Terminals? [8+8]