eolas/zk/IP_addresses.md

34 lines
930 B
Markdown
Raw Normal View History

2024-08-16 16:00:03 +01:00
---
title: IP_addresses
2024-08-30 07:00:03 +01:00
tags: [networks, internet]
2024-08-16 16:00:03 +01:00
created: Friday, August 16, 2024
---
# IP addresses
## IPv4 vs IPv6
IP addresses come in two formats and bit-lengths depending on which version of
the [Internet Protocol](Internet_Layer_of_Internet_Protocol.md) is being used.
- IPv4 addresses are 32-bits in length
- IPv6 addresses are 128-bits in length
The larger the bit-length, the more unique addresses that can be generated. Thus
IPv6 can create more addresses that IPv4.
This entry focuses on IPv4 addresses.
## Anatomy of an IPv4 address
2024-08-30 07:00:03 +01:00
Each of the 32 bits are divided into four groups which are each 8 bits in
length. Each group therefore comprises an octet and is separated by dots.
2024-08-16 16:00:03 +01:00
The decimal number system, rather than binary is used to represent the values.
2024-08-30 07:00:03 +01:00
This means each binary octet is three decimal digits in length.
2024-08-16 16:00:03 +01:00
2024-08-30 07:00:03 +01:00
The 32 bits comprise two major groupings
2024-08-16 16:00:03 +01:00
- the **network prefix**
- the **host**