A Primer on Subnetting

As we've previously discussed throughout the module so far, Networks can be found in all shapes and sizes - ranging from small to large. Subnetting is the term given to splitting up a network into smaller, miniature networks within itself. Think of it as slicing up a cake for your friends. There's only a certain amount of cake to go around, but everybody wants a piece. Subnetting is you deciding who gets what slice & reserving such a slice of this metaphorical cake.

Take a business, for example; You will have different departments such as:

Pasted image 20230902105606.png

Whilst you know where to send information in real life to the correct department, networks need to know as well. Network administrators use subnetting to categorise and assign specific parts of a network to reflect this.

Subnetting is achieved by splitting up the number of hosts that can fit within the network, represented by a number called a subnet mask. Let's refer back to our diagram from the first room in this module:

Pasted image 20230901014506.png

As we can recall, an IP address is made up of four sections called octets. The same goes for a subnet mask which is also represented as a number of four bytes (32 bits), ranging from 0 to 255 (0-255).

Subnets use IP addresses in three different ways:

Let's split these three up to understand their purposes into the table below:

Type Purpose Explanation Example
Network Address This address identifies the start of the actual network and is used to identify a network's existence. For example, a device with the IP address of 192.168.1.100 will be on the network identified by 192.168.1.0 192.168.1.0
Host Address An IP address here is used to identify a device on the subnet For example, a device will have the network address of 192.168.1.1 192.168.1.100
Default Gateway The default gateway address is a special address assigned to a device on the network that is capable of sending information to another network Any data that needs to go to a device that isn't on the same network (i.e. isn't on 192.168.1.0) will be sent to this device. These devices can use any host address but usually use either the first or last host address in a network (.1 or .254) 192.168.1.254

Now, in small networks such as at home, you will be on one subnet as there is an unlikely chance that you need more than 254 devices connected at one time.

However, places such as businesses and offices will have much more of these devices (PCs, printers, cameras and sensors), where subnetting takes place.

Subnetting provides a range of benefits, including:

We'll come on to explore exactly how subnetting provides these benefits at a later date; however, for now, all we need to understand is the security element to it. Let's take the typical café on the street. This cafe will have two networks:

  1. One for employees, cash registers, and other devices for the facility
  2. One for the general public to use as a hotspot

Subnetting allows you to separate these two use cases from each other whilst having the benefits of a connection to larger networks such as the Internet.

Answer the questions below

What is the technical term for dividing a network up into smaller pieces?

Answer : subnetting.

How many bits are in a subnet mask?

Answer: 32.

What is the range of a section (octet) of a subnet mask?

Answer: 0-255

What address is used to identify the start of a network?

Answer: Network Address

What address is used to identify devices within a network?

Answer: Host Address

What is the name used to identify the device responsible for sending data to another network?

Answer: Default Gateway