Sei sulla pagina 1di 46

3.4 Tipos de redes OSPF 3.4.

1 Tipos de redes OSPF La comprensin de que un rea OSPF se compone de diferentes tipos de enlaces de red es importante, porque el comportamiento de adyacencia es diferente para cada tipo de red. Como resultado, OSPF debe estar correctamente configurado para funcionar correctamente a travs de ciertos tipos de red. Los ajustes por defecto no siempre funcionan correctamente en algunas topologas de red. Hay tres tipos principales de redes que son definidas por OSPF:

Punto a punto: Una red que une a un solo par de routers. Transmision: Una red de difusin multiacceso, como Ethernet. No es de difusin multiacceso (NBMA): Una red que interconecta ms de dos routers, pero que no tiene capacidad de difusin. Frame Relay, ATM y X.25 son ejemplos de redes NBMA. Hay cinco modos de funcionamiento OSPF disponibles para las redes NBMA, como se describe ms adelante en esta leccin. Operacin de OSPF y la configuracin de cada uno de estos tipos de red es el foco de esta leccin. 3.4 3.4.1 OSPF Network Types OSPF Network Types

Understanding that an OSPF area is made up of different types of network links is important, because the adjacency behavior is different for each network type. As a result, OSPF must be properly configured to function correctly over certain network types. Default settings do not always work properly under some network topologies. There are three major types of networks that are defined by OSPF:

Point-to-point: A network that joins a single pair of routers. Broadcast: A multiaccess broadcast network, such as Ethernet. Nonbroadcast multiaccess (NBMA): A network that interconnects more than two routers but that has no broadcast capability. Frame Relay, ATM, and X.25 are examples of NBMA networks. There are five modes of OSPF operation available for NBMA networks, as described later in this lesson. OSPF operation and configuration on each of these network types is the focus of this lesson.

3.4.2

3.4.2

Adjacency Behavior for a Point-to-Point Link

A point-to-point network joins a single pair of routers. A T1 serial line configured with a link-layer protocol such as PPP or High-Level Data Link Control (HDLC) is an example of a point-to-point network. On point-to-point networks, the router dynamically detects its neighboring routers by multicasting its hello packets to all OSPF routers, using the address 224.0.0.5. Neighboring routers become adjacent whenever they can communicate directly. Because there can be only two routers on a point-to-point link, there is no need for a DR or BDR.

Usually, the IP source address of an OSPF packet is set to the address of the outgoing interface on the router. It is possible to use IP unnumbered interfaces with OSPF. In this case, the IP source address is set to the IP address of another interface on the router.

The default OSPF hello and dead intervals on point-to-point links are 10 seconds and 40 seconds, respectively. 3.4.2 Comportamiento de Adyacencia de Point-to-Point Enlace

Una red de punto a punto se une a un solo par de enrutadores. Una lnea serie T1 configurado con un protocolo de capa de enlace tales como PPP o datos de alto nivel de control de enlace (HDLC) es un ejemplo de una red de punto a punto. En las redes punto a punto, el router detecta dinmicamente los enrutadores vecinos mediante la multidifusin de los paquetes de saludo a todos los routers OSPF, utilizando la direccin 224.0.0.5. Routers vecinos se convierten al lado siempre que puedan comunicarse directamente. Porque no puede haber slo dos routers en un enlace punto a punto, no hay necesidad de un DR o BDR.

Por lo general, la direccin IP de origen de un paquete OSPF se establece en la direccin de la interfaz de salida en el router. Es posible utilizar interfaces no numeradas IP con OSPF. En este caso, la direccin IP de origen se establece en la direccin IP de otra interfaz del router.

El valor por defecto OSPF hola y los intervalos muertos en enlaces punto a punto son 10 segundos y 40 segundos, respectivamente.

3.4.3

3.4 3.4.3

OSPF Network Types Adjacency Behavior for a Broadcast Link

An OSPF router on a multiaccess broadcast network such as Ethernet forms an adjacency with its DR and BDR. Adjacent routers have synchronized LSDBs. A common media segment is the basis for adjacency, for example, two routers connected on the same Ethernet segment. When routers first come up on the Ethernet, they perform the hello process and then elect the DR and BDR. The routers then attempt to form adjacencies with the DR and BDR. The routers on a segment must elect a DR and a BDR to represent the multiaccess broadcast network. The BDR does not perform any DR functions when the DR is operating. Instead, the BDR receives all the information, but the DR performs the LSA forwarding and LSDB synchronization tasks. The BDR performs the DR tasks only if the DR fails. If the DR fails, the BDR automatically becomes the DR, and a new BDR election occurs. Since routers may have more than one Ethernet interface, one router might be a DR for one network on one interface and a BDR for a network on another interface.

The DR and BDR improve network functioning in the following ways:

Reduce routing update traffic: The DR and BDR act as a central point of contact for link-state information exchange on a multiaccess broadcast network. Instead of all routers exchanging linkstate information with every other router on the segment, each router sends the link-state information to the DR and BDR only. The DR represents the multiaccess broadcast network in the sense that it sends link-state information from each router to all other routers in the network. This flooding process significantly reduces the router-related traffic on a segment. Manage link-state synchronization: The DR and BDR ensure that the other routers on the network have the same link-state information about the internetwork. In this way, the DR and BDR reduce the number of routing errors. Note After a DR and BDR have been selected, any router added to the network establishes adjacencies with the DR and BDR only.

3.4 Tipos de redes OSPF 3.4.3 Comportamiento de Adyacencia de Broadcast Enlace Un enrutador OSPF en una red broadcast multiacceso como Ethernet forma una adyacencia con el DR y el BDR. Routers adyacentes han sincronizado LSDBs. Un segmento de los medios de comunicacin comn es la base para la adyacencia, por ejemplo, dos routers conectados en el mismo segmento Ethernet. Cuando routers vienen por primera vez en la Ethernet, llevan a cabo el proceso de hola y luego eligen el DR y el BDR. Los routers se intentan formar adyacencias con el DR y el BDR. Los routers de un segmento deben elegir un DR y BDR para representar la red de difusin mltiples. El BDR no realiza ninguna funcin DR cuando el DR est en funcionamiento. En cambio, el BDR reciba toda la informacin, pero el DR realiza la expedicin LSA y tareas de sincronizacin LSDB. El BDR realiza las tareas de DR si el DR falla. Si el DR falla, el BDR se convierte automticamente en la Repblica Dominicana, y se produce una nueva eleccin BDR. Dado que los routers pueden tener ms de una interfaz Ethernet, un enrutador puede ser un DR para una red en una interfaz y un BDR para una red en otra interfaz.

