CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK UNIT 1

Similar documents
NETWORK PROGRAMMING AND MANAGEMENT 1 KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur QUESTION BANK

LESSON PLAN. Sub. Code & Name : IT2351 & Network Programming and Management Unit : I Branch: IT Year : III Semester: VI.

UNIT IV- SOCKETS Part A

Contents. Part 1. Introduction and TCP/IP 1. Foreword Preface. xix. I ntroduction 31

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

UNIT I Linux Utilities and Working with Bash

UNIX Network Programming

UNIT I Linux Utilities

Lecture 5 Overview! Last Lecture! This Lecture! Next Lecture! I/O multiplexing! Source: Chapter 6 of Stevens book!

MARIA COLLEGE OF ENGINEERING AND TECHNOLOGY, ATTOOR DEPARTMENT OF INFORMATION TECHNOLOGY NETWORK PROGRAMMING MANAGEMENT 2 MARKS QUESTIONS & ANSWERS

IPv4 and ipv6 INTEROPERABILITY

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

LINUX INTERNALS & NETWORKING Weekend Workshop

User Datagram Protocol

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

MC1751 UNIX and Network programming. Short questions and answers

Outline. Option Types. Socket Options SWE 545. Socket Options. Out-of-Band Data. Advanced Socket. Many socket options are Boolean flags

Light & NOS. Dan Li Tsinghua University

Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions

NETWORK PROGRAMMING. Instructor: Junaid Tariq, Lecturer, Department of Computer Science

Chapter 8: I/O functions & socket options

Building blocks for Unix power tools

Network Implementation

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs.

Introduction to Socket Programming

VALLIAMMAI ENGINEERING COLLEGE

Computer Network Programming. The Transport Layer. Dr. Sam Hsu Computer Science & Engineering Florida Atlantic University

CSC209 Review. Yeah! We made it!

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Communication Networks

Introduction! Overview! Signal-driven I/O for Sockets! Two different UDP servers!

ECE 650 Systems Programming & Engineering. Spring 2018

Asynchronous Events on Linux

CHAPTER 3 - PROCESS CONCEPT

A Client-Server Exchange

Reading Assignment 4. n Chapter 4 Threads, due 2/7. 1/31/13 CSE325 - Processes 1

Dr. Rafiq Zakaria Campus. Maulana Azad College of Arts, Science & Commerce, Aurangabad. Department of Computer Science. Academic Year

Memory-Mapped Files. generic interface: vaddr mmap(file descriptor,fileoffset,length) munmap(vaddr,length)

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT I OPERATING SYSTEMS

Advanced Programming in the UNIX Environment W. Richard Stevens

CL020 - Advanced Linux and UNIX Programming

CS631 - Advanced Programming in the UNIX Environment Interprocess Communication II

Outline. Distributed Computer Systems. Socket Basics An end-point for a IP network connection. Ports. Sockets and the OS. Transport Layer.

Chapter 3: Processes. Operating System Concepts 9 th Edition

Department of Computer Science and Technology, UTU 2014

Lecture Plan-1. Contents Methodology Time Queries Remarks. Question/ Answers. Discussion. Chalk Board. &Discussion. Discussion 10

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Interprocess Communication Mechanisms

shared storage These mechanisms have already been covered. examples: shared virtual memory message based signals

* What are the different states for a task in an OS?

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER

Section 1 Short Answer Questions

Elementary TCP Sockets

Server algorithms and their design

Motivation of VPN! Overview! VPN addressing and routing! Two basic techniques for VPN! ! How to guarantee privacy of network traffic?!

Transport: How Applications Communicate

CS307 Operating Systems Processes

Processes. Process Concept. The Process. The Process (Cont.) Process Control Block (PCB) Process State

Sockets Sockets Communication domains

Overview. Over the next four weeks, we will look at these topics: Building Blocks. Advanced Authentication Issues.

CSE 461 Connections. David Wetherall

Oral. Total. Dated Sign (2) (5) (3) (2)

NETWORK PROGRAMMING. Ipv4 and Ipv6 interoperability

Lecture 24. Thursday, November 19 CS 375 UNIX System Programming - Lecture 24 1

The basic server algorithm. Server algorithms and their design. Problems with the simple server? Servers. overview ofaserver

BSc. (Hons) Web Technologies. Examinations for 2017 / Semester 1

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, Pilani Pilani Campus Instruction Division

