Experiment with a potential opening

This commit is contained in:
Nick Chambers 2024-10-08 01:05:14 -05:00
parent 0e6e3dfbfd
commit 7523767797

15
net/subnets.md Normal file
View file

@ -0,0 +1,15 @@
**Disclaimer:** Most, if not all, information in this article applies to both
IPv4 and IPv6. However, an IPv6 address is 4 times the size of an IPv4 address,
which is a lot more math that the author isn't willing to do. Due to this, all
examples will only be in the context of IPv4.
Cloudflare owns the number `16843009`. At least, as far as networks are
concerned they do. You'd be more likely to recognize it in the form `1.1.1.1`.
So how does the number `16843009` relate to the IP address `1.1.1.1`? Let's
start with what an IP address really is.
An IPv4 address is normally expressed as `A.B.C.D`, where each letter represents
an octet in decimal form. Since there are `4` octets, an IPv4 address is exactly
`32`-bits long. If you take the IP address `10.42.7.19` and write it in binary
form, you get `00001010.00101010.00000111.00010011`. This is referred to as a
bit string, which you'll notice contains exactly `32` bits as expected.