Bookmarks

Network segmentation

The practice of dividing a network into isolated sections — segments — to limit how far attacks can spread within the network and to manage the traffic of each section separately.

Also: network segregation, dividing a network into segments

checked 9 Nov

All terms

In a flat network all devices can see one another, and a compromised laptop or server gives an attacker a path to the entire infrastructure. Segmentation cuts off that path: traffic between sections passes only through permitted points — firewalls and routers — where it can be inspected and, if necessary, blocked.

Why divide the network

Each segment follows its own rules: what it may access and whom it lets in. This gives four practical effects.

  • Attack containment: an attacker who gains access to one segment must then overcome the defences of each further segment separately — this limits lateral movement.
  • Traffic control: connections between segments are set by explicit rules — which protocols and ports are allowed; everything else is denied.
  • Performance: broadcast traffic and heavy flows — backups, video surveillance — place no load on other segments.
  • Compliance: payment card data is kept in a separate segment — a PCI DSS audit then covers that segment rather than the whole network.

How the network is divided: physical and logical

Segments and zones — for example, a DMZ for services reachable from the internet — are set up in two ways, often in combination.

ApproachWhat is usedConsiderations
Physicaldedicated switches, routers and firewalls for each sectionSimple and reliable, but costly: every change means new hardware and new cabling
LogicalVLANs, subnets and addressing plans, access control lists, firewall policiesFlexible and cheaper: a VLAN divides the traffic of one physical network into isolated domains with no extra hardware

In the cloud, virtual networks and subnets provide the same approach: in a VPC, for instance, a subnet is a unit of configuration with its own route table and traffic rules, and subnets are classed as public or private.

Micro-segmentation

Large-scale segments — buildings, departments, a DMZ — leave machines of the same purpose free to communicate inside. Micro-segmentation takes the division down to individual workloads: an application, virtual machine or container gets its own policy, and traffic between them is inspected even within one segment. This is one of the mechanisms of zero trust: NIST SP 800-207 states that resources, not segments, are what need protecting — network location no longer counts as grounds for trust in itself.

An example with isolated container networks:

bashTwo networks instead of one flat one
docker network create app-frontenddocker network create app-backenddocker run -d --name web --network app-frontend nginxdocker run -d --name db --network app-backend postgres:16

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • VLANvirtual LAN

    A VLAN is a logical segmentation technology: it divides a single physical network into isolated broadcast domains. Segmentation is the general approach; a VLAN is one of its tools.

  • DMZdemilitarised zone

    A DMZ is a dedicated segment for services reachable from the internet; network segmentation is the approach by which such a segment is carved out.

  • zero trust

    Zero Trust is a model in which access is not granted merely because a device is “on a trusted network”; segmentation and micro-segmentation serve as one of its mechanisms.

In depth in the references

where the topic is covered in detail