All lessons Leer en español

Security in depth · Unit 29 · Lesson 6 of 9

A timestamp needs clock context

Compare event-time ranges before claiming which event happened first.

3 minreadyShort lesson

Helpful before thisIncident response: decisions under uncertainty

See all lessons in this topic

After this lesson you can

  • Normalize a clock offset and explain why overlapping uncertainty prevents a definite ordering.

Two precise-looking timestamps can still have an uncertain order.

Keep the clock’s context

A clock offset is the difference between a clock’s reading and the reference time. A fast clock displays a later time than the reference. Time-zone conversion and clock correction are different operations: a UTC label identifies a time scale, not a guarantee of clock accuracy.

Assume two fictional sources record events on the same day. Their time labels use UTC, and the supplied clock-error bounds apply throughout this short interval. There is no additional timestamp rounding uncertainty in this exercise.

Original event time → Clock and collection context → Qualified timelineOriginal event timeClock and collectioncontextQualified timeline
Clock and collection context qualify the original event time. A corrected timeline may contain overlapping ranges rather than a definite sequence.

Supplied clock record

  • K1: A records 10:00:06. Its clock is four seconds fast, with one second of uncertainty in that offset.
  • K2: B records 10:00:03. Its clock is within two seconds of the reference.
  • K3: The collector receives B at 10:00:10 and A at 10:00:20.

Work with ranges

Subtract four seconds from A’s reading: the midpoint is 10:00:02. Including uncertainty gives 10:00:01 through 10:00:03. B’s range is 10:00:01 through 10:00:05. The overlap means the supplied evidence cannot establish which source event occurred first.

K3 establishes receipt order only. Buffering and transport delay can separate an event from its arrival at the collector. Do not replace missing clock evidence with sorting by receipt time and then present that as event order.

Retain the original reading, correction basis, bounds, and collector receipt as separate fields. Even a reliable ordering would not by itself prove that one event caused the other.

Model conclusion: Both event orders remain possible within the stated bounds. More clock or causal context is needed.

Terms you met

Clock offset

Check yourself

No timer. No penalties. Read the explanation and try again whenever you like.

  1. Which event ordering is established by K1-K3?

    Show the answer

    Correct answer: Neither ordering is established because the corrected event-time ranges overlap. A may fall between 10:00:01 and 10:00:03; B between 10:00:01 and 10:00:05. Either ordering remains possible.

Try it

  • WriteWrite a two-row timeline with original time, corrected range, and receipt time. Conclude that the ranges overlap; preserve both original timestamps instead of replacing them.
References