Lesson 4 of 4 · Retention policy and historical completeness
Choose what to retain
18 minute lesson · 3 checks along the way
Your goal for this lessonCompare two storage policies on identical contacts and explain the tradeoff between current freshness and historical completeness.
In this lesson 3 sections · 3 checks
Read & understand
Hold the opportunities constant
Start a new fictional experiment with a generation-0 reading already known at minute 0. Generate six further samples at minutes 2, 4, 6, 8, 10 and 14. There are exactly three transmission opportunities, at minutes 7, 11 and 15. Each can carry one sample and delivery takes one additional minute. Observe through minute 20. There are no losses, retries or acknowledgments, and the same timings apply to both policies.
A first-in, first-out policy, FIFO, keeps every waiting sample and sends the oldest at each opportunity. It selects generation 2 at minute 7, generation 4 at minute 11 and generation 6 at minute 15; arrivals are at 8, 12 and 16. Samples 8, 10 and 14 remain waiting at the end. A latest-only policy retains the newest unsent sample and discards older unsent samples. It selects generations 6, 10 and 14 for the same arrivals, discarding generations 2, 4 and 8.
These are deliberate classroom policies, not documented NEI firmware. The comparison does not model storage capacity, energy, packet sizes or what happens after the window. At a contact exactly coinciding with generation, the newly generated sample would be eligible before selection; specifying that convention avoids an ambiguous boundary case.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Equal message counts, different freshness
For both policies the initial 0-to-8 segment has area 8 × (0 + 8) / 2 = 32 minute-squared. FIFO then has ages six to ten over minutes 8 to 12, eight to twelve over 12 to 16, and ten to fourteen over 16 to 20. Those areas are 32, 40 and 48. Total area is 152, giving average age 152 / 20 = 7.6 minutes.
Latest-only has age two immediately after each arrival. Each following four-minute segment rises from two to six and contributes 16 minute-squared. Total area is 32 + 16 + 16 + 16 = 80, giving average age four minutes. Both policies deliver three samples, but the newest-only selection produces a smaller average age in this particular experiment. The difference follows from which generation timestamps reach the receiver, not from extra contacts.
FIFO and latest-only on the same contacts
Original fictional example. Contacts at 7, 11 and 15 allow one sample each, with one-minute delivery delay. Initial generation 0 is known. No claim of universal optimality or actual NEI performance.
Open full-size diagram in a new tab: FIFO and latest-only on the same contactsRead diagram data as a table
| Policy | Delivered generations | Average age (min) | Pending at end | Discarded |
|---|---|---|---|---|
| FIFO | 2, 4, 6 | 7.6 | 8, 10, 14 | None |
| Latest-only | 6, 10, 14 | 4 | None | 2, 4, 8 |
Original fictional example. Contacts at 7, 11 and 15 allow one sample each, with one-minute delivery delay. Initial generation 0 is known. No claim of universal optimality or actual NEI performance.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Report the benefit and the loss together
At minute 20, FIFO has delivered generations 2, 4 and 6 and retains three unsent samples. Latest-only has delivered generations 6, 10 and 14, but three earlier samples have been discarded permanently. A task that needs a current status display may value the fresher set. A task that needs every historical sample cannot recover the missing values merely because the latest reading is recent. This model does not guarantee that FIFO will eventually clear its backlog either.
A defensible report states the sample schedule, contact schedule, one-minute delivery delay, initial sample, window and retention policy alongside the result. It says latest-only reduced average age from 7.6 to four minutes here, at the cost of discarded history. It does not say that NEI will achieve a four-minute average or that latest-only is best for every application.
This is the broader lesson to bring back to a developing sensor-communications program: define the information the user needs, then ask what evidence would demonstrate that the system delivers it. Dated program announcements explain intentions. Measured communication records, clock validation, sensor validation and application requirements would be needed to assess a real service. The classroom result supplies a method for asking sharper questions, not missing flight evidence.
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.
- Read: BRIN: ORPA targets three prototypes for 2023May 29, 2023 development plans; later dates are conditional, not evidence of completed deployment.
- Read: Yates and colleagues: Age of Information, an introduction and survey2021 survey: freshness definition and finite-window average in the introduction and Section II. The course uses original fictional timings, not NEI data.