What does an ip address consist of?
The IP address is composed of "network number" and "host number". Each IP address includes two identification codes (ID), namely network ID and host ID; all hosts on the same physical network use the same network ID, and a host on the network has a corresponding host ID.
#The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The IP address is composed of "network number" and "host number".
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.
When the Internet was originally designed, in order to facilitate addressing and hierarchical network construction, each IP address included two identification codes (ID), namely network ID and host ID; all hosts on the same physical network They all use the same network ID, and a host on the network has a host ID corresponding to it.
The Internet Committee has defined 5 IP address types to suit networks of different capacities, namely Class A ~ Class E.
Among them, categories A, B, and C3 (table below) are uniformly allocated globally by InternetNIC, and categories D and E are special addresses.
Class A IP address
A Class A IP address refers to the first of the four numbers in the IP address. The first segment number is the network number, and the remaining three segments are the local computer numbers. If the IP address is represented in binary, the Class A IP address consists of a 1-byte network address and a 3-byte host address. The highest bit of the network address must be "0". The length of the network identifier in a Class A IP address is 8 bits, and the length of the host identifier is 24 bits. The number of Class A network addresses is relatively small, with 126 networks, and each network can accommodate more than 16 million hosts.
Class A IP address address range 1.0.0.1 to 126.255.255.254 [2] (binary representation: 00000001 00000000 00000000 00000001 - 01111111 11111111 11111111 11111110). The last one is the broadcast address.
Class B IP address
A Class B IP address means that among the four numbers in the IP address, the first two numbers are network numbers. If the IP address is represented in binary, the Class B IP address consists of a 2-byte network address and a 2-byte host address. The highest bit of the network address must be "10". The length of the network identifier in the Class B IP address is 16 bits, and the length of the host identifier is 16 bits. Class B network addresses are suitable for medium-sized networks. There are 16,384 networks, and each network can accommodate more than 60,000 computers. tower.
Class B IP address range 128.0.0.1-191.255.255.254 [1] (Binary representation is: 10000000 00000000 00000000 00000001----10111111 11111111 11111111 11111110). The last one is the broadcast address.
The subnet mask of Class B IP address is 255.255.0.0, and the maximum number of hosts supported by each network is 256 to the power of 2-2=65534.
Class C IP address
A Class C IP address means that among the four numbers in the IP address, the first three numbers are network numbers, and the remaining A number is the number of the local computer. If the IP address is represented in binary, the Class C IP address consists of a 3-byte network address and a 1-byte host address. The highest bit of the network address must be "110". The length of the network identifier in a Class C IP address is 24 bits, and the length of the host identifier is 8 bits. There are more Class C network addresses, with more than 2.09 million networks. Suitable for small-scale local area networks, each network can only contain up to 254 computers.
Class C IP address range 192.0.0.1-223.255.255.254 [1] (Binary representation is: 11000000 00000000 00000000 00000001 - 11011111 11111111 11111111 11111110).
The subnet mask of Class C IP address is 255.255.255.0, and the maximum number of hosts supported by each network is 256-2=254
Class D IP address
Class D IP addresses were historically called multicast addresses, that is, multicast addresses. In Ethernet, a multicast address names a set of stations on the network that should receive a packet. The highest bit of the multicast address must be "1110", ranging from 224.0.0.0 to 239.255.255.255.
Special URL
The address where each byte is 0 ("0.0.0.0") corresponds to the current host;
An IP address in which each byte in the IP address is 1 ("255.255.255.255") is the broadcast address of the current subnet;
All IP addresses starting with "11110" in Class E are reserved for future and experimental use.
The IP address cannot start with the decimal "127". The numbers 127.0.0.1 to 127.255.255.255 in this type of address are used for loop testing, such as : 127.0.0.1 can represent the IP address of this machine. Use "http://127.0.0.1" to test the Web server configured in this machine.
The first 6-digit group of the network ID cannot be set to all "0". All "0" indicates the local network.
If you want to read more related articles, please visit PHP Chinese website! !
The above is the detailed content of What does an ip address consist of?. For more information, please follow other related articles on the PHP Chinese website!

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics



