Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech III NETWORK PROGRAMMING Previous Question Paper (February/March - 2022 - R18)

B.Tech | III | III-II | R18 | February/March - 2022

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

Answer any five questions

All questions carry equal marks

Main

115 marks
a

Explain the services and functions of various layers in the OSI reference model.

8 marks

Answer

The OSI model defines seven layers, each providing specific services for network communication:

  1. Physical Layer: Handles transmission of raw bit streams over a physical medium, defining electrical, mechanical, and functional specifications.
  2. Data Link Layer: Provides node-to-node data transfer, framing, physical addressing, and error detection/correction.
  3. Network Layer: Manages logical addressing, routing, and path determination to facilitate data transfer between different networks.
  4. Transport Layer: Ensures end-to-end communication, flow control, segmentation, and reliability (e.g., TCP/UDP).
  5. Session Layer: Establishes, manages, and terminates sessions between applications, handling synchronization and dialog control.
  6. Presentation Layer: Manages data representation, encryption, and compression to ensure the application layer can read the data.
  7. Application Layer: Provides network services directly to end-user applications, such as HTTP, FTP, and SMTP.
b

Describe various internet address conversion functions with neat syntax.

7 marks

Answer

Internet address conversion functions are used to translate between human-readable strings and network-byte-order binary structures.

  1. inet_aton: Converts an ASCII dotted-decimal string to a network byte order binary address.
    int inet_aton(const char *cp, struct in_addr *inp);
  2. inet_ntoa: Converts a network byte order binary address to a dotted-decimal string.
    char *inet_ntoa(struct in_addr in);
  3. inet_pton: Converts an IP address from text to binary form, supporting both IPv4 and IPv6.
    int inet_pton(int af, const char *src, void *dst);
  4. inet_ntop: Converts an IP address from binary to text form, supporting both IPv4 and IPv6.
    const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
2

How are TCP connections established and terminated? Explain the steps and various options using a neat TCP’s state transition diagram.

15 marks

Answer

Sign in to view the complete answer paper.

3

What will happen if the server child process is killed? Describe about the crashing of the server process and the crashing of the server host.

15 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Describe briefly about Blocking and Non-Blocking I/O models with neat diagrams.

9 marks

Answer

Sign in to view the complete answer paper.

b

Give the syntax of poll() function and describe its basic functionality.

6 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Give the detail syntax of recv() and send() functions and explain its functionality also mention various flags for I/O functions associated with these functions.

9 marks

Answer

Sign in to view the complete answer paper.

b

Give the basic functionality of ioctl() function.

6 marks

Answer

Sign in to view the complete answer paper.

6

Explain the following functions with an illustrative example code:

15 marks
a

getservbyname()

8 marks

Answer

Sign in to view the complete answer paper.

b

getservbyport()

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

What are the six macros that operate on the icmp6_filter structure? Explain them briefly.

8 marks

Answer

Sign in to view the complete answer paper.

b

How to calculate the internet checksum? Discuss the algorithm in detail.

7 marks

Answer

Sign in to view the complete answer paper.

8

Give an overview of the functions used in a ping program that works for both IPv4 and IPv6 with a neat flowchart and an illustrative program.

15 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 IT III III-II, February/March - 2022, 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...