Mindmap
OSPF (Open Shortest Path First)

Mapa mental: OSPF (Open Shortest Path First)
Inhalt der Mindmap
OSPF (Open Shortest Path First)
DESCRIPCION Y CARACTERISTICAS
- OSPF, estandar: RFC2328
- Dijkstra, algoritmo: SPF
- +CPU,+Memoria, consumo: OSPF/protocolos vector distancia
- Estado de Enlace, protocolo: OSPF
- VLSM y CIDR, permitir: CLASSLESS
- OSPF, convergencia: Rapida
- Multicast (224.0.0.5 y 224.0.0.6) y Unicast
- UPDATES, envios: Incrementales
- Costo(BW), usa: Metrica
- IP, protocolo: ID89
- OSPF area unica
- OSPF multiarea
OPERACION Y FUNCIONAMIENTO
- Paquetes, tipos: OSPF
- HELLO
- DBD (Data Base Descriptor), contiene: RID, N°Seq, LSAs
- LSR (Link State Request), pregunta: +LSAs
- LSU (Link State Update), respuesta: LSR
- LSA 1: Routers LSAs
- LSA 2: Network LSAs
- LSA 3 o 4: Summary LSAs
- LSA 5: AS EX LSAs
- LSA 6: Multicast LSAs
- LSA 7: Not-So-Stubby Areas
- LSAck, confirma: LSU
- Protocolo, formato: OSPF
- Protocolo, cabecera: VERSION (2 o 3 | 8bits)
- Protocolo, cabecera: TYPE(1-5 | 8bits
- Protocolo, cabecera: PACKET LENGTH (16bits)
- Protocolo, cabecera: ROUTER ID (32bits)
- Protocolo, cabecera: AREA ID(32bits)
- Protocolo, cabecera: CHECKSUM(16bits)
- Protocolo, cabecera: AuTYPE(NoAu, AuTEXT, AuMD5| 16bits)
- Protocolo, cabecera: AuDATA(Empty, text, HASH)
- Protocolo, cabecera: DATA
- Protocolo, campos: HELLO
- Network Mask(32bits)
- Hello and Dead interval
- Neighbors List
- Designated Router DR (32bits)
- Backup Designated Router BDR (32bits)
- Router Priority (8bits)
- Authentication
- Stub Area Flag
- Protocolo, campos: HELLO
- Neighbors, estados: OSPF
- DOWN (No recibe hello)
- ATTEMPT(redes NBMA, envia unicast)
- INIT (recibe hello pero no RID)
- 2-WAY (comunicacion bidireccional)
- EXSTAR (eleccion DR y BDR)
- EXCHANGE (intercambio DBD)
- LOADING (intercambio ruteo)
- FULL (adyacencia total, DBDs sincronizadas)
- Protocolo, funcionamiento: OSPF
- Cuando un LINK cambia, se genera un LSA
- LSAs, vecinos intercambian: LSDBs
- LSAs, marcadas: N° Seq (reenviar LSDB, ignorar LSDB, actualizar LSDB)
- LSDB, informacion: AREA
- HELLO, intervalo: 10s (ppp, multiacceso) | 30s (FR, NBMA,ATM)
- HELLO DEAD, intervalo: 40s (ppp, multiacceso) | 120s (redes NBMA)
- Adyacencias, formando: =s (HELLO interval, DEAD interval, NETWORK TYPE)
- Paquetes, adyacencias: HELLOs (224.0.0.5)
- Tabla, funcionamiento: OSPF
- Tabla Neighbors
- Tabla Topology DB
- Tabla Routing
- Metrica OSPF
- Costo = 10°8 bps / Link BW
- Balanceo de carga con igual costo (hasta 16 paths)
- Distancia Administrativa AD: 110
- Algoritmo, proceso: SPF
- 1- LSDB topology sincronizadas
- 2- Algoritmo, ejecuta: SPF
- 3- Algoritmo, forma: SPF tree
- 4- Rutas, calculo SPF: Tabla Routing
- DR y BDR
- Redes Multiacceso
- Sin DR, links: n(n-1)/2
- Con DR, links: n-1
- Con DR y BDR, links: 2n-3
- DR y BDR escucha 224.0.0.6
- DR envia LSAs a 224.0.0.5
- Eleccion: Prioridad Alta\ RID Alto \ IP Lo Alto \ IP interface Alto
- DR y BDR no son con derecho preferente
- En NBMA, el HUB es DR y los SPOKEs tienen prioridad 0
- Tipos Redes OSPF
- BROADCAST: Multiacceso(Eth, FDDI), forman DR/BDR, HELLO usan multicast
- NON-BROADCAST: Multipoint NBMA(FR, ATM), forman DR/BDR, HELLO usan unicast
- POINT-TO-MULTIPOINT BROADCAST: NBMA, no DR/BDR, HELLO usan multicast, modifica next-hop
- POINT-TO-MULTIPOINT NON-BROADCAST: NBMA, no DR/BDR, HELLO usan unicast, modifica next-hop, crear neighbor manual
- POINT-TO-POINT: no DR/BDR, HELLO usan multicast
- OSPF Multiarea
- Tipos Routers OSPF
- INTERNAL ROUTER: Interfaces, todas: misma Area | LSAs misma Area
- BACKBONE ROUTER: Interface, alguna: Area 0
- AREA BORDER ROUTER ABR: Conecta 2 o mas Areas | Cada Area tiene su LSDB
- AUTONOMOUS SYSTEM BORDER ROUTER ASBR: Conecta con otros dominios de ruteo
- Tipos LSAs OSPF
- ROUTER LINK LSA_1: Vecino y Costo, anuncia: Routers, misma Area
- NETWORK LINK LSA_2: Vecino y Costo, anuncia: DR, misma Area
- NETWORK SUMMARY LINK LSA_3: Prefijos, anuncia: ABR, interarea
- AS Ext ASBR SUMMARY LINK LSA_4: Presencia ASBR, anuncia: ASBR, IA
- EXTERNAL LINK LSA_5: Rutas Ext, anuncia: ASBR
- NSSA EXTERNAL LINK LSA_7: Rutas Ext, anuncia: ASBR, dentro area nssa
- Tipos Areas OSPF
- STANDARD AREA: lsa_1-5, recibe: Area ST
- STUB AREA: lsa_1-4, recibe: Area STUB | ABR crea ruta default EX | todos routers stub | no Redistribucion
- TOTALLY STUBBY AREA: lsa_1-2, recibe: Area ToStub | ABR crea ruta default IA | todos routers stub | ABR stub no-summary | no Redstribucion
- NOT-SO-STUBBY AREA NSSA: lsa_1-3, 7, recibe: Area NotSoStub | ABR convierte lsa 7 a 5 | todos routers nssa | ABR nssa default-information-originate | si redistribucion
- NOT-SO-TOTALLY-STUBBY AREA: lsa_1-2, 7, recibe: Area NotSoToStub | ABR convierte lsa 7 a 5 | todos routers nssa | ABR nssa no-summary | si redistribucion
- Tipos Routers OSPF
- Paquetes, tipos: OSPF
CONFIGURACION Y ADMINISTRACION
- Configuracion Basica OSPF
- Router(config)#router ospf <ID proc> ID: significancia local
- Router(config-router)#router-id <x.x.x.x>
- Nota: recomendacion CISCO, usar IP Loopback (conflicto con BGP)
- Router(config-router)#network <subred> <wildcard> area <n°>
- Router(config-router)#network 0.0.0.0 255.255.255.255 area 0 Se corre OSPF en todas las interfaces del area 0
- Router(config-router)#network 192.168.0.5 0.0.0.0 area 0 Se corre OSPF en la interface .5
- Configuracion Metrica OSPF
- Router(config-if)#bandwith < x kbps>
- Router(config-if)#ip ospf cost <|z|>
- Router(config-router)#auto-cost reference-bandwith < x Mbps >
- Configuracion DR y BDR
- R3(config)#int eth0/0 | R3(config-if)#ip ospf priority <0-255>
- R3(config)#router ospf 3 R3(config-router)#router-id <3.3.3.3>
- R3(config)#int lo0 R3(config-if)#ip address <192.168.0.1 255.255.255.255>
- R3#clear ip ospf process
- Configuracion Network Type OSPF
- R3(config)#interface Eth0/0 R3(config-if)#ip ospf network <type>
- Router#show ip ospf interface eth0/0
- NBMA: R1(config)#router ospf 1 R1(config-router)#neighbor <IP>
- Configuracion Timers OSPF
- Router(config)#interface <s0/0/0> |M=4N Router(config-if)#ip ospf hello-interval<N s> Router(config-if)#ip ospf dead-interval<M s>
- Router#show ip ospf interface <interface>
- Configuracion Authentication OSPF
- Por INT AuTEXT: Router(config)#interface <interface> Router(config-if)#ip ospf authentication-key <password> Router(config-if)#ip ospf authentication
- Por INT AuMD5: Router(config)#interface <interface> | Router(config-if)#ip ospf message-digest-key <1-255> md5 <password> | Router(config-if)#ip ospf authentication message-digest
- Por AREA AuMD5: Router(config-router)#area <ID> authentication message-digest Router(config-if)#ip ospf message-digest-key <1-255> md5 <password>
- Configuracion Areas OSPF
- STUB AREA: todos routers del area STUB: Router(config)#router ospf <ID> Router(config-router)#area <ID> stub
- TOTALLY STUBBY AREA: todos routers area Totally stubby: Router(config)#router ospf <ID>| Router(config-router)#area <ID> stub En el ABR: Router(config-router)#area <ID> stub no-summary
- NSSA AREA: todos routers area nssa: Router(config)#router ospf <ID> Router(config-router)#area <ID> nssa Redistribucion ABR: Router(config-router)#area <ID> nssa default-information-originate
- NSSA TOTALLY AREA: todos routers area nssa: Router(config)#router ospf <ID> Router(config-router)#area <ID> nssa Redistribucion ABR: Router(config-router)#area <ID> nssa no-autosummary
- Router#show ip route ospf
- Router#show ip protocols
- Configuracion Sumarizacion OSPF
- Sumarizacion IA, En ABRs: Router(config)#router ospf <ID> Router(config-router)#area <ID> range <address sum> <mask>
- Sumarizacion EX: En ASBRs: Router(config)#router ospf <ID> Router(config-router)#summary-address <address sum> <mask>
- Router#show ip route ospf
- Configuracion Virtual-Links OSPF
- A0-AT-A0
- AR-AT-A0
- En ABRs: Router(config-router)#area <Area Transito> virtual-link <RID remoto>
- Router#show ip ospf virtual-links
- Router#show ip ospf neighbors
- AT no STUB
- Troubleshooting OSPF
- Router#show ip ospf border-routers
- Router#show ip ospf database
- Configuracion OSPFv3
- Router(config)#ipv6 router ospf <ID>
- Router(config-rtr)#router-id <x.x.x.x>
- Router(config)#interface <interface>
- Router(config-if)#ipv6 ospf <ID> area <AID>
- Configuracion Basica OSPF