Professional Documents
Culture Documents
These four smaller networks have been combined to create the 192.168.64.0
supernetwork. Class C supernetworks will usually assume the address of the
subnetwork with the lowest IP address, in this case, 192.168.64.0.
The 1s in the mask represent the network ID (Netid) section of the address, and the 0s
represent the host ID (Hostid) section. When a subnetwork is created, we first create
the subnet mask by changing some of the 0s in the Hostid section to 1s.
For example, to create four separate subnetworks from one Class C network, we
would simply add two bits (22 = 4) to the default subnet mask. Example A shows
how this is done.
Example A
Netid Hostid
11111111.11111111.11111111. 00000000
Original subnet mask
Netid Hostid
11111111 11111111 11111111. 11000000
New subnet mask
With this new subnet mask, the network has been transformed from one Class C
network with up to 254 hosts to four separate subnetworks, each with 64 (26 = 64)
hosts. However, because the IP with all host bits set to 0 and the IP address with all
bits set to 1 are both reserved, there is actually a limit of 62 hosts for each
subnetwork.
Example B
New supernet mask
11111111.11111111.11111111.00000000
Original subnet mask
11111111.11111111.11111100.00000000
Create a new supernetwork by combining four separate subnetworks.
This new supernetwork can now accommodate 210, or 1024 hosts. If the first Netid is
192.168.64.0, the next three Netids will be 192.168.65.0, 192.168.66.0, and
192.168.67.0.
Now, when the router for the new supernet receives an incoming packet, the new
supernet mask is applied to the destination IP address, and a bitwise AND operation is
performed. If the result of this bitwise AND operation and the lowest network IP
address are the same, the router knows that the packet must be routed to a host on the
supernet. A bitwise AND operation compares an IP address to a subnet mask to
discover which network an IP packet will be routed to.
Let's look at an example of this procedure. If a packet arrives at the router with the
destination address 192.168.64.48, the supernet mask 255.255.252.0 is applied to the
destination address.
11000000.10101000.01000000.00110000 (destination IP address)
AND
11111111.11111111.11111100.00000000 (supernet mask)
Returns
11000000.10101000.01000000.00000000
In this example, the value returned by the bitwise AND operation is 192.168.64.0.
This is the lowest available IP address on the supernet. This router then uses this
information to forward the incoming packet to a host on the newly created
supernetwork.
Example C
Default Mask Network Address Next Hop
255.255.255.0 192.168.64.0
255.255.255.0 192.168.65.0
255.255.255.0 192.168.66.0
255.255.255.0 192.168.67.0
Default class routing table entry
the new routing table is able to determine that the packet is being sent to a host on the
new 192.168.64.0 supernetwork, and the packet is sent directly to the destination IP
address.