Professional Documents
Culture Documents
Slides Ospf Operations
Slides Ospf Operations
WEBINAR COURSE
1 v1.0
Overview
• OSPF Introduction
• Link State Routing Protocol
• OSPF Neighbor Discovery Process
• OSPF Topology
• OSPF Packets
2 v1.0
OSPF
3 v1.0
OSPF
• Designed for
o TCP/IP environment
o Fast convergence
o Route redistribution
o Variable length subnet masks (VLSM)
o Dis-contiguous subnets
o Incremental updates
o Route authentication
4 v1.0
Link State Routing Protocol
A 10 20
A
B 20 30 60
20 10 C 30 40
D 10 15 40
60
B 15
D
30 A
40 20
C 10
60
Every router in an OSPF 30
network maintain an 40
identical topology 15
database Router place itself at the 40 30
root of SPF tree when
calculate the best path
5 v1.0
Link State Routing Protocol
6 v1.0
Basic OSPF Operation
R2 R5
R4
R1 R3
R1 R3
R5
R2
R4
R4
R1 R3
R5
R2
7 v1.0
Link State Data Structure
• Neighbor Table
o List of all recognized neighboring router to whom routing information will be interchanged
• Topology Table
o Also called LSDB which maintain list of routers and their link information i.e network
destination, prefix length, link cost etc
• Routing Table
o Also called forwarding table contains only the best path to forward data traffic
8 v1.0
OSPF Metric
IOS: Junos:
router ospf/v3 <process-id>
auto-cost reference-bandwidth <Mbps> set protocols ospf/3 reference-bandwidth <Gbps>
9 v1.0
Router ID
10 v1.0
OSPF Neighbor
Discovery Process
11 v1.0
Neighbor States
+----+
|Down|
+----+
+-----+
|2-way| DR/BDR selected from the “neighbor” list
+-----+
+-------+
Master-Slave decision + DBD Seq#
|ExStart|
(higher router ID)
+-------+
+--------+
|Exchange| Exchange DBD (local LSDB)
+--------+
12 v1.0
OSPF Neighbor Discovery Process
192.168.1.1 192.168.1.2
192.168.1.1
13 v1.0
OSPF Neighbor Discovery Process
• All neighboring router with OSPF enabled receive the hello packet
• Checks contents of the hello message and if certain information match it reply
(Unicast) to that hello with sending its router ID in the neighbor list.
• This is OSPF Two-way State
14 v1.0
Discovering Network Information
• After creating 2-way neighbor relationship neighboring routers will start exchanging
network related information. At this stage they will decide who will send network
information first. Router with the highest router ID will start sending first. This stage is
called OSPF Exstart State
• Then they will start exchanging link state database. This stage is Exchange State
RID 192.168.1.1 RID 192.168.1.2
Hello, DR = 192.168.1.2
15 v1.0
Adding Network Information
16 v1.0
OSPF Topology
17 v1.0
OSPF Network Topology
Broadcast Multi-access
Point-to-Point
18 v1.0
Broadcast Multi-access Network
19 v1.0
Broadcast NW issues
• Number of adjacencies
o Number of Adj = n(n-1)/2;
20 v1.0
DR/BDR
• DR floods to others
o 224.0.0.5/FF02::5
21 v1.0
DR/BDR Election
IOS:
(config-if)#ip/ipv6 ospf priority <0-255>
o Configurable: Junos:
set protocols ospf/3 area <area-id> interface <id> priority <0-255>
22 v1.0
Point-to-Point Network
23 v1.0
Non Broadcast Multi-access Network
24 v1.0
OSPF Packets
25 v1.0
OSPF Packet Types
• OSPF use following five packet types to flow routing information between routers:
o 1: Hello
- Discover/maintain neighbors
o 2: Database Description
- Summarize database contents
o 3: Link State Request
- Database download
o 4: Link State Update
- Database update
o 5: Link State Ack
- Flooding acknowledgment
26 v1.0
Format of OSPF Packet
OSPF
Link Header IP Header Packet Link Trailer
Types
27 v1.0
Format of OSPF Packet Header Field
28 v1.0
APNIC Helpdesk Chat
29 v1.0
Acknowledgements
All images and icons used on these slides, that include an APNIC
logo, are licensed or owned by APNIC.
30 v1.0