SKY外语计算机学习

标题: ip地址 [打印本页]

作者: rogan    时间: 2012-7-15 14:56
标题: ip地址
本帖最后由 rogan 于 2012-7-15 15:00 编辑

classInternet Protocol Range of first octet (decimal)Network ID formatHost ID format Number of networks Number of addresses per network
A00-127ab.c.d2^7 = 1282^24 = 16777216
B10128-191a.bc.d2^14 = 1282^16 = 65536
C110192-223a.b.cd2^21 = 20971522^8 = 256

作者: rogan    时间: 2012-7-15 15:04

IANA-reserved private IPv4 network ranges
Start End No. of addresses
24-bit block (/8 prefix, 1 × A) 10.0.0.010.255.255.255 16777216
20-bit block (/12 prefix, 16 × B) 172.16.0.0 172.31.255.255 1048576
16-bit block (/16 prefix, 256 × C) 192.168.0.0 192.168.255.255 65536

作者: rogan    时间: 2012-7-15 15:09

作者: rogan    时间: 2012-7-15 15:59
   ip数据包,摘自rfc791
     0                   1                   2                   3
     0  1  2  3 4  5  6  7 8  9 0  1  2  3 4  5  6  7  8 9  0  1  2 3  4  5 6  7  8  9  0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Ver= 4 |IHL= 5 |Type of Service|        Total Length = 21      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Identification = 111     |Flg=0|   Fragment Offset = 0   |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Time = 123  |  Protocol = 1 |        header checksum        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                         source address                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                      destination address                      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     data      |
   +-+-+-+-+-+-+-+-+




欢迎光临 SKY外语计算机学习 (http://www.skywj.com/) Powered by Discuz! X2.5