Xiaohongshu is a popular social e-commerce platform where users can share their daily life and discover their favorite products. Some users are more sensitive to personal privacy and hope that their IP address will not be displayed on Xiaohongshu to protect their online privacy. So, how to set Xiaohongshu not to display the IP address? This article will answer this question in detail. 1. How to set Xiaohongshu not to display the IP address? 1. Modify Xiaohongshu settings: Open Xiaohongshu APP, click "Me" in the lower right corner to enter the personal center. Then click on the avatar to enter account settings. In the account settings, find "Privacy Settings" and click to enter. Here, you can find the setting options for IP address, just turn it off. 2. Clear cache: Sometimes, Xiaohongshu may display an error

How to view all IP addresses on the LAN using cmd: 1. Press the "Win+R" shortcut key to open the "Run" window; 2. After entering "CMD" in the "Run" window, press the Enter key; 3. In the open "Command" In the "Prompt" interface, enter the command "arp -a" and press the Enter key; 4. From the returned results, you can see the IP addresses of all computers in the local LAN that communicate with the machine.

Sometimes everyone encounters the need to manually modify the IP address, but some Windows 10 customers report that the IP address cannot be saved after setting it. How to solve this situation? The IP address is stored basically because there is an error in filling in your IP address. You can check whether the subnet prefix has been written with the subnet mask. If so, change it back. After the change, you can save it normally. IP address. How to solve the problem that the Windows 10 IP address cannot be saved after it is set: The error picture is as follows: The prompt "Unable to save the IP setting, please check one or more settings and try" caused by filling in the error. This is the subnet prefix length, not the subnet mask. as the picture shows. As shown in the picture above, many users actually write out the subnet prefix as the subnet mask.

Where is the IP address of Xiaomi mobile phone? You can check the IP address on Xiaomi mobile phone, but most users don’t know where to check the IP address. Next is the graphic tutorial on how to check the IP address of Xiaomi mobile phone brought by the editor. Interested users come and take a look! Where is the IP address of Xiaomi mobile phone? 1. First open the settings function in Xiaomi mobile phone, select [My Device] and click to enter; 2. Then on the My Device function page, click [All Parameters] service; 3. Then on the All Parameters page , slide to the bottom and select [Status Information]; 4. Finally, you can see the IP address in the status information interface.

Xianyu is a very practical second-hand trading platform. Here we can buy many different products and sell our own idle items. What if we want to modify our address? Let’s take a look with the editor below! Share how to modify the Xianyu IP address. First, open the Xianyu software. After entering the homepage, you can see seafood market, recommendations, address and other options in the upper left corner. Click "Address". 2. Then on the address page, we click the [Down Arrow] next to the address; 3. After the final click, we click on the city on the city selection page;

Users share their lives, show off their talents, and interact with netizens across the country and even the world through Douyin. Some users wish to change their IP addresses on Douyin due to reasons such as privacy protection or geographical restrictions. So, how does the Douyin IP address change its location? 1. How to change the location of Douyin IP address? A proxy server is an intermediary service used to forward user requests to the Internet and return responses. By configuring a proxy server, users can hide their real IP addresses and change their IP addresses. This approach helps protect user privacy and improves network security. Proxy servers can also be used to access restricted content or bypass geolocation restrictions. Overall, using a proxy server is a practical network tool that can help users browse the Internet more safely and freely.

An IP address is composed of 32 or 128-bit binary numbers. IP address is a unified address format provided by the IP protocol. There are two types of IP addresses: 1. IPv4 address, consisting of 32-bit binary numbers, expressed in dotted decimal notation, divided into eight bits, that is, four 0~255 Decimal number; 2. IPv6 address consists of 128-bit binary numbers, expressed in dotted hexadecimal, divided into eight bits, that is, sixteen hexadecimal numbers from 0x00 to 0xff.

Each host has a unique address identifier called an "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.