La DR y BDR mejorar el funcionamiento de la red de la siguiente manera:

Reducir el trfico de actualizacin de enrutamiento: el DR y el BDR actuar como punto central de contacto para el intercambio de informacin de estado de enlace en una red broadcast multiacceso. En lugar de todos los routers intercambian informacin de estado de enlace con todos los otros router en el segmento, cada router enva la informacin de estado de enlace con el DR y el BDR solamente. El DR representa la red de difusin multiacceso en el sentido de que se enva la informacin de estado de enlace de cada router a todos los dems routers de la red. Este proceso de inundacin reduce significativamente el trfico de enrutador relacionada en un segmento. Gestione la sincronizacin de estado de enlace: El DR y BDR garantizar que los dems routers de la red tienen la misma informacin de estado de enlace de la red interna. De esta manera, la DR y el BDR reducir el nmero de errores de enrutamiento. Nota Despus de un DR y BDR se han seleccionado, cualquier router aade a la red establece adyacencias con el DR y el BDR solamente. 3.4.4

3.4 3.4.4

OSPF Network Types Selecting the DR and BDR

One of the main functions of a DR is to ensure that all the routers on the same LAN segment have identical databases by passing its database to any new routers that come up. It is more efficient to have one router represent the other routers to a new router rather than all the routers pass the same information. Routers on the LAN also maintain a partial-neighbor relationship, a two-way adjacency state, with the other routers on the LAN that are not the DR or BDR (DROTHERs).

To elect a DR and BDR, the routers view the OSPF priority value of the other routers during the hello packet exchange process and then use the following conditions to determine which router to select:

The router with the highest priority value is the DR. The router with the second-highest priority value is the BDR. The default for the priority is 1. In the case of a tie, the router ID is used. The router with the highest router ID becomes the DR. The router with the second-highest router ID becomes the BDR. A router with a priority set to 0 cannot become the DR or BDR. (A router that is not the DR or BDR is called a DROTHER.) If a router with a higher priority value gets added to the network, it does not preempt the DR and BDR. The only time that a DR or BDR changes is when one of them is out of service. If the DR is out of service, the BDR becomes the DR and a new BDR is selected. If the BDR is out of service, a new BDR is elected. The BDR uses the wait timer to determine whether the DR is out of service. If the BDR does not confirm that the DR is forwarding LSAs before the timer expires, the BDR assumes that the DR is out of service.

Note The highest IP address on an active interface is normally used as the router ID. However, you can override this selection by configuring an IP address on a loopback interface or using the router-id router configuration command.

In a multiaccess broadcast environment, each network segment has its own DR and BDR. A router connected to multiple multiaccess broadcast networks can be a DR on one segment and a regular router on another segment.

Note The DR concept is at the link level. A DR is selected for every multiaccess broadcast link in the OSPF network.

Use the ip ospf priority interface command to designate which router interfaces on a multiaccess link are the DR and the BDR. The default priority is 1, and the range is from 0 to 255. The interface with the highest priority becomes the DR, and the interface with the second-highest priority becomes the BDR.

Interfaces set to zero priority cannot be involved in the DR or BDR election process.

Here is a configuration example:

interface FastEthernet 0/0 ip ospf priority 10

Note The priority of an interface takes effect only when the existing DR goes down. A DR does not relinquish its status just because a new interface reports a higher priority in its hello packet.

3.4 Tipos de redes OSPF 3.4.4 Seleccin de la DR y BDR Una de las principales funciones de un DR es para asegurar que todos los routers en el mismo segmento de LAN tienen bases de datos idnticos pasando su base de datos para los nuevos

enrutadores que se presentan. Es ms eficiente tener un router representan los otros routers a un nuevo router en lugar de todos los routers pasan la misma informacin. Routers de la LAN tambin mantienen una relacin parcial vecino, un estado de adyacencia de dos vas, con los otros routers de la LAN que no son el DR o BDR (DROthers).

Para elegir un DR y BDR, los routers ven el valor de la prioridad OSPF de los otros routers en el proceso de intercambio de paquetes de saludo y luego usar las siguientes condiciones para determinar qu router para seleccionar:

El router con el valor de prioridad ms alta es el DR. El router con el valor de prioridad de segundo ms alto es el BDR. El valor predeterminado para la prioridad 1. En el caso de empate, se utiliza el ID del router. El router con la ID de router ms alta se convierte en el DR. El router con el ID del router segunda ms alta se convierte en el BDR. Un router con la prioridad establecida en 0 no puede convertirse en DR o BDR. (Un router que no es el DR o BDR se llama un DROTHER.) Si un router con un valor de prioridad ms alta se agrega a la red, no reemplaza el DR y el BDR. La nica vez que el DR o BDR cambios es cuando uno de ellos est fuera de servicio. Si el DR est fuera de servicio, el BDR se convierte en el DR y se selecciona un nuevo BDR. Si el BDR est fuera de servicio, un nuevo BDR es elegido. El BDR utiliza el temporizador de espera para determinar si el DR est fuera de servicio. Si el BDR no confirma que la Repblica Dominicana es el reenvo de LSA antes de que expire el temporizador, el BDR asume que la Repblica Dominicana est fuera de servicio.

Nota La direccin IP ms alta en una interfaz activa se utiliza normalmente como el ID de router. Sin embargo, puede anular esta seleccin mediante la configuracin de una direccin IP en una interfaz de bucle invertido o con el comando de configuracin del router router-id.

En un entorno broadcast multiacceso, cada segmento de red tiene su propia DR y BDR. Un router conectado a mltiples redes de difusin multiacceso puede ser un DR en un segmento y un router regular en otro segmento.

