AP Cybersecurity · Study guide

Network Segmentation Techniques

AP® Cybersecurity · Unit 3 · Network Security, Firewalls & Detection

Network Segmentation Techniques

Three ways to split one network into separate parts: screened subnets, subnetting by IP address, and VLANs.

1What segmentation means

A flat network, where every device can talk to every other device, is like a building with no interior doors: once someone is inside, they can walk anywhere. Network segmentation divides a network into smaller, separate parts, so traffic and attackers cannot move freely between them. There are three main techniques.

2Screened subnets (DMZs)

Organizations often run servers the public must reach, like a website or an email server. Putting those inside the internal network would let the whole internet knock on the same door as the staff computers. Instead, firewall zones and rules create a screened subnet, also known as a demilitarized zone (DMZ): a network segment between the public internet and the internal, private network.

Figure 1. The screened subnet holds what the public must reach. If one of those servers is broken into, a second, stricter firewall still stands between the attacker and the internal network.

The screened subnet is typically a lower security zone than the internal network, because the public can reach it. It holds the organization's public-facing resources and keeps them separated from the internal network. A second firewall between the screened subnet and the internal network applies stricter rules.

3Subnetting

Subnetting splits a network into smaller networks, called subnets, based on IP addresses. Each subnet gets its own range of addresses. For example:

SubnetAddress rangeWho is on it
Staff10.10.1.0 to 10.10.1.255 (written 10.10.1.0/24)Teacher and office computers
Students10.10.2.0 to 10.10.2.255 (10.10.2.0/24)Student laptops and lab computers
Servers10.10.3.0 to 10.10.3.255 (10.10.3.0/24)Grade, records, and file servers

The /24 means the first three numbers identify the subnet and the last number identifies the device, giving 256 addresses per subnet. Traffic between subnets has to pass through a router or firewall, where rules can control it. If an adversary compromises a device, subnets can contain the breach: the attacker reaches the devices on that subnet, not everything on the network.

4VLANs

Sometimes devices for different groups plug into the same central switches. A virtual LAN (VLAN) uses the switch to separate them logically: the switch is told which ports belong to which VLAN and keeps their traffic apart, as if they were on separate switches.

Figure 2. A VLAN separates devices logically: the switch treats each colored group as its own network, so traffic does not cross between groups unless a router or firewall allows it.

VLANs let an organization segment without rewiring the building. A security camera VLAN, for instance, keeps cameras away from staff computers even though both plug into the same switch in the same closet.

5Comparing the three

TechniqueHow it separatesTypical use
Screened subnet (DMZ)Firewall zones and rules between the internet and the internal networkPublic-facing servers: website, email, booking app
SubnettingDifferent IP address ranges, with routing and filtering between themGrouping devices by department or purpose; containing breaches
VLANSwitch configuration that logically separates portsSeparating groups that share physical switches
The key idea

Segmentation puts interior doors in the network. A DMZ separates public servers from private systems; subnets separate by address range; VLANs separate on shared switches. Firewalls or routers between segments decide what may cross.

6Worked examples

Worked Example 1 Choose the technique

The hospital's booking site

A hospital runs a public appointment-booking website. Its internal network holds patient records. Where should the booking server go, and why?

  1. 1
    The public must reach the booking site, so it cannot be fully hidden.
  2. 2
    Putting it on the internal network would give anyone who breaks into it a direct path to patient records.
  3. 3
    Place it in a screened subnet: reachable from the internet through the outer firewall, with a stricter inner firewall between it and the internal network.
Answer: In a screened subnet (DMZ). A compromise of the booking server is contained away from patient records.
Worked Example 2 Subnet membership

Which subnet is it on?

Using the table above, which subnet is the device at 10.10.2.57 on, and can it reach the server at 10.10.3.20 directly?

  1. 1
    10.10.2.57 falls in 10.10.2.0 to 10.10.2.255: the Students subnet.
  2. 2
    10.10.3.20 is in the Servers subnet.
  3. 3
    Traffic between them must pass through a router or firewall, which can allow or block it.
Answer: Students subnet. It reaches the server only if the rules between subnets allow it.
Worked Example 3 Choose the technique

Cameras on the office switch

An office's security cameras and staff computers plug into the same switch. A camera with outdated software gets hacked. Without segmentation, what could happen, and what fixes it cheaply?

  1. 1
    On a flat network, the hacked camera can reach staff computers and servers directly.
  2. 2
    Rewiring a separate camera network would be expensive.
  3. 3
    Configure a VLAN on the switch for camera ports, logically separating them from staff devices.
Answer: A VLAN isolates the cameras on the existing switch, so a hacked camera cannot reach staff computers.
Worked Example 4 Containment

One infected laptop

A student laptop on the Students subnet gets malware that scans for other devices to infect. How does subnetting change the outcome?

  1. 1
    The malware can reach devices on the Students subnet.
  2. 2
    Reaching Staff or Servers requires passing the router or firewall, whose rules block unsolicited traffic from the Students subnet.
  3. 3
    The breach is contained to fewer exposed devices.
Answer: The infection stays within the Students subnet instead of spreading to staff computers and servers.

7Common mistakes

Common Mistake 1 · Thinking the DMZ is the most secure zone

The screened subnet is typically lower security than the internal network, because the public can reach it. That is why it is kept separate.

Common Mistake 2 · Confusing VLANs and subnets

Subnets separate by IP address range. VLANs separate by switch configuration. Organizations often use both together.

Common Mistake 3 · Assuming segments block everything automatically

Segmentation creates the boundaries; firewall and routing rules decide what crosses them.

Describe a segmentation technique like this

“The organization should place its public web server in a screened subnet between an outer and an inner firewall. The public can still reach the website, but if it is compromised, the inner firewall separates the attacker from the internal network that holds sensitive data.”

Name the technique, say what it separates from what, and explain what it protects.