Introduction

IPv4, or Internet Protocol version 4, is a widely used network protocol that defines how devices in a computer network communicate with each other over the internet. It is one of the core protocols that form the foundation of the internet. IPv4 addresses are numerical labels assigned to devices participating in a network to identify and locate them.

Description
IP Address: An IPv4 address is a 32-bit numerical label that is assigned to each device connected to a network. It consists of four groups of decimal numbers separated by periods (e.g., 192.168.0.1). Each group, known as an octet, can range from 0 to 255. IPv4 addresses are hierarchical and hierarchical, allowing routers to efficiently route data packets across the internet.
Binary and Decimal Representation: Although IPv4 addresses are represented in decimal (dotted-decimal) notation, they are actually processed in binary by computers. Each decimal number in the address represents an octet of eight bits in binary.
Subnetting: IPv4 addresses are divided into two parts: the network portion and the host portion. Subnetting involves further dividing the host portion of an IP address into subnetworks, allowing organizations to efficiently allocate IP addresses within their networks.
Private and Public Addresses: IPv4 addresses are categorized into three classes: A, B, and C. Additionally, there are private IP address ranges reserved for use within private networks, such as those in homes and businesses. These private addresses are not routable on the public internet.
Network Classes: IPv4 originally had five classes (A, B, C, D, and E), but classes D and E were reserved for special purposes. Classes A, B, and C were the most commonly used classes for general networking.
Classless Inter-Domain Routing (CIDR): As the demand for IP addresses grew, CIDR was introduced as a way to allocate and manage IP addresses more efficiently. It allows for variable-length subnet masking, enabling more flexible allocation of addresses.
Address Exhaustion: The explosive growth of the internet led to the depletion of available IPv4 addresses. This scarcity of addresses prompted the development of IPv6 (Internet Protocol version 6), which uses 128-bit addresses, providing a vastly larger pool of unique addresses to accommodate the growing number of devices connected to the internet.
NAT (Network Address Translation): NAT is a technology that allows multiple devices in a private network to share a single public IP address. It became necessary due to the shortage of available IPv4 addresses and has been widely used to extend the lifespan of IPv4.

Private & Public Addresses

Public IP addresses are globally unique and can be used to communicate directly with other devices on the internet. They are assigned by Internet Service Providers (ISPs) to devices that need to communicate with other devices on the internet, such as servers, routers, or computers. Public IP addresses are not part of the private IP address ranges, which are reserved for use on private networks and cannot be directly routed on the internet.

Description
Private IP addresses are reserved for use in private networks. They are not routable on the public internet and are used for communication within a private network only.
Public IP addresses are assigned to devices that are connected to the public internet. They are globally unique and can be accessed from anywhere in the world.
The localhost IP address range is reserved for loopback interfaces on devices. These addresses are used to refer to the device itself and are not used for communication with other devices on a network.

Private Addresses

Private IP addresses are reserved for use in private networks. They are not routable on the public internet and are used for communication within a private network only. Private IP addresses are commonly used in home and small office networks, as well as in larger corporate networks. Devices on a private network can communicate with each other using these addresses without the need for public IP addresses or access to the internet. One advantage of using private IP addresses is that they can be reused within multiple private networks, since they are not globally unique. This allows for greater flexibility and scalability in network design. However, private IP addresses cannot be used for public-facing servers or services, as they are not reachable from the public internet. To enable access to public-facing services, network address translation (NAT) is commonly used to translate private IP addresses to public IP addresses when communicating with the internet.

Class
CIDR
Address Range
A
10.0.0.0/8
10.0.0.0 - 10.255.255.255
B
172.16.0.0/12
172.16.0.0 - 172.31.255.255
C
192.168.0.0/16
192.168.0.0 - 192.168.255.255

Public Addresses

Public IP addresses are assigned to devices that are connected to the public internet. They are globally unique and can be accessed from anywhere in the world. Public IP addresses are typically assigned to devices such as web servers, email servers, and other servers that need to be accessible from the internet. They are also assigned to devices such as routers and modems that provide access to the internet for other devices on a network. Public IP addresses are allocated by Internet Assigned Numbers Authority (IANA) to regional Internet registries (RIRs), which in turn allocate them to internet service providers (ISPs) and other organizations. ISPs then assign public IP addresses to their customers. One key characteristic of public IP addresses is that they are publicly visible on the internet. This means that devices with public IP addresses can be reached from anywhere on the internet. However, this also makes them vulnerable to attacks from malicious actors, which is why it's important to implement proper security measures, such as firewalls and intrusion detection systems, to protect devices with public IP addresses. Public IP addresses can be either static or dynamic. Static IP addresses remain the same over time and are typically used for devices that need to be accessed consistently, such as servers. Dynamic IP addresses, on the other hand, are assigned by ISPs using Dynamic Host Configuration Protocol (DHCP) and can change periodically. They are typically used for devices that do not require a consistent IP address, such as personal computers and mobile devices.

