Chapter 20 Network Layer and the Internet Protocol (IP)
Chapter 20 of Data Communications and Networking by Behrouz A. Forouzan is focused on the Network Layer and the Internet Protocol (IP). Below are the detailed notes:
20.1 Internetworking
Internetworking refers to the process of connecting different networks, allowing them to function as a single network. It helps in enabling packet delivery across multiple networks, providing source-to-destination delivery and routing.
The Network Layer is responsible for delivering packets from the source to the destination, even if the path involves multiple links (routers).
A key feature of internetworking is the use of logical addresses (IP addresses) to ensure the packet reaches the correct destination.
20.2 IPv4
IPv4 (Internet Protocol Version 4) is the most commonly used protocol in the network layer and operates using a connectionless, unreliable datagram service. This means that:
Packets (datagrams) are sent individually and may take different routes.
No connection is established before data transmission.
There is no guarantee of packet delivery, sequencing, or protection against data loss (it provides "best-effort" delivery).
IPv4 Datagram Structure
Header: Contains important routing information, such as source and destination addresses, and several control flags. It has both fixed (20 bytes) and optional sections (up to 40 bytes).
Data: Carries the payload (the actual data being transferred).
Fields in IPv4 Header:
Version: 4 bits, indicating the version of IP (IPv4 in this case).
Header Length: Specifies the size of the header.
Service Type: Provides different types of service such as minimum delay or maximum throughput.
Total Length: Indicates the size of the entire datagram.
TTL (Time to Live): Ensures that packets do not circulate endlessly in the network by limiting the number of hops they can make.
Checksum: Ensures that the header’s integrity is maintained, and errors can be detected.
20.3 IPv6
IPv6 was developed to address the limitations of IPv4, particularly the exhaustion of available IP addresses. Some of the main benefits of IPv6 include:
Larger address space: Uses 128-bit addresses compared to IPv4's 32-bit addresses.
Simplified header structure: IPv6 has a simpler and more efficient header, making it easier for routers to process packets.
Extension headers: These allow for more flexibility and can provide functionalities like security (encryption and authentication).
IPv6 Header Fields:
Version: 6 bits indicating the use of IPv6.
Priority: Defines the priority of the packet (helps in handling real-time traffic).
Flow Label: Used to distinguish packets that require special handling, such as real-time audio or video traffic.
Payload Length: Specifies the size of the data being transported.
Next Header: Specifies the type of extension header or upper-layer protocol that follows the base header.
Differences Between IPv4 and IPv6:
IPv6 has no checksum because the integrity of the packet is checked by upper-layer protocols like TCP/UDP.
IPv6 eliminates the fragmentation fields found in IPv4 and instead requires the source to manage packet sizes (Path MTU discovery).
20.4 Transition from IPv4 to IPv6
Since IPv4 is still in wide use, the transition to IPv6 cannot happen suddenly. The three main strategies for the transition are:
Dual Stack: Systems run both IPv4 and IPv6 protocols simultaneously.
Tunneling: IPv6 packets are encapsulated within IPv4 packets when passing through IPv4-only regions.
Header Translation: Necessary when communication happens between IPv4 and IPv6 systems, requiring the translation of headers.
This chapter is essential for understanding the core concepts of the network layer in both IPv4 and IPv6 environments, highlighting the strengths and limitations of each protocol, and the strategies for transitioning from IPv4 to IPv6.
Last updated