Chapter recap
Fresh laptop: DHCP gives IP, mask, gateway, DNS server; ARP finds the gateway's MAC; DNS (UDP 53) resolves the name; TCP 3-way handshake to port 80; HTTP GET → 200 OK. On the way, NAPT rewrites source IP/port, routers do longest-prefix match, frames are rebuilt per hop with CRC, fragments reassemble only at the destination. Cached case: 2 RTT + transmission (+ DNS).
Practice questions
- NAT · 1 mark
DNS 6 ms, RTT 20 ms, page transmission 4 ms. Time to receive the page (ms)?
Write your answer before opening the key.
- MCQ · 1 mark
ARP translates:
- name → IP address
- IP address → MAC address on the LAN
- private IP → public IP
- port → process
- MSQ · 1 mark
Which travel over UDP during a page load?
- DNS query
- HTTP GET
- DHCP request
- TCP SYN
- MCQ · 1 mark
Which item stays the same from the laptop to the server in a network without NAT?
- Source MAC address
- Destination IP address
- Frame CRC
- TTL
- NAT · 2 marks
Persistent connection, pipelining, base + 6 objects, RTT 25 ms, DNS 15 ms, transmission ignored. Total ms?
Write your answer before opening the key.
- MCQ · 1 mark
Which mechanism ensures a slow receiver is not overwhelmed during the page download?
- Congestion control (cwnd)
- Flow control (rwnd)
- DNS caching
- ARP
- MCQ · 1 mark
A DNS reply was lost. Which layer is responsible for asking again?
- TCP
- The DNS client (application) after a timeout
- The data link layer
- IP
- MSQ · 1 mark
Which happen at every router hop?
- A new frame with new MAC addresses
- Longest-prefix match on the destination IP
- TCP handshake
- TTL decremented
Answer key
Try the questions first. Open when you are ready to check.
- 50 — 6 + 20 + 20 + 4 = 50.
- B — ARP resolves the next hop's MAC.
- A: DNS.
- C: NAT.
- D: Transport demultiplexing.
- AC — DNS and DHCP.
- B: HTTP uses TCP.
- D: Part of TCP.
- B — IP addresses are end to end.
- A: Changes per hop.
- C: Recomputed per frame.
- D: Decremented per hop.
- 90 — 15 + 3 × 25 = 90.
- B — rwnd protects the receiver buffer.
- A: Protects the network.
- C: Unrelated.
- D: Unrelated.
- B — UDP is unreliable; the application retries.
- A: DNS is not using TCP here.
- C: Not end to end.
- D: Best effort.
- ABD — Link rebuild, forwarding lookup, TTL.
- C: End to end only.