Download - VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

Transcript
Page 1: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

IV SEMESTER

MC7404 – NETWORK PROGRAMMING

Regulation – 2013

Academic Year 2017 – 18

Prepared by

Mr. M.Asan Nainar, Assistant Professor/MCA

Page 2: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

UNIT I - INTRODUCTION

Overview of UNIX OS - Environment of a UNIX process - Process control – Process

relationships - Signals – Interprocess Communication- overview of TCP/IP protocols. PART – A

Q.No Questions BT Level Competence

1. State the purpose of TCP. 1 Remembering

2. What do you mean by PCB? 1 Remembering

3. What is a Shell? 1 Remembering 4. How to implement message queue? 4 Analyzing

5. Is UNIX a CUI or GUI? What is the difference

between both? 6 Creating

6. State the function of TCP / IP Transport Layer. 1 Remembering

7. Construct the memory layout of a typical program. 3 Applying

8. Enumerate four characteristics of a TCP protocol. 4 Analyzing

9. Compare signals and Interrupts in Unix. 2 Understanding

10. Define the term process. 1 Remembering

11. Differentiate between Unix and Windows. 2 Understanding

12. How to create and access a Semaphore? 2 Understanding

13. List out the features of Unix. 1 Remembering

14. Design the layered model of TCP / IP protocol. 5 Evaluating

15. Differentiate between system calls and library functions. 2 Understanding 16. To communicate how many layers are needed in the case

5 Evaluating of TCP protocol?

17. Name any four Unix commands. 3 Applying

18. Identify the use of fork(). 4 Analyzing

19. Classify the types of Signals. 3 Applying

20. Summarize Race Conditions. 6 Creating

PART - B

1. Construct a neat diagram explain the file system of UNIX. 3 Applying

(13)

2. Assess the various UNIX Interprocess communication 6 Creating

Mechanisms. (13)

Page 3: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

3.

(i) Explain in detail about asynchronous software

interrupts that notifies the events between processes in 2 Understanding

Unix environment. (7)

(ii) Compare a server handling single client with a server

one handling multiple clients. (6)

4. (i) Explain in detail about tcgetpgrp, tcsetpgrp and tcgetsid functions. (7) 4 Analyzing

(ii)Discuss in detail about alarm and pause functions. (6)

5. (i) Describe about the file sharing in Unix operating system? (7)

(ii) Discuss about the shared memory. (6)

1 Remembering

6. (i) Explain about kill() and raise() functions. (6)

2 Understanding

(ii) What are the different file types available in Unix? Explain with an example. (7)

7.

(i) Explain the Unix system architecture. (6)

4 Analyzing

(ii) Explain the three primary functions of process control

along with their variants. (7)

8. With the associated function calls show how Message queue and semaphore is handled in Unix. (13)

3 Applying

9. Write detailed note on TCP/ IP reference Model and

its protocol suite. (13) 1

Remembering

10. Explain in detail about process and process control in

4 Analyzing

Unix. (13)

11.

Briefly discuss about the following:

i. Memory Layout of a C program. (5)

2 Understanding

ii.Shared Libraries (4)

iii.exit functions with diagram showing the start and

termination of a C Program. (4)

12.

Describe the following features of Unix:

a. Process group (5)

1 Remembering

b. Sessions (5)

c. Signal sets (3)

13. Design the TCP client-server communication with neat

TCP state transition diagram. (13) 5 Evaluating

Page 4: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

14. (i) Describe environment variables and related functions in UNIX. (7) 1 Remembering

(ii) Describe network logins in UNIX with diagram. (6)

PART – C

1 Compare OSI model and TCP/IP reference Model. (15) 6 Creating

2 Describe in detailed note on TCP Header format and

its services. (15) 5 Evaluating

3 Determine the code for the Pipe system call. Also list

the types of pipes, advantages and disadvantages of

pipes. (15) 6 Creating

4 Create a C program to print description of the exit status 5 Evaluating

