IPv4 - Internet Protocol version 4 ==================================== .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is IPv4?** IPv4 stands for Internet Protocol version 4. It is the fourth version of the Internet Protocol and the most widely used protocol for identifying devices on a network using a 32-bit address. Each device on a network is assigned a unique IPv4 address to enable communication. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is IPv4 useful?** * Identifying devices on a network * Routing data between devices across networks * Enabling internet communication .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How it works?** * Device gets an IP address – Either manually or via DHCP. * Data is sent with IP headers – Each packet includes source and destination IPv4 addresses. * Routers forward packets – Based on the destination IP, routers direct the packet toward its target. * Target device receives data – The device with the matching IP address processes the packet. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is IPv4 used?** * Home networks – Routers assign IPv4 addresses to phones, laptops, TVs, etc. * Enterprise networks – Servers, workstations, and printers use IPv4 for communication. * Internet – Every website, server, and online service uses IPv4 (or IPv6) to identify and communicate with devices. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI Layer does IPv4 operate at?** * IPv4 operates at the **Network Layer (Layer 3)** of the OSI model. * It handles logical addressing and routing between different networks. * It is responsible for packet forwarding, including routing through intermediate routers. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section ` * :ref:`Terminology ` * :ref:`Version Info ` * :ref:`IPv4 Version&RFC Details ` * :ref:`IPv4 Basic Setup on Ubuntu using IPv4 ` * :ref:`IPv4 Basic Setup on Ubuntu using IPv6 ` * :ref:`IPv4 Protocol Packet Details ` * :ref:`IPv4 Usecases ` * :ref:`IPv4 Basic Features ` * :ref:`IPv4 Feature : Addressing ` * :ref:`IPv4 Feature : Header Structure ` * :ref:`IPv4 Feature : Packet Routing ` * :ref:`IPv4 Feature : Fragmentation ` * :ref:`IPv4 Feature : Connectionless Protocol ` * :ref:`IPv4 Feature : Subnetting ` * :ref:`IPv4 Feature : NAT Compatibility ` * :ref:`IPv4 Feature : Broadcast Support ` * :ref:`IPv4 Feature : Protocol Identification ` * :ref:`IPv4 Feature : TTL (Time to Live) ` * :ref:`IPv4 Feature : Classful Addressing (Legacy) ` * :ref:`Reference links ` .. _IPv4_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _IPv4_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _IPv4_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _IPv4_step5: .. tab-set:: .. tab-item:: IPv4 Version&RFC Details .. csv-table:: :file: ./ipv4/IPv4_Version_RFC_details.csv :widths: 10,10,10,30 :header-rows: 1 .. _IPv4_step21: .. tab-set:: .. tab-item:: IPv4 Basic Setup on Ubuntu using IPv4 * Setup .. _IPv4_step22: .. tab-set:: .. tab-item:: IPv4 Basic Setup on Ubuntu using IPv6 * Setup .. _IPv4_step6: .. tab-set:: .. tab-item:: IPv4 Protocol Packet Details **IPv4 Packet** .. csv-table:: :file: ./ipv4/IPv4_Packetdetails1.csv :widths: 10,20,30,10 :header-rows: 1 .. _IPv4_step7: .. tab-set:: .. tab-item:: IPv4 Usecases .. csv-table:: :file: ./ipv4/IPv4_Use_Cases.csv :widths: 10,20,30 :header-rows: 1 .. _IPv4_step8: .. tab-set:: .. tab-item:: IPv4 Basic Features .. csv-table:: :file: ./ipv4/IPv4_Basic_Features.csv :widths: 10,10,30 :header-rows: 1 .. _IPv4_step9: .. tab-set:: .. tab-item:: IPv4 Feature : Addressing **Addressing - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature1_Addressing_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step10: .. tab-set:: .. tab-item:: IPv4 Feature : Header Structure **Header Structure - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature2_Header_Structure_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step11: .. tab-set:: .. tab-item:: IPv4 Feature : Packet Routing **Packet Routing - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature3_Packet_Routing_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step12: .. tab-set:: .. tab-item:: IPv4 Feature : Fragmentation **Fragmentation - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature4_Fragmentation_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step13: .. tab-set:: .. tab-item:: IPv4 Feature : Connectionless Protocol **Connectionless Protocol - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature5_Connectionless_Protocol_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step14: .. tab-set:: .. tab-item:: IPv4 Feature : Subnetting **Subnetting - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature6_Subnetting_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step15: .. tab-set:: .. tab-item:: IPv4 Feature : NAT Compatibility **NAT Compatibility - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature7_NAT_Compatibility_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step16: .. tab-set:: .. tab-item:: IPv4 Feature : Broadcast Support **Broadcast Support - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature8_Broadcast_Support_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step17: .. tab-set:: .. tab-item:: IPv4 Feature : Protocol Identification **Protocol Identification - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature9_Protocol_Identification_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step18: .. tab-set:: .. tab-item:: IPv4 Feature : TTL (Time to Live) **TTL (Time to Live) - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature10_TTL_Time_to_Live_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step19: .. tab-set:: .. tab-item:: IPv4 Feature : Classful Addressing (Legacy) **Classful Addressing (Legacy) - Testcases** .. csv-table:: :file: ./ipv4/IPv4_Feature11_Classful_Addressing_Legacy_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _IPv4_step20: .. tab-set:: .. tab-item:: Reference links * Reference links