Connections. Topics. Focus. Presentation Session. Application. Data Link. Transport. Physical. Network

Module A: The FreeBSD System

Module A: The FreeBSD System

Key Points for the Review

Appendix A: FreeBSD. Operating System Concepts 9 th Edition

SYED AMMAL ENGINEERING COLLEGE

Process. Program Vs. process. During execution, the process may be in one of the following states

Tutorial on Socket Programming

CSE 461 The Transport Layer

EEC-682/782 Computer Networks I

Chapter 9: UDP sockets & address conversion function

CSC 4320 Test 1 Spring 2017

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

Network Programming. Introduction to Sockets. Dr. Thaier Hayajneh. Process Layer. Network Layer. Berkeley API

Socket Programming. CSIS0234A Computer and Communication Networks. Socket Programming in C

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK UNIT 1

Problem Set: Processes

1. Draw and explain program flow of control without and with interrupts. [16]

Network programming(ii) Lenuta Alboaie

Outline. Operating Systems. Socket Basics An end-point for a IP network connection. Ports. Network Communication. Sockets and the OS

Paper solution Subject: Computer Networks (TE Computer pattern) Marks : 30 Date: 5/2/2015

EECS122 Communications Networks Socket Programming. Jörn Altmann

Experiential Learning Workshop on Basics of Socket Programming

Socket Programming for TCP and UDP

IT6503 WEB PROGRAMMING. Unit-I

CptS 360 (System Programming) Unit 17: Network IPC (Sockets)

What is an Operating System? A Whirlwind Tour of Operating Systems. How did OS evolve? How did OS evolve?

CSCI-1680 Transport Layer I Rodrigo Fonseca

Chapter 3: Process Concept

Transcription:

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK SUBJECT: NETWORK PROGRAMMING/MC9241 YEAR/ SEM: II /I V 1 CCET UNIT 1 1. What are the steps involved in obtaining a shared resource by a process? 2. What are the limitations of pipes? 3. State the interprocess communication mechanism used in UNIX. 4. Describe the layered model of TCP/IP protocol. 5. Differentiate exit and _exit functions. 6. Show how the current signal mask of a signal can be changed? 7. Define sockets. 8. Define value result arguments. 9. Define little byte endian order, big byte endian. 10. Write down the different byte manipulation functions. 11. What is the purpose of address conversion functions? 12. What are the different options and type values available for creating a socket? 13. What is the purpose of connect and bind function. 14. What are the actions performed by listen function. 15. Give the syntax of accept system call. 16. How to check availability of a host in a network? 17. What system call is used by a server to indicate that it is willing to receive the connections? 18. Define File Descriptors 19. Clearly explain the open( ) including headers, function parameters in detail and return values. 20. Briefly explain lseek function 21. Mention the Kernel data structures for open files 22. Define atomic operations 23. Mention the use of fstat function 24. Mention some of the fields used to describe the information about a file. 25. List the macros for the various file types 26. What are the components of file system? 27. Compare hard links and soft links 28. What are the limitations of Hard link 29. What are the components of i-node 30. Define Sticky Bit 31. What is the use of ioctl function 32. Differentiate chmod and fchmod function 33. What are the functions used to fetch entries from the password file

34. Define Password aging 35. What are the fields present in the Group File 36. Mention any 4 conversion specifiers for strftime 37. Define the structure utmp 1. Explain the memory Layout of C program with a neat block diagram. 2. I) Explain the possible actions in handling a signal. II) Write a note on any five signals. 3. Write difference between TCP & UDP. 4. Explain use of TIME_WAIT State. 5. Draw neat sketch diagram for TCP state transition diagram. 6. Differentiate between iterative and concurrent server. 7. Explain TCP connection establishment (three way handshake) and TCP connection termination (four way handshake). 8. Explain client server example for concurrent server. 9. Explain following terms. o MSS o Piggybacking o MTU & Path MTU o Socket pair o Incarnation 10. Write use of port number & Explain different types of port number. 11. How communications take place if client and server are on the same Ethernet? Explain with diagram. Write steps and buffers involved when an application writes to a TCP socket. 12. Explain in detail about process and process control in UNIX. 13. Write a detailed note on TCP protocol. 14. A) Explain the Posix Signal Handling process, which calls Signal function. b) State the conditions that generate a signal. c) Write notes on Signal Sets. UNIT II 1. What are the actions performed by listen function? 2. What is the need for concurrent server? 3. Write a program to find the host byte order. 4. State the purpose of SO_REUSEADDR and SO_REUSEPORT Socket options. 5. Define concurrent servers and iterative servers. 6. What are the uses of fork functions. 7. Write in detail about the protocols used in transport layer. 8. Write in details about TCP connection establishment and termination. 2 CCET

