Routing & RPL · Study deck

How Packets Find a Next Hop — Part 2

A routing evidence record should name the traffic scope, route source, selected next hop, packet proof, and changed condition that would reopen the decision.

Packet Pete is your guide for this deck.

routingforwardingrouting-table
Routing Fund Basics cover: Pete selecting a next hop for packet tokens across tabletop routers.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • explain how a router chooses a next hop from forwarding state rather than the full path
  • distinguish routing (control plane) from forwarding (data plane), and a default route from a specific one
  • apply accept, constrain, retest, and hold decisions to a routing evidence record
  • explain why loop limits and neighbor resolution matter when no route is found
iotclass.org

Major section

The winning route and its packet evidence

A useful record explains which route wins and how its result was checked.

  • The evidence record needs a source, destination prefix, and application path.The local-versus-uplink boundary and expected return path prevent a successful test from covering the wrong traffic scope.
  • In this example, /16 compares the first 16 bits, or the first two numbers ( 10.42 ), and /24 compares the first 24 bits, or the first three ( 10.42.18 ).
  • For 10.42.18.33, the matching 10.42.18.0/24 route beats 10.42.0.0/16.Removing the /24 leaves the /16 as the next winner, still ahead of the less-specific default route.
  • Route snapshots need packet traces and parent state alongside them.The mesh can depend on intermediate devices that sleep or lose link quality, so a table alone cannot establish observed delivery.

I am reviewing the gateway’s route to 10.42.18.33. I keep the winning /24 entry with its next hop and packet trace, then check the expected return path.

iotclass.org

Activity 1 · Work it out

✎ Choose the winning route

I want you to explain the winning prefix before trusting the gateway.

On paper, compare 10.42.18.0/24, 10.42.0.0/16, and 0.0.0.0/0 for destination 10.42.18.33. Mark the winner. Remove that route and mark the next winner. Explain both choices.

3 minutes · Pen and paper · Answer: Activity 1

Your answer
iotclass.org

Major section

Accepting, constraining, and reopening a route

Accept, constrain, retest, and hold turn the routing record into a decision.

  • Acceptance needs the route and failure behavior to match the traffic.The selected next hop, return path, and loop guard must have evidence for the application path the deployment actually needs.
  • Forwarding can be constrained to named prefixes, interfaces, or gateways.Keeping local prefixes local and sending only cloud-bound traffic upstream makes the intended boundary explicit.
  • A prefix, metric, parent, or sleep-pattern change requires another review.The earlier packet trace belongs to its tested conditions and cannot automatically establish the changed route’s behavior.
  • Undocumented next-hop or device behavior leaves approval unsupported.Missing return-path, loop-limit, memory, or control-message evidence means the design’s fit for constrained devices remains unresolved.

I am deciding whether the sensor’s path is supported by its routing record. I keep the allowed traffic narrow and reopen the review when the prefix, parent, gateway, or sleep pattern changes.

iotclass.org

Major section

Practitioner: Build the Routing Evidence Record (continued)

Assuming the visible route order is the selection rule.

  • After relay A is removed and the route table updates, at 10 s marker after uses the learned 2001:db8:42::/64 row via relay B on mesh0.
  • Retest if the relay, interface, or gateway route changes.
  • A prefix is the starting part of an address.
iotclass.org

Major section

Practitioner: Build the Routing Evidence Record (continued)

For separate return-path evidence, send a marked response from G to S, record G’s selected route, and check for that response at S.

  • The forward captures show delivery to G for these two sends.
  • TTL or Hop Limit behavior, unreachable response where relevant, and observed failure when the limit is exhausted.
  • Neighbor loss, gateway failover, mesh parent change, stale-route handling, and retest trigger.
iotclass.org

Major section

Practitioner: Build the Routing Evidence Record (continued)

