-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Python Web Development with Sanic
By :
IPv4 addresses are 32-bit numbers that are commonly expressed in the dotted-decimal format as 4 octets separated by periods and the bits are 1s and 0s. Since an octet is 8 bits and there are 4 octets, this means 8 bits per octet x 4 octets = 32 bits.
IPv4 addresses are commonly written in a dotted-decimal format such as 172.16.1.1 or even 192.168.1.1. While the dotted-decimal format is easy to understand for humans, network devices and computers use electrical, light, and radio frequencies when communicating over a network. For instance, a 1 can represent a high electrical signal, while a 0 can represent a low electrical signal.
Therefore, part of the journey in learning about IPv4 addresses is understanding how to convert IPv4 addresses from the dotted-decimal to the dotted-binary format, and vice versa.
The following is an example of an IPv4 address in both dotted-decimal and dotted-binary format: