What is an IP Address? Write full details of IP Address with example

What is an IP Address? Write full details of IP Address with example

An IP Address (Internet Protocol Address) is a unique identifier assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves two main purposes:

  1. Host or network interface identification
  2. Location addressing

When a device connects to the internet (like your computer, smartphone, or router), it is assigned an IP address that allows it to send and receive data.


Types of IP Addresses

IP addresses are mainly categorized into two major types based on the version of the IP:

  1. IPv4 (Internet Protocol version 4)
  2. IPv6 (Internet Protocol version 6)

Each version has its own formats and classifications.


1. IPv4 (Internet Protocol Version 4)

  • IPv4 is the most commonly used IP address format.
  • It is a 32-bit address, divided into four octets, each ranging from 0 to 255.
  • Example: 192.168.1.1

IPv4 Address Classes

IPv4 addresses are divided into five classes (A to E):

ClassStarting BitRange (1st Octet)Default Subnet MaskPurposeExample
A01 – 126255.0.0.0Large networks10.0.0.1
B10128 – 191255.255.0.0Medium networks172.16.0.1
C110192 – 223255.255.255.0Small networks192.168.1.1
D1110224 – 239N/AMulticasting224.0.0.1
E1111240 – 255N/AResearch & Reserved250.1.1.1

Note: IP address ranges 127.x.x.x are reserved for loopback (used for testing).


IPv4 Address Types

TypeDescriptionExample
Public IPRoutable on the internet. Assigned by ISP.8.8.8.8
Private IPNot routable on the internet. Used within private networks.192.168.1.10
Static IPManually configured. Does not change.203.0.113.1
Dynamic IPAssigned automatically by DHCP. May change over time.192.168.0.2
Loopback IPUsed to test network configuration of local machine.127.0.0.1
APIPAAssigned when DHCP fails. Range: 169.254.0.1 – 169.254.255.254169.254.1.1
Broadcast IPUsed to send data to all hosts in a subnet.192.168.1.255
Multicast IPUsed for one-to-many communication.224.0.0.0+

2. IPv6 (Internet Protocol Version 6)

  • IPv6 was introduced to overcome the shortage of IPv4 addresses.
  • It is a 128-bit address, written in eight groups of four hexadecimal digits.
  • Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334

IPv6 Address Types

TypeDescriptionExample
UnicastIdentifies a single interface.2001\:db8::1
MulticastOne-to-many communication (similar to IPv4 multicast).ff00::/8
AnycastAssigned to multiple interfaces. Packet delivered to the nearest interface.Depends on topology
Link-localUsed for communication within a local subnet.fe80::1
Global UnicastRoutable on the global internet. Similar to public IPv4 addresses.2000::/3
LoopbackUsed by a host to send packets to itself.::1
Unique localUsed within a local site (like private IPs in IPv4).fc00::/7

Difference Between IPv4 and IPv6

FeatureIPv4IPv6
Address Length32-bit128-bit
FormatDecimal, separated by dotsHexadecimal, separated by colons
Example192.168.0.12001:0db8:85a3::8a2e:0370:7334
Address Space~4.3 billion addresses340 undecillion addresses
Header Size20 bytes40 bytes
SecurityOptionalMandatory (IPSec)
NAT RequirementRequiredNot required

Summary

CategoryTypes/Classes
IP VersionsIPv4, IPv6
IPv4 ClassesA, B, C, D, E
IP TypesPublic, Private, Static, Dynamic, Loopback, etc.
IPv6 TypesUnicast, Multicast, Anycast, Link-local, etc.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *