Hops and time to live (TTL)
Time to live: a number in a packet that drops by 1 at each router hop. When it reaches 0 the packet is discarded, so a packet stuck in a loop cannot circle forever.
Understanding Hops and time to live (TTL) in ACARA Digital Technologies Years 9–10
What it does: When a router lowers the TTL to 0, it drops the packet instead of passing it on. Each hop takes 1 off the TTL, so after 3 hops the TTL is 10 minus 3, which is 7. Each router a packet passes through counts as one hop. Three routers means three hops. TTL counts down at every hop. It never counts up. TTL is not about security. It stops lost packets from circling around the network forever. 64 - 5 = 59. TTL drops by 1 at each of the 5 hops. Splitting data is packetising. A hop is each step from one router to the next.
Common mistakes: TTL must go DOWN by 1 at every hop. Adding 1 means it would never reach 0. It should be ttl = ttl - 1. The packet should keep hopping while TTL is greater than 0. ttl < 0 is false at the start, so the loop never runs. It should be while ttl > 0:.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 41–55) and word search (Modules 12–55).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
TTLFill in the Blanks
Spot the Error
Student with a class code? Join your class →