Understanding IPv4

IPv4, or Internet Protocol version 4, is one of the core protocols of standards-based internetworking methods in the Internet and other packet-switched networks. This guide will provide a simple yet thorough understanding of IPv4, addressing, and subnetting, targeting students and learners new to the concept.

What is IPv4?

IPv4 is the fourth version of the Internet Protocol (IP). It was the first version of the protocol to be widely deployed and forms the backbone of most Internet communications. IPv4 addresses are unique identifiers assigned to devices connected to a network, allowing them to communicate with each other

IPv4 Addressing

An IPv4 address is a 32-bit number, typically represented in decimal format as four 8-bit fields separated by periods (e.g., 192.168.1.1). Each field is a byte (8 bits), ranging from 0 to 255.

Decimal AddressBinary Address
192.168.1.111000000.10101000.00000001.00000001
Table: Binary and Decimal Representation of an IPv4 Address

Classes of IPv4 Addresses

IPv4 addresses are divided into five classes (A, B, C, D, and E), each designed for different types of networks.

ClassRange (First Octet)Default Subnet MaskPurpose
A0-127255.0.0.0Large networks
B128-191255.255.0.0Medium-sized networks
C192-223255.255.255.0Small networks
D224-239N/AMulticast groups
E240-255N/AExperimental, reserved for future use
Table: IPv4 Address Classes

Subnetting in IPv4

Subnetting is a technique used to divide a network into smaller, more manageable segments. It helps improve network performance and security.

Subnet AddressSubnet MaskHost RangeBroadcast Address
192.168.1.0255.255.255.0192.168.1.1 – 192.168.1.254192.168.1.255
192.168.1.0/26255.255.255.192192.168.1.1 – 192.168.1.62192.168.1.63
192.168.1.64/26255.255.255.192192.168.1.65 – 192.168.1.126192.168.1.127
Table: Example of Subnetting a Class C Network

Key Concepts in IPv4

  1. Network Address Translation (NAT): Allows multiple devices on a local network to share a single public IP address.
  2. DHCP (Dynamic Host Configuration Protocol): Automatically assigns IP addresses to devices on a network.
  3. CIDR (Classless Inter-Domain Routing): A method for allocating IP addresses and routing that replaces the older system based on classes A, B, and C.

Summary

IPv4 is a foundational technology for modern networking, enabling devices to communicate through unique addressing. Understanding the basics of IPv4 addressing and subnetting is crucial for students and anyone interested in networking.

FeatureDescription
Address Length32 bits
Address RepresentationDotted decimal notation (e.g., 192.168.1.1)
Address ClassesA, B, C, D, E
SubnettingDivides a network into smaller sub-networks
Key ProtocolsNAT, DHCP, CIDR
Table: Summary of IPv4 Features
Scroll to Top