and demonstrate various exit status. (15)

UNIT II - ELEMENTARY TCP SOCKETS

Introduction to Socket Programming –Introduction to Sockets – Socket address Structures – Byte

ordering functions – address conversion functions – Elementary TCP Sockets – socket,

connect,bind, listen, accept, read, write , close functions – Iterative Server – Concurrent Server. PART - A

Q.No Questions BT Level Competence

1. Write the function that convert an IPv4 address from 1 Remembering

a dotted decimal string to its 32 bits network byte ordered

binary value.

2. Assess the usage of a Port. 6 Creating

3. Why do we need socket programming? 3 Applying

4. Examine the different types socket used in TCP/IP. 3 Applying

5. Outline how do sockets work. 2 Understanding

6. What is byte ordering function? 1 Remembering

7. What is meant by dynamic or private ports? 1 Remembering

8. What do you mean by value result arguments? 4 Analyzing

9. List out various address conversion functions. 1 Remembering

10. Give the outline for IPv4 internet socket address structure. 2 Understanding

11. What you think about ‘connect’ function. 5 Evaluating

12. Show the syntax of ‘bind’ function. 3 Applying

13. Outline the syntax of ‘listen’ function. 2 Understanding

14. List the uses of ‘accept’ function. 1 Remembering

15. Determine the syntax of ‘close’ function. 6 Creating

16. Distinguish between incomplete and complete connection queue. 2 Understanding

17. Compose the features of Concurrent Server. 5 Evaluating

18. Write the functions of Iterative Server. 1 Remembering

Page 5: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

19. Distinguish between the ‘read’ and ‘write’ functions. 4 Analyzing

20. Distinguish between concurrent server and iterative server. 4 Analyzing

PART – B

Q.N

o Questions BT Level Competence

1 Describe the various socket address structures. (13) 1 Remembering

2. List and explain the various calls / functions in TCP socket. (13) 1 Remembering

3. (i) Explain internet socket address structures IPv4. (7)

(ii) Compare TCP and UDP Pseudo headers. (6) 4 Analyzing

4

(i) Explain in detail about Generic Socket Address structure and

IPv6 Socket Address structure. (7)

(ii)With an example explain in detail about getsockname and

getpeername. (6)

2 Understanding

5.

(i) Create a program to determine the byte order of the host. (6) (ii)Compose the advantages of using the new generic socket

address that is defined in the IPv6 sockets API. (7) 5 Evaluating

6. Explain and state the address conversion functions. (13) 4 Analyzing

7. Compare the socket structures of IPV4, IPv6, Unix and datalink.

(13) 2 Understanding

8. Examine about the iterative and concurrent server with an

example. (13) 3 Applying

9. Write short notes on the following with syntax: (7+6)

i. Readn() ii.Written() 1 Remembering

10.

Write short notes on the following with syntax

1 Remembering

(i) Connect() (6)

(ii) Close() (7)

11.

How would you have handled the following functions in Unix? Explain.

(i)Listen() (7) (ii)Accept() (6)

6 Creating

12. (i) Distinguish between iterative and concurrent server. (7) (ii) With suitable diagrams explain the socket functions for an Elementary TCP client/server. (6)

4 Analyzing

13. Examine the need for a concurrent server? Discuss the

implementation and testing of a TCP concurrent server with two

clients. (13) 3 Applying

14. Discuss the following functions with their syntax: i.Socket() (7) ii.Bind() (6)

2 Understanding

Page 6: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

PART – C

1. Explain the timeline diagram for the scenario between a TCP client and server and explain the functions used in theTCP client. (15)

6 Creating

2. Create a C program for to readn and written function, to

5 Evaluating

handle n bytes from a descriptor. (15)

3. Design a coding in C to implement the concurrent server. 5 Evaluating

(15)

4. Explain a C code to demonstrate an iterative server. (15) 6 Creating

