CSNETWK 06 Routing Forwarding Summary
CSNETWK 06 Routing Forwarding Summary
• To determine the best path among these routes, the routing protocol evaluates
and distinguishes between them using routing metrics.
• When multiple paths to the same remote network exist, routing metrics are used
to calculate the overall 'cost' of each path from source to destination. Routing
protocols select the best path by choosing the route with the lowest cost.
ROUTING PROTOCOL METRICS
Routing protocols employ various metrics that are • Both RIP and OSPF routing protocols are
specific to each protocol. These metrics are not directly enabled on R1.
comparable across different routing protocols, which
means that two different protocols may choose • RIP determines the best route based on the
different paths to reach the same destination. For fewest number of hops. Therefore, when a packet
instance, consider the scenario where PC1 needs to arrives at R1 destined for PC2, it would choose
send a packet to PC2: to send it directly to R2, even though this link
172.16.1.0/24 may be slower than others.
PC2 • In contrast, OSPF selects the best route based on
the highest available bandwidth. Thus, when a
packet arrives at R1 for PC2, OSPF would direct
OSPF
RI
R2 link.
56kbps • In summary, RIP prioritizes the shortest hop
PC1 OSP
count path, while OSPF prioritizes faster links.
R1 R3
F
172.16.3.0/24
ROUTING INFORMATION
PROTOCOLS
• RIPv1 broadcasts updates to all its neighbors using the all-hosts IPv4
address 255.255.255.255.
Eventually, all routers receive an LSP from every other link state router in the
routing area. These LSPs are stored in the link state database.
SHORTEST PATH (FROM R1)
10.5.0.0/16
Destination Shortest Path Cost Using link state
2 10.5.0.0/16 R1 → R2 22 information from all
10.6.0.0/16 R1 → R3 7 other routers, R1 begins
10.2.0.0/16
R2
10.7.0.0/16
10.8.0.0/16
R1 → R3
R1 → R3→R4
15
17
constructing an SPF tree
10 10.9.0.0/16
20 10.9.0.0/16 R1→R2 30 of the network. The SPF
10.6.0.0/16 10.11.0.0/16 10.10.0.0/16 R1 → R3→R4 25 algorithm initially
2 5 2 10.11.0.0/16
R1 → R3→R4
→R5 27 examines each router's
R1 10.3.0.0/16 R3 2 R5 Link State Packet (LSP) to
10.1.0.0/16 10 Each router within identify networks and
20 10 10.7.0.0/16
10.10.0.0/16 the OSPF routing their associated costs. It
10.4.0.0/16
area utilizes the link then computes the
shortest paths to each
R4
state database and network, resulting in the
2 SPF (Shortest Path creation of the SPF tree.
10.8.0.0/16 First) algorithm to
construct the SPF
tree.