Addressing
one to address about 16,000,000 unique hosts for a Class A address, around
65,000 hosts for a Class B address, but only 254 hosts for a Class C address.
However, there are no more Class A addresses available, and the InterNIC has
stopped assigning Class B addresses. Class C addresses are the most numerous,
but their limitation is that each can identify only 254 unique hosts.
bits, which consist of two parts: the most significant bits (MSBs) identify a
particular network and the remaining bits specify a host on that network. The
most significant bits of the network portion actually determine the address
class as shown in this table:
A 0
B 10
C 110
A Address Example
diagramed:
+———————-+
| | |
followed by the 24 host bits.
always written as four dot-separated decimal numbers, one for each byte of the
address. Thus, our class A address would have a range of address numbers from 1.0.0.0 through 126.0.0.0
( 0. x.x.x and 127.
x.x.x are reserved). The number of host addresses per network is
16,777,214, which is two less than two raised to the 24th power because both
host numbers 0.0.0 and 255.255.255
are reserved.
attach 16 million hosts to a network so administrators of a Class A site often
divide the host address portion into a (sub)network and host portion.
(Subnetting is now supported by most operating systems.) Each Class A network
number can support up to 65,534 subnets (network numbers 0.0 and
255.255 are reserved) with each having 254 hos ts (host numbers 0 and
255 are reserved). This is done by using the 16 high -order bits
of the host portion for the subnet number and the lower eight bits for the host
as diagramed here:
Subnet Host
+————–+ +——+
| | |
| |
B Addresses
address are 1 and 0, the next fourteen bits identify the network and the last
sixteen the host, as diagramed:
| | |
network numbers in the range from 128.1.0.0 through 191.254.0.0 for a total of 65,534 host addresses.
divide the host portion of a Class B address into subnet and host parts. For
instance, let’s spli t our Class B network number on the byte boundary, that
is, the eight MSBs of the host portion identifies the subnet and the remaining
bits the host, as diagramed:
+——+
| | |
| |
each with 254 hosts.
Address Classes
address are 1, 1, and 0, the next 21 bits identify the network and the last
eight the host, as diagramed:
| |
network numbers in the range 192.0.1.0
through 223.255.254.0 for a total of 254 host addresses per network address.
addresses. Class D address start at 224.0.0.0 and are
used for multicast purposes. Class E addresses start at 240.0.0.0 and are currently used only for experimental purposes.
Subnet Mask
determine the number of bits used for the subnet and host portions of the
address. The mask is a 32-bit value that uses one-bits for the network and
subnet portions and zero-bits for the host portion.
have a Class B address of 191.70.55.130
and apply some different subnet
masks. A logical AND operation is performed between the IP address and the
subnet mask as shown:
default 16 network and host bits for a Class B address:
70 55 130
1111 1000 0110 0011 0111
1000 0010 IP address
1111 1111 1111 0000 0000
0000 0000 Subnet mask
1111 1000 0110 0000 0000
0000 0000 Result
the host portion into a subnet and host that are each eight bits wide:
70 55 130
1111 1000 0110 0011 0111
1000 0010 IP address
1111 1111 1111 1111 1111
0000 0000 Subnet mask
1111 1000 0110 0011 0111
0000 0000 Result
reserved) subnets, each with 254 hosts.
makes it easy to determine the subnet and host from the dotted-decimal IP
address. However, the subnet-host boundary can be at any bit position in the
host portion of the IP address. Here, we use a mask that allows more subnets
(512-2 reserved), but with the trade-off of fewer hosts (128-2) per subnet:
70 55 130
1111 1000 0110 0011 0111
1000 0010 IP address
1111 1111 1111 1111 1111
1000 0000 Subnet mask
1111 1000 0110 0011 0111
1000 0000 Result
subnet-host number t radeoff
a glance the trade off between the number of subnets and hosts with different
subnet masks for both Class B and Class C addresses. We’ve already subtracted
two from the results in the last two columns to take the reserved network and
host numbers into account:
Mask Bits Subnet Mask # Subnets # Hosts
Mask Bits Subnet Mask # Subnets # Hosts
Subnet Advantage
network organization to external routers and thus simplies routing. For
instance, a subnetted Class B address would require fewer routes than the
equivalent number of Class C addresses. Shorter routing tables mean faster
network transfers.
to be decentralized. Besides technical advantages, this approach may also
provide political benefits for the organization. For instance, an administrator
could assi gn a subnet to a department, which would then be responsible for
their own network management.
distance limitations of physical networks by dividing up a physical network
into individually addressed networks so they can be connected logically with
routers.
Subnetting a Class C Network
administrator needs to do is define the requirements for the network. The
logical place to start is to consider how many hosts are on the network.
one Ethernet segment is generally not good practice because it could create
performance problems due to network congestion. If you only have one Class C
address assigned to your network then what can you do? Refer to our table above
that depicts the Class C address subnetting network number-host trade off.
support up to 254 hosts, in my experience, 60-80 hosts is a good number for
most LANs using of fice automation tools. I’ve seen overloaded Ethernet
segments–with over 100 hosts–at client sites. My recommendation is that they
segment their LAN in half or even further. Also, many hub cards come with 24
ports per card, which makes it easy to segment in 24-host multiples provided
that the hub supports multiple segments on the backplane. Many do.
select six subnets each with 30 hosts. Although two subnets with 62 hosts is
also feasible, it is not as flexible because there are only two subnets. The
other alternatives that use more subnets probably don’t provide enough hosts
per subnet.
they are used for special addressing situations. For instance, a subnet of 7
(all one bits) is reserved for an all subnets-directed broadcast (a broadcast
sent to all subnets of the specified subnetted network) when the host bits are
all one. This leaves subnets 1 through 6 available for use.
number (0) is reserved, and the resulting number is known as the network
number. The last number in each subnet is reserved for the broadcast address,
and cannot be used for a host address. Consequently, in this case there are
only 30 host addresses available for each subnet.