Nota El concepto de DR se encuentra en el nivel de enlace. A DR se selecciona para cada enlace de difusin multiacceso en la red OSPF.

Utilice el comando ip ospf priority interface para designar qu interfaces del router en un enlace multiacceso son el DR y el BDR. La prioridad predeterminada es 1, y el rango es de 0 a 255. La interfaz con la prioridad ms alta se vuelve la RD, y la interfaz con la segunda prioridad ms alta se convierte en el BDR.

Interfaces fija prioridad cero no pueden participar en el proceso electoral DR o BDR.

He aqu un ejemplo de configuracin:

interfaz FastEthernet 0/0 ip ospf priority 10

Nota La prioridad de una interfaz slo tiene efecto cuando el DR existente disminuye. A DR no renuncia a su condicin slo porque una nueva interfaz reporta una mayor prioridad en su paquete de saludo.

3.4.5

3.4 3.4.5

OSPF Network Types Adjacency Behavior for a NBMA Network

When a single interface interconnects multiple sites over an NBMA network, the nonbroadcast nature of the network can create reachability issues. NBMA networks can support more than two routers but have no broadcast capability. For example, if the NBMA topology is not fully meshed, a broadcast or multicast sent by one router will not reach all the other routers. Frame Relay, ATM, and X.25 are examples of NBMA networks. To implement broadcasting or multicasting on an NBMA network, the router replicates the packets to be broadcast or multicast and sends them individually on each permanent virtual circuit (PVC) to all destinations. This process is CPU and bandwidth intensive.

The default OSPF hello and dead intervals on NBMA interfaces are 30 seconds and 120 seconds, respectively.

3.4 Tipos de redes OSPF 3.4.5 Comportamiento de Adyacencia para una red NBMA

Cuando una nica interfaz interconecta mltiples sitios en una red NBMA, la naturaleza no es de difusin de la red puede crear problemas de accesibilidad. Redes NBMA pueden soportar ms de dos routers, pero no tienen capacidad de difusin. Por ejemplo, si la topologa NBMA no est totalmente engranado, una difusin o multidifusin enviados por un router no va a llegar a todos los otros enrutadores. Frame Relay, ATM y X.25 son ejemplos de redes NBMA. Para llevar a cabo la radiodifusin o multidifusin en una red NBMA, el router replica los paquetes a ser difusin o multidifusin y los enva de forma individual en cada circuito virtual permanente (PVC) para todos los destinos. Este proceso es CPU y ancho de banda intensivo.

El valor por defecto OSPF hola y los intervalos muertos en las interfaces NBMA son 30 segundos y 120 segundos, respectivamente.

3.4.6

3.4 3.4.6

OSPF Network Types DR Election in NBMA Topology

OSPF considers that the NBMA environment functions in a way similar to other broadcast media such as Ethernet. However, NBMA clouds are usually built in hub-and-spoke topologies, using PVCs or switched virtual circuits (SVCs). A hub-and-spoke topology means that the NBMA network is

only a partial mesh. In these cases, the physical topology does not provide the multiaccess capability that OSPF relies on. Electing a DR is an issue in NBMA topologies because the DR and BDR need to have full physical connectivity with all routers in the NBMA network. The DR and BDR also need to have a list of all the other routers so that they can establish adjacencies.

OSPF cannot automatically build adjacencies with neighboring routers over NBMA interfaces.

3.4 Tipos de redes OSPF 3.4.6 DR elecciones en NBMA Topologa OSPF considera que las funciones del entorno NBMA de una manera similar a otros medios de transmisin, tales como Ethernet. Sin embargo, las nubes NBMA se construyen generalmente en hub-and-spoke topologas, utilizando PVC o circuitos virtuales conmutados (SVC). Una topologa hub-and-spoke significa que la red NBMA es slo una malla parcial. En estos casos, la topologa fsica no proporciona la capacidad multiacceso que se basa en OSPF. Eleccin de un DR es un problema en topologas NBMA porque el DR y el BDR deben tener conectividad fsica completa con todos los routers de la red NBMA. La DR y BDR tambin necesita tener una lista de todos los dems routers para que puedan establecer adyacencias.

OSPF no puede construir automticamente adyacencias con los routers vecinos sobre las interfaces NBMA.

3.4.7

3.4 3.4.7

OSPF Network Types OSPF Over Frame Relay

There are several OSPF configuration choices for a Frame Relay network, depending on the network topology. With Frame Relay, remote sites interconnect in a variety of ways. By default, interfaces that support Frame Relay are multipoint connection types. The following are types of Frame Relay topologies:

Hub-and-Spoke: A hub-and-spoke topology, also known as a star configuration, is the most common Frame Relay network topology. Remote sites connect to a central site that generally provides a service or application. It is the least expensive topology because it requires the least PVCs. The central router provides a multipoint connection, because it typically uses a single interface to interconnect multiple PVCs.

Full-mesh: All routers have virtual circuits to all other destinations. This topology, although costly, provides direct connections from each site to all other sites and allows for redundancy. As the number of nodes increases, it becomes increasingly expensive. To figure out how many virtual circuits are needed to implement a fully meshed topology, use the formula n (n 1) / 2, where n is the number of nodes in the network.

Partial-mesh: Not all sites have direct access to a central site. This method reduces the cost of implementing a full-mesh topology. 3.4 Tipos de redes OSPF 3.4.7 OSPF sobre Frame Relay Hay varias opciones de configuracin de OSPF para una red Frame Relay, dependiendo de la topologa de la red. Con Frame Relay, sitios remotos interconectan en una variedad de maneras. De forma predeterminada, las interfaces que soportan Frame Relay son los tipos de conexin multipunto. Los siguientes son los tipos de Frame Relay topologas:

Hub-and-Spoke: Una topologa hub-and-spoke, tambin conocida como una configuracin en estrella, es la topologa de la red Frame Relay ms comn. Los sitios remotos se conectan a un sitio central que por lo general proporciona un servicio o aplicacin. Es la topologa menos costosa, ya que requiere la menor cantidad PVC. El router central proporciona una conexin multipunto, ya que normalmente utiliza una nica interfaz para interconectar varios PVC.

