Module 3
Module 3
Introduction
to
Network
Layer
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 18: Outline
18.7
18.18.1 Packetizing
18.8
18.18.2 Routing and Forwarding
18.10
18.18.3 Other Services
18.11
18-2 PACKET SWITCHING
When the Internet started, to make it simple, the network layer was
designed to provide a connectionless service in which the network-layer
protocol treats each packet independently, with each packet having no
relationship to any other packet(Independent). The idea was that the
network layer is only responsible for delivery of packets from the source
to the destination. In this approach, the packets in a message may or may
not travel the same path to their destination. Figure 18.3 shows the idea..
18.13
Figure 18.3: A connectionless packet-switched network
18.14
Figure 18.4: Forwarding process in a router when used in a
connectionless network
SA DA Data SA DA Data
18.15
18.2.2 Virtual-Circuit Approach
18.16
Figure 18.5: A virtual-circuit packet-switched network
Virtual Circuit identifier
18.17
Figure 18.6: Forwarding process in a router when used in a
virtual
circuit network
Incoming Outgoing
label label
18.18
Figure 18.7: Sending request packet in a virtual-
circuit network
A to B
A to B
A to B A to B
18.19
Figure 18.8: Sending acknowledgments in a virtual-circuit
network
18.20
Figure 18.9: Flow of one packet in an established virtual
circuit
18.21
18-4 IPv4 ADDRESSES
A protocol like IPv4 that defines addresses has an address space. An address
space is the total number of addresses used by the protocol. If a protocol uses
b bits to define an address, the address space is 2b because each bit can have
two different values (0 or 1). IPv4 uses 32-bit addresses, which means that the
address space is 232 or 4,294,967,296 (more than four billion). If there were
no restrictions, more than 4 billion devices could be connected to the Internet.
18.23
Figure 18.16: Three different notations in IPv4
addressing
18.24
Figure 18.17: Hierarchy in addressing
18.25
18.4.2 Classful Addressing
18.27
Address Depletion
Subnetting and Supernetting
Subnetting :Large IP address is divided into small blocks each block is given
to small organization.
Supernetting :
Unused IP address from each organization will be acquired and combined
into a one single block and that will be given to other organization.
Advantage of Classful Addressing
With the growth of the Internet, it was clear that a larger address
space was needed as a long-term solution. The larger address
space, however, requires that the length of IP addresses also be
increased, which means the format of the IP packets needs to be
changed. Although the long-range solution has already been
devised and is called IPv6, a short-term solution was also planned
to use the same address space but to change the distribution of
addresses to provide a fair share to each organization. The short-
term solution still uses IPv4 addresses, but it is called classless
addressing. 18.31
Figure 18.19: Variable-length blocks in classless
addressing
18.32
Figure 18.20: Slash notation or Classless InterDomain
Routing (CIDR)
18.33
Figure 18.21: Information extraction in classless
addressing
Set all
suffix bits
to 0s
Set all
suffix bits
to 1s
18.34
Example 18.1
18.35
Example 18.2
18.37
Example 18.3
18.38
Figure 18.22: Network address
18.39
Example 18.4
18.40
Example 18.5
Solution
There are 232– 24 = 256 addresses in this block. The first
address is 14.24.74.0/24; the last address is 14.24.74.255/24.
To satisfy the third requirement, we assign addresses to
subblocks, starting with the largest and ending with the
smallest one.
18.41
Example 18.5 (continued)
18.42
Example 18.5 (continued)
18.43
Figure 18.23: Solution to Example 4.5
18.44
Example 18.6
18.45
Figure 18.24: Example of address aggregation
18.46
18.4.4 DHCP
18.47
Figure 18.25: DHCP message format
18.48
Figure 18.26: Option format
18.49
Figure 18.27: Operation of DHCP
18.50
Figure 18.28: FSM for the DHCP client
18.51
18.4.5 NAT
18.53
Figure 18.30: Address translation
18.54
Figure 18.31: Translation
18.55
Table 18.1: Five-column translation table
18.56
Chapter 22
Next
Generation
IP
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 22: Outline
22.61
22-2 THE IPv6 PROTOCOL
22.63
Figure 22.6: IPv6 datagram
22.64
Figure 22.7: Payload in an IPv6 datagram
22.65
22.2.2 Extension Header
22.66
Figure 22.8: Extension Header Types
22.67