Internet Protocol Version 4 (IPv4) ================================== .. toctree:: :maxdepth: 1 :hidden: :includehidden: IPv4/ipv4 IPv4/IP_Routing_Protocols IPv4/IPv4_Addressing IPv4 is the foundational Layer 3 protocol of the TCP/IP stack, responsible for logical addressing, routing, and packet delivery across networks. Although its address space is limited, it remains widely deployed across global networks. .. list-table:: :widths: 20 60 20 :header-rows: 1 * - Category - Description - Use Case * - IPv4 Basics - Covers the core format, header structure, and key attributes of IPv4. *32-bit address space, connectionless operation, TTL, fragmentation.* - LAN/WAN connectivity, internet communication * - IP Routing Protocols - Routing protocols used to forward IPv4 packets dynamically across networks. *Includes RIP, OSPF, EIGRP, IS-IS, and BGP.* - Dynamic routing, inter-networking, internet backbone routing * - IPv4 Addressing - How IPv4 addresses are structured, assigned, and translated. *Unicast, multicast, broadcast, NAT, private ranges, CIDR.* - Host identification, subnetting, address conservation .. tab-set:: .. tab-item:: IPv4 Basics **RFC:** RFC 791 **Main Features:** - 32-bit addressing scheme in dotted-decimal format (e.g., `192.168.0.1`) - Operates at OSI Layer 3 (Network Layer) - Provides logical addressing and packet fragmentation - Header includes TTL, checksum, protocol, and source/destination IP - Stateless and connectionless: each packet is treated independently - Widely deployed across all modern networks **Use Cases:** - Core of internet communication - IP routing within and between enterprise networks - Host identification in TCP/IP model **Alternative Protocols:** - IPv6 – Next-generation protocol with larger address space and security - IPX – Legacy Novell protocol (obsolete) - AppleTalk – Deprecated Apple protocol .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: What You Will Learn in This Section **Let us learn more about IPv4:** * :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 ` .. button-link:: ./IPv4/ipv4.html :color: primary :shadow: :expand: Jump to "IPv4 Basics" .. tab-set:: .. tab-item:: IP Routing Protocols **RFCs:** - RIP: RFC 1058 - OSPF: RFC 2328 - EIGRP: RFC 7868 - IS-IS: RFC 1142 - BGP: RFC 4271 **Main Features:** - Path determination and packet forwarding - **RIP** – Simple distance-vector protocol (max 15 hops) - **OSPF** – Link-state protocol, uses areas for large-scale deployment - **EIGRP** – Cisco hybrid protocol using DUAL - **IS-IS** – ISP-grade scalable protocol - **BGP** – Internet-wide inter-AS routing protocol, supports policy control **Use Cases:** - Enterprise and service provider routing - Autonomous System (AS) interconnectivity - Dynamic topology awareness and failover **Alternative Protocols:** - Static routing – Manually defined routes - IPv6 Routing Protocols – OSPFv3, MP-BGP, RIPng .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: What You Will Learn in This Section **Let us learn more about IP Routing Protocols for IPv4:** .. button-link:: ./IPv4/IP_Routing_Protocols.html :color: primary :shadow: :expand: Jump to "IPv4 Routing Protocols" .. tab-set:: .. tab-item:: IPv4 Addressing **RFCs:** RFC 791, RFC 950, RFC 1918, RFC 3022 **Main Features:** - 32-bit address space with ~4.3 billion addresses - **Address Types:** - Unicast: one-to-one - Broadcast: one-to-all on subnet (255.255.255.255) - Multicast: Class D (224.0.0.0 – 239.255.255.255) - **CIDR** (Classless Inter-Domain Routing): /n format for flexible subnetting - **Private Address Ranges:** - 10.0.0.0/8 - 172.16.0.0/12 - 192.168.0.0/16 - **NAT:** Translates private addresses to public for internet access **Use Cases:** - Host IP allocation in enterprise and ISP networks - Internet access via NAT from private IPs - Network segmentation via subnetting **Alternative Protocols:** - IPv6 – Uses 128-bit address space and does not require NAT - DHCP – For automatic IP address assignment - MAC – Layer 2 addressing (hardware level) .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: What You Will Learn in This Section **Let us learn more about IPv4 Addressing:** .. button-link:: ./IPv4/IPv4_Addressing.html :color: primary :shadow: :expand: Jump to "IPv4 Addressing"