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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Therefore, it is normal to use a contiguous block of bits at the beginning of the<br />

local address part for the subnet number. This makes the addresses more<br />

readable. (This is particularly true when the subnet occupies 8 or 16 bits.) With<br />

this approach, either of the previous subnet masks are “acceptable” masks.<br />

Masks such as 255.255.252.252 <strong>and</strong> 255.255.255.15 are “unacceptable.” In fact,<br />

most <strong>TCP</strong>/<strong>IP</strong> implementations do not support non-contiguous subnet masks.<br />

Their use is universally discouraged.<br />

Types of subnetting<br />

There are two types of subnetting: static <strong>and</strong> variable length. Variable length<br />

subnetting is more flexible than static. Native <strong>IP</strong> routing <strong>and</strong> R<strong>IP</strong> Version 1<br />

support only static subnetting. However, R<strong>IP</strong> Version 2 supports variable length<br />

subnetting (refer to Chapter 5, “Routing protocols” on page 171).<br />

Static subnetting<br />

Static subnetting implies that all subnets obtained from the same network use the<br />

same subnet mask. Although this is simple to implement <strong>and</strong> easy to maintain, it<br />

might waste address space in small networks. Consider a network of four hosts<br />

using a subnet mask of 255.255.255.0. This allocation wastes 250 <strong>IP</strong> addresses.<br />

All hosts <strong>and</strong> routers are required to support static subnetting.<br />

Variable length subnetting<br />

When variable length subnetting or variable length subnet masks (VLSM) are<br />

used, allocated subnets within the same network can use different subnet<br />

masks. A small subnet with only a few hosts can use a mask that accommodates<br />

this need. A subnet with many hosts requires a different subnet mask. The ability<br />

to assign subnet masks according to the needs of the individual subnets helps<br />

conserve network addresses. Variable length subnetting divides the network so<br />

that each subnet contains sufficient addresses to support the required number of<br />

hosts.<br />

An existing subnet can be split into two parts by adding another bit to the subnet<br />

portion of the subnet mask. Other subnets in the network are unaffected by the<br />

change.<br />

Mixing static <strong>and</strong> variable length subnetting<br />

Not every <strong>IP</strong> device includes support for variable length subnetting. Initially, it<br />

appears that the presence of a host that only supports static subnetting prevents<br />

the use of variable length subnetting. This is not the case. Routers<br />

interconnecting the subnets are used to hide the different masks from hosts.<br />

Hosts continue to use basic <strong>IP</strong> routing. This offloads subnetting complexities to<br />

dedicated routers.<br />

74 <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!