Professional Documents
Culture Documents
Ospf SR
Ospf SR
.
Ahmed_it@windowslive.com
-:
muslimtech.wordpress.com
-1
OSPF -2
Link-State Routing Protocols -3
OSPF Terminology -4
OSPF Metric -5
LSA Operation -6
OSPF Packet Types -7
OSPF Network Types -8
Neighbor Adjacencies -9
Configuring OSPF Routing -10
Configuration OSPF on NBMA Networks -11
-1
) Open Shortest Path First (OSPF Routing Protocol
) Internet Protocol (IP IGP IETF
1988 IGP ) Shortest Path First (SPF
OSPF ) Routing Information Protocol (RIP
SPF the Dijkstra algorithm
OSPF -2
Open Standard Protocol -1
OSPF is not a Cisco-proprietary protocol -2
Cisco
O routing table -3
OSPF is transport layer protocols-4
Layer 4
Administrative Distance = 110 -5
VLSM support -6
classless routing protocol
Load balancing-7
by default of 4 paths and maximum of 6 paths Traffic
Support Hierarchical design- 8
area Area Autonomous System
Update
Updates is sent on multicast (224.0.0.5 or 224.0.0.6 / unicast addresses) -9
periodic updates & triggered updates
triggered updates
refresh 30 min link-state refresh periodic updates
Topology table ( Link-state Data base)
IP protocol -10
AppleTalk IPX
Ospf Use SPF Algorithm To Choose The best Path to any Destination -11
OSPF is Classless Protocol (VLSM) -12
Ripv1 Route information Subnet mask
Area Area
Distance vector neighbor
Eigrp neighbor Routing table
SPF
T3
OSPF Terminology -4
OSPF topology
OSPF neighbor table = adjacency database-1
Neighbors ospf
#show ip ospf neighbors
Neighbor 60
OSPF topology table = OSPF topology database = LSDB-2
Destination
LSA LSDB
) (OSPF topology table
Area LSA LSDB
#show ip ospf database
Routing table (forwarding database)-3
Destination
]#show ip route [ospf
Area
: Transit area -1 IP Packets Area
Area Area Area0 Backbone Area
: Regular area or nonbackbone area-2
Area Regular area Transit area Area
Area
nonbackbone area Area 0
LSA Area
Area
:
Area Autonomous System
OSPF Metric -5
Metric OSPF EIGRP
cost Destination
1 65535 Cost
)cost= 10000 0000/bandwith in bps(in interface
Bit
Topology Table X
Destination )Ethernet (10MB
Cost=10 SPF Destination
Cost F-G-H Routing Table
: Cost Cost
Cost X&H X-C-E-H 10+10+10=30
: Cost 0
RA 128.5.2.1
RA-RB-RE-128.5.2.1
Cost=10+10+15=35
RA-RC-RD-128.5.2.1
Cost=5+15+64=84
Cost
Default Cost List
LSA Operation -6
LSA LSA Database
Sequencing, Checksums, and Aging
: Sequencing-1 32Bit 0x80000001 0x7fffffff LSA
sequence number LSA Sequence number
LSA Seq Num 0x7fffffff flush
Old LSA Age ) MaxAge
( Area LSA MaxAge
LSA Seq Num 0x80000001
:checksum-2 Checksum LSA Age
Checksum
0xA94E
0x8D53
0x523
0x94DD
Seq#
0x80000F29
0x80000F55
0x800011CA
0x80000AF4
:Version Number 2, 3 IPv6
:Type Packet
:Packet length Packet
:Router ID Router ID
Area 32Bit ipv4
-1 > (config-if)# router-id <ip address !!!!
loopback interface
-2 loopback ip address
!!!!!loopback interface
-3 ip physical interface
:Area ID Area packet
:Checksum Ospf Packet
:Authentication type clear Text MD5
:Authentication Authentication
:Data
:hello packet
:DBD packet LSDB Router_id
Point-to-point networks
Broadcast
Configuration Router Neighbors OSPF packets unicast
X.25, Frame Relay, and ATM :
A D,B,C,E
B A,D,C,E
C A,B,D,E
D A, B,C,E
E A,B,C,D
!!!!!
) Update(LSA
interface LSA DR
DR BDR
Hello Packet DR BDR Area
DR&BDR
-1 interface priority DR BDR
Priority
Priority 8-bit Range 0 255 interfaces Cisco
priority by Default=1 ip ospf priority interface
multi-access
(a priority 0 interface DR BDR
(b interface DR interfaces DR
DR interface Topology
-2 interfaces Default=1
Router ID DR BDR Router ID OSPF Packet Types
-3 DR&BDR Router Priority
DR&BDR!!!!
!! DR BDR
BDR
-4 BDR DR wait timer
RouterDeadInterval
Neighbor Adjacencies -9
OSPF
OSPF interface Ospf Hello Packet
Multicast 224.0.0.5
Neighbors OSPF
-1 area ID.
-2 hello & dead intervals.
-3 authentication password
-4 Stub area flag.
Exstart State Master Slave
DBD Packet
Master Router ID DR
BMA DR,BDR
Exchange State Master Master LSDB
Slave Slave LSDB Master
DBD Packet
LSAck DBD Packet Loading State
LSDB LSDB LSR
LSA
DR LSU Packet LSA LSA LSDB
Full State
: Full State Traffic
Full State LSDB
A Down
-1 A LSU Packet LSA IP Multicast 224.0.0.6
DR&BDR LSU LSAs
-2 Ack DR (Flooding LSU) LSU
DR 224.0.0.5
-3 LSU LSAck Packet DR
-4 B LSU
-5 LSU LSDB SPF
Configuring a Router ID
R ID Configuration
RID Loopback interface Physical interface
>(config-router)# router-id <ip address
loopback interface
(config)# int loopback 0
(config-if)# ip address ip mask
Router#clear ip ospf process
RID
: router priority
(config)# int e0/0
>(config-if)# ip ospf priority <no.
Cost
>1- (config-if)# ip ospf cost <no.
>2- (config-if)# bandwidth <no. in kbps
Show commands
:show ip protocols
OSPF :show ip route ospf
* Router#clear ip route
Routing Table
Router#clear ip route A.B.C.D
MD5 password
Router(config-if)#ip ospf message-digest-key key-id md5 key
255 1 :key-id
16 byte Alphanumeric :Key
Authentication
Clear txt
Router(config-if)# ip ospf authentication
MD5
Router(config-if)#ip ospf authentication message-digest
Authentication
Router(config-if)#ip ospf authentication null
Area
Router(config-router)# area area-id authentication [message-digest]
Auth
Null Type 0
Simple password Type 1
MD5 Type 2
Verifying MD5 Authentication
Neighbor table Neighbor
show ip ospf neighbor
Successful MD5 Authentication Example
Key
Configuration
DR Neighbors NBMA Configuration
Full-mesh topology
Topology
Subnet
Subnet
30 Sec
Hello Timer
( )Manual
RFC
Adjacency
:RFC or Cisco
Cisco
Configuration
Rembrandt's configuration.
interface Serial0
encapsulation frame-relay
ip address 172.16.2.1 255.255.255.0
frame-relay map ip 172.16.2.2 100
frame-realy map ip 172.16.2.3 300
frame-relay map ip 172.16.2.4 500
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
neighbor 172.16.2.2
neighbor 172.16.2.3
neighbor 172.16.2.4
DR DR Priority
DR Priority 10 172.16.2.1
Full-mesh topology
Topology
Subnet
Subnet
10 Sec
Hello Timer
( )Automatic
Cisco
Adjacency
:RFC or Cisco
Cisco
Configuration
Topology
Subnet
Subnet
30 Sec
Hello Timer
BDR DR
RFC
Adjacency
:RFC or Cisco
Cisco
Configuration
Topology
Subnet
Subnet
30 Sec
Hello Timer
BDR DR
Cisco
Adjacency
:RFC or Cisco
Cisco
Configuration
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
neighbor 172.16.2.2 cost 30
neighbor 172.16.2.3 cost 20
neighbor 172.16.2.4 cost 50
Topology
Subnet
10 Sec
Hello Timer
BDR DR
Cisco
Adjacency
:RFC or Cisco
Cisco
Configuration