ipv6和ipv4区别有:地址空间不同、路由表大小不同、组播支持不同、安全性不同、协议扩充不同等。
1、地址空间不同
IPv4地址长度是32位,支持的物理地址是2^32-1个地址;IPv6地址的长度是128位,支持的物理地址是2^128-1个地址。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/a6efce1b9d16fdfae589c077a68f8c5495ee7b45?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
2、协议扩充不同
IPv6的大小相比于IPv4更小。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/95eef01f3a292df5b226aa8cae315c6035a87345?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
3、组播支持不同
IPv6的组播支持及对流量的支持比IPv4强。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/ca1349540923dd540b96a1f1c309b3de9d824845?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
4、安全性不同
IPv6安全性更高,在使用IPv6网络中,用户可以对IP报文进行加密,并对IP报文进行校验,增强了网络安全。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/18d8bc3eb13533fae85395b7bad3fd1f40345b45?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
5、协议扩充不同
IPv6允许协议进行扩充而IPv4不允许。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/a71ea8d3fd1f4134f8d203e7371f95cad0c85e45?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)