Subnets Required

Summary

I used the cando info along with out monitoring to determine how many hosts and subnets are required for each building switch we have.

The summary is this: we would need the following number of PUBLIC subnets (for the whole campus):

  /26  141
  /25  10

and

  /26  94

PRIVATE or IFZ'd ones.
Obviously, this is a very rough guess, based upon slightly broken data from CANDO.

Method

The basic algorithm is to look at each vlan used on a switch, determines the device type (workstation, server, printer etc) and whether it's in the latter quarter of each /22 to see if it's IFZ or not. So if we have the IFZ and public hosts on a single vlan, then we would need two subnets.Aalso if there are many different types of devices on those subnets, we would also need vlans for those specific devices.

There are of course, some discrepancies with regards to the types of devices (like VAX, VME, IOC's, AV etc) which would most likely fit into DESKTOP or something. I've basically accounted these as their own subnets for now - so the numbers above should probably be taken as an upper bound. Also there is a classification for SERVER and NULL, but it is assumed that they would need public access.

The numbers also include subnets like CAD, VISITOR and HVAC which are considered unique on each switch also. this of course also extends to the various vlans we have (ie we may get rid of certain existing subnets/vlans altogether), so the lower bound is likely to be that each building only needs one PUBLIC subnet for desktops and one PRIVATE for printers.

I've also filtered out some obvious devices from the list like bbox, farm etc. but i wasn't sure about some other switches like ir switches which are still on the list.

Please feel free to check my work. a dump of the host list (basically from cando) is here:

/afs/slac.stanford.edu/u/sf/ytl/Work/subnets/host_list.txt
The main script which does all the calculations can be run like this:
$ pwd
/u/sf/ytl/Work/subnets
$ cat host_list.txt | perl organise.pl
This creates a summary of vlan/device/network groupings. it also creates a summary of the required number of subnet sizes for each switch based upon whether it is ifz or public. The output of this is currently stored at:
/afs/slac.stanford.edu/www/grp/scs/net/racks/slaconly/number_of_hosts_in_each_vlan.txt
Then I simply do a count on the number of each size of subnet.