IPv4 Addressing IPv4 位址 <<
Previous Next >> Network and Host Addresses 網絡和主機地址
Addressing Notation 尋址符號
Internet protocol (IP) networking relies on both an IP address and subnet mask using a 32-bit dotted decimal notation. The Internet Engineering Task Force (IETF) and the Internet Corporation for Assigned Names and Numbers (ICANN) developed and maintains the standards for IP allocation and protocols.
Internet協議(IP)網絡使用32位點分十進製表示法同時依賴IP地址和子網掩碼。互聯網工程任務組(IETF)和互
聯網名稱與數字地址分配機構(ICANN)制定並維護了IP分配和協議的標準。
While the following IP address and subnet mask looks like a regular decimal number separated by periods:
以下IP地址和子網掩碼看起來像是一個普通的十進制數字,中間用句點分隔:
The computer sees the binary:
計算機看到二進製文件:
1 |
11000000.10101000.00000001.00000001 |
2 |
11111111.11111111.11111111.00000000 |
Each octet is made up of eight bits (one byte or two nibbles); multiplied by four octets, that equals 32 bits. The maximum value for any octet is 255 (28-1) so therefore the maximum number of IPv4 addresses available is 232, which equals 4,294,967,296 unique addresses.
每個八位位組由八位組成(一個字節或兩個半字節)。乘以四個八位位組,等於32位。任何八位位組的最大值為255
(28-1),因此,可用的IPv4地址的最大數量為232,等於4,294,967,296個唯一地址。
The presence of the subnet mask tells networking devices how much of the IP address belongs to the network and how much to the host. The 255.255.255.0 subnet represents that the first three octets are the network and the “0” represents the available number of hosts (nodes). So, the form is N.N.N.H. Think of the combination of IP and subnet as similar to regular postal addresses. You need a zip code (subnet) and street address (host).
子網掩碼的存在告訴網絡設備多少IP地址屬於網絡,多少屬於主機。 255.255.255.0子網表示前三個八位位組是網絡,“ 0”表示可用的主機(節點)數。因此,表格為N.N.N.H.可以將IP和子網的組合視為類似於常規郵政地址。您需要一個郵政編碼(子網)和街道地址(主機)。
There are five different classes in IPv4 labelled A through E, with classes A, B, and C used by computer networks and classes D and E reserved as experimental. As originally designed, the IP range is determined by the lead bits in the first octet and matched to one specific subnet mask. This is called "classful" addressing. When the IP class does not match the default subnet mask, it is called "classless."
IPv4中有五種不同的類別,標記為A到E,計算機網絡使用的類別為A,B和C,D和E的類別保留為實驗用。按照最初的設計,IP範圍由第一個八位位組中的前導位確定,並與一個特定的子網掩碼匹配。這稱為“有類”尋址。如果IP類與默認子網掩碼不匹配,則稱為“無類”。