Ugrás a fő tartalomra

CCIE SP v5.x Lerning journey #xxxxx3 Deep Dive of IGPs: OSPF part 2

Hello there!

I can not leave the OSPF subject because  it is too beautiful to abandon it. In this post I try to demonstrate how the LSAs work in different OSPF scenarios. In the last post I wrote what is the LSAs, which network type is available, and which router types are exist in an OSPF network. But I do not described these things. On this post I try to define these topics better. 

If you start Episode III at 11:02:48 PM on New Year's Eve, Obi-Wan will  say, "hello there" at midnight which is a beautiful way to begin 2018. :  r/PrequelMemes

To understand that LSAs how can be flooded on different areas you need to understand the area types. As I mentioned before, there is 5 type of area exist of OSPF.
Basically in a backbone/regular area the following LSA types will be flooded:

Type 1 Router LSA

Type 2 Network LSA

Type 3 ABR Summary LSA - if ABR exist in the area.

Type 4 ASBR Network LSA - if ASBR exist in the area.

Type 5 ASBR Summary LSA - if ASBR exist in the area.

 Backbone area is special, because it is responsible for the other area can be connected each other.


And what about stub area?

Stub types of areas help us to reduce the LSDB as it possible. There is 4 type of stub area is exist:

1. Stub

In stub area the ASBR is not allowed, the following LSAs can be flooded:

Type 1 , Type 2,  Type3


2. Totally stub area (TSA)

In TSA Type3 is not allowed


3. Not so stubby (NSSA)

In NSSA area there is an ASBR which is redistribute external prefix to the OSPF domain, because the Type 5 LSA is abandoned the Type 1, Type 2, Type 3 and Type 7 LSA is flooded within the area.


4. Totally NSSA

In this case the Type 3 is also filtered.

 

In which scenario will all LSA is going to be flooded  without LSA2?

When there is no DR in the network. There is two network where the DR / BDR election is not needed:

point-to-point

point-to-multipoint

In these case routers which belong to the same OSPF area make a FULL adjacency and flood all the generated LSA-s.

Example of p2p tpology


 

Example of p2m topology

 

 

 In these topologies the OSPF automatically set up its own as broadcast network, because of Ethernet protocol so we need to reconfigure the OSFP network type.

OSPF network type can configurable in IOS-XE device on globally or under the interface statement locally. In a case IOS-XR it can be configurable under the router ospf statement.

OSPF is use multicast address to send OSPF hellos to request an adjacency in a network (224.0.0.5). In which scenario will the OSPF router use uni-cast address?

The answer is the non-broadcast mode.

Why the  non-broadcast mode of ospf is useful? When the routers not connected to same broadcast segment or the transport / underlay network is not support the multicast transit. (In some IPSec cases).

In this scenario, you need to configure the neighbor statement under the ospf configuration section. In this case the ospf process is need to be run on the neighbor interfaces.

As I mentioned in may last post in a case of broadcast  case the DR / BDR election is mandatory step for the adjacency. What about the non-broadcast setup? It is also need to DR / BDR election process, and yes p2m non-broadcast setup the DR / BDR election is needed.

Lets look some ospf configuration template for the scenarios:

I. Make Type 1 LSA only network! What should be the configuration?

The network type between the ospf neighbor should be point-to-point. The OSPF domain should contain intra-area routes.

IOS-XE configuration template with a point-to-point topology solution

configure terminal
!
interface Lo0
 ip address $ip_address $net_mask
exit
!
interface Gi$x
 ip address $ip_address $net_mask
 ip ospf network point-to-point
 no shut
exit
!
router ospf $process_id
 router_id $Lo0_ip_address #not mandatory but suggested to be used
 passive-interface default
 network $Lo0_ip_address $wildcard_mask area $area_id
 network $Gi$x_ip_address $wildcard_mask area $area_id
 no passive-interface Gi$x
!
exit

In case of IOS-XR the configuration should be:

configure terminal
!
interface Lo0
 ipv4 address $ip_address/$vlsm
exit
!
interface Gi0/0/0/$x
 ipv4 address $ip_address/$vlsm
 no shut
!
router ospf $process_id
 router-id $Lo0_ip_address #not mandatory but suggested to be used
!
 area $area_id
 !
   interface Lo0
    passive
 !
  interface Gi0/0/0/$x
   network point-to-point
 !
commit

You can verify the configuration with the following commands:

IOS-XE

show ip ospf neighbor


 

show ip ospf database


 

show ip ospf database self-originate


 

IOS-XR


show ospf neighbor

 


show ospf database

show ospf database self-originate

 

The last interesting fact about the ospf database that you can verify LSU with checksum... each router when generate LSA create a checksum which is should be the same for that LSA in every router.

It should be enough for today... so we can see each other on the next post!


 

 




