JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III NETWORK PROGRAMMING Previous Question Paper (August/September - 2021 - R18)

B.Tech | III | II | R18 | August/September - 2021

Answer PaperPaper Code: 156CAMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Explain the function listen().

5 marks

Answer

The listen() function is used by a passive socket (server) to indicate its willingness to accept incoming connections. It converts an unconnected socket into a passive socket, allowing it to transition to the LISTEN state. The function signature is

int listen(int sockfd, int backlog);
where sockfd is the file descriptor of the socket and backlog specifies the maximum number of pending connections that can be queued for this socket before the kernel starts rejecting new requests.

b

Explain the function bind().

5 marks

Answer

The bind() function assigns a local protocol address to a socket. It associates a specific IP address and port number with the socket file descriptor. For a TCP server, it is typically called before listen() to specify the port on which the server will receive incoming connections. The function signature is

int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
If the port is set to 0, the kernel assigns an ephemeral port; if the IP is set to INADDR_ANY, the socket binds to all available network interfaces.

c

Explain the function accept().

5 marks

Answer

Sign in to view the complete answer paper.

215 marks
a

Explain in detail about address conversion functions.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the syntactical issues of various address conversion functions.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Describe briefly about UDP Echo Client/server.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain Lack of flow control with UDP.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Explain in detail about the TCP Echo client server with suitable diagram.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain Crashing and Rebooting of server host shutdown of server host.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Explain in detail about the differences between TCP Sockets and UDP Sockets.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the following functions: i) recv() ii) send().

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain Generic socket options in IPV6.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the following functions: i) readv() ii) writev().

8 marks

Answer

Sign in to view the complete answer paper.

7

Explain the following: a) syslog Function b) daemon_init Function c) inetd Daemon d) daemon_inetd Function.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Explain how to examine the UDP checksum field with an example.

7 marks

Answer

Sign in to view the complete answer paper.

b

Describe ICMP message Daemon.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of NETWORK PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE III II, August/September - 2021, R18.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in NETWORK PROGRAMMING

Loading Question Papers

Fetching data from database...