Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Routing Problems
4-1
Copyright 2005 Juniper Networks, Inc.
www.juniper.net
Router A
lo0: 192.168.255.2/32
IGP
adjacencies
Router C
Router B
R-A can reach
192.168.255.1,
cost 0
Flooded
LSAs/LSPs
build linkstate
database
lo0: 192.168.255.3/32
OSPF Areas
Areas
Single AS can be divided into smaller groups called areas
Reduces the LSDB because LSA flooding is now
constrained to the area
Routers maintain a separate LSDB on a per-area basis
Each LSDB within an area still must be identical on all
routers
Backbone router
Any router with a link to area 0
ABRs
Routers that belong to more than one area are
called area border routers
Connect OSPF areas to the backbone area 0
ASBRs
Routers that inject routing information from outside
the OSPF domain are called AS boundary routers
2006 Juniper Networks, Inc. All rights reserved.
D
R
30
172.16.30.252
ge-0/0/0.0
2Way
10.250.240.32
area 0.0.0.5, opt 0x42, DR 172.16.30.254, BDR 172.16.30.253
Up 00:08:10
38
64
What Is IS-IS?
An IGP based on the SPF algorithm
Uses link-state information to make routing
decisions
IS-IS Concepts
IS-IS network is a single AS
IS-IS Areas
In IS-IS, links
separate
areas
L1
L1
L1/L2
L1
L1/L2
L2
L1
L1
L1/L2
L2
L1
10
OSPF Areas
In OSPF,
routers
separate areas
ABR
ABR
ABR
11
12
Level 2 Hello
L2
L1
L2
L1
L1/L2
L1
Level 1 Hello
13
DIS characteristics:
14
this command
OSPF routes to area border routers
OSPF routes to AS border routers
detailed output
external OSPF routes
OSPF instance
interarea OSPF routes
intraarea OSPF routes
logical router, or 'all
NH
so-0/1/2.0
. . .
15
DR ID
0.0.0.0
0.0.0.0
Level 2 DR
Passive
Point to Point
Point to Point
Point to Point
BDR ID
0.0.0.0
0.0.0.0
Nbrs
0
0
L1/L2 Metric
0/0
10/10
10/10
10/10
16
State
2Way
Full
Full
Full
Full
Full
Full
ID
10.250.240.32
10.250.240.8
10.250.240.35
10.250.240.12
10.250.240.11
10.250.240.9
10.250.240.10
L
2
2
2
2
State
Up
Up
Up
Up
Pri Dead
128
36
128
38
128
33
128
23
128
24
128
32
128
33
17
Clearing Adjacencies
Clearing adjacencies:
Use the clear ospf neighbor command to
clear OSPF adjacencies:
user@host> clear ospf neighbor 192.168.254.225
18
19
20
21
22
IGP Tracing
Trace your IGP to gain insight into what the
protocol is doing
A typical OSPF tracing configuration:
[edit protocols ospf]
user@host# show
traceoptions {
file ospf-trace;
flag error detail;
flag hello detail;
flag lsa-update detail;
}
23
What Is BGP?
BGP:
Is an interdomain routing protocol that
communicates prefix reachability
Is a path-vector protocol
Views the Internet as a collection of autonomous
systems
Supports CIDR
Exchanges routing information between peers
Is defined in RFC 1771
24
BGP Fundamentals
Each BGP update contains one path
advertisement and attributes
Many prefixes can share the same path
25
BGP connectivity:
OpenSent
OpenConfirm
Established
26
BGP Peering
BGP sessions are established between peers
BGP speakers
27
EBGP
EBGP
IBGP
IBGP
OSPF
OSPF
Customer AS 1
EBGP
IBGP
IBGP
No AS number;
uses default route
to the Internet
Customer 2
ISP-Y AS 3
28
Router A
Full-Mesh
Full-Mesh
IBGP
IBGP
Router C
lo0: 192.168.255.2/32
Router B
lo0: 192.168.255.3/32
AS 1
29
30
31
32
Index: 1
Established: 0
Local AS: 1
Flags: <Export Eval>
One peer defined,
session established
Local AS: 1
Flags: <Export Eval>
One peer defined,
session not
established
Peers: 2
External: 1
Internal: 1
Down peers: 1
Tot Paths Act Paths Suppressed
History Damp State
5
5
0
0
0
Flaps: 0
Pending
0
33
2:37 5/5/0
0
0
0
0
17:17 Idle
0 2/2/0
Connection
state
34
35
36
37
Preference: 170/-101
Nexthop: 10.0.18.2 via so-0/1/2.0, selected
State: <Active Ext>
Local AS:
1 Peer AS:
10
Age: 47:59
Task: BGP_10.10.0.18.2+1724
Announcement bits (3): 2-KRT 3-BGP.0.0.0.0+179 4-BGP_Sync_Any
AS path: 10 I
Localpref: 100
Router ID: 192.168.0.1
38
39
Hidden Routes (1 of 2)
200.0.0.3/2
4,
NH=10.0.16
.2
I dig
it!
Who is
10.0.16.2?
Tokyo
IBGP
lo0: 192.168.20.1
AS 1
Hong Kong
lo0: 192.168.16.1
EBGP
AS
10
San Jose
lo0: 192.168.0.1
200.0.0.3/2
4,
NH=10.0.16
.2
40
Hidden Routes (2 of 2)
BGP routes can also be hidden because of damping
Restore with clear bgp damping command
41
Tracing BGP
A typical BGP tracing configuration:
[edit protocols bgp group ext]
lab@Sao_Paulo# show
type external;
traceoptions {
file ebgp-trace;
flag open detail;
flag update detail;
}
peer-as 10;
neighbor 10.0.8.1;
neighbor 10.0.31.1 {
peer-as 2;
}
Sample output:
42
Policy Overview
Controls routing information transferred into
and out of the routing table
Can ignore or change incoming routing
information
Can suppress or change outgoing routing
information
43
44
Neighbors
Routes
Neighbors
Import
Routing
Table
Protocol
Export
Routes
Protocol
PFE
Forwarding
Table
2006 Juniper Networks, Inc. All rights reserved.
45
Route
Filters
Routes
Import
Policy
Export
Policy
Routing
Table
Neighbors
Routes
Protocol
Protocol
46
47
48
49
Scheduler Slips
The rpd process maintains an
internal scheduler
BGP
Routing
Tables
Routing
Protocol
Process
(rpd)
Scheduler
OSPF
PIM
Others
JUNOS Kernel
50
command
s
User Time
0.001
0
0.000
0.000
0.000
0
0
0
0
is the oinker on
this lab box
System Time
0.008
0.000
0.004
0.008
0.000
0.000
0.000
0.001
0.000
Longest Run
0.000
0.000
0.000
0.006
0.000
0.000
0.000
0.000
0.000
51
Route
presen
t and
active?
IGP
route
?
No
Yes
Yes
Investigat
e
forwardin
g faults
Suspec
t IGP
config
No
Adjacenc
ies up?
BGP
sessi
on
estab
.?
No
Suspec
t
config/
or IGP
Yes
Route
hidden
?
Yes
Suspect
policy/ or
IGP config
No
No
Suspec
t
remote
peer
policy
Suspect
policy/ or
IGP config
52
What is wrong?
200.0.0.0/24
AS 1
Hong
Kong
so-0/1/1
Tokyo
2
/
0
/
0
lo0: 192.168.20.1 22.1
/2 fe0
/
2
0
.
1
2
fe
21.1
lo0: 192.168.16.1
OSPF Area 0
192.168.16-19/24
200.0.2.0/24
2006 Juniper Networks, Inc. All rights reserved.
so-0/1/1
22.2
London
so29. 0/1/0
1
so
lo0: 192.168.28.1
-0/1
29. /0
2
IS-IS Level 2
Amsterdam
lo0: 192.168.24.1
192.168.24-27/2
200.0.5.0/24
53
Pending
0
State|
5/5/0
0/0/0
54
Release 6.x
Tokyo
lo0: 192.168.20.1
so-0/1/1
22.1
so-0/1/1
22.2
London
lo0: 192.168.28.1
What is wrong?
55
56