OSPF: Difference between revisions

13 bytes removed ,  2 years ago
 
(3 intermediate revisions by the same user not shown)
Line 536:
 
= R&S Quick Notes =
 
<pre>
* The Neighbor IP used with OSPF distance command is the Neighbors Router-ID.
* “area range” summarize type 3 LSA’.
* “summary-address” summarize type 5 & 7 LSA’s.
* Auto-cost reference BW (Default = 100mb), formula = Ref-BW/Int-Bw.
* Switches do no support the interface command “ip ospf {pid} area {area-id}” .
* OSPF path selection: O > O*IA > O*E1 > O*E2.
* Using E1 metric type : Packets will be routed out the closest exit point of the network.
* Using E2 metric type : If you want packets to exit your network at the closest point to their external destination.
* Don’t forget with hub and spoke topology, “ip ospf priority 0″.
* PITFALL, when forbid to use RID, Loopbacks created later on might change the DR on you network after a reload.
* PITFALL, when forbid to use RID, Later requested to configure the same loopback on two routers, could break your adjacencies, as two router cant peer with the same RID.
* “no capability transit” – Mimics OSPFv1 behaviour for all data traffic to pass through Area-0.
* “max-metric” – Configures OSPF stub configurations
* “max-lsa” – Limit amount of non-local LSA’s
* “timers throttle lsa all” – Slow down update rate.
* “timers pacing lsa-group” – Group more LSA’s together in updates.
* “no ip ospf flood-reduction” – Disables every 30-min LSA DB refresh.
* “ip ospf database filter all out” – Breaks RFC, Stop sending LSA’s, but still receive LSA’s
</pre>
 
= Concept Recap =
Line 611 ⟶ 610:
Full: Database was sync-ed.
 
DDBD* DBD Packet:
Have Interface MTU settings.
Initial(I) bit, More (M) bit and Master/Slave (MS) bit
Line 617 ⟶ 616:
Neighbor sends DBD with I/M/MS = 1/1/1 with seq = y
After master selection, slave send DBD with I/M/MS = 0/1/0 with seq = master seq + 1.
 
* Retransmission packets are always unicast.
Use stub concept and summarization to reduce memory and CPU utilization.
 
Sequence number, checksum and age uniquely defines as LSA:
* Use stub concept and summarization to reduce memory and CPU utilization.
 
* Sequence number, checksum and age uniquely defines as LSA:
Seq #:
From 0×80000001 to 0x7fffffff
Line 629 ⟶ 631:
0 to 3600 (1 Hr-MaxAge)
Age increments when it resides in LSA and also incremented by ‘Infdelay’ value as it transits an interface.
 
* Virtual Links:
Must be configured between 2 ABRs alone.
Transit area must have full routing information.
Line 635 ⟶ 638:
Usually it is the worst design and needs to be changed.
Can temporarily deploy to avoid partitioned area.
 
* LSA types:
Router LSA:
Type-1. Generated by all routers with all active networks which has ospf configured.
Line 673 ⟶ 677:
Type- 9,10,11
Extension to OSPF. Used for TE in MPLS.
 
* Areas:
Backbone area:
Area-0. Need for inter-area communication.
Line 694 ⟶ 699:
Can see Type-1,2,3,4 and type-7 LSAs.
Command: ‘area x nssa’.
 
* Path types:
Intra-area paths
Inter-area paths. Denoted by “IA” in show ip route.
Line 703 ⟶ 709:
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.
 
* Authentication:
No authentication: Type-0
Simple password: Type-1
MD5 password: Type-2
 
* Few points:
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
Line 722 ⟶ 730:
E – E bit=0 to indicate stub area.
MT – set to indicate Multi-topology OSPF support. Under development.
 
* Troubleshooting point of view: few
Few Neighborship not coming UP:
Check for Hello packet parameter match
Network ID in correct area??
Line 736 ⟶ 745:
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.
 
* Observations:
ABR with area-1 and area-2 only.
Routes from area-1 are not leaked into area-2 using type-3 network summary LSA.
Line 886 ⟶ 896:
*On a shared/ethernet network, only 2 router, DR & BDR will form full relationship, all others will stay in 2-way state.<ref>www.wipro.com</ref>
 
*If OSPF is stuck in ExStart State, MTU mismatch may be the cause, as it is requirement to successfully pass DBD Packets. Matching MTU is not a Adjacency Requirement, but is required to successfully pass Database Descriptor Packets
Matching MTU is not a Adjacency Requirement, but is required to successfully pass Database Descriptor Packets
 
*In OSPF, MTU Mismatch causes neighbors swinging between ExStart state to Down state