Sub topic 18
EIGRP and DUAL: an advanced distance-vector design
This chapter assumes you know how distance-vector updates work, what split horizon does, and why count to infinity happens. It also assumes you know what an autonomous system (AS) is: a set of networks under one administrative control.
EIGRP in brief
EIGRP (Enhanced Interior Gateway Routing Protocol) began as a Cisco protocol. Its basic behavior is still distance-vector: routers trust what neighbors tell them and never see the full map. It differs from RIP in four ways:
- It sends updates only when something changes, and only the changed routes. It does not send periodic full tables.
- It uses hello packets to find neighbors, and it delivers updates reliably.
- Its default metric combines bandwidth and delay, not hop count.
- It uses the Diffusing Update Algorithm (DUAL) to guarantee loop-free paths.
How DUAL avoids loops
DUAL uses three terms:
- Reported distance (RD): the cost to a destination as a neighbor advertises it.
- Feasible distance (FD): the lowest total cost this router has computed to the destination.
- Successor: the neighbor that gives the FD. It is the next hop installed in the routing table.
A neighbor becomes a feasible successor (a pre-approved backup) only if it passes the feasibility condition: its RD must be lower than the current FD. A neighbor that is closer to the destination than you are cannot be routing through you, so using it cannot create a loop.
Suppose router A has FD 20 to a network through neighbor B.
| Neighbor | Reported distance | Passes (RD < 20)? | Role |
|---|---|---|---|
| B | 10 | Yes | Successor |
| C | 15 | Yes | Feasible successor |
| D | 25 | No | Not a backup |
If A loses B, it switches to C at once, with no waiting and no messages. D is not eligible even if its path is physically valid.
If no feasible successor exists, the route goes active. The router sends a query to its neighbors and waits for replies. The route returns to passive (usable) once all replies arrive.
Queries spread outward through the network. In a large network this can cause long delays when replies are slow. This is the known weakness of EIGRP, and it is why summarization and stub routers are common.
Where path-vector routing fits
EIGRP and RIP run inside one AS. The internet joins many ASes, and each one wants its own rules about which routes it accepts and prefers. A bare cost number cannot express those rules.
BGP (Border Gateway Protocol) solves this with path-vector routing. It is like distance-vector, but each advertisement carries the whole list of ASes the route has crossed, called the AS path. This gives two benefits:
- Loop prevention: a router rejects any route whose AS path already contains its own AS number. This needs no timers, hold-downs, or feasibility math.
- Policy: operators can choose routes by AS path, business relationships, and attributes, not only by lowest cost.
BGP runs over TCP port 179 and sends incremental updates.
Exercise
Router A has an FD of 30 to a network. Neighbor X reports a distance of 30. Neighbor Y reports 12. Which one can be a feasible successor, and why?
Show answer
Only Y. The feasibility condition requires the reported distance to be lower than the FD, and 12 < 30 while 30 is not less than 30. X could be routing through A, so using it risks a loop.
Exercise
Why does BGP not need split horizon or hold-down timers to avoid loops?
Show answer
Each route carries its AS path. A router discards any route whose path already includes its own AS number, so a loop is detected directly.