Malla completa: Todos los routers tienen circuitos virtuales a todos los dems destinos. Esta topologa, aunque costosa, ofrece conexiones directas de cada sitio a todos los sitios y permite la redundancia. A medida que el nmero de nodos aumenta, se vuelve cada vez ms caro. Para averiguar cuntas se necesitan circuitos virtuales para implementar una topologa de malla completa, utilizar la frmula n (n - 1) / 2, donde n es el nmero de nodos en la red.

Parcial de malla: no todos los sitios tienen acceso directo a un sitio central. Este mtodo reduce el costo de implementacin de una topologa de malla completa. 3.4.8

3.4 3.4.8

OSPF Network Types OSPF over NBMA Topology Modes

As described in RFC 2328, OSPF runs in one of the following two modes in NBMA topologies: Nonbroadcast: Simulates the operation of OSPF in broadcast networks. Neighbors must be manually configured, and DR and BDR election is required. This configuration is typically used with fully meshed networks. Point-to-multipoint: Treats a nonbroadcast network as a collection of point-to-point links. The routers automatically identify their neighboring routers but do not elect a DR and BDR. This configuration is typically used with partially meshed networks. The operation mode determines the way the hello protocol and flooding work over the nonbroadcast network. The main advantage of point-to-multipoint is that it requires less manual configuration, and the main advantage of nonbroadcast is that there is less overhead traffic.

Cisco has defined the following additional modes:

Point-to-multipoint nonbroadcast Broadcast

Point-to-point

3.4 Tipos de redes OSPF 3.4.8 OSPF sobre NBMA Modos de Topologa Como se describe en el RFC 2328, OSPF se ejecuta en uno de los dos modos siguientes en topologas NBMA: No es de difusin: simula el funcionamiento de OSPF en redes de difusin. Los vecinos deben configurarse manualmente y se requiere DR y BDR elecciones. Esta configuracin se suele utilizar con redes de malla completa. Punto a multipunto: Se usa para tratar una red de no difusin como una coleccin de enlaces punto a punto. Los routers identifican automticamente sus routers vecinos, pero no eligen al DR y BDR. Esta configuracin se suele utilizar con redes de malla parcial. El modo de funcionamiento determina la forma en que el protocolo de saludo y las inundaciones de trabajo en la red de no difusin. La principal ventaja de punto-a-multipunto es que requiere menos mano de configuracin, y la principal ventaja de no difusin es que hay menos trfico de sobrecarga.

Cisco ha definido los siguientes modos adicionales:

Punto a multipunto no es de difusin transmitir Punto a punto

3.6.

3.6

Multiarea OSPF Operation

3.6.1

Large OSPF Network Issues

The most important thing to understand in OSPF is how the topology database is built. Troubleshooting OSPF often requires analyzing the database and routing table, so a solid understanding of LSAs is essential. This lesson describes each of the common LSA types and how they form the layout of the LSDB. OSPF LSDBs are often very large. For this reason, an area hierarchical structure has been imposed that defines several router types.

OSPF can usually operate within a single area; however, certain issues arise if this single area expands into hundreds of networks. If an expansion occurs, the following issues need to be addressed:

Frequent SPF algorithm calculations: In a large network, changes are inevitable. Therefore, the routers spend many CPU cycles recalculating the SPF algorithm and updating the routing table. Large routing table: OSPF does not perform route summarization by default. If the routes are not summarized, the routing table can become very large, depending on the size of the network. Large LSDB: Because the LSDB covers the topology of the entire network, each router must maintain an entry for every network in the area, even if every route is not selected for the routing table. A solution to these issues is to divide the network into multiple OSPF areas. OSPF allows the separation of a large area into smaller, more manageable areas that are still able to exchange routing information.

Hierarchical area routing separates a large internetwork into multiple areas. When you use this technique, interarea routing still occurs, but many of the internal routing operations, such as SPF calculations, remain within individual areas.

For example, in Figure , if area 1 is having problems with a link going up and down, routers in other areas do not need to continually run their SPF calculation because they are isolated from the problem.

Using multiple OSPF areas has several advantages:

Reduced frequency of SPF calculations: Since detailed route information exists within each area, it is not necessary to flood all link-state changes to all other areas. Only the routers that are affected by the change need to recalculate SPF. Smaller routing tables: Detailed route entries for specific networks within an area can remain in the area. Instead of advertising these explicit routes outside the area, routers can be configured to summarize the routes into one or more summary addresses. Advertising these summaries reduces the number of LSAs propagated between areas but keeps all networks reachable. Reduced LSU overhead: LSUs contain a variety of LSA types, including link-state and summary information. Rather than send an LSU about each network within an area, a router can advertise a single summarized route or small number of routes between areas, reducing the overhead associated with LSUs when they cross areas.

3.6 multiarea OSPF Funcionamiento 3.6.1 Los grandes problemas de red OSPF Lo ms importante de entender en OSPF es cmo se construye la base de datos de topologa. Solucin de problemas de OSPF a menudo requiere el anlisis de la base de datos y la tabla de enrutamiento, por lo que una slida comprensin de la LSA es esencial. Esta leccin describe cada uno de los tipos de LSA comunes y cmo forman el diseo de la LSDB. LSDBs OSPF son a menudo muy grande. Por esta razn, una estructura jerrquica rea se ha impuesto que define varios tipos de router.

OSPF generalmente puede operar en un espacio nico, sin embargo, surgen ciertas cuestiones si sola rea se expande en cientos de redes. Si se produce una expansin, es necesario abordar las siguientes cuestiones:

Clculos del algoritmo SPF frecuentes: En una red grande, los cambios son inevitables. Por lo tanto, los routers pasan muchos ciclos de CPU recalcular el algoritmo SPF y la actualizacin de la tabla de enrutamiento. Large tabla de enrutamiento: OSPF no realiza el resumen de ruta por defecto. Si las rutas no se resumen, la tabla de enrutamiento puede llegar a ser muy grande, dependiendo del tamao de la red. Grande LSDB: Debido a que el LSDB cubre la topologa de toda la red, cada router debe mantener una entrada para cada red en el rea, incluso si no se selecciona cada ruta para la tabla de enrutamiento. Una solucin a estos problemas es dividir la red en varias reas OSPF. OSPF permite la separacin de una gran superficie en reas ms pequeas, ms manejables que son todava capaces de intercambiar informacin de enrutamiento.

