Home Software Tutorial Mobile Application The difference between class a IP addresses and class b IP addresses will be understood in seconds: Detailed explanation of the distinction between IP addresses ABCDE class

The difference between class a IP addresses and class b IP addresses will be understood in seconds: Detailed explanation of the distinction between IP addresses ABCDE class

Feb 06, 2024 am 11:48 AM

php editor Xigua brings you a detailed analysis of IP addresses. In network communications, IP address is the unique identifier of network equipment, which is divided into different types such as Class A and Class B. This article will focus on the difference between Class A and Class B IP addresses. Through concise explanations, it helps readers understand the characteristics and application scenarios of Class A and Class B IP addresses. Whether you are a beginner or a reader who already has some network knowledge, this article can provide you with valuable information. Let’s take a closer look at the differences between Class A and Class B IP addresses!

Every host that uses the TCP/IP protocol has an IP address, just like a city assigns an address number to every street, community, and household so that delivery people can find you. That's what IP addresses are for.

There are three classifications of IP addresses: Class A, Class B and Class C. It can be compared to the way a city is divided. Class A addresses are equivalent to divisions of the entire city, Class B addresses are equivalent to divisions of the city, and Class C addresses are equivalent to street communities.

The IP address is a 32-bit binary number, each 8 bits are represented as a byte, and the corresponding converted decimal range is 0-255. We usually use "dotted decimal notation" to represent IP addresses, that is, each 8-digit binary number is separated by English dots and converted into decimal representation.

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

2. Convert binary IP to decimal as shown in the figure below

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

3. The format of the IP address is: Network ID Host ID

Network ID: used to identify the network where the host is located;

Host ID: used to identify hosts in this network.

All hosts on the same network use the same network ID, so they are divided into: ADCDE addresses according to different network IDs.

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

4. First, look at the ABC class address, which defines which bits are used for the network ID and which classes are used for the host ID. Next The table shows the network ID and host ID fields in these three types of addresses.

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

5. Class A

The highest bit must be 0, and the remaining 7 bits constitute the network ID. The remaining 24 bits (the last three octets) are used to represent the host ID.

Address range: 1.0.0.1-126.155.255.254, which can form 126 networks. Each network can have approximately 17,000,000 IP addresses.

Where: 10.X.X.X is the private address (the address used in the local area network).

127.X.X.X is a reserved address and is used for loop testing.

Class B

The highest bit must be "10", and the remaining 14 bits constitute the network ID. The remaining 16 bits (the last two octets) are used to represent the host ID.

Address range
:128.0.0.0-191.255.255.255. There are 16,384 Class B networks available, and each network can have approximately 65,000 IP addresses.

Among them: 172.16.0.0-172.31.255.255 is a private address

169.254.X.X is a reserved address. IP addresses are automatically assigned when there is no Internet connection.

Category C

The highest bit must be "110". The remaining 21 bits constitute the network ID. The remaining 8 bits (the last octet) are used to represent the host ID.

Address range: 192.0.0.0-223.255.255.255. There are approximately 2.09 million Class C networks, and each network can accommodate 254 hosts. There are approximately 2,000,000 networks, each with 254 IP addresses.

Among them: 192.168.X.X is the private address.

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

6. Class D address is used for multicast

The highest bit of the Class D IP address must be "lll0" Start with a specifically reserved address. Does not point to a specific network and is used in multicast (Multicast). Multicast addresses are used to address a group of computers at a time, identifying the group of computers that share the same protocol.

Address range: 224.0.0.1—239.255.255.254

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

7. Class E address: the highest bit must be "11110"

Address range: 240.0.0.0 -240.255.255.254

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

8. IP address allocation follows the following principles:

The network ID cannot be 127, 127. X. It cannot be all 0, all 0 represents the network.

In the same network, the IP address must be unique

a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解a类ip地址和b类区别 秒懂:IP地址ABCDE类的区分详解

The above is the detailed content of The difference between class a IP addresses and class b IP addresses will be understood in seconds: Detailed explanation of the distinction between IP addresses ABCDE class. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Photoshop Is Officially Available on iPhone Photoshop Is Officially Available on iPhone Mar 06, 2025 am 09:56 AM

Photoshop officially logs on to iPhone! Say goodbye to the limitations of mobile image editing! Photoshop, a benchmark software in the field of image editing, has finally officially landed on iPhone! Photoshop has been the industry standard for more than three decades, but in the field of mobile phone image editing, users have had to rely on other applications. This situation has changed with the release of Photoshop iPhone version on February 25. You can now search for "Photoshop" on the App Store to download this free app. In addition to core imagery and design tools, numerous features are available for free: Selections, layers and masks Click Select Tool Stain Repair Painting

Completely Uninstall Xiaomi Game Center: No Leftovers! Completely Uninstall Xiaomi Game Center: No Leftovers! Mar 18, 2025 pm 06:00 PM

The article details steps to completely uninstall Xiaomi Game Center, remove residual files, prevent auto-reinstallation, and verify the app's removal from a device.

How to Take Photos on Android Without All the Post-Processing Junk How to Take Photos on Android Without All the Post-Processing Junk Mar 13, 2025 pm 01:09 PM

Your phone's camera does so much filtering, processing, and AI adjustments, it can make you question reality itself. In a world where Google can put you into photos you take, what's even real? If you'd rather avoid letting your phone decide what

I Tried Yope, Gen Z's New Favorite Photo-Sharing App I Tried Yope, Gen Z's New Favorite Photo-Sharing App Mar 05, 2025 am 10:41 AM

Yope: A Gen Z Photo-Sharing App Review – Is It Worth the Hype? I'm always eager to explore new social media apps, especially those focused on photo sharing. Yope (iOS and Android), the current trendy app, launched in September 2024 and boasts impres

Instagram Won't (Usually) Snitch If You Screenshot Instagram Won't (Usually) Snitch If You Screenshot Mar 07, 2025 am 09:56 AM

Instagram Screenshot Notifications: The Complete Guide Ever wondered if taking a screenshot of someone's Instagram Story or post alerts them? Let's clear up the confusion. While screenshots of regular posts and Stories don't trigger notifications,

The Fastest Way to Uninstall Xiaomi Game Center (2025) The Fastest Way to Uninstall Xiaomi Game Center (2025) Mar 18, 2025 pm 06:03 PM

Article discusses the fastest way to uninstall Xiaomi Game Center in 2025 using built-in settings, with optional third-party tools for efficiency.Character count: 159

How to Uninstall Xiaomi Game Center How to Uninstall Xiaomi Game Center Mar 18, 2025 pm 06:01 PM

The article provides a detailed guide on uninstalling Xiaomi Game Center, discussing standard and alternative methods, and potential performance improvements post-uninstallation.

Xiaomi Game Center Stuck? Here's How to Uninstall It! Xiaomi Game Center Stuck? Here's How to Uninstall It! Mar 18, 2025 pm 06:01 PM

Article discusses uninstalling stuck Xiaomi Game Center, troubleshooting, and exploring gaming alternatives. Main issue is app malfunction and removal.

See all articles