A route lookup uses the shortest-path tree to choose the next hop toward a destination. For F, A forwards toward C.

highlighted = computed this step

Follow predecessors backward

For destination F, the recomputed path from A is A to C to D to F.

ACDF\text{A}\to\text{C}\to\text{D}\to\text{F}
Route lookup to FThe shortest-path tree is recomputed from the pinned topology and source.Route lookup to F - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Why the path is reversed

The predecessor chain reads backward as F to D to C to A. Reversing that chain gives the forwarding path from A.

FDCA\text{F}\to\text{D}\to\text{C}\to\text{A}
Route lookup to FThe shortest-path tree is recomputed from the pinned topology and source.Route lookup to F - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Only the next hop is installed

From A, the next hop toward F is C.

next hop=C\text{next hop}=\text{C}
Route lookup to FThe shortest-path tree is recomputed from the pinned topology and source.Route lookup to F - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Add the path weights

The route cost is A-C weight 2 plus C-D weight 3 plus D-F weight 5, totaling 10.

2+3+5=102+3+5=10
Route lookup to FThe shortest-path tree is recomputed from the pinned topology and source.Route lookup to F - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

The total cost

The total path cost to F is 10.

d(F)=10d(F)=10
Route lookup to FThe shortest-path tree is recomputed from the pinned topology and source.Route lookup to F - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Summary

Routing here is exact shortest-path arithmetic only; timing, throughput, and policy behavior are outside this model.

route selected by shortest path\text{route selected by shortest path}
Route lookup to FThe shortest-path tree is recomputed from the pinned topology and source.Route lookup to F - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A