UNIT III - APPLICATION DEVELOPMENT TCP Echo Server – TCP Echo Client – Posix Signal handling – Server with multiple clients –

boundary conditions: Server process Crashes, Server host Crashes, Server Crashes and reboots,

Server Shutdown – I/O multiplexing – I/O Models – select function – shutdown function – TCP echo

Server (with multiplexing) – poll function – TCP echo Client (with Multiplexing) PART - A

Q.No Questions BT Level Competence

1 What happens if the server host is shutdown by an 2 Understanding

operator while server process is running on that host?

2 Write the syntax and explain the parameters of select function.

1 Remembering

3. Show the TCP state transitions while establishing a TCP. 3 Applying

4. Identify the need for POSIX Signal. 4 Analyzing

5. What determines the sender window size in TCP? 6 Creating

6 Give the outline when do the servers process crashes. 2 Understanding

7 What is I/O multiplexing? 1 Remembering

8 Identify the syntax of poll() function. 4 Analyzing 9 Distinguish between close() and shutdown() functions. 2 Understanding

10 Show the diagram for blocking I/O model. 3 Applying

11 Write the purpose of select() function. 2 Understanding

12 List the uses of ‘poll’ function. 1 Remembering

13 Show the syntax of shutdown() function. 3 Applying

14 Classify the steps involved in a TCP echo server. 1 Remembering

15 Construct the syntax of pselect() function. 4 Analyzing

16 List out the function’s/macro’s that operate on fd_set descriptor set.

1 Remembering

17 Devise an Asynchronous I/O model. 5 Evaluating

Page 7: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

18 Write brief outline of zombie state of a process. 1 Remembering

19 Determine the features of server process and server host. 6 Creating

20 Create the block diagram for simple TCP echo client

and server communication. 5 Evaluating

PART - B

1 Examine the following with necessary diagram:

4 Analyzing

i.Select() function (7)

ii Pselect function (6)

2

Explain the following with necessary diagram:

2 Understanding

i. Blocking I/O (6)

ii. Non-Blocking I/O (7)

3 Write a C function for TCP client that handles EOF

1 Remembering

correctly. (13)

4 Write a C program to implement a TCP echo client and 1

Remembering

explain the steps involved. (13)

5 Explain the following concept with suitable example:

Analyzing

i. Shutdown function (7) 4

ii. netsat program (6)

6 Create a C program for TCP server using poll() function.

5 Evaluating

(13)

7

Write short notes on Remembering

i. POSIX signal handling (7) 1

ii. Input Output Models (6)

8 Determine the syntax of

6 Creating

a. Signal Handling functions with example (7)

b. Synchronous I/O Models (6)

9 Illustrate how a SIGCHLD signal handler handles

3 Applying

a. wait() system call (6)

b. waitpid() system call (7)

10 Compare and contrast between wait() &waitpid() with

4 Analyzing

suitable diagrams. (13)

11

Show the steps involved in

Applying

a. crashing of server host (7) 3

b. Crashing and rebooting the server (6)

12 Distinguish between select() and poll() system calls with

2 Understanding

examples. (13)

13 Explain the features of

Understanding

i. I/O Multiplexing (7) 2

ii. Signal driven I/O (6)

14 Write a C program for TCP server using poll() function.

1 Remembering

(13)

Page 8: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

PART – C

1 Create a TCP Echo client and TCP Echo server program 5 Evaluating

in Linux to send and print the received message. (15)

2 Explain and compare the various I/O models with 6 Creating

diagram. (15)

3 Recommend a day time cline/server application using TCP 6 Creating

sockets (15)

4

Design a data structure that holds the necessary

5 Evaluating

declarations for implementing TCP FSM for Graceful

(15)

Shutdown.

UNIT IV - SOCKET OPTIONS, ELEMENTARY UDP SOCKETS Socket options – getsocket and setsocket functions – generic socket options – IP socketoptions