rea de enrutamiento jerrquica separa una gran interconexin de redes en mltiples zonas. Cuando se utiliza esta tcnica, enrutamiento Interrea se sigue produciendo, pero muchas de las operaciones de enrutamiento internos, tales como clculos SPF, permanecen dentro de las reas individuales.

Por ejemplo, en la figura, si el rea 1 est teniendo problemas con un enlace a subir y bajar, los routers de otras reas no tienen que correr continuamente su clculo SPF porque estn aislados del problema.

El uso de mltiples reas OSPF tiene varias ventajas:

Frecuencia de clculos SPF reducido: Dado que la informacin detallada de la ruta existe dentro de cada rea, no es necesario para inundar todos los cambios de estado de enlace a todas las dems reas. Slo los enrutadores que estn afectados por el cambio necesitan para volver a calcular SPF. Tablas de enrutamiento ms pequeas: las entradas de ruta detallada para redes especficas dentro de un rea pueden permanecer en la zona. En lugar de la publicidad de estas rutas explcitas fuera de la zona, los routers pueden estar configurados para resumir las rutas en una o ms direcciones de resumen. Publicidad de estos resmenes se reduce el nmero de LSAs propaga entre las reas, pero mantiene todas las redes accesibles. Reduccin de LSU sobrecarga: LSU contienen una variedad de tipos de LSA, incluyendo informacin de resumen de estado de enlace y. En lugar de enviar un LSU acerca de cada red dentro de un rea, un router puede anunciar una sola ruta resumida o pequeo nmero de rutas entre zonas, lo que reduce la sobrecarga asociada con LSU cuando se cruzan zonas.

3.6.2

3.6 3.6.2

Multiarea OSPF Operation OSPF LSA Types

LSAs are the building blocks of the OSPF LSDB. Individually, they act as database records. In combination, they describe the entire topology of an OSPF network or area. All LSA types have 20-byte headers. One of the LSA header fields is the link-state ID. The link-state ID of the type 1 LSA is the originating router ID.

Each router link is defined as an LSA type. The LSA includes a link ID field that identifies, by network number and mask, the object that this link connects to. Depending on the type, the link ID has different meanings, as described in Figure .

3.6 multiarea OSPF Funcionamiento 3.6.2 OSPF LSA Tipos LSA son los componentes bsicos de la LSDB OSPF. Individualmente, que actan como registros de base de datos. En combinacin, describen toda la topologa de una red o rea OSPF. Todos los tipos de LSA tienen encabezados de 20 bytes. Uno de los campos de cabecera LSA es el ID de estado de enlace. El ID de estado de enlace del tipo 1 LSA es la ID del router de origen.

Cada enlace enrutador se define como un tipo de LSA. El LSA incluye un campo de enlace ID que identifica, por nmero de red y la mscara, el objeto que este enlace se conecta a. Dependiendo del tipo, el ID de enlace tiene distintos significados, segn se describe en la figura.

3.6.3

3.6 3.6.3

Multiarea OSPF Operation OSPF LSA Types (cont.)

The following are descriptions of each type of LSA. Type 1 Every router generates router link advertisements for each area to which it belongs. A type 1 LSA describes the collective states of the directly connected links (interfaces) of the router. These LSAs are flooded only within the area in which they are originated.

Type 2 A type 2 LSA is generated for every transit broadcast and NBMA network within an area. A transit network has at least two directly attached OSPF routers. Ethernet is an example of a transit network.

The DR of the network is responsible for advertising the network LSA. A type 2 network LSA lists each of the attached routers that make up the transit network, including the DR itself, as well as the subnet mask used on the link. The type 2 LSA then floods to all routers within the transit

network area. Type 2 LSAs never cross an area boundary. The link-state ID for a network LSA is the IP interface address of the DR that advertises it.

Type 3 The ABR sends type 3 summary LSAs. Type 3 LSAs advertise any networks owned by an area to the rest of the areas in the OSPF autonomous system, as shown in Figure .

The link-state ID is set to the network number; the mask is also advertised.

By default, OSPF does not automatically summarize groups of contiguous subnets or summarize a network to its classful boundary. The network operator uses configuration commands to specify how the summarization occurs. By default, a type 3 LSA is advertised into the backbone area for every subnet defined in the originating area, which can cause significant flooding problems. Consequently, you should always consider using manual route summarization at the ABR.

Summary LSAs are flooded throughout a single area only, but are regenerated by ABRs to flood into other areas.

Note By default, summary LSAs do not contain summarized routes.

Type 4 A type 4 summary LSA is generated by an ABR only when an ASBR exists within an area. A type 4 LSA identifies the ASBR and provides a route to it. The link-state ID is set to the ASBR router ID. All traffic destined to an external autonomous system requires routing table knowledge of the ASBR that originated the external routes.

In Figure , the ASBR sends a type 1 router LSA with an external bit (e bit) that is set to identify itself as an ASBR. When the ABR, which is identified with a border bit (b bit) in the router LSA, receives the type 1 LSA, it builds a type 4 LSA and floods it to the backbone (area 0). Subsequent ABRs regenerate a type 4 LSA to flood into their areas.

Type 5 Type 5 external LSAs describe routes to networks outside the OSPF autonomous system. Type 5 LSAs are originated by the ASBR and are flooded to the entire autonomous system.

The link-state ID is the external network number. Because of the flooding scope, and depending on the number of external networks, the default lack of route summarization can be a major issue with external LSAs. Therefore, you should summarize blocks of external network numbers at the ASBR to reduce flooding problems.

Type 6 Type 6 LSAs are specialized LSAs that are used in multicast OSPF applications.

Type 7 Type 7 is an LSA type that is used in not-so-stubby areas (NSSAs). They are originated by ASBRs within NSSAs and are flooded only within the NSSA in which they originated.

Type 8 Type 8 is a specialized LSA that is used in internetworking OSPF and Border Gateway Protocol (BGP).

