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.

3.1.3 <strong>IP</strong> routing<br />

► Subnet 4: 30 hosts<br />

► Subnet 5: 30 hosts<br />

This cannot be achieved with static subnetting. For this example, static<br />

subnetting divides the network into four subnets each with 64 hosts or eight<br />

subnets each with 32 hosts. This subnet allocation does not meet the stated<br />

requirements.<br />

To divide the network into five subnets, multiple masks need to be defined. Using<br />

a mask of 255.255.255.192, the network can be divided into four subnets each<br />

with 64 hosts. The fourth subnet can be further divided into two subnets each<br />

with 32 hosts by using a mask of 255.255.255.224. There will be three subnets<br />

each with 64 hosts <strong>and</strong> two subnets each with 32 hosts. This satisfies the stated<br />

requirements <strong>and</strong> eliminates the possibility of a high number of wasted host<br />

addresses.<br />

Determining the subnet mask<br />

Usually, hosts will store the subnet mask in a configuration file. However,<br />

sometimes this cannot be done, for example, as in the case of a diskless<br />

workstation. The ICMP protocol includes two messages: address mask request<br />

<strong>and</strong> address mask reply. These allow hosts to obtain the correct subnet mask<br />

from a server (refer to “Address Mask Request (17) <strong>and</strong> Address Mask Reply<br />

(18)” on page 116).<br />

Addressing routers <strong>and</strong> multihomed hosts<br />

Whenever a host has a physical connection to multiple networks or subnets, it is<br />

described as being multihomed. By default, all routers are multihomed because<br />

their purpose is to join networks or subnets. A multihomed host has different <strong>IP</strong><br />

addresses associated with each network adapter. Each adapter connects to a<br />

different subnet or network.<br />

An important function of the <strong>IP</strong> layer is <strong>IP</strong> routing. This provides the basic<br />

mechanism for routers to interconnect different physical networks. A device can<br />

simultaneously function as both a normal host <strong>and</strong> a router.<br />

A router of this type is referred to as a router with partial routing information. The<br />

router only has information about four kinds of destinations:<br />

► Hosts that are directly attached to one of the physical networks to which the<br />

router is attached.<br />

► Hosts or networks for which the router has been given explicit definitions.<br />

Chapter 3. Internetworking protocols 77

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

Saved successfully!

Ooh no, something went wrong!