Trusting a route that only works while one preferred neighbor is healthy.

  • Route snapshot, neighbor or parent state, packet trace, diagnostic response, and change owner.
  • Both routes match 10.42.18.33, so 10.42.18.0/24 wins over 10.42.0.0/16 because it matches more of the address.
  • ConstrainKeep local prefixes local, route only cloud-bound traffic upstream, or limit a route to a named interface or gateway.
iotclass.org

Major section

From loop guard to delivery or drop

Trace the forwarding checks from the loop guard through route lookup to delivery or drop.

  • The first guard uses TTL or Hop Limit to bound packet circulation.A packet whose limit is exhausted is dropped before it can keep circulating through the same forwarding loop.
  • The destination lookup selects the most specific usable route.The diagram includes the default-route fallback, which matters only when no more specific matching entry can supply the next step.
  • Neighbor resolution supplies the next local delivery address when needed.ARP for IPv4 Ethernet or Neighbor Discovery for IPv6 links can precede transmission of the outgoing link-layer frame.
  • The no-route branch ends with a drop.A missing usable match and missing fallback leave no justified next hop, so the packet is not forwarded blindly.
A forwarding check should expose the loop guard, prefix match, next-hop resolution, default-route fallback, and no-route drop behavior.
A forwarding check should expose the loop guard, prefix match, next-hop resolution, default-route fallback, and no-route drop behavior.
iotclass.org

Major section

Loop limits and local delivery addresses

Loop limits and neighbor resolution protect different parts of the forwarding step.

  • Each router reduces IPv4 TTL or IPv6 Hop Limit.The decreasing value limits how far a packet can circulate if forwarding state accidentally sends it around a loop.
  • An exhausted loop limit stops further packet forwarding.Dropping at zero bounds the failure instead of allowing a bad path to consume forwarding effort indefinitely.
  • ARP or Neighbor Discovery can resolve the next local delivery address.This step supplies link-layer addressing when required; it does not choose a complete end-to-end path for the application.
  • The outgoing frame is new while the IP destination normally stays unchanged.Each hop must create a new local envelope for the selected neighbor while preserving the packet’s intended destination network.

I am following one packet through a router’s forwarding step. I separate the limit that stops endless circulation from the neighbor address needed to send the next local frame.

iotclass.org

Major section

Parent choice in a constrained mesh

RPL fits constrained meshes by organizing forwarding around selected parents.

  • Battery operation and lossy links can change the usable parent.Sleeping neighbors, limited memory, and changing link quality make stable enterprise-network assumptions unsuitable for some constrained devices.
  • RPL uses a destination-oriented directed acyclic graph near a border router.This structure can organize constrained nodes around selected parents rather than requiring each sensor to maintain a full network map.
  • An objective function can guide the parent choice.Nodes maintain enough state to forward traffic, but the selected parent still needs evidence under the deployment’s actual link conditions.
  • The review needs link quality, repair cost, and return-path evidence.Control-message budget and repair behavior determine whether a parent change fits the constrained devices after the preferred route fails.

I am reviewing the field sensor after its preferred parent becomes unavailable. I check the replacement parent and repair evidence against the mesh’s sleeping devices, limited memory, and lossy links.

iotclass.org

Activity 2 · Draw it

✎ Trace a changed parent

I want you to sketch what changes when the preferred parent disappears.

Draw a sensor, its preferred parent, an alternative parent, and the gateway. Cross out the preferred parent. Mark the new next hop and list the route, packet, and return-path evidence needed to review recovery.

4 minutes · Pen and paper · Answer: Activity 2

Your answer
iotclass.org

Major section

The mesh, site, and provider boundaries

The constrained mesh hands traffic to site routing before an external edge applies provider policy.

  • The RPL border router connects the mesh to an explicit site route.It terminates the constrained topology and sends non-mesh traffic toward a default or redistributed route under the reviewed boundary rules.
  • An IGP carries reachability and path-cost information within an administrative domain.The site network can use this information to move the packet toward its enterprise edge without placing that responsibility on each sensor.
  • BGP applies route policy between autonomous systems at a controlled edge.Provider-facing policy belongs at the managed network boundary and needs prefix advertisements, filtering, and path-selection evidence.
  • The return path needs a route to the IoT prefix.An explicit translation and proxy design can define another arrangement, but a working outbound ping alone cannot establish inbound reachability.

