Network Segmentation: Splitting One Network to Contain Traffic and Threats
Network segmentation divides one large network into smaller sections so that traffic and access can be controlled at the boundary between them.
The syllabus asks for three named things: segmenting, subnetting and VLANs, and they are not synonyms.
Segmentation is used for three reasons: network performance, security, and efficient management of network resources.
What Segmentation Actually Changes
Performance: Smaller Broadcast Domains
A switch floods a broadcast frame out of every port, so on one unsegmented network every device has to receive and process every broadcast.
A segment boundary stops broadcasts crossing it, so 600 devices split into six segments each see a sixth of the broadcast traffic.
Congestion drops for the same reason: traffic between two devices in one segment never reaches the rest of the network.
Security: Limiting Lateral Movement
An attacker who compromises one machine can normally reach anything that machine can reach, which on a flat network is everything.
Segmentation forces that traffic through a router or firewall where rules can block it, so a breach in one segment does not automatically become a breach of the whole organisation.
Segmentation does not prevent the first compromise, so it limits damage rather than stopping the attack.
Resource Management: Policy per Segment
Bandwidth limits, monitoring and priority rules can be set for one segment without affecting the others.
Faults are easier to trace, because a problem visible in only one segment tells you where to look.
A new department joins by adding a segment, which leaves the existing configuration untouched.
Analogy
Segmentation is fire doors in a building rather than walls between rooms.
People still move between sections, but the doors decide who goes through and stop a fire in one wing reaching the rest.
The fire doors do not stop the fire starting, which is the same limitation segmentation has.
Segmenting, Subnetting and VLANs: Three Different Levels of the Same Idea
Segmenting Is the General Practice
Segmenting is the umbrella term for dividing a network at all, whatever technique is used to do it.
The simplest form is physical segmentation: separate switches, separate cabling and a router or firewall between them.
It gives the strongest isolation and the least flexibility, because moving a device between segments means moving its cable.
Subnetting Divides the Address Space
Subnetting works on IP addresses, so it divides the network at the internet layer of the TCP/IP model.
A device works out from the subnet mask whether a destination is inside its own subnet, and if it is not, the packet goes to the router instead.
That router hop is the control point: rules there decide which subnets may talk to which.
VLANs Divide the Switch
A VLAN works on frames inside a switch, so it divides the network at the network interface layer instead.
Two devices plugged into the same switch but placed in different VLANs cannot reach each other directly, even though the cable path exists.
Moving a device to another VLAN is a configuration change on the switch port, which is why VLANs give the flexibility physical segmentation lacks.
Common Mistake
Treating segmenting, subnetting and VLANs as one word is the most common error on this statement.
Segmenting is the goal, subnetting is division by IP address range, and a VLAN is division by switch configuration.
A question that says distinguish between them is asking for the layer each one operates at, so name it.
How Subnetting Divides an Address Range
Every IPv4 address is split by the subnet mask into a network portion and a host portion.
The network portion identifies which subnet the device belongs to, and every device in that subnet shares it.
The host portion identifies the individual device, so the mask decides how many devices a subnet can hold.
A mask of 255.255.255.0 keeps 24 bits for the network and 8 for hosts, which allows 254 usable addresses in that subnet.
Lengthening the mask creates more subnets with fewer hosts in each, which is the trade-off every subnetting decision is making.
Example
A school gives each department its own subnet: 192.168.10.0 for staff, 192.168.20.0 for students and 192.168.30.0 for printers and building systems.
A student laptop sending to a staff address finds the network portions differ, so the packet goes to the router.
The rule on that router is where the school decides whether student devices may reach staff systems at all.
How VLANs Group Devices by Role Rather Than Location
Logical Grouping
Devices are grouped by function, department or application, no matter which floor or building they are plugged in on.
A finance laptop stays in the finance VLAN when its user moves desks, because the VLAN follows the port configuration rather than the location.
Reduced Broadcast Domains
Each VLAN is its own broadcast domain, so a broadcast from one VLAN never reaches the ports in another.
This gives the performance gain of buying separate switches without actually buying them.
Isolation of Sensitive Systems
Payroll machines, security cameras and building controls each sit in their own VLAN so that an ordinary user device cannot reach them.
Any traffic that does need to cross is forced up to a router, where it can be filtered and logged.
Example
A company puts finance and logistics in separate VLANs even though both teams sit on the same floor and use the same switch.
A logistics machine infected with malware cannot scan the finance systems, because the switch will not forward frames between the two VLANs.
Why Subnets and VLANs Are Almost Always Used Together
A VLAN groups the devices, but the devices still need addresses that reflect that grouping, which is what a subnet supplies.
Network designers therefore map one subnet onto one VLAN, so the finance VLAN and the finance subnet contain exactly the same machines.
Traffic between the two groups then has to pass a router, which is where an access control list decides what is allowed through.
Note
An access control list (ACL) is an ordered set of rules on a router or firewall stating which traffic is permitted and which is denied.
Rules are matched on source address, destination address, protocol and port number.
Segmentation without ACLs gains performance but very little security, because the router will happily forward everything between the segments.
Segmentation in Real Organisations
A University
Student, staff and administrative traffic sit in separate VLANs, with the student network given the least access and the most bandwidth shaping.
Research clusters get their own subnet so that a large data transfer does not slow down lecture theatres.
A Hospital
Medical devices sit on a segment that guest Wi-Fi cannot reach at all, because many of those devices cannot be patched.
Patient records sit on a further segment reachable only from clinical workstations, so a compromised reception PC cannot read them.
A Retail Chain
Card payment terminals are kept in a segment of their own, separate from stock systems and from the customer Wi-Fi in the same shop.
Card industry rules require this, because a shared network would put every store's payment data within reach of one compromised till.
Active recall
Distinguish between segmenting, subnetting and a VLAN, naming the layer each one operates at.
What does a subnet mask separate an IP address into?
Explain why cutting the size of a broadcast domain improves network performance.
Two devices are plugged into the same switch but placed in different VLANs. Can they communicate directly, and why?
State one thing segmentation does not protect against.