01 / 21

Network Diagrams
& Data Flows

Learn to read, interpret, and analyze network topologies and data flow diagrams used in cybersecurity to map how information travels across systems.

Cyber Security

What Is a Network Diagram?

A network diagram is a visual representation of how devices, servers, and services are connected within a computer network. It shows the physical or logical layout of nodes and the communication paths between them.

Router Switch PC 1 PC 2 Server Internet

Why They Matter in Cybersecurity

★ Visibility
Identify every device and connection on the network so nothing is hidden from defenders.
★ Threat Analysis
Trace how an attacker might move laterally from one compromised node to another.
★ Incident Response
Quickly isolate affected segments during a breach by understanding the topology.

Core Vocabulary

1
Node: Any device on the network: computers, servers, routers, switches, firewalls, or IoT devices.
2
Edge / Link: A connection between two nodes: wired (Ethernet) or wireless (Wi-Fi).
3
Topology: The arrangement pattern: star, bus, ring, mesh, or hybrid.
4
Data Flow: The path and direction data travels between nodes, including protocols and ports used.
5
Trust Boundary: A line separating zones with different security levels (e.g., internal LAN vs. DMZ vs. Internet).

Physical vs Logical Diagrams

Physical Diagram Logical Diagram
Shows Actual hardware & cabling IP addressing & data paths
Focus Where devices are located How devices communicate
Includes Rack positions, cable types Subnets, VLANs, protocols
Used for Installation & maintenance Security analysis & monitoring

Common Network Topologies

Star S Central hub/switch connects all nodes Mesh Every node connects to every other node Bus Single backbone cable shares all traffic

What Is a Data Flow Diagram?

A Data Flow Diagram (DFD) maps how data moves through a system. Unlike network diagrams that focus on devices and connections, DFDs focus on processes, data stores, and external entities.

○ Process
Transforms or manipulates data (drawn as a circle or rounded rectangle).
▬ Data Store
Where data is held at rest: databases, files, caches (drawn as parallel lines).
□ External Entity
An outside actor: user, third-party API, or another system (drawn as a rectangle).

A Simple DFD in Action

User 1.0 Authenticate 2.0 Serve Data D1 User DB D2 App DB Credentials Verify Token Query Response

Trust Boundaries & Security Zones

Untrusted (Internet) Attacker Ext. User DMZ (Semi-trusted) Web Server Mail Server Trusted (Internal LAN) Database Workstations FW FW

Network Diagram vs DFD

Network Diagram Data Flow Diagram
Focus Devices & connections Processes & data movement
Shows Routers, switches, PCs Processes, data stores, entities
Arrows mean Physical/logical links Data flowing between components
Security use Perimeter defense, segmentation Threat modeling (e.g., STRIDE)
Example tool Visio, draw.io, Nmap Microsoft TMT, OWASP DFD

How to Read a Network Diagram

1
Identify the legend: Check for a key that defines symbols (circles, squares, icons) and line types (solid, dashed).
2
Find the perimeter: Locate the edge devices: firewalls, routers, and gateways that separate internal from external.
3
Trace data paths: Follow the arrows from source to destination. Note which devices the data passes through.
4
Identify security controls: Look for firewalls, IDS/IPS, proxies, and encryption labels along each path.
5
Spot single points of failure: Any node whose removal disconnects part of the network is a critical risk.

Example 1: Simple Office Network

Internet FW Router Switch PC 1 PC 2 Printer File Server

Example 2: Tracing a Data Flow

Browser Web Server App Server Database
\(HTTPS\)
API Call
\(SQL\)
\(JSON\) Response
\(HTML\) Page
Step 1 Step 2 Step 3 Step 4

Example 3: Identifying Vulnerabilities

Laptop Wi-Fi AP Router Internet
\(HTTP\)!
Vuln: Unencrypted Wi-Fi (no WPA3) Vuln: No firewall between zones

Common Mistakes

✕ Confusing Physical & Logical
Treating a physical diagram as a logical one. A device physically next to the server doesn't mean it's on the same subnet.
✕ Ignoring Trust Boundaries
Failing to draw or recognize security zone separations, which hides where data crosses from trusted to untrusted areas.
✕ Missing Arrow Direction
Not paying attention to whether an arrow is one-way or bidirectional. Direction determines who initiates the connection.

Summary: Key Diagram Elements

Element Symbol Security Relevance
Firewall Box with "FW" Controls traffic between zones
Router Circle or labeled box Routes traffic, potential chokepoint
Switch Rectangle with ports Segments LAN, VLANs
Trust Boundary Dashed line Separates security zones
Data Flow Arrow Labeled arrow Shows protocol, encryption status
Data Store Parallel lines (DFD) High-value target for attackers

Question 1 of 5

In a network diagram, what does a dashed line enclosing a group of devices typically represent?

Question 2 of 5

Which of the following is shown on a Data Flow Diagram but NOT on a typical network diagram?

Question 3 of 5

A network diagram shows a single switch connecting all office computers to the router. If the switch fails, no device can access the network. What vulnerability does this illustrate?

Question 4 of 5

On a data flow diagram, you see an arrow labeled "\(HTTP\)" going from a user's browser to a web server, but the arrow is NOT labeled \(HTTPS\). What security concern does this raise?

Question 5 of 5

In a network diagram, a DMZ (Demilitarized Zone) is placed between which two areas?