S3U

Science / Networking / Grade 8 / sn8d1

DNS Cache Lifetimes - Observatory Records

Separate a source record, its cached copy and a new page request.

All worksheets

Watch the lesson | Practice Two: another cache log

5 questions0m 0s
Learn the skill

In this paper model, expiry = time obtained + time to live (TTL). Before expiry, use the cached address without restarting its lifetime. At or after expiry, the next lookup obtains the current source answer and starts its stated lifetime. The source is always available; no early refresh, serve-stale policy or page-content cache is modeled. A correct address does not guarantee a working page service.

Worked example

Separate example: a copy obtained at second 5 with TTL 20 expires at 25. A hit at 21 leaves 4 seconds; it does not move expiry to 41. A lookup at 25 refreshes from the source.

Fictional records: a Mirror address copy is obtained at 12 with TTL 48; the source changes to Atlas at 36. Requests are marked at 51, 59 and 60. Expiry and answers are not supplied.
Calculate the expiry from the obtained time and TTL. A source change and a request are different events.

Observatory A / fictional lookup log

At model second 12, the resolver caches atlas.test = 198.51.100.41 (Mirror), with TTL 48 seconds. At second 36, the authoritative source changes to 198.51.100.40 (Atlas). Requests occur at seconds 51, 59 and 60; there are no other lookups. Every refreshed answer has TTL 48. Routing to both services works. Atlas page service is stopped at second 60. Times are seconds on the same model clock. Do not contact or configure these documentation-only addresses.

Question 1 At what model second does the original cached copy expire?
Question 2 How many seconds remain on that copy when the request at 51 arrives?
Question 3 Which address answers the name lookup at second 59?
Question 4 The lookup at 60 obtains a new answer with TTL 48. At what model second does this new copy expire?
Question 5 The lookup at 60 selects Atlas, but its page service is stopped. Which conclusion follows?