Introduction
Fifteen GATE-style questions on Phase 5, with a few that reach back into earlier phases.
Practice questions
- MCQ · 1 mark
Which statement about client-server is correct?
- The server starts each exchange.
- The client uses a well-known port.
- The server listens on a well-known port.
- Only UDP can be used.
- NAT · 1 mark
A TCP server has 40 open connections. Sockets in use by the server process?
Write your answer before opening the key.
- MCQ · 1 mark
Which DNS record maps an alias to a canonical name?
- A
- CNAME
- MX
- NS
- NAT · 1 mark
Cold-cache iterative DNS: host↔local 2 ms, root 30 ms, TLD 20 ms, authoritative 10 ms. Lookup ms?
Write your answer before opening the key.
- MSQ · 1 mark
Which are true?
- DNS normally uses UDP port 53.
- HTTP runs over TCP port 80.
- HTTP keeps per-client state on the server by default.
- Cookies let a server recognise a returning browser.
- NAT · 2 marks
Base + 7 small objects, RTT 20 ms, non-persistent serial. Total ms?
Write your answer before opening the key.
- NAT · 1 mark
Base + 7 small objects, RTT 20 ms, persistent without pipelining. Total ms?
Write your answer before opening the key.
- NAT · 2 marks
Base + 15 objects, RTT 10 ms, non-persistent, 5 parallel connections, DNS 20 ms. Total ms?
Write your answer before opening the key.
- MCQ · 1 mark
HTTP status 301 means:
- OK
- Moved permanently
- Not modified
- Bad request
- MCQ · 1 mark
Which HTTP method returns headers only?
- GET
- HEAD
- PUT
- POST
- MCQ · 2 marks
Correct order for a freshly connected laptop opening a page:
- DNS, DHCP, ARP, TCP, HTTP
- DHCP, ARP, DNS, TCP, HTTP
- ARP, DHCP, TCP, DNS, HTTP
- DHCP, DNS, TCP, ARP, HTTP
- NAT · 2 marks
DNS 8 ms, RTT 32 ms, page transmission 10 ms, one TCP connection. Page fully received after (ms)?
Write your answer before opening the key.
- MCQ · 1 mark
Which server returns the final A record for www.example.com?
- Root
- .com TLD
- Authoritative for example.com
- Any router
- MSQ · 1 mark
Which change hop by hop on the way to the web server?
- Source and destination MAC addresses
- The frame's CRC
- The destination IP address
- The IP TTL
- NAT · 1 mark
Persistent pipelined HTTP: base + 20 small objects, RTT 15 ms. Total ms (DNS ignored)?
Write your answer before opening the key.
Answer key
Try the questions first. Open when you are ready to check.
- C — Servers listen on well-known ports.
- A: Clients start.
- B: Clients use ephemeral ports.
- D: TCP or UDP.
- 41 — 40 + 1 listening.
- B — CNAME.
- A: Address.
- C: Mail.
- D: Name server.
- 62 — Sum 62.
- ABD — Ports and cookies.
- C: HTTP is stateless.
- 320 — 2 × 20 × 8 = 320.
- 180 — 40 + 7 × 20 = 180.
- 100 — 20 + 20 + 3 × 20 = 100.
- B — Redirection.
- A: 200.
- C: 304.
- D: 400.
- B — HEAD.
- A: Returns the body too.
- C: Uploads.
- D: Sends data.
- B — Address → gateway MAC → name → connection → request.
- A: DNS needs an address first.
- C: ARP needs an IP configuration first.
- D: ARP is needed before the first DNS packet leaves.
- 82 — 8 + 32 + 32 + 10 = 82.
- C — Authoritative server.
- A: Refers to TLD.
- B: Refers to authoritative.
- D: Routers do not answer DNS.
- ABD — Link fields per hop; TTL decremented.
- C: Fixed end to end.
- 45 — 3 × 15 = 45.