IP Address: Difference between revisions
No edit summary |
Bill Jouris (talk | contribs) Further explanation on zero compression in IPv6 addresses |
||
| Line 3: | Line 3: | ||
In the [[IPv4]] scheme, IP addresses consist of 4 [[byte]]s, allowing for a full range of 4,294,967,295 unique addresses. Represented visually these addresses consist of four numbers which are between 0 and 255, separated by periods, such as 132.42.45.101. | In the [[IPv4]] scheme, IP addresses consist of 4 [[byte]]s, allowing for a full range of 4,294,967,295 unique addresses. Represented visually these addresses consist of four numbers which are between 0 and 255, separated by periods, such as 132.42.45.101. | ||
In [[IPv6]], IP addresses consist of 16 [[byte]]s, allowing for a theoretically total of 340,282,366,920,938,463,463,374,607,431,768,211,456 unique addresses. The literal representation is done in blocks of 16 bits written in hex, separated by colon, such as 2001:db8:1:2:3:4:5:6 (zeros at the left don't need to be written). A longer address, with many zeros can get compressed; for example ff02:0:0:0:0:0:0:1 will become ff02::1. | In [[IPv6]], IP addresses consist of 16 [[byte]]s, allowing for a theoretically total of 340,282,366,920,938,463,463,374,607,431,768,211,456 unique addresses. The literal representation is done in blocks of 16 bits written in hex, separated by colon, such as 2001:db8:1:2:3:4:5:6 (zeros at the left don't need to be written). A longer address, with many zeros can get compressed; for example ff02:0:0:0:0:0:0:1 will become ff02::1. In the case of an address with multiple blocks of zeros, e.g. ff02:0:0:0:12:0:0:1, only the longer block is compressed. That is, ff02:0:0:0:12:0:0:1 becomes ff02::12:0:0:1 rather than ff02:0:0:0:12::1. | ||
==See also== | ==See also== | ||