IP Addressing in Computer Networks- Types, Classes (A to E) & IPv4 vs IPv6

IP Addressing in Computer Networks Types of classes IPv4 & IPV6

An IP Address is a unique numerical label assigned to every device connected to a computer network that uses the Internet Protocol for communication. It serves two main functions, identifying the host (device) and providing its location in the network.

A standard IP address looks like four sets of numbers separated by dots-for example- 192.168.1.1. Each set of numbers is called an octet and its value can range from 0 to 255.

Types of IP Addresses

Depending on how they are used and assigned, IP addresses are mainly divided into four practical categories:

1. Public IP Address

A Public IP Address is assigned to your network by your Internet Service Provider (ISP). It is visible to the outside world and allows your router to communicate directly with websites and servers across the global internet.

2. Private IP Address

A Private IP Address is used inside a local network, such as your home Wi-Fi, college lab, or office. Devices like your phone, smart TV, and laptop get private IPs from your Wi-Fi router so they can talk to each other safely without being exposed directly to the public internet.

3. Static IP Address

A Static IP Address never changes once it is assigned to a device. Websites, email servers, and online gaming servers use static IPs so users can always find them at the exact same address.

4. Dynamic IP Address

A Dynamic IP Address changes from time to time. Most home internet users get dynamic IPs from their ISP because it is cost-effective and automatically manages thousands of connected users.

Difference between IPv4 and IPv6 

Basis of Comparison IPv4 (Internet Protocol Version 4) IPv6 (Internet Protocol Version 6)
Address Length 32-bit (4 Bytes) 128-bit (16 Bytes)
Address Format Decimal numbers  (192.168.1.1) Alphanumeric Hexadecimal
 (2001:0db8::1)
Separator Used Dot ( . ) Colon ( : )
Number of Addresses Approx. 4.3 Billion (232) 3.4 × 1038 (Virtually Unlimited)
Configuration Manual or DHCP configuration required Supports Auto-configuration (SLAAC)
Security (IPsec) Optional (External security needed) Built-in IPsec encryption
Transmission Type Unicast, Multicast, and Broadcast Unicast, Multicast, and Anycast (no Broadcast)
Header Size Variable (20 to 60 Bytes) Fixed (40 Bytes)

• IPv4 (Internet Protocol Version 4): It uses a 32-bit address format written in decimal numbers separated by dots (example-.16.254.1). It can generate around 4.3 billion unique addresses.

• IPv6 (Internet Protocol Version 6): It uses a 128-bit address format written in hexadecimal numbers separated by colons (example- 2001:0db8:85a3:0000:0000:8a2e:0370:7334). It provides a virtually unlimited number of IP addresses for future devices.

Classes of IPv4 Address (Class A, B, C, D, E)

To organize networks of different sizes, IPv4 addresses are divided into five classes- Class A, Class B, Class C, Class D, and Class E. 

IP Class First Octet Range Default Subnet Mask Main Purpose / Use
Class A 1 - 126 255.0.0.0 Very Large Networks (ISPs, MNCs)
Class B 128 - 191 255.255.0.0 Medium to Large Networks (Universities)
Class C 192 - 223 255.255.255.0 Small Networks (Home Wi-Fi, Small Offices)
Class D 224 - 239 Not Applicable Multicasting (Live Streaming)
Class E 240 - 255 Not Applicable Research & Experimental Use

• Important Exam Note (Loopback Address): The IP range from 127.0.0.0 to 127.255.255.255 is reserved for Loopback Testing. For example, 127.0.0.1 is used by a computer to test its own network card and software without sending data outside.

Subnetting

Subnetting is the process of dividing a single large network into smaller, manageable sub-networks called subnets. Every IP address has two parts:

• Network ID: Identifies the specific network the device belongs to.

• Host ID: Identifies the specific device inside that network.

Companies and universities use subnetting to improve network speed, reduce traffic congestion, and keep different departments secure from one another.

Frequently Asked Questions (FAQs)

Q1. What is the full form of IP?

Ans- IP stands for Internet Protocol, which is a set of rules how data is sent and received on the internet.

Q2. How many bits are there in IPv4 and IPv6?

Ans- An IPv4 address is 32 bits long, whereas an IPv6 address is 128 bits long.

Q3. Which IP address class is used for home Wi-Fi networks?

Ans- Class C IP addresses (ranging from 192 to 223, such as 192.168.0.1) are most commonly used for home Wi-Fi and small office networks.

Q4. Why is 127.0.0.1 special in networking?

Ans- 127.0.0.1 is a Loopback Address used to test  the network software on your own computer is working properly.

Conclusion

IP Address is Understanding IP Addressing in Computer Networks is essential for grasping how devices locate and communicate with each other online. From knowing the difference between IPv4 and IPv6 to identifying IP classes (A to E).

Post a Comment

0 Comments