NETWORK PROGRAMMING AND MANAGEMENT (NPM)
QUESTION BANK
UNIT- 1
ELEMENTARY TCP SOCKETS
PART-A (2 MARKS )
1. Define TCP and UDP?
2. Explain IP?
3. Define the three states of TCP connection establishment and termination?
4. Define socket and List out its types?
5. Explain socket address structure?
6. Explain IPv4 address structure?
7. What are the four functions to pass socket address structure from kernel to the process?
8. What are the 2 ways to store 2 bytes in memory?
9. What is byte ordering function?
10. What are elementary socket functions?
11. What are concurrent servers?
12. What are the address conversion functions? Explain.
13. What are the three types of socket function?
14. Explain iterative server?
15. Define server. What are the types of server?
PART –B (16 MARKS)
1. a) Compare the implementation details of concurrent and iterative server?
b) Discuss the syntactical issues of various address conversion function?
2. a) Compare the IPV4,IPV6, Unix domain and data link socket address structures. State your assumptions?
b) Write notes on byte ordering functions?
3. a) Explain in detail about TCP/IP protocols for internetworking and management?
b) Explain about socket, connect, bind, listen and accept functions?
4. Explain TCP/IP layering in detail with neat sketch?
5. Explain in detail about address conversion funcions ?
UNIT- 2
APPLICATION DEVELOPMENT
PART-A (2 MARKS)
1. Explain TCP Echo server and client?
2. Define signal?
3. Explain signal function?
4. What is wait and Waitpid function?
5. What is the difference between wait and Waitpid function?
6. Explain crashing of server host?
7. Explain Shutdown of server host?
8. Explain the syntax of signal function?
9. Explain I/O multiplexing?
10. What are the scenarios used in I/O multiplexing applications?
11. What are the 5 basic I/O models available in UNIX?
12. State where POSIX function is used?
13. Define the two terms used in POSIX.
14. What are the possibilities of select function?
15. What are the three select descriptor arguments?
16. Difference between close function and shutdown function?
17. Difference between select function and pselect function?
18. Define poll function?
19. Difference between poll function and select function?
20. What are the three conditions handled with the socket?
21. What are the three classes of data identified by poll?
Part-B (16 MARKS)
1. Write a TCP socket program to implement an Echo server/Echo client?
2. Explain the following concept with suitable example?
a) Shutdown function
b) Server host crashes
c) Input output models
d) Posix signal
3. Discuss the following scenario of server operations?
a) Crashing of server host
b) Crashing and rebooting of server host
c) Shutdown of server host
4. Explain in detail about the various I/O models in Unix operating system?
5. Explain in detail about
a) POSIX signal handling
b) Boundary condition
UNIT-3
SOCKET OPTIONS, ELEMENTRY UDP SOCKETS
Part-A (2-MARKS)
1. What are various ways to get and set the options that affect a socket?
2. Explain Elementary UDP sockets?
3. Explain UDP server and UDP client?
4. What are the two functions used in Elementary UDP?
5. Difference between main function and dg_echo function?
6. What are the four steps used in client processing loop?
7. Difference between server function dg_echo and client function dg_cli.?
8. Define DNS?
9. Define Resource Records?
10. What are the types which affect the RRS?
11. Define Resolvers and Name servers?
12. Explain Gethostbyname function?
13. State the role of pointer queries in DNS?
14. What are the three ways to set RES_USE_INET6?
15. Explain gethostbyaddr function?
16. What are unamed functions?
17. Explain gethostname function?
18. Explain getservbyname and getservbyport functions?
19. Explain IPv4 socket option?
20. Explain ICMPv4 socket option?
21. Explain IPv6 socket option?
PART-B (16 MARKS)
1. a) Assume both a client and server set the SO_KEEPALIVE socket option and the
connectivity is maintained between the peers but them 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.
b) Write a program that checks all the socket option of a socket and sets the
value for receiver buffer size to 520 bytes.
2. a) Write notes on RES_USE_INET6 resolver option in gethostbyname and
gethostbyname2 functions.
b) Discuss any four TCP socket option in detail?
3. a) Discuss about IP socket option and ICMP socket options in detail with
Suitable example?
b) Write the similarities between UDP socket, TCP socket and raw socket?
4. a) Explain the purpose and usage of UDP sockets and their different
Function?
b) Brief the way in which a TCP client server different from UDP client server?
5. Briefly discuss about DNS with an example?
6. Briefly discuss about TCP Echo server and client?
UNIT – 4
ADVANCED SOCKETS
PART-A (2-MARKS)
1. Explain IPv4 and IPv6 server?
2. What are Address Testing macros?
3. Explain the implementations of threads?
4. What are the advantages and disadvantages of threads?
5. What are the basic function of thread creation and termination?
6. Define thread?
7. List out the unique values maintained by a thread?
8. What are the common thread interfaces?
9. Explain thread function?
10. Define multithreading?
11. Mention the purpose of ping program?
12. Explain trace route program?
13. Define mutexes?
14. Explain basic thread functions?
15. Explain raw sockets?
16. Define proto structure?
17. Differentiate ping and trace route program?
PART-B (16 MARKS)
1. a) Compare Fork and Thread.
b) Compare Wait and Waitpid.
c) Write a ‘C’ program that can generate an ICMPv4 echo request packet and Process the received ICMPv4 echo reply.
2. a) Write notes on raw socket creation?
b) Write notes on raw socket output?
c) Write notes on raw socket input?
3. a) Explain how a TCP echo server using thread created and also give their advantages. b) Write short notes on mutexes and condition variables?
4. a) Compare IPv4 and IPv6.
b) Explain about thread creation and thread termination with suitable example?
5. Explain the trace route program with sample code and example?
6. Explain in detail IPv4 and IPv6 interoperability?
UNIT - 5
SIMPLE NETWORK MANAGEMENT
PART-A (2-MARKS)
1. Define SNMP?
2. What are the key elements of TCP/IP network management?
3. Define MIB?
4. Define message agent?
5. Define SMI?
6. What are the four nodes under the internet node in SMI document?
7. Explain private MIBs?
8. What are the limitations of MIBs?
9. What are the limitations of SNMP?
10. Define RMON?
11. What are the design goals of RMON?
12. Explain RMON MIB?
13. What are the advantages of SNMPv2?
14. Explain SNMPv3?
15. What are the disadvantages of SNMPv1/v2?
16. Where does RMON used in network?
PART-B (16 MARKS)
1. a) Explain the data types in UNIVERSAL class of ASN.1 for SNMP MIB?
b) 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, as specified in RFC2271?
4. Explain the architecture of SNMPV3 with neat diagram?
5. a) Compare SNMPV2 and SNMPV3.
b) Discuss about MIB?
c) Write note on RMON?
MOST FREQUENTLY ASKED QUESTION
Part A
- Define sockets?
- Define value result arguments?
- Define little byte endian order and big byte endian ?
- Write down the different byte manipulation functions?
- What is the purpose of address conversion functions?
- What are the different options and type values available for creating a socket?
- What is the purpose of connect and bind function?
- What are the actions performed by listen function?
- Define concurrent servers and iterative servers?
- What are the uses of fork functions?
- List down the different I/O models?
- Define synchronous and asynchronous I/O operations?
- Write down any 8 generic socket options?
- Define UDP sockets?
- What is the purpose of DNS?
- What is the purpose of resolvers?
- What are the different Resource records (RR)?
- Define TCP sockets?
- What are the additional facilities supported by raw sockets?
- What are the differences between raw IPv6 sockets with ordinary raw output?
- What is use of ICMP packet?
- What is the use of ping command?
- What is meant of port?
- What is I/O multiplexing?
- What are the steps in creating a raw socket?
- State any generic socket options?
- Define socket. How to use trace route for networking programming?
- What are the functions of an echo server?
- What are the features of raw sockets?
- A ping program has a –d flag to enable SO_debug socket option. What does this do ?
- Give the syntax of accept system call?
- How to check availability of a host in a network?
- What ICMP messages are used by traceroute tool? What is the use of REUSEADDR socket option?
- What system call is used by a server to indicate that it is willing to receive the connections?
PART B
- Write in detail about the protocols used in transport layer?
- Write in details about TCP connection establishment and termination?
- Write about byte ordering functions and byte manipulation functions?
- Explain the sequence of functions for elementary TCP client server model?
- Explain the sequence of functions for elementary UDP client server model?
- Explain briefly the various debugging techniques?
- Explain about the TCP echo server and the TCP Echo client and the various functions associated with it?
- What happens with the echo client /server if we run the client and redirect the standard input to a binary file?
- Explain about the UDP echo server and the UDP Echo client and the various functions associated with it?
- Explain about the ping program with an example?
- Explain about the trace route program with an example?
- Explain about client server applications?
- Explain about the raw socket creation and the rules regarding raw socket inupt and output?
- Give an account of generic socket options?
- What are the TCP socket options that are available?
- Write about the I/O models that are available under UNIX?
- What is the use of select function? Explain with an example?
- Write about the poll functions?
- Give brief account of DNS?
- Describe synchronous and Asynchronous I/O Multiplexing implemented in TCP layer?
- Explain UDP datagram and compare it with TCP Packets?
- Explain how the multiple process multiplex message onto a single queue with an example client server program?
- How can you achieve record locking? Explain with example.
- Explain the basic thread functions?
- Write short notes on mutexes and condition variables?
- How will you create and remove message queues? Explain with an example the interprocess communication using message queues?
- List and Explain similar features of System V IPC?
- Give the format of the structure assigned for the shred memory segment? Explain he functions required to access the shred memory?
- What feature is missing in POSIX message queues?
- How does POSIX version of shared memory differ from that is System V ?
No comments:
Post a Comment