官术网_书友最值得收藏!

Converting from binary to hexadecimal notation

IPv4 addressing uses decimal notation and IPv6 uses hexadecimal notation, where the 128-bit address is divided into 16-bit chunks.

For example, the following number is a binary form of an IPv6 address:

00111101101011110010000000001011000000000000010000111100111100100100000011111110000000000000000001010000111111101111111110101011

The 128-bit-long binary address number is divided into 16-bit-long chunks, as follows:

0011110110101111 0010000000001011 0000000000000100 0011110011110010 0100000011111110 0000000000000000 0101000011111110 1111111110101011

Each binary chunk is then converted to a hexadecimal format and the blocks are separated by colons:

3DAF:200B:0004:3CF2:40FE:0000:50FE:FFAB

The following table shows the decimal values and their corresponding hexadecimal and binary values:

主站蜘蛛池模板: 丹阳市| 盐边县| 湖州市| 新昌县| 灌南县| 山东省| 竹山县| 荃湾区| 双鸭山市| 南澳县| 越西县| 古蔺县| 望江县| 阿尔山市| 康平县| 岐山县| 土默特右旗| 阜康市| 武威市| 许昌县| 开原市| 中宁县| 桦川县| 高陵县| 双峰县| 河源市| 克山县| 平乐县| 那曲县| 观塘区| 湘西| 盘山县| 当雄县| 钦州市| 汉寿县| 平远县| 威海市| 罗平县| 潞西市| 八宿县| 固始县|