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.
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.

Why it matters

This matters because a routing label or formed topology alone cannot prove that the required traffic path works or recovers at its boundaries.

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

The role of “Hop 1” is to connect them, making visible how traceroute evidence is strongest when paired with route state, return-path checks, and failure observations.

  • In Figure: TTL and Hop Limit limit a loop's lifetime, the visual shows routers A, B, and C forward a looping packet until the hop counter reaches zero and the packet is discarded.

Why it matters

This matters because a routing label or formed topology alone cannot prove that the required traffic path works or recovers at its boundaries.

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 claim in Overview: Routing Tables Are Forwarding Decisions needs more than a named protocol feature.
  • Routing tables are local forwarding evidence.

Key terms

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.
iotclass.org

Deck summary

Key takeaways

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

  • The role of “Hop 1” is to connect them, making visible how traceroute evidence is strongest when paired with route state, return-path checks, and failure observations.
  • 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 should be delivered with Hop Limit 4 remaining.
BIt should be dropped at the first router because the value is below 64.
CIt should reset to 16 at every router.
DIt should automatically choose a shorter route.
Show answer

Answer: A 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 application dashboard status only.
BThe fact that IPv6 is enabled.
CTime Exceeded source, hop policy, path measurements, route state, recent changes.
DOne traceroute with silent middle hops and no route-state capture.
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?

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

Answer: A 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 routing objective is valuing link-quality evidence
BThe routing system is wrong because fewer hops must always be preferred.
CThe route is automatically safe because any ETX-style metric guarantees delivery.
DThe application layer does not need retry or stale-data behavior once a metric is installed.
Show answer

Answer: A Metrics and convergence are routing contracts.

iotclass.org

Print reference

Answers 1 of 2

Answer key.

  1. A · 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. A · 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. A · Metrics and convergence are routing contracts.
iotclass.org