– ICMP socket options- TCP socket options – Elementary UDP sockets – UDP echo Server

– UDP echo Client – Multiplexing TCP and UDP sockets – Domain name system

– gethostbyname function- Ipv6 support in DNS – gethostbyadr function – getservbyname

and getservbyport functions PART – A

Q.No Questions BT

Level Competence

1 Write the various socket options in TCP. 1 Remembering

2 Write the syntax of getsockopt and setsockopt functions. 1 Remembering

3 State any two ways to notify the error to the process using

socket options. 1 Remembering

4 Determine the features of AAAA record. 6 Creating

5 Outline about the resource records. 2 Understanding

6 List the use of SO_BROADCAST option. 1 Remembering

7 Illustrate the syntax ofrecvfrom() and sendto(). 3 Applying

8 Examine the syntax of getservbyport() function. 5 Evaluating

9 Show the Nagles algorithm. 3 Applying

10 Classify the types of resource records. 6 Creating

11 Write the uses of SO_KEEPALIVE option. 1 Remembering

12 Briefly write about the UDP differ from TCP. 4 Analyzing

13 Show a block diagram for typical arrangement of clients,

resolvers and name 3 Applying

14 Interpret the syntax of gethostbyaddr() function. 2 Understanding

15 Identify getaddrinfo() function with its syntax. 4 Analyzing

16 Examine how getservbyname() function is used in C? 5 Evaluating

17 Distinguish between PTR record and MX record. 2 Understanding

18 List out the socket options of ICMP. 1 Remembering 19 Identify the syntax of gethostbyname() function. 4 Analyzing

20 What is meant by Domain Name System? 2 Understanding

Page 9: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

PART – B

1 Discuss about the socket options available for

(i)The stream sockets (7) (ii) The Datagram sockets (6)

2 Understanding

2 Explain generic socket options in detail. (13) 4 Analyzing

Analyze the following functions:

3 i. getsockopt() (6) 6 Creating

ii. setsockopt() (7)

4 Create a C program to implement getaddrinfo() function.

5 Evaluating

(13)

5 Write short notes on

1 Remembering

i) Resolvers and Name servers (6)

ii) Resource Records (7)

6

i) Describe the applications ofgethostbyaddr() (5) 1 Remembering

ii) Write any four resource records and its

description. (8)

7

Describe the following:

1 Remembering

i ICMP socket option (7)

ii. TCP socket option (6)

8

Explain a mechanism to implement the following functions

2 Understanding

(i) getservbyname() (7)

(ii) getservbyport() (6)

9 (i)Explain in detail about IPv4 socket options. (6)

1 Remembering

(ii)With an example explain in detail about

gethostbyname function. (7)

Construct C program to implement a server using

10 multiplexing that handles

3 Applying

a. TCP Client requests (7)

b. UDP Client request (6)

11 Illustrate the implementation of UDP client and server

3 Applying

that reverse the given input string. (13)

Explain the following socket options. (4+3+3+3)

12 (i) SO_REUSEADDR

4 Analyzing

(ii) SO_ERROR

(iii) IP_TOS

(iv) IPV6_CHECKSUM

Page 10: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

(i) Explain the purpose and usage of UDP sockets and

13 their different functions. (7) 4 Analyzing

(ii) Brief the way in which a TCP client server different

from UDP client server. (6)

14 (i) Explain the use of IPv6 in DNS. (7) 2 Understanding

(ii) How do you test and implement UDP echo server? (6)

PART – C

1 Enumerate and compose the socket options in IP. (15) 5 Evaluating

2 With suitable illustrations, explain DNS in detail. (15) 6 Creating

3 Design and develop an echo client/server system using

(15) 5

Evaluating

UDP sockets.

4 Explain an elaborate note on the SO_LINGER socket

(15)

6 Creating

option.

UNIT – V- ADVANCED SOCKETS

Ipv4 and Ipv6 interoperability – threaded servers – thread creation and termination – TCP

