Each host has a unique address identification called "IP address". The IP address is a unified address format provided by the IP protocol. It assigns a unique logical address to each network and each host on the Internet to shield the differences in physical addresses. Because of this unique address, it is ensured that users can efficiently and conveniently select the objects they need from thousands of computers when operating on connected computers.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
Every host on the Internet has a unique address identification, called an "IP address."
IP address (Internet Protocol Address) refers to the Internet Protocol address, also translated as Internet Protocol address.
The IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the differences in physical addresses.
There is also a very important content in the IP protocol, which is that every computer and other device on the Internet is assigned a unique address, called an "IP address." Because of this unique address, it is ensured that users can efficiently and conveniently select the objects they need from thousands of computers when operating on connected computers.
The IP address is just like our home address. If you want to write to a person, you need to know his or her address so that the postman can deliver the letter. A computer sending information is like a postman. It must know the unique "home address" so as not to deliver the letter to the wrong person. It's just that our addresses are expressed in words, and the computer's address is expressed in binary numbers.
IP addresses are used to give computers on the Internet a number. What we see every day is that every connected PC needs an IP address in order to communicate normally. We can compare "personal computer" to "a telephone", then the "IP address" is equivalent to the "telephone number", and the router in the Internet is equivalent to the "program-controlled switch" of the telecommunications bureau.
The IP address is a 32-bit binary number, which is usually divided into 4 "8-bit binary numbers" (that is, 4 bytes). IP addresses are usually expressed in the form of (a.b.c.d) using "dotted decimal", where a, b, c, and d are all decimal integers between 0 and 255. Example: The dotted decimal IP address (100.4.5.6) is actually a 32-bit binary number (01100100.00000100.00000101.00000110).
Development History
The first IP address to appear is IPV4, which has only 4 segments of numbers, and each segment does not exceed 255. Due to the booming development of the Internet, the demand for IP addresses is increasing, making the issuance of IP addresses more stringent. Various data show that all global IPv4 addresses may be issued between 2005 and 2010 (the actual situation is that in 2019 The allocation of IPv4 addresses was completed on November 25, 2018). The lack of address space will definitely hinder the further development of the Internet. In order to expand the address space, it is planned to redefine the address space through IPv6. IPv6 uses a 128-bit address length. In the design process of IPv6, in addition to solving the address shortage problem once and for all, other problems that were not solved well in IPv4 were also considered.
The existing Internet runs on the basis of the IPv4 protocol. IPv6 is the next version of the Internet protocol, which can also be said to be the protocol of the next generation of Internet. It was originally proposed because with the rapid development of the Internet, the limited address space defined by IPv4 will be exhausted, and the shortage of address space will inevitably hinder the further development of the Internet. In order to expand the address space, it is planned to redefine the address space through IPv6. IPv4 uses a 32-bit address length, and there are only about 4.3 billion addresses, which are estimated to be allocated between 2005 and 2010, while IPv6 uses a 128-bit address length, which can provide almost unlimited addresses. According to a conservative estimate of the actual addresses that can be allocated to IPv6, more than 1,000 addresses can be allocated per square meter of the entire earth. In the design process of IPv6, in addition to solving the address shortage problem, other problems that were not solved well in IPv4 were also considered, mainly including end-to-end IP connection, quality of service (QoS), security, multicast, and mobility. , plug and play, etc.
With the rapid development of the Internet and the continuous improvement of Internet users' requirements for service levels, IPv6 will receive more and more attention around the world. In fact, there is no rush to promote IPv6. The problem of insufficient IPv4 addresses can be solved by simply extending 32 bits from 8 to 40 bits based on the existing IPv4. In this way, the number of available addresses is expanded by 256 times.
The difference between IPv4 and IPv6 protocols
1. The difference between protocol addresses
1) , Address length
IPv4 protocol has a 32-bit (4-byte) address length; IPv6 protocol has a 128-bit (16-byte) address length
2 ), address representation method
IPv4 address is a binary number expressed as a decimal. IPv6 addresses are binary numbers represented in hexadecimal notation.
3) Address configuration
The IPv4 protocol address can be configured manually or through DHCP. [Recommended related video tutorials: HTTP video tutorial]
The IPv4 protocol requires the use of Internet Control Message Protocol version 6 (ICMPv6) or DHCPv6 Stateless Address Autoconfiguration (SLAAC).
2. Differences in data packets
1) Packet size
IPv4 protocol data packets require 576 bytes, fragmentation is optional . The IPv6 protocol data packet requires 1280 bytes and will not be fragmented
2), the header
The length of the IPv4 protocol header is 20 bytes, and does not recognize data for QoS processing Packet stream, including checksum, containing options field of up to 40 bytes.
The IPv6 protocol header is 40 bytes in length and contains the Flow Label field of the packet flow specified for QoS processing, excluding checksum; the IPv6 protocol has no field, but the IPv6 extension header is available.
3) Packet fragmentation
IPv4 protocol packet fragmentation will be completed by the forwarding router and the sending host. Packet fragmentation of the IPv6 protocol is only done by the sending host.
Data packet
3. DNS record
IPv4 protocol address (A) record, mapping host name; pointer (PTR) record, IN-ADDR.ARPA DNS domain.
IPv6 protocol address (AAAA) record, mapped host name; pointer (PTR) record, IP6.ARPA DNS domain
4, IPSec support
IPSec support for the IPv4 protocol is only optional. The IPv4 protocol has built-in IPSec support.
5. Address Resolution Protocol
IPv4 Protocol: Address Resolution Protocol (ARP) can be used to map IPv4 addresses to MAC addresses.
IPv6 protocol: Address Resolution Protocol (ARP) is replaced by the functionality of Neighbor Discovery Protocol (NDP).
6. Authentication and encryption
Pv6 provides authentication and encryption, but IPv4 does not.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of Every host on the Internet has a unique address identifier called. For more information, please follow other related articles on the PHP Chinese website!

