0% found this document useful (0 votes)
9 views6 pages

IP Address

Uploaded by

rohitk93639
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views6 pages

IP Address

Uploaded by

rohitk93639
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

IP Address

An IP (Internet Protocol) address is a fundamental component of networking that provides a


unique identifier for devices on a network, allowing them to communicate with each other. It
functions similarly to a home address in the postal system, directing data packets to the
correct destination. IP addresses are essential for routing traffic across the internet and other
networks. Here's a comprehensive overview of IP addresses:

1. IP Address Structure

IPv4 (Internet Protocol version 4)

• Format: IPv4 addresses are 32-bit numbers typically expressed in decimal notation as
four octets separated by periods (e.g., 192.168.1.1).
• Range: IPv4 addresses range from 0.0.0.0 to 255.255.255.255. This provides
approximately 4.3 billion unique addresses.
• Components:
o Network Portion: Identifies the specific network.
o Host Portion: Identifies the device within the network.
• Classes: Historically, IPv4 addresses were divided into classes (A, B, C, D, E),
though modern practice uses Classless Inter-Domain Routing (CIDR) to allocate IP
addresses more flexibly.

IPv6 (Internet Protocol version 6)

• Format: IPv6 addresses are 128-bit numbers expressed in hexadecimal notation,


divided into eight groups of four hexadecimal digits separated by colons (e.g.,
2001:0db8:85a3:0000:0000:8a2e:0370:7334).
• Range: IPv6 provides a vastly larger address space compared to IPv4, with
approximately 340 undecillion (3.4 × 10^38) unique addresses.
• Components:
o Network Prefix: Identifies the network.
o Interface Identifier: Identifies the device within the network.
• Features: IPv6 includes features such as simplified header structure, built-in support
for multicast, and improved security features.

2. Types of IP Addresses

Public IP Addresses

• Definition: Addresses that are routable on the global internet and are assigned by
Internet Service Providers (ISPs).
• Purpose: Enable devices to communicate over the internet and are unique worldwide.
• Example: 203.0.113.76

Private IP Addresses

• Definition: Addresses used within private networks and not routable on the global
internet. They are reserved for use within local networks.
• Ranges:
o IPv4 Private Address Ranges:
▪ 10.0.0.0 to 10.255.255.255
▪ 172.16.0.0 to 172.31.255.255
▪ 192.168.0.0 to 192.168.255.255
• Purpose: Allow devices within the same local network to communicate without
consuming public IP address space.
• Example: 192.168.1.5

Loopback IP Addresses

• Definition: Special IP addresses used to test the network stack on a local machine.
• IPv4 Loopback Address: 127.0.0.1
• Purpose: Used for diagnostics and testing purposes to ensure that the network
interface and protocols are functioning correctly on the local device.

IP addresses are divided into five classes: A, B, C, D, and E. Each class has a different
network and host portion. Here's a summary of each class with examples to help you
understand:

1. Class A

• Range: 1.0.0.0 to 126.0.0.0


• Network ID: The first 8 bits (1st octet)
• Host ID: The remaining 24 bits (2nd, 3rd, and 4th octet)
• Default Subnet Mask: 255.0.0.0
• Number of Networks: 128 (from 0 to 127, but 127 is reserved for loopback)
• Number of Hosts per Network: ~16 million

Example: IP Address: 10.0.0.1

• Network ID: 10
• Host ID: 0.0.1

2. Class B

• Range: 128.0.0.0 to 191.255.0.0


• Network ID: The first 16 bits (1st and 2nd octet)
• Host ID: The remaining 16 bits (3rd and 4th octet)
• Default Subnet Mask: 255.255.0.0
• Number of Networks: ~16,384
• Number of Hosts per Network: ~65,534

Example: IP Address: 172.16.5.10

• Network ID: 172.16


• Host ID: 5.10

3. Class C
• Range: 192.0.0.0 to 223.255.255.0
• Network ID: The first 24 bits (1st, 2nd, and 3rd octet)
• Host ID: The remaining 8 bits (4th octet)
• Default Subnet Mask: 255.255.255.0
• Number of Networks: ~2 million
• Number of Hosts per Network: 254

Example: IP Address: 192.168.1.15

• Network ID: 192.168.1


• Host ID: 15

4. Class D (Multicast)

• Range: 224.0.0.0 to 239.255.255.255


• Purpose: Reserved for multicast groups. No Network and Host ID division.
• No Subnet Mask, as it doesn't follow the traditional IP addressing system.

Example: IP Address: 224.0.1.1 (used for multicast)

5. Class E (Experimental)

• Range: 240.0.0.0 to 255.255.255.255


• Purpose: Reserved for experimental purposes, not used in normal network operations.

Example: IP Address: 240.0.0.1 (Reserved)

• Network ID: Identifies the specific network.

• Host ID: Identifies the specific host within the network.

3. IP Address Allocation

Static IP Addresses

• Definition: IP addresses manually assigned to a device and do not change over time.
• Use Cases: Commonly used for servers, printers, and network devices where a
consistent address is required for proper operation.

Dynamic IP Addresses

• Definition: IP addresses assigned by a Dynamic Host Configuration Protocol (DHCP)


