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

Understanding IP Address Classes

The document discusses IP address classes and how IP addresses are organized into classes A, B, C, D and E based on the binary values of the first octet. It explains how the bits in an IP address are divided between the network and host portions for each class.

Uploaded by

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

Understanding IP Address Classes

The document discusses IP address classes and how IP addresses are organized into classes A, B, C, D and E based on the binary values of the first octet. It explains how the bits in an IP address are divided between the network and host portions for each class.

Uploaded by

wayneokutoyi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

IP Address Classes Explained with Examples

There are two versions of IP addresses, IPv4 and IPv6. In this tutorial, we will discuss how IPv4
organizes IP addresses. In IPv4, there are 4,294,967,296 IP addresses. These addresses are
organized into five IP classes. These classes are A, B, C, D, and F.

Before we understand how IP addresses are organized in these classes, let's briefly discuss how
IP addresses are written and structured.

IP addresses notation
Computers understand only the binary system. The binary system uses bits to store and process
data. A bit can store only two values: zero (0) and one (1). If the value 'zero' is stored, the bit is
known as the OFF bit. If the value 'one' is stored, the bit is known as ON bit. The binary system
uses a unique combination of ON and OFF bits for each letter and number.

Using IP addresses in the binary format is not easy. But the good news is that unless you are a
software developer or a network administrator, you never need to write and use IP addresses in
binary notation. You can write and use them in decimal format. The software program that you
use to assign the IP address on the interface automatically converts the assigned IP address into
binary format.

If you are a software developer or a network administrator, you can also use IP addresses in
decimal format. But you should also understand how IP addresses work in the binary system.
Since interfaces use the binary system to process IP addresses, learning IP addresses in binary
format can make your IP related tasks easy.

In short, you can write and use IP addresses in two notations: binary notation and decimal-
dotted notation. In binary notation, all the individual bits of each byte are expressed as a binary
number. In decimal notation, all four binary bytes are converted and expressed to their decimal
equivalent numbers.

In this tutorial, we will understand IP classes in both notations.

IP addresses structure
An IP address consists of 32 bits. These bits are divided into four sections. Sections are
separated by a dot (.). Each section contains 8 bits. 8 bits are equal to 1 byte or 1 octet. The
following image shows how bits are organized in an IP address.
By using 32 bits with two possible values for each position, the binary system can create
4,294,967,296 (232) unique combinations or IP addresses. These addresses can be used without
any addressing scheme or with an addressing scheme that arranges them in such a way that it
becomes easier to access them.

If addresses are used without any addressing scheme, all routers on the network will need to
store the address of each and every interface on the network. Depending on the size of the
network, this may affect routing. If the network size is small, it can make routing slow. If the
network size is moderate, it can make routing very slow. If the network size is large, it can make
routing completely impossible.

For efficient routing, addresses are organized into the hierarchical addressing scheme. In this
scheme, all addresses are divided into five classes and each address is divided into two
addresses: the network address and the host address.

IP address classes
Based on the following rules, IP addresses are categorized into five classes; A, B, C, D, and E.

 In class A, the first bit of the first byte always remains OFF (0).
 In class B, the first bit of the first byte always remains ON and the second bit of the first byte
always remains OFF.
 In class C, the first two bits of the first byte always remain ON and the third bit of the first byte
always remains OFF.
 In class D, the first three bits of the first byte always remain ON and the fourth bit of the first
byte always remains OFF.
 In class E, the first four bits of the first byte always remain ON.

By turning all remaining bits of the first byte ON and OFF, we can make the first and last
address of that class.

The following table lists the value of the first byte or octet in both notations.