Types 9, 10, and 11 The opaque LSAs, types 9, 10, and 11, are designated for future upgrades to OSPF for applicationspecific purposes. For example, Cisco Systems uses opaque LSAs for Multiprotocol Label Switching (MPLS) with OSPF. Opaque LSAs are distributed using standard LSDB flooding mechanisms. Each type has a different flooding scope.

3.6 multiarea OSPF Funcionamiento 3.6.3 OSPF Tipos de LSA (cont.)

Las siguientes son las descripciones de cada tipo de LSA. Tipo 1 Cada enrutador genera avisos de enlace del router para cada zona a la que pertenece. Un tipo 1 LSA describe los estados colectivos de los enlaces conectados directamente (interfaces) del router. Estos LSAs se inundan slo dentro de la zona en la que se originan.

Tipo 2 Un tipo 2 LSA se genera para cada emisin de trnsito y de la red NBMA dentro de un rea. Una red de trnsito tiene al menos dos enrutadores OSPF conectados directamente. Ethernet es un ejemplo de una red de trnsito.

La DR de la red es responsable de la publicidad de la LSA de red. Un tipo 2 de red LSA enumera cada uno de los routers conectados que componen la red de trnsito, incluyendo la propia DR, as como la mscara de subred que se utiliza en el enlace. El tipo 2 LSA se inunda a todos los routers en el rea de red de trnsito. Tipo 2 LSA nunca cruzar un lmite de rea. El ID de estado de enlace para un LSA de red es la direccin de la interfaz IP del DR que lo anuncia.

Tipo 3 El ABR enva tipo 3 LSA de resumen. Tipo 3 LSA anuncian ningn redes que pertenecen a un rea para el resto de las zonas en el sistema autnomo de OSPF, como se muestra en la figura.

El ID de estado de enlace se establece en el nmero de red, la mscara tambin se anuncia.

De forma predeterminada, OSPF no resume de forma automtica grupos de subredes contiguas o resumir una red a su lmite con clase. El operador de red utiliza comandos de configuracin para especificar cmo se produce la integracin. De forma predeterminada, un tipo 3 LSA se anuncia en el rea de red troncal para cada subred definido en la zona de origen, que puede causar problemas de inundaciones importantes. Por lo tanto, siempre se debe considerar el uso de resumen de ruta manual en el ABR.

Resumen LSAs se inundan toda una sola rea, pero se regeneran por ABRs a las inundaciones en otras reas.

Nota De forma predeterminada, LSA de resumen no contienen rutas resumidos.

Tipo 4 Un tipo 4 Resumen de LSA es generado por un ABR slo cuando un ASBR existe dentro de un rea. Un tipo 4 LSA identifica el ASBR y proporciona una ruta a la misma. El ID de estado de enlace se establece en el ID de enrutador ASBR. Todo el trfico destinado a un sistema autnomo externo requiere la tabla de enrutamiento conocimiento del ASBR que origin las rutas externas.

En la figura, el ASBR enva un tipo 1 enrutador LSA con un poco externa (e bits) que se establece para identificarse a s mismo como un ASBR. Cuando la ABR, que se identifica con un poco frontera (b bits) en el router LSA, recibe el tipo 1 LSA, se construye un tipo 4 LSA y las inundaciones a la columna vertebral (zona 0). ABR posteriores regenerar un tipo 4 LSA para inundar en sus reas.

Tipo 5 Tipo 5 LSA externos describen rutas a redes fuera del sistema autnomo OSPF. Tipo 5 LSA se origin por el ASBR y se distribuyen a todo el sistema autnomo.

El ID de estado de enlace es el nmero de red externa. Debido a la inundacin mbito de aplicacin, y en funcin del nmero de redes externas, la falta de resumen de ruta por defecto puede ser un problema importante con las LSA externos. Por lo tanto, usted debe resumir los bloques de nmeros de red externa en el ASBR para reducir problemas de inundaciones.

Tipo 6 Tipo 6 LSA son LSA especializados que se utilizan en aplicaciones de multidifusin OSPF.

Tipo 7

Tipo 7 es un tipo de LSA que se utiliza en reas no tan cortas (NSSAs). Se originan por ASBRs dentro NSSAs y se inundan slo dentro de la NSSA en el que se originaron.

Tipo 8 Tipo 8 es un LSA especializado que se utiliza en la conexin en red OSPF y Border Gateway Protocol (BGP).

Tipos de 9, 10 y 11 Los LSA opacos, tipos 9, 10 y 11, son designados para futuras actualizaciones de OSPF para fines especficos de la aplicacin. Por ejemplo, Cisco Systems utiliza LSA opacos para Multiprotocol Label Switching (MPLS) con OSPF. LSA opaco se distribuyen mediante mecanismos estndar inundaciones LSDB. Cada tipo tiene un alcance diferente inundaciones.

3.6.4

3.6 3.6.4

Multiarea OSPF Operation Interpreting the OSPF LSDB and Routing Table

Figure displays a partial output of the show ip ospf database command used to get information about an OSPF LSDB. The router link-states are type 1 LSAs, the net link-states are type 2, and the summary net link-states are type 3. The database columns contain the following information:

Link ID: Identifies each LSA. ADV Router: Advertising router; the source router of the LSA. Age: The maximum age counter in seconds. The maximum age is 1 hour, or 3,600 seconds. Seq#: Sequence number of the LSA. This number begins at 0x80000001 and increases with each update of the LSA. Checksum: Checksum of the individual LSA to ensure reliable receipt of that LSA.

Link count: Total number of directly attached links, used only on router LSAs. The link count includes all point-to-point, transit, and stub links. Each point-to-point serial link counts as two; all other links count as one, including Ethernet links. Figure displays the complete output of the show ip ospf database command.

3.6 multiarea OSPF Funcionamiento 3.6.4 Interpretar el OSPF LSDB y tabla de enrutamiento La figura muestra una salida parcial del comando show ip ospf base de datos utilizada para obtener informacin acerca de un LSDB OSPF. El router estados de enlace son de tipo 1 LSA, la red link-estados son de tipo 2, y el resumen estados de enlace red son de tipo 3. Las columnas de base de datos contienen la informacin siguiente:

