Case Study VLSMs

In 1987, RFC 1009 was published with the purpose of specifying how a subnetted network could use more than one subnet mask. As discussed earlier in this chapter, when an IP network is assigned more than one subnet mask, it is considered a network with variable-length subnet masks because the subnet masks (prefixes) have varying lengths.

If you recall, the use of VLSM brings benefits to a network and routing that allow for increased routing optimization in the form of a smaller and more concise routing table, known as route aggregation, as well as more efficient use of an organization's assigned IP address space.

A /16 network with a /22 extended-network prefix permits 64 subnets (26), each of which supports a maximum of 1022 hosts (210x2). See Figure 1-17.

Figure 1-17 Using a VLSM Extended-Network Prefix

- Network Prefix -

10000011.00010100.

Subnet " bits ~

000000

Host bits -

00.00000000

<-VLSM Network Prefix->

This is fine if the organization wants to deploy a number of large subnets, but what about the occasional small subnet that contains only 20 or 30 hosts? Because a subnetted network could have only a single mask, the network administrator was still required to assign the 20 or 30 hosts to a subnet with a 22-bit prefix. This assignment would waste approximately 1000 IP host addresses for each small subnet deployed. Limiting the association of a network number with a single mask did not encourage the flexible and efficient use of an organization's address space.

One solution to this problem was to allow a subnetted network to alter its subnet mask through the use of VLSM. Assume that in Figure 1-17, the network administrator is allowed to configure the 130.5.0.0/16 network with a /26 extended-network prefix. See Figure 1-18.

42 Chapter 1: Networking and Routing Fundamentals

Figure 1-18 Considerably Extending the Network Prefix with VLSM

- Network Prefix -

10000011.00010100.

Subnet " Bits ~

ooooooooiocjoooooo

Real Long VLSM Network Prefix

A /16 network address with a /26 extended-network prefix permits 1024 subnets (210), each of which supports a maximum of 62 hosts (26x2). The /26 prefix would be ideal for small subnets with less than 60 hosts, while the /22 prefix is well suited for larger subnets containing up to 1000 hosts. This is VLSM in action, that is, several different masks in use within a network. The next section takes a look at how you can take an IP address range and subnet it into many different sizes so that you can meet the needs of every part of your organization.

Route Aggregation

VLSM also allows the recursive division of an organization's address space so that it can be reassembled and aggregated to reduce the amount of routing information at the top level. Conceptually, a network number is first divided into subnets, some of the subnets are further divided into sub-subnets, and those are further divided as well. This allows the detailed structure of routing information for one subnet group to be hidden from routers in another subnet group.

In Figure 1-19, the 11.0.0.0/8 network is first configured with a /16 extended-network prefix. The 11.1.0.0/16 subnet is then configured with a /24 extended-network prefix, and the 11.253.0.0/16 subnet is configured with a /19 extended-network prefix. Note that the recursive process does not require the same extended-network prefix to be assigned at each level of the recursion. Also, the recursive subdivision of the organization's address space can be carried out as far as the network administrator needs to take it.

Figure 1-19 Dividing a Network Prefix with VLSM

M 0.254.32.0/19 H 0.254.64.0/19 M 0.254.96.0/19 k 10.254.128.0/19 110.254.160.0/19 110.254.192.0/19

Figure 1-20 illustrates how a planned and thoughtful allocation of VLSM can reduce the size of an organization's routing tables and conserve IP address space. Notice how Routers F and G are able to summarize the six subnets behind them into a single advertisement (10.1.1.0/24 and 10.1.2.0/24, respectively) and how Router B (10.254.0.0/26) is able to aggregate all the subnets behind it into a single advertisement. Likewise, Router C is able to summarize the six subnets behind it into a single advertisement (10.1.0.0/16). Finally, the subnet structure is not visible outside of the organization, because through the use of VLSM and aggregation, Router A injects a single route into the global Internet's routing table—10.0.0.0/8 (or 10/8).

44 Chapter 1: Networking and Routing Fundamentals

Figure 1-20 VLSM in Action

10.254.192.0

10.254.32.0/19

10.254.192.0

10.254.32.0/19

10.254.64.0/19

Router D

Router E

Router A

10.254.64.0/19

Router A

Router F 10.1.1.64/27

10.1.1.96/27 10.1.1.128/27 10.1.1.160/27 10.1.1.192/27

Router D

Router E

Router F 10.1.1.64/27

10.1.1.96/27 10.1.1.128/27 10.1.1.160/27 10.1.1.192/27

Router G 10.1.2.64/27

10.1.2.96/27 10.1.2.128/27 10.1.2.160/27 10.1.2.192/27

Was this article helpful?

0 0

Post a comment