cmd查看局域网所有ip的方法:1、按“Win+R”快捷键打开“运行”窗口;2、在“运行”窗口中输入“CMD”后,按回车键;3、在打开的“命令提示符”界面中,输入命令“arp -a”并按回车键;4、从返回结果就可以看到本地局域网中的所有与本机通信的计算机IP地址。

主机的域名和主机的ip地址两者之间的关系是:一个IP地址对应多个域名。IP地址用数字化形式来对计算机网络中的主机进行网络标识,域名用字符化形式来对计算机网络中的主机进行网络标识。在Internet中,一个域名之内能够对应一个IP地址,但是一个IP地址可以被多个域名所对应。

每一台主机都有唯一的地址标识称为“IP地址”。IP地址是IP协议提供的一种统一的地址格式,它为互联网上的每一个网络和每一台主机分配一个唯一的逻辑地址,以此来屏蔽物理地址的差异。由于有这种唯一的地址,才保证了用户在连网的计算机上操作时,能够高效而且方便地从千千万万台计算机中选出自己所需的对象来。

随着网络的快速发展,IP地址成为了网络通信中不可或缺的一环。在进行网络安全监测、流量管理、电商广告定向投放等方面,IP地址的信息非常重要。因此,为了方便用户查询IP地址/域名信息,许多网站提供了IP地址查询功能。本篇文章将介绍如何用PHP实现IP地址查询功能,供读者参考。一、何为IP地址?IP地址(InternetProtocolAddress)即网络协

ip地址后面的“/24”表示掩码位是24位的。IP地址是四个十进制数组成的,相当于32位二进制;而ip地址后面斜杠加具体数字是一种用CIDR形式表示的一个网段,或者说子网。ip地址后“/24”指32位二进制的前24位用"1"表示,后面8位用0表示,即“11111111 11111111 11111111 000000”;将其转化为十进制,就是“255.255.255.0”。

ip地址是由32或128位二进制数组成。IP地址是IP协议提供的一种统一的地址格式,IP地址分两种:1、ipv4地址,由32位二进制数组成,用点分十进制表示,每八位划分,也就是四个0~255的十进制数;2、ipv6地址,由128位二进制数组成,用点分十六进制表示,每八位划分,也就是十六个0x00~0xff的十六进制数。

一、前言环境:jdk1.8+idea2019.3+Windows10二、摘要项目开发中,在日常处理操作日志时,基本都会通过aop切面来实现用户操作日志的记录,但涉及到记录操作日志,想必肯定会有一项是基本都会参考记录的,那就是操作人的客户端ip地址,日后查"脏"也方便。那么问题来了。具体怎么获取客户端的ip地址啊?哈哈哈,这就是我这期的教学内容,若是有的小伙伴知道怎么获取,那么我要表扬你,但是实现思路是否与我有同异?所以你也可以尝试看下bug菌是如何实现的吧。接下来,我就开始教

ip地址和所在地不一样的原因:1、运营商IP分配错误会导致IP真实所在地与腾讯IP数据库匹配到的IP所在地不同;2、使用代理服务器导致的;3、非官方版本导致的,请检查所使用的软件版本,是否为官方软件,只有官方版本才会应用更加精确的IP数据库。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1
Powerful PHP integrated development environment
