Chapter 1 - Notes Flashcards
What does OSPF utilizes for neighbor discovery?
hello packets (multicast IPv4 244.0.0.5 or IPv6 FF02::5)
What is the OSPF default hello_interval set to?
If a router does not receive a hello packet within 40 seconds (OSPF dead-interval is usually a multiple of the hello interval), the neighbor is removed from the the local neighbor table.
Explain the process of OSPF neighbor discovery.
When a neighbor is discovered, the two routers compare information in the hello packet to determine whether the routers have compatible configurations.
The neighbor routers attempt to establish adjacency, which means that the routers synchronize their link-state databases to ensure that they have identical OSPF routing information.
Adjacent routers share link-state advertisements (LSAs) that include information about the operational state of each link, the cost of the link, and any other neighbor information. When all OSPF routers have identical link-state databases, the network is converged.
Each router then uses Dijkstra’s Shortest Path First (SPF) algorithm to build its route table.
What are the 6 key differences between OSPFv3 and OSPFv2 protocols?
“1. OSPFv3 provide support for IPv6 routing prefixes and the larger size IPv6 addresses, OSPF Hello address FF02::5.
- LSAs in OSPFv3 are expressed as prefix and prefix length instead of address and mask.
- The router ID and area ID are 32 bit numbers with no relationship to IPv6 addresses.
- OSPFv3 uses link-local IPv6 for neighbor discovery and other features.
- OSPFv3 can use the IPv6 authentication trailer (RFC 6506) or IPSec (RFC 4552) for authentication. However, neither are these options is supported on Cisco NX-OS.
- Bidirectional Forwarding Detection (BFD) is supported in OSPFv2 only.”
How can you control the flooding rate of LSA updates?
“LSA group pacing feature
LSA group pacing can reduce high CPU or buffer usage by grouping LSAs with similar link-state referesh times to allow OSPF to pack multiple LSAs into an OSPF update message.”
OSPF Area
An area is a logical division of routers and links within an OSPF domain that creates subdomains. LSA flooding is contained within an area. The link-state database is limited to links within the area. You can assign an area ID to the interfaces within the defined area either by entering as a 32-bit value numnber or in dotted-decimal notation.
What’s an ABR and what does it do?
If you have more than one area, one or more routers become area border routers (ABRs). An ABR connects to both the backbone area and at least one other defined area.
The ABR has a separate link-state database for each area to which it connects. The ABR sends Network Summary (type 3) LSAs from one connected area to the backbone area. The backbone area sends summarized information about one area to another area.
What’s an ASBR?
OSPF defines another router type as an autonomous system boundary router (ASBR). This router connects an OSPF area to another autonomous system. An autonomous system is a network controlled by a single technical administration entity. OSPF can redistribute its routing information into another autonomous system or receive redistributed routes from another autonomous system.
What’s a stub area?
You can limit the amount of external routing information that floods an area by making it a stub area. A stub area is an area that does not allow AS External (type 5) LSAs. These LSAs are usually flooded throughout the local autonomous system to propagate external route information. Stub areas have the following requirements:
- All routers in the stub area are stub routers.
- No ASBR routers exist in the stub area.
- You cannot configure virtual links in the stub area.
Stub areas use a default route for all traffic that needs to go through the backbone area to the external autonomous system.
What’s an NSSA?
There is an option to allow OSPF to import autonomous system external routes within a stub area; this is a not-so-stubby area (NSSA). An NSSA is similar to a stub area, except that an NSSA allows you to import autonomous system (AS) external routes within an NSSA using redistribution. The NSSA ASBR redistributes these routes and generates NSSA External (type 7) LSAs that it floods throughout the NSSA.
You can optionally configure the ABR that connects the NSSA to other areas to translate this NSSA External LSA to AS External (type 5) LSAs. The ABR then floods these AS External LSAs throughout the OSPF autonomous system. Summarization and filtering are supported during the translation. You can, for example, use NSSA to simplify administration if you are connecting a central site using OSPF to a remote site that is using a different routing protocol. Before NSSA, the connection between the corporate site border router and a remote router could not be run as an OSPF stub area because routes for the remote site could not be redistributed into a stub area. With NSSA, you can extend OSPF to cover the remote connection by defining the area between the corporate router and remote router as an NSSA.
What’s a virtual link?
All OSPF areas must physically connect to area 0 (backbone area). If one area cannot connect directly to area 0, you need a virtual link. Virtual links allow you to connect an OSPF area ABR to a backbone area ABR when a direct physical connection is not available.
You can also use virtual links to temporarily recover from a partitioned area, which occurs when a link within the area fails, isolating part of the area from reaching the designated ABR to the backbone area.
DR and BDR
OSPF routers with the broadcast network type will flood the network with LSAs. The same link-state information needs to be sent from multiple sources. For this type, OSPF uses a single router, the designated router (DR), to control the LSA floods and represent the network to the rest of the OSPF area. If the DR fails, OSPF selects a backup designated router (BDR). If the DR fails, OSPF uses the BDR.
Network types are as follows:
- Point-to-point: A network that exists only between two routers. All neighbors on a point-to-point network establish adjacency, and there is no DR required.
- Broadcast: A network with multiple routers that can communicate over a shared medium that allows broadcast traffic, such as Ethernet. OSPF routers establish a DR and BDR that control LSA flooding on the network. OSPFv2 uses the well-known IPv4 multicast address 224.0.0.5 and the MAC address 0100.5300.0005 to communicate with neighbors, and OSPFv3 uses the well-known IPv6 multicast address FF02:: 5 and the MAC address 0100.5300.0005 to communicate with neighbors.
What port does BGP?
TCP port 179
BGP peering
BGP peering does not happen dynamically. It has to be configured manually. A BGP peer is a peer that has an active TCP connection to another BGP spearker.
Once peering is established, exchange of the complete BGP routing table occurs with the other peer. After, only incremental updates are sent when a topology change or routing policy change occurs.
Keepalives are sent to maintain the peering in the periods of inactivity between updates. Cisco NX-OS supports the following peer configuration options:
- Individual IPv4 or IPv4 address: BGP establishes a session with the BGP speaker that matches the remote address and AS number.
- IPv4 or IPv6 prefix peers for a single AS number: BGP establishes sessions with BGP speakers that match the prefix and the AS number.
- Dynamic AS number prefix peers: BGP establishes sessions with BGP speakers that match the prefix and an AS number from a list of configured AS numbers.
To establish BGP sessions between peers, BGP must have a router ID, which is sent to BGP peers in the OPEN message when a BGP session is established. If BGP does not have a router ID, it cannot establish any peering sessions with BGP peers. You can configure the router ID. By default, Cisco NX-OS sets the router ID to the IPv4 address of a loopback interface on the router. If no loopback interface is configured on the router, the software chooses the highest IPv4 address configured to a physical interface on the router to represent the BGP router ID. The BGP router ID must be unique to the BGP peers in a network.
BGP Path Selection
The best-path algorithm runs each time a path is added or withdrawn for a given network. The best-path algorithm also runs if you change the BGP configuration. BGP selects the best path from the set of valid paths available for a given network. Cisco NX-OS implements the BGP best-path algorithm in the following steps.
- Comparing pairs of paths
- Determining the order of comparisons
- Determining the best-path change suppression