Application Layer Protocols · Computer Networks
21 questions · asked in 15 of 27 years (2000–2026)
MCQ 17 · MSQ 2 · NAT 21-mark 19 · 2-mark 2
2000Questions per year2026
Questions 1–5 of 21
Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP ?
One or more options are correct.
Answer: (A), (C), (D)
HTTP/1.1 brought in persistent connections and pipelining over one TCP connection:
- (A) True. Many objects of one webpage can be fetched over a single persistent TCP connection if they sit on the same server. This is the main purpose of persistent connections.
- (B) False. One TCP connection links one client with one particular server. Objects kept on a different server need a separate TCP connection to that server.
- (C) True. HTTP/1.1 supports pipelining. The client can send a new request over the same connection before the reply to the earlier request is fully received.
- (D) True. The TCP connection stays open and is not closed after one request and response. So several webpages from the same server can be downloaded one after another over that single connection.
Answer: (A), (C), (D)
- (A) True. Many objects of one webpage can be fetched over a single persistent TCP connection if they sit on the same server. This is the main purpose of persistent connections.
- (B) False. One TCP connection links one client with one particular server. Objects kept on a different server need a separate TCP connection to that server.
- (C) True. HTTP/1.1 supports pipelining. The client can send a new request over the same connection before the reply to the earlier request is fully received.
- (D) True. The TCP connection stays open and is not closed after one request and response. So several webpages from the same server can be downloaded one after another over that single connection.
Answer: (A), (C), (D)
Which one of the following protocols may need to broadcast some of its messages?
Answer: (C)
DHCP (Dynamic Host Configuration Protocol) lets a host get an IP address (and other network settings) on its own when it first joins a network. At that point the host has no IP address and does not know the server's address. So its first message, "DHCP Discover", must be broadcast on the local network. Then any DHCP server on the network can reply.
(mail), (file transfer) and (web) are normal client-server protocols. They talk to a specific server whose address is already known, using an ordinary unicast connection. They have no built-in need to broadcast.
Answer: DHCP
(mail), (file transfer) and (web) are normal client-server protocols. They talk to a specific server whose address is already known, using an ordinary unicast connection. They have no built-in need to broadcast.
Answer: DHCP
A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user's computer in some order.
(i) HTTP GET request for the index page
(ii) DNS request to resolve the web server's name to its IP address
(iii) HTTP GET request for an image object
(iv) TCP SYN to open a connection to the web server
Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?
(i) HTTP GET request for the index page
(ii) DNS request to resolve the web server's name to its IP address
(iii) HTTP GET request for an image object
(iv) TCP SYN to open a connection to the web server
Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?
Answer: (C)
The packets leave the computer in this order:
1. (ii) DNS request The server's IP address is needed before anything else, because all caches are empty.
2. (iv) TCP SYN This opens the TCP connection to the server.
3. (i) GET index page This is the first request sent on the connection.
4. (iii) GET image The browser learns about the image only after it gets the index page and parses it.
Answer: (ii), (iv), (i), (iii)
1. (ii) DNS request The server's IP address is needed before anything else, because all caches are empty.
2. (iv) TCP SYN This opens the TCP connection to the server.
3. (i) GET index page This is the first request sent on the connection.
4. (iii) GET image The browser learns about the image only after it gets the index page and parses it.
Answer: (ii), (iv), (i), (iii)
Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers.
Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server.
Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?
Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server.
Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?
One or more options are correct.
Answer: (C), (D)
The DNS lookup is iterative over 3 tiers (root, TLD, authoritative). It takes 3 RTT.
Non-persistent HTTP with 5 parallel connections: The base HTML file needs TCP setup plus the request. This is 2 RTT. The 10 objects are fetched in 2 batches of 5. Each batch opens new connections and takes 2 RTT, so the batches take 4 RTT.
Total = 3 + 2 + 4 = 9 RTT.
Persistent HTTP with pipelining: TCP setup takes 1 RTT. The HTML file takes 1 RTT. All 10 objects are pipelined and take 1 RTT together.
Total = 3 + 1 + 1 + 1 = 6 RTT.
Answer: 9 RTTs (non-persistent, 5 parallel) and 6 RTTs (persistent with pipelining)
Non-persistent HTTP with 5 parallel connections: The base HTML file needs TCP setup plus the request. This is 2 RTT. The 10 objects are fetched in 2 batches of 5. Each batch opens new connections and takes 2 RTT, so the batches take 4 RTT.
Total = 3 + 2 + 4 = 9 RTT.
Persistent HTTP with pipelining: TCP setup takes 1 RTT. The HTML file takes 1 RTT. All 10 objects are pipelined and take 1 RTT together.
Total = 3 + 1 + 1 + 1 = 6 RTT.
Answer: 9 RTTs (non-persistent, 5 parallel) and 6 RTTs (persistent with pipelining)
Consider the resolution of the domain name by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution. The number of DNS query-response pairs involved in completely resolving the domain name is ________.
Answer: 4
The iterative method is used and no cache holds any record. So the resolver has to ask each level one by one:
1. The root server points the resolver to the .in server
2. The .in server points the resolver to org.in
3. The org.in server points the resolver to gate.org.in
4. The gate.org.in server gives back the IP of www.gate.org.in
Answer: 4
1. The root server points the resolver to the .in server
2. The .in server points the resolver to org.in
3. The org.in server points the resolver to gate.org.in
4. The gate.org.in server gives back the IP of www.gate.org.in
Answer: 4
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link LayerNetwork Layer ProtocolTransport Layer Protocol
Application Layer ProtocolsYou are here
Network Security