0000 | 3c | ef | bc | f1 | fb | 97 | b8 | ca | 3a | 7b | 55 | b1 | 08 | 00 | 45 | 00 |
0010 | 00 | 34 | 39 | 46 | 40 | 00 | 40 | 06 | 00 | 00 | c0 | a8 | 1f | 60 | c0 | a8 |
0020 | 1f | 91 | ff | d8 | 00 | 50 | b5 | 59 | b8 | a7 | 00 | 00 | 00 | 00 | 80 | 02 |
0030 | 20 | 00 | c0 | 68 | 00 | 00 | 02 | 04 | 05 | b4 | 01 | 03 | 03 | 02 | 01 | 01 |
0040 | 04 | 02 | | | | | | | | | | | | | | |
版本(4) | 首部长度(4) | 区分服务(8) | 总长度(16) | |
标识(16) | 标志(3) | 片偏移(13) | ||
存活时间(8) | 协议(8) | 首部检验和(16) | ||
源IP地址(32) | ||||
目标IP地址(32) | ||||
可选字段(可变) |
0100 | 0101 | 0000,0000 | 0000,0000,0011,0100 |
0011,1001,0100,0110 | 0100,0000,0000,0000 | ||
0100,0000 | 0000,0110 | 0000,0000,0000,0000 | |
1100,0000,1010,1000,0001,1111,0110,0000 | |||
1100,0000,1010,1000,0001,1111,1001,0001 | |||
可选字段(可变) |
10进制: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16进制: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
二进 制 :1100,0000,1010,1000,0001,1111,0110,0000
取0000转:0*2^3 + 0*2^2 + 0*2^1 + 0*2^0 = 0 取 C 转 | 12/2=6……0 | 取 8 转 | 8/2=4……0 | 以此类推计算 |
| 6/2=3……0 | | 4/2=2……0 | |
| 3/2=1……1 | | 2/2=1……0 | |
| 1/2=0……1 | | 1/2=0……1 | |
得到二进制: | 1100 | 得到二进制: | 1000 |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |