Professional Documents
Culture Documents
Introduction To Routing Protocols PDF
Introduction To Routing Protocols PDF
1241_05_2000_c1
Introduction to Routing
Protocols
Session 2204
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Agenda
2204
1241_05_2000_c1
MAC Address
48 Bit Hexadecimal (Base16) Unique Layer two address
1234.5678.9ABC
First 24 bits = Manufacture Code
assigned by IEEE
FFFF.FFFF.FFFF
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
IP Addressing
32 Bits
Network
8 Bits
172
2204
1241_05_2000_c1
Host
8 Bits
8 Bits
16
8 Bits
. 122 . 204
5
IP Subnetting, Mask
Network
IP
Address
172
Host
16
Network
Default
Subnet
Mask
255
255
Network
8-bit
Subnet
Mask
255
255
0
Host
Subnet
Host
255
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
IP Address Classes
Start
Class A:
End
Mask
Class B:
Start
End
Mask
Start
Class C:
End
Mask
1
126
255
0
255
0
0
255
0
0
254
0
128
192
255
0
255
255
0
255
0
0
254
0
192
223
255
0
255
255
0
255
255
0
254
0
bitcount ---172.16.31.6/24
decimal ---- 172.16.31.6 255.255.255.0
hexadecimal 172.16.31.6 0xFFFFFF00
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
UNIX Host A
1111.1111.1111
1111.1111.1111
5555.5555.5555
5555.5555.5555
2222.2222.2222
2222.2222.2222
R1
3333.3333.3333
3333.3333.3333
4444.4444.4444
4444.4444.4444
R2
UNIX Host
Street A
Street H
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
10
Host Addresses
172. 16. 200.11
255.255. 0. 0
E0
10.1.1.1/8
E1
172. 16.3.10
255.255.0.0
10.250.8.11
255. 0. 0. 0
172.16.12.12/16
10.180.30.118/8
IP: 172.16.2.1/16
172 .16
Forwarding Table
Network
Interface
172.16.0.0
E0
12 . 12
255.255
0.0
Network
Host
2204
1241_05_2000_c1
IP: 10.6.24.2/8
10.0.0.0
E1
11
Subnet Addressing
172.16.2.11/24
E0
E1
172. 16. 2 . 2
255.255.255.0
172.16.3.100/24
172.16.2.160/24
172.16.3.150/24
IP: 172.16.3.1/24
IP: 172.16.2.1/24
172 .16
255.255
.255
Network
Subnet
2204
1241_05_2000_c1
172.16. 3 . 5
255.255.255.0
160
.0
Host
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Forwarding Table
Network
Interface
172.16.2.0
E0
172.16.3.0
E1
12
Discontiguous IP Subnet
A
Where Is
172.16.0.0?
.5
192.168.1.4
255.255.255.252
B
172.16
172.16.40.1
255.255.255.0
172
172.16.50.1
255.255.255.0
.13
.6
192.168.1.12
255.255.255.252
.9
192.168.1.8
255.255.255.252
.14
.10
2204
1241_05_2000_c1
172.16.60.1
255.255.255.0
13
172.16.1.4
255.255.255.252
B
172.16.40.1
255.255.255.0
172.16.50.1
255.255.255.0
.13
.6
172.16.1.12
255.255.255.252
.9
172.16.1.X With a
255.255.255.252 mask
Or /30 the 1 subnet
my be broken into 64
Subnets
172.16.1.8
255.255.255.252
.14
.10
172.16.60.1
255.255.255.0
Conserve IP Addresses
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
14
IPX Addressing
80 Bits
Network
Node
32 Bits
48 Bits
000C 15C0
IPX Network #
2204
1241_05_2000_c1
0077.0650.2328
IPX STATION #
Usulay same a MAC address
15
Address Configuration
Router (config-if) #
ip address ip-address subnet-mask
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
16
Agenda
2204
1241_05_2000_c1
17
Convergence
Time required for router to identify and
use an alternate path
Dependent on timer values and algorithm
Difficult to predict precisely
A,B,C
D,E,F
A,B,C
D,E,F
2
C
1
A,B,C
D,E,F
2204
1241_05_2000_c1
4
E
3 A,B,C
D,E,F
B,C
D,E,F
Routers 5 and 6
Have no knowledge of
the new Network A Yet
B,C
D,E,F
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
18
Load Balancing
T1
R2
T1
N1
N2
R4
R1
T1
R3
T1
19
Load Balancing
256K
R2
768K
N1
N2
R1
512K
R3
R4
T1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
20
10
Holddown
I Will Ignore
Routes to X
While in
Holddown
21
Forwarding Loop:
A Routing Disagreement
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
22
11
Split Horizon
2204
1241_05_2000_c1
23
Split Horizon
Frame Relay Multipoint Network
Router 2,3,4
All advertise their Respective
Ethernets to Router D, Router D
knows all networks
PVC
A
PVC
S0
PVC C
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
24
12
Split Horizon
Frame Relay Network
Router 1
Advertises network D
to routers 2,3,4
2
PVC
PVC
S0
PVC
Router 1
Knows all networks but
Will only advertise D out of S0
Because it learned A,B,C from S0
2204
1241_05_2000_c1
25
Metrics (Cost)
Numeric value used to choose
among paths
RIP/RIPv2 is hop count and ticks (IPX)
OSPF/ISIS is interface cost (bandwidth)
(E)IGRP is compound
BGP can be complicated
Path determination depends on metric
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
26
13
Agenda
2204
1241_05_2000_c1
27
Forwarding Table
One Forwarding Table per Router
One Forwarding Table per Network Protocol
Network #
Interface
Next Hop
Metric
Age
Source
Ethernet0 192.150.42.177
192.168.97.0
Ethernet0
2204
1241_05_2000_c1
[110/9936]
02:03:50
[120/3]
00:00:20
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
28
14
Directly connected
Routes that the router is attached to
Static
Routes are manually defined
Dynamic
Routes protocol are learned from a Protocol
2204
1241_05_2000_c1
29
Routing Protocols
I Know About:
Network A
Network B
Network C
Routing Update
I Know About:
Network X
Network Y
Network Z
B
C
X
Y
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
30
15
Easy to configure
Loop-free routing
Adapts to changes
easily and quickly
Fast convergence
Limited design
administration
Incorporate rapid
convergence
2204
1241_05_2000_c1
IP RIP
Routing Information
Protocol
Widely available
Hop count metric
Periodic update
Easy to implement
One of the first
available
2204
1241_05_2000_c1
RFC 1058
Simple = limited
Slow convergence
No VLSM
No discontiguous
subnets
Max 15 Hops
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
32
16
RIPDistance Vector
Net A
Net D
R1
E0
R2
Net B
S0
S0
Network Interface
A
E0
B
S0
C
S0
D
S0
R3
Net C
S1
Network Interface
B
S0
C
S1
A
S0
D
S1
S0
E0
Network Interface
C
S0
D
E0
B
S0
A
S0
33
S 10.1.1.1 D 255.255.255.255
RIP V1
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
34
17
RIP Metric
1 Hop
Path A
Hops
R2
T1
T1
56k
R1
R3
Path B
0 Hops
2204
1241_05_2000_c1
35
RIP V2
RFC 1723
Cisco IOS 11.1 support
Advertises masks
Variable length subnet masks
Route summarization
Routing updates use multicast
Authenticated updates using MD5
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
36
18
RIP V2
2204
1241_05_2000_c1
37
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
38
19
IPX RIP
Widely available
Hop count metric
Ticks (1/18 sec)
Periodic update
Easy to implement
Free on servers
Tied to SAP
protocol
Simple = limited
Slow convergence
No default route
Routing loops
Max 15 hops
2204
1241_05_2000_c1
39
IPX RIPTicks
Ticks are used
to determine
server timeout
IPXWAN
calculates for
its interfaces
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
40
20
IGRP
Interior Gateway
Routing Protocol
Cisco developed
Distance vector
Compound
metric
2204
1241_05_2000_c1
T1
R2
Delay
Bandwidth
T1
Reliability
Load
56k
R1
R3
(K2 * BW)
K
= ((K1 * BW + (256-load)
+ K3* delay)) * (reliability5 + K ))
4
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
42
21
D1
D2
D3
Bandwidth
Metric-Based
on 64 kbps
1.5 Mbps
64 kbps
1.5 Mbps
43
Enhanced IGRP
Extremely fast
convergence
VLSM support
Discontiguous
subnets
Arbitrary route
summarization
Supports prefix and
host routing
2204
1241_05_2000_c1
Best of DV and LS
Low overhead
Guaranteed
loop-free
Reliable, incremental
update-based
Multiprotocol:
IP, IPX, AppleTalk
Easy to configure
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
44
22
A
B
C
1
13
20
A
B
C
27
12
35
A
B
C
Q
Z
X
2
13
13
Ys Table
A
B
C
5
3
3
Xs Table
2204
1241_05_2000_c1
B
..
27
1
5
12
..
Z
Q
X
Z
..
Topology Table
EIGRP Tables
Topology table
Neighbor table
Information for
reliable transport
Routes passive
or active
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
46
23
Diffusing Update
Algorithm (DUAL)
DUAL is a loop-free routing algorithm
that performs a diffused computation
of a routing table
Uses a new routing algorithm
Achieves fast convergence
Network changes propagate only to affected
nodes (bounded updates)
47
IPX EIGRP
Automatic redistribution of routes
into RIP/SAP
Maximum network size is 224 hops
vs 15 for RIP
Incremental SAPs sent, reducing
bandwidth usage
All other benefits of EIGRP
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
48
24
49
A
B
C
Q
Z
X
2
13
13
OSPF
Xs Link State
IS-IS
NLSP
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
50
25
51
OSPF
Open Shortest
Path First
Link state or SPF
technology
Developed by OSPF
working group of
IETF (RFC 1253)
Designed expressly
for TCP/IP Internet
environment
2204
1241_05_2000_c1
Fast convergence
Variable-length
subnet masks
Discontiguous
subnets
No periodic updates
Route authentication
Delivered two years
after IGRP
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
52
26
Area 2
Area 3
Area 0
Backbone
Router
Backbone must
be contiguous
Area 4
Area 1
Do not partition
area (0)
Internet
2204
1241_05_2000_c1
Internal
Router
Autonomous
System (AS)
Border Router
53
VLSM
Fast convergence
Multivendor
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
54
27
IS-IS
IS = Intermediate
System
ISO 10589
Two types of areas:
Dual IS-IS
Integrated IS-IS
Level-2 backbone
Metric is 10 bits
wide
Default for
each level
All interfaces
default to 10
2204
1241_05_2000_c1
55
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
56
28
BGP
RFC 1771
Border Gateway
Protocol
Classless Inter
Domain Routing
Version 4 is current
(CIDR)
Exterior routing
Widely used for
protocol (vs.
Internet backbone
interior)
AS=Autonomous
Uses TCP for
systems
transport
2204
1241_05_2000_c1
57
BGP Basics
Peering
A
AS 100
AS 101
B
AS 102
Path vector
protocol
Incremental update
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
58
29
2204
1241_05_2000_c1
AS 100
AS 101
C
B
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
60
30
Policy Drives
BGP Requirements
Static
Route
AS 200
BGP
AS 100
BGP
BGP
AS 400
AS 300
61
Static
A
BB
C
ISP Runs BGP
Advertise Default
Network Via IGP Use a Static Route to
Provide Connectivity
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
62
31
Agenda
2204
1241_05_2000_c1
63
Static Routes
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
64
32
Administrative Distance
The router treats different routing protocols with a different preference
Route Source
Default Distance
Connected Interface
Static Route
Enhanced IGRP Summary Route
External BGP
Internal Enhanced IGRP
IGRP
OSPF
IS-IS
RIP
EGP
External Enhanced IGRP
Internal BGP
Unknown, Discard Route
2204
1241_05_2000_c1
0
1
5
20
90
100
110
115
120
140
170
200
255
65
ISDN
172.16.1.0
C15C0
172.16.3.1
3
ip route 172.16.1.0 255.255.255.0 172.16.3.1 140
ipx route C15C0 3.0000.0c15.3628 floating-static
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
66
33
Default Routes
Route used if no match is found in
forwarding table
Can be carried by routing protocols
Two models
Special network number:
0.0.0.0 (IP)
-2 (IPX)
Flagged in routing protocol
67
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
68
34
Default IP Subnet
172.16.0.0
Internet
s0
s1
172.16.1.0
Two defaults
For unknown networks
For unknown subnets
Controlled by ip classless
2204
1241_05_2000_c1
69
Traditional
Distance
Vector
Advanced
Distance
Vector
Scalability
Good
Low
Excellent
Outstanding
Bandwidth
Low
High
Low
Low
Memory
High
Low
Moderate
High
CPU
High
Low
Low
Moderate
Convergence
Fast
Slow
Fast
Moderate
Configuration
Moderate
Easy
Easy
Hard
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Path
Vector
70
35
Type
VLSM
Summ
RIP
DV
No
Interior
30 Sec
Hops
No
Auto
RIPv2
DV
No
Interior
30 Sec
Hops
Yes
Auto
IGRP
DV
Yes
Interior
90 Sec
Comp
No
Auto
EIGRP
Adv DV
Yes
Interior
Trig
Comp
Yes
Both
OSPF
LS
No
Interior
Trig
Cost
Yes
Man
IS-IS
LS
No
Interior
Trig
Cost
Yes
Auto
BGP
Path Vec
No
Exterior
Incr
N/A
Yes
Auto
2204
1241_05_2000_c1
71
Topology/Technology
Considerations
Routing and services overhead is usually
not a big deal when you have a lot of
bandwidth (i.e. LANs)
Protect WAN bandwidth using update-based
protocolsmore bandwidth and buffers for
application traffic
High densities of sub (interfaces) can cause
hot spots and router CPU overload
NBMA (Non-Broadcast Multi-Access)
technologies always require good
design practices
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
72
36
73
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
74
37
Thank You!
Related sessions:
2208 Deploying IGRP/EIGRP
2205 Deploying OSPF
2209 Deploying BGP
2200 Advanced IP Routing
2204
1241_05_2000_c1
75
Introduction to Routing
Protocols
Session 2204
2204
1241_05_2000_c1
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
76
38
2204
1241_05_2000_c1
77
2204
1241_05_2000_c1
78
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
39