Link ID: Identifica cada LSA. ADV Router: Router Publicidad, el router origen de la LSA. Edad: El contador de edad mxima en segundos. La edad mxima es de 1 hora, o 3600 segundos. Sec. #: Nmero de orden de la LSA. Este nmero empieza en 0x80000001 y aumenta con cada actualizacin de la LSA. Checksum: suma de comprobacin de la LSA individuales para garantizar la recepcin segura de que LSA. Recuento Enlace: Nmero total de enlaces directamente conectados, utilizados slo en LSA del router. El nmero de enlaces incluye todo punto a punto, el trnsito, y los vnculos de cdigo auxiliar. Cada punto-a-punto de enlace serie cuenta como dos, todos los dems enlaces cuentan como uno, incluyendo enlaces Ethernet. La figura muestra la salida completa del comando show ip ospf base de datos.

3.6.5

3.6 3.6.5

Multiarea OSPF Operation Interpreting the Routing Table

Figure defines each of the routing table descriptors for OSPF. Router and network LSAs describe the details within an area. The routing table reflects this link-state information with a designation of O, meaning that the route is intra-area. When an ABR receives summary LSAs, it adds them to its LSDB and regenerates them into the local area. When an ABR receives external LSAs, it adds them to its LSDB and floods them into the area. The internal routers then assimilate the information into their databases. Summary LSAs appear in the routing table as IA (interarea routes). External LSAs appear in the routing table marked as external type 1 (E1) or external type 2 (E2) routes.

The SPF algorithm is then run against the LSDB to build the SPF tree. The SPF tree is used to determine the best paths. The order in which the best paths are calculated is as follows:

All routers calculate the best paths to destinations within their area (intra-area) and add these entries to the routing table. These are the type 1 and type 2 LSAs, which are noted in the routing table with a routing designator of O.

All routers calculate the best paths to the other areas within the internetwork. These best paths are the interarea route entries, or type 3 and type 4 LSAs, and are noted with a routing designator of O IA. All routers (except those that are in a form of stub area) calculate the best paths to the external autonomous system (type 5) destinations. These are noted with either an O E1 or an O E2 route designator, depending on the configuration. At this point, a router can communicate with any network within or outside the OSPF autonomous system.

3.6 multiarea OSPF Funcionamiento 3.6.5 Interpretacin de la tabla de enrutamiento Figura define cada uno de los descriptores de la tabla de enrutamiento de OSPF. Router y de la red LSAs describen los detalles dentro de un rea. La tabla de enrutamiento refleja esta informacin de estado de enlace con denominacin de O, lo que significa que la ruta es intra-zona. Cuando un ABR recibe LSA de resumen, se les aade a su LSDB y los regenera en el rea local. Cuando un ABR recibe LSA externos, los agrega a su LSDB y los inunda en la zona. Los routers internos luego asimilar la informacin en sus bases de datos. Resumen LSA aparecen en la tabla de enrutamiento como IA (rutas Interrea). LSA externos aparecen en la tabla de enrutamiento de marcado como tipo externo 1 (E1) o de tipo externo 2 (E2) rutas.

El algoritmo SPF se ejecuta entonces en el LSDB para construir el rbol SPF. El rbol SPF se utiliza para determinar los mejores caminos. El orden en el que se calculan los mejores caminos es la siguiente:

Todos los routers calcular las mejores rutas a destinos dentro de su rea (intra-zona) y aadir estas entradas a la tabla de enrutamiento. Estos son el tipo 1 y tipo 2 LSA, que se observa en la tabla de enrutamiento con un designador de ruta de O. Todos los routers calcular las mejores rutas a otras reas dentro de la red interna. Las mejores rutas son las entradas de ruta Interrea o tipo 3 y tipo 4 LSA, y se observaron con un designador de ruta de O IA. Todos los routers (excepto los que estn en una forma de rea de rutas internas) calcular las mejores rutas para el sistema autnomo externo (tipo 5) destinos. Estos se indican, ya sea con un O E1 o E2 designador de una ruta S, dependiendo de la configuracin.

En este punto, un router puede comunicarse con cualquier red dentro o fuera del sistema autnomo OSPF.

3.6.6

3.6 3.6.6

Multiarea OSPF Operation Calculating Costs for E1 and E2 Routes

The cost of an external route varies depending on the external type configured on the ASBR. The following external packet types can be configured, as shown in Figure : E1: Type O E1 external routes calculate the cost by adding the external cost to the internal cost of each link that the packet crosses. Use this type when there are multiple ASBRs advertising an external route to the same autonomous system to avoid suboptimal routing. E2 (default): The external cost of O E2 packet routes is just the external cost. Use this type if only one ASBR is advertising an external route to the AS. The show ip route command example in Figure depicts both external type routes (O E2) and interarea (O IA) routes.

The last entry (O E2) is an external route (from the ASBR, via the ABR). The two numbers in brackets, [110/50], are the administrative distance and the total cost of the route to a specific destination network. In this case, the administrative distance is set to a default of 110 for all OSPF routes, and the total cost of the route has been calculated as 50.

3.6 multiarea OSPF Funcionamiento 3.6.6 Clculo de Costos para E1 y E2 Rutas El coste de una ruta externa vara en funcin del tipo externo configurado en el ASBR. Los siguientes tipos de paquetes externos se pueden configurar, como se muestra en la Figura: E1: Type O E1 rutas externas calcular el costo mediante la adicin de los costes externos en el costo interno de cada enlace que el paquete atraviesa. Use este tipo cuando hay mltiples ASBRs publicidad de una ruta externa al mismo sistema autnomo para evitar enrutamiento subptimo. E2 (predeterminado): el costo externo de O E2 rutas paquete es slo el costo externo. Utilice este tipo si slo un ASBR es la publicidad de una ruta externa a la AS. El ejemplo del comando ip route muestra en la figura representa las dos vas de tipo externo (O E2) y las rutas entre zonas (O IA).

La ltima entrada (O E2) es una ruta externa (de la ASBR, a travs de la ABR). Los dos nmeros entre parntesis, [110/50], son la distancia administrativa y el costo total de la ruta a una red de destino especfica. En este caso, la distancia administrativa se establece en un valor predeterminado de 110 para todas las rutas OSPF, y el costo total de la ruta se ha calculado como 50.

