当前位置:网站首页>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
边栏推荐
- Win11 system cannot find dll file how to fix
- 13.56MHZ刷卡芯片CI521兼容cv520/ci520支持A卡B卡MIFARE协议
- Win11 keeps popping up User Account Control how to fix it
- MATLAB绘制平面填充图入门详解
- Do Windows 10 computers need antivirus software installed?
- win11一直弹出用户账户控制怎么解决
- Mapreduce环境详细搭建和案例实现
- Win7遇到错误无法正常开机进桌面怎么解决?
- 7. How to add the Click to RecyclerView and LongClick events
- FP7195降压恒流PWM转模拟调光零压差大功率驱动方案原理图
猜你喜欢
Win11 keeps popping up User Account Control how to fix it
Flink + sklearn - use JPMML implement flink deployment on machine learning model
Win11声卡驱动如何更新?Win11声卡驱动更新方法
Network Security Packet Capture
win10无法直接用照片查看器打开图片怎么办
Win10 cannot directly use photo viewer to open the picture
【系统设计与实现】基于flink的分心驾驶预测与数据分析系统
word方框怎么打勾?
win11一直弹出用户账户控制怎么解决
Win10 Settings screen out from lack of sleep?Win10 set the method that never sleep
随机推荐
奇技淫巧-位运算
Fast advanced TypeScript
Open the door of power and electricity "Circuit" (2): Power Calculation and Judgment
pytorch模型转libtorch和onnx格式的通用代码
KiCad常用快捷键
How to reinstall Win7 system with U disk?How to reinstall win7 using u disk?
Open the door to electricity "Circuit" (3): Talk about different resistance and conductance
STM32LL library use - SPI communication
IPV4和IPV6是什么?
win10怎么设置不睡眠熄屏?win10设置永不睡眠的方法
CMAKE
C语言函数参数传递模式入门详解
Win11没有本地用户和组怎么解决
golang之GMP调度模型
How to solve Win11 without local users and groups
What should I do if I install a solid-state drive in Win10 and still have obvious lags?
Win11 keeps popping up User Account Control how to fix it
TCP三次握手、四次挥手
pygame图像连续旋转
Impressions of Embrace Jetpack