CST3607 Class Notes 2022-02-24

News & Tools

Assignment #2 Debriefing

Subnetting Tutorial & Reference Page

Subnetting Tips/Notes

  • If no mask/prefix is given, then borrow bits starting from the “Class” boundary of the IP address.
  • If a mask/prefix is given, then the given mask/prefix is the result of subnetting.  (Borrow bits from the “Class” boundary to the given mask/prefix.)
  • The total number of subnets must be a power of 2.
  • The total number of hosts must be a power of 2.
  • Is the question asking for “subnets” or “hosts”
    • If you’re asked for the # of hosts, then you must determine how many bits are needed to get that # of hosts, then subtract those bits from the 32 IPv4 bits, to determine the network bits / mask / prefix.
  • Determine the number of subnets: 2 [number of bits borrowed].
  • Determine the total number of addresses: 2 [the number of host bits].
  • Add the Wildcard mask to the network/subnet address to determine the broadcast/last address in the network/subnet.
  • Block Size:
    • The block size (256 – [The interesting octet]) is best used to determine the increment of the subnets.
    • The interesting octet is the last octet, from the left, that you borrowed bits from.
    • The “block size” is the increment from one subnet to the next, within the “interesting” octet.
    • The “block size” is not the number of addresses per subnet.
  • Determine how many addresses to add to the network address/subnet zero to get to the target subnet.
    • 1. Multiplying (Subnet “Number”) by the (number of addresses per subnet).
      (For the N st, nd, rd, th subnet, subtract 1 before multiplying by the number of addresses per subnet.)
    • 2. Convert the result to its Base-256 equivalent
    • 3. Add the Base-256 equivalent to the original network address of the block to get the network/subnet address of the target subnet.
  • The “subnet address” is an alternate term for the “network address” of a subnet.
  • Subnet using the methods that work for all subnets, large or small. Switching methods depending on the size of the subnet requires more effort than is necessary.
  • Practice makes improvement!

Subnetting into a Large Number of Subnets

  • Incrementing subnets using the Block Size works for a small number of subnets, but is not efficient when you need hundreds or thousands or millions of subnets. It doesn’t scale.
  • Using the Base-256 conversion method scales up.

Determine the network address of a high subnet number.

  1. Multiply the target subnet number by the number of addresses per subnet, to get the number of addresses to add to the network address (subnet zero), to jump to the target subnet.
  2. Convert the resulting number of addresses to its Base-256 (dotted-decimal) equivalent.
  3. Add the Base-256 (dotted-decimal) equivalent to the network address/subnet zero, to determine the target subnet address.

Notes about the “target subnet”

  • If you’re given subnet number x, then you use x as is to multiply by the number of addresses per subnet.
  • If you’re given the n st, nd, rd, th, subnet, e.g. 59th, 343rd, then you subtract one, then multiply by the number of addresses per subnet. (Because we start counting from zero.)

Converting a Decimal Number to Base 256  (Dotted-decimal)

Calculations for Base-256 Conversion
Evaluate the #Is the # greater than 256?
4th Octet.
3rd Octet.
2nd Octet.
1st Octet.




Make sure to always have access to a calculator which has an Exponent function (^key) ( x) for every class.

Better Focus and Efficient Studying When Not Multitasking