3.6.7

3.6 3.6.7

Multiarea OSPF Operation Configuring OSPF LSDB Overload Protection

If other routers are misconfigured, a large number of LSAs might get generated. For example, a redistribution of a large number of prefixes can cause excessive LSAs to be generated, which can drain local CPU and memory resources on an OSPF router. You can configure OSPF LSDB overload protection with Cisco IOS Release 12.3(7)T and later (and some specific earlier releases) by using the max-lsa command. Figure lists the parameters of this command. When this feature is enabled, the router keeps count of the number of received (non-selfgenerated) LSAs that it keeps in its LSDB. An error message is logged when the configured threshold number is reached, and a notification is sent when the threshold number is exceeded.

If the LSA count still exceeds the threshold after one minute, the OSPF process takes down all adjacencies and clears the OSPF database. This is called the ignore state. In the ignore state, interfaces that belong to that OSPF process do not send or received OSPF packets.

The OSPF process remains in the ignore state for the time that is defined by the ignore-time parameter. The ignore-count parameter defines the maximum number of times that the OSPF process can consecutively enter the ignore state before remaining permanently down and requiring manual intervention.

If the OSPF process remains normal for the time that is defined by the reset-time parameter, the ignore state counter is reset to 0.

3.6 multiarea OSPF Funcionamiento 3.6.7 Configuracin de OSPF LSDB Proteccin de sobrecarga Si otros routers estn mal configurados, puede ser que consiga generar un gran nmero de LSA. Por ejemplo, una redistribucin de un gran nmero de prefijos puede causar excesivas LSA para ser generados, que pueden drenar la CPU local y los recursos de memoria en un router OSPF. Puede configurar OSPF proteccin de sobrecarga LSDB con Cisco IOS 12.3 (7) T y posteriores (y algunas versiones anteriores especficos) con el comando max-lsa. La figura muestra los parmetros de este comando. Cuando esta funcin est activada, el router mantiene un recuento del nmero de recibidas (no auto-generado) LSA que guarda en su LSDB. Un mensaje de error se registra cuando se alcanza el nmero mnimo configurado, y se enva una notificacin cuando se supere el umbral de nmero.

Si el recuento de LSA sigue superando el umbral despus de un minuto, el proceso OSPF lleva por todas las adyacencias y borra la base de datos OSPF. Esto se conoce como el estado de ignorar. En el estado de ignorar, las interfaces que pertenecen a ese proceso OSPF no envan o reciben paquetes OSPF.

El proceso de OSPF permanece en el estado para ignorar el tiempo que se define por el parmetro ignorar-tiempo. El parmetro ignorar-contar define el nmero mximo de veces que el proceso de OSPF puede introducir consecutivamente ignorar el estado antes de que queda permanentemente hacia abajo y que requiere intervencin manual.

Si el proceso de OSPF permanece normal durante el tiempo que se define por el parmetro de reset-tiempo, el contador de estado ignorar se pone a 0.

3.6.8

3.6 3.6.8

Multiarea OSPF Operation Changing the Cost Metric

By default, OSPF calculates the OSPF metric for an interface according to the inverse bandwidth of the interface. In general, the cost in Cisco routers is calculated using the formula (100 Mbps) / (bandwidth in Mbps). For example, a 64-kbps link gets a metric of 1562, a T1 link gets a metric of 64, and a Fast Ethernet link gets a metric of 1. The cost for interfaces with a bandwidth equal or larger than 108 bps is normalized to 1. If you have faster interfaces, you may want to recalibrate the cost of 1 to a higher bandwidth.

Figure displays various mediums with their associated metric cost.

When you are using the bandwidth of the interface to determine OSPF cost, always remember to use the bandwidth value interface command to accurately define the bandwidth of the interface (in kbps).

If interfaces that are faster than 100 Mbps are being used, you should use the auto-cost referencebandwidth ref-bw command on all routers in the network to ensure accurate route calculations. The ref-bw is a reference bandwidth in megabits per second, and ranges from 1 to 4,294,967. You must apply the same reference bandwidth to all OSPF routers in the domain to get the desired results.

To override the default cost, manually define the cost using the ip ospf cost interface-cost command on a per-interface basis. The cost value is an integer from 1 to 65,535. The lower the number, the better the link and more strongly preferred.

3.6 multiarea OSPF Funcionamiento 3.6.8 Cambio del Costo Metric Por defecto, OSPF calcula la mtrica OSPF para una interfaz de acuerdo con el ancho de banda inversa de la interfaz. En general, el coste en los routers Cisco se calcula utilizando la frmula (100 Mbps) / (ancho de banda en Mbps). Por ejemplo, un enlace de 64 kbps para crear una mtrica de 1562, un enlace T1 consigue una mtrica de 64, y un enlace Fast Ethernet consigue una mtrica de 1. El costo para las interfaces con un ancho de banda igual o mayor que 108 bps se normaliza a 1. Si dispone de interfaces ms rpidas, es posible que desee volver a calibrar el costo de 1 a un mayor ancho de banda.

La figura muestra varios medios con su costo mtrica asociada.

Cuando se utiliza el ancho de banda de la interfaz para determinar el costo OSPF, recuerda siempre utilizar el comando interface valor de ancho de banda para definir con precisin el ancho de banda de la interfaz (en kbps).

Si interfaces que son ms rpidos que se utilizan 100 Mbps, debe utilizar el comando auto-cost reference-bandwidth ref-pc en todos los routers de la red para asegurarse de clculos de ruta precisa. La ref-pc es un ancho de banda de referencia en megabits por segundo, y los rangos de 1 a 4.294.967. Debe aplicar el mismo ancho de banda de referencia a todos los routers OSPF en el dominio para obtener los resultados deseados.

Para anular el coste por defecto, defina manualmente el costo con el comando interface costo ip ospf cost en funcin de cada interfaz. El valor de coste es un nmero entero de 1 a 65535. Cuanto menor sea el nmero, mejor ser el enlace y ms fuertemente preferido.

Potrebbero piacerti anche