server, which can change over time.
• Use Cases: Typically used for devices in home or business networks where a fixed IP
address is not essential. Allows efficient use of IP address space by reassigning
addresses as devices join and leave the network.
4. Subnetting
• Purpose: Divides a larger network into smaller, more manageable subnetworks
(subnets) to improve organization and reduce network congestion.
• Subnet Mask: Defines the boundary between the network portion and the host
portion of an IP address. For example, a subnet mask of 255.255.255.0 for an IPv4
address means that the first 24 bits are used for the network address and the remaining
8 bits for the host address.
• CIDR Notation: Represents IP addresses and subnet masks in a compact form, e.g.,
192.168.1.0/24, where /24 indicates the number of bits used for the network prefix.

Subnetting in computer networks is a process of dividing a large


network into smaller, more manageable sub-networks or subnets. It helps in optimizing the
use of IP addresses, improving network performance, and enhancing security. Here’s a
detailed explanation:

1. What is Subnetting?

Subnetting involves breaking down a larger IP network (usually a Class A, B, or C network)


into multiple smaller sub-networks. Each subnet operates as an independent network with its
own IP range, and devices within a subnet can communicate directly.

2. Why Subnetting is Important?

• Efficient IP Address Management: Helps in better utilization of IP addresses by


preventing wastage.
• Reduced Network Traffic: Since subnets are smaller, there’s less broadcast traffic,
which improves network performance.
• Improved Security: Subnets can isolate sensitive parts of the network, adding a layer
of protection.
• Simplifies Network Management: Allows for easier management and
troubleshooting of smaller subnets compared to one large network.
• Real-Life Example of Subnetting Importance:
Imagine a large corporation like a university or multinational company that has
multiple departments spread across different buildings. Without subnetting, the entire
organization would use a single large network. Here's why subnetting is essential in
such a scenario:

3. Subnet Mask:

A subnet mask is used to divide the IP address into two parts: the network part and the host
part.

• Network Part: Identifies the network to which the IP belongs.


• Host Part: Identifies the specific device within that network.

Common Subnet Masks:

• Class A: Default subnet mask: 255.0.0.0 or /8


• Class B: Default subnet mask: 255.255.0.0 or /16
• Class C: Default subnet mask: 255.255.255.0 or /24

4. How to Calculate Subnets:

Subnetting involves borrowing bits from the host portion to create more networks.

Example of Subnetting a Class C Network (192.168.1.0/24):

• Default subnet mask: 255.255.255.0 (provides 256 total IP addresses).

Suppose we want to create 4 subnets. We need to borrow 2 bits from the host portion:

• New subnet mask: 255.255.255.192 (/26 means 26 bits for the network).

This gives us:

• 4 subnets (2^2 = 4).


• 64 hosts per subnet (2^6 - 2 = 62 usable IPs).

Resulting Subnets:

1. 192.168.1.0 - 192.168.1.63
2. 192.168.1.64 - 192.168.1.127
3. 192.168.1.128 - 192.168.1.191
4. 192.168.1.192 - 192.168.1.255

Each subnet has 62 usable IP addresses, since the first and last addresses in each range are
reserved for network ID and broadcast.

Supernetting
Supernetting is the opposite of subnetting. While subnetting breaks down larger networks
into smaller sub-networks, Supernetting combines multiple smaller networks (subnets) into
one larger network. It is also referred to as route aggregation or CIDR (Classless Inter-
Domain Routing). Supernetting helps simplify routing tables by reducing the number of
routes a router must maintain, which improves the efficiency of routing and reduces memory
and processing power usage.

Why Supernetting is Important?

• Simplifies Routing: By aggregating multiple smaller networks into one large


network, fewer entries are required in routing tables, leading to quicker routing
decisions.
• Reduces Router Load: With fewer routes to manage, routers can process data
packets more efficiently.
• Improves Network Efficiency: Supernetting reduces the overall number of IP
addresses required for different routes, making networks easier to scale and manage.
How Supernetting Works:

Supernetting involves combining multiple continuous IP address blocks into a larger block by
reducing the number of network bits and increasing the number of host bits.

Example of Supernetting:

Let’s say you have the following four Class C networks:

• 192.168.1.0/24
• 192.168.2.0/24
• 192.168.3.0/24
• 192.168.4.0/24

Each network has its own entry in the routing table. However, if these networks are
contiguous (back-to-back), you can combine them into one larger supernet.

Steps:

1. Convert the IP addresses into binary:


o 192.168.1.0 = 11000000.10101000.00000001.00000000
o 192.168.2.0 = 11000000.10101000.00000010.00000000
o 192.168.3.0 = 11000000.10101000.00000011.00000000
o 192.168.4.0 = 11000000.10101000.00000100.00000000
2. Find the common prefix (first 22 bits are the same):
o 11000000.10101000.000000XX.XXXXXXXX
3. Combine them into a supernet:
o Supernet: 192.168.0.0/22

By aggregating these networks into the supernet 192.168.0.0/22, the routing table now has
just one entry instead of four, covering all IP addresses from 192.168.0.0 to
192.168.3.255.

Benefits of Supernetting:

1. Reduced Routing Table Size: By aggregating networks, routers maintain fewer


routes, making routing faster and more efficient.
2. Better IP Address Utilization: Supernetting optimizes the use of IP addresses,
reducing the number of IP blocks and making the network more scalable.
3. Simplified Network Management: It becomes easier to manage large-scale networks
as Supernetting allows you to group multiple smaller networks into fewer larger ones.

Real-Life Example:

Imagine an Internet Service Provider (ISP) that assigns multiple Class C networks to
different businesses in a city. Instead of having separate routing table entries for each
business, the ISP could use Supernetting to combine all these networks into a single route,
reducing the routing complexity.

You might also like