OSPF (Open Shortest Path First)

Description

OSPF CCNP CISCO
Vaselin Topalov
Mind Map by Vaselin Topalov, updated more than 1 year ago More Less
joseph chiong
Created by joseph chiong over 6 years ago
Vaselin Topalov
Copied by Vaselin Topalov almost 4 years ago
6
0

Resource summary

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

                                                                                                                                                                                                                                                                              Similar

                                                                                                                                                                                                                                                                              Configuración OSPF en Packet Tracer
                                                                                                                                                                                                                                                                              Brayan Padrino
                                                                                                                                                                                                                                                                              E2_8 OSPF
                                                                                                                                                                                                                                                                              John Dedios
                                                                                                                                                                                                                                                                              General ICT Quiz
                                                                                                                                                                                                                                                                              Jade Fantom
                                                                                                                                                                                                                                                                              Geography Quiz - Tectonics
                                                                                                                                                                                                                                                                              oscartaylor
                                                                                                                                                                                                                                                                              Key Events, People and Terms of the French Revolution
                                                                                                                                                                                                                                                                              poppwalton
                                                                                                                                                                                                                                                                              Spanish Subjunctive
                                                                                                                                                                                                                                                                              MrAbels
                                                                                                                                                                                                                                                                              Nazi Germany 1933-39
                                                                                                                                                                                                                                                                              c7jeremy
                                                                                                                                                                                                                                                                              Biology B1
                                                                                                                                                                                                                                                                              Kelsey Phillips
                                                                                                                                                                                                                                                                              Specimen Paper B - Unit 1 – Finance, the Individual and Society (FIS)
                                                                                                                                                                                                                                                                              Carina Storm