IP Addressing

IP Addressing

IP Address is the most Important in IT , IP address gives the way where our ports and protocol know that , where and which address to connect. When we talk about IP Address, there are 2 types of IP Address

IPv4

IPv6

Difference Between IPv4 and IPv6

IPv4 and IPv6 are Internet Protocol versions used for addressing devices on a network. Here’s a crisp comparison:

FeatureIPv4IPv6
Address Format32-bit numeric (e.g., 192.168.1.1)128-bit alphanumeric (e.g., 2001:db8::1)
Address Space~4.3 billion addressesVirtually unlimited (3.4×10³⁸ addresses)
Header Size20 bytes40 bytes
ConfigurationManual or DHCPAuto-configuration (stateless address)
SecurityOptional (IPsec support)Built-in IPsec
RoutingLess efficientMore efficient (hierarchical addressing)
BroadcastSupportedReplaced by multicast
AdoptionWidely usedGradually being adopted

Key Takeaway: IPv4 is nearing exhaustion, while IPv6 is the future of scalable and secure networking.

In IPv4, IP addresses are divided into classes based on the first few bits of the address. This classification helps allocate IP ranges for different purposes.

IPv4 Address Classes

ClassRangeFirst OctetPurposeSubnet Mask
A0.0.0.0 - 127.255.255.2550-127Large networks (e.g., ISPs, large orgs)255.0.0.0 (default)
B128.0.0.0 - 191.255.255.255128-191Medium-sized networks255.255.0.0
C192.0.0.0 - 223.255.255.255192-223Small networks (e.g., small businesses)255.255.255.0
D224.0.0.0 - 239.255.255.255224-239MulticastingNot used for subnetting
E240.0.0.0 - 255.255.255.255240-255Experimental (reserved for future use)Not used for subnetting

Key Points

  • Class A: Supports up to ~16 million hosts per network.

  • Class B: Supports up to ~65,000 hosts per network.

  • Class C: Supports up to 254 hosts per network.

  • Class D: Used for multicasting, not for regular addressing.

  • Class E: Reserved for research and experimental purposes.

Most modern networks now use CIDR (Classless Inter-Domain Routing) instead of strict class-based addressing for flexibility and efficient address allocation.

If you notice Between Class A and Class B , there is on address left completely that is 127.0.0.0, this address is called as Loopback address aka localhost. So if you want to ping your system itslef, you use it

Thanks for reading it till here this is just to give you small ground as we move ahead in AWS we will be needing this details while creating VPC and Subnets