9. Write about byte ordering functions and byte manipulation functions. 10. Explain the sequence of functions for elementary TCP client server model. 11. Explain the sequence of functions for elementary UDP client server model. 12. Define TCP and UDP. 13. Explain IP. 14. Define the three states of TCP connection establishment and termination. 15. Define socket and List out its types. 16. Explain socket address structure. 17. Explain IPv4 address structure. 18. What are the four functions to pass socket address structure from kernel to the process? 19. What are the 2 ways to store 2 bytes in memory? 20. What is byte ordering function? 21. What are elementary socket functions? 22. What are concurrent servers? 23. What address conversion functions? Explain 24. What are the three types of socket function? 25. Explain iterative server. 26. Define server. What are the types of server? 3 CCET 1. Give the skeleton of the concurrent server and explain the status of client and the server after each function used. 2. Explain the various socket conversion functions. 3. Write a server program using TCP protocol which returns Client IP address and Port number. 4. Discuss the generic socket address structure,ipv4 socket address structure,ipv6 socket address structure. 5. Identify and discuss the queues maintained by the kernel with suitable diagrams. 6. Discuss the connect function and identify different error returns identified by connect function. 7. If TCP client doesn t call bind, how will the address be bound to the client socket? 8. Explain value-result parameter passing mechanism with diagram. 9. What are the purpose of the ntohs(), htons(), socket(), listen() and inet_pton() functions in a socket program? Give the syntax of each. 10. Explain Little-endian byte order and big-endian byte order. Write program to determine host byte order. 11. Justify the need for the functions getsocketname and getsockpeername. 12. Explain byte manipulation functions. Give the syntax of each. 13. Explain the socket address structure. 14. What is the need for concurrent server? Discuss the implementation details of concurrent server. 15. i) Explain the characteristics of Process Groups and Sessions. ii) Write notes on Message Queues and Shared memory.

16. Write a program to generate accounting data for a parent and three children. Get two integers in parent process and its children perform addition, subtraction and multiplication respectively and all get terminated in reverse order UNIT III 1. What is the use of I/O multiplexing? 2. What is the difference between synchronous I/O asynchronous I/O? 3. What is socket? 4. What is the purpose of concurrent server? 5. What is the need for multiplexing? 6. What are the conditions to be checked during clients/server implementation of TCP? 7. List out the information maintained by Zombie State. 8. Show how TCP maintains queue for listening socket. 9. List down the different I/O models. 10. Define synchronous and asynchronous I/O operations. 11. Explain TCP Echo server and client. 12. Define signal? 13. Explain signal function. 14. What is wait and Waitpid function? 15. What is the difference between wait and Waitpid function? 16. Explain crashing of server host 17. Explain Shutdown of server host 18. Explain the syntax of signal function. 19. Explain I/O multiplexing. 20. What are the scenarios used in I/O multiplexing applications? 21. What are the 5 basic I/O models available in UNIX? 22. State where POSIX function is used. 23. Define the two terms used in POSIX. 24. What are the possibilities of select function? 25. What are the three select descriptor arguments? 26. Difference between close function and shutdown function. 27. Difference between select function and pselect function. 28. Define poll function. 29. Difference between poll function and select function. 30. What are the three conditions handled with the socket? 31. What are the three classes of data identified by poll? 4 CCET 1. Explain the various I/O models and differentiate them. 2. Write the syntax for select function and explain the various arguments

