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 Device | Sample IP Address |
|---|---|
| Laptop | 192.168.1.10 |
| Smartphone | 192.168.1.15 |
| Router | 192.168.1.1 |
| Web Server | 172.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.
| Feature | Value |
|---|---|
| Address Length | 32 bits |
| Format | 192.168.1.1 |
| Total Addresses | Approximately 4.3 Billion |
| Notation | Decimal |
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.
| Feature | Value |
|---|---|
| Address Length | 128 bits |
| Format | 2001:0db8:85a3::8a2e:0370:7334 |
| Notation | Hexadecimal |
| Total Addresses | Approximately 3.4 × 10^38 |
4. Classes of IPv4 Addresses
IPv4 addresses are traditionally divided into five classes based on the first octet.
| Class | First Octet Range | Default Subnet Mask | Purpose |
|---|---|---|---|
| A | 1 - 126 | 255.0.0.0 | Large Networks |
| B | 128 - 191 | 255.255.0.0 | Medium Networks |
| C | 192 - 223 | 255.255.255.0 | Small Networks |
| D | 224 - 239 | N/A | Multicasting |
| E | 240 - 255 | N/A | Experimental |
5. Public IP Address vs Private IP Address
IP addresses are classified as either public or private depending on where they are used.
| Public IP | Private IP |
|---|---|
| Accessible over the Internet | Used within local networks |
| Assigned by ISP | Assigned by router |
| Globally unique | Can be reused in different networks |
| Example: 8.8.8.8 | Example: 192.168.1.10 |
6. Private IPv4 Address Ranges
| Class | Private Address Range |
|---|---|
| Class A | 10.0.0.0 – 10.255.255.255 |
| Class B | 172.16.0.0 – 172.31.255.255 |
| Class C | 192.168.0.0 – 192.168.255.255 |
7. Static IP Address vs Dynamic IP Address
| Static IP | Dynamic IP |
|---|---|
| Remains unchanged | Changes automatically |
| Configured manually | Assigned by DHCP |
| Suitable for servers | Suitable for home users |
| Higher management effort | Easy 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 Mask | CIDR Notation | Hosts |
|---|---|---|
| 255.0.0.0 | /8 | 16,777,214 |
| 255.255.0.0 | /16 | 65,534 |
| 255.255.255.0 | /24 | 254 |
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.