Overview of IPv4 Address Classes
IPv4 addresses are 32-bit addresses organized into four octets (8 bits each). For a deeper review of their fundamental structure, you can explore our guide on Understanding IPv4 Addresses: Structure, Notations, and Validity. These addresses are divided into five distinct classes: A, B, C, D, and E. The class of an address is determined by the first octet (the first 8 bits), specifically the leading bits.
Key Identification Rules
- Binary Notation: Look at the first bits of the first octet.
- Dotted Decimal Notation: Check the numeric range of the first octet (0–255).
The Five IP Classes in Detail
Class A (General Purpose)
- First bit fixed: 0
- First octet range (decimal): 0 to 127
- Binary pattern: 0xxxxxxx (7 bits for network, 24 for hosts)
- Usage: Large networks (e.g., big corporations)
Class B (General Purpose)
- First two bits fixed: 10
- First octet range (decimal): 128 to 191
- Binary pattern: 10xxxxxx (14 bits for network, 16 for hosts)
- Usage: Medium-sized networks
Class C (General Purpose)
- First three bits fixed: 110
- First octet range (decimal): 192 to 223
- Binary pattern: 110xxxxx (21 bits for network, 8 for hosts)
- Usage: Small networks (e.g., local area networks)
Class D (Multicasting)
- First four bits fixed: 1110
- First octet range (decimal): 224 to 239
- Binary pattern: 1110xxxx
- Usage: Reserved for multicast groups
Class E (Experimental/Research)
- First four bits fixed: 1111
- First octet range (decimal): 240 to 255
- Binary pattern: 1111xxxx
- Usage: Reserved for future or experimental use
How to Identify the Class: Step-by-Step Examples
Example 1: Dotted Decimal Notation
Given IP: 192.168.1.1
- Focus on the first octet: 192
- Check the range: 192 is between 192 and 223
- Conclusion: Class C
Example 2: Binary Notation
Given IP (first octet in binary): 10010101
- The first bit is 1, the second is 0 → pattern 10...
- Conclusion: Class B
Quick Reference Table | Class | First Octet Range | Binary Start | Purpose | |---|---|---|---| | A | 0 – 127 | 0 | General | | B | 128 – 191 | 10 | General | | C | 192 – 223 | 110 | General | | D | 224 – 239 | 1110 | Multicast | | E | 240 – 255 | 1111 | Reserved |
Practice Activity
Problem 1: Dotted Decimal
Identify the class of these IPs:
- 192.168.1.1 → Class C
- 10.0.0.1 → Class A
- 172.16.0.1 → Class B
- 224.0.0.5 → Class D
Problem 2: Binary Notation (Homework)
Find the class for these binary first octets:
- 01101010 → (Starts with 0 → Class A)
- 10110100 → (Starts with 10 → Class B)
- 11010111 → (Starts with 110 → Class C)
- 11101111 → (Starts with 1110 → Class D)
Tip: Post your answers in the comments to check your understanding.
Key Takeaways
- Only the first octet matters for class identification. For more background on why this system was developed, check out our article on Why We're Out of IP Addresses: Classful Addressing Explained.
- Classes A, B, and C are used for standard unicast addressing (general internet use).
- Class D is exclusively for multicasting.
- Class E is reserved for research and experimental purposes.
- Mastering binary-to-decimal conversion is essential for accurate identification. If you need help with conversions, see Convert IPv4 Addresses: Binary to Dotted Decimal & Vice Versa.
To take your skills further after identifying classes, learn how to create efficient subnets by studying Mastering CIDR and Subnetting: Essential CCNA Network Skills or review the broader concepts in IP Addresses Explained: Master Subnetting Basics for IT Pros.
Hello everyone. Welcome back. In today's lecture we will see the part one of class full addressing. We will start the
session with the outcomes. Upon the completion of the session the learner will be able to outcome number one. We
will understand various classes of IPv4 address. Outcome number two. We will identify the class of IP address with
the help of an activity. Let's dive into the topic directly. Basically we have five classes of IPv4 addresses. Class A,
class B, class C, class D, and class E. We know very well that IPv4 addresses can be represented in two ways. It can
be represented either in binary notation or in dotted decimal notation. We know IPv4 addresses are 32 bits long. These
32 bits are organized into four octets or four bytes and each byte will be eight bits long. So we have four bytes
in an IPv4 address. These four bytes can also be called as four octets because every octet is going to contain eight
bits. So 8 + 8 + 8 + 8 is equal to 32 bits and that's why IPv4 addresses are of 32 bits long. And class A means out
of these 32 bits and the first byte that is the first octet's first bit, the most significant bit. If it is zero, then it
is class A. If the first two bits in the first byte are 10, that is the starting of the IPv4 address in binary, if they
are 10, then it do belong to class B. If the first three bits are 110, then it do belong to class C. If it is 1110, that
is if the IPv4 address starts with 1110, then it is class D. The first four bits of the first byte or the first octet of
an IPv4 address are four ones, then it is class E. So, if it is represented in binary, we need to see what are the bit
values. Whether the IP address is belonging to class A, B, C, D, or E. In case if it is given in a dotted decimal
notation, say if the first byte or the first octet is between 0 and 127, it is belonging to class A. In case if it is
between 1 28 and 191, it belongs to class B. If it is 192 to 223, it is class C. If it is between 224 and
239, it is class D. And if the first byte or the first octet is between 240 and 255,
then it is class E. How these values can be generated? In an IPv4 address in a dotted decimal notation, every octet
will be between 0 and 255. Let's see the various classes of IPv4 address in a detailed manner. Say, we
know we have five classes of IPv4 addresses and we have seen in the previous slide that what is the range of
each class. We are going to see things elaborately now. We have seen in the previous slide that the class A is first
octet's first bit is fixed. That is, it is 0. So, when we say this 0 is fixed and in the first octet, we have four
octets in an IPv4 address and we are concerned only about the first octet. In the first octet, the first bit is
reserved. That is, it is 0. And we have remaining seven bits. The starting of this class will be all zeros in the
seven bits because the first bit is 0 and the ending of the IP address in class A will be all seven ones. That is,
this 0 is fixed and we have seven zeros in the remaining seven bits and we have seven ones in the remaining seven bits.
And this is the starting of the class A IP address, and this is the end of the class A IP address. If this is the
starting of the IP address, what will be the value? If all eight bits are zero, it is zero, and this bit is zero, that
is the position 128 is zero, and we have ones in all other places. So, when we sum these positions, we will be getting
127, and that is why this is zero, that is the starting in the decimal it is zero, and the ending is 127.
So, we'll be getting 127 here. And let's move on to class B. In class B, the first two bits is 10, which is fixed.
So, when we have the first two bits that is fixed as 10, and we'll be having the remaining six bits as zero here, and
that is the starting of the IPv4 address in class B, and the remaining six bits will be one in class B. Please ponder
one thing very clearly, that we are concerned only on the first octet in order to find the class of the IP
address. So, what will be the decimal value? When we see the decimal value, this is 128, and there are no ones in
the remaining bit. So, the starting will be 128, and the ending will be 191. So, when we add the positions, we'll be
getting 191. To know the positions of these numbers, I request you to watch my previous lecture, where I have
illustrated how to convert the decimal into binary, and binary into decimal. Then coming to class C, we know in class
C the first three bits are fixed, which is 110. When we have 110 is fixed in the places, we will be having obviously five
bits left. And these five bits, and the starting will be all zeros, and the ending will be all ones. And when we
convert the binary into decimal, we will be getting 192 as the starting, and 220, that is this binary equivalent will be
223 in decimal. And this is the class C address. And coming to class D, we know the IP address will start with 1110. So,
1110 is fixed. When 1110 is fixed, we are left with only four bits. The starting of this will be 1110 and 0000,
and the ending will be 11101111. When we convert this into decimal, we'll be getting 224 as the starting of the IP
address of class D and 239 as the ending of the IP address in class D. Let's now move on to class E. In class E, we know
the starting of the IP address will be all four ones. When all four ones are fixed, we have only four bits remaining.
And these four bits, the starting will be all zeros, and the ending will be all ones. And when it is all zero in the
last four places of the first octet, then the decimal equivalent will be 240, and the final value will be 255.
So, the starting of class E is 240, and the ending of class E is 255. And just recall, what is the starting value in an
octet? It's zero, right? In decimal, it is zero. And what is the final value in an octet? It is obviously 255. Between
zero and 255 in the first octet, we have five classes. These class A, B, C are for general purpose, and class D is for
multicasting purpose, and class E is reserved for experimental and research purpose. I'm not going into the details
of these things in this lecture. Anyway, we are going to deal about this elaborately in the next lecture. This
lecture is intended to know how many classes and how each class is identified. Let's now move on to the
activity. The activity is, find the class of the following dotted decimal IPv4 addresses. So, we are given with
some IPv4 addresses, and we are required to identify or find the class of the IPv4 address. IPv4 addresses can be
given either in the dotted decimal format or in the binary format. In this activity, the IPV4 address is given in
the dotted decimal format. So, these are the IP addresses given. How to identify the class of the IP address? We are
required to focus on the first octet. If the first octet is between 0 and 127, it is class A. If it is between 128 and
191, it is class B. If the first octet is between 192 and 223, it is class C. Between 224 and 239, it is class D. And
between 240 and 255, it is class E. The first octet in this IP address is 192. So, this is between 192 and 223. So,
obviously, it is class C. Let's move on to the next value. This is starting with 10. If the first octet is between 0 and
127, it is class A. And coming to the third one, and this octet is between 128 and 191. So,
obviously, it is class B. And the class for the last IP address is class D. This is a multicast address. Why? If it is
between 224 and 239, obviously, it is class D, which is mainly reserved for multicast purpose. If you want to solve
these questions, so you should be very proficient with this table. Just refer the first octet values and identify the
class. The question may be given either in the dotted decimal notation or in the binary notation.
Now, let's see the homework question. The question is find the class of the following IPV4
addresses. And we are given with four IPV4 addresses, but this time the IPV4 addresses are given in the binary
notation. Four questions are given. Just observe the bits in the first octet and find the class of these IPV4 addresses.
Pause this video for a while. Take the help of this slide and try solving this problem.
And post your answers in the comment section. I hope now you understood the various
classes of IPv4 address and we will be able to identify the class of IP address if it is given either in the binary form
or in the dotted decimal form. I hope you guys enjoyed the lecture and thank you for watching.
The class is determined by the first octet (the first 8 bits) of the 32-bit address. You can check this either through the leading bits in binary notation (e.g., '0' for Class A) or the decimal range of the first octet (e.g., 0–127 for Class A).
Classes A, B, and C are used for general unicast networking, with Class A for large networks, B for medium-sized, and C for small networks like LANs. Class D is reserved exclusively for multicast groups, and Class E is reserved for experimental or research purposes.
Look at the first octet of the IP address. Class A ranges from 0 to 127, Class B from 128 to 191, and Class C from 192 to 223. For example, 10.0.0.1 (first octet=10) is Class A, and 192.168.1.1 (first octet=192) is Class C.
Examine the first bits of the first octet: Class A starts with '0', Class B with '10', Class C with '110', Class D with '1110', and Class E with '1111'. For instance, binary '11010111' begins with '110', making it Class C.
Because class identification relies on interpreting the first octet, which can be expressed in either binary or decimal. Converting between the two allows you to identify the leading bits precisely—essential for distinguishing classes like D (1110) from E (1111).
Class D (224–239) is exclusively for multicasting, where data is sent to a group of devices simultaneously. Unlike Classes A, B, and C, it does not support unicast addressing, and its binary pattern always starts with '1110'.
Class E (240–255) is reserved for experimental or research purposes, not for standard public or private networks. Its binary pattern starts with '1111', and it functions as a test range rather than for regular internet traffic.
Keep this summary
Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.
Save to LunaNotesOr summarise for another video.
This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.
Related summaries
IP Address Classes and Subnet Mask: Network vs Host Portions Explained
This video explains IPv4 address classes (A, B, C, D, E) and introduces the critical concept of the subnet mask. Learn how subnet masks differentiate the network and host portions of an IP address to determine whether devices are on the same or different networks.
Convert IPv4 Addresses: Binary to Dotted Decimal & Vice Versa
This video provides a comprehensive tutorial on converting IPv4 addresses between dotted decimal and binary notation. Learn a simple, step-by-step method using the 8-bit power-of-two sequence to perform conversions accurately for all four octets of an IPv4 address.
Understanding IPv4 Addresses: Structure, Notations, and Validity
This lecture provides a comprehensive introduction to IPv4 addresses, covering their 32-bit structure, binary and dotted decimal notations, and how to identify valid versus invalid IP addresses. Learn about address space, uniqueness, and the role of NAT technology in managing billions of devices.
Why We're Out of IP Addresses: Classful Addressing Explained
Discover the reasons behind the IPv4 address shortage, from mismanaged classful addressing to wasted IP ranges. Learn about Class A, B, C, D, E networks, loopback addresses, and how subnetting offers a band-aid solution.
Mastering CIDR and Subnetting: Essential CCNA Network Skills
Explore the fundamentals of CIDR (Classless Inter-Domain Routing) and subnetting, vital for CCNA certification and network engineering. This guide breaks down IPv4 address classes, the limitations of classful addressing, and detailed subnetting techniques to maximize IP address efficiency.
Most viewed summaries
A Comprehensive Guide to Using Stable Diffusion Forge UI
Explore the Stable Diffusion Forge UI, customizable settings, models, and more to enhance your image generation experience.
Kolonyalismo at Imperyalismo: Ang Kasaysayan ng Pagsakop sa Pilipinas
Tuklasin ang kasaysayan ng kolonyalismo at imperyalismo sa Pilipinas sa pamamagitan ni Ferdinand Magellan.
Mastering Inpainting with Stable Diffusion: Fix Mistakes and Enhance Your Images
Learn to fix mistakes and enhance images with Stable Diffusion's inpainting features effectively.
Pamamaraan at Patakarang Kolonyal ng mga Espanyol sa Pilipinas
Tuklasin ang mga pamamaraan at patakaran ng mga Espanyol sa Pilipinas, at ang epekto nito sa mga Pilipino.
How to Install and Configure Forge: A New Stable Diffusion Web UI
Learn to install and configure the new Forge web UI for Stable Diffusion, with tips on models and settings.
Found this summary useful?
Take it with you. One click puts it in your own LunaNotes library.
Save to LunaNotes