echo server using threads- Mutexes - condition variables – raw sockets – raw socket creation –

raw socket output –raw socket input- ping program –trace route program.

PART – A

Q.No Questions BT Level Competence

1. Compare the format of ICMPv4 echo request and echo 2

Understanding

reply message.

2. What are the different system tracing tools are available? 1 Remembering

3. Assess the need for network byte ordering. 6 Creating

4. Compare the header format of IPV4 and IPv6. 2 Understanding

5. Define multithreading 1 Remembering

6. State the function of trace route program. 1 Remembering

7. Find the meaning of a thread. 1 Remembering

8. State any two ICMP messages. 1 Remembering

9. Device a function for making a thread joinable. 5 Evaluating

10. Show a function that get ID of a thread. 3 Applying

11. Determine the syntax of detaching a thread. 6 Creating

12. Write any two thread attributes. 1 Remembering

Page 11: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

13. Examine functions related to mutex with their syntax. 4 Analyzing

14. Show any two functions related to condition variable . 3 Applying

15. Outline the use of raw socket. 2 Understanding

16. Identify the packets that a process can read with raw socket.

4 Analyzing

17. Design a socket function to create raw socket. 5 Evaluating

18. Show the uses of ping program. 2 Understanding

19. What is the purpose of synchronization? 3 Applying

20. How IPv6 Server on dual stack hosts serving both 4

Analyzing

IPv4 and IPv6 clients?

PART - B

1

i. Creating a basic thread functions in detail. (7) 5 Creating

ii How can a thread ensure that it is the only thread executing some critical piece of code? (6)

2 i. Explain the operation of ping program. (7) 4

Analyzing

ii. Compare process and thread. (6)

3. Discuss the following

(i) Creating POSIX threads (8)

(ii) Process shared by the threads. (5)

2 Understanding

4 Describe the need of RAW socket to implement the ping 1 Remembering

and trace route program. (13)

5 Summarize the Pv4 & IPv6 systems interoperability with 6 Creating

neat sketches. (13)

6 Discuss the dual stack host with IPv6 Server that handle

both: 2

Understanding

a. IPv4 Clients (7)

b. IPv6 Clients (6)

7 Illustrate the processing of received IPv4 or IPv6

Applying

datagram’s (by IPv6 Server) depending on type of

(13)

3

receiving socket with neat diagram.

8 Describe the processing of IPv6 Client that handles

Remembering

a. IPv 4 Server (7) 1

b. IP v6 Server (6)

9 Explain the following

i) Drawback of using child processes to handle the client

4 Analyzing

request. (7)

ii) Advantage of using thread instead of child processes. (6)

10 How would you have handled various functions related to

2

Understanding

threads? Discuss. (13)

Page 12: VALLIAMMAI ENGINEERING COLLEGE SRM Nagar ... Semester/MC7404...VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203 DEPARTMENT OF COMPUTER APPLICATIONS QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

SUBJECT : NETWORK PROGRAMMING

SEM / YEAR: IV / II

11

Write a C program to implement

(i). A TCP client that receives echoed string from the 1 Remembering

server (7)

(ii). Compare IPV4 and IPV6. (6)

12 Show the features of

Applying

(i) Mutexes with related functions. (7) 3

(ii) Condition variables and related functions (6)

13 (i) Explain about Producer Consumer Problem. (7)

4 Analyzing

(ii) Explain the life cycle of a thread with neat diagram. (6)

14

What are threads? What are the advantages of using Remembering

threads? With suitable examples show how threads can be 1

createdand terminated. (13)

PART – C

1 Write a C++ program forping that works with both

IPv4 and IPv6. Explain. (15) 5 Evaluating

2 Design a C program to implement trace route command.

5 Evaluating

(15)

3 How to verify TCP echo server using threads?Explain. (15) 6 Creating

4 Summarize the steps and rules in the creation, input and 6 Creating

output of raw sockets. (15)