Routing Protocols
Routing Protocols
Networking Fundamentals
Routing Protocols
Objectives
• Differentiate between nonroutable, routed, and
routing protocols
• Define Interior Gateway Protocols, Exterior Gateway
Protocols, distance-vector routing protocols, and
link-state routing protocols
• Explain the concepts of count-to-infinity, split
horizon, split horizon with poison reverse, and hold-
down timers
2
Objectives (continued)
• Describe, configure, and monitor the interior routing
protocol RIP
• Explain static routing and administrative distance
• Configure static routing and default routes
3
Nonroutable Protocols
• In the early days of networking, networks were small
collections of computers linked together
– For the purposes of sharing information and expensive
peripherals
• Early networks were sometimes configured as peer-
to-peer networks
– Computers communicate with and provide services to
their “peers”
– All communication occurs on the same network
segment
4
Nonroutable Protocols (continued)
5
Nonroutable Protocols (continued)
6
Routed Protocols
• Routed protocols
– Have packet headers that can contain Network layer
addresses
– Developed to support networks consisting of multiple
networks or subnetworks
• Protocols that can carry Network layer information
– Transmission Control Protocol/Internet Protocol
(TCP/IP)
– Internetwork Packet Exchange/Sequenced Packet
Exchange (IPX/SPX)
7
8
Routed Protocols (continued)
9
10
Routing Protocols
• Routing protocols
– Protocols used by routers to make path determination
choices and to share those choices with other routers
• Hop count
– The number of routers a packet must pass through to
reach a particular network
• Metric
– A value used to define the suitability of a particular
route
– Routers use metrics to determine which routes are
better than other routes
11
Routing Protocols (continued)
12
Routing Protocols (continued)
13
Routing Protocols (continued)
14
Routing Protocols (continued)
• Examples of IGPs
– Routing Information Protocol (RIP)
– Interior Gateway Routing Protocol (IGRP)
– Enhanced Interior Gateway Routing Protocol
(EIGRP)
– Open Shortest Path First (OSPF)
• Example of EGP
– Border Gateway Protocol (BGP)
15
Two Types of IGPs
16
Two Types of IGPs (continued)
17
Two Types of IGPs (continued)
18
Two Types of IGPs (continued)
21
Two Types of IGPs (continued)
24
Two Types of IGPs (continued)
25
Routing Information Protocol
• Routing Information Protocol (RIP)
– The easiest Interior Gateway Protocol to configure is
RIPv1
– A distance-vector routing protocol that broadcasts
entire routing tables to neighbors every 30 seconds
– RIP uses hop count as its sole metric
• RIP has a maximum hop count of 15
– As a result, RIP does not work in large
• internetworks
• RIP is capable of load balancing
RIP is susceptible to all the problems normally
associated with distance-vector routing protocols 26
Enabling RIP Routing
27
Enabling RIP Routing (continued)
28
Enabling RIP Routing (continued)
29
Enabling RIP Routing (continued)
30
Configuring RIP Routing for Each
Major Network
• network command
– Turns on RIP routing for a network
– An individual network command must be issued for
each separate network directly connected to the router
• show ip route command
– Displays a router’s routing table
• Administrative distance
– A value used to determine the reliability of the
information regarding a particular route
– Administrative distances range from 0–255
31
Configuring RIP Routing for Each
Major Network (continued)
32
Configuring RIP Routing for Each
Major Network (continued)
33
Show ip protocol and debug
ip rip Commands
• Commands used to monitor RIP
• A route is considered invalid if six consecutive
update intervals pass without an update from that
route
• Flush interval
– The time at which a route will be totally removed from
the routing table if no updates are received
• debug ip rip command
– Displays real-time rip updates being sent and received
and places very high processing demands on your
router, which could affect network performance 34
Show ip protocol and debug
ip rip Commands (continued)
35
36
Show ip protocol and debug
ip rip Commands (continued)
37
Show ip protocol and debug
ip rip Commands (continued)
38
Show ip protocol and debug
ip rip Commands (continued)
39
Interior Gateway Routing Protocol
43
Adding Static Routes (continued)
45
Adding Static Routes (continued)
46
Adding Static Routes (continued)
47
Summary
• Some protocols are designed to be used in small
networks without the need for Network layer
addressing
• The most common nonroutable protocol is
NetBEUI
• Other protocols were designed with the ability to
move between multiple networks via Network layer
addressing
• The most common routed protocol suite is TCP/IP
48
Summary (continued)
• Protocols must be available that can find the best
path throughout an internetwork and relay that
information to routers
• Routing protocols are classed in two major groups:
Interior Gateway Protocols and Exterior Gateway
Protocols
• Interior routing protocols are further divided into
distance-vector and link-state routing protocols
• These two types of Interior Gateway Protocols use
very different methods to determine the best path
in an internetwork
49
Summary (continued)
• Distance-vector protocols periodically broadcast
entire routing tables to neighbor routers
• Link-state protocols multicast link updates to
routers in their area upon startup and when
network topology changes
• Two common distance-vector IGPs discussed in
this chapter are the Routing Information Protocol
and the Interior Gateway Routing Protocol
• Static routes are used to conserve bandwidth and
lower memory and CPU load on a router while still
allowing for correct routing table creation
50
Thank You