Professional Documents
Culture Documents
• IPv4
• Routing
Routing Basics
• Forwarding
• Some definitions
ISP/IXP Workshops
• Policy options
• Routing Protocols
IXP/IXP Workshops © 2000, Cisco Systems, Inc. 1 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 2
find path
forward packet, forward packet,
forward packet, forward packet...
1
Routing versus Forwarding IP Routing - finding the path
• Path derived from information received
• Routing = building from a routing protocol
maps and giving
directions • Several alternative paths may exist
best next hop stored in forwarding table
• Forwarding =
• Decisions are updated periodically or as
moving packets
topology changes (event driven)
between interfaces
according to the • Decisions are based on:
“directions” topology, policies and metrics (hop count,
filtering, delay, bandwidth, etc.)
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 7 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 8
R1 R2 R4 R1 R2 R4
2
IP route lookup: Longest IP route lookup: Longest
match routing match routing
• Based on destination IP packet • Based on destination IP packet
R3 R3
All 10/8 except All 10/8 except
Packet: Destination 10.1/16 Packet: Destination 10.1/16
IP address: 10.1.1.1 IP address: 10.1.1.1
R1 R2 R4 R1 R2 R4
R1 R2 R4 • Forwarding decisions:
destination address
10/8 -> R3 10.1/16
10.1/16 -> R4 Longest match, 16 bit netmask class of service (fair queuing, precedence, others)
20/8 -> R5
30/8 -> R6 local requirements (packet filtering)
…..
R2’s IP routing table • Can be aided by special hardware
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 15 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 16
3
Ingress Traffic Autonomous System (AS)
AS 100
• How packets get to your network and A
your customers’ networks
• Ingress traffic depends on:
what information you send and to whom • Collection of networks with same routing
policy
based on your addressing and AS’s
• Single routing protocol
based on others’ policy (what they accept
• Usually under single ownership, trust and
from you and what they do with it) administrative control
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 19 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 20
packet flow
• Neighbours - AS’s which directly exchange routing accept announce
information AS 1 announce routing flow
accept AS 2
• Announce - send routing information to a neighbour packet flow
red
red
• Traffic flow is always in the opposite Internet AS99
direction of the flow of routing green green
information
packet flow
filtering outgoing routing information AS99 uses red link for traffic going to the red AS
inhibits traffic flowing in and green link for traffic going to the green AS
To implement this policy for AS99:
filtering incoming routing information
• accept routes originating in the red AS on the red link
inhibits traffic flowing out
• accept all other routes on the green link
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 23 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 24
4
Routing policy with multiple
Routing policy limitations
AS’s
red AS 1
red AS 34
Internet
N1
AS22 AS99 AS16
green AS 8
green N16
packet flow For net N1 in AS1 to send traffic to net N16 in AS16:
• AS16 must originate and announce N16 to AS8.
For packets flowing toward AS 99:
• AS8 must accept N16 from AS16.
Unless AS 22 and all other intermediate AS’s co-
operate in pushing green traffic to the green link • AS8 must announce N16 to AS1 or AS34.
then some reasonable policies can not be • AS1 must accept N16 from AS8 or AS34.
implemented. For two-way packet flow, similar policies must exist for N1.
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 25 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 26
5
Why Do We Need an IGP? What Is an EGP?
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 35 ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 36
6
Default Administrative
Distances
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 255
ISP/IXP Workshops © 2000, Cisco Systems, Inc. www.cisco .com 37 38