Professional Documents
Culture Documents
Routing Protocol PDF
Routing Protocol PDF
Introduction to Routing
Protocols
Session 2204
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 2
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 1
Agenda
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 3
MAC Address
48 Bit Hexadecimal (Base16) Unique Layer two address
1234.5678.9ABC
First 24 bits = Manufacture Code Second 24 bits = Specific interface,
assigned by IEEE assigned by Manufacture
FFFF.FFFF.FFFF
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 4
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 2
IP Addressing
32 Bits
Network Host
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 5
IP Subnetting, Mask
Network Host
IP
Address 172 16 0 0
Network Host
Default
Subnet 255 255 0 0
Mask
Network Subnet Host
8-bit
Subnet 255 255 255 0
Mask
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 3
IP Address Classes
Start 1 0 0 0
Class A: End 126 255 255 254
Mask 255 0 0 0
Start 128 0 0 0
Class B: End 192 255 255 254
Mask 255 255 0 0
Start 192 0 0 0
Class C: End 223 255 255 254
Mask 255 255 255 0
Class D: for multicast
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 7
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 2000, Cisco Systems, Inc. 8
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 4
Finding the IP Address
on the LAN
ARP = Address Resolution UNIX Host A
Protocol
Host and routers have pre
assigned MAC addresses 1111.1111.1111
1111.1111.1111 5555.5555.5555
5555.5555.5555
Street A Street H
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 5
Host Addresses
172.16.12.12/16 10.180.30.118/8
Forwarding Table
172 .16 12 . 12
Network Interface
255.255 0.0 172.16.0.0 E0
Network Host 10.0.0.0 E1
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 11
Subnet Addressing
172.16. 3 . 5
172.16.2.11/24
E0 E1 255.255.255.0
172. 16. 2 . 2
172.16.3.100/24
255.255.255.0
172.16.2.160/24 172.16.3.150/24
Forwarding Table
Network Interface
172 .16 2 160
172.16.2.0 E0
255.255 .255 .0
Network Subnet Host 172.16.3.0 E1
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 12
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 6
Discontiguous IP Subnet
A
Where Is 172
172.16.50.1
172.16.0.0? 255.255.255.0
192.168.1.4 .5
255.255.255.252 .13
B
.6
172.16
172.16.40.1
255.255.255.0 192.168.1.12
255.255.255.252
.9
192.168.1.8 .14
255.255.255.252 .10 172.16.60.1
255.255.255.0
Routing Protocols will by Default
Summarize Major Networks C
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 13
A
172.16.50.1
.5 255.255.255.0
172.16.1.4
255.255.255.252 .13
B
.6
172.16.40.1
255.255.255.0 172.16.1.12
255.255.255.252
.9
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 7
IPX Addressing
80 Bits
Network Node
32 Bits 48 Bits
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 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 8
Agenda
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 17
Convergence
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 18
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 9
Load Balancing
T1 T1
R2
N1 N2
R1 R4
T1 R3 T1
Load Balancing
256K 768K
R2
N1 N2
R1 512K R4
R3 T1
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 20
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 10
Holddown
I Will Ignore
Routes to X
While in
Holddown
x
Forwarding Loop:
A Routing Disagreement
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 22
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 11
Split Horizon
Do not send routing data
back in the direction from
which it came
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 23
Split Horizon
PVC
D 1 3 B
B
S0
PVC C
4 C
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 24
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 12
Split Horizon
PVC
D 1 3 B
S0
PVC
Router 1 4 C
Knows all networks but
Will only advertise D out of S0
Because it learned A,B,C from S0
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 25
Metrics (Cost)
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 13
Agenda
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 27
Forwarding Table
192.168.97.0 Ethernet0 C
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 28
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 14
Building the Forwarding Table
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 2000, Cisco Systems, Inc. 29
Routing Protocols
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 30
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 15
Routing Protocol Goals
IP RIP
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 16
RIPDistance Vector
Net A Net D
R1 R2 R3
Net B Net C
E0 S0 S0 S1 S0 E0
S 10.1.1.1 D 255.255.255.255
RIP V1
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 34
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 17
RIP Metric
1 Hop
Hops
Path A
R2
T1 T1
56k
R1 R3
Path B
0 Hops
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 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 2000, Cisco Systems, Inc. 36
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 18
Multicast Routing Updates
RIP V2
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 37
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 38
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 19
IPX RIP
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 39
IPX RIPTicks
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 40
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 20
IGRP
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 41
Administrative
weight T1
R2
Delay
Bandwidth T1
Reliability 56k
Load R1 R3
(K2 * BW) K
= ((K1 * BW + (256-load) + K3* delay)) * (reliability5 + K ))
4
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 42
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 21
How the IGRP Metrics Work
Delay Metric- D1 D2 D3
Based on
D1 + D2 + D3
Enhanced IGRP
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 22
Advanced Distance Vector
On Startup Routing Tables
Are Exchanged; Routing
A 27
Table Built Based on Best
B 12 Paths from Topology Table
A 1 Z C 35
B 13
C 20
A 27 Z
A Q 2 1 Q
B Z 13
Q Y 5 X
C X 13 B 12 Z
.. .. ..
Ys Table
A 5 Topology Table
B 3
C 3 X Construct neighbor tables
Xs Table
Construct topology tables
Compute routes
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 45
EIGRP Tables
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 23
Diffusing Update
Algorithm (DUAL)
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 47
IPX EIGRP
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 24
When to Use EIGRP
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 49
Zs Link State
Qs Link State
Topology Information Is
Z Kept in a Database Separate
from the Forwarding Table
A Q 2
B Z 13
Q Y C X 13
OSPF
X
Xs Link State IS-IS
NLSP
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 50
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 25
Link State Routing
Neighbor discovery
Constructing an LSA (Link State
Advertisement)
Distribute LSA
Compute routes using SPF
(Shortest Path First)
On network failure
New LSAs flooded
All routers recompute link state databases
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 51
OSPF
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 26
OSPF Areas and Rules
Area
Backbone area (0) Border
Router
must be present
All other areas Area 2 Area 3
must have
Area 0 Internal
connection Backbone
Router
to backbone Router
Do not partition
area (0) Autonomous
Internet
System (AS)
Border Router
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 53
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 27
IS-IS
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 56
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 28
BGP
BGP Basics
Peering
A C
AS 100 AS 101
B D
E
Runs over TCP AS 102
Path vector
protocol
Incremental update
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 58
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 29
Internal BGP (IBGP) Peering
AS 100
D
A
B
A
AS 100 AS 101
C
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 60
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 30
Policy Drives
BGP Requirements
AS 200 Static
Route
BGP
BGP
AS 300
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 61
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 31
Agenda
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 63
Static Routes
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 64
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 32
Administrative Distance
The router treats different routing protocols with a different preference
Route Source Default Distance
Connected Interface 0
Static Route 1
Enhanced IGRP Summary Route 5
External BGP 20
Internal Enhanced IGRP 90
IGRP 100
OSPF 110
IS-IS 115
RIP 120
EGP 140
External Enhanced IGRP 170
Internal BGP 200
Unknown, Discard Route 255
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 65
T1
172.16.3.2
3 172.16.1.0
ISDN
C15C0
172.16.3.1
3
ip route 172.16.1.0 255.255.255.0 172.16.3.1 140
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 33
Default Routes
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 68
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 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 2000, Cisco Systems, Inc. 69
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 70
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 35
Internet Routing Protocols
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 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 2000, Cisco Systems, Inc. 72
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 36
For Further Reference
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 74
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 37
Thank You!
Related sessions:
2208 Deploying IGRP/EIGRP
2205 Deploying OSPF
2209 Deploying BGP
2200 Advanced IP Routing
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 75
Introduction to Routing
Protocols
Session 2204
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 76
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 38
Please Complete Your
Evaluation Form
Session 2204
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 77
2204
1241_05_2000_c1 2000, Cisco Systems, Inc. 78
Copyright 1998, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr 39