Lesson 2 of 4 Network Architecture and Segmentation

Traffic Flows and Segmentation

Segmentation limits how far an attacker can move and how much a failure can spread. This lesson covers north-south and east-west traffic, physical, logical and micro-segmentation, and edge networks.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish north-south from east-west traffic.
  • Compare physical, logical and micro-segmentation.
  • Explain ingress and egress filtering at the network edge.

Traffic flows

North-south traffic enters or leaves a data centre or network, for example between users or the internet and servers; perimeter firewalls inspect it. East-west traffic moves between servers and workloads inside the environment and is now the larger share in most data centres. Attackers who breach the perimeter move laterally through east-west paths, so internal segmentation and monitoring are essential.

The shift towards east-west traffic comes from how applications are built. A single customer request to a modern web application may cause dozens of internal calls between web servers, application services, databases, caches and authentication services, while only one request and one response cross the perimeter. A design that inspects only north-south traffic therefore sees a small fraction of what happens, and an attacker who compromises one internal workload can explore the rest without passing any control. Segmentation creates internal checkpoints so that east-west traffic is also subject to policy.

Physical and logical segmentation

Physical segmentation uses separate hardware and cabling. In-band management shares the production network, while out-of-band management uses a separate network or console connections that remain available and protected during incidents. An air gap has no network connection at all, used for the most sensitive systems, though removable media can still bridge it.

Logical segmentation separates traffic on shared hardware. VLANs create separate broadcast domains on switches, with traffic between them routed through firewalls that enforce policy; disabling automatic trunking and avoiding the native VLAN for user traffic prevents VLAN hopping. VPNs create encrypted tunnels across untrusted networks. Virtual routing and forwarding (VRF) keeps separate routing tables on one router, and a virtual domain partitions a firewall into independent virtual firewalls with separate policies.

Segmentation only works if the boundaries are enforced. Placing servers in different VLANs achieves nothing if the router between them permits all traffic. A practical design defines zones by trust and function, for example user devices, servers, payment systems, management and guest access, and then writes rules that permit only the specific flows each zone needs, denying everything else. A payment card environment is a common example: segmenting it so that only defined systems can communicate with it reduces the number of systems in scope for PCI DSS assessment, which saves cost as well as reducing risk.

Air gaps illustrate that segmentation can be bypassed by people as well as packets. Malware has crossed air gaps on USB drives carried by staff or contractors, and an isolated network that receives updates by removable media needs strict media controls, scanning stations and monitoring inside the isolated zone.

Match the pairs

Segmentation techniques

Exam skills 4.1.9 · 4.1.10

Match each segmentation technique with its description.

Log in to try this activity Interactive activities are free with an account.

Micro-segmentation and edge networks

Micro-segmentation applies policy between individual workloads or application tiers rather than large zones. It is implemented with network overlays such as VXLAN that create virtual networks independent of physical topology, and with distributed firewalls, routers and IDS/IPS that enforce policy at each host or hypervisor. Policies follow workloads when they move, and micro-segmentation is a core element of zero trust.

Micro-segmentation policies are usually written in terms of workload identity rather than IP addresses, such as "workloads labelled web-tier may connect to workloads labelled app-tier on port 8443". When the web tier scales from three servers to thirty, the new servers receive the label and inherit the rule automatically. Deploying it safely starts in a monitoring mode that records actual flows, so that the team can see which connections the application really uses before it starts blocking anything.

Edge networks connect the organisation to the internet and other networks. Ingress filtering blocks unwanted and spoofed inbound traffic; egress filtering limits outbound traffic to what is needed, hindering exfiltration, command and control and participation in attacks. Peering connects networks directly, and secure BGP practices such as route filtering and RPKI reduce route hijacking.

The following diagram compares a flat server segment with a micro-segmented one.

Limiting east-west movement with micro-segmentation. In one flat server segment, an attacker who compromises the web server reaches the database and backup servers directly, out of sight of the perimeter firewall. Micro-segmentation allows each tier to reach only the next one on specific ports.
East-west traffic flows between servers inside the network.
Scenario questions

Workload policy and the edge

Exam skills 4.1.11 · 4.1.12

Apply micro-segmentation and edge filtering.

Log in to try this activity Interactive activities are free with an account.
Worked example

Limiting lateral movement

A company's data centre has one large server VLAN behind a perimeter firewall. After a web server was compromised, the attacker reached the database and backup servers directly. Which change BEST limits this in future?

The problem is unrestricted east-west traffic. Micro-segmentation, with distributed firewall rules allowing the web tier to reach only the application tier on specific ports and blocking direct access to databases and backup systems, limits lateral movement. A stronger perimeter firewall would not see traffic between servers in the same VLAN.

Check yourself

Which traffic direction do perimeter firewalls typically not inspect?

Show answer

East-west traffic between internal workloads.

Exam Tips

Remember for the exam

  • Perimeter firewalls do not inspect east-west traffic.
  • VLANs separate broadcast domains; filter between them.
  • Egress filtering hinders exfiltration and command and control.