Unicast Routing Protocols: Rip, Ospf, and BGP
Unicast Routing Protocols: Rip, Ospf, and BGP
Initialization
Sharing
Updating
When to Share
Two-Node Loop Instability
Three-Node Instability
Note the
metric used
here for Cost
is simply the
hop count.
Each router floods this info (via a Link State Packet) to other
routers periodically (when there is a change in the topology,
or every 60 to 120 minutes).
A network with several routers attached to it; all LANs and some WANs
have transient links; b. is unrealistic because too many advertisements.
In c., one of the routers also becomes labeled the designated router.
The link state update packets are the most important, but see
the next slide.
Type 1 2 3 4 5
When a router
Establishes
just came up, it
and maintains
cannot wait for all
neighbor
link state packets.
relationships.
Neighbors will
send it a database Requests pieces of the •Ack-
description (not topological database from nowledges
the full database neighbor routers. These link-state
but like an messages are exchanged update
outline). From after a router discovers packets.
this, the router (by examining database-
can then ask for description packets) that
information it parts of its topological
TCP/IP Protocol Suite
does not have. database are out of date. 33
Figure 14.26 OSPF common header
Actually 64 bits
So this common header is 24 bytes total length
Note that this packet contains one or more LSAs (the yellow
part).
•Router Links (RL) (Type 1) are generated by all routers. These links describe the
state of the router interfaces inside a particular area. These links are only flooded
inside the router's area.
•Network Links (NL) (type 2) are generated by a DR (Designated Router) of a
particular segment; these are an indication of the routers connected to that
segment.
•Summary Links (SL) are the inter-area links (type 3); these links will list the
networks inside other areas but still belonging to the autonomous system.
Summary links are injected by the ABR (Area Border Router) from the backbone
into other areas and from other areas into the backbone. These links are used for
aggregation between areas.
•AS boundary router summary links are type 4 links that point to the ASBR
(Autonomous System Boundary Router). This is to make sure that all routers know
the way to exit the autonomous system.
•External Links (EL) (type 5), these are injected by the ASBR into the domain.
Default type
For what to enter in Link ID, Link data,
of service, foll.
and Link type, see the next slide.
by other types
TCP/IP Protocol Suite 39
of service
Table 14.2 Link types, link identification, and link data
Solution
This router has three links: two of type 1 (point-to-
point) and one of type 3 (stub network). Figure 14.32
shows the router link LSA.
See Figure 14.32
Solution.
Solution
All routers advertise router link LSAs.
a. R1 has two links, N1 and N2.
b. R2 has one link, N1.
c. R3 has two links, N2 and N3.
Solution
All three network must advertise network links:
a. Advertisement for N1 is done by R1 because it is the only
attached router and therefore the designated router.
b. Advertisement for N2 can be done by either R1, R2, or R3,
depending on which one is chosen as the designated router.
c. Advertisement for N3 is done by R3 because it is the only
attached router and therefore the designated router.
TCP/IP Protocol Suite 51
Figure 14.38 Summary link to network LSA (third kind of LSA)
The speaker node advertises the path, not the metric of the nodes.