Network Layer
Network Layer
Network Layer
1
Network layer duties
Chapters
2
Chapter 19
Host-to-Host
Delivery:
Internetworking,
Addressing,
and Routing
19.1 Internetworks
3
Figure 19.1 Internetwork
4
Figure 19.3 Network layer in an internetwork
5
Figure 19.5 Network layer at a router
6
Figure 19.7 Switching
7
Note:
Note:
8
19.2 Addressing
Internet Address
Classful Addressing
Subnetting
Supernetting
Classless Addressing
Dynamic Address Configuration
Network Address Translation
Note:
9
Note:
10
Note:
Example 1
Change the following IP addresses from binary notation to dotted-
decimal notation.
a. 10000001 00001011 00001011 11101111
b. 11111001 10011011 11111011 00001111
11
Example 2
Change the following IP addresses from dotted-decimal notation to
binary notation.
a. 111.56.45.78
b. 75.45.34.78
Note:
12
Figure 19.10 Finding the class in binary notation
13
Example 3
Find the class of each address:
a. 00000001 00001011 00001011 11101111
b. 11110011
1111 10011011 11111011 00001111
14
Example 4
Find the class of each address:
a. 227.12.14.87
b. 252.5.15.111
c. 134.11.78.56
15
Figure 19.14 Blocks in class A
Note:
16
Figure 19.15 Blocks in class B
Note:
17
Note:
18
Figure 19.17 Network address
Note:
19
Example 5
Given the address 23.56.7.91, find the network address.
Example 6
Given the address 132.6.17.85, find the network address.
20
Example 7
Given the network address 17.0.0.0, find the class.
Note:
21
Figure 19.18 Sample internet
Note:
22
Figure 19.19 A network with two levels of hierarchy
23
Figure 19.21 Addresses in a network with and without subnetting
24
Table 19.1 Default masks
In Dotted-
Class In Binary Using Slash
Decimal
Note:
25
Example 8
A router outside the organization receives a packet with destination
address 190.240.7.91. Show how it finds the network address to
route the packet.
26
Example 9
A router inside the organization receives the same packet with
destination address 190.240.33.91. Show how it finds the
subnetwork address to route the packet.
27
Table 19.2 Default masks
Range Total
28
Figure 19.26 Address translation
29
Table 19.3 Five-
Five-column translation table
Private Private External External Transport
Address Port Address Port Protocol
19.3 Routing
Routing Techniques
30
Figure 19.28 Next-hop routing
31
Figure 19.30 Host-specific routing
32
Figure 19.32 Classful addressing routing table
Example 10
Using the table in Figure 19.32, the router receives a packet for
destination 192.16.7.1. For each row, the mask is applied to the
destination address until a match with the destination address is
found. In this example, the router sends the packet through
interface m0 (host specific).
33
Example 11
Using the table in Figure 19.32, the router receives a packet for
destination 193.14.5.22. For each row, the mask is applied to the
destination address until a match with the next-hop address is
found. In this example, the router sends the packet through
interface m2 (network specific).
Example 12
Using the table in Figure 19.32, the router receives a packet for
destination 200.34.12.34. For each row, the mask is applied to the
destination address, but no match is found. In this example, the
router sends the packet through the default interface m0.
34