Ip Adresses Pointwise
Ip Adresses Pointwise
Definition of IP Address:
IP addresses are 32-bit numbers in IPv4, divided into four 8-bit octets and usually represented in
dotted decimal notation (e.g., 192.168.1.1).
Structure of an IP Address:
An IP address is divided into two parts:
1. Network ID: Identifies the specific network.
2. Host ID: Identifies the specific device (host) on that network.
Types of IP Addressing:
1. Classful Addressing
2. Classless Addressing (CIDR) – introduced later to deal with the inefficiencies of
classful addressing.
Here, we focus on Classful Addressing, which was the original scheme used in IP networking.
Classful IP Addressing:
Introduction:
Classful addressing divides the IP address space into five classes: Class A, B, C, D, and E. This
method was designed to accommodate networks of different sizes.
1. Class A:
First Bit: Always starts with 0 in binary, making the first octet range from 0 to 127.
Range: 0.0.0.0 to 127.255.255.255. However, only 1.0.0.0 to 126.255.255.255 are
usable.
o 0.0.0.0 is reserved for default routing.
o 127.0.0.0 to 127.255.255.255 is reserved for loopback and diagnostics.
Default Subnet Mask: 255.0.0.0, which is represented as /8 in CIDR.
Network Bits: 8 bits are used to represent the network portion.
Host Bits: 24 bits are available for host addressing.
Number of Networks: 2⁷ = 128 total, but only 126 are usable.
Hosts per Network: 2²⁴ - 2 = 16,777,214 (excluding network and broadcast).
Usage: Suitable for extremely large networks like major ISPs or multinational
enterprises.
2. Class B:
First Bit Pattern: Always starts with 10, which puts the first octet range from 128 to
191.
Range: 128.0.0.0 to 191.255.255.255.
Default Subnet Mask: 255.255.0.0, or /16 in CIDR.
Network Bits: 16 bits (first two octets).
Host Bits: 16 bits available for hosts.
Number of Networks: 2¹⁴ = 16,384.
Hosts per Network: 2¹⁶ - 2 = 65,534 usable host addresses.
Usage: Ideal for medium to large-sized networks such as universities or large
organizations.
3. Class C:
First Bit Pattern: Begins with 110, placing the first octet range from 192 to 223.
Range: 192.0.0.0 to 223.255.255.255.
Default Subnet Mask: 255.255.255.0, also written as /24.
Network Bits: 24 bits used for the network.
Host Bits: 8 bits available for hosts.
Number of Networks: 2²¹ = 2,097,152.
Hosts per Network: 2⁸ - 2 = 254 usable host addresses.
Usage: Commonly used in small-scale networks, such as in small businesses or office
LANs.
4. Class D:
5. Class E: