Module 4 Lec 28-30- Introduction and Basics of IPv4 Header
Network Layer: Introduction & Basics of IPv4 Datagram
The information presented is intended for educational purposes only, sourced from various references without claiming ownership.
Module Objectives
Discussion of key concepts:
Position and functions of the Network Layer
Services and responsibilities of the Network Layer
Performance parameters of the Network Layer
Network Layer Protocols, specifically IPv4 Datagram Format
Fragmentation principles
Communication at the Network Layer
Illustrates components involved in Network Layer communication:
Application level (e.g., Alice and Bob)
Various layers including Transport, Network, Data Link, and Physical
Connection with ISPs
Data flow through routers and networks
Responsibilities of the Network Layer
Packetizing: Encapsulation and decapsulation of payloads in packets.
Addressing: Adding headers containing logical addresses of source and destination.
Routing: Determining the best path for packet delivery.
Delivery: Ensuring packets reach the destination host.
Network Layer Performance
Key performance metrics:
Delay: Comprised of:
Transmission Delay
Propagation Delay
Processing Delay
Queuing Delay
Throughput: Number of bits successfully transmitted per second.
Packet Loss: Occurs when packet reception exceeds buffer limit.
Calculation of Total Delay
Total Delay formula:
Total Delay = n + 1 * T_t + T_prop + T_proc + n * T_queue
Throughput is defined as the least rate across all paths.
Packet Loss Explanation
Packet loss occurs when input buffers are full, necessitating the discarding of incoming packets.
Impact: Lost packets must be resent, possibly increasing network congestion.
Structure of a Router
Overview components:
Input ports: Handle incoming signals, paired with processors and buffers.
Output ports: Manage outgoing signals similarly, but in reverse order.
Routing Processor: Uses forwarding tables for routing decisions.
Switching Fabrics: Transfer packets from input to output queues (e.g., Crossbar, Banyan, Batcher-Banyan).
Network Layer Protocols
Hierarchical structure of protocols:
Application Layer: SMTP, FTP, DNS, etc.
Transport Layer: TCP, UDP, SCTP, etc.
Network Layer: IP, ARP, etc.
Internet as Datagram Network
Utilizes packet switching rather than circuit or message switching.
Employs a connectionless communication model at the network layer, with packets referred to as datagrams.
IPv4 Datagram Format
Header shown in 4-byte sections:
Version, Total Length, Total Time-to-Live (TTL), Fragmentation specifics.
Important IPv4 Header Fields
HLEN: Length of the datagram header.
Service Type: Precedence and type of service bits for datagram priority.
TTL: Indicates maximum time a packet can reside in the network.
Protocol: Specifies higher-level protocols (e.g., TCP, ICMP).
Checksum: Error-checking for header only.
Options: Non-compulsory field for debugging.
Fragmentation
Motivation: Size constraints of the Maximum Transfer Unit (MTU) necessitate fragmentation for compatibility across networks.
MTU: Maximum size of datagram when encapsulated in a frame.
Fragmentation Fields
Identification: For reassembling fragmented datagrams.
Flags: Indicate fragmentation status (Do Not Fragment - D, More Fragments - M).
Fragment Offset: Relative position of a fragment in original datagram, measured in 8-byte units.
Need for Reassembly
Necessary to reorder fragments to reconstruct the original datagram at destination.
Blind Rule for Fragment Offset
Rule: Divide data size of fragment by 8 to determine offset.
Practice Questions and Examples
Exercises and examples focused on fragmentation, offset calculation, and understanding of IPv4 packet characteristics.