IP Address Is An Address Used in Order To Uniquely Identify A Device On A Network
IP Address Is An Address Used in Order To Uniquely Identify A Device On A Network
Here is how binary octets convert to decimal: The right most bit, or least
significant bit, of an octet holds a value of 2 0. The bit just to the left of that holds
a value of 21. This continues until the left-most bit, or most significant bit, which
holds a value of 27. So if all binary bits are a one, the decimal equivalent would be
255 as shown here:
1 1 1 11111
128 64 32 16 8 4 2 1 (128+64+32+16+8+4+2+1=255)
Here is a sample octet conversion when not all of the bits are set to
1.
0 1000001
0 64 0 0 0 0 0 1 (0+64+0+0+0+0+0+1=65)
And this is sample shows an IP address represented in both binary
and decimal.
10.
1.
23.
19 (decimal)
00001010.00000001.00010111.00010011 (binary)
IP Address can be divisible into a network portion and host portion with the help of a
subnet mask.
There are five different classes of networks, A to E. This document focuses on
addressing classes A to C, since classes D and E are reserved.
In a Class A address, the first octet is the network portion, so the Class A example
in Figure 1 has a major network address of 1.0.0.0 - 127.255.255.255. Octets 2, 3,
and 4 (the next 24 bits) are for the network manager to divide into subnets and
hosts as he/she sees fit. Class A addresses are used for networks that have more
than 65,536 hosts (actually, up to 16777214 hosts!).
In a Class B address, the first two octets are the network portion, so the Class B
example in Figure 1 has a major network address of 128.0.0.0 - 191.255.255.255.
Octets 3 and 4 (16 bits) are for local subnets and hosts. Class B addresses are
used for networks that have between 256 and 65534 hosts.
In a Class C address, the first three octets are the network portion. The Class C
example in Figure 1 has a major network address of 192.0.0.0 - 223.255.255.255.
Octet 4 (8 bits) is for local subnets and hosts - perfect for networks with less than
254 hosts.
Network Masks
A network mask helps you know which portion of the address identifies the
network and which portion of the address identifies the hosts. Class A, B, and
C networks have default masks, also known as natural masks, as shown
here:
Class A: 255.0.0.0
Class B: 255.255.0
Class C: 255.255.255.0