IP Addressing

An IP (Internet Protocol) address is a unique numerical identifier assigned to every device connected to a network. It enables devices to communicate with each other by identifying the source and destination of data packets.

IP addressing is a fundamental concept in computer networking and is used for routing data across local networks and the Internet.

1. What is an IP Address?

An IP address uniquely identifies a device on a network. Every computer, smartphone, server, router, or IoT device connected to a network requires an IP address for communication.

Example DeviceSample IP Address
Laptop192.168.1.10
Smartphone192.168.1.15
Router192.168.1.1
Web Server172.217.160.142

2. IPv4 Address

IPv4 (Internet Protocol Version 4) is the most widely used version of the Internet Protocol. It uses a 32-bit address divided into four octets separated by dots.

FeatureValue
Address Length32 bits
Format192.168.1.1
Total AddressesApproximately 4.3 Billion
NotationDecimal

3. IPv6 Address

IPv6 (Internet Protocol Version 6) was developed to overcome the shortage of IPv4 addresses. It uses a 128-bit address represented in hexadecimal format.

FeatureValue
Address Length128 bits
Format2001:0db8:85a3::8a2e:0370:7334
NotationHexadecimal
Total AddressesApproximately 3.4 × 10^38

4. Classes of IPv4 Addresses

IPv4 addresses are traditionally divided into five classes based on the first octet.

ClassFirst Octet RangeDefault Subnet MaskPurpose
A1 - 126255.0.0.0Large Networks
B128 - 191255.255.0.0Medium Networks
C192 - 223255.255.255.0Small Networks
D224 - 239N/AMulticasting
E240 - 255N/AExperimental

5. Public IP Address vs Private IP Address

IP addresses are classified as either public or private depending on where they are used.

Public IPPrivate IP
Accessible over the InternetUsed within local networks
Assigned by ISPAssigned by router
Globally uniqueCan be reused in different networks
Example: 8.8.8.8Example: 192.168.1.10

6. Private IPv4 Address Ranges

ClassPrivate Address Range
Class A10.0.0.0 – 10.255.255.255
Class B172.16.0.0 – 172.31.255.255
Class C192.168.0.0 – 192.168.255.255

7. Static IP Address vs Dynamic IP Address

Static IPDynamic IP
Remains unchangedChanges automatically
Configured manuallyAssigned by DHCP
Suitable for serversSuitable for home users
Higher management effortEasy to manage

8. Subnet Mask

A subnet mask separates the network portion of an IP address from the host portion. It helps routers determine whether devices are on the same network.

Subnet MaskCIDR NotationHosts
255.0.0.0/816,777,214
255.255.0.0/1665,534
255.255.255.0/24254

9. Real-World Applications of IP Addressing

  • Internet communication.
  • Web browsing.
  • Email services.
  • Cloud computing.
  • Video conferencing.
  • Online gaming.
  • Smart home devices.
  • Enterprise networking.

10. Advantages of IP Addressing

  • Uniquely identifies devices.
  • Enables communication across networks.
  • Supports routing of data packets.
  • Allows network management.
  • Scales from small to global networks.

11. Key Points

  • Every network device requires an IP address.
  • IPv4 uses 32-bit addresses, while IPv6 uses 128-bit addresses.
  • Public IP addresses are Internet-accessible, whereas private IP addresses are used within local networks.
  • Subnet masks divide network and host portions of an IP address.
  • Dynamic IP addresses are assigned using DHCP.

Summary

IP addressing is the foundation of communication in computer networks. It enables devices to identify each other and exchange data efficiently. IPv4 and IPv6 are the two major versions of the Internet Protocol, while concepts such as public and private IP addresses, subnet masks, and static versus dynamic addressing help organize and manage modern networks. Understanding IP addressing is essential for designing, configuring, and troubleshooting computer networks.