LearnFrenzy
Sign in Take a free test

Computer Networks · Topic 9 of 10

Application Layer: DNS, HTTP and Email: questions with answers

Client-server and P2P, DNS resolution and records, HTTP methods, status codes, persistent connections, cookies and caching, HTTP/2 and HTTP/3, SMTP, POP3 and IMAP, FTP, DHCP and page-load time numericals.

Questions
45
Timed sets
3
Answers run or computed
22
Your accuracy
–

What this topic covers

8 subtopics
  • HTTP11
  • HTTP performance10
  • DNS9
  • Architectures5
  • Email5
  • DHCP2
  • FTP2
  • HTTP versions1
  • Beginner 15
  • Intermediate 15
  • Advanced 15

About this topic

The application layer is where networks meet users: DNS turns names into addresses, HTTP fetches the web, SMTP moves email and DHCP hands out addresses. Interviews ask "what happens when you type a URL"; GATE asks how many RTTs a page takes with persistent or non-persistent HTTP. Every response-time answer here was computed from the stated model, and the Python programs really ran.

Free preview

Sample questions

Try each one first, then open the answer for the explanation and why the other options are wrong.

Question 1 DNS Beginner Practice

What does DNS do?

Encrypts web traffic
Routes packets between networks
Translates host names such as learnfrenzy.com into IP addresses (and other records), using a distributed hierarchy of servers
Assigns IP addresses to hosts
Show answer and explanation
Correct answer C

Explanation

Address assignment is DHCP, encryption TLS, routing the network layer.

Why the other options are wrong

  • AThat is TLS.
  • BThat is IP routing.
  • DThat is DHCP.
Question 2 HTTP performance Intermediate Practice Answer computed

A page has a base HTML file and 10 small images. With non-persistent HTTP and no parallel connections, how many RTTs does it take (ignore transmission time)?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 22

Explanation

Each of the 11 objects needs a new TCP connection (1 RTT) plus the request/response (1 RTT): 11 × 2 = 22 RTTs.

Question 3 HTTP performance Advanced Practice Answer computed

A page has a base file and 8 images, each 100 KB (8 × 10⁵ bits), over a 10 Mbps link with RTT 20 ms. Using persistent HTTP without pipelining (base file also 100 KB), what is the total time in ms?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 920

Explanation

Handshake 20 ms, then for each of 9 objects one RTT plus 80 ms of transmission: 20 + 9 × (20 + 80) = 920 ms.

42 more questions in the timed setsSame format as the samples, with a timer, a question palette and a full review at the end.
Start practising

Computer Networks

All 10 topics

Topics, levels and full mocks
  1. 01 Network Models, Devices and Delays45 questions · 3 levels
  2. 02 Error Detection and Correction45 questions · 3 levels
  3. 03 Flow Control and Sliding Window45 questions · 3 levels
  4. 04 MAC Layer, Ethernet and Switching45 questions · 3 levels
  5. 05 IP Addressing and Subnetting45 questions · 3 levels
  6. 06 Routing Algorithms and Protocols45 questions · 3 levels
  7. 07 IPv4, IPv6, ARP, NAT, ICMP and DHCP45 questions · 3 levels
  8. 08 TCP, UDP and Congestion Control45 questions · 3 levels
  9. 09 Application Layer: DNS, HTTP and Email45 questions · 3 levels
  10. 10 Network Security and Socket Programming45 questions · 3 levels

Search LearnFrenzy

Esc

Quick links