Академический Документы
Профессиональный Документы
Культура Документы
Used to be Cisco Proprietary IGP. Now, Cisco opened it up to 3rd party vendors as
well.
Very Fast Convergence. Let us say we have more than one path to the destination
and if the primary path fails, it could converge quick and use the backup path.
Very scalable
Load balancing over unequal cost links. Using variance option. OSPF cannot do.
Classless VLSM support. We can advertise information about the subnet.
Multicast destination IP: 224.0.0.10
Administrative Distance – 90.
Components of EIGRP:
EIGRP Timers:
When interface goes down, router realizes the networks advertised earlier by that
corresponding other end router is not anymore reachable through that device and
the action is immediate.
When interface is up/up but the how to determine if the EIGRP speaking neighbor is still up
or not?
HELLO Timer – 5 seconds (LAN) – Tells how often should I send HELLOs
HOLD Timer - 15 seconds – Tells my neighbor how long it needs to wait for
receiving a HELLO.
Timers are adjustable. Timers need not match with the neighbors unlike OSPF. HOLD Time –
If you as my neighbor do not hear from me for 15 seconds, then bring the neighbourship
with me down.
Hello
Update
Query
Reply
ACK (Acknowledgement)
Hello packets are used for neighbor discovery. As soon as you send hello packets and receive
them your EIGRP routers will try to form the neighbor adjacency.
Update packets have routing information and are sent reliable to whatever router that
requires this information. Update packets can be sent to a single neighbor using unicast or to
a group of neighbors using multicast.
Query packets are used when your EIGRP router has lost information about a certain network
and doesn’t have any backup paths. What happens is that your router will send query packets
to its neighbors asking them if they have information about this particular network.
Reply packets are used in response to the query packets and are reliable.
ACK packets are used to acknowledge the receipt of update, query and reply packets. ACK
packets are sent by using unicast.
Not all of the following metrics are used. Only bandwidth & delay. Look into the
default K values.
B – Bandwidth
D – Delay
L – Load
R – Reliability
M – MTU
An EIGRP route is a feasible successor route if its / advertised distance from our
neighbor is less than the feasible distance (FD) of the successor route.
Basic Configuration:
Router ID – 32 bit value if not statically configured is the highest IPv4 address on
an up / up loopback interface or the non-loopback interface.
EIGRP has a feasibility successor route in an event that the successor route goes
down.
However, in some cases there does not a feasible successor route. What happens
when the successor route goes down then?
Going active for a route – When an EIGRP speaking router sends one or more query
messages to its EIGRP speaking neighbors in an attempt to find an alternate path to
a network that is no longer available.
Queries are further sent by the neighboring router to its EIGRP speaking neighbors
and so on.
While this querying is going on, the router that initiated the query is ACTIVE state.
If the router does not get a reply to its query within 3 minutes, then it considers that
router to be down. Let’s say one of the downstream query reply is dropped and the
initial router is stuck in active state.
With changes, now, if in 90 seconds the router does not hear a reply for the query
that it sent, it sends a SIA query. If it receives the reply for SIA query, then the
router does not break the adjacency.
One way to limit the scope of SIA queries is by using stub routing.
Queries not sent from non-stub routers to stub routers.
Stub router is not going to advertise routes from one EIGRP neighbor to another
EIGRP neighbor.
For example, if router A learns about network B from Router B, it does not advertise
that to Router C and vice-versa.
Config: eigrp stub [option]
Options:
o Connected – Stub router advertises connected routes matched with a network
command.
o Summary – Stub router advertises summarized routes
o Static – The stub router advertises statically configured routes, if the
redistribute static command has been configured.
o Leak-map name - The stub router’s dynamic prefixes are based on a leak-
map.
o Redistributed – The stub router advertises any redistributed routes
o Receive-only – Stub router does not advertise any routes
Using the network command, HELLO packets are sent out the connected interfaces that are
matched with it. It may include those interfaces where neighbourship is not required but
only that subnet should be advertised. By making the interface as PASSIVE, it doesn’t send
any EIGRP HELLOs.
Variance:
Open Standard.
Link State and is NOT distance vector.
Establishes adjacencies with other routers. (Adjacency vs Neighbourship)
Sends LSAs to other routers in an area.
Constructs a Link State database from received LSAs.
Runs the Dijkstra’s algorithm to determine the shortest path to a network.
Attempt to inject the best path for each network into a router’s IP routing table.
OSPF AD – 110
Send HELLO packets to 224.0.0.5
Neighbourship vs Adjacency:
HELLO Interval
DEAD Interval
Area ID
Subnet Mask
Stub Area Flag
Authentication
HELLO
Database Description (DBD)
Link State Request
Link State Update
Link State Acknowledgement
Forming an adjacency:
Down
Attempt - only when statically defined a neighbor. E.g. NBMA. Trying to send HELLO to that
neighbor but not getting any HELLO from him.
Init – Sending OSPF HELLOs to 224.0.0.5 but still doesn’t see its own router ID
2-Way – Now sees itself in the OSPF HELLO sent by the neighbor
Exstart – Select a DR / BDR if ethernet network. Select Master / Slave.
Exchange – Exchange Database Descriptor (DBD) packets between each other. DBD has
the list of LSAs known to the router that sends it.
Loading – Sending Link State Request (LSR) and Link State Update (LSU) in return.
Full – OSPF adjacency fully established.
OSPF Areas:
Configuration:
router ospf 1
network 192.168.1.0 0.0.0.255 area 1
network 1.1.1.1 0.0.0.0.0 area 1
network 10.0.0.0 0.0.0.255 area 1
DR and BDR:
How a DR is elected?
OSPF Timers:
Router LSA:
Each router creates a Type 1 LSA for itself and floods it throughout the same
area.
Network LSA:
Type 2 LSA is generated for multi-access networks. To properly map all the
connected routers to a single multi-access network like LAN.
Summary LSA:
Not advertising Type 1 and 2 LSAs across areas saves memory and reduces the
complexity for each run of the SPF algorithm.
Type 3 does not contain all the detailed topology information.
Type 3 LSA consists of each subnet and cost to reach that subnet from that ABR.
Summarizes the information from Type 1 and Type 2 LSAs.
When no DR exist, the next step is that neighbors want to start with LSDB exchange. They
use the following general process:
The router goes into ExStart state as soon as the DBD message is received.
Election is held for Master and Slave.
Router with higher RID is elected as master.
DD packets are sent using multicast IP address 224.0.0.5.
After Master / Salve election, the neighbor transitions into the Exchange state.
Periodic Flooding:
OSPF re-floods each LSA every 30 minutes based on each LSAs variable.
The router that creates the LSA sets this age to 0 seconds.
When no changes to the LSA occur for 30 minutes, the owning router increments
the sequence number, resets the timer to 0 and re-floods the LSA.
OSPF E1 vs E2 routes:
When you redistribute a route say EIGRP / RIP etc. into OSPF, by default it is
Type 2 route with a cost of 20. It creates a Type 5 LSA. Type 2 route says don’t
change the cost that am advertising to you. While Type 1 could take the cost
from the one that ASBR advertises and you could calculate the cost that is
needed to reach the ASBR as well.
OSPF cannot have different link state databases within an area. Cannot filter
selective routes for OSPF database.
Just because OSPF knows the route, there is no guarantee that it will be installed
into the IP routing table.
Using distribute-list we can block the route to be injected into the IP routing table
but not altering the LSDB.
We can configure filter-lists to filter LSAs. Create a prefix-list and apply it as a
filter-list under the OSPF process.
Open Message – BGP version number, Local AS number, Hold Time, BGP Router ID,
Optional parameters.
Keepalive Message – A message header that keeps the HOLD timer from expiring.
Update Message – Can contain withdrawn routes, path attributes and NLRI.
Notification Message – Contains an error code, error subcode information about the error.
Reduces a BGP router’s CPU load by creating an update once per group, rather
than once per neighbor.