Routing & RPL · Study deck

TTL and Loop Prevention

Picture a field router that sends the same packet around a broken path until batteries drain.

Packet Pete is your guide for this deck.

hop-limitloop-preventiontraceroute
Packet Pete, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • explain how TTL (IPv4) and hop limit (IPv6) bound how far a packet can travel
  • choose hop budgets from measured paths rather than defaults
  • connect packet-expiry evidence back to route-state symptoms on forward and return paths
  • Explain: A hop limit must stop the loop without hiding why delivery failed.
TTL and Hop Limit limit a loop's lifetime; they do not explain why the loop formed.
TTL and Hop Limit limit a loop's lifetime; they do not explain why the loop formed.
iotclass.org

Major section

Start With the Packet That Loops · Overview: TTL and Hop Limit Bound How Far a Packet Can Travel

A hop limit must stop the loop without hiding why delivery failed.

  • Internet Protocol means the shared rules for addressing and forwarding packets across networks.
  • IPv4 means Internet Protocol version 4, the older packet format.
  • TTL and Hop Limit give that packet a fuse.

Key terms

IPv6
IPv6 means Internet Protocol version 6, the newer format with a larger address space.
Each routed hop consumes one count. The remaining value is evidence about forwarding lifetime, not proof of path quality.
Each routed hop consumes one count. The remaining value is evidence about forwarding lifetime, not proof of path quality.
iotclass.org

Major section

Practitioner: Choose Hop Budgets from Measured Paths and Repair Detours · Under the Hood: Expiry Evidence Connects Packet Symptoms to Route State

A missing reply may mean a silent router or filtered ICMP, so compare the probes with the destination response before naming a broken hop.

  • Each router consumes one count; when decrementing produces zero, that router discards the packet.
Traceroute evidence is strongest when paired with route state, return-path checks, and failure observations.
Traceroute evidence is strongest when paired with route state, return-path checks, and failure observations.
iotclass.org

Major section

Routing Tables and Route Types · Packet Switching and Failover

A gateway means the device or service that joins one network or system to another.

  • A routing table row is a promise about one kind of traffic.
  • The prefix defines which packets can match, while longest-prefix selection explains why a more specific route wins over a default.

Key terms

Routing tables
Routing tables are local forwarding evidence.
Longest-prefix match
Longest-prefix match is the key lookup rule to check before arguing about metrics.

Why it matters

ETX is useful because it makes link quality part of the routing discussion, but it is still a model.

A route entry is a reviewable forwarding claim. Read the prefix first, then the next hop and interface, then the source and metric context.
A route entry is a reviewable forwarding claim. Read the prefix first, then the next hop and interface, then the source and metric context.
iotclass.org

Major section

Summary · Key Takeaway

IPv4 TTL and IPv6 Hop Limit are router-hop counters, not real-time timers.

  • Routers decrement the counter during forwarding and discard packets that reach zero.
  • TTL and Hop Limit bound loop damage but do not select routes or repair route state.
  • Traceroute uses increasing hop limits to collect Time Exceeded responses from routers.
Longest-prefix match is usually the first practical surprise: a more-specific route can win even when a broader route looks simpler.
Longest-prefix match is usually the first practical surprise: a more-specific route can win even when a broader route looks simpler.
iotclass.org

Deck summary

Key takeaways

A hop limit must stop the loop without hiding why delivery failed.

  • A missing reply may mean a silent router or filtered ICMP, so compare the probes with the destination response before naming a broken hop.
  • A gateway means the device or service that joins one network or system to another.
  • IPv4 TTL and IPv6 Hop Limit are router-hop counters, not real-time timers.
iotclass.org

Retrieval practice

Recall check 1 of 6

Packet Pete says: answer from memory, then check your reasoning.

Q1A packet starts with IPv6 Hop Limit 16 and crosses 12 routers before reaching a service. What should happen on a stable path?

