Understanding IP Addresses: What They Are And Why They Matter
October 16 2024

In our increasingly digital world, understanding the fundamentals of internet connectivity is essential. One of the key components that facilitates online communication is the IP address. But what exactly is an IP address, and why is it so important? In this post, we'll dive into the definition, types, functions, and significance of IP addresses.

What is an IP Address?

An IP address (Internet Protocol address) is a unique string of numbers separated by periods (IPv4) or colons (IPv6) that identifies a device on a network. Imagine an IP address as your home address. It includes elements like a street, town, and postal code. However, instead of being a physical location, it's the unique address for your device. This address enables data to be sent and received across the internet.

The Structure of IP Addresses

An IP address is essentially a number, but it can be quite large and complex. To make it more manageable, we break it down into smaller, easier-to-remember segments.

  • IPv4: This version of IP addresses ranges from 0 to 4,294,967,295. The most common format consists of a set of four numbers separated by dots, each ranging from 0 to 255, such as 192.168.1.1. In comparison, 3,232,335,521 might seem cumbersome next to the easily remembered 192.168.0.1.

  • IPv6: As the number of devices connected to the internet has skyrocketed, IPv6 was developed to accommodate this growth. It features eight groups of four hexadecimal numbers, allowing for an astonishing 340,282,366,920,938,463,463,374,607,431,768,211,455 possible addresses. For example, an IPv6 address might look like 2001:0db8:85a3:0000:0000:8a2e:0370:7334 (Using contraction rules this becomes 2001:db8:85a3::8a2e:370:7334 which is marginally better). To put this into perspective, 15,105,161,659,217,452,220,756,623,068,985,251,85 is quite a mouthful compared to the concise format of 2c0f:7f20::1.

Scopes of IP Addresses

IP scopes refer to the range of IP addresses designated for specific purposes and accessibility within a network. Common types include public IP addresses, private IP addresses, and loopback addresses. Understanding these scopes helps in managing network resources efficiently.

1. Loopback: These special addresses are assigned on all internet capable devices and can be used by applications to communicate with other applications running on the same machine.

For IPv4 this is 127.0.0.1.
For IPv6 this is ::1.

It’s possible to configure additional loopback addresses on hosts, which is something that’s particularly useful on routers and switches, but not so much for other devices.

2. Link-Local: These addresses are used for communication within a specific link layer (ethernet LAN for example) and are not routable beyond that local link.

These have been called zero-conf in the past, and allows for devices connected to the same physical network to be able to communicate without an explicit IP configuration mechanism being in place.

For IPv4 these addresses begin with 169.254.
For IPv6 these addresses can be identified by starting with fe80::.

3. Private IP Address: These addresses are used within a local network and are not visible on the internet. They enable devices within the same administrative network (which could be multiple link-layer networks) to communicate.

For IPv4 the private IP ranges are:

  • 10.0.0.0/8 (these addresses will start with 10.)
  • 172.16.0.0/12 (these addresses will start with 172.16. through to 172.31.)
  • 192.168.0.0/16 (these addresses will start with 192.168.)

Private IP addresses are also known as Unique Local Addresses (ULA as more formally defined in IPv6), meaning they are unique to the organisation or network in which they are being used.

In IPv6, the range designated for Unique Local Addresses (ULA) is fc00::/7, which means the first block of hexadecimal digits will always start with fcXX or fdXX, with only fdXX currently being officially used. Following this, each organisation should select 40 bits of random (R) digits, followed by a network (subnet, S) identifier. As a result, these addresses will begin with fdRR:RRRR:RRRR:SSSS:. In short, you can recognise these addresses by their fdXX: prefix.

4. LSN/CGN (Large Scale NAT/Carrier Grade NAT): This allocation is unique to the ISP's network and resembles the private IP addresses used in consumer networks, but it is designed for the ISP's use and is applicable solely within the IPv4 framework.

The IP range here is 100.64.0.0/10, these addresses will start with 100.64. through to 100.127.

In the world of IPv6, ISPs can utilise Unique Local Addresses (ULA) if necessary; however, due to the vast range of IPv6 addresses, it's unlikely that any ISP will actually need to do so.

5. Global IP Address (Public IP Address): This type of IP address is assigned to your network by your Internet Service Provider (ISP), such as Interexcel World Connection. It is visible on the internet and facilitates communication with devices outside your local (home or business) network. A public IP address is also referred to as a global IP address.

Other than a few special-use-case addresses (not all of which has been explicitly mentioned), all other remaining addresses can be considered global.

The engineers behind IPv6 decided that in order to leave some space for a restart (in case we got it completely wrong) only a portion of the global space should be allocated to begin with by IANA (the Internet Assigned Numbers Authority). For this reason you will notice that almost all IPv6 addresses seem to begin with a 2 even though this may also be a 3, followed by three more digits in the first block.

Allocation Policy

