码迷,mamicode.com
首页 > Web开发 > 详细

TCPIP------Internetworking protocols

时间:2016-09-09 00:47:06      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

IP地址分配组织

  • American Registry for Internet Numbers (ARIN)
  • Reseaux IP Europeans (RIPE)
  • Asia Pacific Network Information Centre (APNIC)

IP地址分类、IP子网掩码、IP路由

(略)

私网地址

  • 10.0.0.0: A single Class A network
  • 172.16.0.0 through 172.31.0.0: 16 contiguous Class B networks
  • 192.168.0.0 through 192.168.255.0: 256 contiguous Class C networks

CIDR

  • 比如若干个C类地址将其合并成为具有统一ip prefix的条目,这种类似子网划分的反向操作,就是CIDR,当然CIDR跟路由有很大的关系。

IP包头格式

    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 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Version|  IHL  |Type of Service|          Total Length         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |         Identification        |Flags|      Fragment Offset    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Time to Live |    Protocol   |         Header Checksum       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                       Source Address                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Destination Address                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                    Options                    |    Padding    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

TCPIP------Internetworking protocols

标签:

原文地址:http://www.cnblogs.com/stevenotes/p/5854948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!