DEV Community

Mohith
Mohith

Posted on

IP address and Subnet - CA25

what i have been understand throught this session
When you open a website, your computer communicates with another computer on the internet.
This communication happens using IP addresses and subnets.
what i have been learned:

  • What is an IP Address
  • Types of IP Address
  • What is Subnet
  • Why Subnet is used *Real-world example

as per mythought process What is an IP Address?

An IP address is a unique identifier assigned to each device on a network.the ip address will be divide into parts 8bits-8bits-8bits-8bits which is totally 32bits.actually every ip is will be in two different types of port which is network port and host port the first 24bits will be network port and last remaining is the host port the cidr will works thought the process of workflow
you can ask what is cidr calculator ??
which is used to set the count,first usable ip,netmask,cidr base ip,broadcast ip by using this which is used to be calculated

Example IP addresses

Just like our home address helps people find your house,
an IP address helps computers find each other on the internet.

  • 192.168.1.1
  • 8.8.8.8
  • 172.16.0.1

There are some Types of IP Address

1. Public IP Address

Used on the internet and assigned by ISP(internet acces protocol)
Example:
8.8.8.8

2. Private IP Address

Used inside local networks (WiFi, office, home).
Example ranges:

  • 192.168.x.x
  • 10.x.x.x
  • 172.16.x.x

What is Subnet?

A Subnet means dividing a large network into smaller networks.
Subnet = Sub Network
Subnet helps:

  • Reduce network traffic
  • Improve performance
  • Increase security
  • Better network

Example Without Subnet

All devices in one network:
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.254

This creates heavy traffic.

some Example With Subnet

Subnet 1
192.168.1.1 – 192.168.1.50
Subnet 2
192.168.1.51 – 192.168.1.100
Subnet 3
192.168.1.101 – 192.168.1.150
Now network is faster and organized.

What is Subnet Mask?

Subnet mask defines network and host portion.
Example:
IP Address: 192.168.1.10
Subnet Mask: 255.255.255.0
Network part → 192.168.1
Host part → 10

how in Real World works

Network → Building
Subnet → Floor
IP Address → Room number
Example:
Building A
Floor 1 → Subnet
Room 101 → IP Address

Conclusion

  • IP Address identifies devices
  • Subnet divides networks
  • Subnet improves performance and security
  • Subnet mask defines network range

Top comments (0)