Ramblings

Introspective narcissism since the 2000s.

User Tools

Site Tools


ip_address

This is an old revision of the document!


Table of Contents

It's not religion if it's true
Science

Objective inquiry


History
Philosophy
Inclusion
Doppler Effect

Falsified Hypotheses


Science Says

Information Technology/Networking/
IP Address

An IP (Internet Protocol) address is a numerical identifier assigned to a network interface, allowing it to be identified and communicate with other devices over an IP network.

Any device that wants to communicate with other devices over an IP network (such as LAN, WLAN or even WAN) needs an appropriately configured IP address. IP addresses are used by other devices on the network as an identifier and is used for routing (ie. where to send data). In most cases, especially home networks, a central router provides a DHCP (Dynamic Host Configuration Protocol) server that allows automatic IP negotiation. Automatic IP negotiation means the DHCP server can assign IP addresses to newly connecting devices without requiring manual configuration each time a (new) device connects. However, both a router or a DHCP server aren't strictly necessary and manual configuration on the hosts can set them up with an IP address and enable communication between them (though it's a bog to deal with). The rest of this page will talk largely about DHCP setups.

Fundamentals

A classical IP address, as you might find in the wild, can look something like this:

217.154.217.127
This is a standard IPv4 address: A set of four numbers, each between 0 and 2551), seperated by a dot.
The reason this is so is because of math. As you may know, computers in the 21st century work with ones and zeroes. This is the binary system and individual ones and zeroes are called “bit”s. Eight of these in a row form a “byte”. The maximum number you can express in the decimal system with three digits is 999 (to get to 1000 you would need a fourth digit). In binary, the maximum number you can express with eight digits is 11111111. This number, converted to the decimal system, is 255, which is the reason numbers in IP addresses never exceed 255. Expressed in binary, the above IP address looks something like this:

11011001.10011010.11011001.01111111
An IPv4 address is a set of 32 bits, divided into four groups of bits called octets in networking (or they're just a Byte if you think about them in terms of data length). When your device wants to send data somewhere, it will send its data to your router with both the destination IP and the origin IP, like above, and the router will use IP tables to determine where to forward your data to.

Before I move on, I need to touch on IPv4 and IPv6. As you may notice, there are a lot of internet-capable devices around us. Whether you connect to WLAN, or a cell tower or even just Bluetooth, your device will be using IP for the connection, so all of them need an IP address when they're online. There are a few billion IP-capable devices out there, and the number 256 isn't quite a lot in comparison. Even the 256 * 256 * 256 * 256 = 4294967296 (4.29B, or 4.29Mlrd) is a bit tight in the calculation. Makers of the Internet Protocol back then couldn't feasibly have known how popular it was going to become, so they thought that an address range of some 4.3 billion addresses would surely be enough.

Well, it wasn't, and so eventually IPv6 was born, a new standard with a broader address range to fit more devices:
2a01:239:4e0:a500::1

It's beautiful, isn't it! Yeah, we all know it's not beautiful, but such is the necessities of our times. There are the two types of IP addresses in popular use: IPv4 and IPv6. IPv4, four groups with eight bits and IPv6, eight groups of four hexadecimal digits. 32 bits versus 128 bits. IPv4 and IPv6 are not interoperable and function seperately from each other. The transition has been going on for a long time now, but the internet is reluctant to move away from IPv4, so maintainers of websites have the very pretty task of making their website compatible with both. You have probably already used IPv6 without knowing it.

1)
Creating a range of 256 total possible values, if you include 0 as a number; ie. 1 - 255 is 255 possible values, plus 0 is another possible value, so 256.
ip_address.1794219451.txt.gz · Last modified: by ultracomfy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki