When devices connect to the internet, they need a way to identify each other and communicate properly. This is where IP addresses and subnets come into play. Letβs break them down in simple terms.
What is an IP Address?
An IP address is a unique number given to every device connected to a network.
It works like a home address, helping data find the correct destination.
A typical IP address looks like this:
192.168.1.1
It is divided into parts:
- One part identifies the network
- Another part identifies the specific device (host)
This allows devices to communicate without confusion.
Types of IP Addresses
IPv4
- Most commonly used
- Written as 4 numbers separated by dots
- Each number ranges from 0 to 255
Example: 10.1.34.81
Special IP Address
127.0.0.1 is called localhost
It refers to your own computer and is mainly used for testing.
Why Do We Need IP Addresses?
Without IP addresses:
- Devices cannot identify each other
- Data cannot be routed properly
- Communication over the internet would fail
So, IP addresses are the foundation of networking.
What is Subnetting?
Subnetting means dividing a large network into smaller parts called subnets.
Instead of one big network handling everything, it is split into smaller, manageable sections.
Why Subnetting???
- Makes networks easier to manage
- Improves performance
- Reduces congestion
- Enhances security
- Uses IP addresses efficiently
Understanding Network and Host
An IP address has two parts:
- The Network part tells which network the device belongs to
- The Host part identifies the device within that network
Subnetting decides how much of the IP is network and how much is host.
CIDR Notation
CIDR is a way to represent subnet information.
Example:
192.168.1.0/24
-
/24means the first 24 bits are for the network - Remaining bits are for hosts
This helps define how large or small a subnet is.
Think of it like this:
- IP address = Full address of a house
- Network = City or area
- Host = Specific house
- Subnetting = Dividing a city into smaller neighborhoods
Summary:
IP addresses help devices find each other, and subnetting helps organize networks efficiently.
Together, they make communication faster, structured, and scalable across the internet.
Top comments (0)