Академический Документы
Профессиональный Документы
Культура Документы
V2.1
Outline
Through learning this course, you will:
Master computing methods of OSPF routing
protocol
Master advanced applications of OSPF routing
protocol
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
OSPF Overview
OSPF Advantages
No route loop
Adapt to large-scale network
High convergence rate of route
Support area allocation
Support equivalent route
Support verification
Support hierarchic management
Transmit protocol messages in multicast address
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Definition:
32-bit binary to identify each router on OSPF network.
Selection method:
The IP address of the first interface that is activated is selected. If
multiple interfaces are activated, the minimum IP address of the router
is selected.
If loopback interface is configured on the router, router ID is the
minimum IP address of all loopback interfaces, in spite of IP address of
other physical interfaces or even when they are activated.
Hi,
Features:
Hi,I Iam
amrouter
routerAA
and
andmy
myname
nameisis
192.132.1.3.
Globally unique;
192.132.1.3.
Once selected, it cannot be changed unless OSPF progress is
restarted.
ZXR10# clear ip ospf
Interface
Contains link state of all routers on the network and indicates the topology
structure of the whole network.
Neighboring Routers
Adjacency
Route table
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Finding Neighbors
Selecting DR or BDR
Forming Adjacency
Updating LSA
Computing Optimal Route
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Neighborhood
D
Hello
afadjfjorqpoeru
39547439070713
Hello
Router ID
Hello/dead intervals
Neighbors
Area-ID
Router priority
DR IP address
BDR IP address
Authentication password
Stub area flag
NeighborhoodHello Message
Lo: 10.75.0.2
10.75.32.2/30
Int1
B
10.75.32.1/30
Int1
RB Neighbors List
RA Neighbors List
10.75.0.1, int1,
10.75.0.1,
int1 ,2-way
init
Contents
OSPF Overview
OSPF Concept
Finding Neighbors
Selecting DR or BDR
Forming Adjacency
Updating LSA
Computing Optimal Route
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Neighbor,
Neighbor,
receive
receivemy
my
LSA.
LSA.
DR
BDR
P=2
DR
BDR
Hello
P=1
P=1
P=0
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Finding Neighbors
Selecting DR or BDR
Forming Adjacency
Updating LSA
Computing Optimal Route
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
10.75.32.1/30
Int1
Lo: 10.75.0.2
10.75.32.2/30
DR Int1
B
RB Neighbors List
RA Neighbors List
10.75.0.1,
10.75.0.1,int1,
int1,
10.75.0.2,
int1Exchange
,Exstart
2-way
afadjfjorqpoeru
39547439070713
DBD
10.75.0.1,
10.75.0.1,
int1,
int1,
10.75.0.1,
int1Exchange
,2-way
init
Exstart
DR, I will initiate interaction of LSA and I am the master sender (MS=1).
No, I am the master sender, because I have higher router ID.
Exchange State
afadjfjorqpoeru
39547439070713
DBD
afadjfjorqpoeru
39547439070713
DBD
afadjfjorqpoeru
39547439070713
DBD
10.75.32.1/30
Int1
lo 10.75.0.2
10.75.32.2/30
DR Int1
B
RB Neighbors List
RA Neighbors List
10.75.0.2,
10.75.0.2,
int1,
int1,
Loading
Full
10.75.0.2,
int1,
Exchange
10.75.0.1,
int1
, init
afadjfjorqpoeru
39547439070713
LSR
10.75.0.1,
10.75.0.1,
10.75.0.1,
int1,
int1,
int1,
Exchange
Loading
Full
10.75.0.1,
int1
, init
Loading State
LSU
afadjfjorqpoeru
39547439070713
LSAck
Received, thanks!
Full State
My LSDB is complete. No query is needed.
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Finding Neighbors
Selecting DR or BDR
Forming Adjacency
Updating LSA
Computing Optimal Route
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
1 LSU
A
2
B
LSU
2
LSU
DR
1 LSU
A
3
LSU
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Finding Neighbors
Selecting DR or BDR
Forming Adjacency
Updating LSA
Computing Optimal Route
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
RTB
LSDB
1
2
LSA of RTA
A
2
C
3
C
3
C
3
(2) LSDB of each router (3) Cum rights digraph created by LSDB
(1) Network
topology structure
LSA of RTD
RTD
LSA of RTC
LSA of RTB
RTC
C
3
(4) Each router computes the minimal spanning tree with itself as the root node.
10.2.2.0/24
Cost=1
Topology Table
Net
Cost
10.2.2.0
2
10.3.3.0
3
Cost=5
10.3.3.0/24
Cost=1
Cost=5
Topology Table
Net
Cost
10.1.1.0
10
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
OSPF
OSPF
OSPF
OSPF
Area 1
Area 2
Autonomous system
Rules for allocating areas:
Each network segment must belong to an area, that is, each interface that runs OSPF protocol must be designated with an
area;
Each area is identified by area ID, which is an integer ranging from 0 to 32;
Non-backbone areas (not area 0) must be connected to backbone area (virtual link is not suggested).
Backbone area 0
Area 2
Internal router
External AS
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Types of LSA
Types of LSA
Initiator
Transmission
Range
Described Object
LSA1:
Router LSA
LSA2:
Network LSA
DR and BDR
LSA3:
Network Summary
LSA
ABR
Among areas
LSA4:
ASBR Summary
LSA
ABR
Among areas
LSA5:
Autonomous
system external
LSA
ASBR
Among areas
Types of LSA
Area 1
Area 0
DR
External
Network
Router
ABR
Summary
ASBR
External
AS
Area 50
Area 0
ABR1
Internal
ABR2
BBone
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru
39547439070713
Type 1
Type 3
Type 3
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru
39547439070713
Type 4
Type 5
afadjfjorqpoeru
39547439070713
Type 5
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Stub Area
Route Summarization
Area 1
Area 1
External route
(non-OSPF route)
Area 1
Area 0
RIP
Types of Areas
Stub
Area 0
Totally Stub
RIP
Area 50
2.1.2.0
Area 0
ABR
ABR
1.1.1.0
RC route table
1.1.1.0
1.1.1.0 int1
int1 ospf
ospf
1.1.2.0
int1
ospf
1.1.2.0 int1 ospf
1.1.3.0
1.1.3.0 int1
int1 ospf
ospf
2.1.1.0
int1
direct
2.1.1.0 int1 direct
2.1.2.0
2.1.2.0 int2
int2 direct
direct
3.1.1.0
3.1.1.0 int1
int1 ospf
ospf
3.1.2.0
int1
ospf
3.1.2.0 int1 ospf
4.1.1.0
4.1.1.0 int1
int1 ospf
ospf
4.1.2.0
int1
ospf
4.1.2.0 int1 ospf
2.1.1.0
Area 1
RD route table
1.1.1.0
1.1.1.0 int1
int1 direct
direct
1.1.2.0
int1
ospf
1.1.2.0 int1 ospf
1.1.3.0
1.1.3.0 int1
int1 ospf
ospf
2.1.1.0
int2
direct
2.1.1.0 int2 direct
2.1.2.0
2.1.2.0 int2
int2 ospf
ospf
3.1.1.0
3.1.1.0 int1
int1 ospf
ospf
3.1.2.0
int1
ospf
3.1.2.0 int1 ospf
4.1.1.0
4.1.1.0 int1
int1 ospf
ospf
4.1.2.0
int1
ospf
4.1.2.0 int1 ospf
A
ASBR
1.1.2.0
1.1.3.0
B
3.1.1.0
F
3.1.2.0
RE route table
1.1.1.0
1.1.1.0 int1
int1 ospf
ospf
1.1.2.0
1.1.2.0 int1
int1 ospf
ospf
1.1.3.0
int1
direct
1.1.3.0 int1 direct
2.1.1.0
2.1.1.0 int1
int1 ospf
ospf
2.1.2.0
int1
ospf
2.1.2.0 int1 ospf
3.1.1.0
3.1.1.0 int2
int2 direct
direct
3.1.2.0
3.1.2.0 int2
int2 ospf
ospf
4.1.1.0
int1
ospf
4.1.1.0 int1 ospf
4.1.2.0
4.1.2.0 int1
int1 ospf
ospf
RF route table
1.1.1.0
1.1.1.0 int1
int1 ospf
ospf
1.1.2.0
1.1.2.0 int1
int1 ospf
ospf
1.1.3.0
1.1.3.0 int1
int1 ospf
ospf
2.1.1.0
int1
ospf
2.1.1.0 int1 ospf
2.1.2.0
2.1.2.0 int1
int1 ospf
ospf
3.1.1.0
int1
direct
3.1.1.0 int1 direct
3.1.2.0
3.1.2.0 int2
int2 direct
direct
4.1.1.0
4.1.1.0 int1
int1 ospf
ospf
4.1.2.0
int1
ospf
4.1.2.0 int1 ospf
Area 50Stub
Internal
afadjfjorqpoeru
39547439070713
Summary
ABR1
ASBR
afadjfjorqpoeru
39547439070713
Summary
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru
39547439070713
Default
External
Area 0
BBone
afadjfjorqpoeru
39547439070713
Summary
afadjfjorqpoeru
39547439070713
External
ABR2
Internal
afadjfjorqpoeru
39547439070713
Default
afadjfjorqpoeru
39547439070713
Default
RIP
Area 50Stub
2.1.2.0
Area 0
ABR
ABR
1.1.1.0
RC route table
2.1.1.0
2.1.1.0 int1
int1 direct
direct
2.1.2.0
int2
direct
2.1.2.0 int2 direct
4.1.1.0
4.1.1.0 int1
int1 ospf
ospf
4.1.2.0
4.1.2.0 int1
int1 ospf
ospf
0.0.0.0
int1
ospf
0.0.0.0 int1 ospf
2.1.1.0
RD route table
1.1.1.0
1.1.1.0 int1
int1 direct
direct
1.1.2.0
int1
ospf
1.1.2.0 int1 ospf
1.1.3.0
1.1.3.0 int1
int1 ospf
ospf
2.1.1.0
int2
direct
2.1.1.0 int2 direct
2.1.2.0
2.1.2.0 int2
int2 ospf
ospf
3.1.1.0
3.1.1.0 int1
int1 ospf
ospf
3.1.2.0
int1
ospf
3.1.2.0 int1 ospf
4.1.1.0
4.1.1.0 int1
int1 ospf
ospf
4.1.2.0
int1
ospf
4.1.2.0 int1 ospf
A
ASBR
1.1.2.0
1.1.3.0
B
3.1.1.0
F
3.1.2.0
RE route table
1.1.1.0
1.1.1.0 int1
int1 ospf
ospf
1.1.2.0
1.1.2.0 int1
int1 ospf
ospf
1.1.3.0
int1
direct
1.1.3.0 int1 direct
2.1.1.0
2.1.1.0 int1
int1 ospf
ospf
2.1.2.0
int1
ospf
2.1.2.0 int1 ospf
3.1.1.0
3.1.1.0 int2
int2 direct
direct
3.1.2.0
3.1.2.0 int2
int2 ospf
ospf
4.1.1.0
int1
ospf
4.1.1.0 int1 ospf
4.1.2.0
4.1.2.0 int1
int1 ospf
ospf
RF route table
3.1.1.0
3.1.1.0 int1
int1 direct
direct
3.1.2.0
int2
direct
3.1.2.0 int2 direct
0.0.0.0
0.0.0.0 int1
int1 ospf
ospf
Unique outlet
R4
X
External
AS
Only
one outlet
No ASBR within the area
No AREA 0 (Backbone)
No Virtual links
NSSA
Area 0
To Other Area
Type 5
R3
R4
Type 7
Type
7
RI
P
External
AS
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Stub Area
Route Summarization
Route Summarization
Area 1
A
ABR
Area 0
C
Summarizing route
255.255.252.0
255.255.252.0
255.255.252.0
255.255.252.0
255.255.252.0
255.255.252.0
Review
Questions