Netmatics Supernet Calculator
December 10, 2010 1 Comment
Netmatics Supernet Calculator can analyze a set of addresses and calculate supernets. Supernetting, also known as route summarization or aggregation, is required in large networks to keep routing table size manageable and latency low. It is one of the key goals of design and planning for network scalability. The calculator is easy to use and this tutorial shows its features.
As the name suggests ‘supernetting’ is the reverse of ‘subnetting’ that divides a large network into smaller networks or subnets. In supernetting smaller networks in routing table are aggregated into a larger network so fewer routes have to be advertised and maintained in remote routers. The technique requires routing protocol to support CIDR and variable length masks.
Let’s look at a simple example to explain the concept. Suppose a routing table shows following 4 subnets connected to interfaces of a router:
These subnets can be represented by one address 220.127.116.11/22, which is the supernet in this case, and meets the following two conditions:
- All addresses in any one of the four subnets, with prefix /24, are in 18.104.22.168/22.
- All addresses in 22.214.171.124/22 will be in one of the four subnets.
With this information instead of advertising routes to the four subnets individually the router can just advertise 126.96.36.199/22 and the remote routers store just the supernet address instead of routes to all four subnet.
The Netmatics Supernet Calculator calculates supernets that meet the two conditions above for a given set of subnet addresses. For those interested to learn how to manually calculate supernets there is a good blog entry at Subnetting Made Easy blog by Chris Bloomfield.
Now lets look at 3 examples of supernetting using the calculator.
Example 1: Let’s start with a simple example where the addresses neatly fit in a Supernet. Find the supernet for the following 8 subnets
Using the tool is very simple – just copy or enter the list of addresses to be aggregated in the input box, click the aggregate button and we get the route summary, as shown in figure 1:
The Route Summary outputs the supernet addresses, in bold. You can click the icon beside to expand or collapse the subnet addresses contained in the supernet address.
Example 2: We will now look at an example where the addresses that we want to aggregate do not fit in one supernet address – often the case in real life so lets see what to expect from the tool.
As shown in the Route Summarization Table
- 172.17.0.0/16 does not fit and must remain as is.
- 172.18.0.0/15 is the supernet of 172.18.0.0/16 and 172.19.0.0/16
- 172.20.0.0/14 is the supernet of 172.20.0.0/16 to 172.23.0.0/16
The tool has summarized the 7 routes into 3.
Example 3: Lets consider one more example where subnet addresses have different prefix. Find the supernet of
Simply enter these addresses in the input box and click the ‘Aggregate’ button.
Following screen shot shows the input and output.
The calculated supernet is 188.8.131.52/22 because the tool is able to detect that 184.108.40.206/23 is the supernet of 220.127.116.11/24 and 18.104.22.168/24, which have the same prefix as the other two subnets.
Give it a test drive – you may find it useful.