Professional Documents
Culture Documents
Principle
Objectives
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
OSPF Overview
• 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
OSPF Concept (1)
Router ID
• Definition:
32-bit binary to identify each router on OSPF network.
• Selection method:
Select the IP address of the interface which is activated firstly. If multiple interfaces are activated, the minimum IP
address of the router is selected on the ZTE router.
If loopback interface is configured on the router, router ID will be the minimum IP address of all loopback interfaces, in
spite of IP addresses of other physical interfaces or even when they are activated.
• Features:
Globally unique;
Once selected, it cannot be changed unless OSPF progress is restarted.
• Interface
Interfaces run OSPF protocol;
transmit protocol messages periodically (Hello packet) to search and find neighbors.
• Designated Router (DR) and Backup Designated Router (BDR)
To reduce traffic of OSPF synchronous link state information, broadcast network can
be automatically represented as DR or BDR according to interface priority or router-id.
• Link State Database
Contains link state of all routers on the network and indicates the topology structure
of the whole network.
• Neighboring Routers
OSPF routers on the direct network become neighbors automatically after exchanging
hello packets.
• Adjacency
On the basis of neighbors, Link State Advertisement (LSA) is synchronized to form
adjacency.
OSPF Working Process (1)
Hello
Router ID
*
B A C
Hello/dead intervals
afadjfjorqpoeru
39547439070713 Neighbors
Area-ID
*
Router priority
Hello DR IP address
BDR IP address
Authentication password
*
Stub area flag
Interfaces run OSPF send periodically
*
Items with *which must be consistent to establish neighbors
Neighborhood—Hello Message
Process of Forming OSPF Neighbor List
Lo: 10.75.0.1 Lo: 10.75.0.2
10.75.32.1/30 10.75.32.2/30
A Int1 Int1 B
RA Neighbors List RB Neighbors List
10.75.0.2, int1 , 2-way 10.75.0.1,
10.75.0.1,int1,
int12-way
, init
Down State
Init State
Two-way
Neighbor,
receive my
LSA.
• On broadcast network or NBMA, resource will be wasted when each neighbor transmits LSA
(network bandwidth and CPU resources).
Functions of DR and BDR
DR BDR
DR BDR
Hello
afadjfjorqpoeru
39547439070713
Exstart
DBD DR, I will initiate interaction of LSA and I am the master sender (MS=1).
afadjfjorqpoeru
39547439070713
No, I am the master sender, because I have higher router ID. DBD
afadjfjorqpoeru
afadjfjorqpoeru
39547439070713
This is summary information about my LSDB. DBD
DBD This is summary information about my LSDB.
Forming Adjacency of OSPF (2)
lo : 10.75.0.1 lo : 10.75.0.2
10.75.32.1/30 10.75.32.2/30
A Int1 DR Int1 B
RA Neighbors List RB Neighbors List
10.75.0.2,
10.75.0.2,
10.75.0.2, int1,
int1,
int1,
10.75.0.1, Loading
,Full
Exchange
int1 init 10.75.0.1,
10.75.0.1,
int1,
10.75.0.1, int1,
Exchange
int1 , Full
init
afadjfjorqpoeru
39547439070713
Loading State
1 LSU
2
x A B
LSU
1 LSU
x
3
B
A
LSU
2 5 LSA of RTA 2 5
C
RTC LSA of RTB
3
3 LSA of RTC
D
LSA of RTD
RTD
(1) Network topology (2) LSDB of each router 3 Weighted digraph created by LSDB
structure
1 1 1 1
A B A B A B A B
2 2 2 2
C C C C
3 3 3 3
D D D D
(4) Each router computes the minimal spanning tree with itself as the root node.
Computing Minimal Spanning Tree
• Sum of COST from external ports in data forwarding direction
A Cost=5 B Cost=5 C
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Problems Large-Scale OSPF Network Meets
OSPF
Always computing route table, boring!
OSPF
Area 1 Area 2
Autonomous system
Backbone/
Internal Router
Internal Router
Internal Router
External AS
Contents
OSPF Overview
OSPF Concept
OSPF Working Process
Area Allocation
LSA Transmission among Multiple Areas
Route Optimization
Types of LSA
Transmission
Types of LSA Initiator Described Object
Range
LSA1: Each router in the Within the area Direct link state of the router
Router LSA area
Summary
Flooding of LSA among Multiple Area
Network
RIP
BBone
afadjfjorqpoeru afadjfjorqpoeru afadjfjorqpoeru
39547439070713 39547439070713 39547439070713
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
Constitution of OSPF Route
Route table
Not receive redistributed route Receive all LSA Not receive route outside areas
ASBR Summary LSA Network Summary LSA
Autonomous system external LSA Not receive redistributed route
ASBR Summary LSA
Autonomous system external LSA
Stub and Totally Stubby
4.1.1.0
Area (1)
4.1.2.0
RIP
Area 50 Area 0 Area 1
2.1.2.0 ABR ABR
1.1.1.0 1.1.2.0 1.1.3.0 3.1.1.0
C D A B E F
2.1.1.0 ASBR 3.1.2.0
RIP
Area 50—Stub Area 0 Area 1—Totally Stubby
afadjfjorqpoeru
39547439070713
afadjfjorqpoeru afadjfjorqpoeru
afadjfjorqpoeru 39547439070713
39547439070713 39547439070713
Summary
Summary Summary Default
RIP
Area 50—Stub Area 0 Area 1—Totally Stubby
2.1.2.0 ABR ABR
1.1.1.0 1.1.2.0 1.1.3.0 3.1.1.0
C D A B E F
2.1.1.0 ASBR 3.1.2.0
R3 R4
Unique outlet
X
External
AS
Area 2
Area 0
R3
To Other Area R4
Type 5 Type 7 Typ
e 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
Support Route Summarization
Summarized route
ABRs
Area 1
x
• Reduce the size of route table
• Limit the influence of topology changes in the local area
• Reduce the number of LSAs and save CPU resource
Route Summarization
A B C
Summarized route
Route table of router B
LSAs transmitted to route C
O 172.16.8.0 255.255.252.0
IA 172.16.8.0 255.255.248.0
O 172.16.12.0 255.255.252.0
O 172.16.16.0 255.255.252.0
O 172.16.20.0 255.255.252.0 IA 172.16.16.0 255.255.240.0
O 172.16.24.0 255.255.252.0
O 172.16.28.0 255.255.252.0
• How many types of LSA does OSPF have? Who creates theses types?