I follow the sensor’s packet from its RPL parent path through the border router and site network. I keep the allowed prefixes and return route visible at each boundary before accepting external delivery.

iotclass.org

Major section

Under the Hood: Forwarding, Loop Limits, and Why RPL Appears (continued)

The takeaway is not that every IoT network needs RPL.

  • Neighbor ResolutionLocal delivery may need ARP for IPv4 Ethernet or Neighbor Discovery for IPv6 links before the next frame can be sent.
  • No RouteIf no matching route and no default route exist, the router drops the packet and may report the destination as unreachable.
  • Star topologies, Ethernet gateways, and industrial networks may use other routing arrangements.
iotclass.org

Major section

Under the Hood: Forwarding, Loop Limits, and Why RPL Appears (continued)

A stable enterprise routing design may assume more memory, bandwidth, and neighbor stability than those devices can offer.

  • For example, a rule that prefers more reliable links can choose a candidate with better measured delivery if that candidate also meets the graph and policy checks.
  • Nodes maintain enough state to forward traffic without requiring every constrained node to know a full network map.
  • The point is that low-power mesh routing needs evidence about parent choice, link quality, control-message budget, repair behavior, and return paths, not just a generic statement that routing exists.
iotclass.org

Major section

IGP And BGP: The Gateway Boundary

It sends non-mesh traffic to a default or redistributed route.

  • A network under one administration is an autonomous system.
  • An interior gateway protocol (IGP) such as OSPF shares which destinations can be reached and their path costs within one system: BGP shares reachability between systems.
  • The site IGP carries the packet to the enterprise edge.

Key terms

Neither term
Neither term means “the Internet,” and small endpoints do not all need these protocols.
iotclass.org

Major section

IGP And BGP: The Gateway Boundary (continued)

Neither term means “the Internet,” and small endpoints do not all need these protocols.

  • There, a router may use BGP with a provider on the way to a cloud service.
  • The return path needs valid reachability to the sensor and may cross different network boundaries.
  • It needs a route to the IoT prefix, or a documented translation and proxy design.
The outbound packet crosses the RPL mesh, site autonomous system and provider on its way to a cloud service. A routed reply crosses the boundary types in reverse and needs a usable route to the IoT prefix. Individual hops can differ. A translation design needs a verified address mapping. A proxy ends the cloud flow and starts a separate flow toward IoT.
The outbound packet crosses the RPL mesh, site autonomous system and provider on its way to a cloud service. A routed reply crosses the boundary types in reverse and needs a usable route to the IoT prefix. Individual hops can differ. A translation design needs a verified address mapping. A proxy ends the cloud flow and starts a separate flow toward IoT.
iotclass.org

Major section

Summary

Reliable routing joins the local forwarding rule to evidence from changed conditions.

  • Destination lookup identifies the next step rather than a complete global path.The sensor, gateway, and ISP router can each use local forwarding state to move the cloud-bound packet toward its destination.
  • Longest-prefix match keeps specific routes ahead of the default fallback.The chapter’s /24 wins over its matching /16 for 10.42.18.33, while the default remains the least-specific option.
  • Loop limits and no-route drops can bound failed forwarding.A packet is dropped when its limit expires or no usable route exists, rather than circulating or advancing by guesswork.
  • Mesh evidence must explain parent selection, repairs, and the return path.Sleeping nodes and changing links can invalidate a previously usable next hop, so a single successful message cannot establish recovery.

I return to the marked sensor packet and its changed parent. I can explain the chosen hop, fallback, loop limit, and observed result only when the route record and packet evidence stay together.

iotclass.org

Deck summary

Key takeaways

