25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Because of the all bits 0 <strong>and</strong> all bits 1 restrictions, this defines 2 18 -2 (from 1 to<br />

262143) valid subnets. This split provides 262142 subnets each with a maximum<br />

of 2 6 -2 (62) hosts.<br />

The value applied to the subnet number takes the value of the full octet with<br />

non-significant bits set to zero. For example, the hexadecimal value 01 in this<br />

subnet mask assumes an 8-bit value 01000000. This provides a subnet value of<br />

64.<br />

Applying the 255.255.255.192 to the sample Class A address of 9.67.38.1<br />

provides the following information:<br />

00001001 01000011 00100110 00000001 = 9.67.38.1 (Class A address)<br />

11111111 11111111 11111111 11------ 255.255.255.192 (subnet mask)<br />

===================================== logical_AND<br />

00001001 01000011 00100110 00------ = 9.67.38.0 (subnet base address)<br />

This leaves a host address of:<br />

-------- -------- -------- --000001 = 1 (host address)<br />

<strong>IP</strong> will recognize all host addresses as being on the local network for which the<br />

logical_AND operation described earlier produces the same result. This is<br />

important for routing <strong>IP</strong> datagrams in subnet environments (refer to 3.1.3, “<strong>IP</strong><br />

routing” on page 77).<br />

The subnet number is:<br />

-------- 01000011 00100110 00------ = 68760 (subnet number)<br />

This subnet number is a relative number. That is, it is the 68760th subnet of<br />

network 9 with the given subnet mask. This number bears no resemblance to the<br />

actual <strong>IP</strong> address that this host has been assigned (9.67.38.1). It has no<br />

meaning in terms of <strong>IP</strong> routing.<br />

The division of the original into is chosen by the<br />

network administrator. The values of all zeroes <strong>and</strong> all ones in the field<br />

are reserved.<br />

Variable length subnetting example<br />

Consider a corporation that has been assigned the Class C network<br />

165.214.32.0. The corporation has the requirement to split this address range<br />

into five separate networks each with the following number of hosts:<br />

► Subnet 1: 50 hosts<br />

► Subnet 2: 50 hosts<br />

► Subnet 3: 50 hosts<br />

76 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!