AIt drops at hop one because 16 is below the default 64.
BIt arrives with Hop Limit 4 after twelve decrements.
CIt returns to 16 at each router along the stable path.
DIt automatically diverts to a shorter route after hop 12.
Show answer

Answer: B TTL and Hop Limit are decremented once per routed hop and expire the packet at zero.

iotclass.org

Retrieval practice

Recall check 2 of 6

Packet Pete says: answer from memory, then check your reasoning.

Q2During a field incident, repeated ICMPv6 Time Exceeded messages appear for a sensor flow. Which evidence set best explains the problem?

AThe final dashboard status alone, without any hop or route history.
BIPv6 is enabled, so the affected path has working routes in both directions.
CTime Exceeded source, hop policy, path measurements, route state, and changes.
DOne traceroute with silent middle hops but no captured route state.
Show answer

Answer: C Expiry evidence becomes useful when it is connected to hop-limit policy, path measurements, control-plane state, and recent changes.

iotclass.org

Retrieval practice

Recall check 3 of 6

Packet Pete says: answer from memory, then check your reasoning.

Q3A gateway route entry lists destination prefix, next hop, outgoing interface, route source, and metric. What does that entry primarily describe?

AA guarantee that the whole end-to-end IoT application path is healthy
BA complete list of every router a packet will cross
CThe gateway's local forwarding decision for packets that match that prefix
DThe application service or port that will receive the packet
Show answer

Answer: C A route entry is best reviewed as a local forwarding contract, not as proof of end-to-end delivery.

iotclass.org

Retrieval practice

Recall check 4 of 6

Packet Pete says: answer from memory, then check your reasoning.

Q4A router has a broad site route with metric 5 and a more-specific sensor VLAN route with metric 50. The packet destination matches both. Which review statement is strongest?

AThe broad site route must win because metric 5 is lower than metric 50
BThe default route should win because it is available for every destination
CPrefer the more-specific sensor VLAN route before comparing metrics
DNo route can be selected until the application opens a TCP or UDP port
Show answer

Answer: C Route review should separate prefix specificity, route-source preference, and metric comparison.

iotclass.org

Retrieval practice

Recall check 5 of 6

Packet Pete says: answer from memory, then check your reasoning.

Q5A packet-switched IoT path loses its primary next hop and later uses an alternate route. Which statement is most accurate?

ARouters can replay all packets sent toward the failed next hop once the alternate route becomes active.
BLater packets can use the alternate route after forwarding state updates; packets sent during convergence can still be lost.
CThe sender must name each replacement router, then retransmitted packets follow that source-selected path.
DRetry logic becomes unnecessary because packet switching keeps delivery continuous through every route change.
Show answer

Answer: B Packet switching forwards each packet according to current state.

iotclass.org

Retrieval practice

Recall check 6 of 6

Packet Pete says: answer from memory, then check your reasoning.

Q6An IoT mesh prefers a longer route because the shorter route has unreliable links. What is the strongest under-the-hood interpretation?

AThe objective must be wrong because fewer hops always win.
BAn ETX-style metric itself guarantees end-to-end delivery.
CMetrics remove the need for retries and stale-data handling.
DThe objective values link quality above minimum hop count.
Show answer

Answer: D Metrics and convergence are routing contracts.

iotclass.org

Print reference

Answers 1 of 2

Answer key.

  1. B · TTL and Hop Limit are decremented once per routed hop and expire the packet at zero.
  2. C · Expiry evidence becomes useful when it is connected to hop-limit policy, path measurements, control-plane state, and recent changes.
  3. C · A route entry is best reviewed as a local forwarding contract, not as proof of end-to-end delivery.
  4. C · Route review should separate prefix specificity, route-source preference, and metric comparison.
  5. B · Packet switching forwards each packet according to current state.
iotclass.org

Print reference

Answers 2 of 2

Answer key.

  1. D · Metrics and convergence are routing contracts.
iotclass.org