网络的经济基础篇-之二-IPv4、IPv6

本文详细介绍了IPv4和IPv6的相关概念,包括IPv4的Header字段、IPv4与IPv6地址类型,特别是IPv6的扩展头部,如Hop-by-Hop Options、Routing、Fragment、Authentication等,以及它们在网络中扮演的角色和处理规则。同时,讨论了IPv4与IPv6在设计上的差异,如IPv6的固定长度头部、扩展头的使用以及省略校验和等特性。
摘要由CSDN通过智能技术生成

1      IPv4


Header Length

4-byte (32 bit), minimum = 5 (20 bytes),maximum = 15 (60 bytes)

TOS (Type of Service)


D:0 = NormalDelay                   1 = Minimize Delay

T:0 = NormalThroughput           1 = Maximize Throughput

R:0 = NormalReliability             1 = Maximize Reliability

C:0 = NormalCost                      1 = Minimize Cost

Total Length

byte(8 bit), including header and data,maximum = 65,535.

Identification

An identifying value generated by thesender to aid in assembling the fragments of a datagram.

DF

0 = Can Fragment            1 = Don’t Fragment

MF

0 = Last Fragment            1 = More Fragments

Fragment Offset

8-byte (64 bit), it indicates where thefragment belongs. The first fragment has offset zero.

Protocol

It indicates the next level protocol usedin the data portion of the datagram.

HeaderChecksum

checksum on the header only. For computingthe checksum, the checksum field is set to zero. Since some header fieldschange (e.g., TTL), the checksum field is recomputed and verified at each pointwhere the header is processed.

Padding

The padding is used to ensure that the headerends on a 32 bit boundary.

2   IPv4 Address


Host Address is divided into Subnet ID andHost ID. Subnet Mask is used todistinguish them.

 

A

10.0.0.0 ~ 10.255.255.255

B

172.16.0.0 ~ 172.31.255.255

C

192.168.0.0 ~ 192.168.255.255

Private IPv4 Address

 

Network Address

Host Addresss

Source

Destination

 

Subnet ID

Host ID

0

0

 

0

hostid

O

X

host on the network

specific host on the network

127

 

*

O

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值