Lesson 2 of 4 · Receiver freshness and out-of-order delivery
Keep the newest measurement
16 minute lesson · 3 checks along the way
Your goal for this lessonTrack receiver freshness through newer, stale and duplicate arrivals without confusing it with packet delay.
In this lesson 3 sections · 3 checks
Read & understand
The latest arrival may contain an older observation
At minute 4, the generation-2 sample replaces the initially known generation-0 sample. The receiver’s age becomes two minutes. It then rises as time passes: three at minute 5, four at minute 6, and five immediately before minute 7. At minute 7, the generation-6 sample arrives and reduces the age to one minute.
At minute 8, the generation-3 message arrives. Its journey took five minutes, but the receiver already has a reading generated at minute 6. Replacing that reading would move the displayed observation backward in time. Keep generation 6 as the freshest known timestamp, so receiver age is 8 − 6 = 2 minutes. Receiving the older packet neither resets age to zero nor changes it to that packet’s five-minute delay.
Receiver age with an out-of-order arrival
Original fictional example, not NEI telemetry. Initial known generation is 0 at time 0. At arrival times the retained newer timestamp determines age.
Open full-size diagram in a new tab: Receiver age with an out-of-order arrivalRead diagram data as a table
| Arrival minute | Incoming generation | Newest known generation | Age after arrival (min) |
|---|---|---|---|
| 4 | 2 | 2 | 2 |
| 7 | 6 | 6 | 1 |
| 8 | 3 | 6 | 2 |
| 12 | 10 | 10 | 2 |
Original fictional example, not NEI telemetry. Initial known generation is 0 at time 0. At arrival times the retained newer timestamp determines age.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Track a timestamp, not a packet counter
For each arrival, compare the carried generation time with the newest generation time already known. Replace the latter only if the incoming timestamp is larger. At any observation time, subtract that retained timestamp from the current time. This rule deliberately describes freshness for one sensor; combining readings from several sensors would require separate identities and histories.
A duplicate of the generation-6 message at minute 9 adds another delivery but leaves the newest timestamp at 6. Receiver age is then three minutes. Two simultaneous arrivals can be handled by retaining the larger generation timestamp regardless of processing order. When timestamps are equal, freshness alone cannot decide between conflicting values; validation and conflict handling are outside this model.
Keeping an old packet in a historical archive is different from letting it overwrite the current display. A scientist reconstructing a time series may still want that generation-3 measurement. Our freshness rule rejects it only as the replacement for the newest reading. It does not declare the packet scientifically worthless or instruct an operational system to delete it.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Read the whole window
From minute 8 until just before minute 12, the generation-6 sample remains the newest known one. Age rises from two toward six minutes. At minute 12, the generation-10 sample arrives and age falls to two. With no later deliveries, age reaches six at minute 16. Four packets arrived during the window, but only three advanced the freshest timestamp.
A report that says “four messages delivered” therefore misses something important about the current display. A report that says “final age six minutes” also misses the earlier intervals. To compare what a receiver knew throughout an observation period, we need a calculation that gives long gaps their full duration. That is the purpose of the next lesson.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.