Érdekesebb bejegyzések

FortiGate - SEC előfizetésen túl

Végre megvan az új NGFW a cégben, megvettétek 3 vagy 5 éves enterprise vagy utp bundle-ben és biztonságban érzitek magatok (Szárazabb, magabiztosabb érzés nem?), hiszen van IPS , webfilter, antivirus stb... security profile, ami megvédhet az ismert támadásokkal szemben. Nyugodtan "hátradőltök" és készítitek az auditokhoz szükséges riportokat a FortiAnalyzerből... biztonságban eltelik az 5 év és "váratlanul ér" előfizetés megújítása, nincs budget, pánikolva néztek valamilyen alternatív alsópolcos megoldást, amit még be tudtok szerezni és kidobnátok a jó hardvert, ami éveken keresztül stabilan szolgált titeket... Ne tegyétek! Mutatom milyen feature-ket használhattok tovább ingyen: Persze az alábbi megoldások nem minden végfelhasználónak jelentenek megoldást a problémákra és kihívásokra, de KKV szektorbnan vagy olyan esetekben, ahol nem szükséges IPS, anitvirus, webfilter, még jól használhatók tovább ezek a hardverek/szoftverek előfizetések nélkül. Fontos, ha egyébként...

CCIE SP v5.x Lerning journey #xxxxx3 Deep Dive of IGPs: OSPF part 1

 Everything what you do not want know about the OSPF! In a Service Provider network, one of the most important part is the IGP (Interior Gateway Protocol). Why? Because the network core convergence and routing strategy is depend on the IGP routing rules. If the IGP can not support some features what  are needed for the traffic engineering, it could be a  future operation or development problem. So SPs select IGPs which are satisfy every operational and business needs, and it will be a future proof protocol. Many of service providers typically choose OSPF or ISIS for IGP, because: - they are RFC and ITU-T conform, vendor independent protocols (in general) - they support MPLS traffic engineering features (OSPF opaque LSA 10 11) - link-state routing protocols, which means  that these can provide faster convergence than vector-path or distance vector protocols, and they are more scalable. What is OSPF?  OSPF (Open Shortest Path First) protocol is a dynamic link-stat...

CCIE #69065 - SRv6, most már tényleg átállunk IPv6-ra?

Röviden: NEM Hosszabban: Nem egészen, a teljes IPv6 átálláshoz nem elegendő csak a hálózat eszközök (több mint 10 éve meglévő) képességeit kihasználni, hanem ehhez a teljes informatikai iparágnak kellene paradigmaváltáson átmenni, ami azt jelenti, hogy a felhasználói (business és consumer) alkalmazásoknak minden kétséget kizáróan nagy rendelkezésre állással kellene támogatni a TCP/IPv6 stack-et (sok helyen tapasztaltam, hogy még a TCPv4-et sem sikerült minden kétséget kizáróan jól implementálni, de még operációs rendszerek szintjén sem). Viszont a szolgáltatók a publikus IPv4 kifogyást megelőzendő a szolgáltatói környezetet már migrálhatják IPv6-os hálózatra, ami megfordíthatja a korábbi, IPv6 over IPv4 (MPLS vPE6) vagy dual-stack (Internet) architektúrát  akár natív  IPv4 over IPv6 (SRv6) jellegű felállásra. A teljes képhez sok mindent tisztába kellene tenni, de élek az alkotói szabadsággal és úgy vagyok vele, hogy nem célom most itt mindenkit telekommunikációs mérnökké avanz...

Fortinet minősítési rendszer változások - avagy a FortiThanos lecsap

 A Fortinet bizonyos időszakonként megváltoztatja a vizsga rendszerét és minősítési rendszerét...  Amikor 2018-ban elkezdtem foglalkozni a Fortinet Network Security megoldásaival, akkor még "lázasan" NSE4 vizsgára készültem, ami FortiGate alapok mellett néhány advanced témát is érintett.  Ekkor már átesett a Fortinet egy vizsgarendszer átalakításon, és korábban FCNSP (Fortinet Certified Network Security Professional) minősítések lettek NSE4 minősítéssé. Még ebben az időszakban terveztem tovább lépni NSE7 szintre, ami akkor egy vizsgával megléphető volt aztán bummm! Jött a vizsgarendszer átalakítása és a korábban NSE1 - 8 minősítések új rendszerbe kerültek.. Az NSE1 - 3 -ből lett a az FCF ás FCA azaz Foundamental és Associate minősítések (ezek online elvégezhető tanfolyamok és nem proctored vizsgák) NSE4 + NSE5 vagy NSE6-ből lettek az az FCP minősítések (Professional) NSE7 vizsgákból illetve azok kombinációiból lettek az FCSS minősítések (Specialist)  NSE8 pedig FCX a...