IP addresses can be assigned using different mechanisms, but all these fall into two broad mechanisms:

  • Static IP Address: This is a permanent address that does not change, making it ideal for servers and devices that need to be consistently reachable. These are configured by hand and not typically used except for servers.

  • Dynamic IP Address: These are temporary addresses assigned for a period of time by some mechanism, usually DHCP (bootp is also used in some rare IPv4 environments, and SLAAC in IPv6). They can, and often do, change over time and are commonly used in most home networks.

The Importance of IP Addresses

Understanding IP addresses is crucial for several reasons:

1. Network Communication

IP addresses are fundamental for devices to communicate with one another. Without them, sending and receiving data packets would be impossible. For example, if you purchase a product on Takealot and fail to provide your delivery address, the Takealot driver won’t be able to locate you to deliver your parcel. The same principle applies to an IP address: without one, you won't be able to send or receive information over the internet.

2. Troubleshooting

When experiencing connectivity issues, an IP address can be a starting point for diagnosing problems, helping users understand whether the issue lies with their device or the network.

3. Geolocation

IP addresses can reveal information about a device's geographical location, helping businesses target services and advertisements more effectively. This is often raised as a privacy concern, and an advantage of IPv6 (IPv6 has privacy addresses which is intended to make such tracking harder, but since most of this tracking happens via browser cookies and other mechanisms it can be debated how effective this will be).

4. Security Measures

Knowing an IP address can help in identifying and blocking malicious traffic, enhancing cybersecurity for networks and online platforms.

How to Find Your IP Address

In the IPv4 world, you typically have only one IP address, which is usually a private one. To connect to the internet, you need a public IP address assigned by your Internet Service Provider (ISP). This situation has become increasingly complex due to the rise of carrier-grade NATs (CGNs). As a result, your public IP address may vary with successive requests, especially with certain providers in South Africa where this is common. To check your public IP, you can simply search for "what's my IP," but keep in mind that it might change frequently.

In contrast, with IPv6, you’re likely to have at least two addresses: a Link-Local address (which begins with fe80::*) and a global address (which starts with 2xxx: or 3xxx:). The global address is the one you would provide if someone is looking for your IP, as it is visible on the internet. Each device on your network will have its own unique global address, eliminating the need for NAT and the complexity that NAT brings with.

Finding your IP address is easy:

For Windows: The easiest way is to open Command Prompt and type ipconfig. Look for "IPv4 Address."
For Mac: Go to System Preferences > Network. Your IP address will be displayed in the status area.
For Mobile Devices: Navigate to your settings, select Wi-Fi, and tap on the connected network to view your IP address.
For Linux Devices: Type “ip ad sh” on the command line.

Moving to IPv6

As the internet continues to grow, the transition from IPv4 to IPv6 is becoming increasingly important.

1. Why Move to IPv6?

-Exhaustion of IPv4 Addresses: The pool of available IPv4 addresses is nearly depleted. IPv6 offers a vastly larger address space.
-Improved Security: IPv6 has built-in security features, including IPsec, which can be used to enhance data integrity and privacy.
-Better Performance: IPv6 can reduce latency and improve performance for certain applications, particularly for mobile devices.

2. Key Differences Between IPv4 and IPv6

-Address Length: IPv4 addresses are 32 bits, while IPv6 addresses are 128 bits, allowing for a virtually unlimited number of unique addresses. To put this in perspective, with around 8 billion people on the planet there is less than half an IPv4 address available per person, compared to over 42 octillion (27 zeroes after that …) of IPv6 addresses per person.
-Format: IPv4 is written in decimal (e.g., 192.168.1.1), while IPv6 uses hexadecimal (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
-Ease of remembering: It’s much easier for the human brain to remember IPv4 addresses compared to IPv6 - which makes mechanisms such as DNS ever more important.

Conclusion

In summary, an IP address is a crucial component of internet functionality, acting as the backbone for network communication. It enables devices to identify and connect with one another, ensuring that data can be transmitted accurately across the web.

Understanding the various types of IP addresses, such as public, private, static, and dynamic, can empower you to make informed decisions about your online activities. For instance, knowing when to use a static IP for reliable server access or recognising the security implications of dynamic IP addresses can enhance your experience and safety.

Using a static IP for reliable server access enhances safety by providing a consistent point of contact, which is crucial for secure configurations like firewalls and VPNs. When your server has a fixed address, you can implement specific security measures more effectively, such as whitelisting the static IP in security protocols.

In contrast, dynamic IP addresses improve safety by changing regularly, making it more challenging for potential attackers to target your device consistently. This unpredictability can deter unauthorised access, as attackers would need to continuously track IP changes. Additionally, dynamic IPs can help prevent certain types of attacks, such as IP spoofing, since the address is not fixed. Overall, understanding when to use each type can lead to a more secure network environment.

Moreover, this knowledge can be invaluable for troubleshooting connectivity issues. When you are equipped with an understanding of how IP addresses work, you can quickly identify potential problems, whether it's a misconfigured network setting or an issue with your ISP. Overall, grasping the significance of IP addresses not only enhances online navigation but also fosters a greater sense of control and awareness in an increasingly digital world.

ISPA Code of Conduct
Hosting by Interexcel World Connection © IEWC 2024