Routing Protocols Flashcards
OSPF Adjacency
When OSPF neighbors have synchronised link-state databases.
OSPF Hello packets
Sent out on each OSPF-enabled interface to discover neighbour routers and for keep-alive
What are LSAs and their use?
Link-state advertisement, used to build routing tables in an OSPF area.
What is the name for OSPFv2 Type 1 LSA?
Router LSA
Which routers send OSPFv1 Type 1 LSAs?
This LSA is sent by every OSPF router in the network.
What is the name for OSPFv2 Type 2 LSA?
Network LSA
What is the name for OSPFv2 Type 3 LSA?
Network Summary LSA
What is the name for OSPFv2 Type 4 LSA?
Autonomous System Boundry Router (ASBR) Summary LSA
What is the name for OSPFv2 Type 5 LSA?
AS External LSA
What is the OSPFv2 Type 6 LSA?
Retired - was designed for multicast OSPF
What is the name for OSPFv2 Type 7 LSA?
Not-so-stubby Area (NSSA) External LSA
What are the Opaque LSAs?
Type 9 - 11 LSAs.
What is LSA Group Pacing?
Groups LSAs with similar refresh times and packs into a single OSPF update message.
What is an OSPF Area?
Logical division of routers and links within an OSPF domain.
What is the OSPF Backbone Area?
Area with a reserved ID of 0 or 0.0.0.0. which connects to all other areas in the OSPF domain.
What is an OSPF ABR?
Area Border Router
What is an OSPF ASBR?
Autonomous System Boundary Router
What is a Stub Area?
An area that does not allow AS External Type 5 LSAs.
What is a Not-so-stubby Area (NSSA)?
A stub area that is configured to allow the importing of AS external routes using redistribution.
What is an OSPF Virtual Link?
Allows an ABR to connect to the backbone area where no physical connection is possible.
What is an OSPF Designated Router (DR)
Used in a broadcast network to control LSA flooding and represent the network to the rest of the area.
OSPF Broadcast network type
Multiple routers communicating over a shared medium such as ethernet.
OSPF Point-to-point network type
Exists only between two routers, such as a single l3 link.
How does OSPF Simple password authentication work?
Cleartext password sent as part of the OSPFv2 message.
How does OSPF MD5 authentication digest work?
An MD5 digest based on the message and the encrypted password is sent with the OSPF update.
What is BGP?
Border Gateway Protocol, a dynamic routing protocol that uses a path vector algorithm to exchange routing information between speakers.
BGP AS (Autonomous System)
A routing domain with one or more interior gateway protocols (IGPS) and a consistent set of routing policies.
What are BGP peers?
BGP peers are speakers that have been configured to communicate and have an active TCP connection with each other.
What are the three BGP Peer configuration options supported by NXOS?
IP address and single AS number
Prefix and single AS number
Prefix and multiple AS numbers
What is the BGP Router ID?
32-bit value often represented by an IPv4 address that must be unique to the BGP peers on the network.
BGP Path Selection Algorithm
Runs each time a path is added or removed for a given network, or if BGP configuration is changed.
Steps:
1 - Valid path (e.g. next-hop is reachable)
2 - Highest weight
3 - Highest local preference
4 - Locally originated
5 - Shortest AS path
6 - Lowest origin type (e.g. IGP over EGP)
7 - Lowest Multi-exit discriminator (MED)
8 - eBGP or iBGP
9 - Lowest IGP metric
10 - Last selection in best-path algorithm
11 - Shortest cluster length
12 - Lowest peer IP address
Multiprotocol BGP (MBGP)
Supports multiple address families, e.g. one set of routes for IPv4 unicast, one for IPv4 multicast and one for IPv6 unicast
Configuring OSPFv2
feature ospf (requires Enterprise Services Package license) ! router ospf 1 router-id 1.1.1.1 log-adjacency-changes auto-cost reference-bandwidth 100 Gbps ! interface vlan 30,40 ip router ospf 1 area 1 ! interface ethernet 2/1 ip router ospf 1 area 0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 cisco
Configuring OSPFv3
feature ospfv3 ! router ospfv3 1 router-id 1.1.1.1 log-adjacency-changes auto-cost ref-bandwidth 100 Gbps (sets the reference bandwidth to calculate the default metrics for an interface, default is 40 Gbps so must be set higher if there are interfaces with bandwidth greater than that) ! interface vlan 30, 40 ip router ospfv3 1 area 1 ! interface ethernet 2/1 ip router ospfv3 1 area 0
OSPF and BFD
Detects an outage between two adjacent devices.
Layer 1 mechanisms are unreliable in detecting the loss of a link or neighbouring device, e.g. WAN or switch between peers goes down.
L3 protocols use hello mechanism to detect the loss of a neighbor to acheive fast convergence.
BFD provides sub second failure detection between two adjacent devices.
BFD Neighbor Session
OSPF discovers a neighbour.
OSPF sends a request to the local BFD process to initiaite a BFD neighbor session with the OSPF neighbor router.
The BFD neighbor session with the OSPF neighbor router is established.
BFD OSPF Convergence
A failure occurs in the network
The BFD neighbor session with the OSPF neighbor router is torn down.
BFD notifies the local OSPF process that the BFD neighbor is no longer reachable.
The local OSPF process tears down the OSPF neighbor relationship.
4 steps for configuring BFD
Disable address identical IDS check
Enable BFD feature
Disable ICMP redirects on any interfaces that use BFD
Enable BFD for the required L3 protocol.
Configuration example BFD
no hardware ip verify address (disable IDS check) ! feature bfd ! interface ethernet 1/2-4 no ip redirects (disable ICMP redirects) ! router ospf 1 bfd ! interface vlan 10 no ip redirects no ipv6 redirects hsrp bfd
MP-BGP
MP-BGP supports multiple address families carryingg different sets of routes
BGP can carry one set of routes for a variety of protocols (ipv4 unicast, ipv4 multicast, ipv6 unicast, ipv6 multicast,etc)
MP-BGP maintains a separate Routingg Information Base (RIB) for each configured address family
MP-BGP Configuration Example
router bgp 62000
neighbor 192.168.1.2 remote-as 22003
address-family ipv4 multicast
address-family ipv6 multicast
MP-BGP template example
router bgp 61000 template peer-policy BasePolicy maximum-prefix 20 ! neighbor 192.168.1.1 remote-as 61001 address-family ipv4 unicast inherit peer-policy BasePolicy