3. Explain difference between wait and waitpid. 4. Write a C program for TCP echo server. 5. What is signal? How kernel does handle signal? Which signal does kernel send to parent process when child process terminates? 6. Write a C program for TCP echo client. 7. How does server handle Zombie child process? 8. Write a C program for TCP server to convert a string received from client into uppercase. 9. Write a C program for TCP server to reverse string received from client. 10. Write steps performed when server is crashing and rebooting. 11. What are the different error returns to the process when server host crashes? 12. Write steps perform by process when connection abort before accept returns. 13. What are the characteristics of signal? Discuss about posix signal handling. 14. Explain in detail about any two I/O models. 15. Explain gethostbyname, gethostbyname2 with resolver option and the structure these two points by their retirn values 16. 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. UNIT IV 1. What are the uses of SO_REUSEADDR option? 2. Write the syntax for recvfrom function? 3. What is the need for DNS? 4. What is a trace route program? 5. How TCP_NODELAY option is used while sending small packets? 6. How, when and why a client that wants to access a site in remote server would accesses the DNS? 7. Write down any 8 generic socket options. 8. Define UDP sockets. 9. What is the purpose of DNS? 10. What is the purpose of resolvers? 11. What are the different Resource records(rr)? 12. Define TCP sockets. 13. What is I/O multiplexing? 14. State any generic socket options 15. What are the functions of an echo server? 16. What are various ways to get and set the options that affect a socket? 17. Explain Elementary UDP sockets. 18. Explain UDP server and UDP client. 19. What are the two functions used in Elementary UDP 20. Difference between main function and dg. echo function. 21. What are the four steps used in client processing loop. 5 CCET

22. Difference between server function dg_echo and client function dg_cli. 23. Define DNS 24. Define Resource Records 25. What are the types which affect the RRS? 26. Define Resolvers and Name servers. 27. Explain Gethostbyname function 28. State the role of pointer queries in DNS. 29.What are the three ways to set RES_USE_INET6? 30. Explain gethostbyaddr function. 31. What are uname function? 32. Explain gethostname function. 33. Explain getservbyname and getservbyport functions. 34. Explain IPv4 socket option. 35. Explain ICMPv4 socket option. 36. Explain IPv6 socket option. 1. I) Write a note generic options II) Explain the steps involved in creating a UDP client and server and explain how they react to packet lose and server no running cases. 2. I) Explain how the DNS server maintains and resolves the domain names. II) Explain the ways of set and get options that affect the socket. 3. Differentiate between close function and shutdown function. What is the use of how to argument used in the function shutdown? 4. Answer the following. o What is the difference between select () and poll ()? o Explain the functions getsockopt and setsockopt with arguments. 5. With suitable diagrams differentiate the five I/O models. 6. When is socket said to be ready for reading and writing data. Identify and discuss the conditions. 7. Write C program to implement TCP echo server using select(). 8. Write C program to implement TCP echo server using poll(). 9. Explain any five socket option for Generic socket. 10. Explain the five I/O model with suitable diagrams. 11. Explain SO_LINGER SOCKET option. 12. Explain nagle s algorithm. 13. Elaborate on TCP Socket Options. 14. Illustrate the working principles of DNS. 15. Explain the various UDP server side System Calls and getsocket, setsocket functions in detail. 6 CCET

UNIT V 1. What ICMP messages are used by traceroute? 2. What are the features of raw socket? 3. What is the difference between process and thread? 4. What is the need for Mutex? 5. How a client running on IPV4 configured host communicate with a server in IPV6 host? 6. State few functions and uses of a raw socket. 7. What are the additional facilities supported by raw sockets? 8. What are the differences between raw IPv6 sockets with ordinary raw output? 9. What is use of ICMP packet? 10. What is the use of ping command? 11. What is meant of port? 12. What are the steps in creating a raw socket? 13. Define socket. How to use trace route for networking programming? 14. What are the features of raw sockets? 15. A ping program has a d flag to enable SO_debug socket option. What does this do? 16. What ICMP messages are used by traceroute tool? What is the use of REUSEADDR socket option? 17. Explain IPv4 and IPv6 server. 18. What are Address Testing macros? 19. Explain the implementations of threads. 20. What are the advantages and disadvantages of threads? 21. What are the basic function of thread creation and termination? 22. Define thread. 23. List out the unique values maintained by a thread. 24. What are the common thread interfaces? 25. Explain thread function. 26. Define multithreading 27. Mention the purpose of ping program. 28. Explain traceroute program 29. Define mutexes 30. Explain basic thread functions. 31. Explain raw sockets. 32. Define proto structure. 33. Differentiate ping and traceroute program. 1. Explain the implementations of the tool, trace route. 2. Write a TCP based client/server application to find the RTT between two machines. 3. Implement TCP echo server using threads. 4. Discuss the implementation of Ping program. 5. Write notes on i. Raw Socket Creation and its uses. ii. IPV6 client communicating with IPV4 server 6. Write a program that uses raw sockets for handling ICMP messages. 7 CCET