IT2351-Network Programming and Management

 VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar, Kattankulathur-603203.
Department of Information Technology
Question Bank- Even Semester 2014-2015
VI Semester
IT2351 – NETWORK PROGRAMMING AND MANAGEMENT
Handled By,
Mr.S.Narayanan, A.P(Sel.G) & Ms.B.R.Shunmugapriya, A.P(Sel.G)
Unit-I
Part-A
1.
2.
3.
4.
5.
Define Socket and list its different types
Define port numbers and list its different types.
Specify the steps involved in the three way handshake protocol.
What are the steps involved in creating a socket on client side?
Why must value-result arguments such as the length of a socket address structure be
passed by reference?
6. Write a program to return the address family of a socket.
7. What is the use of bind() system call?
8. What do you mean by a socket abstraction?
9. How shall local and remote socket addresses be obtained?
1. What is socket address structure? Give the generic socket address structure.
10. Write down posix definition for socket address structure.
11. Explain briefly the byte order functions
12. Why do we need byte manipulation functions?. List the two sets of byte manipulation
functions.
13. How can a socket be created? What is the syntax
14. What do you mean by a wild card address
15. Write the syntax for connect,bind,listen.accept functions
16. List the functions used for data reading and writing from a socket
17. Distinguish concurrent server from iterative server
18. What function has to be called to create child ?
19. Define Iterative server.
20. What is descriptor reference count?
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G) Part-B
1. Discuss various system calls used in network programming with example.
2. (i). Compare the implementation details of concurrent and iterative server.
(ii).Discuss the syntactical issues of various address conversion functions.
3. (i). Compare the IPv4, IPv6 and UNIX domain socket address structures.
(ii).Write notes on byte ordering functions
4. (i). Explain in detail about TCP/IP protocols for internetworking and management.
(ii).Write notes on Iterative server and Concurrent server operations.
5. (i). Describe about socket address structures and conversion functions with byte
ordering.
(ii).Explain about socket, connect, bind, listen and accept functions.
6. Write day time server that prints client IP address and port.
7. Explain in detail the socket functions for elementary TCP functions with a neat diagram.
8. Explain the TCP/IP layering in detail with neat sketch.
9. Compare various socket address structures by considering generic socket address
10. Write short note on byte manipulation functions and their role in socket programming.
Unit-II
Part-A 1.
2.
3.
4.
5.
Write about poll function.
Write the syntax for select function.
Name the different I/O models.
State where POSIX signal handling is used.
Draw the diagram that depicts simple client server along with functions used for input and
output
6. What is signal ? how it can be sent?
7. Define signal handler.
8. What is disposition and how it can be set?
9. What is meant by i/o multiplexing?
10. Specify the scenario where networking applications can be done using i/o multiplexing.
11. Distinguish synchronous i/o and asynchronous i/o
12. What are the limitation with close that can be avoided with shutdown
13. Expansion for posix
14. What are the choices for disposition ?
15. Distinguish termination of server process from crashing of server host
16. Explain the scenario crashing and re-booting of server host
17. How does shout down of server host take place ?
18. Explain the operation of select function.
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G) 19. What are the limitation with close that can be avoided with shutdown
20. State the difference between wait and waitpid.
Part-B
1. Discuss about the following scenarios of server operations
(i). Crashing of server host.
(ii). Crashing and rebooting of server host.
(iii).Shutdown of server host.
2. Explain in detail about the various I/O models in Unix operating system.
3. (i). Create a TCP socket for acting as a multiple servers and echoing the information from
the client.
(ii).Write notes on Server Process Crash and Server Host Crash
4. Brief about select,poll functions and shutdown function
5. Briefly explain POSIX signal handling in detail.
6. Explain iterative TCP echo server with I/O multiplexing.
7. Develop a Non iterative TCP Echo server and client and explain the development
procedure.
8. Explain the following concept:
(a). Server with multiple clients
(b). Server process crashes
(c). Poll function
9. Explain in detail all boundary conditions
10. Write the difference between the following functions
a. poll() and select()
b.close() and shutdown
c. wait() and waitpid() Unit-III
Part-A 1.
2.
3.
4.
5.
6.
7.
8.
Explain the function getsockopt() and setsockopt().
What is the function of gethostbyname() ?
Write ICMP message format and two message type.
Write about different IP socket options.
What do you mean by Domain Name System?
State the role of pointer queries in DNS.
What is the important feature of ICMP?
Show the members of the structure, which is referred by a function that looks up for a
host name.
9. Explain the function of getservbyname and getservbyport.
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G) 10. Explain the ICMP socket option.
11. Specify some of the generic socket option
12. Mention IPV4 socket option
13. Explain the ICMPV6 socket option
14. Mention the IPV6 socket option
15. Mention the TCP socket option
16. Write the syntax for gethostbyname
17. Write the syntax for gethostbyaddr
18. Write the syntax for getservbyname
19. Write the syntax for getservbyport
20. What is resolver & Mention the resolving functions
Part-B
1. (i). Assume both a client and server set the SO_KEEPALIVE socket option and
the connectivity is maintained between the peers but there is no exchange of
data. When the keepalive timer expires every 2 hours, how many TCP
segments are exchanged across the connection? Justify your answer with an
illustration.
(ii).Write a program that checks all the socket options of a socket and sets the
value for receiver buffer size to 520 bytes.
2. (i). Write notes on RES_USE_INET6 resolver option in gethostbyname and
gethostbyname2 functions.
(ii).Discuss any four TCP socket options in detail.
3. (i). Describe about the different socket options for Internet operation and control.
(ii).Discuss IPv6 support in Domain Name System.
4. (i). Explain the purpose and usage of UDP sockets and their different functions
(ii).Brief the way in which a TCP client server different from UDP client server.
5. (i). Discuss about any four generic socket options in detail with suitable example.
(ii).Write the similarities between UDP socket, TCP socket and Raw sockets.
6. Briefly discuss about DNS with an example.
7. Write a UDP program to implement a echo server and echo client.
8. Explain in detail the socket functions for elementary TCP functions with a neat diagram.
9. Explain multiplexing TCP and UDP echo servers.
10. Explain briefly the functions used in DNS along with their syntax.
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G) Unit-IV
Part-A
1.
2.
3.
4.
5.
6.
7.
What do you mean by threaded server?
Differentiate between ping and trace route program.
How shall a thread be created and terminated?
Mention the purpose of the ping program.
How the server knows about the version of the communicating client?
List out the unique values maintained by a thread.
Address the problems with fork that can be shared by threads of a process and that can
solved by threads.
8. What is a thread?
9. What are different ways to terminate thread
10. What are the functions that can be used with mutex?
11. What are the functions that can be used with conditional variables?
12. Summarize the interoperability for IPV4/IPV6 clients and servers
13. Write the syntax for pthread – create
14. Write the syntax for pthread – join
15. Write the syntax for pthread – self
16. Write the syntax for pthread – detach
17. Write the syntax for ptheard – exit
18. List the variables that are shared by Threads.
19. What is the use of mutex variables in programs with threads.
20. What is the use of condition variables in programs with threads.
Part-B
1. (i). Compare Fork and Thread
ii).Write a C program that can generate an ICMPv4 echo request packet and
process the received ICMPv4 echo reply.
2. Write notes on
(i). raw socket creation
(ii). raw socket output
(iii).raw socket input
3. (i). Explain how a TCP echo server using threads is created and also give their
advantages
(ii).Write a short note on mutexes and condition variable.
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G) 4. Compare IPv4 and IPv6.
5. Explain in detail the interoperability between IPV4 and IPV6
6. Explain the various thread functions.
7. Write TCP Echo Client server program using threads
8. Describe the operation of PING program with neat diagram.
9. Describe the operation of Traceroute program.
10. Write short notes on
(i)
Mutexes
(ii)
Condition Variables
(iii) Multiplexing with threads
Unit-V
Part-A
1. In what way RMON is related to SNMP protocol?
2. Give the different Network Management functions.
3. Where does Remote Monitoring used in a Network?
4. Specify the MIB-II specification of TCP connection entries.
5. List out few performance indicators in a Network Management system.
6. What is network management station? Write down the functionalities
7. What is object identifier?
8. What are the data types that are available under Universal class of ANS.1?
9. What is trap directed polling?
10. How additional objects can be defined for a MIB?
11. What are the objectives of MIB?
12. What are the limitations of SNMP?
13. What are the design goals of RMON
14. Expand RMON
15. What are the operations supported by SNMP?
16. Is that possible to have shared RMON. If so, what are difficulties that may arrive.
17. What are the four nodes defined under the internet node by SMI documents?
18. What are the data types that are available under Universal class of ANS.1?
19. List the RMON MIB groups.
20. What are the network management requirements?
PART B : 1. (i). Explain the data types in UNIVERSAL class of ASN.1 for SNMP MIB.
(ii).Write notes on Network configuration control.
2. Explain the syntax of the various SNMPv1 message formats.
3. Explain the architecture of SNMP entity and traditional SNMP manager.
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G) 4. Explain in detail the proxy configuration.
5. Explain the architecture of SNMPv3 with neat diagram.
6. (i). Compare SNMPv2 and SNMPv3.
(ii). Write note on RMON.
7. Discuss about MIB.
8. Explain the design goals of RMON.
9. Briefly explain MIB structure and elements in RMON and SNMPv3
10. Explain the limitations of SNMPv1 and how is it handled in SNMPv2.
IT2351Network Programming and Management
Dept. of IT.
Mr.S.Narayanan A.P(Sel.G)
Ms.B.R.Shunmugapriya, A.P(Sel.G)