Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

UNIVERSITY EXAMINATION 2017/2018

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY

BACHELOR OF BUSINESS INFORMATION TECHNOLOGY/INFORMATION


TECHNOLOGY
VIRTUAL VARSITY

UNIT CODE BIT4205 UNIT TITLE: NETWORK PROGRAMMING

DATE: AUGUST 2018 SPECIAL/SUPP TIME: 2 HOURS

INSTRUCTIONS: ANSWER QUESTION AND ANY OTHER TWO QUESTIONS

QUESTION ONE

1. Write short notes on IPv4 and IPv6 interoperability (3 Marks)

2. Define value result arguments (3 Marks)

3. Define little byte endian order,big byte endian (3 Marks)

4. Write down the different byte manipulation functions (3 Marks)

5. What is the purpose of address conversion functions (3 Marks)

6. What are the different options and type values available for creating a socket?
(3 Marks)
7. What is the purpose of connect and bind function. (3 Marks)

8. What are the actions performed by listen function. (3 Marks)

Library copy Page 1


9. Define concurrent servers and iterative servers. (3 Marks)

10. What are the functions to pass socket address structure from kernel to the
process? (3 Marks)

QUESTION TWO

1. Discuss on the set of states a process undergoes during its lifetime. (4 Marks)

2. Why does a parent await the termination of a child? What happens during this
wait? (4 Marks)

3. What are the four functions to pass socket address structure from kernel to the
process? (4 Marks)

4. Explain TCP/IP layering in detail with neat sketch. (4 Marks)

QUESTION THREE

1. Write a C program to implement PING command (4 Marks)

2. Explain the sequence of functions for elementary TCP client server model.
(4 Marks)
3. Explain about the TCP echo server and the TCP Echo client and the various
functions associated with it (4 Marks)

4. Explain about the raw socket creation and the rules regarding raw socket inupt
and output. (4 Marks)

QUESTION FOUR

1. Explain UDP datagram and compare it with TCP Packets (4 Marks)

Library copy Page 2


2. Explain how the multiple process multiplex message onto a single queue with an
example client server program (4 Marks)

3. How will you create and remove message queues? Explain with an example the
interprocess communication using message queues. (4 Marks)

4. Give the format of the structure assigned for the shred memory segment. Explain
the functions required to access the shred memory. (4 Marks)

QUESTION FIVE

1. Describe synchronous and Asynchronous I/O Multiplexing implemented in TCP


layer (4 Marks)

2. Explain in details about TCP connection establishment and termination.


(4 Marks)
3. What system call is used by a server to indicate that it is willing to receive the
connections (4 Marks)

4. What ICMP messages are used by trace route tool? What is the use of
REUSEADDR socket option? (4 Marks)

Library copy Page 3

You might also like