Home / Blog /IPv4 Explained: Everything You Need to Know

IPv4 Explained: Everything You Need to Know

IPv4 is the first version of the most widely used Internet Protocol (IP) today, playing an extremely important role in connecting devices globally. This article will give you an overview of IPv4, from the basic concept, how it works, to why IPv4 is still an indispensable part of the network infrastructure despite its appearance. appearance of IPv6. Explore now with Hidemyacc!

1. What is IPv4?

IPv4 (Internet Protocol Version 4) is a network protocol belonging to the fourth version of the Internet Protocol, standardized by the United States Department of Defense in the MIL-STD-1777 standard. This was the first IP version to be widely deployed globally and still plays an important role in the global network system.

IPv4 is a network protocol that belongs to the fourth version of the Internet Protocol

IPv4 operates under a packet switching model, focusing on data transmission without ensuring packet order or accuracy in packet arrival to the destination. However, IPv4 has a mechanism to check data integrity through accompanying test packets.

Address IPv4 is a string of 32 bits, divided into 4 groups of numbers (octets), each group has 8 bits, separated by dots. For example, the address "172.16.254.1" is a valid IPv4 address, with each group of numbers ranging from 0 to 255. This address helps devices on the Internet identify and communicate with each other.

2. How many classes does an IPv4 address have?

IPv4 is divided into many different address classes to manage IP address space more effectively, including: A, B, C, D and E. Each class has a separate function and scope.

  • Class A: Used for large networks.

  • Class B: Suitable for medium and large networks.

  • Class C: Used for small networks.

  • Class D: Used for multicast communications.

  • Class E: For testing and backup purposes.

IPv4 is divided into different address classes to manage IP address space more effectively

2.1 Class A

Class A uses the first octet as the network part and the remaining three octets as the host part. Class A addresses have the first bit 0, with an address range from 1.0.0.0 to 126.0.0.0. Network 127.0.0.0 is used for loopback purposes (sending data to the sending machine itself). Each Class A network is capable of containing 2^24 - 2 hosts.

2.2 Class B

Class B uses the first two octets for the network portion and the last two octets for the host portion. Class B addresses always start with two bits of 10, with a range from 128.0.0.0 to 191.255.0.0. Class B supports 2^16 - 2 hosts per network.

2.3 Class C

Class C uses the first three octets for the network portion and the last octet for the host portion. Class C addresses start with the three bits 110, with an address range from 192.0.0.0 to 223.255.255.0. Each Class C network can support 2^8 - 2 hosts.

2.4 Class D

Class D addresses range from 224.0.0.0 to 239.255.255.255 and are used for multicast communications. An example is the address 224.0.0.9 for the RIPv2 protocol.

2.5 Class E

Class E starts from 240.0.0.0 onwards and is usually reserved for backup purposes or for use in tests.

3. How IPv4 works

Understand how it works IPv4 helps you manage your network more effectively and securely. Specifically, IPv4 works according to the following steps:

  • Data is divided into small packets, each packet contains a header that includes information about the source IP address, destination IP address and other control information.

  • Data packets move within the network based on the IP address present header.

  • The router Routes data packets based on IP address, ensuring they are delivered to the correct destination.

Data is divided into small packets for management in IPv4

4. Advantages and disadvantages of IPv4 addresses

IPv4 is one of the most popular network protocols today, widely used worldwide. However, besides its outstanding advantages, IPv4 also has some limitations that need to be considered.

4.1 Advantages

  • Data transfer does not require prior connection: IPv4 has a connectionless feature, which allows data to be sent without first establishing a connection with the destination device. This creates flexibility in routing packets when encountering transmission problems.

  • Create virtual communication across multiple devices: IPv4 helps build a simple virtual communication layer between devices, supporting easy network connection and communication.

  • Saves memory and is easy to remember: IPv4's 32-bit address saves more memory than IPv6, and the decimal address separated by dots also makes it easier to remember and manage.

  • Supports a variety of devices: IPv4 is deployed on millions of devices, ensuring compatibility and support across multiple operating systems, devices, and applications.

  • Supports video library and conferencing: IPv4 provides video transmission and online conferencing capabilities, supporting meetings, teleconferences, and live streaming.
IPv4 allows data to be sent without first establishing a connection

4.2 Disadvantages

  • Complex routing structure: IPv4 uses a complex routing structure, requiring routers to maintain large routing information tables, consuming a lot of memory resources.

  • Address space shortage: With an address space of only 32 bits, IPv4 is limited to about 4.3 billion addresses, which leads to a scarcity of IP addresses, especially in class B.

  • Lack of security integration: IPv4 does not have built-in security features. Security is typically performed at the application layer, and security solutions like IPSec primarily focus on traffic between networks rather than between servers. This motivates the development of IPv6 to overcome security limitations.
IPv4 uses a complex routing structure that consumes a lot of memory resources

5. Things to keep in mind when using IPv4

After understanding the address clearly IPv4 and network layers, here are some important points to pay attention to when working with this protocol:

  • IPv4 addresses of classes A, B, and C are often used to assign to host devices in the network.

  • You should check the first octet of an IPv4 address to determine which class it belongs to. If the first octet is between 1 and 126, the address is class A. If the octet is between 128 and 191, the address is class B. With ranges from 192 to 223, the address is class C. Addresses are 224 to 239 is of class D, and finally, addresses with octets 240 through 255 are of class E.

IPv4 addresses of classes A, B, and C are often used to assign to host devices in the network

