Forouzan6e ch08 PPTs Accessible
Forouzan6e ch08 PPTs Accessible
Chapter 08
Network Layer:
Routing of Packets
Data Communications and
Networking, With TCP/IP
protocol suite
Sixth Edition
Behrouz A. Forouzan
© 2022 McGraw Hill, LLC. All rights reserved. Authorized only for instructor use in the classroom.
No reproduction or further distribution permitted without the prior written consent of McGraw Hill, LLC.
Chapter 8: Outline
8.1 Introduction
To create a least-cost tree for itself, using the shared LSDB, each
node needs to run the famous Dijkstra Algorithm. This iterative
algorithm uses the following steps:
1. The node chooses itself as the root of the tree, creating a tree
with a single node, and sets the total cost of each node based
on the information in the LSDB.
2. The node selects one node, among all nodes not in the tree,
which is closest to the root, and adds this to the tree.
3. The node repeats step 2 until all nodes are added to the tree.
Figure 8.16 shows the three forwarding tables for the routers in
Figure 8.15. Note that the first and the third columns together
convey the same information as does a distance vector, but the cost
shows the number of hops to the destination networks.
• Update Messages
• Convergence of Forwarding Tables
• Robustness
In OSPF, like RIP, the cost of reaching a destination from the host
is calculated from the source router to the destination network.
However, each link (network) can be assigned a weight based on
the throughput, round-trip time, reliability, and so on.
Each OSPF router can create a forwarding table after finding the
shortest-path tree between itself and the destination using
Dijkstra’s algorithm, described earlier in the chapter. Figure 8.20
shows the forwarding tables for the simple AS in Figure 8.19.
Each OSPF router can create a forwarding table after finding the
shortest-path tree between itself and the destination using
Dijkstra’s algorithm, described earlier in the chapter. Figure 8.20
shows the forwarding tables for the simple AS in Figure 8.19.
Attention
Attention
Update Messages
The link-state messages in OSPF have a somewhat complex format. They
also are flooded to the whole area. If the area is large, these messages may
create heavy traffic and use a lot of bandwidth.
Robustness
The OSPF protocol is more robust than RIP because, after receiving the
completed LSDB, each router is independent and does not depend on other.
RPB does not multicast the packet, it broadcasts it. This is not
efficient. To increase efficiency, the multicast packet must reach
only those networks that have active members for that particular
group. This is called reverse path multicasting (RPM). To change
the broadcast shortest-path tree to a multicast shortest-path tree,
each router needs to prune (make inactive) the interfaces that do
not reach a network with active members corresponding to a
particular source-group combination.
www.mheducation.com
© 2022 McGraw Hill, LLC. All rights reserved. Authorized only for instructor use in the classroom.
No reproduction or further distribution permitted without the prior written consent of McGraw Hill, LLC.