Unit5 Part1
Unit5 Part1
Network Layer:
Delivery, Forwarding,
and Routing
22.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
22-1 DELIVERY
22.2
Figure 22.1 Direct and indirect delivery
22.3
22-2 FORWARDING
22.4
Figure 22.2 Route method versus next-hop method
22.5
Figure 22.3 Host-specific versus network-specific method
22.6
Figure 22.4 Default method
22.7
Figure 22.5 Simplified forwarding module in classless address
22.8
Note
22.9
Example 22.1
Solution
Table 22.1 shows the corresponding table.
22.10
Figure 22.6 Configuration for Example 22.1
22.11
Table 22.1 Routing table for router R1 in Figure 22.6
22.12
Example 22.2
Solution
The router performs the following steps:
1. The first mask (/26) is applied to the destination
address. The result is 201.4.22.0, which does not
match the corresponding network address.
2. The second mask (/25) is applied to the destination
address. The result is 201.4.22.0, which does not
match the corresponding network address (row 2).
22.14
Example 22.3 (continued)
22.15
Example 22.4
Solution
This time all masks are applied, one by one, to the
destination address, but no matching network address is
found. When it reaches the end of the table, the module
gives the next-hop address 180.70.65.200 and interface
number m2 to ARP. This is probably an outgoing
package that needs to be sent, via the default router, to
someplace else in the Internet.
22.16
Figure 22.7 Address aggregation
22.17
Figure 22.8 Longest mask matching
22.18
Example 22.5
The second local ISP has divided its block into 4 blocks
and has assigned the addresses to four large
organizations.
The third local ISP has divided its block into 16 blocks
and assigned each block to a small organization. Each
small organization has 256 addresses, and the mask is
/24.
There is a sense of hierarchy in this configuration. All
routers in the Internet send a packet with destination
address 120.14.64.0 to 120.14.127.255 to the regional
ISP.
22.20
Figure 22.9 Hierarchical routing with ISPs
22.21
Figure 22.10 Common fields in a routing table
22.22
22-3 UNICAST ROUTING PROTOCOLS
A routing table can be either static or dynamic. A
static table is one with manual entries. A dynamic
table is one that is updated automatically when there is
a change somewhere in the Internet. A routing
protocol is a combination of rules and procedures that
lets routers in the Internet inform each other of
changes.
Topics discussed in this section:
Optimization
Intra- and Interdomain Routing
Distance Vector Routing and RIP
Link State Routing and OSPF
Path Vector Routing and BGP
22.23
Figure 22.12 Autonomous systems
22.24
Figure 22.13 Popular routing protocols
22.25
Figure 22.14 Distance vector routing tables
22.26
Note
22.27
Figure 22.15 Initialization of tables in distance vector routing
22.28
Figure 22.16 Updating in distance vector routing
22.29
Figure 22.20 Concept of link state routing
22.30
Figure 22.21 Link state knowledge
22.31
Figure 22.22 Dijkstra algorithm
22.32
Figure 22.23 Example of formation of shortest path tree
22.33
Table 22.2 Routing table for node A
22.34