Skip to Content
Network Warrior, 2nd Edition
book

Network Warrior, 2nd Edition

by Gary A. Donahue
May 2011
Intermediate to advanced
788 pages
23h 34m
English
O'Reilly Media, Inc.
Content preview from Network Warrior, 2nd Edition

Metrics and Protocol Types

The job of a routing protocol is to determine the best path to a destination network. The best route is chosen based on a protocol-specific set of rules. RIP uses the number of hops (routers) between networks, whereas OSPF calculates the cost of a route based on the bandwidth of all the links in the network. EIGRP uses links’ reported bandwidths and delays to determine the best path, by default, and you can configure it to use a few more factors as well. Each of these protocols determines a value for each route. This value is usually called a metric. Routes with lower metrics are more desirable.

Perhaps the simplest form of metric to understand is the one used by RIP: hop count. In RIP, the hop count is simply the number of routers between the router determining the path and the network to be reached.

Let’s consider an example. In Figure 10-4, there are two networks, labeled 10.0.0.0 and 20.0.0.0. Router A considers 20.0.0.0 to be available via two paths: one through Router B and one through Router E. The path from Router A through Router B traverses Routers B, C, and D, resulting in a hop count of three for this path. The path from Router A through Router E traverses routers E, F, G, and D, resulting in a hop count of four for this path.

Example of metrics in routing protocols

Figure 10-4. Example of metrics in routing protocols

Lower metrics always win, so Router A will consider the path through ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Networks, Fifth Edition

Computer Networks, Fifth Edition

David J. Wetherall, Andrew S. Tanenbaum

Publisher Resources

ISBN: 9781449307974Errata Page