Trust the path only when its forwarding choices and review triggers are visible.

  • Route tables show intended choices, while packet traces show observed results.Keeping snapshots, parent state, timing, delivery, and loss together makes a failed sensor path diagnosable after a route change.
  • A working default route does not establish the return path.The remote network still needs reachability to the IoT prefix or the explicitly documented translation and proxy arrangement.
  • Changed neighbors and sleeping devices can invalidate an earlier decision.The next packet can encounter an unavailable preferred parent even after a previous message reached the gateway successfully.
  • Traffic or routing changes require the evidence record to be reopened.Prefixes, gateway rules, metrics, parents, border routers, and sleep patterns define concrete reasons to retest the previously observed path.

I am reviewing a gateway path that delivered one outbound packet successfully. I still need the return route and a changed-neighbor test before the record supports the sensor’s full traffic requirement.

iotclass.org

Retrieval practice

Recall check 1 of 4

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

Q1A gateway has routes for 10.0.0.0/8, 10.42.0.0/16, 10.42.18.0/24, and 0.0.0.0/0. Which route should it use for a packet destined to 10.42.18.33?

AUse 10.0.0.0/8, the broadest private block that still matches.
BUse 0.0.0.0/0 because any configured default route takes priority.
CUse 10.42.18.0/24, the longest prefix matching the destination.
DUse every matching route, sending duplicate packets down each.
Show answer

Answer: C The routing evidence record should make the selected route visible.

iotclass.org

Retrieval practice

Recall check 2 of 4

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

Q2Why do constrained IoT meshes often need routing evidence beyond a normal gateway route table?

ABecause TTL and Hop Limit are optional in mesh networks and packets can safely circulate forever.
BA visible default route is enough because it establishes the local mesh prefixes and return path.
COne successful application message is enough because it proves route repair and parent behavior for later traffic.
DBecause sleeping nodes, lossy links, limited memory, parent choice, and repair behavior can change which next hop is usable.
Show answer

Answer: D Under the hood, IoT routing evidence must connect forwarding mechanics with constrained-network behavior: parent choice, route freshness, loop limits, and failure recovery.

iotclass.org

Retrieval practice

Recall check 3 of 4

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

Q3Where should a low-power sensor's RPL forwarding normally hand off toward an external cloud service?

AAt each low-power sensor running cloud BGP instead of RPL border routing
BAt an outbound default route that supposedly guarantees return reachability
CAt a border router between constrained RPL topology and the site network
DInside the radio driver where OSPF supposedly replaces link acknowledgements
Show answer

Answer: C The border router is the evidence boundary between the RPL domain and site routing.

iotclass.org

Retrieval practice

Recall check 4 of 4

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

Q4A router has a route entry, but cannot resolve the selected next hop. What is the safe forwarding review?

AForward toward an unresolved link address merely because a route exists.
BSend the packet back to its previous router without a loop-limit check.
CTreat the route entry alone as proof of application delivery to the destination.
DCheck loop limit and neighbor resolution; try valid alternate or record drop.
Show answer

Answer: D A forwarding decision needs route selection, usable neighbor resolution, loop protection, and a defined failure outcome.

iotclass.org

Print reference

Answers

Answer key.

  1. C · The routing evidence record should make the selected route visible.
  2. D · Under the hood, IoT routing evidence must connect forwarding mechanics with constrained-network behavior: parent choice, route freshness, loop limits, and failure recovery.
  3. C · The border router is the evidence boundary between the RPL domain and site routing.
  4. D · A forwarding decision needs route selection, usable neighbor resolution, loop protection, and a defined failure outcome.
iotclass.org

Print reference

Activity 1 answer

Model answer.

Work it out: 10.42.18.0/24 wins because it is the longest matching prefix. After its removal, 10.42.0.0/16 wins. The default 0.0.0.0/0 remains less specific than either route.

iotclass.org

Print reference

Activity 2 answer

Model answer.

Draw it: The sketch sends the sensor toward an available alternative parent and onward to the gateway. Keep parent and route state before and after the change, packet delivery or loss and timing, loop-limit behavior, and a checked return path.

iotclass.org