6. Difference between IPv4 and IPv6

IPv4 and IPv6 There are obvious differences in structure and function. Here are three key points from a user perspective:

Criteria

IPv4

IPv6

Address space

  • 32 bits, equivalent to 4,294,967,296 IP addresses. 

  • Address space is almost exhausted.

  • 128 bits, allowing about 340,282,366,920,938,000,000,000,000,000,000,000,000 IP addresses.

  • The address space is almost infinite.

Name

Numeric address with four decimal numbers, each number from 0-255.

For example: 197.0.0.1.

Hexadecimal numeric address, with eight groups of numbers and characters from 0-9 and A-F.

For example: 2600:1400:d:5a3::3bd4.

Types of communication

Supports unicast (one-to-one), broadcast (one-to-all), multicast (one-to-many).

  • Supports unicast, multicast, and additional anycast.

  • Anycast sends data to the nearest of multiple receiving addresses.

7. Some frequently asked questions about IPv4

In this section, Hidemyacc will answer some common questions related to IPv4, from address exhaustion to why at all IPv4 and IPv6 still need to be used in parallel. This information will help you better understand the differences and challenges that IPv4 is facing in the constantly evolving landscape of the Internet.

7.1 Are IPv4 addresses used up?

IPv4 addresses have become scarce since the 1990s. To solve this problem, IPv6 was developed and deployed in 1994 by the Internet Engineering Task Force (IETF).

7.2 How many bits does each IPv4 address group have?

Each part of an IPv4 address, called an octet, consists of 8 bits. IPv4 is structured into four octets, making a total of 32 bits per address. The octets are represented as decimal numbers and separated by periods ("."). For example: 192.168.1.1.

Each part of an IPv4 address, called an octet, consists of 8 bits

7.3 Why not switch to using IPv6 completely?

A complete transition to IPv6 will be a long process, possibly lasting decades. Factors such as IPv4 technology still being used, high migration costs, and other issues make a full migration difficult in a short period of time.

7.4 How to solve the problem of IPv4 address shortage

Several solutions have been applied to deal with the shortage of IPv4 addresses:

  • Subnetting: Divide the network into smaller subnets to optimize address usage.

  • CIDR (Classless Inter-Domain Routing): Flexibly divide and manage network addresses, helping to save IPv4 addresses.

  • VLSM (Variable Length Subnet Masking): Allows dividing subnets with masks of different lengths to make the most of IP addresses.

  • NAT (Network Address Translation): The technology allows switching between private and public IP addresses, increasing the number of IP addresses that can be used in the internal network.

7.5 Why are two versions IPv4 and IPv6 needed?

The existence of both IPv4 and IPv6 is necessary because:

  • IPv4 has become a popular standard with widespread deployment, but its address space is exhausted and limited.

  • IPv6 was developed to solve the problem of address exhaustion by providing a larger address space (128 bits) and supporting many advanced features such as security and efficient routing.

  • Although IPv6 has many advantages, IPv4 is still widely used. Therefore, a gradual transition from IPv4 to IPv6 is needed to ensure compatibility and connectivity between the two versions during the development of the Internet.

Caption

IPv4 Although it has existed for a long time, it still plays an important role in constituting and maintaining global network connectivity. With its characteristics and limitations, understanding IPv4 not only helps you gain more insight into how the network works, but also prepares you well for the transition to new technologies like IPv6. By mastering the basics of IPv4, you can easily manage and optimize your network. If you have any questions, please contact Hidemyacc immediately for advice.

Read more

What is a Private IP Address? Benefits and Uses Explained

What is a Private IP Address? Benefits and Uses Explained

What is a Private IP, and why is it important in computer networks? In today’s digital world, where nearly everything is connected to the internet, understanding different types of IP addresses is essential. Hidemyacc’s article below will help you distinguish between private IP and public IP addresses, clarifying their roles within internal networks and on the internet.

hidemyacc
What is a Reverse Proxy? Key Benefits and Uses Explained

What is a Reverse Proxy? Key Benefits and Uses Explained

What is a Reverse Proxy? This term is essential in networking and information technology, frequently used in server systems. In this article, we’ll explore reverse proxies with Hidemyacc, covering everything from fundamental concepts to practical benefits and applications that enhance performance, security, and user experience. Discover more now!

hidemyacc
What is SoftEther VPN? A detailed guide to setting up SoftEther VPN

What is SoftEther VPN? A detailed guide to setting up SoftEther VPN

SoftEther VPN is one of the most powerful and flexible open-source VPN solutions available today, making it a top choice for businesses and individuals looking to establish a secure virtual private network. In this article, Hidemyacc will explain in detail what SoftEther VPN is, highlight its key advantages, and provide a comprehensive, step-by-step guide on how to use SoftEther VPN and set it up from A-Z. Discover more now!

hidemyacc
How to quickly and easily enable VPN on Opera in 2024

How to quickly and easily enable VPN on Opera in 2024

The Opera browser includes a built-in VPN feature that allows you to access the internet securely and anonymously without needing any external software. In this guide, we'll show you how to enable VPN on Opera quickly and easily, so you can browse the web safely and efficiently. Discover more with Hidemyacc now!

hidemyacc
15 Best free VPN software for PC

15 Best free VPN software for PC

Free VPN software has become a smart solution for users as personal information and privacy are increasingly at risk. In this article, Hidemyacc introduces the top 15 free VPN software for PC that you won’t want to miss. Read on to find the best tools to protect your privacy.

hidemyacc