OSPF: Difference between revisions

Content added Content deleted
Line 560: Line 560:


= Concept Recap =
= Concept Recap =
<pre>

Protocol Number = 89, TTL=1, DES IP = 224.0.0.5 & 6
Protocol Number = 89, TTL=1, DES IP = 224.0.0.5 & 6
'''Network Types:'''
Network Types:
PTP:
PTP:
No DR, BDR and ospf packets are sent to MC address.
No DR, BDR and ospf packets are sent to MC address.
Line 576: Line 576:
Virtual link:
Virtual link:
Packets are unicast.
Packets are unicast.
'''OSPF packet types:'''
OSPF packet types:
Hello – type 1
Hello – type 1
Database description – type 2
Database description – type 2
Line 585: Line 585:
Hello interval, Dead interval, area ID, network mask, option fields and authentication, if any
Hello interval, Dead interval, area ID, network mask, option fields and authentication, if any
Neighborship will not form via secondary address. Other words, router will not generate hello packet with SRC IP = secondary IP.
Neighborship will not form via secondary address. Other words, router will not generate hello packet with SRC IP = secondary IP.
'''DR/BDR election:'''
DR/BDR election:
Highest Priority
Highest Priority
Tie, highest router ID
Tie, highest router ID
Line 592: Line 592:
Priority=0 means ineligible to become DR/BDR.
Priority=0 means ineligible to become DR/BDR.
When interface comes up, it sets DR,BDR to 0.0.0.0 and wait for ‘wait timer’= router dead interval. Within that period, if it receives hello with DR/BDR filled, accept those. Else if the time period elapse, move to BDR and then to DR.
When interface comes up, it sets DR,BDR to 0.0.0.0 and wait for ‘wait timer’= router dead interval. Within that period, if it receives hello with DR/BDR filled, accept those. Else if the time period elapse, move to BDR and then to DR.
'''Timers:'''
Timers:
Default H=10 sec and D= 40 sec
Default H=10 sec and D= 40 sec
InfTransDelay = 1 sec. change by “ip ospf transmit-delay’
InfTransDelay = 1 sec. change by “ip ospf transmit-delay’
RxmtInterval = 5 sec. Change by “ip ospf retramit-delay’
RxmtInterval = 5 sec. Change by “ip ospf retramit-delay’
'''Neighbor state machine:'''
Neighbor state machine:
Down: at initial
Down: at initial
Attempt: Only in NBMA
Attempt: Only in NBMA
Line 605: Line 605:
Loading: Syn the LSD using LS request and LS update. In real scenario, both Exchange and loading occurs parallel.
Loading: Syn the LSD using LS request and LS update. In real scenario, both Exchange and loading occurs parallel.
Full: Database was sync-ed.
Full: Database was sync-ed.
'''DBD packet:'''
DBD packet:
Have Interface MTU settings.
Have Interface MTU settings.
Initial(I) bit, More (M) bit and Master/Slave (MS) bit
Initial(I) bit, More (M) bit and Master/Slave (MS) bit
Line 613: Line 613:
Retransmission packets are always unicast.
Retransmission packets are always unicast.
Use stub concept and summarization to reduce memory and CPU utilization.
Use stub concept and summarization to reduce memory and CPU utilization.
'''Sequence number, checksum and age uniquely defines as LSA:'''
Sequence number, checksum and age uniquely defines as LSA:
Seq #:
Seq #:
From 0×80000001 to 0x7fffffff
From 0×80000001 to 0x7fffffff
Line 623: Line 623:
0 to 3600 (1 Hr-MaxAge)
0 to 3600 (1 Hr-MaxAge)
Age increments when it resides in LSA and also incremented by ‘Infdelay’ value as it transits an interface.
Age increments when it resides in LSA and also incremented by ‘Infdelay’ value as it transits an interface.
'''Virtual Links:'''
Virtual Links:
Must be configured between 2 ABRs alone.
Must be configured between 2 ABRs alone.
Transit area must have full routing information.
Transit area must have full routing information.
Line 629: Line 629:
Usually it is the worst design and needs to be changed.
Usually it is the worst design and needs to be changed.
Can temporarily deploy to avoid partitioned area.
Can temporarily deploy to avoid partitioned area.
'''LSA types:'''
LSA types:
Router LSA:
Router LSA:
Type-1. Generated by all routers with all active networks which has ospf configured.
Type-1. Generated by all routers with all active networks which has ospf configured.
Line 667: Line 667:
Type- 9,10,11
Type- 9,10,11
Extension to OSPF. Used for TE in MPLS.
Extension to OSPF. Used for TE in MPLS.
'''Areas:'''
Areas:
Backbone area:
Backbone area:
Area-0. Need for inter-area communication.
Area-0. Need for inter-area communication.
Line 688: Line 688:
Can see Type-1,2,3,4 and type-7 LSAs.
Can see Type-1,2,3,4 and type-7 LSAs.
Command: ‘area x nssa’.
Command: ‘area x nssa’.
'''Path types:'''
Path types:
Intra-area paths
Intra-area paths
Inter-area paths. Denoted by “IA” in show ip route.
Inter-area paths. Denoted by “IA” in show ip route.
Line 697: Line 697:
If there is only one ASBR in OSPF, there is no necessity of adding cost to ASBR. Hence E2 is default.
If there is only one ASBR in OSPF, there is no necessity of adding cost to ASBR. Hence E2 is default.
If there are more than on ASBR, enable E1.
If there are more than on ASBR, enable E1.
'''Authentication:'''
Authentication:
No authentication: Type-0
No authentication: Type-0
Simple password: Type-1
Simple password: Type-1
MD5 password: Type-2
MD5 password: Type-2
'''Few points:'''
Few points:
Router LSA of ABR will have “B-bit” set in router-lsa packet
Router LSA of ABR will have “B-bit” set in router-lsa packet
Router LSA of ASBR will have “E-bit” set in router-lsa packet
Router LSA of ASBR will have “E-bit” set in router-lsa packet
Line 716: Line 716:
E – E bit=0 to indicate stub area.
E – E bit=0 to indicate stub area.
MT – set to indicate Multi-topology OSPF support. Under development.
MT – set to indicate Multi-topology OSPF support. Under development.
'''Troubleshooting point of view:'''
Troubleshooting point of view: few
Neighborship not coming UP:
Neighborship not coming UP:
Check for Hello packet parameter match
Check for Hello packet parameter match
Line 730: Line 730:
In case of external routes not installed in routing table, check whether the forwarding address is reachable. If not, configure ‘suppress-fa’ option at the NSSA ABR.
In case of external routes not installed in routing table, check whether the forwarding address is reachable. If not, configure ‘suppress-fa’ option at the NSSA ABR.
If an LSA has less age or high sequence number among others, we need to look for why this network was keep flapping and flooding updates. Might be reason for high CPU utilization.
If an LSA has less age or high sequence number among others, we need to look for why this network was keep flapping and flooding updates. Might be reason for high CPU utilization.
'''Observations:'''
Observations:
ABR with area-1 and area-2 only:
ABR with area-1 and area-2 only.
Routes from area-1 are not leaked into area-2 using type-3 network summary LSA.
Routes from area-1 are not leaked into area-2 using type-3 network summary LSA.
Authentication:
Authentication:
Line 746: Line 746:
“%OSPF-4-ASBR_WITHOUT_VALID_AREA: Router is currently an ASBR while having only one area which is a stub area”
“%OSPF-4-ASBR_WITHOUT_VALID_AREA: Router is currently an ASBR while having only one area which is a stub area”
Summarization has no effect of external routes (E1/E2).
Summarization has no effect of external routes (E1/E2).
</pre>


=LAB=
=LAB=