GATE CSE DNS and HTTP PYQs
In GATE CS, the 'DNS and HTTP' topic is tested predominantly through conceptual protocol interaction, chronological packet sequencing, connection lifecycle mech… Read the guide
- Questions
- 18
- Asked
- since 2011
- Total marks
- 20
- Marks / paper
- 0.8
18 GATE CSE DNS and HTTP PYQs with solutions, from Computer Networks. Browse all GATE CSE PYQs.
Questions
Every official paper that asked this topic, newest first.
- GATE CSE 2026 Set 1 · Q19Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP 1.1?MSQ1 markMediumSolve
- GATE CSE 2026 Set 2 · Q22Which one of the following protocols may need to broadcast some of its messages?MCQ1 markEasySolve
- GATE CSE 2024 Set 1 · Q16A 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…MCQ1 markEasySolve
- GATE CSE 2023 · Q52Suppose in a web browser, you click on the
www.gate-2023.inURL. 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…MSQ2 marksMediumSolve - GATE CSE 2022 · Q35Consider the resolution of the domain name
www.gate.org.inby 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…NAT1 markMediumSolve - GATE CSE 2020 · Q25Assume 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…NAT1 markEasySolve
- GATE CSE 2019 · Q16Which of the following protocol pairs can be used to send and retrieve e-mails (in that order)?MCQ1 markEasySolve
- GATE CSE 2016 Set 1 · Q24Which one of the following protocols is NOT used to resolve one form of address to another one?MCQ1 markEasySolve
- GATE CSE 2016 Set 1 · Q25Which of the following is/are example(s) of stateful application layer protocols? (i) HTTP (ii) FTP (iii) TCP (iv) POP3MCQ1 markMediumSolve
- GATE CSE 2016 Set 2 · Q25Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.MCQ1 markEasySolve
- GATE CSE 2015 Set 1 · Q15Which of the following statements is/are FALSE? I. XML overcomes the limitations in HTML to support a structured way of organizing content. II. XML specification is not case sensitive while HTML specification is case sensitive. III. XML supports user defined tags while HTML uses pre-defined tags. IV. XML tags need not…MCQ1 markEasySolve
- GATE CSE 2015 Set 1 · Q17In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?MCQ1 markEasySolve
- GATE CSE 2015 Set 2 · Q13Which one of the following statements is NOT correct about HTTP cookies?MCQ1 markEasySolve
- GATE CSE 2015 Set 3 · Q8In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/.html; where, is a different number from 1 to 10 for each Webpage. Suppose, the client stores the Webpage with (say W1) in local machine, edits and then tests. Rest of the WebPages remains on the web…MCQ1 markMediumSolve
- GATE CSE 2014 Set 1 · Q25Identify 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…MCQ1 markEasySolve
- GATE CSE 2014 Set 2 · Q28A graphical HTML browser resident at a network client machine accesses a static HTML webpage from a HTTP server . The static HTML page has exactly one static embedded image which is also at . Assuming no caching, which one of the following is correct about the HTML webpage loading (including the…MCQ2 marksMediumSolve
- GATE CSE 2011 · Q4Consider different activities related to email. m1: Send an email from a mail client to a mail server m2: Download an email from mailbox server to a mail client m3: Checking email in a web browser Which is the application level protocol used in each activity?MCQ1 markEasySolve
- GATE CSE 2011 · Q9HTML (HyperText Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting) pages?MCQ1 markEasySolve
What GATE tests in DNS and HTTP
Concepts, patterns, formulas and traps distilled from past papers.
In GATE CS, the 'DNS and HTTP' topic is tested predominantly through conceptual protocol interaction, chronological packet sequencing, connection lifecycle mechanics, and timing calculations. Early exams focused on basic protocol roles (SMTP, POP3, HTTP), statefulness, and HTML/XML properties, whereas recent exams (2020–2026) strongly emphasize quantitative analysis of iterative DNS hierarchies, persistent vs. non-persistent HTTP, pipelining, and total round-trip time (RTT) latency.
Core concepts
- DNS resolution mechanism (iterative vs. recursive, root, TLD, SLD, authoritative servers)
- HTTP 1.0 non-persistent vs. HTTP 1.1 persistent connections
- HTTP request pipelining and head-of-line considerations across a single TCP stream
- Dependency ordering: DNS lookup -> TCP 3-way handshake (SYN) -> HTTP request -> HTTP response
- Embedded web objects and parallel TCP connections
- HTTP Cookies (text key-value pairs stored at client, Set-Cookie headers, expiration, statelessness mitigation)
- Stateful vs. stateless protocols (HTTP is stateless; FTP and POP3 maintain state; TCP is stateful at transport layer)
- Application-level email protocols (SMTP push vs. POP3/IMAP pull vs. HTTP webmail)
- Dynamic Host Configuration Protocol (DHCP) bootstrapping and DORA process
- Application-layer broadcasting mechanisms (e.g., DHCPDISCOVER using 255.255.255.255)
- Unicast TCP-based protocols (HTTP, SMTP, FTP) vs. UDP/broadcast-capable protocols
- Transport layer dependencies of application protocols (TCP vs. UDP)
Recurring question patterns
Chronological Sequence of Browser/Web Request Events
CommonMCQ1 marks2024, 2016, 2014Determining the exact sequential order of protocol actions or packet transmissions when a client resolves an address, opens a transport connection, and requests web assets (DNS query -> TCP SYN/Handshake -> HTTP GET base page -> HTTP GET embedded resources).Total RTT and Latency Calculation for Webpage Fetching
Occasionalmixed2 marks2023, 2020Calculating the total elapsed time in multiples of RTT required to resolve domain names via iterative DNS servers, establish TCP connections, and fetch a base HTML document plus multiple embedded objects under varying modes (non-persistent parallel connections vs. persistent pipelined HTTP).
Iterative vs. Recursive DNS Query Hierarchy Counting
OccasionalNAT1 marks2023, 2022Counting the exact number of query-response pairs or DNS server traversals needed to resolve a fully qualified domain name (FQDN) across root, TLD, and authoritative nameservers assuming cold caches.
HTTP Mechanics: Persistence, Pipelining, and Cookies
Commonmixed1 marks2026, 2015, 2014Evaluating conceptual assertions regarding HTTP 1.0 vs. HTTP 1.1 features (persistent TCP connections, single vs multi-server socket constraints, pipelining) and session tracking via HTTP cookies.
Application Layer Protocol Characteristics and Role Mapping
CommonMCQ1 marks2019, 2016, 2015, 2011Categorizing application-layer protocols based on statefulness (FTP, POP3 vs. stateless HTTP), address resolution nature (DNS, ARP, RARP vs. DHCP configuration), or specific application tasks (SMTP push vs. POP3/IMAP pull).
Protocol Transmission and Operational Behavior Identification
RareMCQ1 marks2026Questions that present a specific communication characteristic (e.g., broadcasting messages, transport layer protocol dependency, statefulness) and ask the candidate to identify which application-layer protocol exhibits that behavior.
Formulas GATE uses
Non-Persistent HTTP Connection Count
Used to compute total TCP handshakes when fetching a base HTML page containing embedded objects in non-persistent HTTP mode.
Iterative DNS Query-Response Pairs
Used when calculating the number of DNS query-response round trips needed without caching across an iterative DNS resolution tree.
Webpage Retrieval Delay (Non-persistent with $k$ parallel TCP connections)
Used to calculate elapsed RTTs when downloading base HTML followed by objects over at most concurrent non-persistent TCP connections.
Webpage Retrieval Delay (Persistent HTTP with Pipelining)
Used to calculate total RTTs when all embedded objects on the same server are requested in a single pipelined burst over the existing persistent connection.
Examiner traps in DNS and HTTP
- Confusing transport-layer state with application-layer state: marking TCP as a stateful application layer protocol (GATE 2016 Set 1).
- Believing cookies are executable security threats/code rather than static header data stored on the host (GATE 2015 Set 2).
- Forgetting the initial 1 TCP connection / 2 RTTs required for the base HTML page before embedded objects can even be discovered and fetched (GATE 2020, 2023).
- Assuming persistent HTTP 1.1 can multiplex requests across distinct physical servers in the same TCP connection (a TCP socket is strictly bound to one server IP:port) (GATE 2026 Set 1).
- Counting only top-level domains and forgetting the root server or multi-level domains (e.g. counting '.org.in' as 1 instead of '.in' then 'org.in') in iterative DNS resolution (GATE 2022).
- Mistaking DHCP for an address resolution protocol (it is host configuration/allocation, whereas DNS/ARP/RARP map identifiers) (GATE 2016 Set 1).
- Assuming all application layer protocols operate strictly over point-to-point unicast TCP connections.
- Overlooking that a host does not yet have an assigned IP address during initial DHCP discovery, mandating broadcast delivery.
How questions are asked
- Chronological packet/event ordering
- Multi-tier iterative DNS query counting (NAT)
- Total RTT calculation with parallel/pipelined HTTP (MSQ/NAT)
- Multi-statement correctness regarding HTTP versions, cookies, or persistent channels (MSQ)
- Protocol classification and property matching
- Direct protocol identification matching an operational property (e.g., message broadcast requirement)
Paper trends
Shift from qualitative protocol identification (SMTP, POP3, basic HTML tags) to rigorous multi-RTT latency calculations and deep HTTP 1.1 connection semantics.
2026, 2023, 2020, 2014, 2011
Introduction of NAT and MSQ formats replacing simple 4-option MCQs to test multi-level iterative DNS resolution and combinatorial multi-statement evaluation.
2026, 2023, 2022, 2020
Direct conceptual 1-mark MCQs focusing on fundamental communication needs (such as broadcast during bootstrap/discovery) among standard TCP/IP application layer protocols.
2026
Difficulty notes
Easy: Single-concept protocol matching (SMTP/POP/HTTP), identification of stateless/stateful protocols, basic packet ordering, or simple non-persistent connection counting. Medium: Calculating multi-step RTT elapsed time under differing concurrency models (iterative DNS + parallel TCP vs. persistent pipelined HTTP), and rigorous evaluation of HTTP/1.1 socket boundaries and connection reuse (MSQ).