Class Fix bits First address (binary notation) Last address (binary notation) First address (decimal notation) Last
addre
(decim
notati

A 0 00000000 01111111 0 127

B 10 10000000 10111111 128 191

C 110 11000000 11011111 192 223

D 1110 11100000 11101111 224 239

E 1111 11110000 11111111 240 255

Network and host addressing


In the second level of the hierarchical addressing scheme, each address is further divided into
two addresses: the network address and host address.

Network addresses are used to combine multiple IP addresses in a group while host addresses
are used to provide a unique identity to each IP address in the group. A network address is the
group address. All group members use the same network address. A host address is a unique
address in the group.

To learn more about how the network addresses and host addresses work, you can check the
following tutorial.

IP address, Network address, and Host address Explained

The length of network addresses and host addresses in IP addresses are different in all IP
classes. In class A, the first bits are reserved for the network address. The remaining 24 bits are
available for the host address. In class B, the first 16 bits are reserved for the network address
while the last 16 bits are available for the host address. In class C, the first 24 bits are reserved
for the network address while the last 8 bits available for the host address.

The following image shows how bits are defined for network addresses and host addresses in
each IP class.
In IP addresses, host bits are flexible. Administrators can adjust the length of host bits to meet
the requirements of their networks. They can use host bits as network bits to utilize maximum
addresses from all available addresses. If hosts bits are used as the network bits, this is known
as the subnetting.

Class D and E are not used for the host addressing. Class D addresses are used for multicast
addresses. Class E addresses are reserved for research and development purposes. Multicast
addresses are explained in the following tutorial.

The subnet mask


IP addresses use an additional component to distinguish between network addresses and host
addresses. This component is known as the subnet mask. In simple words, the subnet mask
tells, how many bits in the IP address are used as the network address and how many bits are
left for the host address.

IP addresses are always written with the subnet mask. The following table lists the default
subnet mask for all IP classes.

Class Decimal notation Binary notation

A [Link] 11111111.00000000.00000000.00000000

B [Link] 11111111. 11111111.00000000.00000000

C [Link] 11111111. 11111111. 11111111.00000000

Identifying the class of an IP address (decimal notation)


If an IP address is written in the decimal notation, check the value of the first section or octet
and use the following rules to identify the class of the IP address.

 If the value is in the range 1 to 127, the address belongs to class A.


 If the value is in the range 128 to 191, the address belongs to class B.
 If the value is in the range 192 to 223, the address belongs to class C.
 If the value is in the range 224 to 239, the address belongs to class D.
 If the value is in the range 240 to 255, the address belongs to class E.

Identifying the class of an IP address (binary notation)


If an IP address is written in the binary notation, you can use the following rules to identify the
class of the IP address.

 If the first bit is OFF, the address belongs to class A.


 If the first bit is ON and the second bit is OFF, the address belongs to class B.
 If the first two bits are ON and the third bit is OFF, the address belongs to class C.
 If the first three bits are ON and the fourth bit is OFF, the address belongs to class D.
 If the first four bits are ON, the address belongs to class E.

Examples of IP addresses
Examples of class A IP addresses are the following.

Decimal notation Binary notation

[Link] 00000001.00000010.00000011.00000100
[Link] 11111111.00000000.00000000.00000000

[Link] 00001010.00001010.00001010.00001010
[Link] 11111111.00000000.00000000.00000000

[Link] 00011001.10010011.10111111.00001110
[Link] 11111111.00000000.00000000.00000000

[Link] 01011111.01010110.01001011.00000100
[Link] 11111111.00000000.00000000.00000000

[Link] 01111111.00000000.00000000.00000001
[Link] 11111111.00000000.00000000.00000000

Examples of class B IP addresses are the following.

Decimal notation Binary notation

[Link] 10000001.00001100.00100100.00101010
[Link] 11111111.11111111.00000000.00000000

[Link] 10101000.10101100.00000001.00000001
[Link] 11111111.11111111.00000000.00000000
[Link] 10101111.01000010.00101011.00001100
[Link] 11111111.11111111.00000000.00000000

[Link] 10010001.10111010.10101111.11101010
[Link] 11111111.11111111.00000000.00000000

[Link] 10111110.00111100.10011000.00011001
[Link] 11111111.11111111.00000000.00000000

Examples of class C IP addresses are the following.

Decimal notation Binary notation

[Link] 11000000.10101000.00000001.00000001
[Link] 11111111.11111111.11111111.00000000

[Link] 11010010.00010100.00011110.00101000
[Link] 11111111.11111111.11111111.00000000

[Link] 11011000.01111011.10010001.00010000
[Link] 11111111.11111111.11111111.00000000

[Link] 11011100.01010110.01001100.00101011
[Link] 11111111.11111111.11111111.00000000

[Link] 11011100.00111100.01010000.01100100
[Link] 11111111.11111111.11111111.00000000

Common questions

Powered by AI

Binary notation for IP addresses allows network administrators to identify the class of an IP address by inspecting the initial bits of the binary representation: the first bits are checked as per class structure rules (e.g., first bit '0' for Class A, '10' for Class B, etc.). This method provides precise control over IP addressings such as subnetting and broadcasting. While typically more complex than decimal notation, binary notation is critical for tasks such as precise network segmentation, control over IP ranges, and detailed network planning .

To determine the class of an IP address in decimal notation, the first octet is checked. If the value is between 1-127, it is Class A. For values 128-191, it is Class B. Values from 192-223 indicate Class C. Class D ranges from 224-239, and Class E ranges from 240-255. This classification helps in the organization and application of the IP address within the network to align with the intended address class usage .

IP addresses in the IPv4 system are organized into five classes: A, B, C, D, and E. This division is based on the bit structure of the address, with class A designed for large networks and class C for smaller networks. The primary purpose of dividing IP addresses into classes is to facilitate efficient routing by organizing addresses into hierarchical schemes, which helps store network addresses effectively and prevents inefficiencies in routing that could occur if all routers had to store each unique interface address independently .

In IP networking, IP addresses are expressed in two notations: binary and decimal. Binary notation uses bits (0s and 1s) to create the unique combinations that form an IP address, which a computer's interface can use for processing. However, since this is complex for human understanding, decimal notation is used where each octet of the IP address is expressed in its decimal equivalent. This is significant for usability, as network administrators can manage, assign, and troubleshoot IP addresses more conveniently in decimal format while understanding binary is crucial for understanding underlying functioning and operations like subnetting .

Understanding both binary and decimal notations of IP addresses is essential because binary notation offers insights into network operations such as subnetting, broadcasting, and network class identification, allowing precise configurations and optimizations. Decimal notation facilitates easier communication and understanding between administrators and users, serving as a user-friendly format for general network management tasks. Mastery of both notations ensures well-rounded network management capabilities, enabling administrators to perform both frontend and backend network operations effectively .

In Class A, the first 8 bits are reserved for the network address, and the remaining 24 bits are for host addresses, suitable for a small number of networks with a large number of hosts. In Class B, the first 16 bits are for the network address and the last 16 bits for host addresses, used for medium-sized networks. Class C reserves the first 24 bits for the network address and leaves the last 8 bits for host addresses, ideal for a large number of small networks. This distinction allows administrators to choose suitable classes based on the organization size and needs .

Class D IP addresses are used for multicast addresses, helping send data to multiple destinations simultaneously, beneficial in situations like live video streaming. Class E addresses are reserved for research and development purposes. Unlike Classes A, B, and C which are structured for unicast addressing and host assignments, Classes D and E serve specialized purposes which do not require network or host division; hence they do not adhere to the same structural requirements suited for general host and network addressing .

Subnetting allows network administrators to divide a larger network into smaller, more manageable sub-networks. This practice optimizes network performance and boosts efficiency by allowing for better network traffic management and reducing broadcast domains. It ensures that the available IP address space is utilized more efficiently by allocating IPs based on precise network requirements, rather than wasting addresses in unnecessarily large blocks, which also helps in enhanced security management .

The hierarchical addressing scheme improves network routing efficiency by consolidating multiple IP addresses into a network and host addresses format. This structure allows for the grouping of addresses which simplifies the process routers use to determine network paths, reducing the need for routers to have individual paths for each IP address. By organizing these groups hierarchically, routers can efficiently handle large networks by referencing a smaller set of network addresses rather than managing each individual host address, thus avoiding routing inefficiencies such as slow routing or impossible routing scenarios in large networks .

The subnet mask is a crucial complement to IP addresses, which distinguishes the network portion from the host portion of the IP address. It specifies how many bits of the IP address constitute the network address, with the remaining bits designated for the host identifiers. The subnet mask allows network devices to efficiently determine the network topology, enabling appropriate routing and allocation of IP addresses within specified ranges, thereby enhancing organizational and operational efficiency in network management .

You might also like