当前位置:网站首页>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

边栏推荐
- Failed to install using npx -p @storybook/cli sb init, build a dedicated storybook by hand
- FP7195大功率零压差全程无频闪调光DC-DC恒流芯片(兼容调光器:PWM调光,无极调光,0/1-10V调光)
- KiCad Common Shortcuts
- Detailed explanation of Golang garbage collection mechanism
- yolov5官方代码解读——前向传播
- What should I do if the Win10 system sets the application identity to automatically prompt for access denied?
- pygame image rotate continuously
- STM32LL库使用——SPI通信
- Win11电脑一段时间不操作就断网怎么解决
- Compilation error D8021: Invalid numeric argument '/Wextra' cl command line error d8021 invalid numeric argument '/Wextra'
猜你喜欢
随机推荐
win10怎么设置不睡眠熄屏?win10设置永不睡眠的方法
MATLAB绘图函数fplot详解
关于c语言的调试技巧
日常-笔记
flink+sklearn——使用jpmml实现flink上的机器学习模型部署
FP7195转模拟恒流调光芯片在机器视觉光源的应用优势
jest测试,组件测试
Win10无法连接打印机怎么办?不能使用打印机的解决方法
Do Windows 10 computers need antivirus software installed?
5. Use RecyclerView to elegantly achieve waterfall effect
Open the door of power and electricity "Circuit" (2): Power Calculation and Judgment
STM32LL库——USART中断接收不定长信息
KiCad常用快捷键
C语言函数参数传递模式入门详解
Mysql的锁
KiCad Common Shortcuts
pygame拖动条的实现方法
GMP scheduling model of golang
DP1332E刷卡芯片支持NFC内置mcu智能楼宇/终端poss机/智能门锁
Use libcurl to upload the image of Opencv Mat to the file server, based on two methods of post request and ftp protocol









