Question types seen repeatedly in past papers. More stars means more frequent.
★★★
Time to load a web page (DNS + HTTP + objects)
Add DNS RTTs, TCP handshake, request, then objects for the HTTP variant.
★★★
Number of DNS query-response pairs
One per level of the name hierarchy when iterative and uncached.
★★★
Which transport protocol or port an application uses; protocol pairs for email
SMTP to send, POP3/IMAP to retrieve; DNS over UDP; email over TCP.
★★★
Order of actions in a web request
DNS first, then TCP handshake, then HTTP.
Ratings are approximate, based on recurring patterns in past GATE CSE papers.
Previous year questions
9 real questions from the official GATE CSE papers (2012 to 2024), newest first, each with the official answer key and a worked solution. Questions are the property of the GATE organising institutes; this copy is for your personal study.
9 questions · 0 correct of 0 attempted · marks 0 / 10
Year:
GATE 2024 CS1 · Q16MCQ1 mark
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?
GATE 2023 · Q52MSQ2 marks
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?
One or more options may be correct. Select all that apply, then submit.
GATE 2022 · Q35NAT1 mark
Consider the resolution of the domain name www.gate.org.in 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 ______.
GATE 2020 · Q25NAT1 mark
Assume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to send HTTP requests in non-persistent mode. The web page contains text and five very small images. The minimum number of TCP connections required to display the web page completely in your browser is ______.
GATE 2019 Set 2 · Q16MCQ1 mark
Which of the following protocol pairs can be used to send and retrieve e-mails (in that order)?
GATE 2016 Set 1 · Q25MCQ1 mark
Which of the following is/are example(s) of stateful application layer protocols? (i) HTTP (ii) FTP (iii) TCP (iv) POP3
GATE 2014 Set 1 · Q25MCQ1 mark
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server. 1. The web browser requests a webpage using HTTP. 2. The web browser establishes a TCP connection with the web server. 3. The web server sends the requested webpage using HTTP. 4. The web browser resolves the domain name using DNS.
GATE 2013 Code A · Q12MCQ1 mark
The transport layer protocols used for real time multimedia, file transfer, DNS and email, respectively are
GATE 2012 Code A · Q22MCQ1 mark
Which of the following transport layer protocols is used to support electronic mail?
Common traps
The DNS query always comes before the TCP SYN (you do not know the IP yet).
Non-persistent HTTP pays 2 RTT per object, not 1.
IMAP and POP3 retrieve mail; SMTP only sends.
FTP is stateful and uses two connections; HTTP is stateless.