当前位置:网站首页>What are IPV4 and IPV6?
What are IPV4 and IPV6?
2022-08-02 15:29:00 【The stars have a meal】
Directory
First, write it in front
Binary
Binary only has 0 or 1, and every 2 will carry over. The comparison table is as follows
For example:
255=128=64+32+16+8+4+2+1
So the binary of 255 in decimal is eight 1s: 11111111
IPV4 address introduction
IPV4 address is composed of 4 groups of 8-bit binary, each group's decimal number range is 0 to 255
IP: network number + host number
IP addresses are divided into A, B, C,Classes D, E, D and E are special classes
In order to solve the unreasonable IP allocation caused by simple classification, the subnet mask was born
The subnet mask is actually used to distinguish the network number and the host number, and can be used to indicate that the following four IP addresses belong to the same network
> First convert the decimal to binary, use 1 to lock the same number of digits, and use 0 to represent different digits
The subnet mask is as follows:
Then convert the binary number to decimal, so the subnet mask is 255.255.255.252
We can clearly know the network number by putting the subnet mask and ip address togetherand host number boundaries
CIRD
There are several 1s in the subnet mask, so we can directly use '/(number of 1)' to represent the subnet mask
That is to say, we can use 192.168.0.0/30 to represent the above 4host numbers are in the same network
Second, the difference between IPV4 and IPV6
hex
Hexadecimal and decimal conversion
The difference between IPV4 and IPV6
1. Performance
Compared with IPv4, IPv6 increases the address length from 32 bits to 128 bits, which can support more address requirements.Moreover, the coding of IPv6 addresses adopts a hierarchical hierarchical structure similar to CIDR, which simplifies routing and speeds up routing.
2. Simplification of header format
IPv4 has a variable length of 20 to 60 bytes according to the IP options provided; while IPv6 has a fixed length of 40 bytes, and the header is simpler than IPv4.Also, IPv4 headers may come with various options, but IPv6 headers have no options, but add additional extension headers (optional, which contain hop-by-hop extensions, routes, fragments, and destinations, etc.), greatly reducing packet processingand header bandwidth overhead.
Compared with IPV4, IPV6 changes DiffServ toTraffic class, the total length is changed to the payload length, the TTL is changed to the hop limit, and the protocol is changed to the next header
The first 64 bits of IPV6 are the network part, and the last 64 bits are the interface ID
3. Cybersecurity
For IPv4, Internet Security Protocol (IPsec) is optional, but not necessarily free, and some require paid support; but for IPv6, Internet Security Protocol is required.Additionally, things like authentication, data consistency, and confidentiality were added to IPv6.
In this way, the design of IPV6 does consider many security issues, but there are still many security issues in practical applications, and it is not clear which is more secure than which one
4. Address Type
边栏推荐
- MATLAB图形加标注的基本方法入门简介
- 使用 腾讯云搭建一个个人博客
- BLE蓝牙5.2-PHY6222系统级芯片(SoC)智能手表/手环
- FP6195耐压60V电流降压3.3V5V模块供电方案
- 7. How to add the Click to RecyclerView and LongClick events
- Summarize computer network super comprehensive test questions
- 日常-笔记
- DP4056电源保护芯片锂电池pin对pinTP4056
- ASR6601牛羊定位器芯片GPS国内首颗支持LoRa的LPWAN SoC
- A clean start Windows 7?How to load only the basic service start Windows 7 system
猜你喜欢
cmake configure libtorch error Failed to compute shorthash for libnvrtc.so
MATLAB图形加标注的基本方法入门简介
A clean start Windows 7?How to load only the basic service start Windows 7 system
奇技淫巧-位运算
STM32LL库使用——SPI通信
flink+sklearn——使用jpmml实现flink上的机器学习模型部署
推开机电的大门《电路》(三):说说不一样的电阻与电导
Mysql之MVCC
Installation and configuration of Spark and related ecological components - quick recall
FP7128内置MOS降压恒流调光深度0.01%高辉共阳调光方案
随机推荐
FP7122降压恒流内置MOS耐压100V共正极阳极PWM调光方案原理图
Win11系统找不到dll文件怎么修复
2021-10-14
STM32LL库使用——SPI通信
Mysql的锁
背包问题-动态规划-理论篇
使用npx -p @storybook/cli sb init安装失败,手把手搭建专属的storybook
Win10电脑不能读取U盘怎么办?不识别U盘怎么解决?
使用 腾讯云搭建一个个人博客
STM32LL library use - SPI communication
DP4301无线收发SUB-1G芯片兼容CC1101智能家居
pygame图像连续旋转
win10 system update error code 0x80244022 how to do
Yolov5 official code reading - prior to transmission
Please make sure you have the correct access rights and the repository exists.问题解决
MATLAB绘图函数fplot详解
Detailed explanation of Golang garbage collection mechanism
A clean start Windows 7?How to load only the basic service start Windows 7 system
FP6296锂电池升压 5V9V12V内置 MOS 大功率方案原理图
Please make sure you have the correct access rights and the repository exists. Problem solved