Documente Academic
Documente Profesional
Documente Cultură
Mitrabh Shukla
National IP Manager
Agenda
What is a Link State Protocol?
How Does OSPF Work?
How Do I Scale OSPF?
What Are Some Tips for Deployment?
How Do I Configure OSPF?
How Do I Verify OSPF ?
Zs Link State
Qs Link State
Z
X
Xs Link State
For internal use
4
Nokia Siemens Networks
A
B
C
Q
Z
X
2
13
13
Topology Information Is
Kept in a Database
Separate from the Routing
Table
OSPF Benefits
Uses metricspath cost
Support for CIDR, VLSM, authentication, multipath, and IP
unnumbered
Relatively low, steady state bandwidth requirements
OSPF History
Development began 1987 by IETF
OSPFv2 established in 1991 with RFC 1247
Goala link state protocol more efficient and scaleable than
RIP
Latest revision is RFC 2328 April 1998
Agenda
What is a Link State Protocol?
How Does OSPF Work?
How Do I Scale OSPF?
What are some tips for Deployment?
How do I configure OSPF?
How do I verify OSPF ?
RID B
Hello, Im B
Hello, Im A
Adjacency States
Sample Log showing adjacency process
P1R1(config-router)#log-adjacency-changes detail
6d04h: %OSPF-5-ADJCHG: Process 100, Nbr 10.131.63.251 on
FastEthernet0/0 from DOWN to INIT, Received Hello
6d04h: %OSPF-5-ADJCHG: Process 100, Nbr 10.131.63.251 on
FastEthernet0/0 from INIT to 2WAY, 2-Way Received
6d04h: %OSPF-5-ADJCHG: Process 100, Nbr 10.131.63.251 on
FastEthernet0/0 from 2WAY to EXSTART, AdjOK?
6d04h: %OSPF-5-ADJCHG: Process 100, Nbr 10.131.63.251 on
FastEthernet0/0 from EXSTART to EXCHANGE, Negotiation Done
6d04h: %OSPF-5-ADJCHG: Process 100, Nbr 10.131.63.251 on
FastEthernet0/0 from EXCHANGE to LOADING, Exchange Done
6d04h: %OSPF-5-ADJCHG: Process 100, Nbr 10.131.63.251 on
FastEthernet0/0 from LOADING to FULL, Loading Done
Animated
MPLS / Mitrabh Shukla
Actual Network
10
128.213.0.0
0
10
10
128.213.0.0
10
192.213.11.0
10
10
5
222.211.10.0
For internal use
13
Nokia Siemens Networks
192.213.11.0
222.211.10.0
Router 2, Area 1
Router 1, Area 1
LSA
ACK
Every router in an
area hears a specific
link LSA
Each router computes
shortest path routing
table
Dijkstra Algorithm
Routing Table
Updated
Routing Table
OSPF Areas
Area is a group of contiguous
hosts and networks
Each area has a
topology database
Area 13
Area 10
Area 12
RIP/RIPv2 World
Virtual Links
For internal use
15
Nokia Siemens Networks
Area 11
AREA 10
AREA 0
Area 13
Area 10
Area 12
Area 0
Between areas
RIP/RIPv2
Network
Area 11
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
MPLS / Mitrabh Shukla
External (type 7)
ASBR IR
(only in NSSA)
ABR
Area 0
External (type 5)
ASBR IR
ABR
ASBR
DR
Area 11
RIP Network
ASBR
RIP Network
For internal use
21
Nokia Siemens Networks
Animated
Multi-Access Media
BDR
BDR
For internal use
22
Nokia Siemens Networks
DR
DR
MPLS / Mitrabh Shukla
Agenda
What is a Link State Protocol?
How Does OSPF Work?
How Do I Scale OSPF?
What Are Some Tips for Deployment?
How Do I Configure OSPF?
How Do I Verify OSPF ?
Using Areas
Area
Border
Router
Area 2
Area 3
Area 0
Internal
Backbone
Router
Router
Area 4
Area 1
Internet
Autonomous
System (AS)
Border Router
MPLS / Mitrabh Shukla
External
X.X.X.1
ASBR
Backbone Area 0
x.x.x.1
2.x.x.x
3.x.x.x
x.x.x.1
1.x.x.x
2.x.x.x
x.x.x.1
1.x.x.x
3.x.x.x
3.3.1.0
2.2.1.0
1.1.1.0
2.2.4.0
1.1.4.0
3.3.4.0
Token
Ring
Token
Ring
Token
Ring
Token
Ring
Token
Ring
Token
Ring
1.1.3.0
1.1.4.0
2.2.3.0
2.2.4.0
3.3.3.0
3.3.4.0
External
X.X.X.1
ASBR
Backbone Area 0
Default
2.x.x.x
3.x.x.x
x.x.x.1
1.x.x.x
2.x.x.x
x.x.x.1
1.x.x.x
3.x.x.x
3.3.1.0
2.2.1.0
1.1.1.0
2.2.4.0
1.1.4.0
3.3.4.0
Token
Ring
Token
Ring
Token
Ring
Token
Ring
Token
Ring
Token
Ring
1.1.3.0
1.1.4.0
2.2.3.0
2.2.4.0
3.3.3.0
3.3.4.0
External
X.X.X.1
ASBR
Backbone Area 0
area x stub no-summary
Default
area x stub
x.x.x.1
1.x.x.x
2.x.x.x
x.x.x.1
1.x.x.x
3.x.x.x
3.3.1.0
2.2.1.0
1.1.1.0
2.2.4.0
1.1.4.0
3.3.4.0
Token
Ring
Token
Ring
Token
Ring
Token
Ring
Token
Ring
Token
Ring
1.1.3.0
1.1.4.0
2.2.3.0
2.2.4.0
3.3.3.0
3.3.4.0
External
X.X.X.1
ASBR
Backbone Area 0
x.x.x.2
Default
x.x.x.1
x.x.x.2
1.x.x.x
3.x.x.x
Default
2.x.x.x
3.x.x.x
Default must be
manually configured
Default
x.x.x.1
x.x.x.2
1.x.x.x
2.x.x.x
1.1.4.0
x.x.x.2
Token
Ring
Token
Ring
1.1.3.0
1.1.4.0
External
X.X.X.2
3.3.1.0
2.2.1.0
1.1.1.0
LSA Type
2.2.4.0
3.3.4.0
Token
Ring
Token
Ring
Token
Ring
Token
Ring
2.2.3.0
2.2.4.0
3.3.3.0
3.3.4.0
Summarization
Route summarization is the consolidation of advertised
addresses
Instead of advertising many specific prefixes, advertise only one
summary prefix
Area range command on ABR
to summarize type 3 LSAs
Summary-address command on ASBR
to summarize type 5 LSAs
LSDB is smaller and more stable
Drawback is possible suboptimal routing
<subnet-mask>
1.1.1.0
1.1.2.0
1.1.3.0
1.1.4.0
Backbone
3.3.1.0
3.3.2.0
3.3.3.0
3.3.4.0
Area 0
1.1.4.0
1.1.2.0
Token
Ring
3.3.4.0
2.2.1.0
Token
Ring
3.3.1.0
1.1.1.0
2.2.1.0
2.2.2.0
2.2.3.0
Token
Ring
Token
Ring
1.1.3.0
2.2.3.0
Token
Ring
2.2.2.0
Token
Ring
3.3.3.0
3.3.4.0
Backbone
1.0.0.0
3.0.0.0
Area 0
3.3.1.0
1.1.1.0
2.0.0.0
3.3.4.0
1.1.4.0
1.1.2.0
2.2.1.0
Token
Ring
Token
Ring
Token
Ring
Token
Ring
1.1.3.0
2.2.3.0
Token
Ring
3.3.3.0
Token
Ring
2.2.2.0
3.3.4.0
Area 0
ABR1
ABR2
R1
R2
11.1/16
Cost to Range 1:
Via ABR1: 30 (R1-R3-R5)
Via ABR2: 60 (R2-R4-R5)
Cost to Range 2:
Via ABR1: 60 (R1-R3-R6)
Via ABR2: 30 (R2-R4-R6)
For internal use
35
Nokia Siemens Networks
10
10
11.1.1/24
Area 10
R3
R4
20
20
50
11.1.2/24
11.1.129/24
R5
Range 1
50
R6
11.1.130/24
Range 2
Addressing
Assign contiguous ranges of subnets per area to facilitate
summarization
Area 0
network 192.117.49.0
range 255.255.255.0
Area 3
Area 1
Area 2
network 131.108.0.0
network 131.108.0.0
network 131.108.0.0
subnets 49-63
subnets 17-31
subnets 33-47
range 255.255.240.0
range 255.255.240.0
range 255.255.240.0
Agenda
What is a Link State Protocol?
How Does OSPF Work?
How Do I Scale OSPF?
What Are Some Tips for Deployment?
How do I configure OSPF?
How do I verify OSPF ?
Brazil
OSPF 1
OSPF 1
BGP 1
BGP 1
IP Backbone
OSPF 1
OSPF 1
OSPF 1
BGP 1
USA
Japan
OSPF 1
BGP 1
France
For internal use
38
Nokia Siemens Networks
BGP 1
BGP 1
OSPF 1
BGP 1
Germany
Agenda
What is a Link State Protocol?
How Does OSPF Work?
How Do I Scale OSPF?
What Are Some Tips for Deployment?
How Do I Configure OSPF?
How Do I Verify OSPF ?
Not recommended
Router Sub-commands
NETWORK <n.n.n.n> <mask> AREA <area-id>
AREA <area-id> STUB {no-summary}
AREA <area-id> AUTHENTICATION
AREA <area-id> DEFAULT_COST <cost>
AREA <area-id> VIRTUAL-LINK <router-id>...
AREA <area-id> RANGE <address mask>
AREA 10
AREA 0
on router 2.2.2.2
area 10 virtual-link 1.1.1.1
For internal use
47
Nokia Siemens Networks
Interface Subcommands
IP OSPF COST <cost>
IP OSPF PRIORITY <8-bit-number>
IP OSPF HELLO-INTERVAL <number-of-seconds>
IP OSPF DEAD-INTERVAL <number-of-seconds>
IP OSPF AUTHENTICATION-KEY <8-bytes-of-password>
Agenda
What is a Link State Protocol?
How Does OSPF Work?
How Do I Scale OSPF?
What Are Some Tips for Deployment?
How Do I Configure OSPF?
How Do I Verify OSPF ?
Verify Configuration
P1R1#show ip protocols
Routing Protocol is "ospf 100"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 10.131.31.251
It is an area border router
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
10.131.31.224 0.0.0.3 area 0
10.131.31.228 0.0.0.3 area 110
10.131.31.240 0.0.0.3 area 0
10.131.31.251 0.0.0.0 area 0
10.131.255.224 0.0.0.3 area 0
Passive Interface(s):
Ethernet2/0
Ethernet3/0
Loopback0
Routing Information Sources:
Gateway
Distance
Last Update
10.131.31.251
110
00:00:13
Distance: (default is 110)
For internal use
50
Nokia Siemens Networks
Pri
1
1
State
FULL/DR
FULL/DR
Dead Time
Address
00:00:37 10.131.31.226
00:00:31 10.131.31.230
Interface
E1/0
E0/0
show ip ospf (1 of 2)
P1R1#sh ip ospf
Routing Process "ospf 100" with ID 10.131.31.251
Supports only single TOS(TOS0) routes
Supports opaque LSA
It is an area border router
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
External flood list length 0
show ip ospf (2 of 2)
Area BACKBONE(0)
Number of interfaces in this area is 5
Area has no authentication
SPF algorithm executed 5 times
Area ranges are
Number of LSA 27. Checksum Sum 0x0D12B3
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 14
Flood list length 0
Area 110
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 4 times
Area ranges are
Number of LSA 38. Checksum Sum 0x126275
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
For internal use
56
Nokia Siemens Networks
===========================snip===============================
===========================snip==============================
Link ID
10.131.31.226
Link ID
10.131.31.228
10.131.31.228
Seq#
Checksum
0x8000005F 0x0040D4
===========================snip==============================
Link ID
10.131.31.252
10.131.63.252
Chapter Summary
You should now be able to:
Describe the functional characteristics of OSPF
Discuss OSPF scalability practices
Configure basic OSPF routing
Configure OSPF areas
Verify OSPF functionality
0
0
0
0
0, SPF 5
Area 0, SPF 5
Area 0, SPF 5
Area 110, SPF 4