Class
Address Range
A
1.0.0.0 - 9.255.255.255
11.0.0.0 - 126.255.255.255
B
128.0.0.0 - 172.15.255.255
172.32.0.0 - 191.255.255.255
C
192.0.0.0 - 192.167.255.255
192.169.0.0 - 223.255.255.255

Localhost

The localhost IP address range refers to a range of IP addresses that are reserved for loopback interfaces on devices. These addresses are used to refer to the device itself and are not used for communication with other devices on a network. The most commonly used localhost IP address is 127.0.0.1, which is a part of the localhost IP address range. This range includes all IP addresses in the block 127.0.0.0/8, which means any IP address that begins with 127 is a localhost address. The 127.0.0.0/8 range includes 16,777,214 unique IP addresses, ranging from 127.0.0.0 to 127.255.255.255. However, only the address 127.0.0.1 is commonly used as the loopback address. The use of the localhost IP address range is important for testing and development purposes, as it allows developers to test services and applications without exposing them to the public internet. It is also used for troubleshooting and diagnostic purposes, as it allows you to test network connectivity and service availability on the device itself.

Class
CIDR
Address Range
Localhost
127.0.0.0/8
127.0.0.0 - 127.255.255.255

Multicast

Multicast IP addresses are used for one-to-many communication, where data packets are sent from one sender to multiple receivers. Multicast addresses are defined within the IPv4 and IPv6 address spaces. In IPv4, multicast addresses are defined within the range of 224.0.0.0 to 239.255.255.255. The range from 224.0.0.0 to 224.0.0.255 is reserved for local network control purposes, such as multicast routing protocols like OSPF. Addresses from 224.0.1.0 to 238.255.255.255 are globally routable and can be used for general multicast communication within networks. The remaining range, from 239.0.0.0 to 239.255.255.255, is reserved for administratively scoped multicast addresses, which are typically used within private networks or domains.

Class
CIDR
Address Range
Multicast
224.0.0.0/4
224.0.0.0 - 239.255.255.255

IPv4 Subnetting Table

An IPv4 subnetting table is a tool used to organize and manage IP address allocation within a network. It provides a structured way to visualize how IP addresses are divided into smaller subnetworks, each with its own range of addresses. Subnetting allows network administrators to efficiently allocate IP addresses, optimize network performance, and manage network resources effectively.

CIDR
Subnet Mask
Wildcard Mask
# of IP Adresses
# of usable IP Addresses
/32
255.255.255.255
0.0.0.0
1
1
/31
255.255.255.254
0.0.0.1
2
2*
/30
255.255.255.252
0.0.0.3
4
2
/29
255.255.255.248
0.0.0.7
8
6
/28
255.255.255.240
0.0.0.15
16
14
/27
255.255.255.224
0.0.0.31
32
30
/26
255.255.255.192
0.0.0.63
64
62
/25
255.255.255.128
0.0.0.127
128
126
/24
255.255.255.0
0.0.0.255
256
254
/23
255.255.254.0
0.0.1.255
512
510
/22
255.255.252.0
0.0.3.255
1024
1022
/21
255.255.248.0
0.0.7.255
2048
2046
/20
255.255.240.0
0.0.15.255
4096
4094
/19
255.255.224.0
0.0.31.255
8192
8190
/18
255.255.192.0
0.0.63.255
16384
16382
/17
255.255.128.0
0.0.127.255
32768
32766
/16
255.255.0.0
0.0.255.255
65536
65534
/15
255.254.0.0
0.1.255.255
131072
131070
/14
255.252.0.0
0.3.255.255
262144
262142
/13
255.248.0.0
0.7.255.255
524288
524286
/12
255.240.0.0
0.15.255.255
1048576
1048574
/11
255.224.0.0
0.31.255.255
2097152
2097150
/10
255.192.0.0
0.63.255.255
4194304
4194302
/9
255.128.0.0
0.127.255.255
8388608
8388606
/8
255.0.0.0
0.255.255.255
16777216
16777214
/7
254.0.0.0
1.255.255.255
33554432
33554430
/6
252.0.0.0
3.255.255.255
67108864
67108862
/5
248.0.0.0
7.255.255.255
134217728
134217726
/4
240.0.0.0
15.255.255.255
268435456
268435454
/3
224.0.0.0
31.255.255.255
536870912
536870910
/2
192.0.0.0
63.255.255.255
1073741824
1073741822
/1
128.0.0.0
127.255.255.255
2147483648
2147483646
/0
0.0.0.0
255.255.255.255
4294967296
4294967294

0 Comments

Submit a Comment