Module 1: Network Architecture Design
Core concepts in design, architectures and topologies, connectivity between sites, people and clouds, availability, campus installations and components, and architecture documentation.
Core Networking Concepts in Network Design
- Turn business requirements into IPv4 and IPv6 address plans with CIDR and VLSM that allow for growth and route summarization.
- Choose static routing, OSPF or BGP, and PAT, port forwarding or NAT64, for a stated requirement, and predict forwarding decisions from a routing table.
- Match identity and core service requirements to 802.1X, RADIUS, TACACS+, LDAP, DHCP, NTP, DNS, DNSSEC, DoT and DoH, including whether each uses TCP or UDP.
- Estimate PoE power budgets, cooling load and airflow needs, and explain how container networking and network virtual interfaces fit an address and routing design.
Exam CNX-001 and the first thing it asks
CompTIA launched exam CNX-001 on 18 February 2025.[1] Its first objective reads like a job description, not a syllabus: "Given a scenario, analyze business requirements to apply core networking concepts to a network design."[2] Notice the order of the verbs. First you read what the business needs. Only then do you choose the addressing, routing, translation and protocols that meet it. Work scenario questions in that order too. When a stem describes a company with two internet providers, start from what the business must survive, then pick the protocol. Port numbers still matter, because they decide firewall rules, but they serve the design rather than replace it.
First, some facts about the exam itself. CompTIA calls this version V1. A sitting has at most 90 questions, a mix of multiple-choice items and performance-based questions, in which you work through a simulated task such as completing a configuration or a diagram.[1] You have at most 165 minutes.[1] There is no scaled score: you either pass or fail.[1] The exam is offered in English. CompTIA says a version usually retires about three years after launch, so check the current objectives document before you book.[1] CompTIA recommends at least ten years of IT experience, five of them as a network architect, plus hybrid cloud experience and knowledge equivalent to Network+, Security+ and Cloud+.[1] If any of those foundations feels thin, the Atlas Network+, Security+ and Cloud+ courses cover them.
| Domain | Weight | Lessons in this course |
|---|---|---|
| 1.0 Network Architecture Design | 31% | 1-9 |
| 2.0 Network Security | 28% | 10-17 |
| 3.0 Network Operations, Monitoring, and Performance | 16% | 18-21 |
| 4.0 Network Troubleshooting | 25% | 22-29 |
Treat the weights as a rough guide to where questions come from. Design and troubleshooting together make up more than half the exam, and this objective feeds both: many faults you will diagnose in Module 4 began as a design decision of the kind made in this lesson. CompTIA's summary of this objective names Internet Protocol (IP) addressing, routing protocols, network address translation (NAT) and networking protocols. The objective's own list goes further, into authentication, core services, power and cooling, containers and virtual interfaces, and so does this lesson.
The course has 29 lessons in four modules, one module per domain. Each lesson teaches every bullet of one objective by its exam name. Public addresses in the examples come from the ranges reserved for documentation: 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for IP version 4 (IPv4), and 2001:db8::/32 for IP version 6 (IPv6). Internal examples use the private block 10.20.0.0/16 as a stand-in. Private space is real space that your own network may already use, so check your own plan for overlap before you reuse any example address. Lessons whose objective begins "Given a scenario" include an exam-cue table that links the words in a question stem to the concept they point to. Every lesson ends with a short list of testable claims, a practice activity with a hidden worked solution, and ten quiz questions, some of which return as warm-ups in later lessons, because practice spread over time is what makes facts stick. None of this guarantees a pass. The exam rewards judgment, and judgment comes from working problems, not from reading about them.
Exam objectives: 1.1 Given a scenario, analyze business requirements to apply core networking concepts to a network design (Domain 1.0, Network Architecture Design).
The Kestrel Freight memo
Kestrel Freight is a fictional haulage company with a headquarters, two branch depots and a growing cloud footprint. Its operations director has sent the network team twelve requirements, written the way businesses write them: as outcomes, not protocols. This lesson follows the team from that memo to a finished design. The last column lists the objective bullets each line touches, with their full names; each is taught in its own section below.
| Line | What the memo says | The decision it forces | Objective bullets |
|---|---|---|---|
| 1 | About 600 staff across three floors at headquarters, with 50% growth expected within three years. | How large each subnet must be, and how much room to leave | IPv4, IP subnetting, CIDR (Classless Inter-domain Routing), VLSM (Variable Length Subnet Mask) |
| 2 | Dispatch must stay online if one internet provider goes down. | How the public addresses stay reachable through two providers | Public addressing, BGP (Border Gateway Protocol) |
| 3 | Each depot has one link to headquarters, plus a local internet line kept for backup. | Whether routes are typed by hand or learned | Static routing, routing tables |
| 4 | Headquarters will keep adding floors and switches. | How campus routers learn each other's subnets | OSPF (Open Shortest Path First), dynamic routing |
| 5 | New cloud workloads will run IPv6 only, but they must call a partner's IPv4-only application programming interface (API). | How IPv6 hosts reach an IPv4 service | IPv6, NAT64 (translation between IPv6 and IPv4) |
| 6 | Everyone browses through the headquarters firewall. | How hundreds of private hosts share a few public addresses | Private addressing, PAT (port address translation) |
| 7 | The closed-circuit TV (CCTV) contractor must reach our video recorder for maintenance. | How an outside party reaches one inside device | Port forwarding |
| 8 | Laptops and phones should just work when plugged in; servers and printers never move. | Which addresses are dynamic and which are fixed | DHCP (Dynamic Host Configuration Protocol), static vs. dynamic addressing |
| 9 | Staff join wired and wireless networks with their normal company login. | How a port or wireless network checks identity against the directory | 802.1X (port-based access control), RADIUS (Remote Authentication Dial-in User Service), LDAP (Lightweight Directory Access Protocol) |
| 10 | Every change on a switch or router must be traceable to a named person, command by command. | How administrators are authenticated, authorized and logged | TACACS+ (Terminal Access Controller Access Control System Plus) |
| 11 | Log times must agree across all devices, and DNS lookups on hotel Wi-Fi must be neither readable nor forgeable. | How time and names are served and protected | NTP (Network Time Protocol), DNS (Domain Name System), DNSSEC (DNS Security Extensions), DoT (DNS over Transport Layer Security), DoH (DNS over Hypertext Transfer Protocol Secure), TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) |
| 12 | A new floor 3 closet will power access points and cameras; developers run containers; cloud servers sit in two subnets. | Power budget, heat, and the networks inside hosts | Power and cooling, container networking, network virtual interfaces |
No line names a protocol, yet most of them point to one best answer once you know what to listen for. Line 10 never says TACACS+, but "command by command" fits only one of the authentication protocols on the objective. The sections below settle the lines in roughly the order a designer would: a shared vocabulary first, then addresses, translation, transport, routing, identity, the core services, the physical room, and finally the virtual networks inside servers.
Placing the memo on the OSI model
The OSI model (Open Systems Interconnection model) divides network communication into seven layers. Each layer provides a service to the layer above and relies on the layer below. It was published as an international standard by ISO. The exam's acronym list expands ISO as "Industry Standards Organization"; the organization's own name is the International Organization for Standardization. Almost nobody runs OSI's own protocols today. The model survives as a shared vocabulary. When a designer writes "802.1X controls the port at layer 2" or "the web application firewall (WAF) inspects at layer 7", every reader knows what that control can see and what it cannot.
| Layer | Name | Unit of data | What it handles | Where it shows up at Kestrel |
|---|---|---|---|---|
| 7 | Application | Data | Protocols applications speak: DNS, DHCP, NTP, LDAP, RADIUS, Hypertext Transfer Protocol (HTTP) | Lines 8-11: the core services and identity |
| 6 | Presentation | Data | Data formats and encoding; often drawn as the home of encryption | The Transport Layer Security (TLS) inside DoT, DoH and LDAP over TLS (LDAPS); most diagrams stretch TLS across layers 5-7 |
| 5 | Session | Data | Opening, managing and closing dialogues between applications | Rarely a separate design decision |
| 4 | Transport | Segment (TCP) or datagram (UDP) | End-to-end delivery and port numbers | Line 6: PAT rewrites ports; the TCP or UDP choice for every service |
| 3 | Network | Packet | IP addressing and routing between networks | Lines 1-5: subnets, routing tables, OSPF, BGP, NAT |
| 2 | Data link | Frame | Media Access Control (MAC) addresses, switching and virtual local area networks (VLANs) on one segment | Line 9: 802.1X opens or holds a switch port; container bridges |
| 1 | Physical | Bits | Cables, connectors, radio and electrical power | Line 12: Power over Ethernet, cabling, heat |
Two cautions. First, real protocols do not sit neatly on one layer. BGP chooses layer 3 paths, but it is an application carried by TCP. OSPF also chooses layer 3 paths, but it runs directly on IP. Second, the protocols were actually written against the four-layer TCP/IP model: link, internet, transport and application, with OSI layers 5 to 7 folded into application. For the exam, use OSI layer numbers, because the objectives and vendors do.
Remember: a device can act only on the layers whose headers it reads. A router reading layer 3 can filter on addresses, but it cannot tell a legitimate web request from a malicious one; that takes something reading layer 7.
Why IPv4 addresses carry a slash: CIDR
Line 1 of the memo is a sizing problem, and the raw material is the IPv4 address: a 32-bit number written as four decimal octets, such as 10.20.2.15. The 32-bit space is finite. When the Internet Engineering Task Force (IETF) began the work that produced CIDR in 1992, the eventual exhaustion of that space was one of the three problems it named.[3]
Before CIDR, an address's first bits fixed the size of its network. Class A networks had an 8-bit network part, Class B 16 bits and Class C 24 bits. Request for Comments (RFC) 4632, the IETF document that now defines CIDR, explains why this failed. A Class C network, with at most 254 hosts, was too small for a mid-sized organization, while a Class B network allowed up to 65,534 hosts and was too large for most of them.[3] Organizations took Class B networks they could never fill, and the address space drained away.
Classless Inter-domain Routing (CIDR) removed the classes. The boundary between network and host is now stated explicitly as a prefix length. RFC 4632 spells out the consequence: you can no longer work out the mask from an address's first bits.[3] In CIDR notation, 10.20.0.0/20 means that the first 20 bits are the network prefix and the remaining 12 bits number the hosts. The same boundary written as a dotted mask is 255.255.240.0.
Every subnet calculation in this course follows the same four steps:
- Host bits = 32 minus the prefix length. For a /26, 32 - 26 = 6.
- Addresses in the subnet = 2 raised to the number of host bits: 26 = 64.
- Usable hosts = addresses minus 2. The all-zeros host value names the subnet itself and the all-ones value is its broadcast address, so neither can be given to a host: 64 - 2 = 62.
- Block size in the octet where the mask changes = 256 minus that mask octet. A /26 mask is 255.255.255.192, so 256 - 192 = 64, and /26 subnets can start only at .0, .64, .128 and .192.
| Prefix | Mask | Addresses | Usable hosts |
|---|---|---|---|
| /20 | 255.255.240.0 | 4,096 | 4,094 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 512 | 510 |
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 2 (point-to-point links only, under RFC 3021) |
| /32 | 255.255.255.255 | 1 | 1 (a host route, such as a loopback) |
Public vs. private addresses. RFC 1918 sets aside three IPv4 ranges for private use: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Anyone may use them internally, and internet routers do not carry them, so a host with only a private address needs translation to reach the internet (memo line 6, below). Public addresses are unique worldwide and are assigned by an internet service provider (ISP) or a regional internet registry. Kestrel uses 10.20.0.0/16 inside the company. For its public block, this lesson uses 203.0.113.0/24, a documentation range standing in for whatever the company really holds. The design consequence is simple. Private space is plentiful, so you can size subnets generously. Public space is scarce and costly, so you spend it only on things that must be reachable from outside.
Static vs. dynamic addressing. A static address is typed into a device's configuration and does not change. A dynamic address is leased to the device by a DHCP server. Memo line 8 maps neatly onto this. Infrastructure that other devices must find by address gets static addresses: default gateways, DNS and NTP servers, the firewall and the video recorder. Laptops and phones get dynamic ones. A middle option, the DHCP reservation, gives the same address to the same MAC address every time, which keeps printers centrally managed without typing an address into each one. Keep static addresses outside the DHCP pool. Otherwise the server will eventually lease one of them to a laptop, and you will have a duplicate address.
Remember: usable IPv4 hosts in a subnet are 2(32 - prefix) - 2, and every subnet must start on a multiple of its own block size.
VLSM at headquarters: the same plan run twice
Variable Length Subnet Mask (VLSM) means giving different subnets carved from one block different prefix lengths. Routers handle the overlap with one rule, covered in the routing section: a packet goes to the most specific matching subnet. Without VLSM, every subnet would be as large as the largest one, and a router link that needs two addresses would waste a /23.
The method has three steps. List the subnets with their host counts. Sort them from largest to smallest. Then place each one at the next address that is a multiple of its block size. Sorting matters because large blocks need large boundaries. If you place small subnets first, they get scattered across the boundaries the big ones need.
Kestrel's headquarters has been given 10.20.0.0/20, which runs from 10.20.0.0 to 10.20.15.255: 4,096 addresses. Today's counts, taken literally from the memo and the floor plans, are 200 users on each of three floors, 300 guest Wi-Fi devices, 120 desk phones, 50 servers, 20 management interfaces, and one link between the core switch and the edge router.
| Subnet (first run, today's counts) | Hosts needed | Prefix (usable hosts) | Range |
|---|---|---|---|
| Guest Wi-Fi | 300 | /23 (510) | 10.20.0.0 to 10.20.1.255 |
| Floor 1 | 200 | /24 (254) | 10.20.2.0 to 10.20.2.255 |
| Floor 2 | 200 | /24 (254) | 10.20.3.0 to 10.20.3.255 |
| Floor 3 | 200 | /24 (254) | 10.20.4.0 to 10.20.4.255 |
| Voice | 120 | /25 (126) | 10.20.5.0 to 10.20.5.127 |
| Servers | 50 | /26 (62) | 10.20.5.128 to 10.20.5.191 |
| Management | 20 | /27 (30) | 10.20.5.192 to 10.20.5.223 |
| Core to edge link | 2 | /30 (2) | 10.20.5.224 to 10.20.5.227 |
Check one row to see the reasoning. Servers need 50 addresses. A /27 gives 30 usable, which is too few; a /26 gives 62, which is enough. The voice subnet before it ends at 10.20.5.127, and the next multiple of 64 in that octet is 128, so the servers start at 10.20.5.128. The whole plan ends at 10.20.5.227 and fits easily.
Now change one input. The memo promised 50% growth within three years, and the first run ignored it. Apply the growth to the subnets that scale with headcount: each floor becomes 300 users, guest Wi-Fi becomes 450 devices and phones become 180. Servers, management and the link stay the same.
300 hosts no longer fit in a /24 (254 usable), so each floor needs a /23 (510 usable). Here is the trap. In the first plan, floor 1 sits at 10.20.2.0/24 with floor 2 right after it at 10.20.3.0/24. A /23 covers two /24s and must start on an even third octet, so floor 1 could only grow into 10.20.2.0/23, which would swallow floor 2. Floor 1 cannot grow in place. Every floor, and everything allocated after them, would have to be renumbered: new gateway addresses, new DHCP scopes, new firewall rules, new documentation. Renumbering a live network is one of the most expensive changes in networking, and here it would happen only because the plan was sized for today.
| Subnet (second run, with growth) | Hosts needed | Prefix (usable hosts) | Range |
|---|---|---|---|
| Guest Wi-Fi | 450 | /23 (510) | 10.20.0.0 to 10.20.1.255 |
| Floor 1 | 300 | /23 (510) | 10.20.2.0 to 10.20.3.255 |
| Floor 2 | 300 | /23 (510) | 10.20.4.0 to 10.20.5.255 |
| Floor 3 | 300 | /23 (510) | 10.20.6.0 to 10.20.7.255 |
| Voice | 180 | /24 (254) | 10.20.8.0 to 10.20.8.255 |
| Servers | 50 | /26 (62) | 10.20.9.0 to 10.20.9.63 |
| Management | 20 | /27 (30) | 10.20.9.64 to 10.20.9.95 |
| Core to edge link | 2 | /30 (2) | 10.20.9.96 to 10.20.9.99 |
The growth plan still fits inside 10.20.0.0/20. It ends at 10.20.9.99 and leaves 10.20.9.100 to 10.20.15.255 free for subnets nobody has asked for yet. Keeping everything inside one prefix brings a second benefit: a depot router needs a single route, 10.20.0.0/20, to reach all of headquarters. Grouping subnets so that one shorter prefix can be advertised for all of them is called route aggregation, or summarization, and keeping routing tables small was one of CIDR's original purposes. Many designs use a /31 on point-to-point links to save two addresses. In private space that saving rarely matters, so this plan keeps the /30.
Remember: size each subnet for its expected peak, sort largest first, align each block to a multiple of its own size, and keep each site's subnets inside one summary prefix.
IPv6 for the cloud segment
Memo line 5 asks for a cloud segment that runs IPv6 only. An IPv6 address is 128 bits long, written as eight groups of four hexadecimal digits separated by colons. Two rules shorten it. Drop the leading zeros in any group, and replace one run of all-zero groups with a double colon. The double colon may appear only once; with two of them, a reader could not tell how many zero groups each one hides.
| Full form | Shortened form |
|---|---|
| 2001:0db8:4b00:0010:0000:0000:0000:0025 | 2001:db8:4b00:10::25 |
| fe80:0000:0000:0000:0000:0000:0000:0001 | fe80::1 |
| 0000:0000:0000:0000:0000:0000:0000:0001 | ::1 (loopback) |
Prefixes are written the way CIDR writes IPv4 prefixes: an address, a slash, and a decimal number saying how many of the leftmost bits form the prefix.[4] Kestrel's cloud provider has assigned it 2001:db8:4b00::/56. (2001:db8::/32 is reserved for documentation, so it stands in for a real allocation here.) The standard IPv6 LAN subnet is a /64, which leaves 64 bits for the interface identifier, the host part. Going from a /56 to a /64 gives 64 - 56 = 8 bits of subnet number, so Kestrel has 28 = 256 subnets to hand out, each with far more interface identifiers than it will ever use. That reverses the IPv4 habit. In IPv6 you plan the number of subnets, not the number of hosts in each.
IPv6 has no broadcast addresses; multicast takes over the jobs broadcast used to do.[4] For example, IPv6 Neighbor Discovery finds a neighbor's MAC address with a multicast message, where IPv4's Address Resolution Protocol (ARP) uses a broadcast. Every IPv6 interface also has a link-local address in fe80::/10, used only on its own link, and routing protocols commonly use those addresses as next hops. Hosts can configure themselves with stateless address autoconfiguration (SLAAC), using the prefix in router advertisements, which requires a /64 subnet. They can also get addresses from DHCP for IPv6 (DHCPv6), or be configured statically.
| Feature | IPv4 | IPv6 |
|---|---|---|
| Address length | 32 bits, dotted decimal | 128 bits, colon-separated hexadecimal |
| Typical LAN subnet | Sized to host count (/23, /24, /26 ...) | /64, almost always |
| Broadcast | Yes | None; multicast (ff00::/8) instead |
| Internal-only space | RFC 1918 private ranges | Unique local addresses, fc00::/7 |
| Internet-routable space | Public addresses | Global unicast, 2000::/3 |
| Self-assigned link address | 169.254.0.0/16, only when DHCP fails | fe80::/10, always present |
| Address assignment | Static or DHCP | Static, SLAAC or DHCPv6 |
| NAT to save addresses | Normal | Not needed; firewalls do the protecting |
Why would Kestrel choose IPv6-only rather than dual stack (IPv4 and IPv6 on every host)? Public IPv4 addresses in the cloud are scarce and increasingly billed, and dual stack means two address plans and two sets of security rules to keep in step. The price of IPv6-only is that anything still reachable only over IPv4, like the partner API, needs translation. The NAT section below solves that.
DHCP and the dynamic addresses on line 8
The Dynamic Host Configuration Protocol (DHCP), defined in RFC 2131, is a client-server protocol: designated servers allocate addresses and deliver configuration to the hosts that ask for them. A new laptop on floor 2 has no address and does not know where the server is, so the exchange begins with broadcasts. Its four messages are remembered as DORA:
- Discover. The client broadcasts from UDP port 68 to port 67, asking any server to respond.
- Offer. A server offers an address from the floor's pool, with a lease time and options.
- Request. The client asks for the offered address. Because this is broadcast, it also tells any other server that offered that its offer was declined.
- Acknowledge. The server confirms, and the lease begins.
Leases expire. By default a client tries to renew with its own server halfway through the lease and, if that fails, asks any server at seven-eighths of the lease, so a server that is down briefly does not strand clients. The lease carries more than an address: the subnet mask, default gateway, DNS servers, domain name and, if configured, NTP servers. A fictional scope for floor 2 under the growth plan looks like this:
| Setting | Floor 2 scope (fictional example) |
|---|---|
| Subnet | 10.20.4.0/23 (mask 255.255.254.0) |
| Excluded for static use | 10.20.4.1 to 10.20.4.49 |
| Pool | 10.20.4.50 to 10.20.5.250 |
| Default gateway | 10.20.4.1 |
| DNS servers | 10.20.9.10, 10.20.9.11 |
| NTP servers | 10.20.9.12, 10.20.9.13 |
| Lease time | 8 hours |
Because Discover is a broadcast, it stops at the first router. Kestrel will not put a DHCP server on every VLAN, so each VLAN's gateway interface on the core switch runs a DHCP relay agent. The relay receives the broadcast and forwards it as a unicast to the central servers, adding its own gateway address so the server knows which pool to use. (On Cisco equipment the command is ip helper-address.) Forgetting the relay on a new VLAN is a classic day-one fault: no client on that VLAN gets a valid address. Windows and macOS clients typically show a self-assigned 169.254.x.x address, while many Linux clients simply have no IPv4 address at all.
Line 8's split matches common practice: routers, firewalls and servers keep static addresses, and DHCP serves the devices that move. RFC 2131 is candid about security. Unauthorized DHCP servers are easy to set up, and they can hand clients false gateways and false DNS servers.[5] The usual defense is DHCP snooping on access switches, which drops server messages arriving on any port not marked as trusted; Lesson 12 configures it. For availability, run two DHCP servers using the platform's failover feature or a split scope, so one server can fail without stopping new leases.
Translating addresses: PAT, port forwarding and NAT64
Network address translation (NAT) rewrites addresses in a packet's IP header as it crosses a device, and keeps a table so that replies can be rewritten back. Three forms appear on the objective, and each one answers a different memo line.
| Form | Direction | What is rewritten | Memo line | Typical use |
|---|---|---|---|---|
| PAT | Inside to outside | Source address and source port | 6 | Hundreds of private hosts share one public address |
| Port forwarding | Outside to inside | Destination address and port | 7 | One inside service reachable at a public address and port |
| NAT64 | IPv6 to IPv4 | The whole IP header is translated; the source is mapped to a shared IPv4 address and port | 5 | IPv6-only hosts reaching IPv4-only servers |
Port address translation (PAT), also called NAT overload, maps many inside addresses onto one public address by giving each flow its own source port on the outside. Here is a fictional snapshot of Kestrel's firewall translation table:
| Inside address:port | Translated address:port | Outside destination | Protocol |
|---|---|---|---|
| 10.20.2.15:51514 | 203.0.113.10:40001 | 192.0.2.80:443 | TCP |
| 10.20.4.22:51514 | 203.0.113.10:40002 | 192.0.2.80:443 | TCP |
| 10.20.6.31:53000 | 203.0.113.10:40003 | 192.0.2.53:53 | UDP |
Read the first two rows together. Two laptops, one on floor 1 and one on floor 2, happened to choose the same source port, 51514, and are talking to the same web server. The outside world sees both as 203.0.113.10, so the firewall tells their replies apart only by the translated port: a reply to 40001 goes to the floor 1 laptop, a reply to 40002 to the floor 2 laptop. One public address offers roughly 64,000 ports per protocol above the well-known range, which is why a single address can serve a large office, and why very large sites eventually run short of ports and add a small pool of addresses. UDP entries have no connection teardown to watch for, so the firewall removes them after an idle timeout.
Port forwarding works in the opposite direction: a static rule sends traffic arriving at a public address and port to a fixed inside host. For line 7, Kestrel could forward 203.0.113.20 port 8443 to the video recorder at 10.20.9.30 port 443. That works, but it also puts the recorder's login page in front of the whole internet. A better design restricts the rule to the contractor's source addresses at the very least, and preferably replaces it with a virtual private network (VPN) or zero trust network access (ZTNA) for the contractor, which Lessons 4 and 13 cover. This is also why NAT is not a security control. PAT drops unsolicited inbound packets only because no table entry exists for them; one forwarding rule removes that protection for a port. The stateful firewall is what actually enforces policy.
NAT64 solves line 5. RFC 6146 defines stateful NAT64 as a translator that lets IPv6-only clients reach IPv4 servers using TCP, UDP or the Internet Control Message Protocol (ICMP).[6] It works with a partner, DNS64: a DNS resolver that, when a name has only an IPv4 (A) record, creates a synthetic IPv6 (AAAA) record by embedding the IPv4 address in an IPv6 prefix that routes to the translator. The RFC notes that used together they usually need no changes to the IPv6 client or the IPv4 server.[6] Here is Kestrel's case, using the well-known prefix 64:ff9b::/96 defined in RFC 6052:
- A workload at 2001:db8:4b00:10::25 asks DNS64 for api.example.com. The real record is A 192.0.2.44, and there is no AAAA record.
- DNS64 converts 192.0.2.44 to hexadecimal one octet at a time: 192 = c0, 0 = 00, 2 = 02, 44 = 2c. Those four bytes become the last 32 bits after the prefix, giving 64:ff9b::c000:22c.
- The workload opens its TCP connection to 64:ff9b::c000:22c. The cloud route table sends 64:ff9b::/96 to the NAT64 gateway.
- The gateway reads the last 32 bits to recover 192.0.2.44. It builds an IPv4 packet with its own public source address, say 203.0.113.30, and a source port it chooses, and records the binding.
- The reply returns to 203.0.113.30 on that port. The gateway finds the binding, builds an IPv6 packet and delivers it to 2001:db8:4b00:10::25.
Step 4 is PAT again: many IPv6-only workloads share the gateway's one IPv4 address, each told apart by its port. Two limits matter in design. An application that uses an IPv4 address literal instead of a name never queries DNS, so DNS64 cannot help it. And protocols that protect the IP header itself, such as the IP Security (IPsec) Authentication Header, break under translation, as RFC 6146 warns.[6]
TCP or UDP: what each service rides on
Every protocol in the memo travels over one of two transports, and the choice affects firewall rules, NAT timeouts and failover. The Transmission Control Protocol (TCP) sets up a connection with a three-way handshake (SYN, SYN-ACK, ACK: synchronize, synchronize-acknowledge, acknowledge), numbers every byte, retransmits whatever is lost, delivers data in order and slows down when the network is congested. Its header is at least 20 bytes. The User Datagram Protocol (UDP) sends independent datagrams with an 8-byte header and offers no connection, no ordering and no retransmission. Anything UDP does not do, the application must do for itself or live without.
| Service | Transport and port | Why that transport |
|---|---|---|
| DNS | UDP 53; TCP 53 for large answers and zone transfers | A lookup is one small question and answer; a lost one is simply asked again |
| DHCP | UDP 67 (server), 68 (client) | The client has no address yet, so it must broadcast |
| NTP | UDP 123 | A timing sample must be fresh; a late retransmission is worse than none |
| RADIUS | UDP 1812 (authentication), 1813 (accounting) | The application handles retries and failover itself |
| TACACS+ | TCP 49 | Long administrative sessions with many exchanges |
| LDAP | TCP 389; LDAPS on TCP 636 | Directory results can be large and must arrive complete |
| BGP | TCP 179 | Large route updates need reliable, ordered delivery |
| OSPF | Neither: IP protocol 89 | Runs directly on IP with its own reliable flooding |
| DoT | TCP 853 | TLS needs a reliable stream |
| DoH | TCP 443 (UDP 443 when HTTP/3 over QUIC is used) | Travels as ordinary HTTPS |
Several of those rows come straight from the standards. The BGP specification says BGP listens on TCP port 179.[7] Because TCP already handles delivery, BGP does not need its own mechanisms for fragmenting and retransmitting updates.[7] RADIUS went the other way. RFC 2865 records that early deployments used UDP port 1645, which clashed with another service.[8] The officially assigned RADIUS port is 1812.[8] The RFC's authors explain why UDP was acceptable: a user is willing to wait several seconds for a login, so TCP's aggressive retransmission adds little, and a failed request has to go to a secondary server anyway, which the application handles better than the transport could.[8] TACACS+, designed for administrators' long sessions, uses TCP for reliable delivery.[9] OSPF needs neither, because it runs directly on IP. The old 1645 port still causes real faults: a legacy switch sending RADIUS to 1645 while the server listens only on 1812 simply times out.
Remember: UDP is chosen when the application can retry better than TCP would (DNS, RADIUS) or when late data is worthless (NTP, voice media). TCP is chosen when large or long exchanges must arrive complete (BGP, TACACS+, LDAP).
Routing tables, static routes, OSPF and BGP
A routing table is the list a router checks for every packet. Each entry pairs a destination prefix with a next hop or exit interface, and records where the entry came from and its metric. The rule for choosing among entries is the one CIDR made universal: forwarding is done on a longest-match basis.[3] If several prefixes contain the destination, the one with the longest prefix length, the most specific, wins. Only when two sources offer exactly the same prefix does the router compare how much it trusts each source, and then the metric. Cisco calls that trust value administrative distance; its defaults are 0 for connected networks, 1 for static routes, 20 for external BGP and 110 for OSPF, and lower is preferred. Other vendors use different names and numbers for the same idea.
Here is a fictional, simplified table from Kestrel's HQ core switch after the growth plan. Each depot has its own /22: Depot A is 10.20.16.0/22 and Depot B is 10.20.20.0/22, each reached over a /30 link. The bracketed pairs are administrative distance and metric.
core1# show ip route ! fictional output, simplified
Codes: C connected, S static, O OSPF, * candidate default
Gateway of last resort is 10.20.9.97 to network 0.0.0.0
O* 0.0.0.0/0 [110/1] via 10.20.9.97, Gi1/0/48
S 10.20.0.0/16 is directly connected, Null0
C 10.20.0.0/23 is directly connected, Vlan10
C 10.20.2.0/23 is directly connected, Vlan20
C 10.20.4.0/23 is directly connected, Vlan30
C 10.20.6.0/23 is directly connected, Vlan40
C 10.20.8.0/24 is directly connected, Vlan80
C 10.20.9.0/26 is directly connected, Vlan90
C 10.20.9.64/27 is directly connected, Vlan99
C 10.20.9.96/30 is directly connected, Gi1/0/48
C 10.20.10.0/30 is directly connected, Gi1/0/47
C 10.20.10.4/30 is directly connected, Gi1/0/46
S 10.20.16.0/22 [1/0] via 10.20.10.2
S 10.20.20.0/22 [1/0] via 10.20.10.6
Work three destinations through it.
- Destination 10.20.17.40, a laptop at Depot A. It falls inside 10.20.16.0/22 (which covers 10.20.16.0 to 10.20.19.255), inside 10.20.0.0/16 and inside 0.0.0.0/0. The /22 is the longest, so the packet goes to 10.20.10.2 over the depot link.
- Destination 192.0.2.80, a website. Only 0.0.0.0/0 contains it, so the packet goes to the edge router at 10.20.9.97.
- Destination 10.20.200.5, a mistyped or retired address. Only 10.20.0.0/16 and the default contain it. The /16 is longer, so the packet goes to Null0, a discard interface, and is dropped on the spot.
That third result is deliberate. Without the discard route, a packet for an unused internal address would follow the default to the edge router and head out toward the ISP, leaking private addresses and wasting the link. Now change one input: Depot A's link fails and the core's interface to it goes down, so the static route for 10.20.16.0/22 is withdrawn. Run the first lookup again. 10.20.17.40 now matches only the /16 and the default; the /16 wins, and the traffic is dropped locally instead of being sent to the internet. That is the safe outcome, but the depot is still cut off. Worse, many carrier faults leave the local interface up, and then the static route stays in the table and silently black-holes traffic. Depot A does have a second path, a VPN over its local internet line, but a static route cannot discover it. The design needs a floating static route (a backup static route with a worse administrative distance that is used only when the primary disappears), a route tied to a reachability check, or a dynamic protocol.
| Question | Static routing | Dynamic routing |
|---|---|---|
| How routes appear | Typed by an administrator | Learned from neighbors by a routing protocol |
| Reaction to failure | None, unless the local interface goes down or the route is tracked | Automatic reconvergence around the failure |
| Overhead | No protocol traffic | Hello and update traffic, plus memory and central processing unit (CPU) time for databases |
| Best fit | Stub sites with one path, default routes, a few fixed entries | Many subnets, redundant paths, frequent change |
| Kestrel use | Depots (default toward HQ, floating backup via VPN); depot routes on the core | HQ campus (OSPF) and the internet edge (BGP) |
Open Shortest Path First (OSPF) answers line 4. RFC 2328 classes it as an interior gateway protocol (IGP), one that distributes routing information between routers belonging to a single autonomous system.[10] OSPF is a link-state protocol. Each router describes its own links in link-state advertisements and floods them to every router in its area. Every router then holds the same map and runs the shortest path first (Dijkstra) calculation on it from its own position. Because each router has the whole map, OSPF converges quickly after a failure and can share traffic across several equal-cost paths. Large OSPF networks are divided into areas attached to a backbone, area 0, so that a failure in one area does not force every router to recalculate. On a shared segment such as an Ethernet VLAN, OSPF elects a designated router so that the other routers form full adjacencies with it (and a backup) rather than with each other, which cuts routing traffic and the size of the database. OSPF also supports authentication of its exchanges, so that only trusted routers take part; configure a real scheme, because a null option exists. Like every classless routing protocol, including Intermediate System to Intermediate System (IS-IS), Routing Information Protocol version 2 (RIPv2), Enhanced Interior Gateway Routing Protocol (EIGRP) and BGP-4, OSPF carries a prefix length with each route, so it handles VLSM. Older classful protocols such as RIP version 1 do not, and should not be used where VLSM is in play.
Border Gateway Protocol (BGP) answers line 2. It is an inter-autonomous system routing protocol.[7] An autonomous system (AS) is a set of routers under a single technical administration, identified on the internet by an AS number. BGP speakers exchange reachability information. Each route carries the list of ASes it has passed through, the AS_PATH, and that list is what lets BGP remove routing loops: a router that sees its own AS number in a received path rejects the route. BGP picks paths by policy, using attributes the operator can set, rather than by a single cost. That suits connections between organizations that do not trust each other's metrics.
Why does line 2 need BGP? Consider the cheaper option first. Kestrel could configure two static default routes, one to each ISP, with the second as a floating backup. Outbound traffic would fail over. Inbound traffic would not. If Kestrel's public addresses were borrowed from ISP A, the rest of the internet reaches them only through ISP A, and when ISP A fails, the website and VPN gateway disappear. With its own AS number and its own public prefix (203.0.113.0/24 in this lesson), Kestrel's edge routers run external BGP (eBGP) sessions with both ISPs and announce the prefix to each. When one ISP fails, its announcement is withdrawn and the world reaches Kestrel through the other. Many networks filter IPv4 announcements more specific than /24, which is why a /24 is the usual smallest block for a multihomed site. The edge routers then inject a default route into OSPF, which is the O* entry in the core's table above.
BGP is not only for ISPs. Large data centers run BGP between their switches, and cloud providers use it to exchange routes with customer routers over private links, which Lesson 4 covers. Inside a single AS, internal BGP (iBGP) carries externally learned routes between an organization's own routers without changing the AS_PATH.
Remember: the longest prefix wins first, source trust second and metric third. Use static routes where there is one path, OSPF for fast convergence inside one organization, and BGP wherever routing crosses an AS boundary or must follow policy.
Authentication protocols: 802.1X, RADIUS, TACACS+ and LDAP
Lines 9 and 10 are both about identity, but they are different problems. Line 9 is network access: should this laptop's switch port, or this phone's Wi-Fi connection, be opened, and onto which VLAN? Line 10 is device administration: may this engineer log in to this switch, may she run this command, and what records that she did? Both use the AAA framework: authentication, authorization, and accounting (AAA). Authentication proves who you are, authorization decides what you may do, and accounting records what you did.
IEEE 802.1X is the Institute of Electrical and Electronics Engineers (IEEE) standard for port-based network access control. It defines three roles. The supplicant is the software on the device asking for access. The authenticator is the switch or wireless access point (AP) that controls the port. The authentication server makes the decision, and in practice it is almost always a RADIUS server. Until authentication succeeds, the authenticator passes only Extensible Authentication Protocol (EAP) messages carried directly in Ethernet frames, called EAP over LAN. The authenticator never checks the credential itself; it repackages the EAP messages into RADIUS and relays them. A fictional floor 2 login runs like this:
- A laptop connects to port Gi1/0/12. The port is unauthorized, so only EAP frames pass.
- The laptop's supplicant sends its identity. The switch wraps it in a RADIUS Access-Request to the RADIUS server at 10.20.9.15.
- The server and the supplicant run an EAP method through the switch, for example EAP-TLS with a device certificate, or a password method protected inside a TLS tunnel. The server checks the result against the company directory.
- The server replies Access-Accept with attributes, including the VLAN for floor 2 staff. The switch places the port in that VLAN and opens it. A rejected device stays blocked or is placed in a guest or remediation VLAN.
RADIUS (Remote Authentication Dial-in User Service) was written for dial-up access and still handles network access today. RFC 2865 makes the access device, which it calls a Network Access Server, the RADIUS client.[8] Watch the acronym clash: in RADIUS documents NAS means network access server, while the exam's acronym list uses NAS for network-attached storage. Each client-server exchange is authenticated with a shared secret, and user passwords are hidden between client and server so that someone snooping on the network cannot read them.[8] The rest of the packet is not encrypted, so attributes such as the user name travel in readable form. RADIUS combines authentication and authorization in a single reply and sends accounting separately, on port 1813.
TACACS+ (Terminal Access Controller Access Control System Plus), documented in RFC 8907 in 2020, fits line 10. Its defining design choice is to separate authentication, authorization and accounting into three distinct exchanges.[9] RFC 8907 says this separation helps device administration specifically, because it allows authorization and accounting of individual commands within a session.[9] So when an engineer types a command on a Kestrel switch, the switch can ask the TACACS+ server whether that user may run that command, and then send an accounting record of it. TACACS+ obscures the whole packet body with a shared key, not only the password, and many older texts call this encryption. RFC 8907 is blunter. It treats the scheme as obfuscation without integrity checking, and says that running TACACS+ over a secured transport is essential to managing the risk.[9] In a design, that means TACACS+ traffic stays on a protected management network or inside a tunnel, never on untrusted links.
Lightweight Directory Access Protocol (LDAP) is a different kind of protocol. It reads and searches a directory, the database of users, groups and devices; Microsoft Active Directory is the directory it is most often used with. In Kestrel's design, neither the switch nor the AP speaks LDAP. The RADIUS server does. It receives the access request, then queries the directory over LDAP to check the user and read group membership, for example membership of a Dispatch group, which decides the VLAN. LDAP runs on TCP 389. A simple bind sends the password in cleartext, so use LDAP over TLS: LDAPS on port 636, or StartTLS on 389.
| Question | 802.1X | RADIUS | TACACS+ | LDAP |
|---|---|---|---|---|
| What it is | Port-based access control framework | AAA protocol for network access | AAA protocol for device administration | Directory access protocol |
| Who speaks it | Supplicant to switch or AP | Switch, AP or VPN gateway to AAA server | Router, switch or firewall to AAA server | AAA servers and applications to the directory |
| Transport | EAP over LAN frames at layer 2 | UDP 1812 and 1813 | TCP 49 | TCP 389; LDAPS 636 |
| Protection | Depends on the EAP method | Shared secret; password hidden, rest readable | Body obfuscated; needs a secured transport | Cleartext unless TLS is used |
| AAA handling | Authentication, decided by the server | Authentication and authorization combined | All three separate; per-command authorization | Supplies identity and group data |
| Kestrel line | 9 | 9 | 10 | 9 and 10 |
Time and names: NTP, DNS, DNSSEC, DoT and DoH
The first half of line 11 is about timekeeping. The Network Time Protocol (NTP) synchronizes clocks over UDP port 123. Time sources are arranged in strata. Stratum 0 is a reference clock such as a Global Positioning System (GPS) receiver; a stratum 1 server is attached to one; a stratum 2 server synchronizes from stratum 1, and so on down. A client exchanges timestamped packets with several servers, estimates each one's offset and round-trip delay, and discards any source that disagrees with the majority. Kestrel's design has two internal NTP servers (10.20.9.12 and 10.20.9.13), each synchronizing to several independent upstream sources. Every switch, router, firewall, server and camera points at the internal pair, and DHCP hands the addresses out where devices accept them.
Why does the business care? Without common time, a firewall log line stamped 14:02:10 and a server line stamped 14:05:47 may describe the same event, and nobody can prove it. Certificates are checked against the clock, so a device whose clock is days off rejects valid certificates. Kerberos, the login protocol behind Active Directory, rejects tickets when clocks differ by more than its tolerance, five minutes by default. NTP can also be authenticated; the modern mechanism is Network Time Security (NTS).
The Domain Name System (DNS) maps names to records. A client's stub resolver asks a recursive resolver, which works down the hierarchy (the root, then the top-level domain, then the zone's authoritative servers) and caches each answer for its time to live (TTL). Records to know include A (IPv4 address), AAAA (IPv6 address), CNAME (alias), MX (mail exchange: the mail server for a domain), PTR (pointer, for reverse lookup) and TXT (free text). Queries use UDP 53, with TCP 53 for large responses and zone transfers. Kestrel runs its own recursive resolvers at 10.20.9.10 and 10.20.9.11 and uses split-horizon DNS: internal clients asking about kestrel.example.com get internal addresses, while the internet sees only public records.
Plain DNS has two separate weaknesses: answers can be forged, and queries can be read by anyone on the path. Each has its own fix.
Domain Name System Security Extensions (DNSSEC) deals with forgery. The zone owner signs each set of records. The signatures (RRSIG records) are checked with the zone's public key (the DNSKEY record), and that key is vouched for by a DS (delegation signer) record in the parent zone, forming a chain of trust up to the signed root. A validating resolver that finds a bad signature refuses the answer. DNSSEC provides origin authentication and integrity. It encrypts nothing: anyone on the path can still read which names you look up.
DNS over TLS (DoT) and DNS over HTTPS (DoH) deal with privacy between the client and its resolver by wrapping queries in TLS. DoT uses its own port, TCP 853. DoH sends queries as HTTPS requests on port 443, mixed in with ordinary web traffic. Both protect the path from laptop to resolver. Neither proves that the resolver's answer is authentic; that is DNSSEC's job.
| Question | DNSSEC | DoT | DoH |
|---|---|---|---|
| Threat addressed | Forged or altered answers | Eavesdropping and tampering between client and resolver | Same as DoT |
| Mechanism | Digital signatures and a chain of trust | TLS session to the resolver | HTTPS requests to the resolver |
| Port | Normal DNS port 53 | TCP 853 | TCP 443 (UDP 443 with HTTP/3) |
| Encrypts queries | No | Yes | Yes |
| What the network team sees | Unchanged DNS traffic | Easy to identify, allow or block by port | Hard to tell apart from web browsing |
Line 11 needs both kinds of protection. Kestrel signs its public zone and has its resolvers validate DNSSEC, so forged answers are rejected. Laptops on hotel Wi-Fi use DoT or DoH to Kestrel's own resolvers, so the hotel network can neither read nor alter the lookups. The trade-off is visibility. A browser that uses its own public DoH resolver bypasses Kestrel's resolvers and the security filtering on them, so endpoint policy (Lesson 11) should point DoH at the corporate resolver. On the exam, "cannot be read" points to DoT or DoH, "cannot be forged" points to DNSSEC, and a requirement to tell DNS apart from web traffic by port favors DoT over DoH.
Power and cooling for the floor 3 closet
The first part of line 12 happens in a small room. The floor 3 closet, an intermediate distribution frame (IDF) in Lesson 6's terms, will hold the access switches that power 24 Wi-Fi access points and 12 cameras. Power over Ethernet (PoE) sends DC power down the same twisted-pair cable as the data. The switch, called the power sourcing equipment (PSE), therefore needs a power budget large enough for every powered device (PD) it feeds.
| Standard | Common name | Maximum at the switch port | Typical devices |
|---|---|---|---|
| IEEE 802.3af | PoE (Type 1) | 15.4 W (about 12.95 W reaches the device) | Desk phones, fixed cameras |
| IEEE 802.3at | PoE+ (Type 2) | 30 W (about 25.5 W reaches the device) | Most Wi-Fi APs, pan-tilt cameras |
| IEEE 802.3bt | Type 3 | 60 W | Multi-radio APs, small displays |
| IEEE 802.3bt | Type 4 | 90 W | Large displays, heated outdoor cameras |
| Spec sheet item | KX-48P access switch (fictional) |
|---|---|
| Ports | 48 x 1 Gb/s PoE+, 4 x 10 Gb/s SFP+ (enhanced small form-factor pluggable) uplinks |
| PoE budget | 740 W with one power supply |
| System power with no PoE load | 120 W |
| Maximum input power | 1,050 W |
| Airflow | Front to back (port-side intake); back-to-front fan kit sold separately |
First run: put everything on one KX-48P and allocate each device its class maximum.
- Access points: 24 x 30 W = 720 W.
- Cameras: 12 x 15.4 W = 184.8 W.
- Total demand: 720 + 184.8 = 904.8 W.
- Compare with the budget: 904.8 W exceeds 740 W by 164.8 W. The switch would refuse power to some ports, and which ones depends on the port priority settings.
Many switches can allocate by measured draw instead of class maximum, and APs rarely draw their full allocation, so the real load might fit. Design to the class allocation anyway unless you have measured the actual draw, because devices that power up together after an outage can claim what their class allows. Now flip the input: split the load across two KX-48P switches, with 12 APs and 6 cameras on each. Each switch now carries 360 + 92.4 = 452.4 W against 740 W, leaving about 39% headroom for growth. Losing either switch now takes down only half of the floor's APs, which is a design argument in its own right.
Every watt a switch draws ends up as heat somewhere. Air conditioning is rated in British thermal units per hour (BTU/hr), and 1 W equals about 3.412 BTU/hr. A conservative estimate counts each device's maximum input power as heat in the room:
- Two switches at 1,050 W maximum input: 2 x 1,050 = 2,100 W.
- 2,100 x 3.412 = 7,165.2 BTU/hr.
- Cooling is often sold in tons of refrigeration, where 1 ton = 12,000 BTU/hr, so 7,165.2 / 12,000 means the switches alone need about 0.6 ton.
That estimate is deliberately pessimistic. Most PoE power leaves the room down the cables and warms the ceilings where the APs hang, so the closet's real heat load is lower. Sizing the cooling to the estimate leaves margin for a third switch, an uninterruptible power supply (UPS) and a hot afternoon.
Heat load is only half of cooling. The other half is where the air goes. Most rack equipment moves air from front to back, but many access switches are sold with a choice of fan direction, often described as port-side intake or port-side exhaust. In a room laid out in hot and cold aisles, every device's intake must face the cold aisle and its exhaust the hot aisle. A switch mounted with its ports toward the back, or ordered with fans blowing the wrong way, breathes its neighbors' exhaust. Its inlet temperature climbs until it raises temperature alarms, speeds its fans to the limit or shuts itself down. Small closets add their own failures: a door kept shut with no return-air path, cable bundles packed in front of vents, or a missing blanking panel that lets hot exhaust loop back to the front of the rack. Check each device's stated operating temperature range on its spec sheet, place a temperature sensor at switch intake height, and alert on it through the monitoring system (Lesson 20).
Power needs the same thinking about failure. The UPS watt rating must exceed the total load, and its runtime at that load must cover the gap the business can tolerate, for example until a generator starts or long enough for an orderly shutdown. One UPS feeding both power supplies of each switch protects against a utility outage, but not against the UPS itself failing or being taken down for service. Two UPS units, each on its own circuit and each feeding one of the switch's two power supplies (an A feed and a B feed) through its own rack power distribution unit (PDU), survive the loss of either. Size each path to carry the whole load alone, because when feed A fails, feed B picks up all of it. A switch with dual power supplies plugged into the same PDU has redundant hardware but a single point of failure.
Container networking on the build servers
The middle of line 12 happens inside a server. Containerization packages an application with its libraries and runs it as an isolated container: a set of processes that share the host's operating system kernel. On Linux, each container normally gets its own network namespace: a private copy of the network stack with its own interfaces, addresses, routing table and firewall rules. That isolation is why two containers on one host can both listen on port 80.
Something has to connect each namespace to the outside world. In Docker's default design, the host creates a virtual Ethernet (veth) pair, two interfaces joined like the two ends of a cable. One end becomes eth0 inside the container; the other attaches to a Linux bridge on the host called docker0, which acts as a small virtual switch. Docker's default bridge network is 172.17.0.0/16, so the first container typically gets 172.17.0.2, with the bridge at 172.17.0.1 as its gateway. Outbound traffic from the container is translated to the host's own address, which is PAT again. Inbound traffic needs a published port:
# fictional example on build server build1 (10.20.9.20)
docker run -d --name tracker -p 8080:80 kestrel/tracker:1.4
# clients connect to 10.20.9.20:8080
# the host forwards that traffic to the container at 172.17.0.2:80
That published port is port forwarding, implemented as destination NAT on the host. The NAT ideas from lines 6 and 7 reappear unchanged, which is one reason the objective places container networking among the core concepts.
A bridge on one host does not reach other hosts. When containers on different build servers must talk to each other, there are two main designs. An overlay network encapsulates container traffic inside packets sent between hosts, commonly using Virtual Extensible LAN (VXLAN), so containers appear to share one layer 2 segment while the physical network sees only host-to-host UDP traffic. A routed design instead advertises each host's container subnet into the real network, in some implementations with BGP, so container addresses are directly routable and there is no encapsulation overhead. Kubernetes, the most widely used container orchestrator, sets the rules rather than the mechanism: every pod (a group of containers scheduled together) gets its own IP address, and pods can reach each other without NAT. Plug-ins written to the Container Network Interface (CNI) specification provide the mechanism.
That leaves three design checks for Kestrel. First, container address ranges must not overlap corporate space. 172.17.0.0/16 sits inside the RFC 1918 block 172.16.0.0/12; if a depot or VPN pool ever used it, the build servers would send that traffic to docker0 instead of the network. Reserve container ranges in the address plan like any other subnet. Second, overlay encapsulation adds headers (VXLAN adds 50 bytes over IPv4), so either the underlay's maximum transmission unit (MTU) must be raised or the container MTU lowered; otherwise large packets fragment or are silently dropped. Third, traffic between containers never passes through the HQ firewall, so security policy has to be applied inside the cluster.
Network virtual interfaces
The last part of line 12, cloud servers in two subnets, involves interfaces that exist only in software. A network virtual interface is a logical interface that an operating system or network device treats exactly like a physical port. It has a name, a state, addresses and a place in the routing table, but no dedicated hardware. You have already met several in this lesson.
| Interface | What it is | Where you meet it | Design caution |
|---|---|---|---|
| Loopback | An always-up logical interface | Router IDs, OSPF and BGP peering, management addresses | Advertise it, or nothing can reach it |
| Switch virtual interface (SVI) | A VLAN's layer 3 interface on a multilayer switch | The default gateway for each VLAN, such as Vlan20 in the core table | The DHCP relay is configured here |
| Subinterface | One physical port split into logical interfaces, each tagged with its own VLAN under IEEE 802.1Q | Router-on-a-stick, provider handoffs | The VLAN tag must match the far side |
| Tunnel interface | A logical point-to-point link carried over another network | Generic Routing Encapsulation (GRE) or IPsec tunnels, the depot backup VPN | Encapsulation lowers the usable MTU |
| Aggregated interface | Several physical links bundled into one (link aggregation group, port-channel or bond) | Switch uplinks and server connections | Both ends must agree on the bundling method |
| Virtual NIC (vNIC) | A virtual machine's network interface card, supplied by the hypervisor or cloud | Every virtual machine; the two-subnet cloud servers | Each has its own address, MAC and security rules |
| veth pair and bridge | A virtual cable and a virtual switch inside a host | Container networking | Their ranges must not overlap corporate space |
build1$ ip -br addr # fictional output; build1 is a virtual machine
lo UNKNOWN 127.0.0.1/8 ::1/128
ens5 UP 10.20.9.20/26
ens6 UP 10.20.9.70/27
docker0 UP 172.17.0.1/16
veth4f2a1c9@if5 UP
vxlan42 UNKNOWN
Read that output as a design document. ens5 is the virtual machine's vNIC in the server subnet, and ens6 is a second vNIC in the management subnet. docker0 is the container bridge, the veth line is the host end of one container's virtual cable, and vxlan42 is an overlay tunnel endpoint. Every address on the list comes from the address plan, which is the point: virtual interfaces are planned like physical ones.
Two vNICs in two subnets create a classic problem. Most operating systems have one default route, through one interface. Suppose a cloud server has eth0 in the application subnet, holding the default route, and eth1 in a management subnet. A request arrives on eth1 from a management host in another subnet. The reply follows the default route out of eth0, from the wrong interface with the wrong source address, and a stateful firewall or cloud security group that saw the request arrive on eth1 drops it. This is asymmetric routing. The fix is a specific route for the management range through eth1, or source-based policy routing, written into the server build template so every server gets it.
Remember: virtual interfaces follow the same rules as physical ones. They need addresses from the plan, routes that send replies back the way requests arrived, and an MTU that leaves room for any encapsulation.
Exam cues: from stem words to design choices
In scenario questions, the stem's business language points to the concept. The third column names the answer people most often choose by mistake.
| Words in the stem | Points to | Commonly confused with |
|---|---|---|
| each command authorized and logged, device administration | TACACS+ | RADIUS, which combines authentication and authorization for network access |
| users join wired or Wi-Fi with directory credentials, port-based | 802.1X with a RADIUS server | TACACS+, which is for administering devices |
| look up group membership, query the directory | LDAP over TLS | RADIUS, which asks the directory on the switch's behalf |
| IPv6-only hosts must reach an IPv4-only service | NAT64 with DNS64 | Dual stack, which changes the hosts |
| many internal hosts share one public address | PAT | Port forwarding, which works inbound |
| an outside party reaches one internal server | Port forwarding (static NAT), or better a VPN | PAT, which serves outbound flows |
| subnets of different sizes from one block | VLSM | Summarization, which combines prefixes into one |
| two ISPs, inbound traffic must survive a provider outage | eBGP with its own prefix and AS number | Two static default routes, which protect only outbound traffic |
| fast convergence inside the campus, link-state | OSPF | BGP, which is policy-driven between ASes |
| single path, stub site | Static default route | A dynamic protocol with nothing to choose between |
| answers cannot be forged, verify authenticity | DNSSEC | DoT or DoH, which encrypt but do not authenticate data |
| queries cannot be read on untrusted networks | DoT or DoH | DNSSEC, which encrypts nothing |
| logs cannot be correlated, certificate or Kerberos time errors | NTP | DNS or DHCP faults |
| tolerates loss but not delay | UDP | TCP, whose retransmissions arrive too late |
| containers on different hosts share a segment | Overlay network (VXLAN) | The host bridge, which is local to one host |
| PoE ports stay dark after adding devices | PoE budget exceeded | Faulty cabling |
| switch overheats in a closet with adequate cooling capacity | Airflow direction or blocked vents | Undersized air conditioning |
Common misconceptions
- TACACS+ is secure because it encrypts the whole packet. It obscures the whole body, which is more than RADIUS hiding only the password, but RFC 8907 treats that obfuscation as weak and calls for a secured transport.
- DNSSEC makes DNS private. It signs answers so that forgeries are detected; every query and answer stays readable. Privacy comes from DoT or DoH.
- NAT is a firewall. PAT drops unsolicited inbound packets only as a side effect of having no table entry. A single port forward opens a path, and many IPv6 designs have no NAT at all. Policy belongs on the stateful firewall.
- UDP is for unimportant traffic. DNS, DHCP, NTP and RADIUS, some of the most critical services in any network, run on UDP because their applications retry or fail over better than TCP would.
- BGP is only for ISPs. Any organization that multihomes with its own prefix runs BGP, and so do many data center fabrics and cloud private connections.
- Size subnets for today's headcount. A /24 that must become a /23 next year usually cannot grow in place because the neighboring block is taken, and renumbering costs far more than spare addresses in private space.
Recap
- Exam CNX-001 (V1) launched on 18 February 2025: at most 90 questions, at most 165 minutes, pass/fail only. Domain weights are 31% design, 28% security, 16% operations and 25% troubleshooting.
- Usable IPv4 hosts = 2(32 - prefix) - 2, so a /24 holds 254, a /23 holds 510 and a /26 holds 62. A /23 must start on an even third octet.
- VLSM: sort subnets largest first, align each to a multiple of its block size, size for expected growth, and keep a site inside one summary prefix so it can be advertised as a single route.
- IPv6 addresses are 128 bits, LAN subnets are /64, and there is no broadcast (multicast replaces it). A /56 contains 256 /64 subnets.
- PAT shares one public address by rewriting source ports; port forwarding maps a public address and port to one inside host; NAT64 with DNS64 (well-known prefix 64:ff9b::/96) lets IPv6-only hosts reach IPv4-only servers.
- Forwarding uses longest prefix match. Static routes suit single-path stub sites; OSPF is a link-state interior protocol within one AS; BGP runs on TCP 179 between ASes and is what keeps inbound traffic flowing when one of two ISPs fails.
- 802.1X roles are supplicant, authenticator (switch or AP) and authentication server (RADIUS). RADIUS on UDP 1812/1813 hides only the password. TACACS+ on TCP 49 separates AAA and can authorize each command. LDAP on TCP 389 (LDAPS 636) queries the directory.
- NTP on UDP 123 keeps logs, certificates and Kerberos (five-minute default tolerance) consistent. DNSSEC authenticates DNS answers without encrypting them; DoT (TCP 853) and DoH (port 443) encrypt queries without authenticating the data.
- PoE per port at the switch: 802.3af 15.4 W, 802.3at 30 W, 802.3bt 60 or 90 W. 1 W is about 3.412 BTU/hr and 12,000 BTU/hr is 1 ton of cooling; intakes face the cold aisle, and A and B feeds each carry the full load. Container bridges, veth pairs, overlays and vNICs need addresses from the plan, non-overlapping ranges and MTU headroom.
Sources
- CompTIA. (n.d.). CompTIA CloudNetX certification. comptia.org
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- V. Fuller, T. Li. (2006). Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan (BCP 122). IETF / RFC Editor. rfc-editor.org
- R. Hinden, S. Deering. (2006). IP Version 6 Addressing Architecture. IETF / RFC Editor. rfc-editor.org
- R. Droms. (1997). Dynamic Host Configuration Protocol (RFC 2131). IETF. ietf.org
- M. Bagnulo, P. Matthews, I. van Beijnum. (2011). Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers. IETF / RFC Editor. rfc-editor.org
- Y. Rekhter, T. Li, S. Hares. (2006). A Border Gateway Protocol 4 (BGP-4). IETF / RFC Editor. rfc-editor.org
- C. Rigney, S. Willens, A. Rubens, W. Simpson. (2000). Remote Authentication Dial In User Service (RADIUS). IETF / RFC Editor. rfc-editor.org
- T. Dahm, A. Ota, D. Medway Gash, D. Carrel, L. Grant. (2020). The Terminal Access Controller Access-Control System Plus (TACACS+) Protocol. IETF / RFC Editor. rfc-editor.org
- J. Moy. (1998). OSPF Version 2. IETF / RFC Editor. rfc-editor.org
- Key terms
- CIDR (Classless Inter-domain Routing)
- Addressing and routing in which the network prefix length is written explicitly, for example 10.20.0.0/20, instead of being implied by an address class. This allows prefixes of any size and lets many routes be combined into one.
- VLSM (Variable Length Subnet Mask)
- Carving one address block into subnets of different prefix lengths, each sized to its own host count, usually allocated largest first on boundaries that are multiples of each block's size.
- Longest prefix match
- The forwarding rule routers use: when several routing table entries contain a destination address, the entry with the longest prefix length, the most specific one, is chosen.
- PAT (Port Address Translation)
- A form of NAT that lets many inside hosts share one public IPv4 address by rewriting each flow's source address and giving it a unique source port, recorded in a translation table so replies can be returned.
- NAT64
- A stateful translator that converts packets between IPv6 and IPv4 so IPv6-only clients can reach IPv4-only servers. It is normally paired with DNS64, which creates IPv6 addresses for IPv4-only names using a prefix such as 64:ff9b::/96.
- Autonomous system (AS)
- A set of routers under a single technical administration that presents one consistent routing policy to other networks, identified by an AS number and connected to other ASes with BGP.
- IEEE 802.1X
- The IEEE standard for port-based network access control, in which a supplicant on the device authenticates through an authenticator (a switch or access point) to an authentication server, usually RADIUS, before the port is opened.
- TACACS+
- Terminal Access Controller Access Control System Plus, a TCP-based AAA protocol for administering network devices that handles authentication, authorization and accounting separately and can authorize and log individual commands.
- DNSSEC (Domain Name System Security Extensions)
- Extensions that sign DNS records so validating resolvers can verify that answers came from the zone owner and were not altered. It provides authenticity and integrity but no encryption.
- Overlay network
- A virtual network built by encapsulating traffic, for example with VXLAN, inside packets sent between hosts, so that containers or virtual machines on different hosts appear to share one segment.
Choosing Network Architectures and Topologies
- Compare mesh, star, hub-and-spoke, spine-and-leaf and point-to-point topologies by link count, failure behavior and fit to a stated business requirement.
- Choose between VLAN, VXLAN and GENEVE segmentation, and calculate the segment-count and MTU effects of an overlay.
- Place services in trusted, untrusted and screened subnet zones, and design capacity and inspection for north/south and east/west traffic.
- Separate production and non-production environments so that test work has flexibility but no uncontrolled path into production.
The number 4094 and why designs outgrow it
In August 2014, engineers from Storvisor, Cumulus Networks, Arista, Broadcom, Cisco, VMware, Intel and Red Hat published RFC 7348 in the Request for Comments (RFC) series. It describes Virtual Extensible LAN (VXLAN), and the memo says it documents a protocol that was already deployed.[1] The case for VXLAN rests on one number. A virtual local area network (VLAN) ID is 12 bits long. That gives 4096 values, two of which are reserved. The authors were writing about data centers that might need thousands of VLANs to separate groups of virtual machines, and their verdict was blunt: "The current VLAN limit of 4094 is inadequate" in that situation.[1]
Most of the choices in this objective follow the same pattern. A simple design works until a business requirement pushes past one of its limits. There are too many sites for a full mesh, or too much server-to-server traffic for a tree of switches. There are too many tenants for VLANs, or a public website that cannot sit beside the payroll database. You pick the next design for the limit it removes, and you accept the new cost it brings. If you can name the limit and the cost of each option, a scenario question comes down to matching the requirement in the stem to the design that meets it.
Exam objectives: CompTIA CloudNetX CNX-001 objective 1.2, in Domain 1.0 Network Architecture Design: "Given a scenario, analyze business requirements to select and implement the appropriate network architectures and topologies."[2] The objective lists five topology types (mesh, star, hub-and-spoke, spine-and-leaf, point-to-point), three segmentation technologies (VLAN, VXLAN, GENEVE), three zones (trusted, untrusted, screened subnet), two traffic flows (north/south, east/west) and two environments (production, non-production).
Treat a design as five separate decisions. They interact, but each one answers a different question, and an exam stem usually tests one at a time.
| Decision | Question it answers | Options on the objective | Requirements that drive it |
|---|---|---|---|
| Topology | How are devices, sites or virtual networks linked? | Mesh, star, hub-and-spoke, spine-and-leaf, point-to-point | Which sites talk to which, resilience, latency, number of nodes, cost |
| Segmentation | How is one shared network divided into isolated pieces? | VLAN, VXLAN, GENEVE | Number of segments, tenants with overlapping numbering, Layer 2 across a routed network |
| Zones | Where does trust change, and where are the firewalls? | Trusted, untrusted, screened subnet | Public-facing services, partners, guests, compliance |
| Traffic flows | Which way does most traffic move? | North/south, east/west | Where to spend bandwidth and where to inspect |
| Environments | Which lifecycle stage does this network serve? | Production, non-production | Change control, data protection, realistic testing |
In short: topology decides how things are linked, segmentation decides how one network is divided, zones decide where trust changes, traffic flows decide where capacity and inspection go, and environments decide which lifecycle stage a network serves.
Five topologies side by side
A topology is the pattern of connections between nodes. Depending on the scale you are drawing, a node can be a host, a switch, a router, a whole branch office or a cloud virtual network. The physical topology is how cables and circuits actually run. The logical topology is how traffic actually flows, and the two can differ. For example, a branch WAN (wide area network) built from internet tunnels can be logically hub-and-spoke even though every packet crosses the same tangle of internet providers. In the table, n is the number of nodes.
| Topology | Shape | Links needed | Effect of one link failing | Where you meet it | Main weakness |
|---|---|---|---|---|---|
| Full mesh | Every node linked directly to every other node | n(n-1)/2 | Traffic reroutes over the many other paths | Small WAN cores, data center interconnects among a few sites | Link count grows roughly with the square of n |
| Partial mesh | Some nodes have several links, others fewer | Between n-1 and n(n-1)/2 | Depends on which link fails | Most real WANs; SD-WAN with on-demand tunnels | Needs judgement about which pairs deserve direct links |
| Star | End devices each cabled to one central device | n-1 | That one device goes offline | LAN (local area network) access layer: hosts on an access switch | The center is a single point of failure |
| Hub-and-spoke | Sites or virtual networks connect only to a hub that holds shared services | n-1 | That spoke is cut off; a hub failure cuts off all spokes | Branch WANs with a head office, cloud landing zones | Spoke-to-spoke traffic detours through the hub |
| Spine-and-leaf | Two tiers; every leaf switch connects to every spine switch | Leaves x spines | Capacity drops by one spine's share; traffic rebalances | Data center fabrics | Cabling and port counts; needs a routed design |
| Point-to-point | Exactly two endpoints on one link | 1 | The connection is lost unless a backup exists | Leased lines, dark fiber, router-to-router links, single tunnels | One link is one point of failure |
Two formulas do most of the work. A mesh network in its full form needs n(n-1)/2 links. Each of the n nodes connects to the other n-1, and each link is shared by two nodes, so you divide by 2. A hub-and-spoke or star needs n-1 links, one for each node other than the center. The first grows roughly with the square of n and the second grows in a straight line. That is why a full mesh is common among four to six core routers and rare across a hundred branches.
A star network and a hub-and-spoke design look identical on a whiteboard, and exam distractors rely on that. The difference lies in scale and in what the center does. A star is a physical LAN layout: end devices each cable to one central switch, and the switch forwards frames. Nothing about the center is special except that everyone shares it. Hub-and-spoke is a logical design for sites or virtual networks. The hub is a place that holds shared services and policy, such as firewalls, VPN (virtual private network) gateways, directory servers or internet egress. Each spoke is a whole network that reaches the others, if at all, through the hub. If the stem talks about workstations, access switches or a wiring closet, think star. If it talks about branches, regional offices, virtual networks and shared services, think hub-and-spoke.
Point-to-point is both a topology and a building block. It joins exactly two endpoints with one link. That link can be a leased circuit between two data centers, a pair of dark fibers, a routed link between a leaf and a spine switch, or one site-to-site tunnel. Routed point-to-point links are often addressed with a /30 or /31 prefix so that no addresses are wasted on a segment that will only ever hold two interfaces. Seen this way, a hub-and-spoke WAN is a set of point-to-point links that share one end, and a full mesh is a point-to-point link between every pair of nodes. When a stem describes exactly two locations that need dedicated, predictable capacity, choose point-to-point. Its weakness is just as plain: one link is one point of failure, so the design also needs a second, physically separate path. Lesson 5, on designing for availability, covers that in depth.
Worked comparison: twelve sites, mesh or hub-and-spoke
Take a fictional retailer, Harbor Outfitters, with one data center and 11 stores, so n = 12. The architect has three requirements. The point-of-sale systems in each store talk only to the inventory and payment servers in the data center. All internet traffic must pass a central security stack. The WAN uses encrypted tunnels over local broadband.
| Measure | Full mesh | Hub-and-spoke |
|---|---|---|
| Tunnels to build and monitor | 12 x 11 / 2 = 66 | 12 - 1 = 11 |
| Tunnels on each store router | 11 | 1 |
| Tunnels on the data center router | 11 | 11 |
| Store to data center path | Direct, one tunnel | Direct, one tunnel |
| Store to store path | Direct, one tunnel | Two tunnels, through the hub |
| Where internet traffic is inspected | Must be repeated at every store or forced back to the center | At the hub, by design |
Read the rows against the requirements. Every flow the business named runs between a store and the data center, and for that flow the hub-and-spoke path is exactly as short as the mesh path. The mesh's extra 55 tunnels buy store-to-store paths that nobody uses, and each one is configuration to maintain, keys to rotate and a status to monitor. Central inspection comes naturally when the hub is the data center. Hub-and-spoke wins because of the traffic pattern, not because of a general rule that hubs are cheaper.
Now change one input. A year later the stores roll out VoIP (Voice over Internet Protocol) phones, and staff call each other between stores all day. In the hub-and-spoke design, a call from store 3 to store 8 crosses store 3's tunnel to the hub and then the hub's tunnel to store 8. As an example, suppose store 3 is 28 milliseconds (ms) from the data center, store 8 is 31 ms away, and the two stores are 9 ms apart. Every voice packet now takes about 59 ms instead of 9 ms, and the hub's internet link carries call traffic that has nothing to do with the data center. Voice is far more sensitive to delay and jitter than point-of-sale transactions, so the requirement has changed and the design should change with it. Keep the hub for data center and internet traffic, and add direct store-to-store paths. These can be a static partial mesh between the busiest stores, or on-demand tunnels that an SD-WAN (Software-defined Wide Area Network) controller builds when a call starts. Lesson 3, on connecting sites, covers SD-WAN.
Growth pushes the other way. If Harbor Outfitters reaches 40 sites, a full mesh needs 40 x 39 / 2 = 780 tunnels, while hub-and-spoke needs 39. That is why large WANs that want any-to-any paths use a partial mesh or dynamic tunnels rather than a static full mesh.
In short: choose the topology that makes the business's actual flows short and cheap. A full mesh is worth its n(n-1)/2 links only when many sites must reach many other sites directly.
Hub-and-spoke in the cloud: why spoke A cannot reach spoke B
Cloud landing zones are where you are most likely to build hub-and-spoke today. Microsoft's Azure reference architecture puts three shared services in a hub virtual network: Azure Bastion, Azure Firewall, and a VPN gateway or ExpressRoute gateway.[3] Azure Bastion is a managed service for reaching virtual machines over RDP (Remote Desktop Protocol) or SSH (Secure Shell) without giving them public addresses. ExpressRoute is Microsoft's private circuit service, and Microsoft's Virtual WAN guidance describes an ExpressRoute circuit used for on-premises connectivity.[4] Each workload gets its own spoke, and the spoke virtual networks isolate and manage workloads separately.[3]
The guidance names the case it fits: workloads that "don't require connectivity to each other, but require access to shared services."[3] It says a core purpose of the design is to send outbound internet traffic through the hub's control mechanisms.[3] For most scenarios it recommends peering each spoke to a single hub in the same region.[3]
One mechanism shapes everything else: peering is not routing. Microsoft describes virtual network peering as a nontransitive, low-latency connection between virtual networks.[4] Nontransitive means that if spoke A is peered with the hub and spoke B is peered with the hub, A still has no path to B. A peering links its two networks directly, and nothing beyond them. AWS peering between VPCs (Virtual Private Clouds) has the same limit, which is why AWS offers Transit Gateway as a hub service.
So when a stem says that two spokes cannot talk although both peerings show as connected, nothing is broken. The design is doing what it was built to do. There are three ways to allow spoke-to-spoke traffic, and each is a different topology decision.
- Route through the hub. Add a user-defined route (a route you write yourself to override the platform's default routes) in each spoke. It sends the other spoke's prefix to the hub firewall, which inspects the traffic and forwards it. The topology stays hub-and-spoke, and traffic between spokes is inspected.
- Peer the spokes directly. Add a peering between A and B. Latency drops, but the hub firewall no longer sees that traffic. The topology becomes a partial mesh.
- Use a managed hub. Azure Virtual WAN replaces the self-managed hub with a Microsoft-managed service.[4] Microsoft says it provides a mesh network topology with transitive connectivity among spokes.[4] The trade-off, as this lesson reads it, is that Microsoft runs the hub's routing for you, so you configure less and also control less.
Here is option 1 as it might appear in a spoke's route table. The addresses come from documentation ranges, and the layout is a simplified example, not a copy of any portal screen.
Route table: rt-spoke-prod-a (example)
Address prefix Next hop type Next hop IP Source
192.0.2.64/26 Virtual network - Default
192.0.2.0/26 VNet peering - Default
192.0.2.128/26 Virtual appliance 192.0.2.4 User
0.0.0.0/0 Virtual appliance 192.0.2.4 UserRead it from top to bottom. The first line is the spoke's own address space, delivered locally. The second is the hub, reached directly over the peering. The third sends spoke B's prefix to the hub firewall at 192.0.2.4, and it is the only reason spoke-to-spoke traffic works at all. The fourth is the forced-tunnel default route, which sends all internet-bound traffic to the same firewall. Delete the third line and A can no longer reach B. Delete the fourth and A may reach the internet directly, bypassing the hub's controls, depending on the platform's default outbound behavior.
Plan addressing together with the topology. Peering cannot join networks whose address spaces overlap, and Microsoft's guidance is to make sure address space does not overlap across on-premises and Azure locations.[3] Fix the address plan before the first spoke goes live, because renumbering a running workload is far harder than adding a peering.
Spine-and-leaf: the fabric built for east/west traffic
The older data center design is three-tier. Access switches sit at the top of each rack, distribution switches above them, and a core above those. It was shaped for traffic that came in from users, went to one server and went back out. Redundant links between tiers create loops, so STP (Spanning Tree Protocol) blocks some of them, and a blocked link carries nothing until something fails. When most traffic moves between servers, those idle uplinks, and the differing number of hops between racks, become the bottleneck.
Spine-and-leaf architecture, also called leaf-spine, has two tiers. Every leaf switch connects to every spine switch, and the leaf is usually the top-of-rack switch that servers plug into. Spines never connect to each other, and leaves never connect to each other. RFC 8926 describes this family of designs, the Clos network, as a way to build a fabric larger than a single switch while keeping non-blocking bandwidth across its connection points.[5] It adds that ECMP (equal-cost multipath routing) divides traffic across the fabric's many links and switches.[5]
Three properties follow from the wiring, and each one is an exam cue.
- Predictable latency. A server in rack 1 reaches a server in rack 30 through exactly one leaf, one spine and one leaf. Every cross-rack path has the same hop count, whichever spine it uses.
- All links active. Leaf-to-spine links are usually routed point-to-point links, so there is no Layer 2 loop for STP to block. A leaf with four uplinks has four equal-cost paths, and ECMP hashes flows across all of them.
- Scale out, not up. Add a leaf to get more server ports. Add a spine to get more bandwidth between leaves. Port counts set the limits: you cannot have more spines than a leaf has uplink ports, or more leaves than a spine has ports.
Architects size a fabric with the oversubscription ratio: the total server-facing bandwidth on a leaf divided by its total uplink bandwidth. A ratio of 1:1 means every server could send to other racks at full speed at the same moment. A ratio of 3:1 means only a third of them could. Here is one example with fictional switch models. Speeds are in gigabits per second (Gb/s).
| Step | Design A | Design B |
|---|---|---|
| Server ports on each leaf | 48 x 25 Gb/s | 48 x 25 Gb/s |
| Downstream bandwidth | 48 x 25 = 1,200 Gb/s | 1,200 Gb/s |
| Uplinks | 6 x 100 Gb/s, one to each of 6 spines | 4 x 400 Gb/s, one to each of 4 spines |
| Upstream bandwidth | 6 x 100 = 600 Gb/s | 4 x 400 = 1,600 Gb/s |
| Oversubscription | 1,200 / 600 = 2:1 | 1,200 / 1,600 = 0.75:1 |
| After one spine fails | 1,200 / 500 = 2.4:1 | 1,200 / 1,200 = 1:1 |
Design A suits a general virtualization cluster where servers rarely all send at once, and 2:1 is a cost-conscious choice for that kind of load. Now change the requirement. The same racks will host a distributed storage system that copies every write to two other racks, and the storage team needs no oversubscription even while a spine has failed. Design A cannot meet that, because six 100 Gb/s uplinks top out at 600 Gb/s. Design B, with 400 Gb/s uplinks, meets it even with one spine lost. The topology is the same in both columns. The requirement changed the link speeds and the spine count, and that is the kind of adjustment scenario questions reward.
In short: spine-and-leaf gives every cross-rack flow the same short path and keeps every link busy through ECMP. That makes it the default when a stem stresses east/west traffic, predictable latency or adding capacity by adding switches.
Segmentation compared: VLAN, VXLAN and GENEVE
Segmentation divides one shared physical network into separate logical networks, so that traffic in one segment cannot reach another without passing a router or firewall. The three technologies on the objective do this at very different scales.
The virtual LAN (VLAN) is the familiar one. An IEEE 802.1Q tag inserted into the Ethernet frame carries a VLAN ID, and each VLAN is its own broadcast domain. RFC 7348 notes that data centers have long used VLANs for broadcast isolation, with a 12-bit VLAN ID in each frame.[1] That produces the 4094 ceiling from the opening of this lesson. The RFC adds a second limit: because of STP, several data centers limit the number of VLANs they use.[1] A VLAN is also a Layer 2 construct. To put two hosts in different rooms on the same VLAN, you must carry that VLAN across every switch between them. The result is a large Layer 2 domain with the loop and flooding risks that come with it. If you need to refresh tagging, trunks and native VLANs, the Atlas Network+ course covers them.
Virtual Extensible LAN (VXLAN) keeps the Layer 2 model for the hosts but carries it across a routed network. RFC 7348 describes it as a Layer 2 overlay scheme on a Layer 3 network, and it calls each overlay a VXLAN segment.[1] An overlay is a logical network built on top of another network, which is called the underlay. Each segment is identified by a 24-bit VXLAN Network Identifier (VNI).[1] Because 2 to the power 24 is 16,777,216, the VNI space is about 4,000 times larger than the VLAN space. RFC 7348 itself is an Informational document that records a protocol already in use, not a Standards Track specification.[1] In production fabrics, VXLAN is usually paired with a BGP (Border Gateway Protocol) Ethernet VPN control plane, which tells each switch where every MAC (Media Access Control) address lives, instead of learning it by flooding.
The device that wraps and unwraps the frames is the VTEP (VXLAN Tunnel End Point). RFC 7348 defines it as an entity that originates or terminates VXLAN tunnels.[1] A VTEP can be a virtual switch in a hypervisor or a leaf switch in a spine-and-leaf fabric. Two more features make VXLAN the usual choice for multi-tenant data centers. First, tenants can reuse the same MAC addresses and VLAN IDs, a problem the RFC names directly, because each tenant's frames travel inside a different VNI.[1] Second, a VXLAN gateway, which may be a switch, forwards traffic between VXLAN segments and older VLAN-based networks, so you can migrate one rack at a time.[1]
This is what a VXLAN packet looks like on an IPv4 underlay. VXLAN runs over UDP (User Datagram Protocol) on destination port 4789.
VXLAN packet on an IPv4 underlay (sizes in bytes)
+-----------+-----------+-----------+-------------+--------------------------+
| Outer Eth | Outer IP | Outer UDP | VXLAN hdr | Inner Ethernet frame |
| 14 | 20 | 8 | 8 | 14 header + IP packet |
| leaf MACs | VTEP IPs | dst 4789 | 24-bit VNI | VM MACs, VM's IP packet |
+-----------+-----------+-----------+-------------+--------------------------+The overlay costs extra bytes, and that causes one of the most common failures after a VXLAN rollout. Work it through for a virtual machine whose interface uses the usual 1500-byte MTU (Maximum Transmission Unit, the largest IP packet an interface will send).
- The virtual machine sends a full 1500-byte IP packet.
- Its Ethernet header adds 14 bytes, making a 1514-byte inner frame. That whole frame becomes the VXLAN payload.
- The VTEP adds the 8-byte VXLAN header, an 8-byte UDP header and a 20-byte outer IPv4 header: 1514 + 8 + 8 + 20 = 1550 bytes.
- That 1550-byte outer IP packet must cross every underlay link, so the underlay's IP MTU must be at least 1550. Add the 14-byte outer Ethernet header and the frame on the wire is 1564 bytes. That is why the overhead is usually quoted as 50 bytes (14 + 20 + 8 + 8). An IPv6 underlay adds 20 bytes more, because the IPv6 header is 40 bytes.
If the underlay stays at 1500, small packets fit and large ones do not. The symptom is distinctive: ping, DNS (Domain Name System) and SSH work, web pages half-load, and large file transfers stall. There are two fixes. You can raise the underlay MTU, commonly to a jumbo value around 9000 bytes, which leaves room for any overlay. Or you can lower the virtual machines' MTU to 1450, so that 1450 + 14 + 36 = 1500. The first is the normal choice in a fabric you control. The second is common when the overlay crosses links you do not control.
Tunnels also affect the fabric's load sharing. RFC 8926 explains that ECMP techniques typically hash the addresses and port numbers from each packet to select an outgoing link.[5] It also warns that the use of tunnels often results in poor ECMP.[5] The reason becomes clear once you picture the outer headers. This is our explanation, not the RFC's wording: every packet between the same two tunnel endpoints carries the same outer IP addresses, so a hash of those addresses alone sends every tenant's flows down the same link. VXLAN and GENEVE implementations commonly solve this by setting the outer UDP source port from a hash of the inner packet's headers. Different inner flows then take different fabric links, while each single flow stays on one path and arrives in order.
Generic Network Virtualization Encapsulation (GENEVE, written Geneve in its RFC) was published as RFC 8926 in 2020. Its introduction explains why: network virtualization had caused a surge of renewed interest in encapsulation and a stream of new protocols, from VLANs and MPLS (Multiprotocol Label Switching) to VXLAN.[5] Geneve is a UDP-based overlay encapsulation protocol. It builds tunnels across an existing IP network between network virtualization edges, meaning the hypervisor switches, physical switches or appliances where tunnels start and end.[5] Its central design requirement is a data plane that is generic and extensible enough to support current and future control planes.[5] In practice that means a fixed base header with the same 24-bit identifier as VXLAN, followed by a variable list of options. Each option is labeled with a class, a type and a length. A platform can carry metadata in those options, such as an identifier for the security policy already applied, without inventing yet another protocol.
Like VXLAN, Geneve can use any IP network as its underlay.[5] It is intended for multi-tenant overlay networks on an existing IP underlay in public or private data centers.[5] Its options make the header variable in length. The overhead is at least VXLAN's 50 bytes and grows with each option, so the MTU budget must allow for the largest set of options the platform uses. Network cards also need to understand the format to offload checksum and segmentation work. You rarely choose GENEVE the way you choose VLAN numbers. It usually arrives as the encapsulation of a software-defined networking (SDN) platform or a cloud service, and your job is to make the underlay carry it, MTU and all.
| Feature | VLAN | VXLAN | GENEVE |
|---|---|---|---|
| Defined in | IEEE 802.1Q | RFC 7348 (2014, Informational) | RFC 8926 (2020) |
| Segment ID | 12-bit VLAN ID | 24-bit VNI | 24-bit VNI |
| Usable segments | 4094 | About 16.7 million | About 16.7 million |
| How it is carried | 4-byte tag inside the Ethernet frame | Ethernet frame inside UDP (port 4789) inside IP | Payload inside UDP (port 6081) inside IP, plus options |
| Crosses a routed network | No; the Layer 2 domain must be extended | Yes | Yes |
| Added bytes | 4 | 50 over IPv4 | At least 50 over IPv4, plus options |
| Extensibility | None | Fixed 8-byte header | Variable-length options |
| Endpoint | Switch ports and trunks | VTEP | Tunnel endpoint in a network virtualization edge |
| Typical place | Campus access layer, small data centers | Data center fabrics, multi-tenant hosting | SDN platforms and cloud services |
The selection rule falls out of the table. Use VLANs where segments are few and stay inside a Layer 2 domain you are comfortable running, such as a campus access layer that separates staff, voice, guest and IoT (Internet of Things) devices. Choose VXLAN when the segment count exceeds what VLANs can hold, when tenants bring overlapping VLAN IDs or MAC addresses, or when a Layer 2 segment must stretch across a routed spine-and-leaf fabric. Choose GENEVE when the platform needs to carry extensible metadata in the tunnel, or when the virtualization platform you have chosen uses it. An overlay adds isolation, not secrecy. Neither VXLAN nor GENEVE encrypts anything. Traffic that crosses untrusted links still needs IPsec (Internet Protocol Security) or MACsec (Media Access Control security, IEEE 802.1AE, which encrypts traffic hop by hop on each Ethernet link).
In short: VLANs are 12-bit tags inside one Layer 2 network. VXLAN and GENEVE are 24-bit overlays carried in UDP across a routed underlay, and an overlay always costs at least 50 bytes of MTU that the underlay must provide.
Zones: trusted, untrusted and the screened subnet
NIST (National Institute of Standards and Technology) Special Publication 800-41 Revision 1, published in September 2009, defines firewalls as devices or programs that control traffic between networks or hosts with differing security postures.[6] A zone is a set of networks that share one posture, and firewall policy is written between zones rather than between individual hosts. The objective names three zones.
- Trusted zone. Networks the organization controls and whose hosts it manages: staff LANs, internal servers, management networks. Trusted describes ownership and expected posture. It is not permission to skip controls; Lesson 13, on zero trust, applies exactly this point.
- Untrusted zone. Networks the organization does not control. The internet comes first, but guest Wi-Fi, partner links and often contractor VPN pools belong here too.
- Screened subnet. A zone for hosts that must accept connections from the untrusted side, such as public web servers, reverse proxies, mail relays and external DNS servers. Microsoft's hub-and-spoke guidance gives the same idea three names: perimeter network, DMZ (demilitarized zone) and screened subnet.[3] CompTIA's exams use screened subnet.
The screened subnet exists because of what happens after a compromise. A public web server will be attacked. If it sits in the trusted zone, a successful attack puts the attacker right next to the database. If it sits in a screened subnet, the attacker lands in a zone that can open only the few narrow connections the policy allows toward the inside. The policy matrix below shows a typical rule set for a fictional company, using documentation addresses. Rows are the source zone and columns the destination zone.
| From / to | Untrusted | Screened subnet | Trusted |
|---|---|---|---|
| Untrusted | Not applicable | Allow TCP 443 to the reverse proxy at 203.0.113.10; deny all else | Deny all |
| Screened subnet | Allow only to named update and DNS servers | Allow between tiers as documented | Allow TCP 8443 from 203.0.113.10 to the application server 192.0.2.20 only |
| Trusted | Allow web access through the proxy, logged | Allow SSH from the admin jump host 192.0.2.50 only | Internal policy |
Read the matrix by its defaults. Nothing from the untrusted zone reaches the trusted zone directly. The screened subnet can reach the trusted zone on one port, from one source, to one destination. Outbound traffic from the trusted zone leaves through a proxy, where it can be logged. In many real deployments the reverse proxy sits on a private address and the edge firewall publishes it through NAT (Network Address Translation, in which the firewall rewrites addresses as packets cross it). NAT changes which addresses appear in logs, but it does not change which zone a flow crosses.
Two physical layouts implement this. A single firewall with three interfaces, one per zone, is cheaper and simpler. Two firewalls in series, with the screened subnet between them, mean that an attacker who gets past the outer firewall still faces an inner one, often from a different vendor. The price is a second policy to maintain. In a cloud hub-and-spoke design, the hub firewall plays the perimeter role, and per-subnet rules, such as an NSG (Network Security Group) in Azure, add filtering inside each spoke.
In short: trusted and untrusted describe who controls a network. The screened subnet is a buffer zone for anything the untrusted side must reach, so that compromising one of its hosts does not open the trusted zone.
Traffic flows: north/south and east/west
Network diagrams traditionally put the internet at the top and servers at the bottom. North/south traffic runs up and down that picture and crosses the perimeter. Examples are a customer's browser reaching a load balancer, an employee's laptop reaching a SaaS (Software as a Service) application, or a server downloading updates. East/west traffic moves sideways inside the data center or cloud: web tier to application tier, application to database, virtual machine to virtual machine, spoke to spoke, backups and replication between racks. It never touches the perimeter.
The split matters because, in many modern applications, one outside request creates many inside conversations. Trace a single checkout on a fictional shopping site.
| Step | Flow | Direction |
|---|---|---|
| 1 | Customer's browser to the load balancer's VIP (Virtual IP) 203.0.113.10 | North/south |
| 2 | Load balancer to a web server | East/west |
| 3 | Web server to the authentication service | East/west |
| 4 | Web server to the cart service | East/west |
| 5 | Cart service to the inventory database | East/west |
| 6 | Cart service to the payment service | East/west |
| 7 | Payment service to an external card processor | North/south |
| 8 | Payment service to the orders database | East/west |
| 9 | Orders database to its replica in another rack | East/west |
In this example, two of the nine flows cross the perimeter and seven stay inside. Three design consequences follow.
- Capacity. For an application shaped like this one, the fabric must carry several times more traffic between servers than the site exchanges with the internet. Spine-and-leaf was built for exactly that.
- Inspection. A perimeter firewall sees flows 1 and 7 and nothing else. An attacker who compromises the web server can move laterally to the databases without ever crossing it. Inspecting east/west traffic needs controls inside the network, such as distributed firewalls in the hypervisor, security groups on each workload, or routing spoke-to-spoke traffic through the hub firewall as in the route table earlier.
- Latency. Delays along an east/west chain add up. A design that sends every hop through a distant firewall can make a fast application slow.
Now change the input. A video publisher that serves large static files to millions of viewers has the opposite profile: a few internal calls per request and enormous outbound volume. Its design budget goes north/south, into internet capacity, content delivery networks and DDoS (Distributed Denial of Service) protection at the edge. A modest, oversubscribed fabric inside is fine.
In a cloud hub-and-spoke, the two directions often take different paths. Outbound internet traffic is forced through the hub firewall, which is the design's stated purpose. Spoke-to-spoke traffic follows whichever of the three options above you chose. Make that choice deliberately, because it decides whether east/west traffic between workloads is inspected at all.
In short: north/south traffic crosses the perimeter and east/west traffic stays inside. In many applications east/west traffic is the larger share, so both fabric capacity and internal inspection have to be designed for it.
Environments: production and non-production
A production environment runs the systems that real users and customers depend on, using real data. A non-production environment is everything used to build and check changes before they reach production: development, test, quality assurance, staging and sandboxes. The network treats the two differently because the business accepts different risks in each.
| Concern | Production | Non-production |
|---|---|---|
| Who uses it | Customers, staff, partners | Developers, testers, automated pipelines |
| Data | Real, including PII (Personally Identifiable Information) | Synthetic or masked copies; real PII only with production-grade controls |
| Change control | Approved changes in maintenance windows | Frequent, often automated changes |
| Connectivity | Tight; paths documented and inspected | Looser among non-production systems; no route into production |
| Monitoring and service levels | Round-the-clock alerting and service-level commitments | Best effort |
| Sizing and cost | Built for peak load and redundancy | Scaled down, often shut down out of hours |
Azure's hub-and-spoke reference treats environments as spokes: spokes can represent different environments, such as production and nonproduction.[3] Its reference diagram shows the two non-production spokes peered or connected directly with each other.[3] The same diagram shows forced-tunnel paths running from both production spokes toward the hub firewall.[3] That is a useful template. Give non-production the flexibility developers need among themselves, but no path into production that does not cross a controlled point.
Two requirements pull against each other. Isolation says non-production must never reach production data or systems, so a test script cannot change real orders. Parity says staging must resemble production in topology, zones, MTU and firewall rule structure. Otherwise tests pass in staging and fail in production. The usual way to meet both is to build each environment from the same templates, using Infrastructure as Code (Lesson 21, on automating a hybrid cloud network), with different address spaces, different sizes and separate credentials. Environments then become one more axis of segmentation. They can be separate virtual networks or VPCs, separate cloud accounts or subscriptions, or separate VNIs and VRF (virtual routing and forwarding, which keeps separate routing tables inside one router or switch) instances in a shared fabric.
In short: production carries real users and data under strict change control. Non-production exists for change itself, so it gets flexibility inside its own boundary, masked data, and no uncontrolled route into production.
Reading the scenario: exam cues and the pairs people confuse
Scenario stems describe business requirements, not technologies. Translate the requirement into a design element, then check its nearest neighbor before you commit.
| When the stem says | Choose | Not to be confused with |
|---|---|---|
| Every site must reach every other site directly and survive the loss of any link | Full mesh | Partial mesh, when cost or site count rules out linking every pair |
| Branches need only the data center and shared services; internet traffic is inspected centrally | Hub-and-spoke | Star, which describes devices cabled to one switch |
| Workstations and printers each cabled to one access switch | Star | Hub-and-spoke |
| Heavy server-to-server traffic, equal latency between racks, grow by adding switches | Spine-and-leaf | Three-tier core, distribution and access with STP |
| Two data centers joined by dedicated fiber or a leased circuit | Point-to-point | Mesh: a mesh only makes sense with three or more nodes, and two sites are just one link |
| More than 4094 segments, tenants with overlapping VLAN IDs, Layer 2 across a routed fabric | VXLAN | VLAN |
| Extensible tunnel metadata, header options, room for future control planes | GENEVE | VXLAN, whose header is fixed |
| Public service reachable from the internet without exposing internal systems | Screened subnet | Trusted zone |
| Internet, guest Wi-Fi, partner network | Untrusted zone | Screened subnet |
| Server to server, lateral movement, microsegmentation | East/west | North/south |
| Users reaching the data center, internet egress, edge DDoS protection | North/south | East/west |
| Test a change with masked data before release | Non-production | Production |
| Two spokes peered to one hub cannot communicate | Nontransitive peering; add a hub route or a direct peering | A failed peering or a routing outage |
Work one stem from start to finish. A software company hosts a platform for 6,000 business customers in its own data center. Each customer needs its own isolated Layer 2 segment. Many customers bring VLAN numbering from their own sites, and the fabric is a routed spine-and-leaf network.
- Count. 6,000 segments is more than 4094, so VLANs alone fail on scale.
- Check for overlap. Customers reuse VLAN IDs, so a customer's VLAN ID cannot serve as the segment ID. That points to a separate, larger ID space.
- Check the underlay. A routed fabric can carry Layer 2 only inside an overlay.
All three checks point to VXLAN, with one VNI per customer, VTEPs on the leaf switches and an underlay MTU of at least 1550 bytes. Now change one input: the requirement becomes 40 departments on one campus, with no overlapping numbering and no routed fabric between them. Every check then passes for ordinary VLANs, which are simpler to run and need no MTU change.
Common misconceptions
- Star and hub-and-spoke are the same thing. They share a drawing. A star is a physical LAN with a switch at the center. Hub-and-spoke is a logical WAN or cloud design whose hub holds shared services and policy.
- A full mesh is the most resilient, so it is always the best design. It has the most paths, but its links grow as n(n-1)/2: twelve sites need 66 links and forty need 780. Unless many sites talk to many others, a hub-and-spoke or partial mesh meets the requirement at a fraction of the cost and complexity.
- Peering two spokes to the same hub lets them talk to each other. Cloud peering is nontransitive. Spoke-to-spoke traffic needs a route through a hub appliance, a direct peering or a managed hub service.
- VXLAN segments are encrypted, so they are safe across any link. VXLAN and GENEVE isolate traffic by identifier but do not encrypt it. Add IPsec or MACsec where confidentiality is required.
- Traffic inside the trusted zone is safe, so the perimeter firewall is enough. East/west traffic never reaches the perimeter, and in many data centers it is the larger share. Lateral movement after a single compromise happens exactly there.
- A copy of production data makes the best test environment. It makes the most realistic one and the riskiest. Real PII in a loosely controlled network is a breach waiting for one misconfigured rule. Use synthetic or masked data, or give the copy production-grade controls.
What to carry forward
- A full mesh of n nodes needs n(n-1)/2 links, while hub-and-spoke and star need n-1. For twelve sites that is 66 against 11.
- A star is a physical LAN layout around a switch. Hub-and-spoke is a logical design for sites or virtual networks whose hub holds shared services and policy.
- Cloud virtual network peering is nontransitive. Spokes peered to one hub cannot reach each other without a hub route, a direct peering or a managed hub such as Azure Virtual WAN.
- Spine-and-leaf connects every leaf to every spine, gives every cross-rack flow a leaf-spine-leaf path, and uses ECMP so that all uplinks carry traffic. Oversubscription is downstream bandwidth divided by uplink bandwidth.
- VLAN IDs are 12 bits, giving 4094 usable VLANs. VXLAN and GENEVE identifiers are 24 bits, giving about 16.7 million segments, carried in UDP across a routed underlay by tunnel endpoints such as VTEPs.
- VXLAN over IPv4 adds 50 bytes, so a 1500-byte inner packet needs an underlay IP MTU of at least 1550. GENEVE adds at least as much, plus its options.
- A screened subnet holds the hosts the untrusted side must reach, so that compromising one of them does not open the trusted zone.
- North/south traffic crosses the perimeter. East/west traffic stays inside, is often the larger share, and needs inspection inside the network.
- Non-production gets flexibility, masked data and no uncontrolled route into production, and staging should mirror production's design.
Sources
- M. Mahalingam et al. (2014). RFC 7348: Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks. IETF / RFC Editor. rfc-editor.org
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Microsoft Learn. (n.d.). Hub-and-spoke network topology. learn.microsoft.com
- Microsoft Learn. (n.d.). Hub-spoke network topology with Azure Virtual WAN. learn.microsoft.com
- J. Gross, I. Ganga, T. Sridhar (eds.). (2020). RFC 8926: Geneve: Generic Network Virtualization Encapsulation. IETF / RFC Editor. rfc-editor.org
- K. Scarfone, P. Hoffman. (2009). NIST SP 800-41 Rev. 1: Guidelines on Firewalls and Firewall Policy. NIST. csrc.nist.gov
- Key terms
- Full mesh
- A topology in which every node has a direct link to every other node. A network of n nodes needs n(n-1)/2 links, so it has many paths but its cost grows quickly.
- Hub-and-spoke topology
- A logical design in which sites or virtual networks (spokes) connect only to a central hub that holds shared services and policy. Spokes reach each other, if at all, through the hub.
- Spine-and-leaf
- A two-tier data center fabric, a form of Clos network, in which every leaf switch connects to every spine switch. It gives equal-length paths between racks and uses equal-cost multipath routing across all uplinks.
- Oversubscription ratio
- A switch's total server-facing bandwidth divided by its total uplink bandwidth. A ratio of 1:1 means every server can send off the switch at full rate at the same time.
- VXLAN
- Virtual Extensible LAN, described in RFC 7348: a Layer 2 overlay carried in UDP across a routed Layer 3 network. It uses a 24-bit VXLAN Network Identifier, allowing about 16.7 million segments.
- VTEP
- VXLAN Tunnel End Point: the hypervisor virtual switch or physical switch that wraps Ethernet frames in VXLAN headers and removes them at the far end of the tunnel.
- GENEVE
- Generic Network Virtualization Encapsulation, RFC 8926: a UDP-based overlay with a 24-bit identifier and variable-length options for metadata, designed to support current and future control planes.
- Screened subnet
- A zone between untrusted and trusted networks for hosts the untrusted side must reach, such as public web servers. It is also called a DMZ or perimeter network.
- East/west traffic
- Traffic between systems inside a data center or cloud, such as server to server or virtual network to virtual network, that does not cross the network perimeter.
- Nontransitive peering
- A peering connection that links only its own two networks. If network A peers with a hub and network B peers with the same hub, A still cannot reach B through those peerings alone.
Connecting Sites: MPLS, SD-WAN, Metro Networks, Dark Fiber, Cellular and Satellite
- Explain how MPLS forwards packets on labels, and what a carrier MPLS VPN does and does not provide to an enterprise.
- Explain how SD-WAN builds application-aware overlays across MPLS, broadband and cellular underlays, and when direct internet access is appropriate and how it must be secured.
- Weigh renewing, integrating or retiring an MPLS network for a given site from its traffic destinations, application tolerances, available links and operating capacity.
- Select metro Ethernet, dark fiber, cellular or satellite (geostationary or low Earth orbit) for a site from its requirements, including the latency floor each orbit imposes.
RFC 3031 and a WAN contract up for renewal
In January 2001 the Internet Engineering Task Force (IETF) published Request for Comments (RFC) 3031, the architecture for Multiprotocol Label Switching. Its overview opens with the behavior it set out to change. As an Internet Protocol (IP) packet travels from one router to the next, each router makes its own forwarding decision for that packet.[1] Every hop reads the header, searches its routing table and picks a next hop by itself. MPLS made that decision once, at the edge of a provider's network, and let the rest of the path follow a short label. Carriers built private enterprise networks on the idea. For two decades, the wide area network (WAN) at many companies simply meant an MPLS contract.
Here is a fictional example that runs through this lesson. Halvorsen Freight has a headquarters data center, 36 branch offices and three distribution centers, all on one carrier's MPLS service. The contract ends in March. Since it was signed, email has moved to a software as a service (SaaS) suite, desk phones have moved to a cloud calling service, and several business applications now run in a public cloud. The network team has split into two camps. One wants to renew MPLS. The other wants to replace it with a software-defined wide area network (SD-WAN) running over broadband and cellular links, with each branch sending its internet traffic straight out. Both camps have real evidence, and no single answer fits the whole company. The answer has to come site by site, from each site's requirements.
Exam objectives: CNX-001 objective 1.3, Given a scenario, analyze requirements to select appropriate connectivity solutions in a hybrid environment.[2] This lesson teaches the bullets Multiprotocol Label Switching (MPLS), software-defined wide area network (SD-WAN), direct internet access, metro network, dark fiber, cellular and satellite. Virtual private networks (VPNs), remote access, application gateways, public cloud connectivity and private Platform as a Service (PaaS) connectivity follow in the next lesson. If WAN basics feel rusty, the Atlas Network+ course covers the foundations.
How Multiprotocol Label Switching forwards a packet
Multiprotocol Label Switching (MPLS) still uses ordinary IP routing protocols to learn the topology. What it changes is how packets cross the core. The word multiprotocol is there because RFC 3031 says its techniques apply to any network layer protocol, although the RFC, like almost every real network, concentrates on IP.[1] A router that forwards on labels is called a label switching router (LSR). Three more terms from the RFC carry the whole mechanism.
- Forwarding equivalence class (FEC). A set of packets that the network will treat identically: same path, same handling. All of one customer's traffic for 198.51.100.0/24 can be one FEC.
- Label. A short, fixed-length number attached in front of the packet that stands for its FEC. A label means something only between two neighboring routers, so it is normally replaced at every hop.
- Label switched path (LSP). The one-way route through a series of LSRs that the packets of one FEC follow. Return traffic uses a different LSP.
Routers agree on labels using a signaling protocol. The Label Distribution Protocol (LDP) is the common default. RSVP-TE (the Resource Reservation Protocol with traffic engineering extensions) is used when the provider wants to pin LSPs to chosen paths and reserve bandwidth along them.
Now follow one packet across a fictional provider network, from a Halvorsen branch to the headquarters data center. This walk is simplified to a single label, which is how generic MPLS forwarding works.
- Ingress. The provider edge router PE-BR12 receives an ordinary IP packet from the branch, addressed to 198.51.100.20. It does one full IP lookup, decides the packet belongs to the FEC for Halvorsen's 198.51.100.0/24 prefix, and pushes label 17 onto it.
- Core. Core router P2 receives a packet carrying label 17. It does not read the IP header. It looks up 17 in its label forwarding table, swaps it for label 24, and sends the packet out interface ge-0/0/1 toward P3.
- Second-to-last hop. P3 removes (pops) the label instead of swapping it. This is called penultimate hop popping. It saves the egress router from doing a label lookup and an IP lookup on the same packet.
- Egress. In this single-label version, PE-DC receives a packet with no label left and routes it by its IP header to Halvorsen's customer edge router at the data center.
In a carrier Layer 3 VPN, described in the next section, the packet carries a second, inner label underneath. When P3 pops the outer label, PE-DC still receives the inner VPN label, and it uses that label to choose which customer's routing table the packet belongs to.
| Incoming label | Action | Outgoing label | Outgoing interface | Next hop | What the path leads to |
|---|---|---|---|---|---|
| 17 | Swap | 24 | ge-0/0/1 | P3 | Halvorsen data center prefix, via PE-DC |
| 18 | Swap | 31 | ge-0/0/2 | P4 | Halvorsen branch 12 prefix, via PE-BR12 |
| 19 | Pop | none | ge-0/0/3 | PE-DC | P2 is the second-to-last hop for this LSP |
Notice what P2 never does: it never reads the destination address. It indexes one table with one number. The expensive classification happens once, at the ingress edge. That is also where the provider attaches policy: which customer the packet belongs to, which class of service it gets and which path it takes.
| Field | Bits | Purpose |
|---|---|---|
| Label | 20 | The value the next LSR looks up |
| Traffic Class (TC) | 3 | Class of service; older documents call these the EXP bits |
| Bottom of stack (S) | 1 | Set to 1 on the last label before the IP packet |
| Time to live (TTL) | 8 | Hop counter, reduced by each LSR, just like the IP TTL |
Two details in that header matter to an architect. First, the Traffic Class bits let the label carry a class of service. RFC 3031 says MPLS allows, but does not require, the precedence or class of service to be inferred from the label.[1] That is how a provider keeps voice ahead of file transfers inside its core. Second, labels stack, and the bottom-of-stack bit marks the last one. A router can push a second label on top of the first, for example when a packet enters a tunnel across part of the core, or when a VPN label rides under a transport label. Each label adds 4 bytes. A packet with two labels is therefore 8 bytes larger than the IP packet inside it, so providers run their core links with a larger maximum transmission unit (MTU) to carry customers' full-size packets unchanged.
The upshot: MPLS moves the routing decision to the provider's edge. Core routers switch on labels, so the provider can attach customer identity, class of service and an engineered path to a packet once and have every router along the way honor it.
What a carrier sells as an MPLS VPN
Enterprises rarely run MPLS themselves across a country. They buy a carrier's MPLS Layer 3 VPN, and the roles are fixed. Your router at each site is the customer edge (CE) router. It connects over an access circuit to the carrier's provider edge (PE) router. The carrier's interior routers, which only switch labels, are provider (P) routers. You run routing between your CE and the PE, often with the Border Gateway Protocol (BGP), and the carrier runs everything inside.
Customers are kept apart by Virtual routing and forwarding (VRF). Each customer gets its own routing table, called a VRF instance, on each PE, and traffic arriving on a customer's access circuit is forwarded only inside that customer's VRF. The PEs exchange each customer's routes using multiprotocol BGP, tagged so that two customers can both use the same private address range without colliding. In the core, a packet then carries two labels. The outer transport label gets it to the right egress PE. The inner VPN label tells that PE which customer's VRF the packet belongs to.
To the customer, the result looks like one very large router with every site plugged into it. Any site can reach any other site directly through the provider core, without the customer building a tunnel for each pair of sites.
The second thing the carrier sells is quality of service (QoS). In the traditional model Juniper describes, the PE builds queues for the customer's traffic, and those queues are respected across the provider's QoS-enabled MPLS network.[3] Bandwidth can also be reserved for applications that need a guaranteed amount. In practice you mark packets with differentiated services code point (DSCP) values at your CE, the PE maps them into the provider's classes, and the contract states delay, jitter and loss targets for each class.
| Property | MPLS Layer 3 VPN | Design consequence |
|---|---|---|
| Separation from other customers | Yes, by VRF and VPN labels | Your routes and traffic are not visible to other customers' sites |
| Encryption | No; separation is by routing tables, not cryptography | If policy requires encryption in transit, add Internet Protocol Security (IPsec) tunnels over the service |
| QoS across the whole path between your sites | Yes, inside the carrier's network | The guarantee ends where the carrier's network ends, for example at a hub's internet edge |
| Any-to-any reachability | Yes, by default | No tunnel mesh to build between sites |
| Internet and SaaS access | Not by itself; a separate service or a hub breakout | Cloud-bound traffic often travels to a hub first |
| Speed of turn-up | Slow; a physical access circuit must be ordered, built and tested | A poor fit for temporary or urgent sites |
| Accountability | One carrier, one contract, one service-level agreement (SLA) | Simple to manage, but every site depends on one provider |
The case for renewing MPLS
The MPLS camp at Halvorsen starts with the distribution centers. Each one runs about 140 handheld scanners that talk to a warehouse management system in the headquarters data center. In this fictional case, a scanner session fails if the round-trip time stays above 60 milliseconds (ms) or packet loss stays above 1 percent. Every packet of that traffic travels from one Halvorsen site to another Halvorsen site, entirely inside the carrier's network. That means the carrier's QoS covers the whole path, from one CE to the other, and the contract puts targets for delay, jitter and loss in writing.
Their second argument is trust. Nobody engineers the public internet end to end for one customer. Routes between two internet service providers (ISPs) change without warning, and congestion at a peering point is nobody's contractual problem. Microsoft's guidance on SD-WAN design accepts this view on its own terms: organizations that do not trust public and shared networks to deliver the performance and reliability they need may keep an existing MPLS network as an enterprise-class underlay.[4]
Their third argument is operational. One carrier runs the core routing, watches the circuits and answers for faults. A small network team does not have to run a fleet of tunnels or a policy controller.
The weak points are just as concrete. Half of Halvorsen's traffic no longer goes to Halvorsen sites. It goes to SaaS and public cloud providers, so the carrier's QoS guarantee stops at the headquarters internet edge, exactly where that traffic leaves for the internet. A new branch waits for an access circuit to be built. And per megabit, a private carrier service generally costs more than business broadband.
How a software-defined wide area network works
A Software-defined wide area network (SD-WAN) applies the principles of software-defined networking (SDN) to the WAN. In SDN, decisions are made centrally in software and pushed down to the devices that forward traffic. Juniper's overview puts the central idea plainly: in SD-WAN, the path an application's traffic takes can be controlled and changed dynamically, based on SLA criteria you specify.[3] The characteristics Juniper cites from Gartner include support for several WAN connection types at once, such as MPLS, internet and LTE.[3] LTE (Long Term Evolution) is the 4G cellular standard.
Two words carry the design: underlay and overlay. The underlay is whatever transport physically reaches the site: an MPLS circuit, a cable or fiber broadband line, a cellular modem or a satellite terminal. The overlay is the logical network SD-WAN builds on top. Instead of sending traffic directly through the underlay, the edge device uses the underlay to build tunnels through the networks to the next SD-WAN node.[3] Those tunnels are normally IPsec. Because every application rides inside a tunnel, the overlay looks the same whichever underlay carries it, and it is encrypted even when the underlay is the public internet.
An SD-WAN has three working parts.
- Edge devices. The Customer-premises equipment (CPE) at each site, a physical box or a virtual appliance. It terminates the underlays, builds the tunnels, measures each path and forwards packets. Path selection is enforced here.
- Controller and orchestrator. Central software that holds the policy, distributes keys and routes, and configures the edges. Many products support zero-touch provisioning: a box is shipped to the site, plugged in, and contacts the controller to fetch its configuration.
- Hubs or gateways. Tunnel endpoints in data centers, colocation sites or cloud regions that spokes connect to.
The feature the SD-WAN camp cares most about is application-aware steering. The edge identifies the application, monitors the tunnel the traffic is on, and decides which tunnel to send it through.[3] It measures paths in two ways. Passive monitoring reads the live sessions already passing through the edge and estimates response times and packet loss from them. Active monitoring sends the edge's own probes along each path and measures round-trip time, jitter and loss even when no user traffic is flowing. Juniper gives the classic policy: send mission-critical data over the MPLS link, the reliable and secure path, and the rest over the internet link.[3]
Two terms in the policy below need a word first. ERP stands for enterprise resource planning, the business system that runs orders, stock and invoicing; Halvorsen's ERP lives in the headquarters data center. Local breakout, also called direct internet access (DIA) and covered in the next section, sends internet-bound traffic straight out of the branch's own internet link instead of through a tunnel to a hub.
Here is what such a policy looks like. The notation is fictional and vendor-neutral, written for a Halvorsen branch partway through migration, with one MPLS circuit, two broadband lines (INET-A on cable, INET-B on fiber) and an LTE modem.
! Fictional SD-WAN application policy, vendor-neutral notation
policy BRANCH-STANDARD
class VOICE match app=cloud-calling sla latency<150ms jitter<30ms loss<1.0%
prefer MPLS then INET-A then LTE
class ERP match dst=198.51.100.0/24 sla latency<80ms loss<0.5%
prefer MPLS then INET-A
class SAAS match app=office-suite sla latency<100ms loss<2.0%
exit DIA via cloud-security prefer INET-A then INET-B then LTE
class BULK match app=backup sla none
prefer INET-B never LTEThe edge applies that policy to live measurements. Here is a fictional snapshot taken at 10:42.
| Path | Underlay | Latency | Jitter | Loss | Meets VOICE SLA? | Meets SAAS SLA? |
|---|---|---|---|---|---|---|
| Tunnel to hub | MPLS | 31 ms | 2 ms | 0.0% | Yes | Not used for SaaS |
| Tunnel to hub | INET-A | 36 ms | 11 ms | 2.6% | No: loss | Not used for SaaS |
| Local breakout | INET-A | 18 ms | 9 ms | 2.6% | Not used for voice | No: loss |
| Local breakout | INET-B | 14 ms | 3 ms | 0.3% | Not used for voice | Yes |
| Tunnel to hub or local breakout | LTE | 58 ms | 21 ms | 0.4% | Yes | Yes |
Read it step by step. VOICE prefers MPLS, and MPLS meets every voice threshold, so voice stays there. SAAS prefers INET-A, but INET-A is losing 2.6 percent of packets, above the 2.0 percent limit, so SaaS sessions move to the next preference, INET-B, which meets the limit. Notice that INET-A's interface is still up. A conventional routing protocol would keep using it, because routing reacts to a link going down, not to a link getting worse. That half-working state is called a brownout, and steering around it is one of SD-WAN's main selling points.
Now change one input. At 10:47 the carrier has a problem, and MPLS loss rises to 1.4 percent. Voice's first choice now breaks the 1.0 percent loss limit. Its second choice, INET-A, is still at 2.6 percent loss, which also fails. Its third choice, LTE, measures 58 ms latency, 21 ms jitter and 0.4 percent loss, all inside the limits. So new voice sessions go over LTE until MPLS recovers. Nobody touched a router. The policy did the work, and it would have done the same thing with any mix of underlays.
Topology is a policy choice too. A full mesh of n sites needs n(n-1)/2 tunnels per transport, so 20 sites need 190. Hub-and-spoke needs only n-1, which is 19 with one hub, at the cost of sending branch-to-branch traffic through the hub. Most designs mesh the large sites and run spokes to the rest. Tunnels also add headers. IPsec adds dozens of bytes to every packet, so the tunnel MTU or the Transmission Control Protocol (TCP) maximum segment size (MSS) must be lowered to keep full-size packets from being dropped.
The upshot: SD-WAN is not a kind of circuit. It is an encrypted overlay that a central controller programs and the edge enforces, steering each application to whichever underlay currently meets that application's thresholds, including MPLS if MPLS is one of the underlays.
Direct internet access: ending the trip through headquarters
Today every Halvorsen branch backhauls its internet traffic. Versa describes this as the typical legacy layout: internet traffic from the branch goes to a hub site over a private MPLS link, passes through a web proxy and firewall there, and leaves for the internet from the hub.[5] It made sense when the internet was mostly a place employees visited occasionally. It makes less sense when the email system, the phone system and the customer database all live there.
Versa's definition is short: breaking traffic out to the internet at the branch is called direct internet access (DIA).[5] Vendors also call it local breakout. Compare the two paths for one fictional branch reaching a SaaS front door.
| Design | Legs of the path | Round trip | Headquarters bandwidth used |
|---|---|---|---|
| Backhaul | Branch to headquarters over MPLS: 28 ms. Headquarters to SaaS: 12 ms. Proxy and firewall processing extra. | 40 ms or more | Every byte crosses the headquarters MPLS circuit and its internet circuit |
| DIA | Branch to SaaS over the local ISP: 14 ms | 14 ms | None |
The gains are the ones the table shows: less bandwidth used at headquarters, fewer network hops and lower latency for internet applications. The cost is just as clear. Sending traffic directly from the branch to the internet creates new security problems, and the branch needs extra protection.[5] The inspection that used to happen once, at the hub, now has to happen at every exit.
Versa's guide sets out the security choices, and they are worth knowing by name.
- NAT only. The branch relies on network address translation (NAT) to protect the local area network (LAN). Versa calls this an unsecured strategy, with no additional security at the breakout.[5] NAT hides internal addresses; it does not inspect anything.
- Cloud-delivered security. Branch traffic is sent to a nearby cloud security proxy run by a security provider. It is secure, but the provider's nearest point of presence may be far away, which adds delay. The industry now packages this as secure service edge (SSE), or as secure access service edge (SASE) when it is combined with SD-WAN.
- Local firewall. A next-generation firewall (NGFW), physical or virtual, inspects the breakout at the branch. It is secure, but every site now has a firewall whose rules and software must be maintained.
The upshot: DIA removes the detour through headquarters for SaaS and internet traffic. It is only acceptable when every breakout point gets real inspection, and NAT by itself is not inspection.
The case for SD-WAN over internet links
The SD-WAN camp points at Halvorsen's own traffic. If most bytes go to SaaS and public cloud, then the carrier's end-to-end QoS covers a shrinking share of what users actually do. A cloud calling session from a branch crosses the internet at some point whatever the WAN design. The only question is whether it does so at the branch or after a detour through headquarters.
They point at availability. Two broadband lines from two different providers on separate street routes, plus an LTE modem, give a branch three physically different ways out. With application-aware steering, a brownout on one link costs users nothing.
They point at speed and reach. Broadband and cellular can be installed far faster than a private access circuit, and a zero-touch edge can be configured before it arrives. Operating effort need not stay in-house either. Microsoft describes a managed model in which the SD-WAN design, orchestration and operations are delivered by the SD-WAN provider.[6] How the overlay then meets the cloud providers' own networks is part of public cloud connectivity, the subject of the next lesson.
Their weak points: the internet underneath is best effort. You can shape and prioritize traffic leaving your edge, but you cannot mark priority into a stranger's core, and a typical broadband contract promises availability, not end-to-end jitter. Steering helps only if at least one path is healthy, so two broadband lines that share the same street cable can fail together. And the team now runs a controller, a policy, a set of tunnels and a security stack at every breakout.
What settles it: the requirements, site by site
Microsoft's guidance on SD-WAN projects lays out the real options, and none of them is all-or-nothing. Some organizations keep dedicated links or MPLS for large facilities and use SD-WAN only to replace internet-based IPsec VPNs at small sites.[4] Others extend SD-WAN to their MPLS-connected sites and treat the MPLS network as a high-performance underlay.[4] Others retire MPLS entirely and build the whole corporate network as an overlay on public or shared underlays.[4] In the middle option, a site with both MPLS and internet builds tunnels over each, and the edge sends each application through the tunnel its policy prefers.
So the dispute is settled by inputs, not by preference. These are the inputs that decide it.
| Requirement in the scenario | Points toward | Reason |
|---|---|---|
| Most traffic goes to SaaS or public cloud | SD-WAN with DIA | MPLS QoS would end at the hub's internet edge anyway |
| Most traffic goes to an on-premises data center, and the application has strict delay or loss limits | MPLS, alone or as an SD-WAN underlay | The carrier's engineered QoS covers the whole path |
| Availability beyond what one circuit can give | Two or more physically diverse underlays under SD-WAN | Steering needs at least one healthy path |
| Policy requires encryption in transit | IPsec overlay over any underlay, MPLS included | MPLS VPN separation is not encryption |
| Site needed within days | Cellular first, wired underlays later | No construction required |
| Small team, little WAN engineering capacity | Managed MPLS or managed SD-WAN | Someone has to run the overlay, the policy and the security |
Worked example 1: the Riverside branch (fictional). Twenty-two staff. Measured traffic: 65 percent SaaS, 20 percent cloud calling, 15 percent the ERP system in the headquarters data center. Two broadband providers reach the building on separate street routes, one on cable and one on fiber. LTE signal is strong.
- Where does the traffic go? 85 percent goes to internet destinations. Backhauling it wastes headquarters bandwidth and adds a detour.
- How strict are the applications? Calling needs low loss and jitter, but the calling service is on the internet, so MPLS QoS would stop at the hub's internet edge. ERP is moderately sensitive and small in volume.
- What links can reach the site? Two diverse broadband lines plus LTE: three independent paths.
- What must be added? Security at the breakout, and an encrypted path for ERP.
Decision: SD-WAN over INET-A, INET-B and LTE. SaaS and calling break out locally through a cloud security service or a branch NGFW. ERP rides an IPsec tunnel to the data center hub. The MPLS circuit at Riverside is retired.
Worked example 2: the Northgate distribution center (fictional), one input changed. Everything matches Riverside, including the two diverse broadband lines and LTE, except where the traffic goes. Here 80 percent of traffic is scanner traffic to the warehouse system in the headquarters data center, with the 60 ms round-trip and 1 percent loss limits.
- Where does the traffic go? Mostly to a Halvorsen site, so the whole path can sit inside the carrier's network.
- How strict is the main application? Strict, and failure stops the warehouse. A contractual per-class target from the carrier is worth paying for.
- What links can reach the site? The existing MPLS circuit, two broadband lines and LTE.
Decision flips: keep MPLS, but as an underlay under the same SD-WAN. The warehouse class prefers MPLS, falls back to the better broadband tunnel, and uses LTE as a last resort. The small share of SaaS traffic breaks out locally. This is Microsoft's middle option in practice.
The upshot: the renewal question is answered site by site from four inputs: where the traffic goes, how strict the applications are, which links physically reach the site, and who will operate the result. Mixed answers across one company are normal.
Metro networks: carrier Ethernet across a city
Some Halvorsen sites are close together. The headquarters and a second data center sit 14 km apart in the same city. For distances like that, carriers sell a Metropolitan area network service, usually called a metro network or Metro Ethernet. The carrier runs its own fiber ring around the city and hands each site an ordinary Ethernet port. To your equipment, the far site looks like the other end of a very long cable.
The industry body MEF (originally the Metro Ethernet Forum) defines the standard service types, and carriers' price lists use its names.
- E-Line. Point-to-point between two sites. A port-based version (Ethernet Private Line) carries everything that enters the port; a version based on virtual local area network (VLAN) tags (Ethernet Virtual Private Line) lets several services share one port, separated by tag.
- E-LAN. Multipoint: three or more sites behave as if they were on one switch.
- E-Tree. Rooted multipoint: branch sites can talk to a central root site but not to each other.
You buy a committed rate, and the carrier monitors and repairs the service. That makes metro Ethernet attractive when you need high bandwidth between nearby buildings but have no optical engineers.
The architect's caution concerns layer 2. An E-LAN or a port-based E-Line can stretch VLANs between buildings, which also stretches their broadcast domain and spanning tree failure domain. A loop or broadcast storm at one site then reaches the other. Unless a workload genuinely needs the same layer 2 segment at both ends, the usual practice is to put a router or layer 3 switch at each end and route across the metro link.
Dark fiber: leasing the glass and lighting it yourself
Dark fiber is optical fiber in the ground with no carrier equipment attached: no lasers, no switches, no light. You lease strands, usually a pair (one to transmit, one to receive) between two points, and install your own optics at each end. The fiber is dark until you light it.
That changes who controls capacity. With metro Ethernet you buy a rate and renegotiate to raise it. With dark fiber, capacity is whatever your equipment puts on the glass. Today's 10 gigabit per second (Gbit/s) optics can be replaced with faster ones without touching the contract. With Wavelength-division multiplexing, especially its dense form, dense wavelength-division multiplexing (DWDM), many wavelengths of light share one fiber, each carrying its own independent channel. One pair can then carry many separate high-speed links between two data centers.
The price of control is responsibility. You choose optics rated for the span's distance and loss. You monitor the link. When a strand breaks, you find the fault, typically with an optical time-domain reflectometer (OTDR), and coordinate the repair with the fiber owner. Leases are long, often structured as an indefeasible right of use (IRU) for many years, with a large payment up front and a yearly maintenance fee. One more check matters more than any other: ask for route maps. Two leased pairs running through the same conduit will be cut by the same backhoe.
| Question | Metro Ethernet | Dark fiber | MPLS VPN |
|---|---|---|---|
| Who lights and runs the link? | The carrier | You | The carrier |
| What you receive | An Ethernet port with a committed rate | Bare strands of glass | A routed, any-to-any private network |
| Layer | 2 | Physical; you choose what runs over it | 3 |
| Typical reach | One metropolitan area | Point to point, limited by your optics | National or international |
| Raising capacity | Buy a higher rate | Install faster optics or add wavelengths | Upgrade access circuits and contract |
| Skills you need | Ethernet and routing | Optical engineering and fault location | Routing with the carrier |
The upshot: metro Ethernet and dark fiber can run along the same streets. The difference is who owns the light: the carrier, which sells you a rate and fixes faults, or you, who gain unlimited headroom and take on every fault.
Cellular: LTE and 5G as primary, backup or temporary links
A cellular WAN link is a router with a cellular modem and a subscriber identity module (SIM) card, or an embedded SIM (eSIM), connected to a carrier's 4G LTE or 5G network. Behind the radio towers sits the carrier's packet core, the set of network functions that authenticate subscribers, track their mobility and handle billing. For the enterprise architect, the carrier network is an underlay like any other.
Cellular fills three roles in a site design.
- Backup. The radio path to a tower avoids the building's cable entry and the street conduits that wired lines share. That makes LTE a good third underlay under SD-WAN, as in the voice example earlier.
- Temporary or fast primary. A pop-up store, a construction site, a trade-show stand or a disaster recovery site can be online the day a router arrives, long before a wired circuit could be built.
- Mobile sites. Vehicles, vessels near the coast and kiosks that move.
The limits come from shared radio. Throughput and latency vary with signal strength and with how many other users share the cell. A basement may need an external antenna. Plans may cap or slow data after a monthly allowance, which is why the earlier policy said never to use LTE for bulk data backups. Carriers often place cellular routers behind carrier-grade NAT, so the router cannot accept inbound connections. Overlay tunnels started outward from the site still work, which is one more reason cellular pairs naturally with SD-WAN.
As a general point, some large campuses, ports and warehouses also run their own private LTE or 5G network. That is a campus radio technology rather than a WAN link, but it comes up in the same planning conversations, and it should not be confused with buying cellular WAN service from a carrier.
Satellite: why geostationary and low Earth orbit behave differently
Halvorsen's newest site is a fictional quarry office 140 km from the nearest town, with no wired service and no usable cellular signal. Satellite is the only underlay. Which orbit the service uses decides what the users will experience.
A Geostationary orbit (GEO) satellite sits 35,786 km above the equator and circles once a day, so it appears fixed in the sky. One satellite covers a huge area, and a fixed dish can point at it permanently. The distance sets a minimum delay no engineering can remove. Work it through.
- A signal goes from the site up to the satellite and down to the provider's ground station: at least 2 x 35,786 = 71,572 km, when both are directly below the satellite.
- Radio travels at the speed of light, about 299,792 km per second. 71,572 / 299,792 = 0.239 seconds, or about 239 ms, one way.
- A request and its reply each make that trip, so the round trip is at least 2 x 239 = about 477 ms, before any ground routing or processing. Real measurements run higher, because the satellite is not directly overhead.
That delay affects more than voice. A TCP sender can have only one window of unacknowledged data in flight per round trip. Without window scaling, the largest window is 65,535 bytes. On a fictional measured round trip of 600 ms, the most one connection can move is 65,535 x 8 / 0.6, about 0.87 megabits per second (Mbit/s), however fast the satellite link is. Modern operating systems scale the window, and GEO providers often use performance-enhancing proxies that split TCP connections to hide the delay. One architect's trap follows from that: an IPsec tunnel encrypts the TCP headers, so a proxy on the satellite path can no longer help the traffic inside it.
A Low Earth orbit (LEO) satellite orbits below about 2,000 km. Take an example altitude of 550 km: up and down is 1,100 km, and 1,100 / 299,792 = about 3.7 ms one way for the space segment, or about 7.3 ms round trip. Real round trips are well above that floor, because of slant angles, ground stations and the path onward to the destination. But the floor is roughly sixty times lower than GEO's 477 ms. The Congressional Research Service (CRS) reports that providers are developing and deploying LEO satellites hoping for speeds and latency that approach those of fiber.[7] The trade-offs are different. LEO satellites move quickly across the sky, so a service needs a large constellation, terminals that track satellites electronically and constant handoffs between them. Higher-frequency bands used for satellite broadband can also fade in heavy rain, whichever the orbit.
Satellite also serves sites that normally have wired service. A small satellite terminal in a site's recovery kit is an extra underlay that shares no cable, conduit or tower with the others, which matters when a storm or flood takes out local infrastructure. Satellites are starting to reach ordinary phones too. A T-Mobile and Starlink partnership was the first arrangement of this kind between a cellular carrier and a satellite operator that the Federal Communications Commission (FCC) authorized, in November 2024.[7] These direct-to-device services are still young: CRS notes that short message service (SMS) text messages are typically the only supported feature so far.[7] Treat them as emergency reach for people, not as a site WAN.
For the quarry office, the arithmetic decides it. Weekly video calls and remote desktop sessions would suffer on a half-second round trip, so a LEO service is the better primary choice, with GEO kept as a possible backup for email and telemetry, which tolerate delay.
The upshot: with satellite, the orbit sets the latency floor. GEO's round trip of nearly half a second is set by physics, while LEO's floor is low enough for interactive traffic, at the cost of tracking terminals and handoffs.
Exam cues: matching the stem to the transport
Objective 1.3 starts "Given a scenario", so expect a short requirement and four plausible transports. These are the phrases that point to each answer, and the pairs that get confused.
| The stem says | Best answer | Often confused with | How to tell them apart |
|---|---|---|---|
| Carrier-engineered QoS between company sites, contractual delay and jitter, any-to-any private routing | MPLS VPN | SD-WAN | SD-WAN steers across links; only the carrier can engineer its own core |
| Several transports at once, application-aware path selection, brownout, central policy, zero-touch | SD-WAN | MPLS | SD-WAN is an overlay and can use MPLS as one underlay |
| SaaS is slow because traffic detours through headquarters | Direct internet access with inspection | More bandwidth at headquarters | Bandwidth does not remove the detour or the extra hops |
| Breakout secured only by NAT | Insufficient; add an NGFW or cloud security | Acceptable DIA | NAT translates addresses and inspects nothing |
| Two buildings in one city, carrier-managed Ethernet, no optical staff | Metro Ethernet (E-Line or E-LAN) | Dark fiber | Who lights and repairs the link |
| Own optics, DWDM, capacity growth without renegotiating, long-term lease | Dark fiber | Metro Ethernet | Dark fiber means you supply the light and the operations |
| Online in days, temporary site, vehicle, physically diverse backup | Cellular (LTE or 5G) | Satellite | Cellular needs coverage; satellite is for places without it |
| No terrestrial service, interactive applications | LEO satellite | GEO satellite | GEO's round trip is near half a second; LEO's is far lower |
| Remote site, delay-tolerant traffic only, wide fixed coverage | GEO satellite is acceptable | LEO satellite | When latency does not matter, coverage and terminal simplicity can decide |
| Encryption required over a carrier MPLS service | Add IPsec over the MPLS underlay | MPLS VPN alone | VRF separation is not cryptographic |
Common misconceptions
- An MPLS VPN is encrypted because it is private. Customer separation comes from VRFs and VPN labels inside the carrier's routers. The payload travels in clear text, so an encryption requirement needs IPsec on top.
- SD-WAN is a replacement circuit for MPLS. SD-WAN is an overlay; it needs underlays to run on, and MPLS can be one of them. The choice is often whether MPLS stays as an underlay, not whether SD-WAN replaces it.
- NAT protects a branch that breaks out locally. NAT hides internal addresses and blocks unsolicited inbound connections only as a side effect. It inspects nothing outbound, so DIA needs a firewall or cloud security service at each exit.
- All satellite internet has half-second latency. That is true of geostationary service, because of its 35,786 km altitude. Low Earth orbit constellations sit far closer, and their latency floor is a small fraction of GEO's.
- Dark fiber is just a faster metro Ethernet service. With dark fiber there is no service: no carrier equipment, no committed rate, no carrier monitoring. You buy glass and take on the optics, the monitoring and the fault location.
- A cellular backup is automatically independent of the main link. The radio path usually is, but check that the router has power during an outage, that a basement site has signal, and that the plan's data allowance can carry the traffic it will absorb.
What to remember
- An MPLS ingress router classifies a packet into a forwarding equivalence class once and pushes a label. Core label switching routers forward by looking up and swapping the incoming label, without reading the IP header.
- An MPLS label stack entry is 32 bits: a 20-bit label, 3 Traffic Class bits, a bottom-of-stack bit and an 8-bit TTL. A carrier Layer 3 VPN uses two labels, an outer transport label and an inner VPN label that survives penultimate hop popping.
- An MPLS VPN separates customers with VRFs and honors QoS classes across the carrier's core, but it does not encrypt traffic, and its QoS guarantee ends where the carrier's network ends.
- SD-WAN is an overlay of (usually IPsec) tunnels across underlays such as MPLS, broadband and LTE. The edge measures each path and steers each application to one that meets its thresholds, which handles brownouts that routing protocols ignore.
- Direct internet access breaks SaaS and internet traffic out at the branch instead of backhauling it, cutting headquarters bandwidth and hops. It needs a branch NGFW or cloud-delivered security, because NAT alone is not security.
- The MPLS-or-SD-WAN decision is made site by site from where traffic goes, how strict the applications are, which links reach the site and who will operate it. The options are keep, integrate as an underlay, or retire.
- Metro Ethernet is a carrier-run layer 2 service within one city (E-Line point-to-point, E-LAN multipoint, E-Tree rooted). Dark fiber is unlit glass that you light with your own optics and DWDM.
- Cellular (LTE or 5G) can be online in days and gives a physically diverse backup path, but its performance varies with the shared cell, and carrier-grade NAT means tunnels should be started from the site.
- A geostationary satellite at 35,786 km imposes a round-trip floor of about 477 ms; a low Earth orbit service at a few hundred kilometers has a floor roughly sixty times lower, which suits interactive traffic at remote sites.
Sources
- E. Rosen, A. Viswanathan, R. Callon. (2001). Multiprotocol Label Switching Architecture (RFC 3031). IETF. datatracker.ietf.org
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Juniper Networks. (n.d.). SD-WAN Overview. juniper.net
- Microsoft Learn. (n.d.). SD-WAN integration with Azure hub-and-spoke network topologies. learn.microsoft.com
- Versa Networks. (n.d.). 07 VOS Edge Device Direct Internet Access. docs.versa-networks.com
- Microsoft Learn. (n.d.). SD-WAN connectivity architecture with Azure Virtual WAN. learn.microsoft.com
- Congressional Research Service. (2025). Low Earth Orbit Satellites: Potential to Address the Broadband Digital Divide. everycrsreport.com
- Key terms
- Multiprotocol Label Switching (MPLS)
- A forwarding method in which an edge router assigns each packet to a forwarding class and attaches a short label, and core routers forward by looking up and swapping that label instead of the IP destination address.
- Label switched path (LSP)
- The one-way path through a series of label switching routers that all packets of one forwarding equivalence class follow across an MPLS network.
- Virtual routing and forwarding (VRF)
- A separate routing table instance on a router. Carriers give each MPLS VPN customer its own VRF on each provider edge router so that customers' routes and traffic stay apart.
- Software-defined wide area network (SD-WAN)
- A WAN architecture in which a central controller sets policy and edge devices build encrypted overlay tunnels across several transports, steering each application to the path that currently meets its performance thresholds.
- Underlay network
- The physical or carrier transport that reaches a site, such as an MPLS circuit, broadband, cellular or satellite, over which overlay tunnels are built.
- Direct internet access (DIA)
- Sending a branch's internet and SaaS traffic out through a local internet connection at the branch, instead of backhauling it to a hub or headquarters first. It requires security inspection at each breakout.
- Metro Ethernet
- A carrier-run Ethernet service within one metropolitan area, sold as point-to-point (E-Line), multipoint (E-LAN) or rooted multipoint (E-Tree) layer 2 connections with a committed rate.
- Dark fiber
- Leased optical fiber with no carrier equipment attached. The customer installs its own optics and any wavelength multiplexing, and monitors and maintains the link.
- Geostationary orbit (GEO)
- An orbit 35,786 km above the equator in which a satellite appears fixed in the sky. It gives wide coverage to fixed dishes but a round-trip delay floor of roughly half a second.
- Low Earth orbit (LEO) satellite
- A satellite orbiting below about 2,000 km. Constellations of such satellites give far lower latency than geostationary service but need tracking terminals and frequent handoffs.
Connecting People and Clouds: VPNs, Remote Access, Gateways and Cloud Connectivity
- Choose between site-to-site, point-to-site and remote access VPNs, and between split and forced tunneling, from a stated requirement, and explain the routing behind each choice.
- Select ExpressRoute, Direct Connect, software-defined cloud interconnect, VPC peering or a transit gateway for a hybrid flow, using throughput, path, scale and segmentation requirements.
- Design administrator access with a bastion host carrying SSH or RDP, and internet access to web applications with an application gateway.
- Distinguish service endpoints from private endpoints and predict the effect of each on source addresses, routes, DNS and on-premises reachability.
Kestrel Logistics puts seven requests on the whiteboard
Kestrel Logistics is a fictional freight company, and it is the worked example for this whole lesson. Its head office in Rotterdam runs on 10.10.0.0/16. Its customer portal lives in an Azure virtual network (VNet) on 10.20.0.0/16. Its analytics team uses eight AWS virtual private clouds (VPCs), numbered 10.30.0.0/16 to 10.37.0.0/16. About 400 staff work from home on a typical day. Six administrators look after roughly 40 servers that have no public IP addresses. The portal keeps shipping documents in a cloud storage account. That account is a Platform as a Service (PaaS) offering: the provider runs the storage servers, and Kestrel uses the service through an address the provider publishes.
The architect has written seven requests on the whiteboard, one sentence each. You will choose a connection for every one, using the same procedure each time. Then the auditors will add one sentence, and you will watch a decision flip.
Exam objectives: CompTIA CloudNetX CNX-001 objective 1.3, "Given a scenario, analyze requirements to select appropriate connectivity solutions in a hybrid environment."[1] This lesson teaches the objective's bullets for virtual private networks (site-to-site, point-to-site, remote access, split tunneling and WireGuard), remote access (bastion host, Secure Shell and Remote Desktop Protocol), application gateways, public cloud connectivity (ExpressRoute, Direct Connect, software-defined cloud interconnect, transit gateways, VPC peering and private link) and private PaaS connectivity (service endpoints). Lesson 3 covered the site transports in the same objective: MPLS, SD-WAN, metro networks, dark fiber, cellular, satellite and direct internet access. If longest-prefix routing or IPsec basics feel rusty, the Network+ course covers them, and the Security+ course covers the hardening and authentication ideas used for bastion hosts.
| Request | Who or what | Must reach | Deciding requirement |
|---|---|---|---|
| 1 | Rotterdam office systems | The Azure portal VNet | Encrypted, live within two weeks, modest traffic |
| 2 | Nightly analytics copy, about 4 TB | The AWS VPCs | Finish in six hours, predictable throughput, no internet path |
| 3 | Eight AWS VPCs | Each other and Rotterdam | Production and test must never reach each other |
| 4 | 400 home workers | Internal apps in Rotterdam and Azure | Video calls must not detour through Rotterdam |
| 5 | Six administrators | 40 Linux and Windows servers with no public IPs | One hardened, logged entry point |
| 6 | Customers on the internet | The customer portal | Send /track and /docs to different servers, filter web attacks |
| 7 | Portal servers in Azure | The storage account (PaaS) | No public internet path to the documents |
Step 1: Write each request as a flow with one deciding requirement
Product names are a poor place to start. ExpressRoute, Direct Connect, Private Link and Application Gateway all sound like ways to connect to the cloud, and a stem that mentions the cloud tempts you to grab the first name you recognize. Start from the shape of the flow instead. Ask three questions of every request.
- What are the two ends? A whole network, one device, one person at a keyboard, an anonymous internet user, or a managed cloud service.
- Which path may the traffic take? The public internet with encryption, a private circuit, or the cloud provider's own backbone.
- Which single requirement decides it? Usually one of these: encryption, time to deploy, consistent latency, sustained throughput, the number of networks, inspection of internet traffic, one audited entry point, layer 7 control, or no public exposure.
The first two answers pick a family of solutions. The third picks a member of the family.
| Shape of the flow | Solution family | Question that picks within it |
|---|---|---|
| Network to network across the internet | Site-to-site VPN | Is the internet's variable performance acceptable? |
| Network to cloud on a private path | ExpressRoute, Direct Connect, software-defined cloud interconnect | One cloud or several? A dedicated port or a provider's fabric? |
| Cloud network to cloud network | VPC peering, transit gateway | How many networks, and must routing be segmented? |
| One device to a network | Point-to-site or remote access VPN, WireGuard | Which traffic enters the tunnel: some or all? |
| One administrator to one server | Bastion host carrying SSH or RDP | How few doors can there be, and are they logged? |
| Internet user to a web application | Application gateway | Does routing depend on the URL or host name? |
| Network to a PaaS service | Service endpoint, or private endpoint through private link | Must on-premises reach it? Must public access close? |
So what?: classify the flow by its two ends and its permitted path before you name a product. Most wrong answers on connectivity questions are a correct product applied to the wrong shape of flow, such as a private endpoint offered for an administrator's login, or peering offered for a home worker.
Step 2: A site-to-site VPN joins Rotterdam to Azure
Request 1 joins two whole networks: the Rotterdam office and the Azure VNet. It must be encrypted, it must work within two weeks, and the traffic is modest. That is the standard case for a site-to-site VPN. A virtual private network (VPN) is an encrypted tunnel across a network you do not trust. In the site-to-site form, the tunnel runs between two gateways, one at each site. Every host behind one gateway can then reach hosts behind the other without running any VPN software itself.
Most site-to-site VPNs use IPsec (Internet Protocol Security). NIST's Guide to IPsec VPNs, Special Publication 800-77 Revision 1 from June 2020, describes IPsec as a framework of open standards that keeps communication private across IP networks.[2] The gateways do not start out sharing encryption keys. They negotiate keys and algorithms with the Internet Key Exchange (IKE) protocol.
Follow one packet from a Rotterdam laptop at 10.10.4.20 to a portal server at 10.20.1.5.
- The tunnel is negotiated. The two gateways authenticate each other with a pre-shared key (PSK) or certificates and set up a protected control channel. Through it they agree security associations for the data: the algorithms, the keys, and the address ranges the tunnel will carry. Those ranges are called traffic selectors. Here they are 10.10.0.0/16 on one side and 10.20.0.0/16 on the other.
- The packet is routed to the gateway. Rotterdam's internal routers send anything for 10.20.0.0/16 toward the VPN gateway.
- The packet is wrapped. In tunnel mode, the gateway encrypts the whole original packet and places it inside a new IP packet, addressed from Rotterdam's public gateway address to Azure's. The internet sees only gateway-to-gateway traffic.
- The packet is unwrapped. Azure's gateway checks integrity, decrypts, and forwards the original packet to 10.20.1.5 as if it had arrived on a local link.
Two design consequences follow from that wrapping. First, each packet grows by a new IP header plus the IPsec header and trailer. The tunnel therefore carries less per packet than the physical link: its MTU (maximum transmission unit) is smaller. A tunnel that passes pings and small pages but stalls on large transfers usually has this problem. The fix is to lower the tunnel MTU or clamp the TCP (Transmission Control Protocol) maximum segment size, so each segment plus the tunnel overhead fits. Second, each site's routers must learn that the other site's prefixes sit behind the gateway. You can configure static routes, or run BGP (Border Gateway Protocol) across the tunnel so that prefixes, and failover between a pair of tunnels, are learned automatically.
A design sheet for request 1 might look like this. Every value is an example, and the public addresses come from the documentation ranges.
| Setting | Rotterdam gateway | Azure VPN gateway |
|---|---|---|
| Public tunnel address | 198.51.100.10 | 203.0.113.20 |
| Prefixes behind the gateway | 10.10.0.0/16 | 10.20.0.0/16 |
| Key exchange | IKE version 2 (IKEv2) | IKEv2 |
| Peer authentication | Pre-shared key, the same value on both ends, stored in a secrets vault and never written in the diagram | The same pre-shared key |
| Routing | BGP, private autonomous system (AS) number 65010 | BGP, private AS number 65020 |
| Tunnels | Two, one per internet connection | Two gateway instances |
IPsec in general can also authenticate peers with certificates, and many on-premises gateways support that. Which methods a particular cloud gateway accepts is a product detail, so check the product before you put certificates on a design sheet.
Why not something faster? Nothing in request 1 asks for consistent latency or high sustained throughput. A site-to-site VPN rides the internet service each site already has, so it can be built in days. Its weakness, performance that rises and falls with the internet, does not matter for this flow.
Step 3: Private circuits for the nightly copy: Azure ExpressRoute and AWS Direct Connect
Request 2 looks similar, a network reaching a cloud, but its deciding requirement is different. Every night Kestrel copies about 4 TB (terabytes) of tracking data from Rotterdam to AWS, and the copy must finish inside a six-hour window. Work out the rate before choosing anything.
- 4 TB is 4 × 1012 bytes. At 8 bits per byte, that is 3.2 × 1013 bits.
- Six hours is 6 × 3,600 = 21,600 seconds.
- 3.2 × 1013 bits ÷ 21,600 seconds ≈ 1.48 × 109 bits per second. That is about 1.5 Gbps (gigabits per second), sustained for six hours, before protocol overhead and retransmissions.
An internet VPN might reach 1.5 Gbps on a quiet night, but nothing guarantees it on a busy one. The request also says no internet path. Both facts point to a private circuit into the cloud provider. The two largest providers each sell one.
Azure ExpressRoute extends an on-premises network into the Microsoft cloud over a private connection arranged through a connectivity provider.[3] Microsoft lists three ways to attach: from an any-to-any IP VPN (typically a carrier's MPLS service), from a point-to-point Ethernet link, or from a virtual cross-connection through a provider in a colocation facility. Because the connection does not cross the public internet, Microsoft states that it offers more reliability, faster speeds, consistent latencies and higher security than typical internet connections.[3] Routes are exchanged with BGP, between your network, your Azure instances and Microsoft's public addresses. A circuit carries separate routing domains: private peering reaches your own virtual networks, and Microsoft peering reaches Microsoft's public services. By default a circuit reaches the Azure regions in its own geopolitical region, and the Premium add-on extends that reach worldwide, excluding national clouds. Premium also raises the private peering route limit from 4,000 to 10,000 routes.[3] That limit is one reason to advertise summarized prefixes rather than every on-premises subnet.
Microsoft builds redundancy into every peering location.[3] That protects you against a failed router or port inside the peering location. It does not protect you against losing the one provider or building your circuit passes through. A design that cannot tolerate an outage adds a second circuit at a different peering location, or at least keeps a site-to-site VPN as a backup path.
AWS Direct Connect links your network to a Direct Connect location over a standard Ethernet fiber-optic cable, with your router on one end and an AWS router on the other. Its physical requirements are strict and testable. The link must be single-mode fiber; at 1 gigabit Ethernet that means a 1000BASE-LX transceiver at 1310 nm.[4] Faster ports use 10GBASE-LR, 100GBASE-LR4 or 400GBASE-LR4 optics. 802.1Q VLAN tagging must work across the whole connection, including any intermediate devices. Your router must also support BGP with MD5 authentication.[4]
AWS supports three types of virtual interface (VIF).[4] Each one rides its own VLAN on the link.
- A private VIF reaches a VPC on private addresses. Attached to a Direct Connect gateway, one private VIF can reach virtual private gateways in any account and any AWS Region except the AWS China Regions.[4]
- A public VIF reaches AWS public services, such as the Amazon S3 storage service, on their public addresses.
- A transit VIF reaches one or more AWS Transit Gateways, which matters in Step 4. It does not land on the transit gateway directly. It terminates on a Direct Connect gateway, and you associate that Direct Connect gateway with the transit gateway.
| Question | Site-to-site VPN | Azure ExpressRoute | AWS Direct Connect |
|---|---|---|---|
| Path | Public internet, inside IPsec | Private, through a connectivity provider | Private fiber to a Direct Connect location |
| Time to deploy | Days | Longer: a provider circuit must be ordered | Longer: a cross-connect or provider must be ordered |
| Performance | Varies with the internet | Consistent latency, provisioned bandwidth | Consistent latency, port or hosted bandwidth |
| Routing | Static, or BGP over the tunnel | BGP, with private and Microsoft peering | BGP with MD5 on each VLAN-tagged VIF |
| Encrypted by default? | Yes, that is its purpose | No: a private path, not encryption | No: a private path, not encryption |
| Typical role | First link, small sites, backup for a circuit | Primary Azure path for heavy or latency-sensitive flows | Primary AWS path for heavy or latency-sensitive flows |
Read the encryption row twice, because it is the row people get wrong. A private circuit keeps your traffic off the public internet, but neither provider page used here claims that the circuit encrypts it. Privacy of path and confidentiality of content are different properties. When a policy requires encryption in transit, architects run an IPsec VPN across the private circuit, or use Media Access Control Security (MACsec), which encrypts at the Ethernet link layer, where the provider offers it, and accept the throughput cost.
For request 2, Kestrel orders a 10 Gbps Direct Connect connection with a transit VIF, because the copy must land in several VPCs. The site-to-site VPN stays as a backup path: slower, but enough to keep management traffic flowing if the circuit fails.
So what?: choose a private circuit when the requirement names consistent latency, sustained throughput or a path that avoids the internet. Choose an internet VPN when it names speed of deployment or low cost. Then check two things a private circuit does not give you by default: encryption, and survival when the single building or provider it passes through fails.
Software-defined cloud interconnect: one port, many clouds
Suppose Kestrel later wins a contract that needs a private path to Azure as well, and a third cloud the year after. A separate circuit for each cloud means separate providers, separate cross-connects and a separate lead time for each. Software-defined cloud interconnect (SDCI) removes most of that. An SDCI provider runs a switching fabric across many colocation data centers, and that fabric is already physically connected to the cloud providers' on-ramps. You buy one port on the fabric, or bring a circuit to it. Then you create virtual connections to each cloud through a portal or an API (application programming interface), and you change their bandwidth as projects start and stop. Products in this category include Equinix Fabric and Megaport.
Nothing about the cloud side is unusual. ExpressRoute, for example, accepts a virtual cross-connection through an Ethernet exchange as one of its attachment models.[3] To Microsoft or AWS, the SDCI fabric is just another connectivity partner. The fabric adds two more benefits. Cloud-to-cloud traffic can cross the fabric directly instead of detouring through your own data center. And because the fabric is configured by API, it fits infrastructure as code. The limits are equally concrete. You now depend on the fabric provider's availability, and the encryption caveat from Step 3 still applies.
Step 4: Eight VPCs: VPC peering or a transit gateway
Request 3 joins cloud networks to each other. The simplest tool is VPC peering: a private routed connection between exactly two VPCs, carried on the provider's backbone. Once the peering exists and both route tables point the other VPC's prefix at it, instances talk using private addresses. Azure's equivalent is VNet peering. Peering has two firm rules. First, the two address ranges must not overlap, because each side must route the other's prefix without ambiguity. Second, peering is not transitive. If VPC A peers with B and B peers with C, A still cannot reach C through B. Every pair that must talk needs its own peering.
That second rule makes peering hard to manage at scale. A full mesh of n networks needs n(n - 1) ÷ 2 peerings. Work it for Kestrel.
| VPCs | Calculation | Peerings | Route entries (each VPC lists every other) |
|---|---|---|---|
| 3 | 3 × 2 ÷ 2 | 3 | 6 |
| 8 | 8 × 7 ÷ 2 | 28 | 56 |
| 20 | 20 × 19 ÷ 2 | 190 | 380 |
Kestrel's eight VPCs also need Rotterdam, and peering does not solve that either. In AWS, a VPC cannot use its peer's VPN connection or Direct Connect connection to reach an on-premises network: routing through a peer to such an edge is not supported. Azure VNet peering does offer gateway transit, which lets a peered VNet use a hub VNet's VPN or ExpressRoute gateway to reach on-premises. Even then, the spoke VNets still cannot reach each other through the hub unless you place a router or firewall in the hub and steer traffic to it.
A transit gateway replaces the mesh with a hub. It is a cloud-hosted router to which you attach VPCs, VPN connections and private circuits. Eight VPCs need eight attachments, not 28 peerings. Rotterdam joins through the circuit from Step 3: the transit VIF terminates on a Direct Connect gateway, and that Direct Connect gateway is associated with the transit gateway, where it appears as one more attachment. The transit gateway's real power is its own route tables. Each attachment is associated with one route table, and it can reach only the destinations that table contains. That gives Kestrel the segmentation request 3 demands.
| Route table | Associated attachments | Routes it contains | Effect |
|---|---|---|---|
| prod-rt | VPCs 10.30 to 10.33 | 10.30.0.0/16 to 10.33.0.0/16, plus 10.10.0.0/16 via the Direct Connect gateway attachment | Production VPCs reach each other and Rotterdam |
| test-rt | VPCs 10.34 to 10.37 | 10.34.0.0/16 to 10.37.0.0/16, plus 10.10.0.0/16 via the Direct Connect gateway attachment | Test VPCs reach each other and Rotterdam, never production |
| onprem-rt | The Direct Connect gateway attachment | All eight VPC prefixes | Rotterdam reaches everything |
Azure's closest equivalent is a Virtual WAN hub, which Microsoft groups with VPN Gateway and ExpressRoute as its hybrid connectivity services. Peering still has a place. For two VPCs that need only each other, it is simpler, adds no hub to pay for or to fail, and carries traffic directly between the two networks.
So what?: peering suits a few networks that need only each other. A transit gateway suits a stem that says many networks, on-premises attachment, central routing or segmentation. If a design relies on traffic passing through a middle VPC, peering is wrong, because it is not transitive.
Step 5: Four hundred home workers: point-to-site, remote access and split tunneling
Request 4 has one device at one end. The exam names three overlapping terms, so separate them carefully.
- Point-to-site VPN (P2S) is the cloud providers' name, Azure's in particular, for a tunnel from one client device to a virtual network. A developer's laptop connecting straight to the Azure VNet is point-to-site. Azure's own client, the Azure VPN Client, supports only the OpenVPN protocol for these connections.
- Remote access VPN is the enterprise name for the same idea run as a service for a workforce. Users connect from wherever they are to a VPN concentrator or firewall, using IPsec or a client based on TLS (Transport Layer Security). Some products also offer a browser-only portal with nothing installed. Logins usually tie into the corporate directory and multifactor authentication (MFA).
- Site-to-site VPN, from Step 2, connects networks, not devices. If the stem says users, laptops or travelling staff, the answer is not site-to-site.
The design decision that matters most for request 4 is what goes inside the tunnel. With split tunneling, only traffic for the organization's prefixes enters the tunnel, and everything else leaves through the user's own internet connection. With forced tunneling, also called full tunneling, everything enters the tunnel, including traffic for the public internet. Azure's VPN client uses split tunneling by default.[5] To force all traffic in, Azure documents advertising two custom routes, 0.0.0.0/1 and 128.0.0.0/1.[5]
Why two halves instead of one default route? Because routers and hosts choose the longest matching prefix. The laptop already has a default route, 0.0.0.0/0, pointing at the home router. The VPN client does not delete it. It adds two routes that together cover the whole IPv4 space, each one bit more specific. Follow a packet for a public website at 198.51.100.44.
| Destination | Next hop | Prefix length | Does 198.51.100.44 match? |
|---|---|---|---|
| 0.0.0.0/0 | Home router 192.168.1.1 | 0 | Yes: every address matches /0 |
| 0.0.0.0/1 | VPN tunnel | 1 | No: covers 0.0.0.0 to 127.255.255.255 |
| 128.0.0.0/1 | VPN tunnel | 1 | Yes: the first octet, 198, is 128 or more |
| 10.10.0.0/16 | VPN tunnel | 16 | No |
Two routes match. The /1 is longer than the /0, so it wins, and the packet enters the tunnel. When the VPN disconnects, the two /1 routes disappear and the original default route takes over again, which is why clients use this method. Now remove the two /1 rows. The packet matches only 0.0.0.0/0 and leaves through the home router, while traffic for 10.10.4.20 still matches the /16 and enters the tunnel. That is split tunneling.
Forced tunneling has a trap. Azure warns that its point-to-site gateway does not provide internet access, so with forced tunneling on, all internet-bound traffic from the client is dropped.[5] Full tunneling works only if something on the far side, such as a head-office firewall, actually carries traffic on to the internet.
The same choice exists for whole networks. By default, internet-bound traffic from Azure virtual machines goes straight to the internet. Site-to-site forced tunneling sends it to an on-premises site for inspection instead. The on-premises VPN device must then use 0.0.0.0/0 as its traffic selector.[6]
Now decide request 4. Video calls must not detour through Rotterdam. Under forced tunneling, a call from a home in Utrecht to a conferencing service would travel to Rotterdam inside the tunnel, out through the head-office firewall, and back again. That adds latency and loads the head-office internet link with 400 users' media. Split tunneling sends calls direct. The cost is that home workers' internet traffic skips the head-office firewall, so it needs other protection: endpoint security on the laptop, protective DNS (Domain Name System) filtering, or a cloud-delivered security service of the kind sold as secure access service edge (SASE).
Flip one input. If the stem says compliance requires every user's internet traffic to pass the corporate firewall, split tunneling fails, and forced tunneling with an internet exit at head office is the right choice, latency and all.
WireGuard: a tunnel defined by public keys
WireGuard is a newer VPN protocol, named in the objectives beside the classic designs. It is deliberately small. IKE negotiates from a menu of algorithms; WireGuard uses one fixed modern set instead, including Curve25519 for key agreement and ChaCha20-Poly1305 for encryption, and it runs over UDP (User Datagram Protocol) only. Each peer is identified by a public key, much like an SSH key. There are no user names and no algorithm menus.
Its central idea is cryptokey routing. Each peer entry has an AllowedIPs list that does two jobs. Outbound, it acts as a routing table: a packet whose destination falls inside a peer's AllowedIPs is encrypted to that peer. Inbound, it acts as an access list: a decrypted packet is accepted only if its source address falls inside the AllowedIPs of the peer whose key decrypted it. Here is an example client configuration. The keys are described rather than shown, because real keys never belong in documentation.
# Example WireGuard client configuration (fictional values)
[Interface]
PrivateKey = (laptop private key, generated on the laptop, never shared)
Address = 10.99.0.12/32
DNS = 10.10.0.53
[Peer]
# Kestrel's gateway
PublicKey = (gateway public key)
Endpoint = vpn.example.com:51820
AllowedIPs = 10.10.0.0/16, 10.20.0.0/16
PersistentKeepalive = 25Read it as a design. AllowedIPs lists only Rotterdam and Azure, so this is a split tunnel: a packet to 198.51.100.44 matches no peer and leaves through the local connection. Change that one line to AllowedIPs = 0.0.0.0/0, ::/0 and the same laptop becomes a full tunnel for both IPv4 and IPv6. PersistentKeepalive = 25 sends a small packet every 25 seconds, so a home router's NAT (Network Address Translation) mapping stays open while the tunnel is idle. Port 51820 is simply the conventional example port.
| Question | IPsec with IKE | TLS-based client VPN | WireGuard |
|---|---|---|---|
| Transport | IKE plus ESP (Encapsulating Security Payload), carried in UDP when NAT is present | TCP or UDP, frequently port 443 | UDP only |
| Cryptography | Negotiated from a configured set | Negotiated through TLS | One fixed modern set |
| Identity | Certificates or PSK, often plus a user login | Certificates and user login, often with MFA | Peer public keys only |
| What decides the tunnel's contents | Traffic selectors and pushed routes | Pushed routes | AllowedIPs for each peer |
| Typical weak spot | Complex configuration, mismatched proposals | Heavier software stack | No built-in user identity or address assignment; key distribution is your job |
Two consequences matter in design questions. Because WireGuard is UDP only, it fails on guest networks that permit only TCP to port 443, where a TLS-based VPN still connects. And because the protocol knows keys, not people, enterprise products wrap WireGuard in a management layer that issues keys after a directory login with MFA and revokes them when someone leaves.
So what?: what goes into the tunnel is a routing decision. Whether you are reading Azure's /1 routes or WireGuard's AllowedIPs, ask which prefixes point into the tunnel, and you know whether the design is split or forced.
Step 6: Six administrators: bastion hosts, SSH and RDP
Request 5 is one person reaching one server in order to run it. Two protocols carry nearly all such sessions.
- Secure Shell (SSH), on TCP port 22, gives an encrypted command-line session, plus file copy and port forwarding. The client checks the server's host key to confirm it is talking to the right machine. The user authenticates with a password or, far better, a key pair.
- Remote Desktop Protocol (RDP), on TCP and UDP port 3389, carries a full Windows graphical desktop. Network Level Authentication makes the user authenticate before the server builds a desktop session, which limits the work an unauthenticated stranger can make the server do. A Remote Desktop Gateway can carry RDP inside HTTPS (Hypertext Transfer Protocol Secure) on port 443, so the desktop port itself is never exposed.
Neither port should be open to the internet on 40 servers. The usual design is a bastion host, also called a jump host: one hardened, closely monitored server that is the only permitted entry point for administrative sessions. Everything about it is minimal. It runs no other services. It accepts connections only from known administrator networks or the VPN address pool. It requires MFA, and it logs or records every session. The servers accept SSH and RDP only from the bastion's subnet. Written as filtering rules, request 5 looks like this.
| Priority | Source | Destination | Ports | Action |
|---|---|---|---|---|
| 100 | Admin office 192.0.2.0/24 and VPN pool 10.99.0.0/24 | Bastion 10.20.250.4 | TCP 22 (the only way in, for SSH and for RDP carried inside SSH) | Allow |
| 110 | Bastion subnet 10.20.250.0/27 | Server subnets 10.20.40.0/22 | TCP 22, TCP 3389 (the leg from the bastion to each server) | Allow |
| 4000 | Any | Server subnets 10.20.40.0/22 | Any | Deny |
With OpenSSH, an administrator passes through the bastion in one command. The ProxyJump option builds the session to the target server through the bastion, end to end. The administrator's private key therefore stays on their own laptop instead of being copied onto the bastion.
# Example only: reach a private Linux server through the bastion
ssh -J admin@bastion.example.com admin@10.20.40.15
# The same thing as an entry in the SSH client configuration file
Host app15
HostName 10.20.40.15
User admin
ProxyJump admin@bastion.example.comHow does RDP to a Windows server get through, when rule 100 admits only port 22? It rides inside the SSH session. The administrator asks the SSH client for local port forwarding: the client listens on a port on the laptop, carries anything sent there through the encrypted session, and the bastion opens the onward connection to the server's port 3389. That onward leg is exactly what rule 110 allows.
# Example only: carry RDP for 10.20.40.30 through the bastion
ssh -L 13389:10.20.40.30:3389 admin@bastion.example.com
# Then point the Remote Desktop client at localhost:13389The alternative is to publish a Remote Desktop Gateway as the entry point and add a rule allowing TCP 443 to it from the administrator networks. Either way, there is still one door.
Cloud providers also sell managed bastions. Azure Bastion, for example, opens RDP or SSH sessions from the browser over TLS, so the target virtual machines need no public addresses and no client software. A managed service removes the work of patching the bastion yourself, but the principle is unchanged: one door, logged.
Watch for three failures. A bastion reachable from anywhere on port 22 is a smaller target, not a safe one. A bastion that stores administrators' private keys becomes a single store of every credential, which is why jump-through methods such as ProxyJump matter. And a single bastion is a single point of failure for administration, so critical environments deploy two, or keep an out-of-band management path.
Step 7: Customers on the internet: application gateways
Request 6 runs the other way: anonymous users on the internet reaching the portal. It needs routing by URL and filtering of web attacks. A packet-level device cannot do either, because the URL lives inside HTTP (Hypertext Transfer Protocol), and usually inside TLS as well. An application gateway is a layer 7 reverse proxy for web traffic. It accepts the client's connection, decrypts it, reads the HTTP request, decides where it should go, and opens its own connection to a chosen backend server.
Microsoft's Azure Application Gateway shows the category clearly. Microsoft contrasts it with traditional load balancers, which route on IP address and port, and says it routes on HTTP request attributes such as URL paths and host headers.[7] Its documentation gives the example of sending /images requests to image-optimized servers and /video requests to video servers. Because it works at layer 7 of the OSI (Open Systems Interconnection) model, it also provides SSL/TLS termination, autoscaling, zone redundancy and integration with a web application firewall (WAF). It is deployed into your virtual network and needs its own dedicated subnet that holds nothing else, which you must size and plan for. One currency note: Microsoft states that the v1 SKUs (stock-keeping units, the product tiers), Standard and WAF, were retired on 28 April 2026 and are no longer supported.[7] Current designs therefore use the v2 family. On AWS, the Application Load Balancer fills the same role.
| Listener | Host header | Path | Backend pool |
|---|---|---|---|
| HTTPS 443 | portal.example.com | /track/* | tracking-pool, 10.20.10.0/24 |
| HTTPS 443 | portal.example.com | /docs/* | documents-pool, 10.20.11.0/24 |
| HTTPS 443 | portal.example.com | Anything else | web-pool, 10.20.12.0/24 |
| HTTPS 443 | api.example.com | /* | api-pool, 10.20.13.0/24 |
Work two requests through it.
- A browser sends GET /docs/BL-20931.pdf with the header Host: portal.example.com. The gateway terminates TLS, and the WAF inspects the request and finds nothing wrong. The host matches the portal listener, and the path matches /docs/*, so the request goes to documents-pool. If policy requires encryption all the way, the gateway opens a fresh TLS session to the backend server.
- Change one input: the same path arrives with Host: api.example.com. The host now matches the API listener, whose only rule sends everything to api-pool. Same path, different server, because the host header was read first.
Tell the gateway apart from its neighbours, because exam stems lean on the differences. For transport-layer load balancing, Microsoft points to its separate Load Balancer service.[7] Its documentation sends DNS-based global routing to Traffic Manager and fast global failover for web traffic to Front Door. A layer 4 load balancer spreads connections by address and port and never reads a URL. A DNS-based director returns different addresses but never sees the request at all. An application-layer gateway (ALG) is something else entirely: a helper inside a NAT firewall that rewrites addresses embedded in protocols such as FTP (File Transfer Protocol) and SIP (Session Initiation Protocol). Its name is similar; its job is not. An API gateway is a close cousin of the application gateway, specialized for authenticating, rate-limiting and versioning API calls rather than serving whole web applications.
So what?: when routing depends on anything inside the HTTP request, such as the path, host name, a cookie or a header, the device must terminate TLS and work at layer 7. That device is an application gateway, and the WAF usually runs on it.
Step 8: The portal's documents: service endpoints and private endpoints
Request 7 is a network reaching a PaaS service. By default, a storage account or managed database answers on a public address, and virtual machines reach it as they would any internet service. Request 7 forbids that public path. Azure offers two answers, and the exam names both: the service endpoint, listed under private PaaS connectivity, and private link, listed under public cloud connectivity.
A service endpoint is a setting on a subnet. Once it is on, traffic from that subnet to the chosen service type takes an optimized route over the Azure backbone, and the service learns which virtual network the traffic came from. Microsoft describes this as extending the virtual network's identity to the service. You then add a virtual network rule on the resource, such as the storage account, that admits that subnet and nobody else. Two mechanics follow, and both appear in troubleshooting questions.
- The source address changes. With a service endpoint, the service sees the virtual machines' private addresses as the source, instead of a public address.[8] Microsoft warns that existing service firewall rules written for the old public addresses stop working at that switch.[8] Service traffic from the subnet can also be briefly interrupted while the endpoint is configured.
- The route changes. The subnet's effective routes gain an entry for the service's address prefixes, with a next hop type of VirtualNetworkServiceEndpoint. These routes override BGP and user-defined routes for the matching prefixes.[8] Storage traffic therefore will not follow a forced tunnel to on-premises even when one is configured.
| Source | State | Address prefix | Next hop type |
|---|---|---|---|
| Default | Active | 10.20.0.0/16 | VirtualNetwork |
| Default | Active | Storage service prefixes for the region, for example 203.0.113.0/24 | VirtualNetworkServiceEndpoint |
| Default | Active | 0.0.0.0/0 | Internet |
A private endpoint works differently. It is a network interface, with a private IP address from your own subnet, that connects to a service through Azure Private Link.[9] Private Link gives private access through such an endpoint to Azure PaaS services, such as Azure Storage and SQL Database, and to customer or partner services offered the same way. The service now has an address inside your own network. Three properties follow.
- It is scoped to one resource. A private endpoint maps to one instance of a service, not the whole service.[10] A compromised machine cannot use it to copy data into some other storage account, and Microsoft presents this as protection against data leakage. The scope is narrower still: a storage account needs separate private endpoints for its blob and file subresources.
- It works in one direction. Only clients open connections to the endpoint. The service provider cannot route into your network through it.
- It needs DNS. Applications still connect by the service's name, so that name must resolve to the endpoint's private IP, usually through a private DNS zone.
Microsoft's own guidance recommends Private Link and private endpoints for secure, private access to services on its platform. AWS has the same two patterns: gateway endpoints for S3 and DynamoDB work through route tables without a private IP, like service endpoints, and interface endpoints powered by AWS PrivateLink place a network interface in your subnet, like private endpoints.
| Question | Service endpoint | Private endpoint (Private Link) |
|---|---|---|
| What it creates | A route and an identity on a subnet; no new IP address | A network interface with a private IP in your subnet |
| Address the client connects to | The service's public address | The endpoint's private address |
| Source address the service sees | The VM's private address | The VM's private address |
| Scope | A service type from that subnet, narrowed by rules on each resource | One resource instance, one subresource |
| Reachable from on-premises | Not by default | Yes, over private peering, VPN or peered networks |
| DNS changes | None | Required: the name must resolve to the private IP |
| Closes public access by itself? | No: you add rules on the resource | No: disabling public access is a separate setting |
For request 7 as written, both work, because the portal servers are inside the VNet. Kestrel chooses the service endpoint with a virtual network rule. It is the smaller change: no DNS work and no extra resources to manage. Keep that choice in mind.
Kestrel's finished design
| Request | Decision | Why it wins | Rejected alternative |
|---|---|---|---|
| 1 | Site-to-site IPsec VPN, two tunnels, BGP | Encrypted, built in days, modest traffic | ExpressRoute: consistent latency was not required |
| 2 | 10 Gbps Direct Connect with a transit VIF on a Direct Connect gateway; VPN as backup | About 1.5 Gbps sustained with no internet path | Internet VPN: throughput not predictable |
| 3 | Transit gateway with production and test route tables | 8 attachments instead of 28 peerings; segmentation; Rotterdam joins through the Direct Connect gateway | VPC peering: not transitive, and no routing through a peer to Rotterdam |
| 4 | Remote access VPN with split tunneling and endpoint protection | Calls go direct | Forced tunneling: media detours through Rotterdam |
| 5 | Bastion host with MFA and session logging; SSH via ProxyJump, RDP carried inside SSH | One audited door | Public IPs on servers: 40 doors |
| 6 | Application gateway v2 with WAF and path rules | Routes /track and /docs, filters attacks | Layer 4 load balancer: cannot read the URL |
| 7 | Service endpoint on the portal subnet plus a virtual network rule | No public path from the VNet, no DNS change | Private endpoint: also works, more setup |
The flip: the auditors add one sentence
Two weeks later the auditors add a requirement. A reconciliation server in Rotterdam must upload documents to the same storage account every night, and the account's public network access must be disabled. Run the procedure again with the new input.
- Redraw the flow. One end is now an on-premises network, Rotterdam, reaching a PaaS service over a private path. Rotterdam already reaches 10.20.0.0/16 through the site-to-site VPN.
- Test the current choice. Microsoft states that resources secured to virtual networks with service endpoints are not reachable from on-premises networks by default.[8] The documented workaround is to allow Rotterdam's public NAT addresses in the service's IP firewall. That is a public path, which the new sentence forbids. The service endpoint fails.
- Test the alternative. Private endpoints are reachable from on-premises over ExpressRoute private peering, VPN tunnels and peered networks.[10] Kestrel creates a private endpoint at 10.20.60.5 for the account's blob subresource. That address lies inside 10.20.0.0/16, which the VPN already routes.
- Fix DNS. Rotterdam's DNS must resolve the account name to 10.20.60.5. The usual method is a conditional forwarder for the private link zone, pointing at a DNS resolver inside the VNet.
- Close the public door separately. A private endpoint gives the service a private address but does not necessarily stop public access to it.[9] Disabling public network access is its own setting on the account.
Here is what step 4 looks like before and after the DNS fix. The names follow the pattern of real private link zones but use example.com, and the output is simplified.
Rotterdam server, before the conditional forwarder:
> nslookup kestreldocs.blob.storage.example.com
Name: kestreldocs.privatelink.blob.storage.example.com
Address: 203.0.113.80
Aliases: kestreldocs.blob.storage.example.com
Rotterdam server, after the conditional forwarder:
> nslookup kestreldocs.blob.storage.example.com
Name: kestreldocs.privatelink.blob.storage.example.com
Address: 10.20.60.5
Aliases: kestreldocs.blob.storage.example.comRead the first result carefully. The alias already shows the privatelink name, so the private endpoint exists. But Rotterdam's resolver cannot see the private zone, so public DNS answers with the public address. With public access disabled, the upload is refused. The second result is the working state. The decision flipped, but the procedure did not change. The new sentence added an on-premises end to the flow, and one row of the comparison table, reachability from on-premises, decided it.
Exam cues: what the stem says and where it points
| The stem says | Points to | Commonly confused with |
|---|---|---|
| Branch or office to a VNet, encrypted, over the internet, quickly | Site-to-site VPN | Point-to-site, which serves one device |
| A developer's laptop to the VNet | Point-to-site VPN | Site-to-site |
| Workforce, travelling users, concentrator, clientless portal | Remote access VPN | Bastion host, which serves server administration |
| Do not send users' internet traffic through head office | Split tunneling | Forced tunneling |
| All user internet traffic must be inspected centrally | Forced (full) tunneling with an internet exit | Split tunneling |
| Lightweight, public keys, UDP, AllowedIPs | WireGuard | IPsec with IKE |
| Private connection to Azure, not over the internet, consistent latency | ExpressRoute | Site-to-site VPN |
| Fiber to an AWS location, 802.1Q, BGP with MD5, virtual interfaces | Direct Connect | ExpressRoute, the Microsoft equivalent |
| Several clouds from one colocation port, on demand, through an API | Software-defined cloud interconnect | One dedicated circuit per cloud |
| Two VPCs, nothing else, least overhead | VPC peering | Transit gateway |
| Dozens of VPCs, on-premises, segmentation, central routing | Transit gateway | VPC peering, which is not transitive |
| Administrators, private servers, one audited entry | Bastion host with SSH or RDP | Private endpoint, which is for PaaS services |
| Route by URL path or host header, TLS termination, WAF | Application gateway | Layer 4 load balancer; NAT application-layer gateway |
| PaaS resource gets a private IP, reachable from on-premises, one instance only | Private endpoint through private link | Service endpoint |
| Lock a PaaS resource to a subnet, no private IP, no DNS change | Service endpoint | Private endpoint |
Common misconceptions
- "ExpressRoute and Direct Connect are encrypted because they are private." A private circuit keeps traffic off the internet, but privacy of path is not encryption. Where policy requires encryption in transit, run IPsec across the circuit or use MACsec where it is offered.
- "Peer every VPC to one hub VPC and they can all reach each other." Peering is not transitive. Traffic cannot pass through a middle VPC, so either peer every pair or use a transit gateway.
- "Creating a private endpoint closes the service to the internet." It adds a private address but does not necessarily restrict public access. Disabling public network access is a separate setting.
- "Turning off split tunneling is always the secure choice." Forced tunneling lets head office inspect internet traffic, but it adds latency and load, and on Azure point-to-site it drops internet traffic unless an exit exists beyond the gateway. It is a trade-off driven by the requirement.
- "An application gateway is the same as an application-layer gateway." An application gateway is a layer 7 reverse proxy for web applications. An application-layer gateway is a NAT helper that fixes addresses inside protocols such as FTP and SIP.
- "A service endpoint gives the PaaS service a private IP in my subnet." The service keeps its public address. What changes is the route and the source address the service sees. A private IP in your subnet is what a private endpoint provides.
The short version
- Classify a flow by its two ends and permitted path first: site-to-site joins networks, point-to-site and remote access VPNs join devices, and bastion hosts serve administrators reaching servers.
- IPsec negotiates keys with IKE and wraps each packet in a new IP packet between the gateways' public addresses, which shrinks the usable MTU inside the tunnel.
- ExpressRoute and Direct Connect are private, BGP-routed paths that avoid the internet and give consistent latency, but neither is encrypted by default. Direct Connect needs single-mode fiber, 802.1Q VLANs and BGP with MD5, and offers private, public and transit virtual interfaces; a transit VIF lands on a Direct Connect gateway associated with a transit gateway.
- Software-defined cloud interconnect sells virtual connections to many clouds from one fabric port, provisioned and resized through a portal or API.
- VPC peering joins exactly two networks with non-overlapping ranges and is not transitive; a full mesh of n networks needs n(n - 1) ÷ 2 peerings, 28 for eight. A transit gateway needs one attachment per network and uses route tables for segmentation.
- Split tunneling sends only corporate prefixes into the tunnel; forced tunneling sends everything. Azure forces client traffic with 0.0.0.0/1 and 128.0.0.0/1, which beat the existing /0 default by longest-prefix match.
- WireGuard is UDP-only and identifies peers by public key; each peer's AllowedIPs is both its routing table and its access list.
- An application gateway routes at layer 7 on URL paths and host headers, terminates TLS and hosts a WAF; Azure's v1 SKUs were retired on 28 April 2026.
- Service endpoints keep the service's public address, switch the source to private addresses and are not reachable from on-premises by default. Private endpoints give one resource a private IP reachable from on-premises, and need DNS that resolves to that IP.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Elaine Barker, Quynh Dang, Sheila Frankel, Karen Scarfone, Paul Wouters. (2020). Guide to IPsec VPNs (SP 800-77 Rev. 1). NIST. csrc.nist.gov
- Microsoft Learn. (n.d.). What is Azure ExpressRoute? learn.microsoft.com
- Amazon Web Services. (n.d.). What is Direct Connect? docs.aws.amazon.com
- Microsoft Learn. (n.d.). Azure VPN Client - configure optional DNS and routing settings. learn.microsoft.com
- Microsoft Learn. (n.d.). Site-to-site tunneling (VPN Gateway). learn.microsoft.com
- Microsoft Learn. (n.d.). What is Azure Application Gateway? learn.microsoft.com
- Microsoft Learn. (n.d.). Virtual Network service endpoints. learn.microsoft.com
- Microsoft Learn. (n.d.). What is a private endpoint? learn.microsoft.com
- Microsoft Learn. (n.d.). What is Azure Private Link? learn.microsoft.com
- Key terms
- Site-to-site VPN
- An encrypted tunnel between two gateways that joins whole networks, so hosts on either side communicate without running VPN software themselves.
- Split tunneling
- A client VPN design in which only traffic for the organization's prefixes enters the tunnel, while other internet traffic leaves through the user's local connection.
- WireGuard
- A UDP-only VPN protocol that identifies each peer by a public key and uses that peer's AllowedIPs list both to route outbound packets and to accept inbound ones.
- Bastion host
- A hardened, closely monitored server that is the only permitted entry point for administrative sessions, such as SSH or RDP, into a private network.
- Azure ExpressRoute
- Microsoft's service for a private, BGP-routed connection from an on-premises network to Azure and other Microsoft cloud services through a connectivity provider, avoiding the public internet.
- AWS Direct Connect
- Amazon's service that links a customer router by single-mode fiber to a Direct Connect location, carrying VLAN-tagged virtual interfaces to VPCs, transit gateways or public AWS services.
- Transit gateway
- A cloud-hosted hub router that attaches many VPCs, VPNs and private circuits and uses its own route tables to control which attachments can reach each other.
- Application gateway
- A layer 7 reverse proxy for web traffic that terminates client TLS, reads HTTP details such as host and URL path, and forwards each request to a chosen backend pool, often with a web application firewall.
- Private endpoint
- A network interface with a private IP address in a customer's virtual network that connects through Private Link to one specific instance of a PaaS service.
- Service endpoint
- An Azure subnet setting that sends traffic for a PaaS service over the provider backbone with the subnet's private source addresses, so the service can admit that subnet by rule while keeping its public address.
Designing for Availability
- Convert an availability target into a monthly downtime budget, and calculate the availability of components in series and in parallel.
- Choose device and path redundancy, link aggregation, and an active-active or active-passive design for a stated failure.
- Select a load-balancing scope (local or global) and method (round robin, weighted, least connections or load-based) for a given server pool and traffic pattern.
- Recommend fault domains, update domains, availability zones, regions, autoscaling and a CDN to meet specific business requirements.
A ticket sale that one data center cannot survive
At 10:00 on a Saturday, a fictional ticket seller called tickets.example.com opens sales for a 60,000-seat stadium concert. Within a minute its traffic climbs from about 400 requests per second to 9,000. Everything online runs in one cloud data center: two web virtual machines (VMs) behind one load balancer, one database VM and one firewall. A 200-seat call center at head office sells the same seats by phone. It connects through one core switch, one router and one internet service provider (ISP) link. If any one of those parts fails at 10:01, sales stop.
The board has written its requirements in business language. On the exam and at work, your job is to translate each one into a technology and explain why you chose it over the similar option next to it. Objective 1.4 describes the skill in those terms: analyze availability requirements and recommend technologies that meet business needs.[1] This lesson takes the ticket seller's problem one requirement at a time. Each requirement brings in one technology from the objective.
| ID | What the board wrote | What it asks of the design |
|---|---|---|
| R1 | No single broken server, switch, router or cable may stop sales. | Remove every single point of failure |
| R2 | Losing one cloud data center must not stop online sales. A whole-region outage may be recovered manually. | Survive the loss of a data center automatically; treat region loss as a recovery plan |
| R3 | On-sale peaks reach 20 times normal traffic. Most are announced; some are not. | Capacity that grows and shrinks, both on a schedule and on demand |
| R4 | Monthly platform maintenance must never take more than a small share of capacity offline at once. | Control which machines restart together |
| R5 | Fans in Europe and Asia say seat maps and images load slowly. | Move static content closer to distant users |
| R6 | The purchase path must be available 99.95% of each month. | A measurable target to design and test against |
Exam objectives: 1.4 Given a scenario, analyze availability requirements to recommend technologies that meet business needs. The objective covers load balancing (global, local, virtual IP, and the methods round robin, load-based, least connections and weighted), high availability (active-active and active-passive), redundancy of devices and paths, link aggregation, autoscaling, regions and availability zones, content delivery networks (CDNs), fault domains and update domains.
Turning 99.95% into minutes, then into math
Start with R6, because it tells you how much everything else is worth. Availability, in this sense, is the share of time a service works: uptime divided by total time. Percentages hide how strict a target is, so convert them to minutes. A 30-day month has 43,200 minutes (30 × 24 × 60). At 99.95%, the allowed downtime is 0.05% of that: 43,200 × 0.0005 = 21.6 minutes a month.
| Target | Unavailable share | Per 30-day month | Per 365-day year |
|---|---|---|---|
| 99.9% | 0.1% | 43.2 minutes | about 8.8 hours |
| 99.95% | 0.05% | 21.6 minutes | about 4.4 hours |
| 99.99% | 0.01% | about 4.3 minutes | about 53 minutes |
Cloud providers publish targets for individual components in a service-level agreement (SLA). Microsoft, for example, says that two or more VMs in an Azure availability set meet a 99.95% SLA.[2] That figure covers one layer. Your purchase path is a chain of layers, and you have to calculate the chain yourself.
Two rules do the work. When components are in series, every one must work, so you multiply their availabilities: A = A1 × A2 × A3. When components are in parallel, any one of them is enough, so you multiply their unavailabilities and subtract the result from 1: A = 1 - (1 - A1) × (1 - A2). The parallel rule assumes the components fail independently of each other. Keep that assumption in mind, because it is where real designs break.
Now work the ticket seller's current chain. The figures below are illustrative classroom numbers, not vendor SLAs. Say each web VM is up 99% of the time, the load balancer 99.99%, and the single database VM 99.9%.
- Web tier, two VMs in parallel: 1 - (0.01 × 0.01) = 1 - 0.0001 = 0.9999, or 99.99%. Two mediocre servers make one excellent tier, as long as they fail independently.
- Whole chain in series: 0.9999 (load balancer) × 0.9999 (web tier) × 0.999 (database) = 0.9988, or about 99.88%.
- Convert to minutes: 100% - 99.88% = 0.12% unavailable, and 43,200 × 0.0012 = about 52 minutes a month. The budget is 21.6 minutes, so the design fails R6.
Now change one input. Replace the single database with a primary and a replica that can take over, and suppose that tier now reaches 99.99%. The chain becomes 0.9999 × 0.9999 × 0.9999 = 0.9997, about 99.97%, or roughly 13 minutes a month (43,200 × 0.0003). Now the design passes. Look at what changed the result. The web servers were already doubled. The fix was the one component that was still single. In a series chain, the weakest link sets the ceiling.
The independence assumption is the trap. Suppose both web VMs sit in the same rack, on the same power feed and behind the same top-of-rack switch. One power failure takes out both, and the 99.99% you calculated was fiction. Microsoft describes its availability sets as groupings that reduce the chance of correlated failures bringing down related VMs at the same time.[2] Most of this lesson is about making failures independent: different devices, different paths, different racks, different buildings.
Redundancy costs money, and it adds parts that can break. Microsoft's architecture guidance describes a tradeoff between more redundancy and reliability on one side and higher cost and complexity on the other.[3] The same guidance notes that not every application needs redundancy across regions to guard against a regional outage.[3] That is why R2 matters. The board accepted manual recovery from a region loss, and that decision saves the cost of running a second full copy of the system.
Worth holding on to: convert the target to minutes first. Multiply availabilities in series. Combine parallel parts by multiplying their unavailabilities, but only when their failures are truly independent. The single component left in the chain usually decides the result.
Redundancy of devices and paths
R1 says no single broken part may stop sales. The objective splits redundancy into two kinds: devices and paths. Device redundancy means a second box, or a second component inside a box, that can do the same job. Examples are dual power supplies in a switch, a pair of firewalls, two routers and two load balancer nodes. Path redundancy means a second route for traffic: two uplinks from an access switch, two wide area network (WAN) circuits, two ISPs, or two fiber routes into the building.
The two kinds fail together in different ways. Devices fail together when they share something underneath them. Think of two routers plugged into the same power distribution unit (PDU), two firewalls running the same buggy software version, or two "redundant" VMs on one physical host. Paths fail together when they share a physical route. Circuits from two different carriers can still run through the same conduit under the same street, and one excavator cuts both. When you buy diverse circuits, ask each carrier for the physical route and the building entrance, and check that they really differ.
Shared fate also hides inside cloud services. Microsoft's load balancer guidance, for example, warns that Azure NAT Gateway lacks availability zone redundancy.[4] NAT (Network Address Translation) Gateway is a service many designs use for outbound traffic. Picture a design that spreads its servers across three zones but sends all outbound traffic through one zonal gateway. It still has a single point of failure in the middle.
Redundant paths also need something that decides which path to use. Two ISP links need routing, often the Border Gateway Protocol (BGP), or the software-defined wide area network (SD-WAN) path selection from Lesson 3. Two uplinks from a switch need one of three things. The first is Spanning Tree Protocol (STP), which blocks one link and unblocks it on failure. The second is link aggregation (next section). The third is layer 3 routing with equal-cost multipath (ECMP), in which a router installs several routes of equal cost to the same destination and spreads flows across all of them, so a failed link simply drops out of the set. Two routers need a way to share the hosts' default gateway address, which the high-availability section covers. A second cable that nothing will ever switch over to is not redundancy.
| Component | Today | Redundant design | Kind |
|---|---|---|---|
| Core switch power | One power supply | Dual power supplies on separate PDUs, fed from separate uninterruptible power supply (UPS) circuits | Device |
| Core switch | One switch | Two switches acting as a stack or a multi-chassis pair | Device |
| Access uplinks | One uplink per access switch | Two uplinks, one to each core switch, bundled into one logical link | Path |
| Router | One router | Two routers sharing a virtual gateway address | Device |
| Internet | One ISP, one building entrance | Two ISPs, separate building entrances and street routes | Path |
Link aggregation: several cables, one logical link
Link aggregation bundles several physical Ethernet links between the same two devices into one logical link. The standard is IEEE 802.1AX, which began as IEEE 802.3ad. The two ends usually negotiate the bundle with the Link Aggregation Control Protocol (LACP). Vendors call the result a port channel, an EtherChannel, a LAG (link aggregation group) or a bond. Spanning tree treats the bundle as a single link, so it does not block the extra members, and every member carries traffic.
The way the bundle shares traffic explains both of its benefits and its most common surprise. The switch does not send packets across the members one at a time in rotation, because packets from one conversation could then arrive out of order. Instead it calculates a hash from header fields such as source and destination Media Access Control (MAC) addresses, IP addresses, and sometimes Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) ports. Every packet of the same flow produces the same hash, so the whole flow lands on the same member link.
| Member | Speed | LACP state | Flows hashed here |
|---|---|---|---|
| Port 1 | 10 Gb/s | Bundled | 310 |
| Port 2 | 10 Gb/s | Bundled | 295 |
| Port 3 | 10 Gb/s | Bundled | 301 (includes the nightly backup flow) |
| Port 4 | 10 Gb/s | Bundled | 288 |
Work through it. Four 10 Gb/s members give 40 Gb/s of aggregate capacity, and about 1,200 phone and web flows spread across all four. The nightly backup, however, is one TCP flow. It is hashed onto port 3 and can never go faster than 10 Gb/s, even when the other three ports are idle. Now change one input: port 3's optic, the pluggable fiber transceiver in the port, fails. LACP takes the member out of the bundle, and its flows are rehashed onto the three survivors. Capacity drops to 30 Gb/s. If peak traffic on this bundle is 34 Gb/s, the bundle is congested after the failure. The rule you will meet again with servers applies here too: size for the loss of one member.
A bundle protects against the failure of a cable, an optic or a port. It does not protect against the failure of the switch at either end, unless the far end is split across two switches that act as one. That arrangement is a switch stack or multi-chassis link aggregation (MLAG; Cisco's version is called vPC, virtual port channel). For the call center, each access switch gets one uplink to each core switch, and the two uplinks form one MLAG bundle. A core switch can fail and the access switch keeps its connection.
Worth holding on to: link aggregation adds bandwidth across many flows and survives the loss of a member link. One flow never goes faster than one member, though, and a bundle that ends on a single switch fails when that switch fails.
High availability: active-active and active-passive
High availability (HA) is the design goal of keeping a service working through component failures. It is usually achieved by pairing or clustering components so that another one takes over automatically. The objective names two operating models. In active-active, every member handles live traffic all the time. In active-passive, one member handles traffic while a standby watches it and takes over only when the active member fails.
The call center's two routers show both models. Hosts are configured with one default gateway address, so the two routers must share it. The Virtual Router Redundancy Protocol (VRRP), version 3 of which is defined in RFC 5798, does this. The routers form a virtual router that owns a virtual IP address. One router, the Master, forwards traffic sent to that address, and an election process moves the forwarding job to another router if the Master becomes unavailable.[5] Each virtual router also has a single well-known MAC address allocated to it.[5] Hosts keep an Address Resolution Protocol (ARP) cache that maps the gateway's IP address to its MAC address. Because the virtual MAC address does not change, those cache entries stay correct after a failover. When the RFC compares VRRP with IPv6's own neighbor discovery, it says a Backup can take over for a failed default router in around three seconds with default parameters.[5] The RFC gives the benefit as a higher availability default path, without configuring dynamic routing on every host.[5]
| Router | Real address | Group 1, virtual IP 192.0.2.1 | Group 2, virtual IP 192.0.2.254 |
|---|---|---|---|
| rtr-a | 192.0.2.2 | Priority 120, Master | Priority 100, Backup |
| rtr-b | 192.0.2.3 | Priority 100, Backup | Priority 120, Master |
Read the table. Each group on its own is active-passive: one Master, one Backup. Half the hosts use 192.0.2.1 as their gateway and half use 192.0.2.254, so both routers forward traffic at the same time. RFC 5798 describes this kind of deployment as providing load splitting when both routers are available, with full redundancy when one fails.[5] Allowing multiple virtual routers on a network for load balancing is one of the protocol's stated goals.[5] The same protocol, configured differently, gives you either model.
The models differ most in capacity planning. Suppose two web nodes each handle 6,000 requests per second and the peak is 9,000.
- Active-active, two nodes: each carries 4,500, or 75% of its capacity. One fails. The survivor now needs 9,000 against a capacity of 6,000, which is 150%. The service falls over at exactly the moment it was meant to survive.
- Active-active, three nodes: each carries 3,000. One fails, and the two survivors carry 4,500 each, which is 75%. The design survives. In general, with N active members, each must stay below (N - 1)/N of its capacity at peak. For two members that is 50%.
- Active-passive pair of 10,000-capacity nodes: the active node runs at 90% and the standby sits idle. On failure the standby runs at 90%. Capacity is fine, but you paid for an idle node, and users wait while the standby detects the failure and takes over.
Active-passive has one hazard of its own. If the standby stops hearing the active node because the heartbeat link failed, not the node, both may decide they are active. This is called split-brain, and it can produce duplicate gateway addresses or two databases accepting writes. Designs guard against it with redundant heartbeat links and a quorum or witness. A witness is a third party, often a small server or a cloud service, that casts a deciding vote, so that only the side holding a majority of votes (the quorum) stays active.
| Question | Active-active | Active-passive |
|---|---|---|
| Normal use of capacity | All members carry traffic | Standby carries none |
| Failover | Survivors absorb the load almost immediately | Detection and takeover delay, typically seconds |
| Capacity rule | Survivors must fit the peak: two members at 50% or less each | Standby must be as large as the active member |
| State | Must be shared or kept out of the members (stateless tiers fit best) | One owner at a time; state synchronized to the standby |
| Typical uses | Web and API tiers, routed links with ECMP, VRRP with two groups | Primary database with a replica, many stateful firewall pairs, single-writer systems |
| Main risk | Overload when a member fails because no headroom was kept | Split-brain, or a standby that fails when it is finally needed |
Worth holding on to: active-active uses all capacity only while nothing is broken. Plan so the survivors can carry the peak. Active-passive buys a clean single owner at the cost of idle hardware and a takeover delay.
Load balancing: virtual IPs, health checks, local and global
A load balancer receives client requests and spreads them across a pool of servers. Clients never see the servers' own addresses. They connect to a virtual IP (VIP), an address that belongs to the service rather than to any one machine. Servers can join, fail and leave behind it without clients noticing. Network+ introduced the device (Atlas Network+ course); here the question is how to design with it. Some load balancers work at layer 4, the transport layer. Azure Load Balancer, for instance, balances TCP and UDP traffic.[4] Others work at layer 7, where they can route on Hypertext Transfer Protocol (HTTP) details such as the URL path.
A load balancer is only as good as its health checks, the regular tests it runs to decide whether each server can take traffic. AWS's Elastic Load Balancing documentation says the load balancer monitors the health of its registered targets and routes traffic only to healthy ones.[6] When a target fails its checks, the load balancer stops routing traffic to it, and it starts again when the target recovers.[6] Microsoft makes the same point and adds that the pool should have at least two back-end endpoints, because a pool of one has nothing to fail over to.[4]
| Setting | Value | Meaning |
|---|---|---|
| Protocol and path | HTTP GET /health | The server must answer this page with status 200 |
| Interval | 5 seconds | How often each server is probed |
| Unhealthy threshold | 3 | Consecutive failures before the server is removed |
| Healthy threshold | 2 | Consecutive successes before it is added back |
Tuning these values is a real tradeoff. Microsoft advises setting the interval and threshold with the balance in mind between how fast you detect failures and how many requests you send to the endpoint.[4] Work it out with the values above. A server that dies just after passing a probe can take up to 3 × 5 = 15 seconds to be removed. With three servers sharing 9,000 requests per second, the dead one receives 3,000 a second for up to 15 seconds: as many as 45,000 failed requests if nothing retries them. Change the settings to a 2-second interval and a threshold of 2, and detection drops to about 4 seconds, or roughly 12,000 failed requests. The cost is more probe traffic, and more risk that a busy but healthy server is removed after one slow answer.
Design the health page itself with care. It should test what the service needs, such as whether the server can reach the database. But if every server's health page depends on one shared component, a fault in that component marks every server unhealthy at once, and the load balancer has nowhere left to send traffic.
The objective separates two scopes. Local load balancing spreads requests across servers within one site or region. Global load balancing decides which site or region a user reaches in the first place, based on health, proximity or policy. Two mechanisms are common. DNS-based steering answers a Domain Name System (DNS) lookup with the address of a healthy site, and its failover speed is limited by how long resolvers cache the answer, the DNS time to live (TTL). Anycast advertises one address from many places, and normal routing delivers each user to the nearest one. Azure's global load balancer, for example, uses a static anycast public IP address that is advertised to multiple regions.[4] Requests to that address go to the closest server instance.[4] Other global services act as a reverse proxy at many edge locations, accepting the user's connection and forwarding it to a healthy region, and some designs use HTTP redirects. Microsoft's guidance for surviving a regional outage is to deploy across multiple regions and distribute traffic with a global service such as Azure Front Door or Traffic Manager.[3]
| Question | Local | Global |
|---|---|---|
| Chooses between | Servers in one site or region | Sites or regions |
| Mechanism | A VIP on a load balancer that proxies or forwards to the pool | Commonly DNS answers or an anycast address; also edge proxies or redirects |
| Reacts to failure | Within the probe interval times the unhealthy threshold | Depends on the mechanism; DNS-based steering waits for cached answers to expire |
| Protects against | Server, rack or zone failure | Region or site failure; also sends users to a nearby region |
A local load balancer can also span availability zones, and how it does so changes the load each server sees. AWS shows this with an example whose diagrams use round robin as the default routing algorithm.[6] The example has two enabled zones, with two targets in zone A and eight targets in zone B.[6] Clients are spread so that each zone's load balancer node receives 50% of the traffic.[6] When cross-zone load balancing is disabled, each node distributes only to the targets in its own zone.[6] Do the arithmetic. Zone A's two targets each get 25% of all traffic, while zone B's eight targets get 6.25% each. Zone A's servers carry four times the load of zone B's. Turn cross-zone balancing on and each node spreads across all ten targets, so each gets about 10%. Uneven placement combined with zone-local balancing produces uneven load.
Choosing a load-balancing method
Once a request reaches the VIP, the load balancer must pick a server. The objective names four methods. Each one is right for a particular traffic pattern and wrong for another.
| Method | How it picks the next server | Fits best when | Goes wrong when |
|---|---|---|---|
| Round robin | Each server in turn, in a fixed rotation | Servers are identical and requests are short and similar in cost | Servers differ in size, or some connections last far longer than others |
| Weighted | In proportion to a weight you assign, such as 1, 1 and 2; applied to round robin or to least connections | Servers differ in capacity, or you want a small share going to a new release | Weights go stale after a server is resized or a new release is promoted |
| Least connections | The server with the fewest active connections right now | Connections are long-lived or vary widely in duration | One connection can be far heavier than another; a newly added server gets flooded |
| Load-based | A measured load signal, such as CPU use, memory or response time, reported by an agent or probe | Request cost varies widely, so connection counts mislead | The measurement lags, so every balancer piles onto the same quiet server at once |
Here is how the choice looks in a real configuration. The example uses the syntax of NGINX, an open-source web server that is widely used as a load balancer, with documentation addresses. NGINX uses weighted round robin unless you name another method.
# Example only: NGINX upstream pool for the seat API
upstream seat_api {
least_conn; # remove this line to use (weighted) round robin
server 192.0.2.11 weight=1 max_fails=3 fail_timeout=10s;
server 192.0.2.12 weight=1 max_fails=3 fail_timeout=10s;
server 192.0.2.13 weight=2 max_fails=3 fail_timeout=10s;
}
The weight=2 server receives about twice the share of each weight=1 server. The max_fails and fail_timeout settings are a passive health check: after three failed attempts within 10 seconds, NGINX treats the server as unavailable for 10 seconds.
Work the first case. The seat application programming interface (API) has three servers: api-1 and api-2 with 8 virtual CPUs (vCPUs, the processor cores a VM is given) each, and api-3 with 16. Requests are short and roughly equal in cost, and the pool receives 1,200 per second.
- Round robin sends 400 to each server. Per vCPU, that is 400 / 8 = 50 on api-1 and api-2 but 400 / 16 = 25 on api-3. The small servers run twice as hot while half of api-3 sits idle.
- Weighted round robin with weights 1, 1 and 2 splits the traffic 25%, 25% and 50%: 300, 300 and 600 requests. Per vCPU, that is 37.5 on every server. The load matches the capacity.
Now flip one input. Seat holds move to WebSocket connections, which stay open so the server can push updates, for up to 10 minutes while a fan picks seats. At 10:04 a snapshot shows api-1 with 2,400 open connections, api-2 with 2,350 and api-3 with 1,100, because api-3 rebooted at 10:00. Round robin ignores those counts and keeps sending new sessions to api-1 when its turn comes. Least connections sends new sessions to the server with the fewest open connections. Because the servers also differ in size, combine the two methods: weighted least connections compares connections divided by weight. That gives 2,400 / 1, 2,350 / 1 and 1,100 / 2 = 550, so api-3 receives new sessions until the ratios even out.
Least connections has a known failure mode. A newly added or rebooted server has zero connections, so it can receive a flood before its caches warm up. Many products offer a slow-start setting that ramps its share up gradually. Load-based methods fail in a different way. If several load balancers read the same slightly old central processing unit (CPU) figures, they all choose the same quiet server, overload it, then all move away together. That oscillation is called herding.
One related feature is session persistence, sometimes called sticky sessions. It keeps a user on the same server, for example by hashing the client IP address or setting a cookie. It helps applications that store session state on the server, but it fights against even distribution. It also means a server failure loses those users' sessions, which is a good reason to keep session state out of the web tier altogether.
Worth holding on to: round robin suits identical servers and short requests. Use weights when capacities differ, least connections when sessions last long or vary, and load-based methods when request cost varies more than connection counts show.
Fault domains and update domains: unplanned versus planned
R4 is about planned restarts. The independence problem from the availability math is about unplanned failures. The objective names a grouping for each: fault domains and update domains. These are not vendor-neutral standards. Azure's documentation defines them most precisely, so this section uses its definitions; other platforms offer similar groupings under other names.
A fault domain is a group of VMs that share a common power source and network switch.[2] In practice, that means one rack. If the rack loses power, everything in that fault domain goes down together. An update domain is a group of VMs, and the physical hardware under them, that can be restarted at the same time.[2] It exists for planned maintenance. Each Azure availability set can have up to 3 fault domains and 20 update domains.[2] The platform assigns every VM in the set both a fault domain and an update domain.
During planned maintenance, the restart order may not be sequential, but only one update domain is restarted at a time. A restarted update domain gets 30 minutes to recover before maintenance moves on to another one.[2] When there are more VMs than update domains, placement wraps around. With five update domains, the sixth VM joins the first VM's update domain, the seventh joins the second's, and so on.[2]
| VM | Fault domain (rack) | Update domain (restart group) |
|---|---|---|
| web-1 | FD1 | UD1 |
| web-2 | FD2 | UD2 |
| web-3 | FD3 | UD3 |
| web-4 | FD1 | UD4 |
| web-5 | FD2 | UD5 |
| web-6 | FD3 | UD1 |
| web-7 | FD1 | UD2 |
Read the table twice, once for each kind of event.
- Unplanned: rack FD1 loses power. web-1, web-4 and web-7 go down, which is 3 of 7, or 43% of capacity. The remaining four servers must carry the peak. Microsoft describes the same behavior for scale sets: when a hardware failure hits one fault domain, the load balancer in front keeps routing traffic to instances in the other fault domains.[3]
- Planned: maintenance restarts UD1. web-1 and web-6 restart, which is 2 of 7. Then UD2 restarts web-2 and web-7, and so on, one group at a time.
Change one input: the region offers only two fault domains. Microsoft notes that the number of managed-disk fault domains varies by region, either two or three.[2] Six VMs across two fault domains means a rack failure removes three of six, or half the tier. The survivors would need to run at 50% or less at peak, the same rule as a two-member active-active pair.
Know what these groupings do not do. Microsoft states that putting VMs in an availability set does not protect against operating system or application failures. It does limit the impact of hardware failures, network outages and power interruptions.[2] Availability sets also remain exposed to shared infrastructure failures, such as a network outage across a whole data center, which can affect several fault domains at once.[2] A bad patch deployed to every VM takes them all down whatever their fault domains. And no grouping helps a tier with only one VM: a single machine restarts during maintenance no matter which update domain it is in.
Other providers have their own versions. Microsoft calls the fault-domain spread of a scale set the closest Azure equivalent to an AWS spread placement group.[3] Microsoft also now recommends Virtual Machine Scale Sets with flexible orchestration, rather than availability sets, for high availability with the widest range of features.[2] Flexible scale sets spread instances across fault domains and can also span zones.
Regions and availability zones
Fault domains separate racks. R2 asks for more: survive the loss of a whole data center. That is the job of an availability zone. Microsoft defines one as a logical grouping of one or more physically separate datacenters within a region, each zone with independent power, cooling and networking.[3] Zones are typically several kilometers apart and usually within 100 kilometers of each other. That keeps latency between them low while making it less likely that one local outage or storm hits more than one zone.[3] A region is a larger geographic area that contains a provider's data centers, and often several zones. Copies in different regions are farther apart than copies in different zones, so the latency between them is higher, as the table below shows.
| Scope | Failure it survives | How requests are routed | Latency between copies |
|---|---|---|---|
| Fault domains (scale set or availability set) | A rack | Load balancer | Very low |
| Availability zones | A data center or zone | Zone-redundant load balancer | Low |
| Multiple regions | A region | Azure Front Door or Traffic Manager | Medium to high |
The table follows Microsoft's own summary. Latency is the column that decides most designs. Between zones, latency is low enough that a database can usually replicate synchronously. A write is confirmed only once both zones have it, so losing a zone loses no confirmed data. Between regions, replication is usually asynchronous, so the most recent writes can be lost when a region fails. That gap is the recovery point objective (RPO), which Lesson 19 covers along with recovery time.
Cloud load balancers are built around zones. AWS creates a load balancer node in each zone you enable. It recommends enabling multiple zones for every load balancer, and an Application Load Balancer requires at least two.[6] If one zone becomes impaired, AWS's zonal shift feature lets you move a load balancer's traffic away from it in a single action.[6] In Azure, the front-end IP address determines whether the load balancer is zone redundant.[4] A zone-redundant front end is therefore part of meeting a zone requirement.
Regions add more choices. Azure pairs some regions. A region pair gives a recovery order, in which one region of each pair is prioritized during an outage across the whole geography, and Azure staggers planned updates across the two regions.[3] You are not limited to the pair. Microsoft advises choosing a secondary region based on service availability, data residency, latency and disaster recovery objectives.[3] The cost is real: a fully redundant multi-region design needs a full copy of the solution deployed in each region.[3]
For the ticket seller, R2 points to zones, not regions. Spreading the web tier, the load balancer front end and the database replica across three zones survives a data center loss automatically. The board's acceptance of manual region recovery means it does not pay for a second full copy.
Worth holding on to: fault domains survive a rack, availability zones survive a data center, and regions survive a region. Each step up adds latency and cost, so pick the smallest scope that covers the failure the business named.
Autoscaling: capacity that follows demand
Autoscaling adds and removes instances automatically so that capacity follows demand. AWS calls the managed set an Amazon EC2 Auto Scaling group; Azure calls it a Virtual Machine Scale Set. Autoscaling answers R3. It also does a second job that people forget. An AWS Auto Scaling group with no scaling policies still keeps its desired number of instances, and when it finds an unhealthy instance, it replaces it with a new one.[7] That replacement is self-healing, which is an availability feature, not just elasticity.
| Approach | Trigger | Fits |
|---|---|---|
| Fixed size | None; the group keeps its desired count and replaces failures | Steady load that only needs self-healing |
| Manual | An operator changes the desired count | One-off changes |
| Scheduled | Date and time | Peaks you know in advance |
| Dynamic | A metric crossing a target or alarm | Demand that changes when you cannot predict it |
| Predictive | A forecast built from past load | Recurring daily or weekly patterns |
Scheduled scaling performs scaling actions automatically as a function of date and time.[7] Dynamic scaling changes the group's capacity as traffic changes.[8] AWS also lets you combine predictive scaling, which acts in advance, with dynamic scaling, which reacts.[7]
Dynamic scaling comes in three policy types. Target tracking works like a thermostat: you choose a target value for a metric, and the group adds or removes capacity to hold it. AWS recommends it, using a metric that falls in proportion as capacity grows. If you double the group's size, the metric should fall by half.[8] Average CPU use fits that rule. The metric is averaged across the group: with one instance at 60% CPU and another at 40%, the group's figure is 50%.[8] Step scaling adds or removes different amounts depending on how far the alarm threshold is breached. Simple scaling makes one fixed adjustment, then waits for a cooldown period before the next scaling activity.[8] When several policies fire at once, AWS gives precedence to the one that produces the largest capacity.[8] In other words, it errs toward too many instances rather than too few.
Work a target tracking example. The group has 4 instances averaging 80% CPU, and the target is 50%.
- Total work in "instance-percent": 4 × 80 = 320.
- Instances needed to hold 50% each: 320 / 50 = 6.4.
- Round up to 7 instances. At 7, the average falls to about 320 / 7 = 46%.
Now change one input: timing. Say a new instance takes about four minutes to boot and pass its health checks (an illustrative figure), while the on-sale surge goes from 400 to 9,000 requests per second in one minute. Dynamic scaling reacts only after the metric rises, so the existing instances take the whole surge for several minutes. That is too late. For R3's announced on-sales, scheduled scaling should raise capacity before 10:00, with target tracking left in place for surprise announcements. Predictive scaling suits the weekly pattern of ordinary traffic.
Two bounds finish the design. The minimum size should hold your failure plan, for example 2 instances in each of 3 zones, a minimum of 6, so that losing a zone still leaves 4 running while replacements boot. The maximum size caps cost and protects whatever cannot scale behind the tier. Forty web instances can open more database connections than a single-writer database will accept.
Content delivery networks: availability at the edge
R5 is about distance. A content delivery network (CDN) is a set of caching servers in many edge locations that answer requests close to the user. Google describes its Cloud CDN as serving content closer to users, which speeds up websites and applications.[9] The servers that hold the original content are called origin servers.[9]
The mechanism works like this. A request arrives at the edge location nearest the user. If the object is in that edge cache, which is a cache hit, the edge serves it directly. That shortens the round-trip time and saves the origin server from processing the request.[9] If the object is not in the cache, which is a cache miss, the edge fetches it from the origin and stores it if the response is cacheable. Caching is reactive: an object is stored in a particular cache only after a request passes through that cache.[9] One edge location's copy does not automatically appear at the others.
Work the ticket seller's numbers. At peak, 9,000 requests per second arrive, and 70% of them (6,300) are static: seat maps, images and scripts. The other 2,700 are dynamic purchase and seat-hold requests.
- At a 95% cache hit ratio, static misses are 6,300 × 0.05 = 315 per second.
- Origin load is 315 + 2,700 = 3,015 requests per second, about a third of the peak. The CDN has taken two thirds of the surge off the web tier.
Now flip one input. A developer adds a unique session string to every seat-map URL. Each URL is now different, so the hit ratio falls to 40%. Static misses become 6,300 × 0.6 = 3,780, and origin load becomes 3,780 + 2,700 = 6,480 per second. The same CDN now takes only about 28% of the peak off the origin (2,520 of 9,000 requests per second), instead of two thirds. Cache key design matters as much as buying the service.
Be clear about the limits. The 2,700 dynamic requests reach the origin whatever the CDN does. If the origin is down, fans can still load the seat map but cannot buy a seat. A CDN improves performance for distant users and absorbs static load. It does not make the purchase path highly available; zones, load balancing and redundancy do that.
Back to the ticket sale: the recommendation
Put the pieces together. Each row ties a requirement to the technology that meets it and the reason it was chosen over its neighbor.
| Requirement | Recommendation | Why this and not the alternative |
|---|---|---|
| R1 single points of failure | Two routers with two VRRP groups; two core switches with MLAG uplinks; two ISPs on diverse routes; paired firewalls | Device and path redundancy together; MLAG rather than a plain bundle so a switch can fail |
| R2 data center loss | Web tier, zone-redundant load balancer front end and database replica spread across three availability zones | Zones survive a data center at low latency; a second region would double cost for a risk the board accepted |
| R3 peaks | Scheduled scaling before announced on-sales; target tracking at 50% CPU for surprises; minimum 6, maximum 30 | Dynamic scaling alone reacts too late to a one-minute surge |
| R4 maintenance | Scale set or availability set spread across fault and update domains; no tier with a single VM | Update domains limit planned restarts; fault domains limit rack failures |
| R5 distant fans | CDN for seat maps, images and scripts, with cache keys that leave out session strings | A CDN brings content closer; global load balancing would only pick a region |
| Load-balancing method | Round robin for the stateless page tier; weighted least connections for the WebSocket seat-hold API | Short equal requests versus long, uneven sessions on mixed server sizes |
| R6 99.95% | Recompute the chain: about 99.97% with the database pair (illustrative figures) | Fits within the 21.6-minute monthly budget |
Now run the scenario a second time with one changed input. The company's insurer now requires that online sales survive a full regional outage, with no more than 15 minutes of disruption and no manual steps. Zones no longer cover the risk. The design now needs a full copy of the solution in a second region, chosen for data residency and latency, with global load balancing and health checks in front of both regions. The database tier decides the operating model. With a single-writer database replicating asynchronously to the second region, the regions run active-passive: the second region takes writes only after a failover, and recent writes may be lost. Running both regions active-active would need a data design that accepts writes in both places, which is a much bigger change. Compute and licensing costs roughly double. One changed sentence in the requirements changed the architecture.
Exam cues for availability scenarios
| Words in the question stem | Points to | Commonly confused with |
|---|---|---|
| One address for clients that survives a server or router failure | Virtual IP, on a load balancer or a VRRP group | A DNS name with several records |
| Spread requests across servers in one data center or region | Local load balancing | Global load balancing |
| Send users to the nearest or healthy region; anycast; DNS-based steering | Global load balancing | CDN, which caches content rather than choosing a region |
| Identical servers, short requests, simplest method | Round robin | Least connections |
| Servers of different sizes; send 5% to a new release | Weighted | Load-based |
| Long-lived sessions, WebSockets, virtual desktops, durations vary | Least connections | Round robin |
| Route by measured CPU use or response time | Load-based | Least connections |
| Both units carry traffic; use all capacity | Active-active | Link aggregation |
| Standby takes over only on failure; single writer | Active-passive | Active-active |
| Several cables between two switches act as one link; more bandwidth | Link aggregation with LACP | An active-active device pair |
| Dual power supplies, paired firewalls, two routers | Device redundancy | Path redundancy |
| Two ISPs, diverse conduits, separate building entrances | Path redundancy | Device redundancy |
| Rack, power source or top-of-rack switch failure | Fault domains | Update domains |
| Planned maintenance, patching, one restart group at a time | Update domains | Fault domains |
| Loss of one data center; low latency; synchronous replication | Availability zones | Multiple regions |
| Regional outage; data residency in another geography | Multiple regions with global load balancing | Availability zones |
| Spikes at unpredictable times; pay only for what is used | Dynamic autoscaling | Scheduled autoscaling |
| Event at a known time; capacity in place beforehand | Scheduled or predictive autoscaling | Dynamic autoscaling |
| Distant users, slow static content, offload the origin | CDN | Global load balancing |
Common misconceptions
- "Two of everything means high availability." Two routers on one PDU, or two circuits in one conduit, fail together. Parallel availability math holds only when failures are independent, which is why fault domains, zones and diverse routes exist.
- "Active-active doubles capacity, so losing a unit costs nothing." Two units at 65% each become one unit at 130% when one fails. Active-active members must keep enough headroom that the survivors can carry the peak.
- "Link aggregation makes a single transfer faster." Each flow is hashed onto one member link, so one backup stream over four 10 Gb/s links still tops out at 10 Gb/s. Aggregation adds bandwidth across many flows.
- "A CDN makes the application highly available." A CDN caches static content near users. Dynamic requests and cache misses still need a working origin, so checkout stops when the origin does.
- "Fault domains and update domains are the same thing." A fault domain groups hardware that fails together without warning. An update domain groups machines the platform restarts together for planned maintenance. A VM belongs to one of each.
- "Autoscaling absorbs any spike." Dynamic scaling reacts after a metric rises, and new instances take time to boot. Known peaks need scheduled or predictive scaling, and the tier behind autoscaled servers may not scale at all.
Where this leaves us
- 99.95% of a 30-day month allows 21.6 minutes of downtime; 99.9% allows 43.2 minutes and 99.99% about 4.3.
- Availabilities in series multiply. Parallel components combine as 1 minus the product of their unavailabilities, and only when their failures are independent.
- With N active-active members, each must run below (N - 1)/N of its capacity at peak to survive one failure. For two members that is 50%.
- VRRP gives hosts one virtual gateway IP and MAC address owned by an elected Master; a Backup takes over in around three seconds with default timers, and two VRRP groups split load across both routers.
- Link aggregation with LACP hashes each flow onto one member link. It survives a link failure, but it survives a switch failure only when the bundle is split across a stack or MLAG pair.
- Round robin suits identical servers and short requests, weighted suits unequal capacity, least connections suits long or uneven sessions, and load-based methods follow measured CPU use or response time.
- A fault domain shares a power source and network switch (unplanned failure). An update domain is restarted together, one at a time (planned maintenance). An Azure availability set allows up to 3 fault domains and 20 update domains.
- Availability zones are separate data centers with independent power, cooling and networking, usually within 100 km of each other. Surviving a region loss needs a full copy in another region plus global load balancing.
- Autoscaling also replaces unhealthy instances, and scheduled scaling prepares for known peaks. CDN caching is reactive, and dynamic requests and cache misses still reach the origin.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Microsoft Learn. (n.d.). Availability sets overview. learn.microsoft.com
- Microsoft Learn. (n.d.). Regions and zones on Azure. learn.microsoft.com
- Microsoft Learn. (n.d.). Azure Load Balancer. learn.microsoft.com
- IETF (RFC Editor). (2010). Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6. rfc-editor.org
- Amazon Web Services. (n.d.). How Elastic Load Balancing works. docs.aws.amazon.com
- Amazon Web Services. (n.d.). Choose your scaling method - Amazon EC2 Auto Scaling. docs.aws.amazon.com
- Amazon Web Services. (n.d.). Dynamic scaling for Amazon EC2 Auto Scaling. docs.aws.amazon.com
- Google Cloud. (n.d.). Cloud CDN overview. docs.cloud.google.com
- Key terms
- Virtual IP (VIP)
- An IP address that belongs to a service rather than to one machine, held by a load balancer or a redundancy group, so that servers or routers behind it can fail without clients changing the address they use.
- Active-active
- A high-availability model in which every member handles live traffic at the same time; the survivors must have enough spare capacity to carry the full load when one member fails.
- Active-passive
- A high-availability model in which one member handles traffic while a standby monitors it and takes over only when the active member fails, at the cost of idle capacity and a takeover delay.
- Link aggregation
- Bundling several physical Ethernet links between two devices into one logical link, usually negotiated with LACP; flows are hashed across the members, so one flow uses only one link.
- Least connections
- A load-balancing method that sends each new connection to the server with the fewest active connections, suited to long-lived or uneven sessions.
- Fault domain
- A group of machines that share a common power source and network switch, such as one rack, and can therefore fail together without warning.
- Update domain
- A group of machines and their underlying hardware that a cloud platform restarts together during planned maintenance, one group at a time.
- Availability zone
- One or more physically separate data centers within a cloud region, with independent power, cooling and networking, close enough to the other zones for low-latency replication.
- Autoscaling
- Automatically adding or removing compute instances on a schedule, a forecast or a measured metric, while also replacing instances that fail health checks.
- Content delivery network (CDN)
- A network of edge caching servers that answers requests for cacheable content close to users and sends cache misses and dynamic requests on to the origin servers.
Planning Physical Campus Installations
- Turn business requirements into power recommendations by working out load in watts, volt-amperes and amps, then choosing the PDU, UPS and generator arrangement that meets them.
- Match blackouts, brownouts, surges and spikes to the protection that actually stops each one, and explain why a generator or surge suppressor alone falls short.
- Recommend cooling and fire suppression for network rooms from heat load in BTUs per hour, inlet temperature, humidity and the risk the business will accept.
- Select layered physical access controls for a campus, including locks, proximity and NFC readers, biometrics, door sensors and video surveillance.
A one-page memo from Kestrel Freight
Kestrel Freight's facilities memo is dated 3 March. It runs to one page and lists seven requirements for a new three-building campus, and not one of them mentions a volt, a sprinkler head or a card reader. Kestrel is a fictional company and the memo is a teaching example, but real memos look like this. The business says what it needs in its own words, and the architect turns each line into equipment, layouts and procedures. The campus has three buildings. Building A is an office block holding the main server room. Building B is a 24-hour warehouse with two network closets. Building C is a small vehicle depot.
KESTREL FREIGHT New campus: physical requirements (fictional example)
R1 Warehouse scanning and the order system run 24x7. A utility failure
must not stop them.
R2 Utility history at this site, last 12 months: 9 brownouts and
2 blackouts (longest 3 h 10 min).
R3 Summer thunderstorms are frequent. Two neighbours lost equipment
to lightning last year.
R4 The server room holds payroll and customer records. The insurer wants
the lowest risk of accidental water damage the building code allows.
R5 Warehouse network closets sit in unconditioned space that reaches
35 C in July.
R6 About 300 staff and 40 contractors on site each day. HR wants staff
to use their phones as badges.
R7 Security must show who entered the server room, and when, for the
last 90 days.
Exam objectives: 1.5 Given a scenario, evaluate business requirements to make recommendations for physical campus installations. The objective groups its bullets under power considerations, power disruption, environmental factors, fire suppression and physical access controls.[1]
None of the technology in this objective is new. The exam tests judgement: which item meets which requirement, and which plausible-looking item does not. The table shows where each memo line leads. The rest of the lesson follows the memo in order and works the arithmetic.
| Memo line | Objective area | Where it leads |
|---|---|---|
| R1: 24x7 operation | Power considerations | A UPS that bridges to a standby generator; A/B power to critical racks |
| R2: brownouts and blackouts | Power disruption | A UPS design that regulates voltage; a generator fuel plan |
| R3: lightning | Power disruption (surge, spike) | Layered surge protection; all-dielectric fiber, not copper, between buildings |
| R4: water damage | Fire suppression | Pre-action sprinklers, possibly with a clean agent system as well |
| R5: hot closets | Environmental factors | Heat load in BTUs per hour and real cooling |
| R6: phones as badges | Physical access controls | Readers that accept NFC mobile credentials and smart cards |
| R7: 90 days of evidence | Physical access controls | Door sensors, access logs and video retention |
Volts, amps and watts: the three numbers on every power plan
Every power recommendation uses three electrical quantities, and the exam names all three.
- Voltage (volts, V) is electrical pressure, the push behind the current. Outlets in North America supply 120 V, and racks there are often fed at 208 V from a three-phase supply. Most of Europe uses 230 V. Each power supply's label lists the input range it accepts.
- Amperage (amps, A) is the size of the electric current that flows. Breakers, cords, plugs and PDUs are rated in amps because current is what heats a conductor. When a breaker trips, too many amps tripped it.
- Wattage (watts, W) is the electric power the equipment actually consumes. The electricity bill charges for watts, the UPS battery has to supply them, and almost all of them end up as heat in the room.
The three are linked by P = V × I: power in watts equals volts times amps. Alternating current (AC), the kind that comes out of the wall, adds one complication. Volts times amps gives apparent power, measured in volt-amperes (VA). Large ratings use kilovolt-amperes (kVA), where 1 kVA is 1,000 VA. Real power in watts is apparent power multiplied by the power factor, a number between 0 and 1 that says how much of the current does useful work. Modern server and switch power supplies with power factor correction run close to 1, so watts and VA are close but not identical. UPS units are rated in both, and a design has to fit within both ratings.
A short example shows why voltage matters to an architect. Suppose a switch draws 2.5 A at 120 V. Its apparent power is 120 × 2.5 = 300 VA, and at a power factor of 0.95 it uses 285 W. On a 230 V supply the same switch still needs 300 VA, so it draws only 300 / 230 = 1.3 A. A higher supply voltage means less current for the same work. You can then put more equipment on each circuit, or use thinner cable for the same load. That is why dense racks are fed at 208 V or 230 V rather than 120 V.
The core of it: check amps against breaker and PDU ratings, check the UPS against both its VA and its watt rating, and size cooling from watts. Each rating limits something different.
Power distribution units and the A/B feed trap
A power distribution unit (PDU) is the strip in a rack that takes one large circuit and splits it into many outlets. On a campus where closets are a long walk from the network operations center (NOC), the grade of PDU matters.
| PDU type | What it adds | Where it earns its cost |
|---|---|---|
| Basic | Outlets only | Lab benches, low-risk racks |
| Metered | A local display of total current | Checking load during installation |
| Monitored | Reports total load, and often per-outlet load, over the network, usually with Simple Network Management Protocol (SNMP) | Racks the NOC must watch and trend |
| Switched | Remote on, off and power-cycle control of individual outlets | Remote closets, where power-cycling a hung device saves a trip across campus |
A network-managed PDU is a management device with an Internet Protocol (IP) address. It belongs on the management network and must be hardened like any other appliance, as Lesson 17 explains.
Critical racks use two PDUs, called A and B. They are fed from separate circuits, ideally behind separate UPS units, and every device with two power supplies plugs one into each. The catch is that A/B works only if either PDU can carry the whole rack by itself. The check below is worked twice.
Assumptions for this fictional example: Rack S1 in Kestrel's server room has two PDUs, each on a 208 V, 30 A single-phase circuit. North American practice, taken from the US National Electrical Code, keeps a continuous load at or below 80 percent of the breaker rating, which here is 24 A. Local code and a licensed electrician have the final word. To keep the arithmetic readable, take the power factor as 1, so amps = watts / volts. A real power factor below 1 would raise the current slightly.
Run 1: 4,800 W of dual-corded equipment.
- In normal operation the load splits roughly evenly, so each PDU carries 2,400 W. The current per PDU is 2,400 / 208 = 11.5 A, or 38 percent of the 30 A breaker.
- Now feed A fails. Every power supply on B picks up its partner's share, so B carries 4,800 W. The current is 4,800 / 208 = 23.1 A.
- 23.1 A is under the 24 A continuous limit and well under the 30 A breaker. The rack survives a feed failure, though with little headroom.
Run 2: the same rack after six more 450 W servers arrive, 7,500 W in total.
- In normal operation each PDU carries 3,750 W: 3,750 / 208 = 18.0 A, or 60 percent of the breaker. The monitoring dashboard shows both PDUs comfortably green.
- Feed A fails. B now carries 7,500 W: 7,500 / 208 = 36.1 A.
- 36.1 A is about 120 percent of B's 30 A breaker and far beyond the 24 A continuous limit. The breaker exists to trip on a sustained overload, and when it does, a rack built to survive a feed failure goes completely dark because of one.
The rule that comes out of the two runs: in an A/B design, each side must stay under half of its continuous limit in normal operation. With an 80 percent continuous limit, that is 40 percent of the breaker rating per side. Run 1 sat at 38 percent and passed. Run 2 sat at 60 percent and failed, even though 60 percent looks healthy on its own. The same check applies to the two UPS units behind the PDUs, and Lesson 5 makes the same point about active-active pairs: the survivor must be able to carry the whole peak.
The core of it: redundancy is a claim about capacity. Two PDUs at 60 percent each are not redundant. Each is an overloaded PDU waiting for the other one to fail.
Utility power, the uninterruptible power supply and the standby generator
Requirement R1 says a utility failure must not stop the warehouse systems. R2 says this site's utility fails often enough to matter. Those two lines decide the whole power chain.
Utility power is the supply from the electricity company. It is your largest and cheapest source, and the only one you do not control. Its quality varies from site to site, so the first design step is to get the outage and power-quality history from the utility and the facilities team, as Kestrel did in R2. Where even short outages are unacceptable, some organizations pay for a second utility feed from a different substation. That helps only if the two feeds do not share an upstream failure.
An uninterruptible power supply (UPS) covers the gap when utility power fails. The glossary of the National Institute of Standards and Technology (NIST) defines it as "a device with an internal battery that allows connected devices to run for at least a short time when the primary power source is lost."[2] The words "short time" are the important part. Eaton's UPS guide measures the job in minutes: during a utility failure, a UPS gives you the few minutes needed to shut servers down gracefully.[3]
A standby generator, usually diesel, covers long outages.[3] Eaton notes that a generator can keep IT systems running for anywhere from ten minutes to several days or more, depending on its fuel.[3] But a generator does not start instantly. Eaton gives the usual gap as about 10 seconds between losing utility power and the generator coming online.[3] It adds that generators give no protection from spikes or other electrical disturbances.[3] Ten seconds without power is enough for every switch in the building to reboot.
So the UPS and the generator are partners, not alternatives. The timeline below follows a blackout at Kestrel with both in place. The automatic transfer switch (ATS) is the device that moves the building's load from the utility to the generator and back again.
| Time | Event | What carries the load |
|---|---|---|
| 0 s | Utility power fails | UPS batteries, immediately |
| About 10 s | Generator reaches speed; ATS transfers the building to it | Generator, through the UPS, which recharges its batteries |
| Hours later | Utility returns and stays stable; ATS transfers back; generator cools down and stops | Utility |
| Generator fails to start | UPS runtime counts down; systems shut down in order | UPS batteries, for the minutes a clean shutdown needs |
UPS units differ in how they handle normal power, and that difference decides how they cope with Kestrel's nine brownouts. Inside a UPS, the battery stores direct current (DC), and an inverter turns DC back into the AC that equipment expects.
| Design | Normal operation | During a brownout | Trade-off |
|---|---|---|---|
| Standby | Load runs straight from utility power; the UPS switches to battery when it detects a problem | Goes to battery for every dip, which drains and wears the battery | Cheapest; output on battery may not be a true sine wave |
| Line-interactive | Load runs from utility power through a voltage regulator | Boosts low voltage without touching the battery | Good for small server and network rooms on fairly clean power |
| Double-conversion (online) | Converts incoming AC to DC and back to AC all the time, so the load always runs from the inverter | No transfer at all; the output stays steady | Most protection, but lower efficiency |
Each row comes from Eaton's descriptions. A standby UPS lets equipment run from utility power until it detects a problem.[3] It is typically the cheapest type.[3] On battery it may produce a stepped or modified sine wave instead of a true sine wave, which Eaton warns that larger servers and networking equipment may not tolerate.[3] A line-interactive UPS regulates the incoming voltage up or down before passing it to the equipment.[3] Eaton recommends line-interactive designs for smaller server, storage and network rooms in buildings with fairly trouble-free utility power.[3] Single-conversion designs, which include standby and line-interactive, are more efficient than double-conversion but protect less.[3] Eaton's selection guide also lists multi-mode units as a third choice alongside single-conversion and double-conversion designs.[3]
For Kestrel this gives two recommendations. The server room gets double-conversion, because R1 is strict and the room will spend part of each outage on generator power, which a double-conversion UPS cleans up like any other input. The warehouse closets get line-interactive units at minimum, because R2's brownouts would drain a standby unit's battery again and again.
Sizing the server-room UPS: a worked example. The server room's measured load is 7,000 W, at a power factor of 0.9. The candidate units below are fictional.
Model Rating Runtime at 7.0 kW
UPS-6K 6 kVA / 5.4 kW (overloaded)
UPS-10K 10 kVA / 9.0 kW 11 min
UPS-15K 15 kVA / 13.5 kW 22 min
- Convert watts to VA: 7,000 / 0.9 = 7,778 VA.
- Add room for growth. Eaton advises a multiple higher than 1.2 where rapid near- or medium-term growth is expected, so this example uses 1.2 as a baseline for ordinary growth.[3] So 7,000 × 1.2 = 8,400 W and 7,778 × 1.2 = 9,333 VA.
- Check both ratings. UPS-10K offers 9.0 kW, which is at least 8,400 W, and 10 kVA, which is at least 9,333 VA. It fits. UPS-6K fails both checks.
- Check runtime. The table's 11 minutes is measured at today's 7.0 kW. At the 8.4 kW growth load the runtime will be shorter, so read the vendor's runtime chart at 8.4 kW. Even a few minutes covers the 10-second generator start many times over, and still leaves time for an orderly shutdown if the generator never starts.
- Size the generator. Eaton advises a generator of 1.5 to 3.0 times the UPS's kVA rating.[3] For a 10 kVA UPS that is 15 to 30 kVA, and that is the UPS alone. The generator must also carry the room's cooling, because without cooling the room overheats long before the fuel runs out.
Now change one input. Suppose Kestrel plans a new automated sorting line next year and the business expects rapid growth, so you use a multiple of 1.5 instead of 1.2. The load becomes 10,500 W and 11,667 VA. UPS-10K now fails on both ratings, the choice moves to UPS-15K, and the generator range for the UPS alone rises to 22.5 to 45 kVA. One sentence in a growth plan changed two purchases.
Fuel is the last power decision. Kestrel's longest recorded blackout was 3 hours 10 minutes, but records describe the past. Eaton warns that in a regional disaster, demand for fuel during long outages can quickly outstrip the local supply.[3] A sound recommendation stores enough fuel on site for well beyond the longest recorded outage, adds a priority delivery contract, and tests the generator under real load on a schedule, because a generator that has never carried the building is an assumption, not a plan.
Blackout, brownout, surge and spike
The objective names four kinds of power disruption. They differ in which way the voltage moves and for how long, and each one calls for a different protection.
| Disruption | What the voltage does | Typical causes | What protects against it |
|---|---|---|---|
| Blackout | Falls to zero, for seconds to days | Storm damage, utility faults, a tripped main breaker | UPS for the first minutes; generator for anything longer |
| Brownout | Stays below normal for a sustained period | An overloaded grid, or the utility deliberately lowering voltage | A line-interactive or double-conversion UPS that regulates voltage |
| Surge | Rises above normal for a measurable time, from a fraction of a second to seconds | Large motors or compressors switching off; utility switching | Power conditioning in a UPS; surge protective devices |
| Spike | Jumps very high for an extremely short time, microseconds | Lightning nearby; switching on the utility network | Surge protective devices at the service entrance and at the equipment |
A brownout is the one people underestimate. A long, low voltage starves power supplies, and some equipment reboots or misbehaves without ever losing power completely. A power surge and a voltage spike are the pair the exam likes to confuse. Both are overvoltage. Think of a surge as a hill and a spike as a needle. The surge lasts long enough to be seen on a voltage graph; the spike is over almost before it starts, but it can reach very high voltages.
In the working world, power-quality engineers use different words for the same events: a sag for a short dip, a swell for a short rise, a transient for a spike, and an interruption for a blackout. Vendor literature blurs even the exam's terms. Eaton's guide uses the name "surge suppressors" for devices that help with power spikes. It is explicit about their limit, though: they help with spikes "but not with issues like power loss, under-voltage and brownout conditions."[3] A strip of surge suppressors would have done nothing for Kestrel's nine brownouts.
Requirement R3, frequent lightning, leads to two layers. First, surge protective devices at the building's electrical service entrance, then point-of-use protection at the racks, with the UPS's own conditioning behind them. Second, a network decision: connect the three buildings with all-dielectric fiber, fiber-optic cable that contains no metal at all, with no metal armour and no metallic strength member. Glass does not conduct electricity, so a strike near Building C has no conductive path along that cable into the switch in Building A. Fiber cable with metal armour or a metallic strength member can carry current, so if it is used it must be bonded and grounded where it enters each building. Copper data cable between buildings also exposes equipment to differences in ground potential between the two structures. A lightning requirement in a facilities memo is also a cabling requirement.
The core of it: ask which way the voltage moved and for how long. Zero calls for a UPS and a generator, low calls for voltage regulation, and high calls for surge protection. A generator protects against none of the high-voltage events.
Emergency power off: the switch built to cause an outage
An emergency power off (EPO) control is a clearly marked switch, usually a large red button near a server room's exits. One press removes power from the room's IT equipment, including the output of the UPS. That is the point. A room running on battery is still live, and a firefighter, or a person caught against energized equipment, needs it dead now, not when the batteries run out. Many EPO circuits also shut down the room's air handling. That matters with gas suppression, because moving air carries the agent away from the fire. Whether a room must have an EPO depends on the electrical and fire codes that apply to it, so this recommendation is made with the facilities team and the local code authority.
The design problem is the reverse of the usual one. An EPO must be easy to use on purpose and hard to use by accident, because people press the wrong button. A visitor looking for the door release, or someone leaning against a wall, can switch off an entire room. These practical recommendations follow from that failure:
- Fit a hinged guard cover, ideally one that sounds a local alarm when lifted, so a press takes two deliberate actions.
- Mount it near the exits, as codes and firefighters expect, but well away from the door-release button, and label it in plain words.
- Train everyone who enters the room, and include EPO in the documented test and maintenance plan.
- Write the restart sequence in advance: power, then core network, then storage and servers, then applications. An EPO press is a hard power loss for everything at once.
EPO also explains one detail of the A/B design. If the room's EPO cuts both A and B, dual feeds give no protection against an EPO press. That is intended. Redundancy is there for equipment faults; the EPO is there for people.
Heat in British thermal units, temperature and humidity
Nearly every watt a network device draws ends up as heat in the room. Cooling equipment is often rated in British thermal units (BTUs) per hour, so the architect converts: one watt is about 3.412 BTU per hour. Cooling capacity is also sold in tons of refrigeration, where one ton is 12,000 BTU per hour.
Worked example: the server room's heat load.
- IT load: 7,000 W × 3.412 = 23,884 BTU per hour.
- UPS losses. A UPS's efficiency is the share of the power it draws that reaches the load; the rest becomes heat. Assume, for this example, a double-conversion unit that is 95 percent efficient. It draws 7,000 / 0.95 = 7,368 W to deliver 7,000 W, so it loses 368 W, which is 368 × 3.412 = 1,256 BTU per hour.
- Lights and people. Assume 400 W of lighting and two technicians at roughly 100 W each, 600 W in total, which gives 600 × 3.412 = 2,047 BTU per hour.
- Total: 23,884 + 1,256 + 2,047 = 27,187 BTU per hour. Divided by 12,000, that is about 2.3 tons.
The recommendation is cooling for at least 2.3 tons, provided by more than one unit so that one can fail (N+1: one more unit than the load needs), and wired to generator-backed power. The heat load also grows with the IT load, so a room built with growth room for its UPS needs the same growth room in its cooling.
Now the warehouse closet from R5, where one changed condition flips the answer. Closet IDF-B2 is an intermediate distribution frame (IDF), a wiring closet that serves one part of a building. It holds 1,100 W of switches, so its heat load is 1,100 × 3.412 = 3,753 BTU per hour. The facilities plan proposes an exhaust fan that pulls warehouse air through the closet. In March that works. In July the warehouse air is 35 °C, and a fan can only move air: it cannot cool the closet below the temperature of the air it brings in. The equipment inlets would then sit above 35 °C, by however much heat the airflow fails to carry away. Same heat load, different season, different answer. The real options are dedicated cooling sized for at least 3,753 BTU per hour plus growth, moving the closet into conditioned space, or choosing switches whose datasheets rate them for the temperatures the closet will actually reach.
Inlet temperature, the temperature of the air where equipment breathes in, is the number that matters. Measure it at the front of the rack, the cold-aisle side, not in the hot exhaust behind it. Arranging racks in hot and cold aisles keeps exhaust air from being drawn back into the inlets.
Relative humidity (RH) is the water vapour in the air as a percentage of the most the air could hold at that temperature. It fails in both directions. Air that is too dry lets static charge build up, and electrostatic discharge can damage components when someone touches equipment. Air that is too wet risks condensation and corrosion. Condensation forms when a surface is colder than the air's dew point, the temperature at which its water vapour turns to liquid, so dew point is often the more useful number to watch.
A network room needs written targets, not just sensors. The architect records each value below in the design, and takes the figures from current guidance rather than from memory. ASHRAE (the American Society of Heating, Refrigerating and Air-Conditioning Engineers) publishes recommended and allowable ranges for classes of data equipment, and every switch datasheet states its own operating range.
| Design value | What it means | Where the figure comes from |
|---|---|---|
| Recommended inlet band | The temperature range the room is designed to hold in normal running | Current ASHRAE guidance for the equipment class |
| Allowable inlet band | The wider range equipment tolerates for limited periods | ASHRAE guidance and each datasheet; the narrower of the two governs |
| Warning and critical alarm thresholds | Points inside the allowable band that alert staff while there is still time to act | Site policy, set inside the limits above |
| Humidity limits | A low limit against static and a high limit against condensation, stated as dew point and relative humidity | ASHRAE guidance and each datasheet |
The figures differ between equipment classes and have changed between editions of the guidance, so look them up for each project and note the edition you used. "Use the stricter of the two" then has a concrete meaning: if the datasheet allows less than the guidance, the datasheet wins. Environmental sensors report these values to the monitoring system, and a closet sensor's readout looks something like this fictional example, where 32 C is a made-up site threshold:
ENV-SENSOR IDF-B2 2026-07-14 15:20 (fictional example)
Inlet temp 38.5 C ALARM high (site threshold 32 C)
Humidity 22 %RH
Dew point 13.0 C
Door CLOSED
Leak sensor DRY
The readout tells the story of R5. The inlet is 6.5 °C over the site's threshold on a July afternoon. Humidity is low, but the dew point of 13.0 °C is far below any surface temperature in a 38 °C room, so condensation is not the risk; heat is. The leak sensor, a cable laid on the floor that detects water, is the cheap companion to every closet near plumbing or a roof.
The core of it: watts become heat, and watts × 3.412 gives BTUs per hour. Cooling must remove that heat at the hottest time of year, measured at the equipment inlet, against written bands taken from current guidance, with humidity kept away from both static and condensation.
Fire suppression: sprinklers, pre-action and clean agents
Fire protection starts with detection. Ordinary smoke detectors raise the alarm. Aspirating smoke detectors continuously pull air samples through pipes to a sensitive detector, so they can catch smoke much earlier than ceiling detectors, which suits rooms where overheating equipment smoulders before it burns. Suppression then decides what happens next, and the choice of system is what R4 is really about.
| System | How it works | Strength | Weakness | Typical place |
|---|---|---|---|---|
| Wet pipe | Pipes are full of water; each head opens on its own when its heat element breaks | Simple, reliable and cheapest | A leak or a broken head soaks whatever is below | Offices, general space |
| Dry pipe | Pipes hold pressurized air; when a head opens and the pressure drops, water floods the pipes | Pipes cannot freeze | A delay before water arrives, and a single opened head still releases water | Unheated warehouses, loading docks |
| Pre-action | Pipes are dry; water enters only after a detector alarms, and then a head must also open | Two independent events must happen before water falls | More complex and costly to install and maintain | Server rooms, network rooms |
| Clean agent (gaseous) | Floods the room with an inert gas or a chemical agent that suppresses fire and leaves no residue | No water damage; the room is usable after venting | Needs a sealed room, a pre-discharge alarm and delay, evacuation, and costly refills | Server rooms and other high-value equipment rooms |
Two older facts still come up. Halon, once the standard data-center gas, has been phased out of production under the Montreal Protocol because it damages the ozone layer; today's clean agents replaced it. Carbon dioxide systems suppress fire well but are dangerous to people at the concentrations they use, so they are kept out of normally occupied rooms. For staff, handheld extinguishers rated for electrical fires go near every exit.
Now read R4 carefully: "the lowest risk of accidental water damage the building code allows." The phrase "the code allows" tells you sprinklers are probably required, so a clean agent system on its own may not be an option. A pre-action system meets the code with water while needing both a detector alarm and an opened head before any water reaches the room. A broken head on its own releases nothing. If the business will pay, a clean agent system can be added in the server room, so most fires are put out by gas before the sprinklers are ever needed. A dry-pipe system is the tempting wrong pick. It keeps air in the pipes, which sounds safe, but one opened head still floods the system, and its real purpose is freeze protection, which might suit Building B's unheated loading dock instead. The final design belongs to a fire protection engineer and the local fire authority. Your job is to state the business requirement clearly enough that they pick the right system.
Physical access controls as layers across a campus
NIST Special Publication 800-116, published in 2008 for US federal facilities, describes a campus as "a collection of buildings, labs, and parking spaces that are geographically co-located within a large perimeter."[4] It models that campus as one outer perimeter with several inner perimeters inside it.[4] It also warns that applying a single security measure to every space might be overbearing and get in the way of normal work.[4] Its revision, released as a draft in December 2015 and finalized in June 2018, recommends choosing authentication methods for physical access by risk.[5] NIST's main control catalogue, Special Publication 800-53 Revision 5, has a control family called Physical and Environmental Protection (PE).[6] Within that family, PE-3 covers physical access control and PE-6 covers monitoring physical access, while PE-9 to PE-14 cover power equipment, emergency shutoff, emergency power, emergency lighting, fire protection and environmental controls. In other words, nearly every topic in this lesson has a matching federal control.
That guidance is written for federal buildings. SP 800-116 says facilities rated at facility security level (FSL) III or above should use a physical access control system.[4] A private company like Kestrel is not bound by it, but the layered model carries over well. A physical access control system (PACS) is the set of readers, door controllers, electrified locks, door sensors and the server that decides who may enter and logs each event.
| Layer | Kestrel example | Controls |
|---|---|---|
| Outer perimeter | Car park, vehicle gate, warehouse yard | Fence, gate reader, cameras on the gates |
| Building entry | Building A lobby, warehouse staff door | Proximity and NFC readers, reception for visitors, cameras |
| Inner area | Server room, network closets | Card plus biometric at the server room; card at closets; door sensors; a camera on each door |
| Equipment | Racks and cabinets | Cabinet locks with controlled keys |
The table also shows where the network meets physical security. Readers, controllers and cameras are networked devices. They need switch ports, often Power over Ethernet (PoE), their own virtual local area network (VLAN), and UPS-backed power, because an access system that dies in a blackout either locks everyone out or lets everyone in.
Locks and keys, and what happens when the power fails
Locks and keys are the oldest control and still the last layer on most racks and many closets. A mechanical lock needs no power and never crashes. Its weakness is that a key leaves no record and can be copied. Good key control means a register of who holds which key, restricted keyways that ordinary shops cannot copy, rekeying when a key is lost, and a master key system planned so that one lost master does not open the whole campus.
Electrified locks bring the PACS into play, and the key question is what they do when power fails.
- A fail-safe lock unlocks when it loses power. A magnetic lock is fail-safe by nature: a magnet with no power holds nothing. Fail-safe protects people, so it is used where doors must release during an emergency.
- A fail-secure lock stays locked when it loses power. An electric strike is often set up this way. It protects assets, so it suits network closets and server rooms.
Fail-secure does not mean trapping people inside. Building codes require free exit from the inside, and the door hardware provides it with a mechanical lever that always opens from the inside. The electrified lock controls entry only. For Kestrel, closets and the server room get fail-secure strikes with a mechanical key override. Doors on the fire exit routes follow code, usually fail-safe. Lock power and controllers sit on UPS power either way.
Proximity readers and near-field communication
A proximity reader reads a contactless card held close to it. The card usually has no battery: the reader's radio field powers the card's chip for the instant it takes to answer. Two things decide how secure the arrangement is: the radio frequency and the kind of credential the card carries. Older low-frequency systems, typically 125 kilohertz (kHz, thousands of radio cycles per second), usually have the card send a fixed identification number. Anything that can repeat that number can open the door, which is why security teams treat these systems as legacy and plan migrations. Higher frequency is not automatically better. Many older cards at 13.56 megahertz (MHz, millions of cycles per second) share the same weakness, because they present a fixed serial number or rely on outdated cryptography. Current smart-card credentials at 13.56 MHz prove themselves with modern cryptography instead of reciting a number. NIST's 2021 overlay for electronic physical access control systems lists cryptographic contactless card authentication as its one-factor option, and notes there is no restriction on using more factors than it recommends.[7] So when you assess a site, check both the readers and the credential type.
Near-field communication (NFC) builds on the 13.56 MHz contactless family, not the low-frequency one. The NFC Forum describes it as a contactless technology using a base frequency of 13.56 MHz with a typical range of up to 2 cm.[8] The range certified for compliance is 5 mm.[8] One side can send power across the link, which is how battery-less tags and cards work.[8] Most important for R6 is card emulation mode, which lets a phone or wearable act as a contactless card inside an existing card system.[8] To the reader, the phone looks like a badge.
The short range is a security feature, not a limitation. A tap is a deliberate act at a specific door. Because the word "proximity" suggests distance, people expect door readers to work from across a corridor. NFC and standard smart-card door readers work at centimetres, not metres. Long-range readers do exist, for example at vehicle gates, but they are a separate design choice with their own risks, not the normal door reader.
For R6, recommend readers that accept both 13.56 MHz smart cards and NFC mobile credentials. Staff who want phone badges get them. Contractors, visitors and staff without suitable phones get cards. A lost phone or card is revoked centrally in seconds, which no metal key allows.
Biometrics
Biometrics identify a person by a physical trait: fingerprint, face, iris, or the vein pattern in a palm. At enrollment the system stores a mathematical template, not a photograph, and at the door it compares a fresh sample with the template. No comparison is perfect, so every biometric system trades two errors. The false acceptance rate is how often it admits the wrong person; the false rejection rate is how often it turns away the right one. Tightening the match threshold lowers false acceptances and raises false rejections, and the crossover error rate, where the two are equal, is a common way to compare products.
Biometrics are strongest as a second factor. At Kestrel's server room, a card (something you have) plus a fingerprint (something you are) means a borrowed card alone does not open the door. Three cautions go with every biometric recommendation:
- Not everyone can enroll. NIST SP 800-116 repeats the Federal Information Processing Standard (FIPS) 201 rule that another authentication method should be used when one or more fingers cannot be enrolled.[4] Plan the alternative before installation, not on the day someone cannot use the reader.
- Accessibility. The same document reminds designers that physical access controls are meant to be unavoidable, and asks them to consider Section 508 accessibility requirements for biometric readers and other components early in a project.[4]
- Privacy. A password can be changed; a fingerprint cannot. Privacy law such as the General Data Protection Regulation (GDPR) treats biometric data used to identify people as a special category, so template storage, consent and retention need a documented basis.
Door sensors and video surveillance
A reader decides whether a door may open. Only a sensor knows whether it actually did. A door sensor, usually a magnetic contact called a door position switch, tells the PACS whether the door is shut. A request-to-exit sensor on the inside tells the system when someone is leaving legitimately. With both in place, the system can raise the two alarms that matter: door forced open, when the door opens with no valid credential and no request to exit, and door held open, when a door stays open past a set time. NIST's overlay expects the system to log auditable events as defined in the access control policy.[7] A fictional log from Kestrel shows how those events read:
2026-07-08 22:14:03 SRV-A ACCESS GRANTED card 40217 + fingerprint user j.ortiz
2026-07-08 22:14:05 SRV-A DOOR OPEN
2026-07-08 22:15:35 SRV-A DOOR HELD OPEN alarm after 90 s
2026-07-08 22:19:12 SRV-A DOOR CLOSED
2026-07-09 03:02:50 IDF-B2 DOOR FORCED OPEN no grant, no request-to-exit
2026-07-09 03:06:17 IDF-B2 DOOR CLOSED
Read it as an investigator would. The server-room entry was valid, but the door then stood open for about five minutes, and the log cannot tell you whether a second person walked in behind j.ortiz. The IDF-B2 event is the serious one: the door opened at 3 a.m. with no credential and no request to exit. Both entries send you to the same place, the video.
Video surveillance, still often called closed-circuit television (CCTV) although most systems are now IP cameras on the network, answers the question the badge log cannot: who actually walked through. A badge log records whose credential was used; a camera shows whose body passed the door. That is why R7 needs both. Where tailgating is a real risk, an access control vestibule (a small space with two doors, only one of which opens at a time) prevents it rather than merely recording it.
Video is also a network design problem, and R7's 90 days can be worked out. Assume, as an example, 20 cameras each streaming continuously at 4 megabits per second (Mbit/s). The network carries 20 × 4 = 80 Mbit/s to the recorder around the clock, which is a real load on the warehouse uplinks. Storage per camera per day: 4 Mbit/s ÷ 8 bits per byte = 0.5 megabytes (MB) per second, × 86,400 seconds = 43,200 MB, about 43.2 gigabytes (GB). Over 90 days that is about 3.9 terabytes (TB) per camera, or about 78 TB for 20 cameras. Change the assumption to motion-triggered recording or a more efficient codec and the figure drops sharply, which is why the bitrate assumption belongs in the design document. Cameras also need PoE budget on their switches and UPS power, so the recorder keeps recording through an outage. Put up signs where local law requires them, and point cameras at doors, not at keyboards where they could record passwords on screen.
Reading a scenario: exam cues
Scenario questions describe a symptom or a requirement in plain language. The table lists the phrases a question stem tends to use, the item they point to, and the tempting wrong pick.
| The stem says | Points to | Tempting wrong pick |
|---|---|---|
| Voltage low for seconds or minutes; lights dim; equipment reboots without a full outage | Brownout: line-interactive or double-conversion UPS | Surge suppressors |
| Complete loss of power for hours | Blackout: UPS to bridge, generator to carry | Generator alone |
| Lightning; microseconds; transient | Spike: surge protective devices | Generator |
| Voltage above normal for a second or two after a big motor stops | Surge: power conditioning, surge protection | Spike |
| Power-cycle a device remotely | Switched PDU | Metered PDU, which only measures |
| Kill all power in the room, including UPS output, in an emergency | EPO | Turning off the UPS |
| Run for minutes; graceful shutdown | UPS | Generator |
| Run for hours or days | Generator with a fuel plan | Larger UPS batteries |
| Heat load; cooling capacity | BTUs per hour (watts × 3.412) | Amps |
| Static discharge; very dry air | Humidity too low | Temperature |
| Sprinklers required, but minimize accidental water discharge | Pre-action | Dry pipe |
| No water and no residue | Clean agent | Dry pipe |
| Tap a phone at the door | NFC (card emulation) | Biometrics |
| Door propped open; door forced | Door sensors with alarms | Video surveillance |
| Who actually walked in; tailgating evidence | Video surveillance | Badge log alone |
| Door must release when power fails | Fail-safe lock | Fail-secure lock |
Common misconceptions
- "A UPS keeps us running through outages." A UPS gives minutes. It bridges to a generator or buys time for a clean shutdown. Hours of runtime come from a generator and its fuel.
- "With a generator we do not need a UPS." A generator typically needs about 10 seconds to come online, and it gives no protection against spikes. Without a UPS, everything reboots at the start of every outage.
- "A surge protector handles power problems." It handles overvoltage. It does nothing for a brownout or a blackout, which need voltage regulation and stored energy.
- "Two PDUs mean redundancy." Only if either PDU can carry the whole rack. Two PDUs each above about 40 percent of their breaker rating will overload the survivor when one feed fails.
- "Dry pipe is the safe sprinkler choice for server rooms." Dry pipe exists to stop pipes freezing; one opened head still floods it. Pre-action is the system that needs two events before water falls.
- "Proximity readers work from across a corridor." NFC and standard smart-card door readers work at centimetres, not metres, and that short range is part of their security. Long-range readers are a separate, special-purpose design.
Putting it together
- Watts = volts × amps × power factor. Breakers and PDUs limit amps, UPS units limit both VA and watts, and cooling is sized from watts.
- In an A/B power design, each side must stay below half its continuous limit (about 40 percent of the breaker rating with an 80 percent limit) so the survivor can carry the whole rack.
- A UPS bridges minutes. A standby generator carries hours or days but needs about 10 seconds to start, so critical loads need both.
- Standby UPS units switch to battery for every dip; line-interactive units boost low voltage without the battery; double-conversion units run the load from the inverter all the time and protect most.
- A blackout is zero voltage, a brownout is sustained low voltage, a surge is a measurable rise, and a spike is a microsecond-scale transient. Surge suppressors do not help with brownouts or blackouts.
- An EPO deliberately cuts all IT power in a room, including UPS output, for people's safety. Guard it against accidental presses and plan the restart sequence.
- Heat load in BTUs per hour is watts × 3.412, and one ton of cooling is 12,000 BTU per hour. Measure temperature at the equipment inlet, and set temperature and humidity bands from current ASHRAE guidance and datasheets, whichever is stricter.
- Pre-action sprinklers need a detector alarm and an opened head before water flows; clean agent systems leave no residue but need a sealed room and evacuation.
- Campus access control works in layers: perimeter, building, inner rooms and racks. Use cryptographic 13.56 MHz smart cards or NFC mobile credentials, biometrics as a second factor with an alternative for people who cannot enroll, fail-secure locks on closets, door sensors for forced and held-open alarms, and video to show who actually entered.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- NIST CSRC. (n.d.). Uninterruptible Power Supply (glossary). csrc.nist.gov
- Eaton. (n.d.). UPS basics whitepaper. eaton.com
- NIST. (2008). NIST SP 800-116: A Recommendation for the Use of PIV Credentials in Physical Access Control Systems (PACS). nvlpubs.nist.gov
- NIST CSRC. (2018). SP 800-116 Rev. 1: Guidelines for the Use of PIV Credentials in Facility Access. csrc.nist.gov
- NIST. (2020). Security and Privacy Controls for Information Systems and Organizations (SP 800-53 Rev. 5, PE family: PE-3 access control, PE-6 monitoring, PE-9 to PE-14 power, shutoff, emergency power, fire, environment). nvlpubs.nist.gov
- NIST CSRC. (2021). Security Control Overlay of SP 800-53, Revision 5: Electronic Physical Access Control Systems. csrc.nist.gov
- NFC Forum. (n.d.). NFC technology. nfc-forum.org
- Key terms
- Uninterruptible power supply (UPS)
- A battery-backed device that keeps connected equipment running for a short time, usually minutes, when utility power fails, either to bridge to a generator or to allow an orderly shutdown.
- Power distribution unit (PDU)
- A rack-mounted unit that splits one circuit into many outlets; metered models display load, monitored models report it over the network, and switched models allow remote outlet control.
- Emergency power off (EPO)
- A guarded, clearly marked control that removes all power from a room's IT equipment, including UPS output, so people and firefighters are not exposed to live equipment.
- Brownout
- A sustained drop in supply voltage below its normal level, which can make equipment reboot or misbehave; it is handled by voltage regulation, not by surge suppression.
- Power surge
- A rise in supply voltage above normal that lasts a measurable time, from a fraction of a second to seconds, often caused by large loads switching off.
- Voltage spike
- An extremely brief, very high voltage transient lasting microseconds, typically caused by lightning or utility switching and stopped by surge protective devices.
- British thermal unit (BTU)
- A unit of heat energy; cooling is rated in BTUs per hour, and equipment heat load is about 3.412 BTU per hour for each watt drawn.
- Pre-action sprinkler system
- A sprinkler system whose pipes stay dry until a detector raises an alarm, and which releases water only when a sprinkler head also opens, so two events are needed before water falls.
- Fail-safe and fail-secure locks
- A fail-safe electrified lock unlocks when it loses power, protecting people; a fail-secure lock stays locked, protecting assets, while mechanical hardware still allows exit from inside.
- Near-field communication (NFC)
- A 13.56 MHz contactless radio technology with a typical range of up to about 2 cm, used by cards, tags and phones; in card emulation mode a phone presents itself to a reader as a contactless card.
Selecting Campus Wired Network Components
- Choose between Layer 2 switching, Layer 3 routing and multilayer switching, and between a three-tier and a collapsed-core campus, from stated business requirements.
- Size a Power over Ethernet budget and choose Spanning Tree Protocol, 802.1Q trunking and link aggregation settings that give redundancy without loops.
- Match SIP, H.323, WebRTC and RTSP to the endpoints that use them, and state the network requirements each one creates.
- Decide where the MDF, IDFs, customer premises equipment and media converters fit, and how cable management affects repair and change.
One campus, three buildings, and a Cisco Live design session
At Cisco Live 2023, Cisco principal engineer Shawn Wargo presented session BRKENS-1501, Campus Wired Design Fundamentals. His abstract promised a return to basics: the access, distribution, core and edge layers of a campus, and when to collapse layers or add another one, based on scale and throughput requirements.[1] That last clause describes the habit CloudNetX rewards. Objective 1.6 begins "Given a scenario, analyze business requirements," so the exam describes an organization and asks which switches, tiers, power, protocols and edge equipment suit it.[2] Knowing what a switch is will not get you there. You need to know why one design beats the design next to it for this building, this budget and these endpoints.
Exam objectives: CompTIA CloudNetX CNX-001 objective 1.6, Given a scenario, analyze business requirements to select the appropriate campus wired network components. It names Layer 2 vs. Layer 3 (switch, router); Power over Ethernet (PoE), which sends electrical power down the data cable; the three-tier hierarchy (core, distribution, access); collapsed core; intermediate distribution frame (IDF) and main distribution frame (MDF), the wiring rooms, with cable management; Spanning Tree Protocol (STP), which prevents switching loops; tagging and trunking; bonding; voice and video (Session Initiation Protocol (SIP), WebRTC, Real-time Streaming Protocol (RTSP) and H.323, an older international standard for video calls); and customer premises equipment (CPE), the provider's equipment at your site, including media converters.
So that every comparison has numbers attached, this lesson follows one invented organization. Riverside Clinic Group (fictional) is fitting out a small campus:
- Building A has four floors, about 600 staff, the main telecommunications room and a small server room. It has eight wiring closets, two per floor.
- Building B has two floors of clinics and about 200 staff. It sits 150 meters (m) from Building A and has four wiring closets.
- Building C is a supply warehouse 300 m from Building A. It has 12 users, handheld scanners, cameras and one wiring closet.
- The endpoints are 220 SIP desk phones, 60 wireless access points (APs), 40 IP cameras feeding a video management server, a browser-based telehealth service, and one older conference-room video system that only speaks H.323.
- Two carrier services come in: an internet circuit and a link to the regional hospital. Both are handed off by the carriers' own equipment in Building A.
Each row of the next table is a decision Riverside has to make. The sections after it take the decisions in turn, each one as a comparison between options that look alike. If you have taken Network+, most of the names will be familiar. What is new here is choosing between them from requirements.
| Decision | Options to compare | Business requirement that settles it |
|---|---|---|
| Forwarding device | Layer 2 switch, Layer 3 router, multilayer switch | Where broadcast and failure domains should end; whether the edge needs address translation, encrypted tunnels or routing with a provider |
| Hierarchy | Three-tier (core, distribution, access) or collapsed core | Number of buildings, port density, growth, isolation of changes |
| Rooms and cabling | MDF, IDFs, cable management | Copper distance limits, moves and changes, repair time |
| Power at the edge | PoE standard and switch power budget | Phones, access points and cameras with no electrical outlet nearby |
| Loops and links | STP variant, 802.1Q trunks, bonded links | Redundancy without loops; how many Virtual Local Area Networks (VLANs) ride each uplink |
| Real-time traffic | SIP, H.323, WebRTC, RTSP | Which endpoints exist, and what firewall, traffic-priority and power needs they bring |
| Provider edge | CPE, media converters, pluggable fiber optics | Who owns the handoff; copper or fiber; distance |
Layer 2 switch, Layer 3 router and the multilayer switch between them
A network switch working at Layer 2 forwards Ethernet frames by destination MAC (Media Access Control) address, the hardware address burned into each network interface. It learns which port each source MAC address lives on and stores that in a MAC address table. A frame may be addressed to a MAC address the switch has not learned yet, or to the broadcast address. Either way, the switch floods it out of every other port in the same VLAN, a logical network that the switch keeps separate from other VLANs on the same hardware. Everything the flood reaches is one broadcast domain. It is also one failure domain: a chattering host or a loop anywhere in it is felt everywhere in it.
There is a second consequence, and it drives half of this lesson. The Ethernet header has no Time to Live (TTL) field. Each router lowers an Internet Protocol (IP) packet's TTL by one, so a packet caught in a loop is discarded when the count reaches zero. A frame caught in a Layer 2 loop has no such counter. It circulates until a person or a protocol breaks the loop, and every broadcast that enters the loop is copied again on each pass. That missing field is why Layer 2 networks need Spanning Tree Protocol.
A router forwards IP packets between networks using a routing table. Each routed interface ends a broadcast domain, so a broadcast storm in one subnet stays in that subnet. Routing protocols such as Open Shortest Path First (OSPF) learn alternative paths and can install several equal-cost paths at once. Redundant links then all carry traffic instead of sitting blocked. Cisco's own spanning tree guide concedes the speed advantage. It notes that once Layer 3 switching arrived in the local area network (LAN), bridged designs had to compete with routed designs in which protocols such as OSPF are able to provide an alternate path in less time.[3]
The multilayer switch blurs the line. It switches at Layer 2 on some ports and routes between VLANs at Layer 3, in hardware, at the same speed as it switches. Each VLAN it routes for gets a switched virtual interface (SVI). An SVI is a virtual Layer 3 interface that serves as that VLAN's default gateway. In a modern campus, almost all routing between VLANs and buildings happens on multilayer switches. A device sold as a router earns its place at the wide area network (WAN) and internet edge. That is where you need WAN interface types, Network Address Translation (NAT), Virtual Private Network (VPN) termination, Border Gateway Protocol (BGP) routing with a provider, or detailed per-application features.
| Question | Layer 2 switch | Router | Multilayer switch |
|---|---|---|---|
| Forwards using | Destination MAC address | Destination IP address | MAC on switched ports, IP on routed ports and SVIs |
| Broadcasts | Flooded within the VLAN | Stopped at every interface | Stopped at each SVI or routed port |
| Loop protection | Needs STP; frames have no TTL | TTL plus the routing protocol | STP on Layer 2 ports, routing on Layer 3 ports |
| Redundant links | One forwards; STP blocks the rest unless they are bonded | All equal-cost paths can carry traffic | Depends on whether each link is switched or routed |
| Typical extras | VLANs, PoE, port authentication, voice VLAN | WAN interfaces, NAT, VPN, BGP, detailed traffic prioritization | Inter-VLAN routing at line rate, OSPF, gateway redundancy |
| Usual campus position | Access layer | WAN and internet edge, small branches | Distribution, core, collapsed core |
How does a business requirement become a choice? Read the stem for where it wants a failure to stop. "A broadcast storm on one floor must not reach the clinics" calls for a Layer 3 boundary between them. "A legacy medical device must stay in the same subnet as its controller in another building" forces a VLAN to stretch between buildings at Layer 2, along with all the loop control that brings. "Connect to two internet providers with BGP and translate private addresses" points to a router or firewall at the edge, never to an access switch.
Bottom line: a switch reads MAC addresses and floods within a VLAN, a router reads IP addresses and stops broadcasts at every interface, and a multilayer switch does both at line rate. In a campus, the real design question is where the boundary between Layer 2 and Layer 3 sits.
The three-tier hierarchy: access, distribution and core
The hierarchical internetworking model divides a campus into three layers, often called tiers, and gives each one a single job.
The access layer is where endpoints plug in, and it is usually Layer 2 switched toward both the users and the distribution layer above. Controls that act on individual users and devices live here, because this is the first switch a frame touches:
- Port authentication. IEEE 802.1X (from the Institute of Electrical and Electronics Engineers) keeps a port closed to normal traffic until an authentication server, usually reached over RADIUS (Remote Authentication Dial-In User Service), approves the device or user.
- Access control lists. VLAN or port access control lists (ACLs) filter traffic at the port.
- Traffic priority. Quality of Service (QoS) classification and marking labels each frame or packet so that later devices know which traffic to send first.
- Multicast control. IGMP (Internet Group Management Protocol) snooping lets the switch listen to hosts joining multicast groups, such as a camera stream, and forward that multicast only to ports that asked for it rather than flooding it.
- Endpoint services. PoE, the voice VLAN, edge ports (explained in the spanning tree section) and storm control, which drops broadcast traffic on a port above a set rate.
The distribution layer aggregates the access switches for one building or one area. It is usually where Layer 2 ends and Layer 3 begins. Its SVIs are the default gateways for the access VLANs. It runs a first-hop redundancy protocol such as HSRP (Hot Standby Router Protocol) or VRRP (Virtual Router Redundancy Protocol), in which two switches share one gateway address so the gateway survives the loss of either switch. It is the natural spanning tree root for its VLANs. It summarizes routes toward the core and applies policy between VLANs. Distribution switches are deployed in pairs.
The core layer joins the distribution blocks to each other and to the data center and WAN edge. The Cisco session describes the core's main goal as simple, high-bandwidth Layer 3 transport between the other layers.[1] The reason for keeping it simple is that every packet crossing the campus passes through the core. Each extra feature adds processing, configuration and a new way to fail, at the one point where a fault touches everyone. Policy belongs nearer the traffic's source, at distribution or access. Very large campuses sometimes add a fourth tier above the core, an interconnect or backbone that links several core layers to one another.
| Tier | Main job | Usual forwarding | Features that belong here | Usual room |
|---|---|---|---|---|
| Access | Connect users and devices | Layer 2 | PoE, 802.1X, voice VLAN, edge ports, storm control, QoS marking, IGMP snooping | IDF |
| Distribution | Aggregate one building or area | Layer 3 up, Layer 2 down | SVIs and default gateways, HSRP or VRRP, STP root, route summarization, inter-VLAN policy | Building's main IDF, or the MDF |
| Core | Fast transport between distribution blocks | Layer 3 | Routing protocol, high-speed links; as few other features as possible | MDF |
Why bother with three tiers when one big switch pair could, in principle, terminate everything? There are four reasons, each tied to a requirement you might see in a stem:
- Failure containment. Each building's distribution pair is a module. A spanning tree problem in Building B stays in Building B, because Layer 2 ends at its distribution switches.
- Growth. Adding a building means adding one distribution pair and a few links to the core. No other building's configuration changes.
- Fewer fiber runs. Access switches uplink to their own building's distribution switches. Only the distribution pairs need fiber across the campus, so far fewer strands cross between buildings.
- Predictable paths. Traffic always climbs access, distribution, core and back down. That makes capacity planning and troubleshooting simpler.
Bottom line: access connects and controls endpoints, distribution aggregates a building and holds the Layer 2 to Layer 3 boundary and its policy, and the core moves packets fast with as little else as possible.
Collapsed core versus three tiers: one example, two answers
A collapsed core merges the core and distribution layers into a single pair of multilayer switches. The Cisco session states that this is its main purpose,[1] and describes the design as common in a small campus or a medium branch.[1] Toward the WAN edge it routes at Layer 3; toward the access switches it switches at Layer 2. In other words, it does the distribution layer's work (gateways, first-hop redundancy, VLANs and STP) and the core's work (routing to the edge) in one box. Collapsed does not mean unprotected. It is still normally a redundant pair.
Here is Riverside's decision worked twice. In the first run the project covers only Building A. In the second, one input changes: the scope grows to the whole campus.
| Input | Run 1: Building A only | Run 2: whole campus |
|---|---|---|
| Buildings | 1 | 3, with a fourth planned in two years |
| Access switch stacks (one per IDF) | 8 | 13 (8 in A, 4 in B, 1 in C) |
| Uplinks into a collapsed pair (two per stack) | 16 | 26 |
| Links crossing between buildings | None | 10 if collapsed (8 from B, 2 from C); 6 with three tiers (4 from B's distribution pair, 2 from C) |
| Change isolation | One maintenance window for one building | Clinics in Building B must stay up while Building A changes |
| Decision | Collapsed core pair in the MDF | Core pair in the MDF; a distribution pair for Building A and another for Building B; Building C's single stack uplinks to Building A's distribution pair |
Run 1 reasoning: one building, eight closets and sixteen uplinks fit comfortably on one pair of switches. No fiber between buildings is needed. A separate core would add two switches that do nothing a collapsed pair cannot do. A small team has fewer devices to patch, monitor and license. Collapsed core wins.
Run 2 reasoning: suppose Riverside kept a collapsed core in Building A. Each of Building B's four access stacks would need its own fiber pair back to Building A. Every one of Building B's VLANs would then stretch across the campus to reach its gateway, and a spanning tree fault or a maintenance error on the Building A pair would take the clinics down too. So Building B gets its own distribution pair, which ends Layer 2 inside that building. Only four links (each distribution switch to each core switch) cross to the MDF. Building A gets a distribution pair as well, for the same reason in reverse: its eight stacks uplink to that pair, so work on Building A's access VLANs never touches the core that Building B depends on. Building A's distribution pair can sit in the MDF racks beside the core pair, but as separate switches. The core pair now carries only eight routed links, four from each distribution pair, and the planned fourth building simply adds another distribution block. Building C, with one closet and twelve users, does not justify a pair of its own. Its one access stack uplinks over fiber to Building A's distribution pair.
No vendor rule says "three-tier above N closets." The inputs that flip the answer are the number of buildings or distribution blocks, port density at the top tier, fiber paths between buildings, expected growth, and how much one area's maintenance may disturb another.
Bottom line: collapse the core when one site, modest port counts and a small team make a separate core pure overhead. Separate it when several buildings, growth or the need to isolate changes make distribution blocks worth their cost.
Main and intermediate distribution frames, and the cable management in them
A main distribution frame (MDF) is the campus's main telecommunications room. It is where the building and campus backbone cables meet, where the core or collapsed core usually sits, and often where the carriers' circuits enter. An intermediate distribution frame (IDF) is a wiring closet serving one floor or wing. The horizontal cables from the wall outlets end there on patch panels, and the access switches sit there. The Cisco session maps the rooms to the tiers the same way: MDF for the core, IDF for distribution and access. It does use the word "framework" where the exam uses "frame".[1] A building large enough for its own distribution pair may have one main IDF, sometimes called a building distribution frame, that houses it.
Copper distance sets how many IDFs you need. Structured cabling standards such as ANSI/TIA-568 (from the American National Standards Institute and the Telecommunications Industry Association) limit a twisted-pair channel to 100 m, and that total includes the patch cords at both ends as well as the permanent cable in the wall. Every outlet must therefore sit comfortably inside 100 m of cable path from its IDF, with room left for patch cords. That is why Riverside's four-floor building has two closets per floor. Links between IDFs and the MDF are backbone cabling. They are normally fiber, which runs much farther and carries no electrical current between buildings.
| Room | Typical equipment | Cabling that ends here |
|---|---|---|
| MDF | Core or collapsed core pair, WAN routers and firewalls, carrier CPE, often servers | Backbone fiber from every IDF; carrier entrance cables |
| IDF | Access switch stack, sometimes distribution switches, PoE power supplies, an uninterruptible power supply (UPS) | Horizontal copper from outlets; backbone fiber to the MDF |
Lesson 6 covered the rooms' power, cooling and space. This lesson concerns cable management, the hardware and discipline that keep a closet repairable. In practice it includes:
- Patch panels that terminate the permanent cabling, so moves and changes are made with short patch cords rather than by touching cable in the wall.
- Horizontal and vertical cable managers beside every panel and switch, with cords cut to the right length. Coils of spare cord block airflow and hide where each cable goes.
- Labels at both ends of every cable, following one consistent, documented scheme.
- Bend radius and strain relief, especially for fiber. Use hook-and-loop straps rather than tight plastic ties, which can crush cable.
- Separation of data cabling from power cabling, and clear front-to-back airflow paths, so the switches can breathe.
| Label | Meaning |
|---|---|
| A-2E-PP1-05 | Building A, floor 2 east IDF, patch panel 1, port 5 |
| A-214-05 | Outlet in room 214, jack 5, cabled to A-2E-PP1-05 |
| A-MDF-R03-FP2-07 | Building A MDF, rack 3, fiber panel 2, position 7 |
The business case is time. A technician who can read a label finds the right port in minutes. One facing a tangle may unplug the wrong cord. When a stem mentions frequent moves, adds and changes, long repair times, or outages caused by wrong patches, cable management is the component it is asking about.
Power over Ethernet: standards, classes and the switch budget
Power over Ethernet (PoE) sends direct-current power down the same twisted-pair cable that carries data, so a phone, access point or camera needs no outlet beside it. The switch port, or an inline injector called a midspan, is the power sourcing equipment (PSE). The phone or access point is the powered device (PD). Before applying power, the PSE runs a detection step: it checks for a signature resistance that only a PD presents. Then comes classification, in which the PD declares a power class. That handshake is why plugging an ordinary laptop into a PoE port does no harm. With no signature, no power flows.
| Standard | Common name | Maximum at the switch port (PSE) | Maximum available at the device (PD) | Pairs used |
|---|---|---|---|---|
| 802.3af | PoE | 15.4 W | 12.95 W | Two |
| 802.3at | PoE+ | 30 W | 25.5 W | Two |
| 802.3bt Type 3 | PoE++ or 4PPoE | 60 W | 51 W | Four |
| 802.3bt Type 4 | PoE++ or 4PPoE | 90 W | 71.3 W | Four |
The gap between the two power columns is the power lost as heat in up to 100 m of cable. Design with the PSE figure, because the switch has to supply it. Classes map onto these limits. A class 2 device such as a basic desk phone reserves 7 W at the port. Class 3 reserves 15.4 W, class 4 (the top of 802.3at) reserves 30 W, and class 6 (802.3bt Type 3) reserves 60 W.
The constraint that catches designs is the PoE budget: the total power a switch can deliver across all its ports, limited by its power supplies. A 48-port switch that supports PoE+ cannot necessarily deliver 30 W on all 48 ports at once. Many switches reserve power by class, the worst case for each device. Some can instead allocate what each device actually requests through LLDP (Link Layer Discovery Protocol), a standard protocol in which neighboring devices describe themselves to each other. That usually frees headroom. Check which method the switch uses before trusting a budget.
Worked example (fictional): Riverside's IDF A-2E access switch has a 740 W PoE budget and allocates by class.
| Devices | Class | Reserved each | Subtotal |
|---|---|---|---|
| 30 desk phones | 2 | 7.0 W | 210.0 W |
| 6 access points | 4 | 30.0 W | 180.0 W |
| 8 cameras | 3 | 15.4 W | 123.2 W |
| Total | 513.2 W |
Each subtotal is the count multiplied by the reservation: 30 x 7.0 = 210, 6 x 30 = 180 and 8 x 15.4 = 123.2. The total of 513.2 W against a 740 W budget leaves 226.8 W of headroom, about 31 percent of the budget. The design fits.
Run 2 changes one input. The wireless refresh replaces the six APs with eight newer models that need 802.3bt Type 3, class 6 at 60 W. The APs now reserve 8 x 60 = 480 W. The new total is 210 + 480 + 123.2 = 813.2 W, which exceeds the 740 W budget by 73.2 W. Some ports will be refused power, or lower-priority ports will be shut off, depending on the switch's port priority settings. The fixes are all design choices. You can add a second power supply if the switch supports one, spread the APs across stack members, move cameras to another switch, use midspan injectors, or switch to LLDP-based allocation if the APs actually draw less than their class maximum.
Two more requirements follow from PoE. First, if the business says phones must work during a power cut, the IDF's UPS must carry the switch and its whole PoE load, not just the switch's own draw. Second, 802.3bt delivers power over all four pairs at higher current, so cable quality and bundling deserve attention on high-power runs, because tightly bundled cables carrying current warm one another.
Bottom line: size PoE by adding the power reserved per port against the switch's total budget, using the PSE figures, and re-run the sum whenever devices are replaced, because a single refresh can push a switch over its budget.
Spanning Tree Protocol: from 802.1D timers to rapid convergence
Riverside's access switches each have two uplinks, one to each distribution switch. Two paths between the same switches form a loop, and since frames carry no TTL, a loop at Layer 2 becomes a broadcast storm within seconds. Spanning Tree Protocol (STP) prevents this by logically blocking just enough ports to leave a loop-free tree, then unblocking a port when a link fails.
The mechanism takes three steps. Switches exchange Bridge Protocol Data Units (BPDUs), small messages that carry each switch's bridge ID: a configurable priority number followed by the switch's MAC address.
- The switch with the lowest bridge ID becomes the root bridge.
- Every other switch picks one root port, its lowest-cost path toward the root.
- Each link segment gets one designated port that forwards onto it. Any port that is neither root nor designated is blocked.
Because the lowest number wins, you choose the root by setting priorities, not by luck. In a campus, make the distribution switch that is also the active HSRP or VRRP gateway the root for those VLANs. Traffic then takes the same path at Layer 2 and Layer 3. Every switch ships with the same default priority, so if nobody changes it the tie is broken by MAC address, and the winner is often the oldest switch in the building.
The original IEEE 802.1D STP was slow. A port moving to forwarding passed through a listening stage and then a learning stage, each lasting one forward delay. In Cisco's example of a link coming back up, twice the forward delay must elapse, which means 30 seconds of disruption of traffic for that part of the network.[3] For a campus carrying voice calls, that is far too long.
Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) computes the same tree but reaches it differently. Switches on a link perform a proposal and agreement handshake. A switch can then put its new root port straight into forwarding, and Cisco notes that no timer is involved in this quick convergence.[3] The handshake has one condition worth knowing for the exam. It only works when the switches are connected by point-to-point links, which in practice means full-duplex links.[3] RSTP also renames the roles. A blocked port that offers a backup path to the root is an alternate port, and the states are reduced to discarding, learning and forwarding.
RSTP also formalizes the edge port, which Cisco equipment calls PortFast. A port that connects directly to an end station, such as a PC or phone, cannot create a loop, so there is nothing to wait for. An edge port therefore transitions directly to forwarding and skips the listening and learning stages.[3] This is why a correctly configured PC port comes up at once. It is also why a stem that says "PCs take about 30 seconds after boot to get an address from DHCP (Dynamic Host Configuration Protocol)" points to missing edge-port configuration rather than a DHCP fault. Edge status is not a promise the switch trusts blindly. An edge port that receives a BPDU immediately loses edge status and becomes a normal spanning tree port.[3] Many designs go further with BPDU guard, which shuts down an edge port as soon as a BPDU arrives. A user who plugs a small switch into a wall jack then disables only that one port. Root guard does a similar job on ports that should never lead toward the root.
| Port | Connects to | Role | State | Why |
|---|---|---|---|---|
| Te1/1/1 | A-DIST-1 (root) | Root | Forwarding | Lowest-cost path to the root |
| Te1/1/2 | A-DIST-2 | Alternate | Discarding | Second path, held in reserve |
| Gi1/0/1-48 | Phones, PCs, access points | Designated, edge | Forwarding | End stations cannot form a loop |
Two variants appear in campus designs. Per-VLAN versions, such as Cisco's Rapid PVST+ (Rapid Per-VLAN Spanning Tree Plus), run a separate tree for each VLAN, so different VLANs can use different uplinks. MST (Multiple Spanning Tree, IEEE 802.1s) maps many VLANs onto a few tree instances, which scales better when there are hundreds of VLANs. The IEEE later folded RSTP and MST into its main bridging standards, but the working world still uses the old 802.1w and 802.1s names.
The best campus designs treat STP as a safety net, not a traffic-engineering tool. Keep each VLAN within one access switch so there is no loop to block. Bond uplinks so STP sees one logical link. In some designs, route all the way to the access layer, so the uplinks are Layer 3 and STP has nothing to do there at all.
Bottom line: STP blocks redundant Layer 2 paths to prevent storms, RSTP replaces 802.1D's 30-second wait with a handshake on point-to-point links, and edge ports with BPDU guard make user ports fast without letting a rogue switch create a loop.
Tagging and trunking with IEEE 802.1Q
Riverside's access switch carries several VLANs: staff data, voice, cameras and management. Its uplink must carry all of them over one cable. IEEE 802.1Q makes this possible by inserting a 4-byte tag into each Ethernet frame, after the source MAC address. The first 2 bytes are a type identifier (0x8100) that marks the frame as tagged. The other 2 bytes hold three things:
- a 12-bit VLAN ID, which identifies the frame's VLAN and allows a few thousand VLANs in all;
- a 3-bit priority field, the Priority Code Point, used for Layer 2 class of service (CoS) marking;
- a 1-bit drop eligibility flag, which marks frames that may be dropped first under congestion.
Ports come in two kinds. An access port belongs to one VLAN, and its frames travel untagged, so the endpoint never sees a tag. A trunk port carries many VLANs and tags each frame with its VLAN ID. One VLAN on a trunk, the native VLAN, travels untagged. Both ends must agree on which VLAN is native, or traffic leaks between VLANs. Good practice is to make the native VLAN an unused VLAN, limit each trunk to an allowed list of the VLANs it really needs, and turn off automatic trunk negotiation on user-facing ports. Those three steps close the gaps that VLAN-hopping attacks rely on.
The voice VLAN is a special case that the exam likes. A desk phone usually has a small built-in switch with a PC port, so one wall jack serves both devices. The switch port is configured with a data VLAN and a voice VLAN. The phone learns the voice VLAN ID from the switch, usually through LLDP-MED (the LLDP extension for media endpoint devices) or Cisco's CDP (Cisco Discovery Protocol). It then tags its own frames with that ID and a high CoS value. The PC's frames pass through the phone untagged and land in the data VLAN. In this sense the port is mostly an access port, with one tagged VLAN added for the phone.
! Example only (Cisco IOS-style syntax, fictional names)
! Access port: phone with a PC plugged in behind it
interface GigabitEthernet1/0/14
description A-214-05 phone and PC
switchport mode access
switchport access vlan 20
switchport voice vlan 30
spanning-tree portfast
spanning-tree bpduguard enable
!
! Uplink trunk to the distribution switch
interface TenGigabitEthernet1/1/1
description Uplink to A-DIST-1
switchport mode trunk
switchport trunk native vlan 999
switchport trunk allowed vlan 20,30,40,99
switchport nonegotiateHere is how to read it. Port 14 puts the PC in VLAN 20 and offers VLAN 30 to the phone. It is an edge port, and BPDU guard shuts it down if a switch appears on it. The uplink carries only VLANs 20, 30, 40 and 99, and uses unused VLAN 999 as its native VLAN. The nonegotiate line stops the port from negotiating its trunk mode automatically.
Watch the vocabulary. On Cisco equipment, a trunk is an 802.1Q tagged link. Some other vendors, HPE among them, have used "trunk" to mean a group of bonded links. In a stem, decide from context whether the word means many VLANs on one link or many links acting as one.
Bonding links with link aggregation
Link aggregation bundles several physical links between two devices into one logical link. Its names vary: LAG (link aggregation group), port channel, EtherChannel (Cisco), NIC teaming (Windows, where NIC means network interface card) and bonding (Linux). The IEEE standard protocol that negotiates a bundle is the Link Aggregation Control Protocol (LACP). It was first published as IEEE 802.3ad and now lives in IEEE 802.1AX. LACP checks that both ends agree on which ports belong to the bundle. It removes a member that stops responding, which a statically configured bundle cannot do safely.
Bonding gives two things a stem may ask for. The first is capacity: four 10 Gb/s (gigabits per second) links offer 40 Gb/s in aggregate. The second is redundancy: losing one member leaves the bundle up, with less capacity. There is a third benefit that matters for STP. Spanning tree sees the bundle as one link, so nothing inside it is blocked.
The mechanism has a limit that the exam tests. A bundle does not spread a single conversation across its members, because packets sent round-robin would arrive out of order. Instead, the switch hashes fields from each frame's headers, such as source and destination addresses and sometimes ports, and uses the result to choose a member. Every frame of the same flow therefore takes the same link.
| Flow | Source | Destination | Member chosen by hash |
|---|---|---|---|
| Nightly backup stream | 192.0.2.10 | 198.51.100.20 | Te1/1/3 |
| Clinic PC to records server | 192.0.2.51 | 198.51.100.30 | Te1/1/1 |
| Camera stream to video server | 192.0.2.77 | 198.51.100.40 | Te1/1/1 |
| Another clinic PC | 192.0.2.52 | 198.51.100.30 | Te1/1/4 |
Run the numbers both ways. The single backup stream can never exceed 10 Gb/s, because it is pinned to Te1/1/3. Thousands of user flows, on the other hand, spread across all four members and can approach 40 Gb/s in total. Notice too that two flows can land on the same member, as the clinic PC and the camera stream do on Te1/1/1, so balance is statistical, not exact. If the requirement is "speed up one large transfer," bonding is the wrong answer; a faster link is the right one. If the requirement is "more capacity for many users, and survive a link failure," bonding fits.
The members of a bundle must match in speed, duplex and VLAN configuration. The strongest campus design is a multi-chassis bundle, with one access switch uplinking to two distribution switches that act as one logical switch through stacking or a vendor's multi-chassis feature. Then both uplinks forward, a whole distribution switch can fail, and STP still blocks nothing. On servers, Linux bonding offers an active-backup mode for failover only and an 802.3ad mode for an LACP bundle. The switch must be configured to match the mode the server uses.
Bottom line: bonding multiplies aggregate capacity and survives member failures, but each flow is hashed onto one member, so no single conversation runs faster than one link.
Voice and video: SIP, H.323, WebRTC and RTSP compared
The objective's four voice and video protocols look alike because all of them set up or control real-time media. They differ in who uses them and in what they demand of your network. One distinction sorts most of the confusion: signaling, the messages that set up, change and end a session, versus the media itself. The media is usually carried by RTP (Real-time Transport Protocol) over UDP (User Datagram Protocol), which sends packets without retransmitting lost ones, because a late voice sample is useless anyway. Signaling may instead use TCP (Transmission Control Protocol), which delivers reliably and in order, often wrapped in TLS (Transport Layer Security) for encryption. The protocols also come from different bodies: the IETF (Internet Engineering Task Force), which publishes its standards as numbered RFCs (Requests for Comments); the ITU-T (the International Telecommunication Union's standardization sector); and the W3C (World Wide Web Consortium), which defines browser interfaces.
| Protocol | Defined by | Its job | Typical endpoints | Transport | What it asks of the network |
|---|---|---|---|---|---|
| SIP | IETF, RFC 3261 (2002) | Signaling to set up, modify and end sessions | IP desk phones, call servers, carrier SIP trunks | Signaling over UDP, TCP or TLS; media in RTP on separate ports | Voice VLAN, PoE, QoS for RTP, firewall and NAT handling |
| H.323 | ITU-T recommendation suite | A complete older suite for signaling, control and media | Legacy room video systems, gateways, older telephone systems | TCP for call setup, plus ports negotiated during the call | Protocol-aware firewall inspection or a gateway; interworking with SIP |
| WebRTC | IETF protocols and W3C browser interface | Real-time audio, video and data inside the browser | Browsers, web conferencing and telehealth apps | Signaling over HTTPS; media over UDP, relayed if needed | Outbound UDP, reachable STUN and TURN servers, capacity for video |
| RTSP | IETF, RFC 7826 (2016) for version 2.0 | Remote control of streaming media | IP cameras, video management systems, media servers | Control usually over TCP; media usually RTP | Sustained camera bandwidth, camera VLAN, PoE, storage |
Session Initiation Protocol (SIP). RFC 3261 defines SIP as an application-layer control protocol that can establish, modify and terminate multimedia sessions such as internet telephone calls.[4] Its invitations carry session descriptions, written in SDP (Session Description Protocol), so the participants can agree on compatible media types. SIP does not carry the voice. The RFC says it should be used together with other protocols to provide complete services, naming RTP for real-time data and SDP for describing sessions among them.[4] SIP proxy servers route requests to a user's current location, and a registrar records where each phone currently is.
For Riverside, 220 SIP phones mean several things: PoE class 2 budgets, a voice VLAN on every access port, firewall rules for the call server and the carrier's SIP trunk, and RTP marked for the Expedited Forwarding class. That marking lives in the DSCP (Differentiated Services Code Point), a six-bit field in the IP header that switches and routers read to choose a queue. Because signaling and media take different paths, a common fault is one-way audio. Calls connect but one side hears nothing, usually because NAT or a firewall's SIP helper rewrote addresses in the signaling without opening the matching media ports.
H.323 is the ITU-T's older umbrella recommendation for packet-based multimedia. Rather than one protocol, it names a family. H.225.0 handles call signaling and registration with a gatekeeper. H.245 handles capability exchange and opens the media channels, and RTP carries the media. Its components are terminals (endpoints), gateways (to other networks such as the public telephone system), gatekeepers (address resolution and admission control) and multipoint control units (MCUs), which mix multiparty conferences. Its messages are binary encoded and its media ports are negotiated during the call, so a plain port-based firewall rule cannot predict them. You need protocol-aware inspection or a gateway. On the exam, H.323 usually signals legacy: an existing conference-room system that the design must keep working, often through a SIP-to-H.323 interworking gateway.
WebRTC moves real-time media into the browser. The IETF's overview, RFC 8825, describes a protocol suite for interactive audio and video in applications that communicate directly between browsers across the internet.[5] It warns operators that this changes signaling on the network: WebRTC session setup will typically occur over TLS-secured web technologies using application-specific protocols.[5] The practical consequence for you is that a network expecting to find, and inspect, a SIP server in the path may find none; to the firewall, setup looks like ordinary encrypted web traffic. Underneath, WebRTC still describes media with the same SDP offer and answer model that SIP uses, which is why gateways between WebRTC and SIP are practical.
Getting media between two browsers behind NAT is the hard part. Mozilla's documentation describes Interactive Connectivity Establishment (ICE) as a framework that lets your browser connect with peers. ICE uses STUN (Session Traversal Utilities for NAT), in which a server on the internet tells the client its public address and whether a direct connection looks possible. When no direct path works, ICE falls back to TURN (Traversal Using Relays around NAT), which relays the media through a server. Calls with more than two parties commonly go through an intermediary server known as a Selective Forwarding Unit (SFU),[6] which forwards each recipient a stream that suits its connection. For Riverside's telehealth service, the requirements are concrete: allow outbound UDP media, make sure the provider's STUN and TURN servers are reachable, and plan internet capacity for video. Expect QoS to be harder, because the media leaves a browser like any other web traffic.
Real-Time Streaming Protocol (RTSP) controls streams rather than calls. RFC 7826 defines RTSP version 2.0, which obsoletes the version 1.0 defined in RFC 2326;[7] equipment in service may implement either version, so check what a camera and its video server support. The RFC's own summary is that RTSP acts as a "network remote control" for multimedia servers.[7] In practice a client uses it to set up a stream, start it, pause it and tear it down, for live feeds or stored clips, while the media itself travels separately, usually in RTP. In a campus, RTSP means IP cameras and a video management server that pulls their streams. The network requirements are steady upstream bandwidth from every camera port toward the server, a camera VLAN, PoE, and often multicast, which is where IGMP snooping earns its place. As a fictional sizing example, if each of Riverside's 40 cameras streams 4 Mb/s (megabits per second), the video server's uplink carries 40 x 4 = 160 Mb/s around the clock.
Bottom line: SIP sets up calls and leaves the media to RTP, H.323 is the older ITU-T suite you mostly keep alive, WebRTC brings media into the browser and relies on ICE, STUN and TURN, and RTSP is the remote control that cameras and media servers obey.
Customer premises equipment and media converters
Customer premises equipment (CPE) is equipment at the customer's site that connects to a provider's service. Examples include the carrier-managed router for a WAN circuit, a network interface device or smart jack, an optical network terminal on a fiber service, a cable modem, or a managed SD-WAN (Software-defined Wide Area Network) appliance. The demarcation point is where the provider's responsibility ends and yours begins. It is usually a port on the CPE or a jack beside it.
CPE affects design in ways that stems test. If the carrier manages it, you cannot change its configuration, so your own router or firewall must sit behind it to enforce policy. It needs rack space, power and a place on the UPS in the MDF. Its handoff port fixes the medium and speed your equipment must match. Document it as well: when a circuit fails, the first question is which side of the demarcation the fault is on, and the carrier's contract defines who repairs what. At Riverside, both carriers' devices sit in the Building A MDF, which is one more reason the MDF holds the edge routers and firewalls.
A media converter is a small box that converts a signal between two media. Most often it joins twisted-pair copper to fiber, but it can also join multimode fiber to single-mode fiber. It solves problems that come up again and again:
- Distance: the run is longer than copper's 100 m channel, but one end has only copper ports.
- A device without optics: a camera, controller or small switch has an RJ45 copper port but no SFP (small form-factor pluggable) slot for a fiber transceiver.
- Electrical isolation: buildings can sit at different ground potentials, and fiber carries no current between them.
- Electrical noise: fiber is immune to the interference of a factory floor or a lift motor room.
Building C shows the decision. Its 300 m run rules out copper, and no higher cable category raises the 100 m limit. Fiber is the answer. How you light it depends on the ports at each end. Building A's distribution switch has a free SFP slot, so it takes a fiber transceiver directly. The warehouse switch has copper ports only, and the budget does not allow a replacement, so a media converter at the warehouse end joins its copper port to the fiber.
A converter is one more box with its own power supply. It must go on the UPS, and it is one more thing that can fail. Both ends must match in fiber type, wavelength and speed. Choose a model with link fault pass-through, so that a break on the fiber side also drops the copper link and the switch reports the failure instead of showing a healthy port. When a switch has SFP slots, a transceiver is usually the cleaner choice.
Bottom line: CPE marks where the provider's responsibility ends and dictates the handoff you must match, while a media converter bridges copper and fiber when distance, isolation or a copper-only port leaves no simpler option.
Exam cues: what the stem says and what it points to
| If the stem says | Think | Often confused with |
|---|---|---|
| A broadcast storm or fault must stay on one floor or building | Layer 3 boundary at distribution or access | A larger switch or more VLANs on the same Layer 2 domain |
| A device needs the same subnet in two buildings | Stretched VLAN over 802.1Q trunks, with STP | Routing, which would put the two sites in different subnets |
| One building, few closets, small team, tight budget | Collapsed core pair | Full three-tier design |
| Several buildings, growth, maintenance must not spread | Three-tier with distribution per building | Collapsed core |
| Simple, fast transport with minimal features | Core layer | Distribution layer, which holds policy |
| Default gateways, HSRP or VRRP, summarization, policy between VLANs | Distribution layer | Core layer |
| 802.1X, PoE, voice VLAN on user ports | Access layer | Distribution layer |
| Wiring closet on a floor | IDF | MDF, the main room with the core and the carrier entrance |
| Phones or APs with no outlet; switch refusing power to some ports | PoE standard and switch budget | A cable fault |
| PCs take about 30 seconds to get a link or an address | Edge port (PortFast) or RSTP | A DHCP server fault |
| User plugged in a small switch and the port shut down | BPDU guard | Port security on MAC addresses |
| Many VLANs over one uplink | 802.1Q trunk (tagging) | Bonding, which combines many links into one |
| More uplink capacity and resilience without STP blocking | LACP bundle, ideally multi-chassis | A trunk, which multiplies VLANs, not links |
| IP phones, registration, call setup, SIP trunk | SIP | RTSP, which controls streams rather than calls |
| Legacy room system, gatekeeper, MCU | H.323 | SIP |
| Video calls in the browser, no plug-in, STUN or TURN | WebRTC | SIP softphone |
| Cameras, play and pause, video management system | RTSP | WebRTC |
| Carrier-owned box, demarcation, handoff port | CPE | Your own edge router |
| Over 100 m, copper-only device, fiber between buildings | Media converter, or SFP optics if slots exist | A higher copper category |
Common misconceptions
- "Bonding four 10 Gb/s links makes one big transfer run at 40 Gb/s." Link aggregation hashes each flow onto one member, so a single flow is capped at one member's speed. Only many flows together use the full aggregate.
- "The core should hold the security policy, because all traffic passes through it." The core is kept simple and fast precisely because a fault there affects everyone. Policy belongs at distribution and access, near the traffic's source.
- "Category 6A can run farther than 100 m because it is a higher category." Higher categories add bandwidth, not reach. The twisted-pair channel limit is still 100 m, so longer runs need fiber or an intermediate closet.
- "A PoE+ switch can deliver 30 W on every port at once." The switch's total PoE budget, set by its power supplies, is usually far below ports multiplied by 30 W. Add up the reservations per port against that budget.
- "SIP carries the phone call." SIP carries signaling only. The voice travels in RTP on separate ports, which is why calls can connect yet have one-way audio.
- "A collapsed core has no redundancy." A collapsed core is normally a redundant pair. What it removes is a separate tier, not the second switch.
Pulling it together
- A Layer 2 switch forwards by MAC address and floods within a VLAN; a router forwards by IP address and ends a broadcast domain at every interface; a multilayer switch routes between VLANs at line rate using SVIs.
- Ethernet frames have no TTL, so a Layer 2 loop circulates until it is broken; that is why redundant Layer 2 links need STP or bonding.
- Access connects users and enforces 802.1X, PoE and voice VLANs; distribution holds default gateways, first-hop redundancy and policy; the core provides simple, high-bandwidth Layer 3 transport with minimal features.
- A collapsed core merges core and distribution into one redundant pair and suits a single site or medium branch; several buildings, growth or the need to isolate maintenance favor a separate distribution pair per building.
- The MDF is the main room with the core and the carrier entrance; IDFs are floor closets with access switches, placed so every outlet is within the 100 m copper channel.
- PoE standards deliver at most 15.4 W (802.3af), 30 W (802.3at), 60 W (802.3bt Type 3) and 90 W (802.3bt Type 4) at the switch port, and the sum of per-port reservations must fit the switch's total budget.
- RSTP replaces 802.1D's 30 seconds of listening and learning with a proposal and agreement handshake on point-to-point links; an edge port that receives a BPDU loses edge status, and BPDU guard shuts such a port down.
- An 802.1Q tag carries a 12-bit VLAN ID and a 3-bit priority; a trunk carries many tagged VLANs plus one untagged native VLAN, and an LACP bundle hashes each flow onto a single member link.
- SIP signals calls and leaves the media to RTP, H.323 is the legacy ITU-T suite, WebRTC runs in browsers using ICE, STUN and TURN, and RTSP remotely controls camera and media streams; CPE marks the provider handoff, and media converters bridge copper and fiber.
Sources
- Cisco Live. (2023). BRKENS-1501: Campus Wired Design Fundamentals. ciscolive.com
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Cisco Systems. (n.d.). Understanding Rapid Spanning Tree Protocol (802.1w). cisco.com
- J. Rosenberg et al. (2002). RFC 3261: SIP: Session Initiation Protocol. IETF / RFC Editor. rfc-editor.org
- H. Alvestrand. (2021). RFC 8825: Overview: Real-Time Protocols for Browser-Based Applications (WebRTC Overview). IETF / RFC Editor. rfc-editor.org
- Mozilla MDN Web Docs. (n.d.). Introduction to WebRTC protocols. developer.mozilla.org
- H. Schulzrinne, A. Rao, R. Lanphier, M. Westerlund, M. Stiemerling. (2016). RFC 7826: Real-Time Streaming Protocol Version 2.0. IETF / RFC Editor. rfc-editor.org
- Key terms
- Multilayer switch
- A switch that forwards frames at Layer 2 and also routes between VLANs at Layer 3 in hardware, using switched virtual interfaces as the VLANs' default gateways.
- Collapsed core
- A campus design that merges the core and distribution layers into one redundant pair of multilayer switches, common in a single building or medium branch.
- Intermediate distribution frame (IDF)
- A wiring closet serving a floor or wing, where horizontal cables end on patch panels and the access switches sit; it uplinks to the main distribution frame.
- PoE budget
- The total Power over Ethernet wattage a switch can supply across all ports at once, limited by its power supplies; the sum of per-port reservations must stay within it.
- Edge port
- A spanning tree port facing an end station that moves straight to forwarding without listening and learning; it loses edge status if it receives a BPDU. Cisco calls it PortFast.
- 802.1Q trunk
- A link that carries many VLANs by inserting a 4-byte tag holding a 12-bit VLAN ID and 3-bit priority into each frame, with one untagged native VLAN.
- Link Aggregation Control Protocol (LACP)
- The IEEE protocol (802.3ad, now 802.1AX) that negotiates a bundle of physical links into one logical link; each flow is hashed onto a single member.
- Session Initiation Protocol (SIP)
- An IETF application-layer signaling protocol (RFC 3261) that sets up, modifies and ends sessions such as phone calls; the media travels separately, usually in RTP.
- Real-Time Streaming Protocol (RTSP)
- An IETF application-layer protocol that acts as a remote control for streaming media servers, used by IP cameras and video management systems; version 2.0 is RFC 7826.
- Media converter
- A small device that converts a network signal between media, usually copper twisted pair and fiber, to extend distance, isolate buildings electrically or connect copper-only ports.
Selecting Campus Wireless Network Components
- Select Wi-Fi bands, channel widths, antenna types, mounting positions, enclosures and PoE levels from client capabilities, building layout and business requirements.
- Explain how controllers, SSID design and the 802.11k, 802.11v and 802.11r amendments shape wireless security and roaming, and find the fault in a design that breaks them.
- Choose between Wi-Fi, Bluetooth Low Energy, NFC and LoRaWAN for a campus requirement, and justify the choice by range, power and data needs.
Draft v1 of the Calder campus Wi-Fi
Draft v1 of the wireless design for Calder Logistics, a fictional distribution company, fit on one page. It listed 82 access points, two wireless LAN controllers, 300 tracking tags and a line that just said "yard sensors". Every item is a real product category, and the author wrote a reason beside each one. Most of those reasons fail when you check them against the business requirements. This lesson debugs the draft one line at a time, and each component the exam names comes up at the point where a bug needs it.
Exam objectives: CompTIA CloudNetX CNX-001 objective 1.7: "Given a scenario, analyze business requirements to select the appropriate campus wireless network components."[1] The objective lists Wi-Fi (IEEE 802.11) wireless access points, with their antenna types (omnidirectional and directional), placement, enclosure and power considerations. It also lists controllers, standards and protocols, the 2.4 GHz, 5 GHz and 6 GHz frequencies, channels, the service set identifier (SSID) in its hidden and advertised forms, and wireless roaming. Finally, it names three radio technologies that are not Wi-Fi: Bluetooth Low Energy (BLE), near-field communication (NFC) and Long-range Wide Area Network (LoRaWAN).
The campus has three areas, and the business has written down what each one needs.
| Area | What is there | Business requirement |
|---|---|---|
| Office building: three floors, carpeted, 3 m ceilings | 450 staff with Wi-Fi 6E laptops; visitors in the lobby; 25 supervisors with Wi-Fi 6E voice handsets that support WPA3 (Wi-Fi Protected Access 3) on 5 and 6 GHz | Fast staff access, separate guest access, and calls that survive walking between buildings |
| Warehouse: 12 m roof, 10 m steel racks, 40 long aisles | 120 handheld barcode scanners (an older model that supports only WPA2, Wi-Fi Protected Access 2, and only the 2.4 and 5 GHz bands); 30 forklift terminals | Scanners stay connected in every aisle; 300 rolling cages can be found to within an aisle |
| Truck yard and perimeter: about 400 m by 150 m | Guard house with a gate tablet; 40 water and fuel tanks along the fence | Gate tablet online; tank levels reported every 15 minutes by sensors with no mains power and batteries that last years |
| All buildings | Badge-controlled doors | Staff open doors by tapping a badge or a phone |
Here is the draft. Before you read on, decide which of the author's reasons you believe.
| Line | Draft v1 choice | Reason the author gave |
|---|---|---|
| 1 | Replace the 70 office Wi-Fi 5 APs one-for-one with tri-band Wi-Fi 6E APs on the same mounts | "6E is faster, and the cabling is already there" |
| 2 | 2.4 GHz radios on 40 MHz channels; every radio at maximum transmit power | "Wider is faster, louder reaches farther" |
| 3 | Warehouse: 10 APs with high-gain omnidirectional antennas on the 12 m roof | "Higher gain will reach the floor" |
| 4 | Yard: two indoor APs inside sealed plastic boxes on light poles | "The box keeps the rain off" |
| 5 | Power all new APs from the existing 802.3af PoE switch ports | "PoE is PoE" |
| 6 | Seven SSIDs, with the corporate SSID hidden | "One per team, and hiding stops attackers" |
| 7 | One WPA2-Personal SSID for the scanners, offered on 2.4, 5 and 6 GHz | "The scanners only speak WPA2" |
| 8 | Two controllers, one per building, each configured by a different contractor | "Each building is its own project" |
| 9 | NFC tags on the 300 rolling cages | "Cheap, and no batteries" |
| 10 | Wi-Fi tank sensors, with an outdoor mesh AP at each tank cluster | "We already run Wi-Fi" |
| 11 | NFC badge readers on the doors | "Tap to open" |
Line 11 survives review, subject to one check. Every other line contains a specific mistake. The sections below take them in an order that builds what you need: radio bands first, then channels and power, then the AP hardware, then SSIDs, controllers and roaming, and last the three radios that are not Wi-Fi.
IEEE 802.11 generations and the three Wi-Fi bands
Wi-Fi is the Wi-Fi Alliance's certification name for products built to IEEE 802.11, the standard for wireless local area networks (WLANs). The IEEE adds features through lettered amendments, and the Wi-Fi Alliance gives the main ones generation numbers. An access point (AP) and a client use the newest amendment they both support, so your clients limit what any AP purchase can deliver. If the basics feel rusty, the Atlas Network+ course reviews them.
| IEEE amendment | Wi-Fi Alliance name | Bands | Design note |
|---|---|---|---|
| 802.11n | Wi-Fi 4 | 2.4 and 5 GHz | Still common in scanners, printers and building IoT (Internet of Things) devices |
| 802.11ac | Wi-Fi 5 | 5 GHz | The installed base most campuses are now replacing |
| 802.11ax | Wi-Fi 6 | 2.4 and 5 GHz | Better efficiency when many clients share a channel |
| 802.11ax in 6 GHz | Wi-Fi 6E | Adds 6 GHz | Only clients with a 6 GHz radio can use the new band |
| 802.11be | Wi-Fi 7 | 2.4, 5 and 6 GHz | 320 MHz channels in 6 GHz; one device can use several bands at once (multi-link operation) |
Wi-Fi 6E is not a separate protocol. It is 802.11ax extended into 6 GHz, and a client needs a 6 GHz radio to use it. Calder's scanners will never see a 6 GHz signal, however many 6E APs go up.
| Band | Channel room | Reach and wall penetration | What else is there | Rules to remember |
|---|---|---|---|---|
| 2.4 GHz | Three non-overlapping 20 MHz channels in North America: 1, 6 and 11 | Best of the three | Legacy clients, BLE, microwave ovens, many IoT devices | 40 MHz channels are impractical when many APs are close together |
| 5 GHz | Many 20 MHz channels, enough to plan 40 MHz and some 80 MHz cells | Shorter than 2.4 GHz | Most current clients; radar on some channels | Channels shared with radar need DFS |
| 6 GHz | The most room; 80 and 160 MHz channels are practical, and 320 MHz with Wi-Fi 7 | Slightly shorter than 5 GHz | Only Wi-Fi 6E and Wi-Fi 7 clients | WPA3 or Enhanced Open only; power modes set by regulation |
Two terms in that table need defining. A channel is the slice of a band that one AP and its clients transmit in. Its width (20, 40, 80, 160 or 320 MHz) sets how much data each transmission can carry, and the wider the channels, the fewer fit in the band. Dynamic frequency selection (DFS) is the rule for 5 GHz channels shared with weather and military radar. An AP that detects radar must leave the channel, and its clients are briefly disconnected while it moves. How much 6 GHz spectrum is open, and on what terms, varies by country, so check the regulatory domain for every site.
Key idea: choose bands by asking three questions in order: what the clients support, how far the signal must travel, and how much channel room the number of users needs.
Line 1: why a 6 GHz cell is smaller than a 5 GHz cell
The draft's reasoning goes like this: the office already has 70 cabled mounting points, and 6E is faster, so put a tri-band 6E AP on each one. The hidden assumption is that a 6 GHz cell is the same size as a 5 GHz cell. It is not.
Cisco's 2024 Cisco Live session on Wi-Fi 6E design gives two rules of thumb. The first is that path loss in the first meter is on average about 2 dB higher at 6 GHz than at 5 GHz.[2] The second is that beyond the first meter both bands follow the same rule: each doubling of distance costs another 6 dB, whatever the frequency.[2] Because the extra loss happens at the start, the 6 GHz signal stays about 2 dB weaker at every distance. The session concludes that at the same power level, a 6 GHz cell is smaller than a 5 GHz cell.[2]
First, the units. Signal strength at a client is measured in dBm, which means decibels relative to one milliwatt. Indoor values are negative, and a value closer to zero is stronger, so -60 dBm is stronger than -70 dBm. A change of 3 dB doubles or halves the power, and 6 dB is a factor of four. The received signal strength indicator (RSSI) is the client's reading of that level. Designers choose a minimum RSSI that every spot must meet. A target of -67 dBm is common for voice, and this example uses it.
Now the worked example. Suppose a 5 GHz radio delivers -55 dBm at 5 m from the AP. Apply the 6 dB rule in both directions, then subtract the 2 dB offset for 6 GHz at the same transmit power:
| Distance from AP | 5 GHz signal | 6 GHz signal |
|---|---|---|
| 2.5 m | -49 dBm | -51 dBm |
| 5 m | -55 dBm | -57 dBm |
| 10 m | -61 dBm | -63 dBm |
| 20 m | -67 dBm | -69 dBm |
At 5 GHz, the cell edge (the point where the signal falls to -67 dBm) is 20 m from the AP. At 6 GHz, the signal is -63 dBm at 10 m, so it can lose 4 dB more before it reaches -67 dBm. A 6 dB loss means doubling the distance, so a 4 dB loss means multiplying the distance by 2 raised to the power 4/6, which is about 1.59. The 6 GHz edge is therefore about 10 m times 1.59, or 15.9 m. Area grows with the square of the radius, so each 6 GHz cell covers (15.9 / 20) squared of the floor a 5 GHz cell covered. That is about 0.63, or 63 percent.
Treat 63 percent as a worst case. It assumes free-space loss and APs placed exactly at the limit of coverage. In real offices, APs are usually closer together than coverage alone would require, because the number of users sets the AP count, so neighboring cells already overlap. Cisco's field guidance is milder for that reason: where the 5 GHz radios already run at power levels 1-2, expect to need roughly 10 to 20 percent more APs.[2]
Now change one input and watch the result flip. Cisco numbers transmit power levels so that level 1 is the maximum and each higher number is lower. Radio resource management (RRM) is the controller feature that assigns channels and power automatically. Suppose RRM has set the 5 GHz radios to power levels 3-4. They are running below their maximum, so the 6 GHz radios have room to transmit a few dB more than the 5 GHz radios did, which cancels the 2 dB deficit. In that case Cisco reports that a one-for-one replacement can give equal 5 and 6 GHz coverage under both European (ETSI, European Telecommunications Standards Institute) and US (FCC, Federal Communications Commission) rules.[2] Note the conditions: the guidance assumes typical office AP density, a carpeted floor and a normal 3 m ceiling.[2] Calder's 12 m warehouse falls outside those conditions.
So the fix for line 1 is a check the draft skipped. Here is the evidence, in a fictional export of the controller's radio report:
Example output (fictional): 5 GHz radio power by floor
Floor APs Power level (1 = max) Channel width
1 24 3-4 40 MHz
2 24 3-4 40 MHz
3 22 1-2 40 MHz
Floors 1 and 2 have power headroom, so one-for-one replacement should hold there. Floor 3 is open plan, with fewer APs that are already at full power. Plan roughly 3 to 5 more APs there (22 times 0.10 to 0.20, rounded up), and confirm with a survey after installation.
The 6 GHz band also sets power by regulation. Indoor APs usually run in low-power indoor (LPI) mode. Standard-power (SP) mode allows more power, but it requires Automated Frequency Coordination (AFC). AFC is a central database that tells each AP which frequencies are available at its location, choosing ones where the AP will not interfere with the systems already licensed in the band.[2] Those incumbents are licensed fixed services, typically point-to-point microwave links; Cisco's slide also names fixed satellites as an example. AFC has to know where each AP is. The same Cisco session shows an AP with a GPS module installed, which gives the AP a location it can report.[2] AFC approval differs from country to country, so check the status for each site before you count on standard power.
Line 2: 40 MHz channels and full power on 2.4 GHz
The 2.4 GHz band is only about 83 MHz wide in total. In North America, that leaves channels 1, 6 and 11 as the only three 20 MHz channels that do not overlap. A 40 MHz channel takes roughly half the band, so two neighboring APs cannot both have clean 40 MHz channels. Draft v1 guarantees overlap on every floor.
Two different problems follow, and people often confuse them.
- Co-channel interference (CCI) happens when radios on the same channel can hear each other. An 802.11 radio listens before it transmits, so radios on one channel take turns. Nothing is corrupted, but every AP and client on that channel within earshot shares one channel's airtime.
- Adjacent-channel interference happens when channels partly overlap, such as 1 and 3. The radios cannot decode each other's transmissions, so they do not wait their turn. Each radio hears the other only as noise, frames are damaged, and they must be sent again.
Full power makes both problems worse. A louder AP is heard by more of its neighbors, so more cells share each channel. Full power also creates an asymmetric link. An AP's transmitter is stronger than a phone's, so the phone keeps hearing the AP well after the AP can no longer hear the phone clearly. The phone stays attached to a distant AP, known as a sticky client, and its uplink frames keep failing. If you set AP power close to what the clients can send back, cells stay small and links stay balanced.
Other radios share the band too. Bluetooth Low Energy divides 2.4 GHz into 40 channels, each 2 MHz wide.[3] BLE copes with crowding through adaptive frequency hopping, retransmissions and a 24-bit error check.[4] Even so, every BLE tag and microwave oven adds noise to Wi-Fi's three usable channels.
| AP | 2.4 GHz radio | 5 GHz radio | 6 GHz radio |
|---|---|---|---|
| F3-01 | Channel 1, 20 MHz | 40 MHz, channel set by RRM | 80 MHz, channel set by RRM |
| F3-02 | Channel 6, 20 MHz | 40 MHz, channel set by RRM | 80 MHz, channel set by RRM |
| F3-03 | Channel 11, 20 MHz | 40 MHz, channel set by RRM | 80 MHz, channel set by RRM |
| F3-04 | Off: too close to F3-01 and F3-02 | 40 MHz, channel set by RRM | 80 MHz, channel set by RRM |
| F3-05 | Channel 1, 20 MHz, far from F3-01 | 40 MHz, channel set by RRM | 80 MHz, channel set by RRM |
The fix, then, is to use 20 MHz channels on 1, 6 and 11 at 2.4 GHz. Let RRM set power, with a ceiling near what the clients transmit. In dense areas, switch some 2.4 GHz radios off (or give them a second 5 GHz role or a monitoring role, if the AP supports it) so the remaining 2.4 GHz cells stay apart. Use 40 MHz at 5 GHz where there are many APs, and keep 80 and 160 MHz for 6 GHz, where the band has room for them.
Key idea: when many APs are close together, more separate channels beat wider channels. Width is a luxury for bands with room to spare, and power should match the weakest transmitter in the conversation.
Line 3: antenna types and placement in a high-bay warehouse
An antenna's gain is measured in dBi, decibels relative to an isotropic radiator, which is an imaginary antenna that radiates equally in every direction. Gain does not add energy. It concentrates the same energy in some directions by taking it from others. Regulators limit EIRP (effective isotropic radiated power): transmitter power plus antenna gain, minus cable loss. So a higher-gain antenna may force a lower transmitter setting.
| Antenna type | Radiation pattern | Typical campus use | Watch out for |
|---|---|---|---|
| Omnidirectional (the internal antennas of a ceiling AP, or dipoles) | Roughly equal in all horizontal directions, shaped like a doughnut | Offices, classrooms, open areas with normal ceilings | Higher-gain versions flatten the doughnut: more reach sideways, less straight down |
| Directional: patch or panel | One wide beam forward | Warehouse aisles, long corridors, lecture-hall seating | Must be aimed; little coverage behind it |
| Directional: sector | A wedge-shaped beam | Outdoor yards and large halls covered from a corner or a pole | Several sectors are needed for all-round coverage |
| Directional: Yagi or parabolic dish | A narrow, high-gain beam | Point-to-point bridge between buildings | Needs clear line of sight and precise alignment |
Now trace line 3. The APs hang from a 12 m roof above 10 m racks. A high-gain omnidirectional antenna flattens its pattern, so most of the energy travels sideways across the rack tops. The aisle floor, where the scanners are used, sits in the shadow of loaded shelving. The draft's reason, "higher gain will reach the floor", has the geometry backwards. Stock also changes the result: a rack full of canned drinks or metal parts absorbs and reflects far more than an empty one.
The fix is to mount APs lower, on columns or rack uprights, with directional patch antennas aimed down the aisles. Depending on what the survey shows, one antenna may serve one aisle or a pair of aisles. Survey when the racks are full, because that is the worst case the scanners will face.
The same thinking applies to placement everywhere. A site survey comes in four forms:
- Predictive: software models coverage from floor plans and wall materials.
- Passive: a survey tool listens to existing signals.
- Active: the tool connects and measures real throughput.
- Validation: after installation, someone walks the site to confirm the design target is met.
Mount APs near the users rather than in closets. Keep them away from metal ducts, elevator shafts and the space above metal ceiling tiles. Mount each AP the way its antennas were designed for: a ceiling model mounted on a wall sends its doughnut sideways. Plan for capacity as well as coverage. One AP might cover a canteen, but 200 people at lunch need several.
Key idea: choose omnidirectional antennas for open spaces under normal ceilings, and directional antennas when the space has a shape (an aisle, a corridor, a yard or a link between buildings). Then place the antenna where the clients are, not where mounting is easy.
Lines 4 and 5: enclosures and power for access points
Line 4 puts indoor APs inside sealed plastic boxes on light poles. The box does keep rain off, but it creates three new problems. Sunlight on a sealed box can push the inside past an indoor AP's operating temperature. Temperature swings cause condensation inside the box. And a pole-top AP with no grounding or lightning protection is exposed to surges. A metal box would be worse still, because it blocks the radio signal.
Outdoor locations call for an outdoor-rated AP. Look for an ingress protection (IP) rating against dust and water, an outdoor temperature range, and either integrated antennas or connectors for external ones, with grounding and lightning arrestors. Indoor enclosures have their own uses:
- Plenum-rated APs or enclosures for air-handling spaces above ceilings.
- Locking enclosures where people might tamper with or steal an AP, such as lobbies and schools.
- Ruggedized housings for freezers and wash-down areas.
Whatever you use, the enclosure must let radio signals through, or the antennas must be mounted outside it. For Calder's yard, a better design puts two outdoor-rated APs with sector antennas on the guard house and the warehouse wall, aimed across the yard. The tank sensors leave Wi-Fi altogether, as line 10 shows.
Line 5 says "PoE is PoE". Power over Ethernet (PoE) comes in classes, and a tri-band AP may need more power than an older port provides. At the switch port, 802.3af supplies up to 15.4 W, 802.3at (PoE+) up to 30 W, and 802.3bt up to 60 W or 90 W, depending on type. The device receives a little less, because some power is lost in the cable. Spec sheets show what happens when the AP gets less than it wants:
| Power source | What the AP runs |
|---|---|
| 802.3bt, Class 5 or above | All three radios at full capability, both uplink ports, USB port |
| 802.3at (PoE+) | All three radios, but the 6 GHz radio drops from four to two spatial streams; USB port off |
| 802.3af | Boots for management only; radios disabled |
| Maximum draw at the AP | 32 W |
The class per port is only half the check. A switch also has a total PoE budget, which can be smaller than its port count multiplied by the maximum per port. Here is a worked example with fictional numbers. An IDF (intermediate distribution frame) switch has a 740 W budget and must power 22 APs at 32 W plus 16 desk phones at 6.5 W. If the switch reserves each device's maximum draw, the load is 22 times 32 = 704 W, plus 16 times 6.5 = 104 W, for 808 W in total. That is 68 W over budget. Some ports would be refused power or would come up in a reduced mode, and the fault would look like a radio problem. The fixes are a second switch, a switch with a larger budget, or moving the phones.
Power considerations also include resilience. Some APs offer two uplinks, so they can draw power and data from two switch ports. Cisco's 2024 session lists dual multigigabit links and PoE redundancy options for its Catalyst 9136.[2] An AP with two uplinks can survive a switch or cable failure, but the gain is real only if the two ports connect to different switches. The IDF switches also need an uninterruptible power supply (UPS), or the Wi-Fi goes dark in the first second of a power cut. The word "power" also covers transmit power, which Line 2 dealt with. Keep the two meanings apart when you read a question stem.
Lines 6 and 7: SSID design, hidden networks and 6 GHz security
The service set identifier (SSID) is the network name a client joins. An advertised SSID appears in the AP's beacon frames, which each radio sends for each SSID, by default about ten times a second, so clients can list it. A hidden SSID leaves the name field in the beacon blank. The AP replies only to clients that send a probe request naming the network.
Before tracing the bug, two security terms. Wi-Fi Protected Access (WPA2 and its successor WPA3) is the Wi-Fi Alliance's security certification for authentication and encryption. Each comes in two forms. Personal mode uses one shared passphrase for everyone. Enterprise mode authenticates each user or device separately through IEEE 802.1X, the standard for port-based network access control: the AP blocks the client's traffic and relays its credentials to an authentication server, and only lets traffic through once the server approves. That server is usually a RADIUS server (Remote Authentication Dial-In User Service; CompTIA's acronym list writes "Services").
The draft hides the corporate SSID to "stop attackers". Trace what actually happens. Every client configured for the hidden network has to send probe requests that contain its name, and the name appears again when the client associates. Anyone passively listening still learns the name. Worse, a laptop configured for a hidden network keeps probing for it everywhere it goes, at home and in airports, announcing the name of a network it trusts. Some client devices also connect less reliably to hidden networks. Hiding is not a security control. The control is strong authentication and encryption: WPA3-Enterprise with 802.1X, where clients check the authentication server's certificate. There is one cosmetic reason to hide an SSID: keeping a device-only network out of people's network lists.
Seven SSIDs is a second bug. Each advertised SSID beacons separately on every radio, and beacons go out at a low basic data rate, so each extra SSID consumes airtime even when no one uses it. To separate teams, assign a role or VLAN (virtual local area network) to each user at login. With 802.1X, the RADIUS server can return each user's VLAN or role at authentication, so one SSID can serve several groups.
Line 7 offers a WPA2-Personal scanner SSID on all three bands. On 6 GHz this is not merely weak: it is not allowed. WPA3 and Enhanced Open security are mandatory for Wi-Fi 6E certification.[2] Cisco's session adds that 6 GHz offers no backward compatibility with open or WPA2 security.[2] Protected management frames (PMF), which stop forged disconnect messages, are also mandatory there.[2] WPA3-Personal replaces the WPA2 pre-shared key (PSK) handshake with Simultaneous Authentication of Equals (SAE). Enhanced Open uses Opportunistic Wireless Encryption (OWE) to encrypt guest traffic without a password. And the scanners have no 6 GHz radio anyway. The fix is a WPA2 SSID on 2.4 and 5 GHz only, and WPA3 everywhere else:
Example controller output (fictional): Draft v2 WLAN summary
ID Profile SSID Security Bands Broadcast 802.11r
1 staff Calder-Staff WPA3-Enterprise, PMF req 2.4/5/6 Yes No
2 voice Calder-Voice WPA3-Enterprise, PMF req 5/6 Yes Yes
3 scan Calder-Scan WPA2-Enterprise, PMF opt 2.4/5 Yes No
4 guest Calder-Guest Enhanced Open (OWE) 2.4/5/6 Yes No
Each row rests on a stated assumption, so check them against the device fleet. The voice row assumes what the requirements table says: the handsets support WPA3 and 5 and 6 GHz. If a handset model supported only WPA2, it would need its own WPA2-Enterprise voice SSID on 2.4 and 5 GHz, built like the scanner SSID. The scanner row uses WPA2-Enterprise on the assumption that the scanners support 802.1X. If they do not, use WPA2-Personal with a long, unique passphrase, on its own VLAN with tight access rules, and plan to replace the scanners. The guest SSID runs on all three bands so that visitor devices with only a 2.4 GHz radio can still join; the cost is one more set of beacons on 2.4 GHz. Seven SSIDs become four, all advertised.
Key idea: security comes from authentication and encryption, not from hiding the name. 6 GHz accepts only WPA3 or Enhanced Open, so WPA2-only devices need their own SSID on 2.4 and 5 GHz.
Line 8: what a wireless LAN controller does, and why two separate ones failed
A wireless LAN controller (WLC) manages many APs as one system. It pushes configuration, runs RRM to assign channels and power, enforces security policy, coordinates roaming and often provides wireless intrusion detection. Lightweight APs find and join their controller using CAPWAP (Control and Provisioning of Wireless Access Points, IETF RFC 5415) or a vendor protocol. Client traffic then follows one of two paths. With central switching, it is tunneled to the controller. With local switching, the AP places it straight onto the local VLAN, which suits branches whose controller sits in a distant data center.
NIST Special Publication 800-153 makes the governance case for controllers. It advises organizations to standardize, automate and centralize WLAN security configuration as far as practical.[5] Its reasoning is that central management lets an organization detect and correct unauthorized configuration changes and react quickly to newly found vulnerabilities.[5]
| Model | Where control lives | Fits | Watch for |
|---|---|---|---|
| Autonomous APs (no controller) | Each AP | A handful of APs at a small site | Configurations drift apart; no coordinated RRM or fast roaming |
| On-premises hardware controller | An appliance in the data center or the MDF (main distribution frame) | Large campuses that want local control of the data path | Size it for the AP count and deploy it as a high-availability pair |
| Virtual controller | A VM (virtual machine) on premises or in a public cloud | The same functions without dedicated hardware | Host resources and latency between the APs and the VM |
| Embedded controller | Software running on an AP or a switch | Branches and small campuses | Lower limits on APs and clients |
| Cloud-managed | The vendor's cloud dashboard | Many sites with a small IT team | Find out what still works if the internet link drops |
Vendors increasingly sell one AP that can run under either model. Cisco's 2024 session presents its Wi-Fi 6E APs as one product with two management modes. One is an on-premises mode, built on the C9800 controller and Catalyst Center.[2] The other is a cloud mode managed from the Meraki dashboard.[2] So choosing an AP and choosing a management model are separate decisions.
Now Line 8. Two contractors each built one controller. Here is what a comparison of the voice profile on both shows:
Example comparison (fictional): WLAN profile "voice" on each controller
Setting WLC-OFFICE WLC-WAREHOUSE
SSID Calder-Voice Calder-Voice
Security WPA3-Enterprise WPA2-Enterprise
802.11r (fast roam) Enabled Disabled
Mobility group OFFICE WH
Client VLAN 110 210
The SSID names match, so the setup looks fine at a glance. But every other line differs. The handsets support WPA3, so the warehouse contractor's WPA2 setting is not a compatibility need: it is simply drift. Cisco's guidance is that fast, secure roaming between controllers works only when the WLAN profile is the same on both.[2] The controllers are also in different mobility groups, so neither will hand a client's session to the other. Different VLANs put the handset on a different subnet in each building. A supervisor walking from the office into the warehouse must authenticate from scratch and get a new IP address, and the call drops. Inside each building, roaming works, which is exactly why the fault looks mysterious.
A second failure waits during any migration. Cisco advises always configuring the primary and secondary controller names in each AP.[2] Without them, an AP that can join either controller may join the wrong one or keep switching between them. The fix for Line 8 is one controller pair in high availability (or one mobility group with identical, templated profiles), with every AP's primary and secondary controller set.
Wireless roaming: the client decides, the network helps
In 802.11, the client decides when to roam. A basic service set (BSS) is one AP radio and its associated clients, and roaming means moving from one BSS to another. A client usually starts looking when its signal falls below a threshold set by its driver. It scans for alternatives and then reassociates. The network cannot force a well-behaved move. It can only suggest one, or disconnect the client. Three amendments make roaming faster and smarter:
| Amendment | What it does | Problem it solves |
|---|---|---|
| 802.11k (radio resource measurement) | The AP gives the client a neighbor report listing nearby APs and their channels | The client scans a few channels instead of all of them |
| 802.11v (wireless network management) | BSS transition management: the network asks the client to move to a named AP | Steers clients away from overloaded or distant APs; the client may decline |
| 802.11r (fast BSS transition) | The client and the new AP derive keys from the earlier authentication | Avoids repeating the full 802.1X exchange with the RADIUS server on every roam |
Voice handsets depend on 802.11r most, because a full 802.1X authentication adds several round trips to the server in the middle of a call. Some older clients fail to join an SSID that advertises 802.11r. Test the actual device fleet before you enable it, or limit it to the voice SSID, as Draft v2 does: its WLAN summary shows 802.11r on Calder-Voice only. Laptops on Calder-Staff still roam, just with a full 802.1X exchange each time, which a web session tolerates far better than a call.
Roaming also has a layer. In a layer 2 roam, the new AP puts the client on the same VLAN and subnet, so its IP address stays valid. In a layer 3 roam, the new AP serves a different subnet. Controllers in one mobility group handle this by anchoring the client to its original controller and tunneling its traffic, so the IP address survives. Without that coordination, the client needs a new address, and sessions break.
Coverage design makes roaming possible in the first place. At every point where people walk, a second AP must be heard above the client's roaming threshold before the current one becomes unusable. The full-power design in Line 2 undermines this. Clients hear the old AP for too long, stay sticky, and roam late or not at all.
Key idea: roaming quality comes from three things: overlapping cells at balanced power, 802.11k, v and r enabled for clients that support them, and identical WLAN profiles plus a shared mobility group across controllers.
Line 9: NFC tells you what something is, BLE tells you where it is
Line 9 puts NFC tags on the rolling cages so the warehouse can find them. NFC is a contactless radio technology with a base frequency of 13.56 MHz, a typical range of up to 2 cm, and data rates from 46 kbit/s to 1.7 Mbit/s.[6] One side of the link can also transmit power, so tags can work without a battery.[6] That is why the draft liked it: the tags are cheap and battery-free. It is also why the line fails. A tag with a 2 cm range is detected only when someone brings a reader to it. NFC identifies an object you touch. It cannot tell you where a cage is among 40 aisles.
NFC is the right choice when a deliberate tap is the point. The NFC Forum says card emulation, in which a phone or wearable acts like a contactless card, is the most common operating mode today.[6] That makes Line 11 plausible: a phone can present itself to a reader the way a badge does. Whether Calder's doors accept phone credentials depends on the access-control system behind the readers, so confirm that before promising staff a phone badge. An NFC tag can also hold Wi-Fi keys, so a tap logs a device onto the WLAN.[6] Connection handover lets two NFC devices start a link over another wireless technology, such as Bluetooth or Wi-Fi.[7] The short range limits casual eavesdropping, but it does not replace encrypted credentials on the badge.
BLE fits the cage requirement. Bluetooth version 4.0 introduced low energy operation.[4] It is a different radio mode from classic Bluetooth audio: instead of holding a continuous stream, it sends short bursts over radio links that can reach much farther than NFC.[4] That lets developers build sensors that run on coin-cell batteries for months or even years.[4] The stack includes pairing, privacy protections and AES-128 (Advanced Encryption Standard, 128-bit key) encryption.[4] For location, Bluetooth 5.1 added angle-of-arrival (AoA) and angle-of-departure (AoD) direction finding.[3]
A BLE location system has three parts. Tags on the assets advertise briefly at intervals. Receivers report each tag's signal strength, or its angle, to a location engine. Many enterprise APs include a BLE radio, and dedicated receivers fill gaps between them. The location engine then estimates where each tag is. Precision depends on how dense the receivers are, so finding a cage to within an aisle may need extra receivers at the aisle ends. Remember that BLE shares 2.4 GHz with Wi-Fi.
Line 10: LoRaWAN for sensors at the far fence
Line 10 puts Wi-Fi sensors on the tanks and an outdoor mesh AP at each cluster of tanks. A Wi-Fi radio has to associate, authenticate and get an address, then keep listening, and that drains batteries quickly. Each mesh AP also needs power, and there is none at the fence. The requirement is a small reading every 15 minutes, from hundreds of meters away, on batteries that last years. That describes a low-power wide-area network.
LoRaWAN is a wireless technology for long-range, low-power, low-data-rate applications, developed by the LoRa Alliance.[8] The Alliance says it was designed from the bottom up for battery lifetime, capacity, range and cost.[9] Its architecture differs from Wi-Fi's. LoRaWAN networks are typically arranged as a star of stars, with gateways relaying messages between end devices and a central network server.[8] Gateways connect to that server over ordinary IP links.[8] A device does not associate with one gateway. Any gateway that hears an uplink forwards it, and the server removes duplicates. Rather than leaving each device to choose its own settings, the network infrastructure manages each device's data rate and radio output power through adaptive data rate (ADR).[8]
Device classes let you trade how quickly the network can reach a device against how long its battery lasts.[10]
- Class A devices can receive only in short windows after they transmit.[10] This is the most energy-efficient class, and every device must support it.
- Class B devices add receive windows at scheduled times, kept in step by a beacon from the gateway.[10]
- Class C devices keep their receive window open almost continuously, closing it only when they transmit.[10] That suits mains-powered actuators, not battery sensors.
Calder's tank sensors are Class A devices that report every 15 minutes, through gateways on two building roofs backhauled to a network server. Security comes in two layers, one for the network and one for the application.[10] The network layer authenticates the device. The application layer keeps the network operator from reading the sensor data.
| Technology | Frequency | Range | Device power | Data | Typical campus job | Infrastructure |
|---|---|---|---|---|---|---|
| Wi-Fi (802.11) | 2.4, 5 and 6 GHz | Room to floor per AP | Rechargeable clients; mains or PoE for APs | High | Laptops, phones, scanners, voice | APs, switches, controller |
| BLE | 2.4 GHz, 40 channels of 2 MHz | Far longer than NFC, in short bursts; location precision depends on receiver density | Coin cell for months to years | Low | Asset tags, wayfinding, small sensors | Receivers (often in APs), location engine |
| NFC | 13.56 MHz | Typically up to 2 cm | Tag can be powered by the reader | Low, small payloads | Door badges, tap to pay, tap to join or pair | A reader at each tap point |
| LoRaWAN | Sub-gigahertz unlicensed bands, varying by region | Long: a few gateways can cover a campus | Battery for years | Very low | Meters, tank levels, environmental sensors | Gateways, IP backhaul, network server |
Key idea: match the radio to the requirement. Use NFC for a deliberate tap, BLE for finding small battery tags indoors, LoRaWAN for small, infrequent readings over long distances, and Wi-Fi for anything that needs real throughput.
Draft v2: the corrected design
| Line | Draft v2 decision |
|---|---|
| 1 | One-for-one Wi-Fi 6E on floors 1 and 2, where 5 GHz runs at power levels 3-4; about 3 to 5 extra APs on floor 3; validation survey after installation |
| 2 | 2.4 GHz at 20 MHz on channels 1, 6 and 11, with some 2.4 GHz radios off in dense areas; RRM sets power with a ceiling near client power; 40 MHz at 5 GHz, 80 MHz at 6 GHz |
| 3 | APs mounted lower, with directional patch antennas aimed down the aisles; surveyed with the racks full |
| 4 | Outdoor-rated APs with sector antennas on the guard house and the warehouse wall, grounded and protected against lightning |
| 5 | 802.3bt switch ports and a checked PoE budget; dual uplinks to different switches where the AP supports them; IDF switches on UPS |
| 6 | Four advertised SSIDs, with user roles assigned through 802.1X instead of more SSIDs |
| 7 | WPA3-Enterprise with PMF for staff and voice (handsets confirmed WPA3 capable); WPA2 on 2.4 and 5 GHz only for the scanners; Enhanced Open on all bands for guests |
| 8 | One controller pair in high availability, with identical profiles and one mobility group; primary and secondary controller set on every AP; 802.11r, k and v on the voice SSID |
| 9 | BLE tags on the cages; BLE receivers in the APs and at aisle ends; a location engine |
| 10 | LoRaWAN Class A tank sensors; two rooftop gateways with IP backhaul to a network server |
| 11 | NFC door readers kept; phone badges through card emulation only after confirming the access-control system supports them |
Reading a scenario stem: exam cues
| The stem says | Points to | Commonly confused with |
|---|---|---|
| Long narrow aisles, corridor, aim the coverage | Directional patch or panel antenna | High-gain omnidirectional antenna |
| Open office, coverage all around a ceiling mount | Omnidirectional antenna | Directional antenna |
| Link between two buildings, line of sight | Yagi or parabolic point-to-point bridge | Sector antenna |
| Rain, dust, heat, pole or wall outdoors | Outdoor-rated AP with an IP rating | Indoor AP in a sealed box |
| AP boots but radios are disabled or reduced | Higher PoE class or a larger switch PoE budget | A faster uplink |
| Hundreds of APs, consistent policy, automatic channels and power | Wireless LAN controller (on-premises, virtual or cloud) with RRM | Autonomous APs |
| Calls drop when walking between areas | Roaming: 802.11r, k and v, identical profiles, shared mobility group | More transmit power |
| Legacy WPA2-only devices plus 6 GHz | A separate SSID on 2.4 and 5 GHz; 6 GHz stays WPA3 or Enhanced Open | WPA3 transition mode on 6 GHz |
| Hide the network from attackers | Hidden SSID is not a security control; use WPA3-Enterprise | MAC address filtering |
| Most channel room, widest channels, newest clients | 6 GHz | 5 GHz with DFS |
| AP changed channel unexpectedly near an airport or weather station | DFS radar detection on 5 GHz | Co-channel interference |
| Tap, contactless, badge, a few centimeters | NFC | BLE |
| Asset tracking, beacons, wayfinding, coin cell | BLE | NFC |
| Hundreds of meters or more, battery for years, small periodic readings | LoRaWAN (Class A for battery sensors) | Wi-Fi mesh or LoRaWAN Class C |
Common misconceptions
- "A hidden SSID keeps attackers out." It only removes the name from beacons. Clients still send the name in probe requests and association frames, and laptops broadcast it wherever they go. Security comes from WPA3 authentication and encryption.
- "More transmit power means better Wi-Fi." Full power widens co-channel interference and creates asymmetric links in which clients hear an AP that cannot hear them. Power should roughly match the clients.
- "A higher-gain antenna adds coverage everywhere." Gain redistributes energy. A high-gain omnidirectional antenna flattens its pattern, reaching farther sideways and less far straight down.
- "A Wi-Fi 6E AP covers the same area in every band." At equal power, 6 GHz loses about 2 dB more and its cells are smaller. One-for-one replacement works only when the 5 GHz radios have power headroom.
- "The controller decides when a client roams." The client decides. 802.11k and 802.11v give it information and requests, and 802.11r makes the move faster.
- "NFC and BLE are interchangeable short-range radios." NFC works over about 2 cm for deliberate taps. BLE reaches much farther in short radio bursts and runs location systems from coin-cell tags.
What you now know
- At equal power, 6 GHz path loss is about 2 dB higher than 5 GHz in the first meter, after which both bands lose 6 dB per doubling of distance, so 6 GHz cells are smaller.
- One-for-one Wi-Fi 6E replacement can match coverage when the 5 GHz radios run at Cisco power levels 3-4. At levels 1-2 (near maximum), plan roughly 10 to 20 percent more APs.
- In North America, 2.4 GHz has only three non-overlapping 20 MHz channels (1, 6 and 11), so 40 MHz channels there cause overlap. Full transmit power widens co-channel interference and creates asymmetric links.
- Omnidirectional antennas suit open spaces under normal ceilings. Directional patch, sector, Yagi and parabolic antennas suit aisles, yards and building-to-building links. Gain redistributes energy rather than adding it.
- 6 GHz requires WPA3 or Enhanced Open with protected management frames and has no WPA2 fallback, so WPA2-only devices need their own SSID on 2.4 and 5 GHz.
- A hidden SSID leaves the name out of beacons only. Every advertised SSID adds beacon airtime on every radio, so use few SSIDs and assign roles through 802.1X.
- Fast, secure roaming between controllers requires identical WLAN profiles and a shared mobility group. APs should have their primary and secondary controllers configured explicitly.
- The client makes the roaming decision. 802.11k provides neighbor reports, 802.11v sends transition requests, and 802.11r derives keys without a full 802.1X exchange.
- NFC runs at 13.56 MHz with a typical range of up to 2 cm and suits taps. BLE runs on coin cells for months to years and suits indoor asset location. LoRaWAN uses gateways in a star-of-stars layout, and Class A devices suit battery sensors reporting over long distances.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Cisco Live. (2024). BRKEWN-2024 (Wi-Fi 6E / 6 GHz presentation). ciscolive.com
- Bluetooth SIG. (2024). The Bluetooth Low Energy Primer. bluetooth.com
- Silicon Labs. (n.d.). Bluetooth LE Fundamentals: Background. docs.silabs.com
- Murugiah Souppaya and Karen Scarfone. (2012). Guidelines for Securing Wireless Local Area Networks (WLANs), NIST SP 800-153. NIST. nvlpubs.nist.gov
- NFC Forum. (n.d.). NFC technology. nfc-forum.org
- NFC Forum. (n.d.). NFC Forum Specifications. nfc-forum.org
- S. Farrell. (2017). LoRaWAN Overview (Internet-Draft draft-farrell-lpwan-lora-overview). IETF. datatracker.ietf.org
- LoRa Alliance. (n.d.). What is LoRaWAN®. lora-alliance.org
- LoRa Alliance. (2015). What is LoRaWAN. lora-alliance.org
- Key terms
- Omnidirectional antenna
- An antenna that radiates roughly equally in all horizontal directions in a doughnut-shaped pattern; higher-gain versions flatten the pattern, reaching farther sideways and less far up and down.
- Directional antenna
- An antenna, such as a patch, panel, sector, Yagi or parabolic dish, that concentrates its energy in one direction to cover an aisle, a yard or a point-to-point link.
- Wireless LAN controller
- A hardware, virtual, embedded or cloud system that manages many access points as one, pushing configuration, assigning channels and power, enforcing policy and coordinating roaming.
- Hidden SSID
- A wireless network whose name is left out of beacon frames; clients must name it in probe requests, so the name remains visible on the air and hiding it provides no real security.
- Automated Frequency Coordination
- A central database service that tells a 6 GHz standard-power access point which frequencies it may use at its location without interfering with existing licensed fixed services.
- Fast BSS transition (802.11r)
- An 802.11 amendment that lets a roaming client and its new access point derive encryption keys from an earlier authentication instead of repeating a full 802.1X exchange.
- Co-channel interference
- Loss of capacity when radios on the same Wi-Fi channel can hear each other and must take turns, so they share one channel's airtime.
- Bluetooth Low Energy
- A low-power Bluetooth mode, introduced in Bluetooth 4.0, that uses 40 channels of 2 MHz in the 2.4 GHz band and lets coin-cell tags and sensors run for months or years.
- Near-field communication
- A contactless radio technology at 13.56 MHz with a typical range of up to 2 cm, used for taps such as door badges, payments and passing pairing or Wi-Fi details.
- LoRaWAN
- A long-range, low-power, low-data-rate network protocol in which gateways relay device messages over IP to a central network server, with device classes A, B and C trading downlink latency against battery life.
Documenting a Network Architecture
- Sort a scenario's requirements into business, technical, regulatory compliance and statement of work requirements, and trace each one to a design element and a test.
- Choose the right network diagram (physical or logical, high-level or low-level, or flow) and the right reference architecture (external or internal) for a given reader and question.
- Tell verification from validation, a configuration baseline from a performance baseline, and a runbook from a knowledge base article.
- Explain how a work breakdown structure, a statement of work and a configuration management database keep a design's scope, contracted work and current state under control.
A one-line request from Larkspur Freight
On a Tuesday in mid-March 2027, two weeks after a new cloud connection went live, the operations director of Larkspur Freight sends the network architect one sentence: "Send me the documentation for the new Azure connection." Larkspur is a fictional distributor with a head office and three warehouses, and we will follow it through this whole lesson. The architect could reply with a 60-page low-level design, a one-page diagram, a spreadsheet of switch ports, a test report or a database export. Each of those counts as documentation. Only one of them is what the director needs, and the sentence alone does not say which.
That choice is the skill objective 1.8 tests. CompTIA words it as "Given a scenario, analyze requirements to select the appropriate artifacts for architecture documentation."[1] An artifact is any document or record a project produces: a requirements list, a contract, a plan, a diagram, a test report, a procedure, a database record. The exam describes a reader and a need, and you pick the artifact that serves them. This lesson gives you a procedure for making that choice. It goes back to the start of Larkspur's project in autumn 2026, walks it through the procedure to handover, and then returns to the director's sentence and changes one input to show how the choice flips.
Exam objectives: CompTIA CloudNetX CNX-001, objective 1.8: Given a scenario, analyze requirements to select the appropriate artifacts for architecture documentation.
The objective's list looks like a pile of unrelated nouns. It actually follows one life cycle. First you analyze requirements. Then you plan the work (statement of work, work breakdown structure). Next you design and draw: you start from a reference architecture, external or internal, then write high-level and low-level designs and draw diagrams. Then you prove the result (verification and validation, baselines). Last, you hand over something operators can run (runbooks, knowledge base articles, the configuration management database). Keep that order in mind and most scenario questions sort themselves.
Four questions that pick the artifact
Before you open a diagramming tool, ask four questions about the request.
- Which requirement is driving this? Is it a business outcome, a technical property, a regulatory obligation or a contracted piece of work?
- Who will read it? Is the reader an executive, an implementer, an operator, an auditor or a supplier? Is the reader inside the organization or outside it?
- Which phase are we in? Defining, planning, designing, building, proving or operating?
- What single question must the artifact answer? "What will you deliver?", "What do I plug in where?" and "What do I do when the tunnel drops?" each need a different document.
The table maps the objective's artifacts to those questions. It is the lesson in one view, and the sections after it explain each row.
| Artifact | Question it answers | Main reader | Phase |
|---|---|---|---|
| Requirements list (business, technical, regulatory) | What must be true when we finish? | Sponsor, architect | Define |
| Statement of work (SOW) | What will this supplier deliver, by when, and how will we accept it? | Customer, supplier, procurement | Contract |
| Work breakdown structure (WBS) | What is all the work, broken into manageable pieces? | Project manager, team leads | Plan |
| Reference architecture (external or internal) | Which proven pattern, published outside or approved inside, do we start from? | Architect, architecture board | Start of design |
| High-level design (HLD) | What shape is the solution, and why? | Sponsors, architects, security | Design |
| Low-level design (LLD) | Exactly how is each device built and connected? | Implementers | Design and build |
| Physical diagram | Where is each device, and what is cabled to what? | Field and data center technicians | Build and operate |
| Logical diagram | How do subnets, virtual local area networks (VLANs), routing and security zones fit together? | Network and security engineers | Design and operate |
| Flow diagram | Which path does this traffic take, and which controls does it cross? | Security, auditors, troubleshooters | Design and audit |
| Verification and validation (V&V) report | Did we build it right, and did we build the right thing? | Acceptance board, sponsor | Prove |
| Baseline | What is the approved version, or the normal behavior? | Change board, network operations center (NOC) | Prove and operate |
| Runbook | What exact steps do I perform for this task? | Operators, on-call engineers | Operate |
| Knowledge base article | I see this symptom: what causes it and how is it fixed? | Help desk, support staff | Operate |
| Configuration management database (CMDB) | What do we have, how is it related, and what breaks if it fails? | Change, incident and asset management | Operate |
The point: every artifact exists to answer one question for one kind of reader at one phase. Find the reader and the question in the scenario, and the artifact usually follows.
Step 1: Analyze the requirements by kind
Requirements analysis means collecting what stakeholders need, sorting it, resolving contradictions, and rewriting each item so someone can test it. The objective names four kinds of requirement, and each behaves differently.
- Business requirements state the outcome the organization wants, in its own language. For example: "the three warehouses use the cloud order system from 1 March 2027", "stay within the approved budget", "scanning keeps running through both shifts". They explain why the project exists, they rarely name a technology, and a business sponsor signs them off.
- Technical requirements state measurable properties the network must have: bandwidth, latency, availability, failover time, Internet Protocol (IP) addressing, protocols, and compatibility with equipment already installed. An architect derives them from the business requirements. "Fast enough for scanning" is a business wish. "Round-trip time under 60 ms for 95 percent of measurements" is a technical requirement, because a test can pass or fail it.
- Regulatory compliance requirements are obligations someone outside the project can enforce: laws, regulations, industry standards the organization must meet, and binding contracts such as a customer's data processing agreement. Examples are the General Data Protection Regulation (GDPR) for personal data of people in the European Union (EU), or a payment card standard for card data. They are not traded away against cost the way a preference can be. They also bring their own evidence demands, because an auditor will ask how you know you comply. A preference of the legal team is not a compliance requirement; an enforceable obligation is.
- Statement of work requirements are the ones written into a contract with a supplier. The glossary of the National Institute of Standards and Technology (NIST), drawing on Special Publication 800-37 Revision 2, defines a statement of work requirement as a type of requirement that represents an action performed operationally or during system development.[2] Put simply, an SOW requirement describes work someone must do, such as deliver a design, run tests or train staff. It does not describe a property the network must have.
Sorting matters because each kind is tested differently and owned by a different person. A sponsor accepts a business requirement. An engineer measures a technical one. An auditor examines evidence for a regulatory one. A procurement officer and the supplier check an SOW requirement against the contract.
Larkspur's requirements, written so they can be tested
Here is the Larkspur architect's requirements register after the first workshop in October 2026. The project: connect the head office and three warehouses to a new order system in Microsoft Azure. The warehouses already reach the head office over a software-defined wide area network (SD-WAN), and the head office will reach Azure over virtual private network (VPN) tunnels across the internet. Each ID starts with its kind: BR for business requirement, TR for technical, RC for regulatory compliance and SOW for statement of work. Every value is a fictional example.
Two terms in the register need a word first. Round-trip time (RTT) is how long a packet takes to reach a destination and the reply to come back. The 95th percentile is the value that 95 percent of measurements fall at or below, so a few unusual spikes do not decide the result.
| ID | Kind | Requirement | How it will be tested | Traces to |
|---|---|---|---|---|
| BR-01 | Business | Warehouse staff can look up and enter orders in the cloud system during shifts, 05:00-23:00, from 1 March 2027. | Validation: supervisors run a full shift on the new system | HLD section 2; test VAL-01 |
| BR-02 | Business | Recurring connectivity cost stays within the approved annual budget. | Review of signed quotes against budget | HLD section 6 |
| TR-01 | Technical | 95th percentile round-trip time (RTT) from each warehouse to the order service is under 60 ms. | Verification: one-week synthetic test | LLD section 4; test VER-03 |
| TR-02 | Technical | Azure address space does not overlap any on-premises range. | Inspection of the address plan | LLD section 3; test VER-01 |
| TR-03 | Technical | Two VPN tunnels from the head office, each over a different internet service provider (ISP); traffic fails over within 30 seconds if one drops. | Verification: disable one tunnel and time the recovery | LLD section 5; test VER-04 |
| RC-01 | Regulatory compliance (binding contract) | Order data, which includes personal data of EU customers, is stored and processed only in EU Azure regions, as the signed data processing agreement with Larkspur's largest retail customer requires. | Inspection of deployed resource locations; evidence kept for the customer's auditor | HLD section 3; test VER-02 |
| SOW-01 | Statement of work | The integrator delivers an LLD, device configurations in the Git repository, a signed V&V report and three runbooks. | Acceptance review against the SOW | SOW section 2 |
Look at the last column. Every requirement points forward to the design section that satisfies it and the test that proves it. A test that fails can then be traced back to the requirement it protects. That two-way link is called traceability. The NASA Systems Engineering Handbook makes it part of requirements management: managing requirements includes providing bidirectional traceability and managing changes to establish requirement baselines over the system's life cycle.[3] Without traceability, nobody can say which tests a requirement change invalidates, and auditors cannot follow a regulatory requirement down to the evidence.
The workshop also produced a conflict. TR-03's second tunnel needs a second internet circuit at the head office, and BR-02's budget does not cover it. The architect does not quietly drop either requirement. She takes the trade-off to the sponsor, who approves the second circuit and raises the budget. She records the decision, its alternatives and its reasons in an architecture decision record (ADR), a short dated note explaining why a design choice was made. A year later, when someone asks why the head office pays for two circuits, the ADR answers in a paragraph.
The point: a requirement is finished only when it has a kind, an owner, a test and a trace to the design. "Fast", "secure" and "compliant" are not requirements until someone has written down how they will be measured.
Step 2: Put contracted work into a statement of work
Larkspur hires a fictional integrator, Bluefin Networks, to build the Azure side. The statement of work (SOW) is the contract document that says what Bluefin will do. It usually sits under a master service agreement, which holds the long-term legal terms, while the SOW covers one piece of work. A useful SOW states scope, deliverables, schedule, responsibilities, assumptions, exclusions and, most importantly, acceptance criteria. Here is an excerpt.
STATEMENT OF WORK SOW-2026-014 (fictional example)
Customer: Larkspur Freight Supplier: Bluefin Networks
1. Scope
Design and deploy hub-spoke connectivity between Larkspur's
head office and an Azure hub in an EU region, including two
site-to-site VPN tunnels and the hub firewall policy.
2. Deliverables
D1 Low-level design (LLD), reviewed by Larkspur network lead
D2 Device and cloud configurations committed to Larkspur Git
D3 Verification and validation report covering TR-01 to TR-03
and RC-01, signed by both parties
D4 Runbooks: VPN failover, firewall rule change, hub restore
3. Out of scope
Migration of the order application; warehouse local area
network (LAN) changes
4. Schedule
D1 by 15 Dec 2026; D2-D4 by 12 Feb 2027
5. Acceptance criteria
Each deliverable is accepted when the Larkspur network lead
signs it, or 10 business days after delivery with no written
defect report
6. Assumptions
Larkspur provides the second head office circuit by 5 Jan 2027
Notice what the SOW does and does not hold. It lists deliverables, the things Bluefin hands over. It does not design the network: it requires a design (D1) to be delivered. The out-of-scope line prevents the most common SOW dispute, where the customer assumes something was included and the supplier assumes it was not. The assumption in section 6 protects the supplier: if Larkspur's circuit arrives late, the schedule moves and nobody argues about blame.
What goes wrong with SOWs is predictable. Acceptance criteria like "to the customer's satisfaction" cannot be tested, so payment disputes follow. Missing exclusions invite scope creep, which means work grows without a matching change to cost or schedule. When the scenario says "the supplier claims the warehouse switches were never part of the agreement", the artifact to check is the SOW.
Step 3: Break all the work down with a work breakdown structure
The SOW says what Bluefin owes. Larkspur's project manager still needs a picture of all the work, including the parts Larkspur does itself. That picture is the work breakdown structure (WBS). NASA's WBS Handbook defines it plainly: a WBS defines all work to be performed for project completion, and it is a product-oriented structure, not an organizational structure.[4] "Product-oriented" means the branches are things the project produces, such as the hub, the site integration and the runbooks. They are not departments or people.
1 Larkspur Azure Connectivity
1.1 Project management
1.1.1 Requirements sign-off
1.1.2 Status reporting
1.2 Design
1.2.1 High-level design
1.2.2 Low-level design (SOW D1)
1.3 Azure hub
1.3.1 Hub virtual network and subnets
1.3.2 VPN gateway
1.3.3 Firewall policy
1.4 Head office integration
1.4.1 Second internet circuit
1.4.2 Edge router configuration
1.5 Warehouse integration
1.6 Verification and validation (SOW D3)
1.7 Operational handover
1.7.1 Runbooks (SOW D4)
1.7.2 Knowledge base articles
1.7.3 CMDB records and baselines
Read the numbers. The handbook describes a simple decimal coding system that indicates the level of each element and its subordinate elements.[4] So 1.3.2 is a piece of 1.3, which is a piece of 1. Costs and progress roll up the same way: when 1.3.1, 1.3.2 and 1.3.3 are complete, 1.3 is complete. Notice that 1.5 has no children. The handbook says top-level elements do not all have to be subdivided to the same level of detail.[4] Warehouse integration is small and routine, so one line is enough. The hub is new and risky, so it is broken down further.
Three rules follow from the definition. First, the WBS must hold all the work, often called the 100 percent rule: if handover or testing is missing from the WBS, nobody plans or budgets it. Second, the lowest-level items, called work packages, are where effort is estimated and assigned to one owner. Third, the WBS changes only through control: NASA notes that as scope changes, the WBS is revised to reflect changes formally approved through the configuration control process.[4] NASA also advises preparing the WBS as early as project definition will permit, because the estimate and the schedule are built from it.[4]
A WBS is not a schedule. It has no dates and no task order. A Gantt chart (a bar chart of tasks against dates) is built from the work packages afterward. Nor is a WBS an organization chart: an item called "Network team" is a classic error, because a team is not a product. The handbook also notes that the WBS gives a common reference for project communication, both inside the team and externally to stakeholders.[4] When a supplier, a finance officer and an engineer all say "1.3.2", they mean the same piece of work.
The point: the SOW is the contract for one supplier's work, and the WBS is the complete, product-oriented map of all the project's work. If a scenario talks about decomposing scope, assigning work packages or rolling up cost, the answer is the WBS. If it talks about deliverables, acceptance or what the supplier agreed to, the answer is the SOW.
Step 4: Start the design from a reference architecture, external or internal
Larkspur's architect does not invent a cloud network from scratch. She starts from a reference architecture: a proven, generic design for a common problem that shows the components, how they connect and why. The objective splits reference architectures into two kinds, external and internal. The difference is who wrote the pattern and how much it knows about your environment.
An external reference architecture is published outside the organization, by a cloud provider, an equipment vendor or a standards body. Microsoft's hub-spoke design for Azure is a typical one. It implements a hub-spoke network pattern with customer-managed hub infrastructure components.[5] Microsoft describes hub-spoke as the topology its Cloud Adoption Framework for Azure recommends.[5] In the pattern, the hub virtual network is the central point of connectivity for many spoke virtual networks.[5] Shared services such as the VPN gateway and firewall live in the hub, and workloads such as the order system live in spokes.
An external pattern passes on lessons other people learned the hard way. Microsoft's guidance says to plan IP addressing around peering needs and to make sure address space does not overlap across on-premises and Azure locations.[5] The architect turns that warning into TR-02. Overlapping ranges make routing between sites impossible without address translation, and they are painful to fix after go-live.
An internal reference architecture is the organization's own approved standard pattern. An architecture board or design authority usually owns it. It records decisions already made: approved device models and software versions, the address block each new site or spoke draws from, naming rules, security zones, logging targets and monitoring templates. Many organizations build one by adapting an external pattern once, proving it in production, and then publishing the result as the house standard. Tools can then stamp out consistent copies: Microsoft lists standardizing replica architectures across multiple Azure regions as one use case for Azure Virtual Network Manager.[5]
| Question | External reference architecture | Internal reference architecture |
|---|---|---|
| Who publishes it? | A cloud provider, vendor or standards body | The organization's own architecture board |
| What does it know about you? | Nothing: generic components and best practice | Your addresses, regions, approved products, naming, compliance rules |
| Authority | Advice you adapt | A standard projects are expected to follow, with exceptions approved and recorded |
| Best used when | Nothing similar has been built in-house yet, or a need falls outside the house standard | Building another instance of something the organization already runs |
| What goes wrong | Deployed unchanged, with assumptions that do not fit your budget, regulator or addressing | Goes stale as products change, so teams quietly fork it and consistency is lost |
Now work it through twice. In October 2026 Larkspur has never connected to Azure, so no internal pattern exists. The architect starts from Microsoft's external hub-spoke pattern and adapts it. Where the pattern allows either a private circuit or a VPN gateway, she chooses VPN tunnels because of BR-02. She places the hub in an EU region because of RC-01. Each departure goes into an ADR. After acceptance, she publishes what worked as an internal reference architecture, LRA-NET-02 "Azure spoke": new spokes take a /24 from 10.101.0.0/16, stay in EU regions, send all inbound traffic through the hub firewall and log to the central monitoring service (all fictional).
Change one input. In November 2027, the human resources team needs a new spoke for a payroll system. The question is the same, "which pattern do we start from?", but the answer flips to the internal one. LRA-NET-02 already contains Larkspur's addressing, region rule, firewall placement and monitoring. Starting again from Microsoft's page would remake all those decisions and risk an overlapping address range. The exception proves the rule: if the payroll team needed something LRA-NET-02 does not cover, such as a private circuit, the architect would return to external guidance for that part and then update the internal pattern through the board, so the next team inherits the decision.
One more trap. A previous project's LLD is not an internal reference architecture. It is full of one site's specific addresses and device names, and copying it spreads those details to places they do not belong. A reference architecture, internal or external, is written to be reused.
The point: an external reference architecture is a published, generic starting point from a vendor, cloud provider or standards body. An internal reference architecture is the organization's own approved pattern that already contains local decisions. Start from internal when it covers the need, and go external when it does not.
Step 5: High-level design and low-level design
The design is written at two depths for two readers.
The high-level design (HLD) shows the shape of the solution and the reasons for it. It covers sites, major links, cloud regions, security zones, the technologies chosen, how availability is achieved, and the key decisions. The HLD is what sponsors, security reviewers and other architects read. It deliberately leaves out port numbers and most addresses, because those details change often and would hide the argument.
The low-level design (LLD) shows exactly how to build each part: device names, interface assignments, VLAN IDs, IP addresses, routing settings, tunnel parameters, cable identifiers and configuration templates. Implementers read it. A good LLD lets a competent engineer who was not in the design meetings build the network without asking questions. Here is an excerpt from Larkspur's LLD. The interface names follow a common router naming style, and the cable IDs begin with the room they run from, here the head office main distribution frame (MDF), the central wiring room. All values are examples.
| Device | Interface | Connects to | Addressing | Cable ID |
|---|---|---|---|---|
| hq-edge-01 | Gi0/0/0 | ISP A handoff | 203.0.113.10/30 | HQ-MDF-C014 |
| hq-edge-01 | Gi0/0/1 | ISP B handoff | 198.51.100.6/30 | HQ-MDF-C015 |
| hq-edge-01 | Gi0/0/2 | hq-core-01 Te1/0/48 | 10.10.255.1/30 | HQ-MDF-C016 |
| hq-edge-01 | Tunnel1 | Azure VPN gateway, instance A | 169.254.21.1/30 | Logical |
| hq-edge-01 | Tunnel2 | Azure VPN gateway, instance B | 169.254.22.1/30 | Logical |
The matching HLD paragraph says only this: "The head office connects to the Azure hub over two Internet Protocol Security (IPsec) tunnels on separate ISPs, so the loss of one ISP does not interrupt warehouse ordering (TR-03)." Both documents describe the same fact. One is written for a reader who has to approve it, and the other for a reader who has to build it.
The usual exam trap is giving the wrong depth to the wrong reader. An executive handed an LLD cannot find the decision they are being asked to approve. An installer handed an HLD cannot finish the job. When a stem mentions port assignments, VLAN IDs, IP addresses or cable labels, choose the low-level design. When it mentions executives, sites, technology choices or "an overview", choose the high-level design.
Physical and logical network diagrams
Network diagrams split along a second axis, separate from depth: whether they show where things are or how traffic is organized.
| Question | Physical diagram | Logical diagram |
|---|---|---|
| What it shows | Devices, racks, rooms, ports, cables, patch panels, power | Subnets, VLANs, routing domains, security zones, tunnels, traffic paths |
| Typical labels | Rack HQ-MDF-R02 rack unit 12, port Te1/0/48, cable HQ-MDF-C016 | VLAN 120 Scanners 10.11.20.0/24, zone Trusted, Border Gateway Protocol (BGP) over Tunnel1 |
| Answers | "Where is it, and what is it plugged into?" | "How does this subnet reach that service?" |
| Main readers | Field technicians, data center staff, cabling contractors | Network engineers, security engineers, troubleshooters |
| Changes when | Equipment is moved, added or recabled | Addressing, routing or segmentation changes |
The two axes combine. A high-level logical diagram of Larkspur shows four sites, the Azure hub and spoke, the two tunnels and the trust zones, with no port numbers. A low-level physical diagram of the head office MDF shows rack elevations and every cable between hq-edge-01 and hq-core-01. A single drawing that tries to do both, with racks, VLANs, routes and firewall zones together, usually ends up readable by nobody.
Diagrams are also where documentation decays fastest, because people change the network and forget the drawing. The Amazon Web Services (AWS) Well-Architected guidance advises understanding a workload's components and dependencies, then creating a visual representation to provide a shared understanding.[6] It also notes that many discovery and auto-diagramming tools exist.[6] A diagram generated from discovery shows what is really there. A drawn diagram shows what someone intended. Comparing the two is a quick way to find undocumented changes.
Flow diagrams: following one transaction
A data-flow diagram, or flow diagram, follows one kind of traffic from its source to its destination. At each hop it shows the protocol, the port and the control that handles it. Topology diagrams show what exists. Flow diagrams show what happens to a particular conversation. The term also covers flow diagrams of processes, such as a change approval workflow, but in network architecture the traffic flow is the common case.
Here is Larkspur's flow for an order lookup, drawn as a table. On a real diagram each row would be an arrow between two boxes, labeled with the protocol and the control. The scanners use Hypertext Transfer Protocol Secure (HTTPS) over Transmission Control Protocol (TCP) port 443, and the last step carries Structured Query Language (SQL) database traffic on TCP port 1433. This is the internal version, so it carries internal prefixes and rule names.
| Step | From | To | Protocol and port | Control applied |
|---|---|---|---|---|
| 1 | Scanner, VLAN 120, 10.11.20.0/24 | Warehouse SD-WAN edge | HTTPS, TCP 443 | Access control list on VLAN 120 permits only the order service |
| 2 | Warehouse SD-WAN edge | hq-edge-01 | Encrypted SD-WAN overlay | Application policy marks the traffic as business-critical |
| 3 | hq-edge-01 | Azure VPN gateway | IPsec tunnel 1 (tunnel 2 standby) | Tunnel encryption; BGP selects the path |
| 4 | Azure hub firewall | Order service, spoke 10.101.1.0/24 | HTTPS, TCP 443 | Firewall rule ORD-IN-01, logged |
| 5 | Order service | Order database, same spoke | SQL, TCP 1433 | Network security group allows the app subnet only |
Three groups depend on this artifact. The security team writes firewall rules from it, because each row with a control is a rule to create or check. Auditors use it to see where regulated data travels and what protects it at each step. Here, step 5 is where personal data rests, and the deployed region for that spoke is the evidence for RC-01. Troubleshooters use it to divide a failing path into segments. If scanners fail but the SD-WAN overlay is up, the fault lies at step 3 or later. When a stem asks "which ports and controls does this transaction cross" or "where does the cardholder or personal data go", pick the flow diagram.
Diagrams drawn for outsiders: a good practice beside the objective
One habit is worth adding even though it is not a bullet of its own. In objective 1.8, "external" and "internal" belong to reference architectures, covered in Step 4. Separately, good practice is to draw a different diagram for people outside the organization, such as carriers, cloud providers, partners and auditors.
A diagram for outsiders shows the boundary and what crosses it: the demarcation point (where the provider's responsibility ends and yours begins), handoff type, circuit identifiers, public addresses and the services exposed. It leaves out internal subnets, firewall rule names and management paths, because a detailed internal map is useful reconnaissance for an attacker. A diagram for internal staff can carry all that detail, because those readers need it and are trusted with it.
Systems engineering has the same idea under the name of interfaces. In NASA's handbook, the concept of operations is analyzed early to identify both external and internal interfaces.[3] That analysis establishes the origin, destination, stimuli and special characteristics of each interface that must be documented and maintained.[3] For a network, the external interfaces are the ISP handoffs, the cloud gateway and any partner connections. Each needs agreed parameters on both sides, such as speed, addressing, routing and who is responsible for what. A diagram for outsiders is the drawing of those agreements.
Larkspur's ISP B needs to provision the second circuit. The architect sends a one-page boundary diagram. It shows the head office address, the MDF room, the demarcation in rack R01, the handoff as 1 Gbps copper, the /30 public range and the circuit ID. She does not send the internal logical diagram with its subnets blurred out. That diagram still reveals the structure of the internal network, and the carrier does not need it.
The point: choose the diagram by crossing two choices from the objective, physical or logical (where things are, or how traffic is organized) and high-level or low-level (approve it, or build it). Add a flow diagram whenever the question is about one transaction's path, and draw a separate boundary-only version for anyone outside the organization.
Step 6: Verification and validation
Bluefin finishes the build in February 2027. Before Larkspur accepts it, two different questions have to be answered, and the exam tests whether you can keep them apart.
- Verification asks: did we build it right? It checks the delivered system against its specification, meaning the LLD and the technical requirements. Do the configs match the LLD? Does failover finish within 30 seconds? Are the address ranges non-overlapping?
- Validation asks: did we build the right thing? It checks the system against the business need, in real use, with the real users. Can warehouse staff actually work a full shift on the cloud order system?
A system can pass verification and fail validation. That happens when the specification was wrong or incomplete: every router matches the LLD, yet the scanners time out because nobody specified the application's sensitivity to latency. Verification can also fail while early validation looks fine. Users may be happy in the first week while the second tunnel was never configured, so the failover requirement is unmet and nobody notices until an ISP fails.
Systems engineers verify with four methods: test (measure under controlled conditions), demonstration (show that it works), inspection (examine the configuration or document), and analysis (calculate or model). NASA's handbook ties V&V to the interfaces discussed above. It says interface control documentation and approved interface requirement changes are inputs to the product verification and product validation processes.[3] In plain terms, you cannot test an interface you never documented. Larkspur's V&V report, SOW deliverable D3, looks like this.
| Test | Requirement | Kind and method | Result |
|---|---|---|---|
| VER-01 | TR-02 non-overlapping address space | Verification, inspection of address plan and deployed ranges | Pass |
| VER-02 | RC-01 data in EU regions | Verification, inspection of resource locations | Pass |
| VER-03 | TR-01 95th percentile RTT under 60 ms | Verification, one-week synthetic test | Pass: 31-44 ms by warehouse |
| VER-04 | TR-03 failover within 30 s | Verification, test: tunnel 1 disabled at 10:02 | Pass: traffic on tunnel 2 after 11 s |
| VAL-01 | BR-01 staff work a full shift | Validation, demonstration by two supervisors per warehouse | Pass with one finding: label printing slow at warehouse 3 |
The finding under VAL-01 shows why validation earns its place. No technical requirement mentioned label printing, so verification could never catch it. The fix goes back to requirements analysis as a new technical requirement, a change to the design, and a new test. That loop is what traceability makes possible.
Step 7: Baselines: the approved version and the normal state
"Baseline" has two meanings in network work, and a scenario usually tells you which one it means.
A configuration baseline is the approved, version-controlled state of a document or configuration at a point in time. After it is set, changes go through change control. The requirements register, the HLD, the LLD and every device configuration are baselined at acceptance. NASA's Phase C, final design and fabrication, includes the activity to review and update documents baselined in previous phases.[3] A baseline does not freeze a document forever. It means the document now changes only on purpose, with a record. When hq-edge-01's running configuration differs from its baselined version, that difference is called configuration drift. Either someone made an unrecorded change, or a recorded change never reached the baseline.
A performance baseline is a measurement of normal behavior: utilization, latency, loss, error counts and session numbers under typical load. You capture it so that later readings have something to be compared with. Larkspur captures one in the first full week after go-live.
| Metric | Baseline (95th percentile) | Alert threshold |
|---|---|---|
| RTT warehouse 1 to order service | 34 ms | 55 ms |
| RTT warehouse 3 to order service | 44 ms | 55 ms |
| Tunnel 1 utilization at 08:00-10:00 | 38 percent of 500 Mbps | 75 percent |
| Hub firewall sessions | 18,000 | 40,000 |
Four months later a supervisor says the system "feels slow". The NOC reads 48 ms from warehouse 1. Is that bad? Without the baseline, nobody can say. With it, the reasoning is short. Warehouse 1's normal is 34 ms. The rise is 48 - 34 = 14 ms, and 14 / 34 is about 0.41, so latency is up about 41 percent. That is worth investigating even though it is below the 55 ms alert threshold. Now change one input. Suppose the complaint came from warehouse 3, also reading 48 ms. Its normal is 44 ms, so the rise is 4 ms, about 9 percent. The network is behaving almost normally, and the investigation should start with the application or the scanner instead.
The point: a configuration baseline is the approved version that change control protects, and a performance baseline is the measured normal that monitoring compares against. Stems about drift, approved versions and change boards want the first. Stems about "is this slow compared with usual?" want the second.
Step 8: Runbooks and knowledge base articles for operations
Handover is when documentation stops serving the project and starts serving the people who keep the network running. AWS notes that during a Well-Architected review you may find that many practices already have a documented process, standard operating procedure (SOP), runbook, or playbook.[6] Two of these artifacts are in the objective, and they are often confused.
A runbook is a step-by-step procedure for a known task, written so that any qualified operator can carry it out the same way, at any hour. It begins with the trigger, lists exact steps with a check after each, and ends with how to confirm success and how to roll back. Because the steps are explicit, runbooks are also natural candidates for automation. Here is SOW deliverable D4, part one.
RUNBOOK RB-NET-007 Manual failover of Azure VPN to tunnel 2
Trigger: Tunnel 1 is down AND traffic has not moved to tunnel 2
within 60 s (alert "VPN-FAILOVER-STALLED")
Owner: Network operations Last reviewed: 2027-03-08
Risk: Low. Warehouse ordering is already impaired.
1. Confirm the alert: on hq-edge-01, check status of Tunnel1 and
Tunnel2. Expected: Tunnel1 down, Tunnel2 up.
If Tunnel2 is also down, go to step 5.
2. Check the BGP session over Tunnel2.
If it is not established, go to step 5.
3. Check that the Azure hub route table shows the head office
prefixes learned over tunnel 2.
If the prefixes are missing, go to step 5.
4. Verify: from the monitoring host, test HTTPS to the order
service. Expected: success within 2 s.
If it succeeds, go to step 6. If not, go to step 5.
5. Escalate to Bluefin support (contract ref SOW-2026-014) and
open an incident at priority 2 (P2).
6. Record times and actions in the incident ticket.
Rollback: none needed; tunnel 1 resumes primary role on recovery.
Notice that every check has a branch. An operator at 02:00 should never reach a step and wonder what to do if the expected result does not appear.
A knowledge base article (KB article) is written the other way round. It begins with a symptom someone observes and leads to the cause and the fix. Its readers are help desk and support staff searching for a problem they do not yet understand. It captures what the organization has learned, so the same diagnosis does not have to be worked out by a senior engineer every time.
KB-1042 Scanners show "Order service unavailable"; web works
Applies to: Warehouse scanners, VLAN 120
Symptom: Scanner app error; staff can still browse the web
Cause: Scanner certificate store missing the new order
service certificate after renewal
Resolution: Push certificate profile CERT-ORD-2027 from device
management; reboot scanner
Escalate if: More than five scanners at one site, or the error
persists after reboot (may be tunnel issue; see
runbook RB-NET-007)
Use the reader and the starting point to tell them apart. A runbook starts from a task you already know you must do ("fail over the VPN", "restore the hub", "add a firewall rule"). A KB article starts from a symptom you are trying to explain. Note how KB-1042 links to RB-NET-007: good operations documentation sends a reader from a symptom to a procedure. When a stem says "first-line staff keep escalating the same issue", the artifact is a KB article. When it says "an on-call engineer must perform the recovery the same way every time", it is a runbook.
Step 9: The configuration management database as the living record
Diagrams and designs describe the network at the moment someone saved them. The configuration management database (CMDB) is meant to describe it now. A CMDB stores configuration items (CIs): devices, circuits, virtual networks, firewall policies, applications and business services. It also stores the relationships between them, such as "runs on", "connects to", "depends on" and "supports". Those relationships are what make a CMDB more than an inventory spreadsheet.
| Field | Value |
|---|---|
| CI name and class | hq-edge-01, Router |
| Location | Head office, MDF, rack R02, rack unit 12 |
| Serial and software version | FX1234ABCD (example), 17.9.4 |
| Owner and support group | Network operations; vendor support contract NET-SUP-22 |
| Status | In service since 2027-02-12 |
| Connects to | ISP A circuit LKA-55012; ISP B circuit LKB-90877; hq-core-01 |
| Supports | Business service: Warehouse Order Management (criticality high) |
| Documents | LLD section 5; RB-NET-007; baseline config v14 |
The relationships answer the questions that change and incident managers ask. Before approving a reboot of hq-edge-01, the change manager follows "supports" and sees that Warehouse Order Management will lose its primary path. If ISP A reports an outage on circuit LKA-55012, the incident manager follows the links to the service and its owner in seconds. This kind of tracing is called impact analysis.
A CMDB is only as good as its accuracy, and accuracy decays the same way diagrams do. Two habits keep it honest. First, discovery: the same discovery tools that draw diagrams can populate or check CMDB records. Second, infrastructure as code (IaC), which defines network and cloud resources in version-controlled files. AWS gives IaC repositories as an example of workload documentation.[6] When the hub's configuration is defined in Terraform files in Git, the repository is itself a precise, versioned record, and the CMDB can link to it instead of copying it. Keep the CMDB distinct from its neighbors. IP address management (IPAM) tracks subnets and address assignments. A diagram shows a picture. The CMDB tracks things and their dependencies.
What if you inherit a network with no CMDB and no current diagrams? AWS addresses this for its Well-Architected Framework Review (WAFR), a structured review of a workload against AWS best practices. If the documentation does not exist, the review can still run as a discovery exercise, though it takes longer without those artifacts.[6] The same holds for any inherited network: discovery is the first documentation task, and every other artifact is built on what it finds.
The second run: same connection, a different reader
Go back to the director's sentence from mid-March 2027: "Send me the documentation for the new Azure connection." Run the four questions on it.
- Requirement: business. The director cares about BR-01 (can warehouses work?) and BR-02 (did it stay within budget?).
- Reader: internal executive.
- Phase: just after acceptance.
- Question: "Is it done, does it work, and what did it cost?"
The right package is the HLD's summary with its high-level logical diagram, plus the validation results (VAL-01 and its finding) and the budget line. The 60-page LLD would answer a question the director did not ask.
Now change one input. In April 2027, an external auditor working for Larkspur's largest retail customer, the one whose data processing agreement created RC-01, asks for "the documentation for the new Azure connection". The sentence is the same, but the reader is different, and the procedure flips the result.
| Input | Operations director | Customer's external auditor | On-call engineer at 02:00 |
|---|---|---|---|
| Driving requirement | Business (BR-01, BR-02) | Regulatory compliance (RC-01) | Technical (TR-03) |
| Inside or outside | Internal | External | Internal |
| Phase | Just after acceptance (March 2027) | Audit during operation (April 2027) | Incident during operation |
| Question | Does it work, and what did it cost? | Where does personal data go, and how do you know it stays in the EU? | Failover stalled: what do I do now? |
| Artifacts | HLD summary, validation results | High-level logical diagram drawn for outsiders, flow F-03X (the outsider version of F-03), VER-02 evidence, configuration baseline record | Runbook RB-NET-007, CMDB record for hq-edge-01 |
| Withheld | LLD detail | LLD, the internal flow F-03 with its prefixes, firewall rule names, management paths | Nothing relevant; the engineer has internal access |
The auditor does not get F-03 itself, because it carries internal prefixes such as 10.11.20.0/24 and rule names such as ORD-IN-01. Blanking those cells would still leave an internal document. Instead, the architect draws F-03X for outsiders from the start, describing each hop and control by its function.
| Step | From | To | What crosses | Control |
|---|---|---|---|---|
| 1 | Warehouse scanner network | Warehouse SD-WAN edge | Encrypted web traffic (HTTPS) | Access list allows scanners to reach only the order service |
| 2 | Warehouse SD-WAN edge | Head office edge router | Encrypted SD-WAN overlay | Business-critical traffic policy |
| 3 | Head office edge router | Azure VPN gateway, EU region | IPsec tunnel, second tunnel on standby | Tunnel encryption |
| 4 | Azure hub firewall | Order service, EU region | HTTPS | Every session inspected and logged |
| 5 | Order service | Order database, EU region | Database traffic | Only the application tier may connect |
Read the auditor's column carefully, because it is the version the exam is most likely to test. The requirement is a binding contractual obligation, so the auditor wants evidence, not intentions. F-03X shows where order data travels and rests. The VER-02 result proves the deployed regions were inspected. The configuration baseline record shows the region setting is under change control, so any later change to it would show up as drift against the baseline and leave a record instead of passing unnoticed. The reader is outside Larkspur, so every diagram in the package shows the path, the region and the protecting controls, and leaves out the internal map. Every artifact traces back to RC-01, and traceability is what lets the architect assemble this package in an hour instead of a week.
Exam cues: words in the stem and the artifact they point to
| If the stem says... | Choose | Not (the usual confusion) |
|---|---|---|
| Deliverables, acceptance criteria, out of scope, what the vendor agreed to | Statement of work | WBS, which decomposes work but binds no supplier |
| Decompose all project work, work packages, roll up cost, 1.2.3 codes | Work breakdown structure | Gantt chart, which adds dates; org chart, which lists teams |
| Published by a cloud provider, vendor or standards body; proven pattern for a common deployment | External reference architecture | Your own HLD, which is specific to one project |
| The organization's approved standard pattern, architecture board, consistency across every new site | Internal reference architecture | An external reference architecture, or the last project's LLD |
| Executives, overview, sites and technology choices, design rationale | High-level design | Low-level design |
| Port assignments, VLAN IDs, IP addresses, cable labels, configuration templates | Low-level design | High-level design |
| Racks, rooms, patch panels, which cable goes where | Physical diagram | Logical diagram |
| Subnets, VLANs, routing domains, security zones, tunnels | Logical diagram | Physical diagram |
| Path of one transaction, ports and controls at each hop, where regulated data travels | Flow diagram | Topology diagram |
| Matches the specification, built as designed | Verification | Validation |
| Meets the business need, real users, fit for purpose | Validation | Verification |
| Approved version, drift, change board | Configuration baseline | Performance baseline |
| Normal latency or utilization, "is this unusual?" | Performance baseline | Configuration baseline |
| Exact repeatable steps for a known task, on-call, could be automated | Runbook | Knowledge base article |
| Recurring symptom, help desk self-service, known cause and fix | Knowledge base article | Runbook |
| What depends on this device, impact of a change, owner of a service | CMDB | IPAM or a diagram |
For more practice reading topology and physical diagrams at the Network+ level, the Atlas Network+ course covers the symbols and conventions this lesson assumes.
Common misconceptions
- "The SOW and the WBS are the same document." The SOW is a contract for one supplier's deliverables and acceptance. The WBS is the project's own complete map of all work, including work no supplier does. A WBS item can point to an SOW deliverable, but neither replaces the other.
- "Passing all the tests means the project succeeded." Passing tests against the specification is verification. If the specification missed a business need, the system can pass every test and still fail validation with its real users.
- "A vendor's reference architecture is a design you can deploy as is." An external reference architecture knows nothing about your addresses, budget or obligations. Adapt it and record each departure, or start from your internal reference architecture if one already covers the need.
- "Blurring the subnets makes an internal diagram safe to send outside." The structure of zones, management paths and device roles still shows. A diagram for outsiders is drawn for them from the start and shows only the boundary and what crosses it.
- "A baseline freezes the design." A configuration baseline means changes go through control and are recorded, not that changes stop. Baselined documents are expected to be reviewed and updated in later phases, and an unrecorded change shows up as drift.
- "The CMDB is just an asset inventory." An inventory lists things. A CMDB also records how configuration items relate to each other and to business services, and those relationships are what support impact analysis.
The takeaway
- Objective 1.8 asks you to analyze requirements and then select artifacts. Pick each artifact by its driving requirement, its reader (inside or outside), the life-cycle phase and the single question it must answer.
- Business requirements state outcomes, technical requirements state measurable properties, regulatory compliance requirements are enforceable obligations from laws, standards or binding contracts and need evidence, and SOW requirements describe work a supplier must perform.
- Bidirectional traceability links each requirement to the design section that meets it and the test that proves it, so changes and audit questions can be followed in both directions.
- A WBS is a product-oriented breakdown of all project work, coded by level (1, 1.3, 1.3.2) and changed only through configuration control. It has no dates, and it is not an organization chart.
- An external reference architecture is a generic pattern published by a cloud provider, vendor or standards body. An internal reference architecture is the organization's own approved pattern with local decisions built in, and new projects start from it when it covers the need.
- An HLD shows the solution's shape and reasons for approvers, and an LLD shows ports, VLANs, addresses and cable IDs for builders. Physical diagrams show where devices are and how they are cabled, logical diagrams show subnets, VLANs, routing and zones, and flow diagrams follow one transaction hop by hop through its controls.
- Verification asks "did we build it right?" against the specification. Validation asks "did we build the right thing?" against the business need with real users.
- A configuration baseline is the approved, change-controlled version, and any unrecorded difference from it is drift. A performance baseline is measured normal behavior that later readings are compared against.
- A runbook gives exact, branching steps for a known task, a KB article goes from symptom to cause and fix, and a CMDB records configuration items and the dependencies used for impact analysis.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- NIST CSRC. (n.d.). statement of work requirement (CSRC Glossary). csrc.nist.gov
- NASA. (2016). NASA Systems Engineering Handbook (NASA/SP-2016-6105 Rev2). nasa.gov
- NASA. (2021). NASA Work Breakdown Structure (WBS) Handbook (NASA/SP-20210023927). nasa.gov
- Microsoft Learn. (n.d.). Hub-spoke network topology in Azure. learn.microsoft.com
- Amazon Web Services. (n.d.). Documentation and infrastructure - AWS Well-Architected Tool. docs.aws.amazon.com
- Key terms
- Statement of work (SOW)
- A contract document that sets out the work a supplier will perform: scope, deliverables, schedule, responsibilities, assumptions, exclusions and acceptance criteria.
- Work breakdown structure (WBS)
- A product-oriented, hierarchical breakdown of all the work a project must do, coded by level (for example 1.3.2), with work packages at the lowest level. It has no dates and is not an organization chart.
- Reference architecture
- A proven, reusable design pattern for a common problem. External ones are published by cloud providers, vendors or standards bodies; internal ones are an organization's own approved standard patterns with local decisions built in.
- Low-level design (LLD)
- A design document detailed enough to build from: device names, interface assignments, VLAN IDs, IP addresses, routing settings, cable identifiers and configuration templates.
- Flow diagram
- A diagram that follows one kind of traffic or transaction from source to destination, showing the protocol, port and security control at each hop.
- Verification and validation (V&V)
- Two acceptance checks: verification confirms the system was built to its specification, and validation confirms it meets the business need in real use.
- Baseline
- Either the approved, change-controlled version of a document or configuration (configuration baseline) or a measurement of normal network behavior used for later comparison (performance baseline).
- Runbook
- A step-by-step operational procedure for a known task, with a check and a branch after each step and a rollback, written so any qualified operator performs the task the same way.
- Knowledge base article
- A searchable support document that starts from an observed symptom and gives its cause, its fix and when to escalate, so recurring problems can be solved without a senior engineer.
- Configuration management database (CMDB)
- A database of configuration items, such as devices, circuits, applications and business services, and the relationships between them, used for change impact analysis and incident response.
Module 2: Network Security
Threats and their mitigations, security technologies, access controls, Zero Trust, identity and access management, wireless security and appliance hardening.
Cloud and Network Threats, Vulnerabilities and Mitigations
- Explain how each threat named in objective 2.1 works, what weakness it relies on, and how a defender detects it.
- Tell apart commonly confused pairs: evil twin and rogue access point, brute force and credential reuse, zero-day and unpatched device, patch management and vulnerability management, MITRE ATT&CK and the Cyber Kill Chain.
- Choose a mitigation that fits a scenario, including where null routing, source address validation, RPKI, DLP and IPAM belong.
- Describe what the OWASP Top 10, the Cloud Controls Matrix and CIS Benchmarks each contribute to a security review.
One hour, seven alarms
Picture one fictional hour on a company network. At 14:02 a flood of 38 gigabits per second fills a 10 gigabit internet link. At 14:10, 71 accounts sign in with passwords leaked in another company's breach. At 14:25, six laptops in the visitor car park join a Wi-Fi network that carries the corporate name but belongs to someone else. Each event is a different threat. Each relies on a different weakness, and each needs a different control. Telling them apart quickly, and knowing which control breaks each one, is what this objective tests.
Exam objectives: 2.1 Explain common cloud and network threats, vulnerabilities, and mitigations.[1] It sits in Domain 2.0, Network Security, which carries 28 percent of the CNX-001 exam.
The objective lists 34 items in three columns: 15 threats, 8 vulnerabilities and 11 mitigations. Its verb is "explain", and that verb sets the bar. Nothing here asks you to configure anything. You must be able to say what each item is, what weakness it depends on, how a defender would notice it, and which control breaks it. Objectives 2.2 to 2.7, in Lessons 11 to 17, then turn those controls into designs and configurations.
Three words carry the objective, so pin them down first.
- A threat is an action, or an actor, that could cause harm: a flood of traffic, a guessed password, an employee copying files.
- A vulnerability is a weakness that a threat can use: a firewall rule that allows too much, a switch still running Telnet, a device with no patch for a known flaw.
- A mitigation is a control that lowers the chance that a threat succeeds, or the damage when it does.
Risk exists only where a threat can reach a vulnerability. Telnet on a switch is a weakness because it sends passwords in clear text, but it becomes a live risk only when someone can see that traffic. So every mitigation works in one of three ways. It removes the weakness (patch the device, replace Telnet with Secure Shell, SSH). It cuts the path between threat and weakness (an access control list, or ACL, segmentation, a null route). Or it limits and exposes the damage (data loss prevention, logging, multifactor authentication).
CompTIA's list is not grouped that way, so this lesson regroups it into families of related threats. Several sections compare the threats in a family with a table of the weakness each relies on, what a defender sees and the main mitigations. Other sections use a table built for their own topic, such as the three classes of flood or the four placements of a data loss control. Most families get a worked example. The vulnerabilities and the named mitigations, such as null routing, IP address management (IPAM), the Open Worldwide Application Security Project (OWASP) Top 10 and the frameworks, appear in the sections where they do their work.
Denial-of-service attacks and where the bottleneck sits
A Denial-of-service attack (DoS) makes a service unavailable by exhausting something it depends on: link bandwidth, a device's table of connections, or server processing time. A distributed denial-of-service (DDoS) attack does the same thing from many sources at once, usually hijacked machines in a botnet (a set of compromised devices under one controller) or misused public servers. A 2024 joint guide from the Cybersecurity and Infrastructure Security Agency (CISA), the Federal Bureau of Investigation (FBI) and the Multi-State Information Sharing and Analysis Center (MS-ISAC) names the practical problem: because the traffic comes from so many sources, tracing it and blocking the attacking Internet Protocol (IP) addresses becomes difficult and ineffective.[2]
DDoS attacks fall into three classes. Each exhausts a different resource, and the resource tells you where the defense has to sit.
| Class | What it exhausts | Typical form | Where it must be stopped |
|---|---|---|---|
| Volumetric | Link bandwidth | Reflection-amplification: small queries with a forged source address go to open Domain Name System (DNS) or Network Time Protocol (NTP) servers, and their much larger replies converge on the victim | Upstream of the full link: the Internet Service Provider (ISP), a scrubbing service, or a content delivery network (CDN) |
| Protocol (state exhaustion) | Connection tables in firewalls, load balancers and servers | SYN flood: Transmission Control Protocol (TCP) connections opened with a synchronize (SYN) packet and never completed, each holding a table entry | At or before the stateful device: SYN cookies, connection limits, provider filtering |
| Application layer | Server central processing unit (CPU), memory, database capacity | Floods of valid-looking Hypertext Transfer Protocol Secure (HTTPS) requests to expensive pages such as search | At the application edge: web application firewall (WAF) rules, CDN rate limits, caching, bot challenges |
The table leads to the single most useful idea in DDoS defense: a filter only helps if it sits in front of the bottleneck. Suppose a 40 gigabit per second (Gbps) flood arrives on a 10 Gbps internet link. The link is full before a packet ever reaches your router. A perfect ACL on that router drops attack packets that have already done their damage. A volumetric attack must be filtered by someone with a bigger pipe: your ISP, a scrubbing service that receives your traffic and forwards only the clean part, or a CDN that absorbs traffic across many sites.
CISA's response steps follow the same logic. They include filtering with rate limits or ACLs aimed at suspicious sources and protocols.[2] They also include activating mitigation services from the ISP or a specialist vendor.[2] NIST Special Publication (SP) 800-189 recommends three further tools: two routing-based ones, remotely triggered black hole (RTBH) filtering and flow specification (Flowspec), and one DNS-server technique, response rate limiting (RRL).[3] Flowspec uses the Border Gateway Protocol (BGP) to send a filter rule, such as "drop User Datagram Protocol (UDP) traffic from source port 123 to this address", to upstream routers, so the provider can drop just the attack traffic rather than everything. RRL works in a different place: the operators of DNS servers cap identical responses so their servers make poor reflectors.
Worked example: one flood, three targets
This incident is fictional. Harbor Outfitters, an online retailer, has one 10 Gbps internet link and the public range 203.0.113.0/24. At 14:02 the link hits 100 percent utilization and input drops climb. Harbor's own router cannot show the true size of the attack, because most of it never gets through the link. So the ISP's security team shares its view from the provider edge:
Example only: provider flow summary toward 203.0.113.0/24, 1-minute sample
Destination Proto Src port Packets/s Rate
203.0.113.50 UDP 123 9,100,000 37.9 Gbps
203.0.113.10 TCP 443 41,000 0.4 Gbps
203.0.113.25 TCP 25 2,300 0.02 Gbps
Customer access link: 10 Gbps, 100% utilized
A quick sanity check on the first row: 37.9 Gbps is about 4.7 billion bytes per second, and dividing by 9.1 million packets per second gives roughly 520 bytes per packet. These are mid-sized replies, far larger than the short queries that triggered them, which is what amplification looks like.
Run 1. UDP from source port 123 is NTP reply traffic. Harbor's servers never asked for it, so this is reflection: someone sent small NTP queries to open servers with 203.0.113.50 forged as the source, and the larger replies now converge on Harbor. The target is a staging server that customers never use. The cheapest correct action is to ask the provider to discard everything addressed to 203.0.113.50/32 at its own edge. The staging server goes dark, the flood stops entering the link, and checkout traffic to 203.0.113.10 recovers within seconds.
Run 2: change one input. Same flood, same size, but the target is 203.0.113.10, the checkout web front end. Discarding all traffic to that address would take the store offline, which is exactly what the attacker wants. Now the right move is a scrubbing service or a provider Flowspec rule: drop UDP with source port 123 toward that address and pass TCP 443. Checkout keeps working because the filter discriminates by protocol, not only by destination.
Run 3: change another. The link sits at 30 percent, yet checkout times out. The flow data now shows 1.5 Gbps of HTTPS requests for the site's search page from 9,000 addresses, each sending a few requests per second. The bandwidth is normal, but the web servers' processors are at 100 percent. This is an application-layer flood. Neither a black hole nor a protocol filter helps, because the traffic is valid HTTPS to a valid service. The fix lives at the application edge: per-client rate limits on the search page, caching of common results, and challenge pages for clients that behave like bots, usually through a WAF or the CDN.
What matters here: name the exhausted resource first. A full link needs help upstream. A full state table needs protection at or before the stateful device. Busy servers need application-aware rate limiting. Black-holing an address saves the network by giving up that address, so use it only when the address is expendable.
Null routing and remotely triggered black holes
A Null route is a routing table entry whose next hop is a discard interface. Matching packets are dropped silently, with no error sent back. Routers do route lookups at line rate, so a null route costs almost nothing, and it obeys the same longest-prefix-match rule as every other route: a /32 null route for one host overrides the /24 route for the rest of its subnet.
! Example only: Cisco IOS-style discard route for one host
ip route 203.0.113.50 255.255.255.255 Null0
# Example only: the Linux equivalent
ip route add blackhole 203.0.113.50/32
On your own router, a null route protects only the devices behind it. As Run 1 showed, it does nothing for a link that is already full. Remotely triggered black hole filtering moves the discard upstream. The customer announces the victim prefix, often a single /32, to its provider over BGP with a tag the provider has published for this purpose, called a BGP community. The provider's routers see the tag and discard the traffic at the provider's edge, where capacity is large. RFC 7999 defines a well-known BLACKHOLE community, 65535:666, though each provider documents its own rules for accepting black hole requests. Destination-based RTBH finishes the attack's work against that one address, so it is a sacrifice, not a cure. Variants that drop by source address exist, but they help only when the sources are few and genuine.
Null routes also have an everyday use with no attack involved. If you advertise a summary such as 192.0.2.0/24 but use only part of it, a discard route for the summary stops packets for unused addresses from bouncing between your router and its default route until their Time to Live (TTL) runs out. Exam stems about routing loops can point to a null route just as stems about attacks can.
Forged sources and stolen paths: IP spoofing, BGP hijacking and on-path attacks
Three threats on the list abuse the trust that routing places in addresses. What separates them is what gets forged.
| Threat | Weakness it relies on | What defenders see | Main mitigations |
|---|---|---|---|
| IP spoofing | Routers forward on destination and rarely check the source | Replies to connections you never opened; reflection floods | Source address validation (SAV) with ACLs and unicast Reverse Path Forwarding (uRPF) |
| BGP hijacking | BGP neighbors accept route announcements largely on trust | Your prefix, or a more specific slice, originated by an unexpected autonomous system (AS); traffic detours or loss | Resource Public Key Infrastructure (RPKI) route origin validation, prefix filters, maximum-prefix limits, route monitoring |
| On-path attack | Traffic that is not encrypted and authenticated end to end | Two Media Access Control (MAC) addresses claiming the gateway, unexpected Dynamic Host Configuration Protocol (DHCP) offers, certificate warnings | Transport Layer Security (TLS) with certificate validation, DHCP snooping, Dynamic Address Resolution Protocol (ARP) Inspection, 802.1X port authentication, Internet Protocol Security (IPsec) |
IP address spoofing means sending packets with a forged source address. The sender never sees the replies, because they go to the forged address. That limits what spoofing can do. Completing a TCP handshake requires seeing the server's reply, so spoofing mostly powers one-way attacks: the reflection floods above, and attempts to slip past filters that trust a source address. NIST SP 800-189 calls SAV an effective anti-spoofing technique.[3] It names two ways to implement it: ACLs and uRPF.[3]
uRPF checks each arriving packet's source address against the routing table. Strict mode accepts the packet only if the router's best route back to that source leaves through the same interface the packet arrived on. Loose mode accepts it if any route to the source exists at all.
! Example only: strict mode on a single-homed edge interface
interface GigabitEthernet0/1
ip verify unicast source reachable-via rx
! Example only: loose mode on a provider link where routing is asymmetric
interface GigabitEthernet0/2
ip verify unicast source reachable-via any
Strict mode is precise but breaks under asymmetric routing. An enterprise with two ISPs often sends traffic out through one provider and gets replies back through the other. Strict uRPF on the second link would drop those legitimate replies. Loose mode is safe there but weaker: it drops only sources with no route at all, such as unallocated space arriving from the internet. The usual design is strict mode on single-homed edges facing users and servers, loose mode on multihomed provider links, and plain ACLs for the rest. Those ACLs drop inbound packets that claim to come from your own public prefixes, and they let outbound packets leave only if the source address belongs to you. That outbound filter is the practice known as BCP 38 (Best Current Practice 38). It mostly protects other networks from your compromised hosts, which is why it works only if everyone does it.
The Border Gateway Protocol is the routing protocol that distributes and computes paths among the tens of thousands of autonomous networks that make up the internet.[3] Each such network is an AS with its own number. BGP was built on trust between neighbors: when a peer says "this prefix is reachable through me", the receiving router largely believes it. BGP hijacking exploits that trust. An AS originates a prefix it does not hold, or a more specific slice of one, and some or all of the internet sends that traffic to it. A route leak is the accidental cousin: a network passes routes learned from one provider on to another provider, against policy, and pulls traffic through itself. NIST records that hijacks and leaks have caused denial of service, traffic detours and degraded performance.[3]
The more-specific slice works because of longest prefix match. If you announce 198.51.100.0/24 and another AS announces 198.51.100.0/25, every router that accepts both sends traffic for the lower half of your range to the /25. The longer match always wins, and BGP attributes such as AS path length never get a say. By widespread operator convention, IPv4 announcements longer than /24 are filtered on the internet, so an organization that announces its space as /24s cannot be out-specified without the hijacker's route being filtered too.
NIST's recommended defenses for interdomain routing are RPKI, BGP origin validation and prefix filtering.[3] With RPKI, the holder of an address block publishes a signed Route Origin Authorization (ROA). It states which AS may originate the prefix and the longest prefix length it may announce, called the maximum length. Routers that perform route origin validation (ROV) compare each announcement with the published ROAs. The examples below use documentation AS numbers.
| Announcement seen | Origin AS | ROA on record | ROV result |
|---|---|---|---|
| 198.51.100.0/24 | AS64500 | 198.51.100.0/24, maximum length 24, AS64500 | Valid |
| 198.51.100.0/25 | AS64501 | 198.51.100.0/24, maximum length 24, AS64500 | Invalid: wrong origin, and longer than the maximum length |
| 192.0.2.0/24 | AS64502 | None published | Not found: no ROA covers it, so ROV cannot judge |
A network that drops Invalid routes is protected from the /25 in the second row. Notice what ROV does not check: it looks only at the origin AS. An announcement that forges a path ending in the correct origin AS passes ROV. That is why work on path validation continues, and why monitoring who announces your prefixes stays part of the design. Prefix filters on customer and peer sessions, plus a maximum-prefix limit that shuts a session when a neighbor suddenly sends thousands of routes, catch many leaks before validation is even needed.
An on-path attack, which older material calls a man-in-the-middle attack, places an attacker between two parties so that their traffic flows through the attacker, who can read, alter or drop it. The position can be gained at almost any layer. Examples include forged ARP replies that claim the gateway's IP address on a local area network (LAN), a rogue DHCP server that hands out the wrong default gateway, an evil twin access point, a tampered DNS answer, or a BGP hijack at internet scale.
The mitigations follow the layer. On switches, DHCP snooping marks which ports may send DHCP offers, and Dynamic ARP Inspection drops ARP replies that contradict the snooping table. 802.1X keeps unknown devices off access ports. Above all, authenticated end-to-end encryption, either TLS with proper certificate validation or IPsec, makes the position worthless. The attacker can still relay packets but cannot read or change them without failing the certificate check. That is why HTTP Strict Transport Security (HSTS), which tells browsers never to fall back to plain Hypertext Transfer Protocol (HTTP) for a site, matters, and why users must not click through certificate warnings. Atlas's Security+ course covers the switch features in more detail.
What matters here: spoofing forges the source of a packet and is stopped by source address validation. BGP hijacking forges the origin of a route and is stopped by RPKI origin validation and prefix filters. An on-path attack takes a position in the path and is defeated by authenticated encryption.
Wireless threats: the evil twin, the rogue access point and the initialization vector attack
Two wireless threats on the list sound alike and are opposites in one important respect: which network they are attached to. Four terms first. The Service Set Identifier (SSID) is a wireless network's name. The Basic Service Set Identifier (BSSID) is the MAC address of one access point's radio, so every real access point (AP) has its own. A wireless intrusion prevention system (WIPS) uses radio sensors to spot, and if allowed, contain unauthorized radios. Network access control (NAC) decides whether a device may join the network at all.
| Question | Rogue access point | Evil twin |
|---|---|---|
| What is it? | An AP attached to your wired network without authorization | An AP that imitates your network's SSID |
| Connected to your wired LAN? | Yes, that is what makes it dangerous | Usually not; it often connects to its own uplink |
| Whom does it endanger? | Your network: it opens a path onto the LAN that skips the perimeter and NAC | Your clients: it lures them into associating with it |
| Typical origin | Often an employee plugging in a consumer AP for convenience | Deliberate impersonation, often in a car park, lobby or public venue |
| How it is found | WIPS correlating radio sightings with switch MAC tables; unknown devices on switch ports | WIPS seeing your SSID from a BSSID not in the managed inventory |
| Key mitigations | 802.1X on wired ports, port security, wired-side NAC, regular wireless surveys | 802.1X with enforced server certificate validation on clients, WIPS containment, user awareness |
A Rogue access point is a hole in the wall. Picture a conference room where Wi-Fi is weak, and someone plugs a consumer AP into the wall jack. Every device that joins it is now on the wired LAN, inside the firewall, without having passed NAC. The fix is mostly on the wired side: 802.1X on access ports means the AP itself gets no network access, and a WIPS flags any radio whose wired MAC address appears in a switch's MAC table.
An Evil twin attacks clients instead. It broadcasts your SSID, often with a stronger signal than your real APs. Clients that join it hand their traffic to it, which puts the attacker on-path. A fake login page that asks for credentials is a common variation. The strongest defense is 802.1X with the Extensible Authentication Protocol (EAP), configured so that managed clients verify the authentication server's certificate. Clients then refuse any network whose server cannot prove its identity with a certificate from your certificate authority. For networks that use a pre-shared key (PSK), Wi-Fi Protected Access 3 (WPA3) and its Simultaneous Authentication of Equals (SAE) handshake resist offline guessing of the passphrase. But anyone who knows the passphrase can still stand up a twin, so a shared passphrase never proves which access point you have joined.
An initialization vector (IV) is a value fed into an encryption algorithm along with the key so that the same key does not produce the same keystream twice. The IV need not be secret, but in a stream cipher it must never repeat under the same key. Wired Equivalent Privacy (WEP), the original 802.11 security, failed that second requirement. Its IV was only 24 bits, sent in clear text in every frame (which is allowed) and combined with a shared key that rarely changed. Twenty-four bits gives 224, about 16.8 million values, and a busy network uses them up within hours, so the same IV and key pair comes round again.
Why is a repeat so damaging? When two frames are encrypted with the same keystream, combining the two ciphertexts with exclusive OR (XOR) cancels the keystream and leaves the XOR of the two plaintexts, which leaks a great deal. Worse, certain IV values leaked information about the key itself through weaknesses in the RC4 stream cipher, so collecting enough frames was enough to recover the key outright. An initialization vector attack is any attack that exploits weak, predictable or repeated IVs in this way.
The Temporal Key Integrity Protocol (TKIP), introduced with the first Wi-Fi Protected Access (WPA), was a stopgap built to run on WEP-era hardware. It lengthened the sequence counter to 48 bits and mixed a fresh key for every packet, but it kept RC4 and is now deprecated. Wi-Fi Protected Access 2 (WPA2) replaced it with the Advanced Encryption Standard (AES) in CCMP (Counter Mode with Cipher Block Chaining Message Authentication Code Protocol), and WPA3 also uses AES. The lesson reaches beyond Wi-Fi. AES in Galois/Counter Mode, used by TLS and IPsec, also fails badly if a nonce (a number used once, the same idea as an IV) repeats under one key. In 2017 the Key Reinstallation Attacks (KRACK) research showed that WPA2 clients could be tricked into reinstalling a key and reusing nonces until their software was patched.
The defender's checklist is short. Disable WEP and TKIP, including the "WPA/WPA2 mixed" or "TKIP and AES" modes that stay switched on for one old device. Put legacy devices that cannot do AES on their own SSID and Virtual Local Area Network (VLAN) behind a firewall, and plan to replace them. Keep AP and client firmware patched.
What matters here: a rogue AP is unauthorized and on your wire, so fix it on the wired side. An evil twin imitates your SSID to capture clients, so fix it with certificate-validated 802.1X and WIPS. IV attacks punish short or repeated IVs, so retire WEP and TKIP.
Attacks on credentials and people: brute force, credential reuse and social engineering
A Brute-force attack guesses credentials systematically until one works. It happens in two settings. Online, guesses go to a live login page, a virtual private network (VPN) portal or an SSH service, so the defender can see and throttle each attempt. Offline, the attacker has already stolen a file of password hashes and guesses against it on their own hardware, where no lockout applies. The defenses there are slow, salted password hashing and long passphrases, chosen long before any attack. A common online variant is password spraying: one or two common passwords tried against many accounts, slowly enough that no single account reaches its lockout threshold.
Credential reuse is the habit of using the same username and password on more than one service. It turns into a threat when another service is breached and its leaked username and password pairs are replayed against yours. That replay, automated at scale, is Credential stuffing. Each account is tried once, with the password that user really chose elsewhere, which is why it succeeds far more often than guessing.
NIST's draft incident response profile recommends monitoring authentication attempts to spot attacks on credentials and unauthorized credential use.[4] Here is what that monitoring might show in a fictional summary of one night:
Example only: sign-in failures, 02:00-02:30 UTC
Pattern Accounts Attempts/account Distinct passwords Source IPs Successes
A 1 1,840 1,840 1 0
B 412 1 1 3 2
C 2,960 1 2,960 1,150 71
Note: in pattern A the account is svc-backup (exempt from lockout)
Note: in pattern C, 38% of usernames do not exist in the directory
Classify each pattern with three questions: how many accounts, how many passwords per account, and how many sources.
- Pattern A is classic brute force: one account, many guesses, one source. Lockout would normally stop it, so it went for a service account exempt from lockout. Organizations often exempt service accounts so that applications do not break, which makes them attractive targets. The durable fix is to block interactive sign-in for service accounts and authenticate them with certificates or managed identities instead of passwords.
- Pattern B is password spraying. Each account saw one failure, so lockout never fired. Detection has to aggregate across accounts: hundreds of single failures from a handful of sources in a short window. Two successes means two people used that common password. Reset both, and revoke their active sessions.
- Pattern C is credential stuffing driven by reuse. Its success rate is 71 of 2,960, or 2.4 percent, against 2 of 412, or 0.5 percent, for spraying, because the passwords were real ones. The attempts are spread over 1,150 addresses, so per-address rate limits barely bite. The giveaway is the usernames that do not exist in your directory: the list was built from someone else's breach.
| Control | Brute force (A) | Spraying (B) | Stuffing (C) |
|---|---|---|---|
| Account lockout or progressive delay | Stops it, unless the account is exempt | No effect: one try per account | No effect: one try per account |
| Multifactor authentication (MFA) | A correct guess is not enough | A correct guess is not enough | A valid leaked password is not enough |
| Screening passwords against breached and common lists | Helps a little | Strong: sprayed passwords are common ones | Strong: leaked passwords are on the lists |
| Per-source rate limiting | Strong | Partial | Weak: sources are widely spread |
| Detection across accounts in a security information and event management (SIEM) system | Yes | Essential | Essential |
Single sign-on (SSO) and password managers reduce reuse at the source, because users have fewer passwords to remember and less reason to repeat one. Lessons 14 and 15 cover SSO, MFA and conditional access in depth.
A Social engineering attack manipulates a person rather than a system. Phishing email, targeted spear phishing, voice calls (vishing), text messages (smishing), invented pretexts and following someone through a badge door (tailgating) all exploit authority, urgency, fear or helpfulness. The technical controls still matter: email authentication with SPF, DKIM and DMARC (Sender Policy Framework, DomainKeys Identified Mail, and Domain-based Message Authentication, Reporting and Conformance) to make spoofed senders easier to reject, link and attachment filtering, and phishing-resistant MFA so a captured password is not enough. But the decisive control is procedural. Any request to change payment details, reset MFA or grant access is verified through a second channel the requester did not supply, such as a call back to the number already on file. Training with realistic exercises builds the habit, and least privilege limits what one deceived person can give away.
Threats from inside the trust boundary: privilege escalation, insider threat and data exfiltration
| Threat | Weakness it relies on | What defenders see | Main mitigations |
|---|---|---|---|
| Privilege escalation | Unpatched local flaws, excessive permissions, credentials left in scripts | Unexpected role or group changes, new administrator sessions, exploit alerts from endpoint detection and response (EDR) tools | Least privilege, patching, privileged access management (PAM) and just-in-time (JIT) access, cloud infrastructure entitlement management (CIEM) |
| Insider threat | Legitimate access used against the organization | Activity that is authorized but unusual for that person: volume, timing, data touched | Least privilege, separation of duties, prompt deprovisioning, user and entity behavior analytics (UEBA), data loss prevention (DLP) |
| Data exfiltration | Unmonitored outbound paths and over-shared storage | Large or unusual uploads, new destinations, odd DNS patterns, public sharing links | DLP controls, egress filtering, a cloud access security broker (CASB), flow baselines |
Privilege escalation is gaining more rights than you were granted. Vertical escalation moves up, from a standard user to an administrator or root. Horizontal escalation moves sideways, from one user's data to another user's at the same level. On-premises, escalation usually comes from an unpatched local flaw, a service running with too many rights, or a password embedded in a script. In cloud environments the classic case is an identity whose permissions let it edit its own policy or attach a more powerful role to itself. CIEM tools look for exactly those paths. Detection watches for role changes and new privileged sessions, and Lesson 15 covers PAM and JIT access.
An Insider threat comes from someone who already holds legitimate access: a current or former employee, a contractor or a partner. It can be malicious, careless, or the work of an outsider using an insider's compromised account. It is hard because the traffic is authorized: the firewall allowed it and the account was valid. Controls therefore limit what any one person can do (least privilege, separation of duties, removing access on the day someone leaves) and watch for behavior that is unusual for that person. UEBA builds a baseline for each user and device and flags departures from it, such as an engineer who suddenly reads ten times the usual volume of design files.
Data exfiltration is the unauthorized transfer of data out of the organization. It is often the final goal of both external intrusions and insider cases. The channels vary: uploads to personal cloud storage, email to personal accounts, data hidden in DNS queries, a storage bucket made public, or a disk snapshot shared with an outside cloud account. NIST's draft profile lists email, web, file sharing and collaboration services as the vectors to monitor for phishing, data leaks and exfiltration.[4]
Data loss prevention controls are the objective's named mitigation. A DLP system identifies sensitive data and applies a policy when that data moves. It identifies data in three main ways: patterns (a 16-digit number that passes the card-number checksum), fingerprints of specific documents or database records, and classification labels applied by users or tools. When a policy matches, it can alert, block, encrypt, quarantine, or ask the user for a business justification. Placement decides what it can see.
| DLP placement | What it sees | Good at | Blind spot |
|---|---|---|---|
| Endpoint agent | Files, clipboard, USB, printing and uploads on the managed device | Removable media and local copying | Unmanaged and personal devices |
| Network or proxy | Traffic crossing a mail gateway or web proxy | Email attachments and web uploads | Encrypted traffic, unless TLS inspection is in place |
| Cloud, often via a CASB | Data in Software as a Service (SaaS) applications and cloud storage, through application programming interfaces (APIs) or inline | Public sharing links, uploads to unsanctioned apps | Services the CASB does not integrate with |
DLP works best alongside egress control. Servers should send DNS only to internal resolvers and reach the internet only through a proxy, so a DNS tunnel or a direct upload has nowhere to go. Flow baselines flag the host that suddenly sends 14 GB to a destination it has never contacted before.
What matters here: inside threats use access that was legitimately granted, so the controls shrink that access, watch for behavior that is unusual for the person, and inspect what leaves. DLP decides by what the data is and where it is going, not by port.
Out-of-band attacks: two meanings, two sets of defenses
The objective lists "out-of-band (OOB) attack" without defining it, and the phrase is used in two senses. Learn both. Exam stems give themselves away through their context.
Attacks on out-of-band management. Lesson 19 covers OOB management: console servers, cellular modems on remote racks, and the baseboard management controllers (BMCs) built into servers, which run the Intelligent Platform Management Interface (IPMI) or a vendor equivalent. These paths exist so you can reach equipment when the production network is down. That makes them extremely powerful. A BMC can power-cycle a server, mount installation media and read its console, all below the operating system and outside every production firewall. If one is reachable from the wrong place, everything the production controls protect can be bypassed. Mitigations: put management interfaces on an isolated management network that is never reachable from the internet, require MFA and central authentication, authorization and accounting (AAA) through TACACS+ (Terminal Access Controller Access Control System Plus) or RADIUS (Remote Authentication Dial-In User Service) for console servers, change every default credential, patch BMC and console server firmware like any other device, and send a log of every OOB session to the SIEM.
Out-of-band data channels. In application security, an out-of-band technique gets its result back through a different channel from the one the request used. A vulnerable server is tricked into making a DNS lookup or HTTP request to an outside host, and the data rides along in that request. Defenders see unexpected outbound DNS queries or connections from servers that should never start them. Mitigations: validate input so the server cannot be steered (server-side request forgery, or SSRF, now sits inside OWASP's Broken Access Control category), block servers from making arbitrary outbound connections, force DNS through internal resolvers that log queries, and alert on newly seen external domains.
Application weaknesses: buffer overflows, the OWASP Top 10 and input sanitization
A Buffer overflow happens when a program writes more data into a fixed-size block of memory than it can hold, so the excess overwrites whatever sits next to it. If the overwritten memory holds control data, such as the address a function returns to, the result can be a crash (a denial of service) or execution of code supplied by the attacker. Network devices are exposed because their protocol parsers are often written in memory-unsafe languages such as C. OWASP lists buffer overflows among the common weaknesses described by multiple Common Weakness Enumeration (CWE) entries, alongside lack of validation and cleartext storage of sensitive data.[5]
The mitigations come in layers. Writing new code in memory-safe languages and bounds-checking every copy removes the bug class. Compiler and operating system protections (stack canaries, non-executable memory, address space layout randomization) make exploitation harder but leave the bug in place. Validating input length and format at the boundary refuses oversized data before it reaches the parser. Fuzz testing finds overflows before attackers do. For the network architect, the practical control is patching: most buffer overflows you will meet are vendor flaws in firewalls, VPN gateways and routers, fixed by firmware updates.
OWASP is a nonprofit foundation, and its Top 10 is an awareness document listing the most critical web application security risks. The 2025 edition is the eighth.[5] The exam objectives date from 2023, so questions may use 2021 names. Learn both, using the changes OWASP itself describes.
| 2025 category | Relation to the 2021 edition | Where the network team helps |
|---|---|---|
| A01 Broken Access Control | Still first; SSRF (A10 in 2021) folded in | Authorization at API gateways; egress rules that stop servers reaching internal ranges and cloud metadata services |
| A02 Security Misconfiguration | Up from fifth | Hardening baselines, configuration reviews, infrastructure as code (IaC) checks |
| A03 Software Supply Chain Failures | Expands A06:2021 Vulnerable and Outdated Components | Software inventory, signed images, controlled repositories |
| A04 Cryptographic Failures | Was second in 2021 | TLS policy, key management, retiring weak protocols |
| A05 Injection | Was third in 2021; includes cross-site scripting | WAF rules as a backstop to input handling in code |
| A06 Insecure Design | Down from fourth | Threat modeling during architecture work |
| A07 Authentication Failures | Same rank; was Identification and Authentication Failures | SSO, MFA, rate limits on login endpoints |
| A08 Software or Data Integrity Failures | Same rank; was Software and Data Integrity Failures | Signed updates, protected continuous integration and continuous deployment (CI/CD) pipelines |
| A09 Security Logging and Alerting Failures | Same rank; was Security Logging and Monitoring Failures | Central logging into a SIEM, alert tuning |
| A10 Mishandling of Exceptional Conditions | New in 2025 | Designs that fail closed when a component errors |
OWASP reports that Security Misconfiguration moved from fifth place in 2021 to second in 2025.[5] It describes Software Supply Chain Failures as an expansion of the 2021 Vulnerable and Outdated Components category to cover a broader range of compromises.[5] Cross-site scripting, usually abbreviated XSS, now falls under Injection; CompTIA's acronym list prints it as XXS, so expect either spelling.
Input sanitization is the objective's name for treating every input as untrusted and handling it safely. In practice it has four parts, and the first three matter most:
- Validate against an allow list. Check the type, length, format and range you expect, and reject everything else. Trying to strip out known-bad characters (a deny list) always misses something.
- Keep data out of code. Use parameterized queries so the database receives the query structure and the user's data separately. The data can then never be read as part of the command.
- Encode output for its context. Data placed into HTML, a URL or JavaScript is encoded for that destination, which is the main defense against cross-site scripting.
- Normalize before checking. Decode and canonicalize input first, so an encoded form cannot slip past validation.
Here is what the first two look like in a fictional search function. Column names cannot be passed as parameters, so the sort field is checked against an allow list instead.
# Example only: Python-style pseudocode
ALLOWED_SORT = {"name", "price", "date"}
def search(conn, term, sort):
if len(term) > 64:
raise ValueError("search term too long")
if sort not in ALLOWED_SORT:
sort = "name"
sql = "SELECT id, name FROM products WHERE name LIKE %s ORDER BY " + sort
return conn.execute(sql, ("%" + term + "%",))
A WAF in front of an application can block many injection attempts and can add a temporary rule while a fix is written. It is a backstop, not a replacement for correct code.
Configuration weaknesses: reviewing a real-looking rule set
Five items in the vulnerabilities column are configuration problems: overly permissive rules, legacy ACLs, insecure protocols, misconfigurations and IP reuse. The fastest way to learn them is to find them. Below is a fictional inbound network ACL for a cloud subnet that hosts a web tier and a management jump host. Rules are evaluated lowest number first, and the first match wins, as in many router ACLs and cloud network security groups. The rules mention three management protocols: Telnet, which carries a whole session in clear text; the Simple Network Management Protocol (SNMP) version 2c, used for device monitoring; and SSH, which encrypts the session.
| Rule | Protocol | Port | Source | Action | Hits (90 days) | Description |
|---|---|---|---|---|---|---|
| 100 | TCP | 443 | 0.0.0.0/0 | Allow | 1,204,331 | Public web |
| 110 | TCP | 22 | 0.0.0.0/0 | Allow | 18,902 | temp vendor access 2021 |
| 120 | TCP | 23 | 10.20.0.0/16 | Allow | 312 | switch mgmt |
| 130 | UDP | 161 | 10.0.0.0/8 | Allow | 88,410 | monitoring, SNMPv2c |
| 140 | Any | Any | 198.51.100.17/32 | Allow | 0 | partner VPN 2020 |
| 150 | TCP | 22 | 192.0.2.0/24 | Deny | 0 | block scanner range |
| 4096 | Any | Any | 0.0.0.0/0 | Deny | 2,771,045 | default deny |
Work down the list.
- Rule 100 is fine. A public web tier must accept HTTPS from anywhere; "from anywhere" is not wrong in itself when the service really is public.
- Rule 110 is an overly permissive rule and a legacy rule at once. SSH from the whole internet to a management host means anyone can try passwords against it. The 18,902 hits are probably mostly strangers scanning and guessing, but check the logs before you assume, because some may be the vendor or your own staff. A "temporary" rule from 2021 outlived its purpose. Fix: allow SSH only from the corporate VPN range or a bastion service, and give every rule an owner and an expiry date.
- Rule 120 permits Telnet, an insecure protocol, and the 312 hits show someone still uses it, sending switch credentials in clear text across the network. Fix: enable SSH on the switches, migrate the users, then remove the rule.
- Rule 130 carries SNMPv2c, whose community string (its shared password) travels in clear text, and allows it from the entire 10.0.0.0/8 range rather than from the monitoring servers. Fix: SNMPv3 with authentication and encryption, sourced only from the monitoring hosts.
- Rule 140 is a legacy ACL with an IP reuse risk. The partnership is over and the rule has zero hits, but it still grants everything to one address. If the partner gave that address back to its provider, whoever is assigned it next inherits full access. Fix: confirm with the rule's owner, then delete it.
- Rule 150 is a misconfiguration called a shadowed rule. It is meant to deny SSH from 192.0.2.0/24, but rule 110 above it already allows SSH from everywhere, so this deny can never match. Its zero hit count is the clue. Fixing rule 110 also fixes this.
A Legacy ACL in exam language is a rule set that has grown by accretion: rules nobody remembers adding, rules that point at decommissioned servers, rules for projects that ended, rules shadowed by broader ones. Each one widens the attack surface without serving anyone. Hit counters, owners and expiry dates turn the cleanup from archaeology into routine.
Insecure protocols have standard replacements, and these are worth memorizing as pairs.
| Insecure protocol | Usual port | Problem | Replacement |
|---|---|---|---|
| Telnet | TCP 23 | Credentials and session in clear text | SSH, TCP 22 |
| File Transfer Protocol (FTP) | TCP 21 | Credentials and data in clear text | SFTP (the SSH File Transfer Protocol) or FTPS (FTP over TLS) |
| Trivial File Transfer Protocol (TFTP) | UDP 69 | No authentication at all | Secure Copy Protocol (SCP) or SFTP; HTTPS for firmware images |
| HTTP | TCP 80 | Clear text, open to on-path tampering | HTTPS, TCP 443, with HSTS |
| SNMPv1 and SNMPv2c | UDP 161 | Community string in clear text, no encryption | SNMPv3 with authentication and privacy |
| Lightweight Directory Access Protocol (LDAP) without TLS | TCP 389 | Directory binds can expose credentials | LDAPS (LDAP over TLS) on TCP 636, or StartTLS |
| Secure Sockets Layer (SSL) 3.0, TLS 1.0 and 1.1 | Varies | Deprecated versions with known weaknesses | TLS 1.2 or 1.3 |
Misconfiguration is the broad category: default credentials left in place, a storage bucket set to public, logging switched off, unneeded services listening, a management interface exposed. The defense is to define a secure baseline and continuously compare reality against it. NIST's draft profile recommends monitoring hardware and software configurations for deviations from security baselines.[4]
That is what a configuration review does. It compares each device's actual settings with two references: a hardening baseline such as a Center for Internet Security (CIS) Benchmark, and the intended design recorded in your architecture documents (Lesson 9). Reviews run on a schedule, after every significant change, and continuously where tools can detect drift. In cloud environments, scanning IaC templates before deployment catches a public bucket or an open security group before it ever exists.
IP reuse and IP address management
"IP reuse" covers two related weaknesses, and both come from losing track of who owns an address.
- Reassigned public addresses. Cloud providers return public IP addresses to a shared pool when you release them, and another customer may receive them later. If an allow list, a partner's firewall or a DNS record still points at the old address, that trust or traffic now goes to a stranger. A DNS name still pointing at a released address is called a dangling record. Whoever receives the address can serve content under your name.
- Overlapping private ranges. When two sites, two acquired companies or two cloud virtual networks reuse the same private range, say 10.0.0.0/16, they cannot be peered or routed together without Network Address Translation (NAT). Logs that record 10.0.4.20 no longer identify one machine, and investigations stall.
IP address management is the mitigation the objective pairs with it. An IPAM system is the authoritative record of every block, subnet and assignment, with its owner, purpose, and links to DNS and DHCP. It prevents overlaps by allocating new cloud and site ranges from one plan. It makes release safe, because before an address goes back to the provider you can see every DNS record and rule that references it. And it supports detection: when a device appears at an address IPAM says is unassigned, that is a lead worth following, whether it turns out to be a rogue device or simply a stale record.
What matters here: most network vulnerabilities are configuration debt: rules that allow too much, rules nobody owns, protocols that send secrets in clear text, and addresses whose ownership changed. Hit counts, baselines, owners, expiry dates and an IPAM record are what keep that debt from growing.
Unpatched devices and zero-days: patch management inside vulnerability management
These two vulnerabilities differ on one fact: does a fix exist yet? A Zero-day vulnerability is a flaw that attackers exploit, or that becomes public, before the vendor has released a fix. The name counts the days the vendor has had to respond: zero. An unpatched device has a flaw for which a fix already exists but has not been applied. In practice the second is far more common.
Devices past end-of-support (EOS) are a third case. Their known flaws will never be fixed, because the vendor has stopped issuing updates. These unfixable known vulnerabilities are sometimes called forever-days. Strictly they are not zero-days, because the flaw is already known and the vendor has chosen not to fix it. On the exam, keep the strict meaning: a zero-day is a flaw for which no fix exists yet.
The CISA DDoS guide gives one reason to patch network gear that is easy to forget: vulnerable systems can be exploited to amplify a DDoS attack.[2] An unpatched device is a risk to others as well as to you.
Patch management and vulnerability management are not the same, and the exam tests the difference.
| Question | Patch management | Vulnerability management |
|---|---|---|
| Scope | Vendor software and firmware updates | Every kind of weakness: flaws, misconfigurations, weak protocols, design gaps |
| Steps | Track releases, test, schedule, deploy, confirm installation | Discover assets, scan, validate, prioritize by risk, remediate, verify, report |
| Remediation methods | Install the update | Patch, reconfigure, add a compensating control, replace, or formally accept the risk |
| Relationship | One remediation method | The overall cycle that contains patch management |
NIST's draft incident response profile places vulnerability work under risk assessment, in the requirement that vulnerabilities in assets be identified, validated and recorded.[4] Its notes add that the inventory should cover software misconfigurations and network design weaknesses as well as software flaws. Prioritization is where most of the skill lies. A scanner that reports 2,400 findings has not told you what to do first. Here is a fictional ranking:
| Finding | Asset and exposure | Known exploited? | Fix available? | Decision |
|---|---|---|---|---|
| Remote code execution flaw in VPN gateway firmware | Two gateways, internet-facing | Yes | Yes | Priority 1: emergency change within days |
| TLS 1.0 enabled on an internal application | Internal, many users | Not applicable | Configuration change | Priority 2: next maintenance window |
| Same firmware flaw on lab routers | Isolated lab network | Yes | Yes | Priority 3: normal patch cycle |
| Access switch model past end-of-support | Internal, 140 switches | One published flaw | No, and none will come | Compensating controls now (management ACLs, SSH only); budget replacement |
The ranking uses exposure, evidence of real-world exploitation and asset importance, not severity score alone. CISA's Known Exploited Vulnerabilities catalog is a common source for the "known exploited" column.
A zero-day leaves only the compensating controls. Shrink the exposure: take the management interface off the internet, restrict which sources can reach the vulnerable service. Segment, so a compromised device cannot reach much. Watch for behavior rather than signatures, because no signature exists yet. Apply the vendor's interim mitigation guidance, and add a temporary intrusion prevention system (IPS) or WAF rule once indicators are published, a practice often called virtual patching. Then check for signs of compromise that began before the disclosure, because a zero-day may have been in use for some time before anyone announced it.
What matters here: ask whether a fix exists. No fix yet means a zero-day and compensating controls. A fix not yet applied means an unpatched device and a faster patch process. A fix that will never come means an end-of-support device, compensating controls and a replacement budget.
Frameworks that organize defense: MITRE ATT&CK, the Cyber Kill Chain, the Cloud Controls Matrix and CIS Benchmarks
The last four mitigations are not controls you switch on. They are frameworks for deciding which controls you need and checking whether you have them. Each answers a different question.
| Framework | Publisher | What it is | Question it answers |
|---|---|---|---|
| MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) | MITRE | A knowledge base of adversary tactics (goals) and techniques (methods) drawn from observed attacks, arranged as a matrix | Which attacker behaviors can we detect or prevent, and where are the gaps? |
| Cyber Kill Chain | Lockheed Martin, 2011 | A seven-phase model of an intrusion: reconnaissance, weaponization, delivery, exploitation, installation, command and control, actions on objectives | At which stage can we break this intrusion? |
| Cloud Controls Matrix (CCM) | Cloud Security Alliance (CSA) | A catalog of cloud security control objectives grouped into domains and mapped to other standards | Are the cloud controls in place, and does the provider or the customer own each one? |
| CIS Benchmarks | Center for Internet Security | Prescriptive secure configuration settings for specific products and versions | Is this device or service configured securely? |
MITRE ATT&CK is organized by tactic, the attacker's goal at a given step, such as Initial Access, Credential Access, Privilege Escalation, Lateral Movement or Exfiltration. Under each tactic sit techniques, the specific methods, each with an identifier: T1110 is Brute Force, with Password Spraying and Credential Stuffing as sub-techniques. It is not a sequence. Attackers move around the matrix in any order. Its main defensive use is coverage mapping: list your detections and controls against the techniques, and the empty cells show your gaps.
The Cyber Kill Chain is older and simpler. Its central claim is that an intrusion must complete every phase, so breaking any link stops it, and the earlier the better. NIST's draft profile makes the same point about detection, urging organizations to find incidents earlier in the attack life cycle.[4] The model's weakness is that it was built around malware delivered across a perimeter. Insider threats, cloud misconfigurations and attacks that simply log in with stolen credentials fit it poorly, because several phases never happen.
The Cloud Controls Matrix from the CSA is the cloud-specific control framework on the list. Each control objective is mapped to other standards, so one assessment can serve several audits, and the matrix guides who owns each control under the shared responsibility model. Its companion questionnaire, the Consensus Assessments Initiative Questionnaire (CAIQ), is how many cloud providers document their answers, which makes the CCM a natural tool when you assess a provider or a SaaS vendor.
CIS Benchmarks are, in the Center for Internet Security's words, "consensus-developed, industry best practices for securely configuring operating systems, cloud services, applications, networks, and more."[6] A benchmark exists per product and version, and it states exact settings with the reasoning, often in two profiles: Level 1 for broadly safe basics and Level 2 for stricter settings that may affect function. Benchmarks are the usual baseline for the configuration reviews described above. They are distinct from the CIS Controls, a prioritized list of safeguards for a whole security program. The frameworks connect: CIS has mapped the Safeguards in CIS Controls version 8 to MITRE Enterprise ATT&CK version 8.2.[6]
To see how the first two frameworks differ in use, map one fictional incident across both. An employee receives a phishing email, enters their password on a fake sign-in page, and the attacker uses it to log in to the VPN. There, the attacker exploits an unpatched server to gain administrator rights and uploads customer files to a cloud storage site.
| What happened | Kill Chain phase | ATT&CK tactic (technique) | Where it could have been broken |
|---|---|---|---|
| Staff names gathered from public profiles | Reconnaissance | Reconnaissance | Hard to prevent; awareness training |
| Phishing email delivered | Delivery | Initial Access (T1566 Phishing) | Email filtering, SPF, DKIM and DMARC |
| Password typed into fake page and replayed at the VPN | Exploitation | Initial Access (T1078 Valid Accounts) | Phishing-resistant MFA on the VPN |
| Unpatched server exploited for administrator rights | Exploitation, then installation | Privilege Escalation (T1068 Exploitation for Privilege Escalation) | Patch management; least privilege |
| Files uploaded to a cloud storage site | Actions on objectives | Exfiltration (T1567 Exfiltration Over Web Service) | DLP and CASB; egress control |
The Kill Chain column shows the weakness noted above: "weaponization" and "installation" barely apply to a credential theft, so the phases blur. The ATT&CK column is more precise and tells a detection engineer exactly which behaviors to look for. ATT&CK technique identifiers are revised over time, so check the current matrix before you rely on a specific ID.
What matters here: ATT&CK describes attacker behavior technique by technique for detection coverage. The Kill Chain describes an intrusion as a sequence to break early. The CCM checks cloud controls and their ownership. CIS Benchmarks state exact secure settings for one product.
Exam cues: what the stem says and what it points to
| If the stem says | Think | Not to be confused with |
|---|---|---|
| Corporate SSID seen in the car park, not on any switch port, clients joining it | Evil twin | Rogue AP, which is on your wired network |
| Unauthorized AP plugged into a wall jack | Rogue access point | Evil twin, which imitates your SSID |
| WEP, 24-bit value, repeated keystream | Initialization vector attack | Brute force against the passphrase |
| One account, thousands of guesses | Brute-force attack | Password spraying, which is many accounts, one password |
| Passwords leaked from another company's breach work here | Credential reuse (credential stuffing) | Brute force, which guesses |
| Forged source address, replies go elsewhere | IP spoofing; fix with SAV and uRPF | BGP hijacking, which forges route origin |
| Your prefix, or a more specific slice, announced by another AS | BGP hijacking; fix with RPKI and ROV | Route leak, an accidental re-announcement |
| Traffic to one address discarded at the provider edge during a flood | Null routing or RTBH | Scrubbing, which keeps legitimate traffic flowing |
| Link full, local ACL not helping | Upstream mitigation: ISP or scrubbing service | Local firewall tuning |
| Flaw exploited or disclosed, and no fix exists yet | Zero-day | Unpatched device (fix exists) or end-of-support device (fix will never come) |
| Find, prioritize, remediate by any means, rescan | Vulnerability management | Patch management, one remediation method |
| Rule from years ago, no hits, references a released address | Legacy ACL with IP reuse risk | Overly permissive rule, which is too broad |
| Any-to-any rule, or SSH open to 0.0.0.0/0 | Overly permissive rule | Misconfiguration in general |
| Telnet, FTP, TFTP, SNMPv1 or v2c | Insecure protocols | Unpatched devices |
| Employee with valid access copies data before leaving | Insider threat; DLP and UEBA | Privilege escalation, which gains new rights |
| Prevent overlapping subnets, track every assignment | IPAM | DHCP alone |
| Map detections to attacker techniques | MITRE ATT&CK | Cyber Kill Chain, seven sequential phases |
| Assess a cloud provider's controls | Cloud Controls Matrix | CIS Benchmarks, which are per-product settings |
| Exact hardening settings for a specific operating system version | CIS Benchmark | CIS Controls, which are program-level safeguards |
| Validate length and type, parameterize queries | Input sanitization | WAF alone |
| Console server or BMC reachable from the wrong network | Out-of-band attack on management | On-path attack |
Common misconceptions
- "A good ACL on my edge router will stop a DDoS." Not a volumetric one. If the flood exceeds the link, the link is full before packets reach the router, so filtering must happen upstream at the ISP, a scrubbing service or a CDN.
- "A rogue AP and an evil twin are the same thing." A rogue AP is an unauthorized device on your wired network and endangers the network. An evil twin imitates your SSID, usually without touching your network, and endangers your clients. The fixes differ accordingly.
- "WPA3 makes evil twins impossible." SAE protects a passphrase from offline guessing, but anyone who knows a shared passphrase can still run a convincing twin. Proof of the network's identity comes from 802.1X with server certificate validation.
- "Zero-day just means a serious unpatched bug." A zero-day has no fix yet. If a patch exists and has not been installed, it is an unpatched device, and the remedy is a faster patch process. If the device is end-of-support, the known flaw will never be fixed, and the remedy is compensating controls plus replacement.
- "RPKI stops BGP hijacking." Route origin validation checks only the origin AS against published ROAs, and it protects only networks that drop Invalid routes. It does not validate the rest of the path, so prefix filters and monitoring are still needed.
- "Patch management is our vulnerability management." Patching is one remediation method. Vulnerability management also covers misconfigurations, weak protocols and devices that cannot be patched, and it includes prioritization and verification.
Summing up
- A DDoS filter must sit in front of the bottleneck: volumetric floods need the ISP, a scrubbing service or a CDN, protocol floods need protection at the stateful device, and application-layer floods need WAF or CDN rate limiting.
- A null route discards traffic to a destination; RTBH asks the provider to do it at its own edge, which saves the link by sacrificing the targeted address.
- Source address validation stops IP spoofing through ACLs and uRPF; strict uRPF breaks under asymmetric routing, so multihomed links use loose mode.
- A hijacker's more-specific prefix wins by longest prefix match; RPKI ROAs with route origin validation and prefix filters defend, but ROV checks only the origin AS.
- A rogue AP is unauthorized and on your wired network; an evil twin imitates your SSID to capture clients and is countered by certificate-validated 802.1X and WIPS.
- WEP's 24-bit IV repeats under one rarely changed key and exposes the keystream and key; TKIP is deprecated, so WPA2 or WPA3 with AES is the minimum.
- Brute force is many guesses at one account, spraying is one password across many accounts, and credential stuffing replays leaked pairs that work because of reuse; lockout stops only the first, while MFA blunts all three.
- A zero-day has no fix yet and needs compensating controls; an unpatched device has a fix not yet applied; an end-of-support device's flaws will never be fixed; vulnerability management is the cycle that contains patch management.
- MITRE ATT&CK maps detections to attacker techniques, the Cyber Kill Chain breaks an intrusion into seven phases, the CCM assesses cloud controls and their ownership, and CIS Benchmarks give exact secure settings per product.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- CISA, FBI and MS-ISAC. (2024). Understanding and Responding to Distributed Denial-of-Service Attacks. cisa.gov
- Kotikalapudi Sriram and Doug Montgomery. (2019). Resilient Interdomain Traffic Exchange: BGP Security and DDoS Mitigation (SP 800-189). NIST. nvlpubs.nist.gov
- NIST. (2024). Incident Response Recommendations and Considerations for Cybersecurity Risk Management (SP 800-61 Rev. 3, initial public draft). nvlpubs.nist.gov
- OWASP Foundation. (2025). OWASP Top 10:2025 Introduction. owasp.org
- Center for Internet Security. (2022). Cyber-Attack Defense: CIS Benchmarks + CDM + MITRE ATT&CK. cisecurity.org
- Key terms
- Evil twin
- An unauthorized wireless access point that broadcasts a legitimate network's name (its Service Set Identifier, or SSID), usually without connecting to that network, to lure clients into associating so their traffic or credentials can be captured.
- Rogue access point
- A wireless access point connected to an organization's wired network without authorization, creating an unmanaged path onto the local area network that bypasses perimeter and access controls.
- Initialization vector
- A non-secret value combined with an encryption key so the same key produces different output each time; if it is too short or repeats, as with the 24-bit value used by the old Wired Equivalent Privacy Wi-Fi standard, encrypted traffic and even the key can be exposed.
- BGP hijacking
- In the Border Gateway Protocol that routes traffic between internet networks, the announcement of an IP prefix, or a more specific part of it, by an autonomous system not authorized to originate it, which diverts traffic toward that system.
- Source address validation
- Filtering that drops packets whose source address could not legitimately arrive on an interface, implemented with access control lists and unicast Reverse Path Forwarding to prevent IP address spoofing.
- Remotely triggered black hole filtering
- A technique in which a network signals its upstream provider, usually with a tag called a Border Gateway Protocol community, to discard all traffic to an attacked address at the provider's edge, sacrificing that address to protect the link.
- Credential stuffing
- Automated sign-in attempts using username and password pairs leaked from another service, which succeed wherever users have reused the same credentials.
- Zero-day vulnerability
- A software or firmware flaw that is exploited or made public before the vendor has released any fix, leaving defenders to rely on compensating controls until one exists.
- Vulnerability management
- The continuous cycle of discovering weaknesses in assets, prioritizing them by risk, remediating them by patching, reconfiguration, compensating controls or replacement, and verifying each fix.
- MITRE ATT&CK
- A public knowledge base of adversary tactics and techniques drawn from real-world observations, used to map detections and controls against attacker behavior and find coverage gaps.
Choosing Technologies to Secure a Network
- Select among a next-generation firewall, a cloud-native firewall, a web application firewall, an application gateway, a secure web gateway, an IDS and an IPS by working out which traffic a requirement describes, in which direction it flows and at which layer.
- Explain how symmetric and asymmetric algorithms divide the work in TLS, read TLS 1.2 and TLS 1.3 cipher suites, and decide which protocol versions and suites to disable.
- Decide where SSL/TLS inspection belongs, what to exempt from decryption, and why TLS 1.3 requires an inspection device to sit inline and end the encrypted session itself.
- Design network access control rules that combine authentication, posture assessment and dynamic lists to give each device the right level of access.
TLS 1.3 and the end of passive decryption
In August 2018 the Internet Engineering Task Force (IETF) published Request for Comments (RFC) 8446, which defines version 1.3 of Transport Layer Security (TLS). One line in its list of changes ended a technique many security teams relied on. It removed the static RSA and static Diffie-Hellman cipher suites, and every public-key exchange left in the protocol provides forward secrecy.[1] Before TLS 1.3, a team could copy a web server's private key onto an intrusion detection system (IDS) that was watching a mirror port. The IDS could then decrypt copies of the traffic without ever touching the live connection. Under TLS 1.3, each connection agrees on new keys and throws them away afterwards. The server's long-term key no longer unlocks a recording. A device that wants to read the contents now has to sit in the traffic path and end the encrypted connection itself.
That change sharpens an argument you will meet in design reviews and in CloudNetX scenarios. One side wants a powerful inspection platform in the middle of everything, decrypting as much as it can and running one policy. The other side wants smaller, purpose-built controls placed next to each kind of traffic, with decryption only where a requirement needs it. Experienced architects hold both views. The exam does not reward joining either camp. It rewards reading the requirements in a question and choosing the technology that meets them.
Exam objectives: CNX-001 objective 2.2, "Given a scenario, analyze requirements to select the appropriate technology to secure a network." The objective names firewalls (next-generation, cloud-native and web application firewalls), IPS and IDS, encryption (protocol types, SSL/TLS inspection, cipher suites, and asymmetric and symmetric algorithms), application gateways, secure web gateways, and network access control with posture assessment and dynamic lists.[2]
The Halvorsen Freight review: one network, two proposals
To make the argument concrete, this lesson follows one design review. Halvorsen Freight is a fictional logistics company. It has 2,400 staff, a headquarters data center and 30 depots joined by SD-WAN (software-defined wide area network). Its customer portal runs in a virtual private cloud (VPC), a private network carved out of a public cloud. The architecture board wrote these requirements:
| ID | Requirement (fictional example) | Traffic it concerns |
|---|---|---|
| R1 | The public shipment-tracking portal, portal.example.com, shows SQL (Structured Query Language) injection and cross-site scripting (XSS) probes in its logs. | Inbound HTTPS (Hypertext Transfer Protocol Secure) from the internet to one application |
| R2 | About 1,400 staff work from home or on the road for part of the week and browse the web over their local internet connections. | Outbound web traffic from users at any location |
| R3 | Known exploit traffic must be stopped before it reaches the warehouse management system (WMS) servers at headquarters. | East-west and inbound traffic in the data center |
| R4 | Depot floors have 600 handheld barcode scanners and shared PCs plugged into wall ports in open areas. | Devices joining the wired access network |
| R5 | A banking partner's payment application programming interface (API) uses mutual TLS, and the partner's client software pins the partner's certificate. | Outbound encrypted traffic to one partner |
| R6 | An agreement with the German depots' works council forbids reading the content of employees' personal web browsing. | A legal limit on decryption |
| R7 | Cloud workloads autoscale, are deployed through Terraform, and need stateful filtering between the web, application and database tiers. | East-west traffic inside the VPC |
Two senior people bring proposals.
Position A: consolidate and decrypt. The security lead wants one next-generation firewall platform everywhere. That means a hardware cluster at headquarters, the same vendor's virtual appliances in the cloud, and the vendor's cloud-delivered firewall service for remote users. Every outbound web session would be decrypted so the intrusion prevention and malware engines can read it. Her evidence is operational. One policy language means one set of rules to audit. One log format means analysts can correlate events without translating between products. The US National Institute of Standards and Technology (NIST) notes that some firewalls can merge policies at enforcement time, so users on-premises and in private and public clouds get the same policy.[3] Her last point usually wins the room: malware and command-and-control traffic travel over HTTPS too, and a control that cannot read the encrypted payload cannot match a signature inside it.
Position B: place each control next to its traffic. The cloud architect wants a different tool for each kind of traffic: the provider's own firewalling inside the cloud, a web application firewall in front of the portal, a cloud-delivered secure web gateway for users wherever they are, and network access control on the depot ports. He would decrypt only where a specific requirement needs to see the payload. His evidence is about fit. The portal's attackers send HTTP requests to one application. Remote users' risks come from the websites they visit. The depots' risk is an unknown device in a wall port. These are three different problems, visible from three different places. A cluster at headquarters sees only the traffic that is routed back to it. And the decryption he skips cannot break a partner integration or breach the works-council agreement.
Each requirement in the table favors one proposal, the other, or neither. To score them, you need to know what each technology reads, where it sits, and what it costs to run. The sections below cover that, and the review is settled near the end of the lesson.
Firewalls: what each kind reads before it decides
NIST Special Publication (SP) 800-41 Revision 1, published in September 2009, defines firewalls as devices or programs that control the flow of traffic between networks or hosts with different security postures.[4] The definition says nothing about ports or hardware, and that is why it is useful. A firewall is a decision point between two zones that trust differently. Kinds of firewall differ in how much of the traffic they read before they decide.
A stateless packet filter reads the addresses, protocol and ports of each packet on its own. A stateful firewall also keeps a state table of open connections, so it lets a reply in because the reply matches a connection an inside host opened. You know both from Network+. Of the three firewalls this objective names, two build on stateful inspection: the next-generation firewall, and the stateful parts of cloud-native filtering (security groups and managed firewall services; cloud network access control lists are stateless, as you will see). The third, the web application firewall, is a different kind of tool. It is a layer 7 inspector for HTTP (Hypertext Transfer Protocol) requests, not a packet firewall.
A Next-generation firewall (NGFW) adds awareness of applications. NIST SP 800-215, from November 2022, names application data awareness as the feature that sets an NGFW apart: it reads layer 7, not only layers 3 and 4.[3] The same document lists deep packet inspection (DPI), TLS decryption with inspection of the payload, and an intrusion prevention system (IPS) feature among NGFW capabilities.[3] In practice, an NGFW does three things a stateful firewall cannot:
- It identifies the application from its protocol behavior instead of trusting the port number. A file-sharing tool on Transmission Control Protocol (TCP) port 443 is recognized as file sharing, not as "web".
- It maps IP addresses to user names it learns from the directory, so a rule can name a group instead of a subnet.
- It filters web addresses (uniform resource locators, URLs) by category, such as gambling, malware or newly registered domains.
A stateful rule says "192.0.2.0/24 may reach any address on TCP 443". An NGFW rule can say "the Finance group may use the accounting software as a service (SaaS) application, and nobody may use peer-to-peer file sharing".
NIST also describes unified threat management (UTM) devices. A UTM puts firewall, IPS, virtual private network (VPN) concentrator, gateway antivirus, content filtering and WAN load balancing into one device, usually with one management console.[3] In common usage, UTM means an all-in-one box for small and mid-sized sites, and NGFW means an application-aware firewall built for enterprise scale. Both make the same architectural bet as Position A: one device, many functions.
| Firewall kind | What it reads | Typical rule | What it cannot see well |
|---|---|---|---|
| Stateless packet filter | Addresses, protocol and ports, one packet at a time | Permit TCP to 192.0.2.10 port 443 | Whether a packet is a reply to a request |
| Stateful firewall | All of the above, plus connection state | Let inside hosts out and admit the matching replies | Any difference between applications that share an allowed port |
| NGFW | All of the above, plus application identity, user and URL category; the payload too, if it decrypts | Allow the accounting SaaS app for Finance; block file-sharing apps | Encrypted payloads it does not decrypt; the logic of your own web application |
| Cloud-native firewall | Addresses, ports and (except for stateless subnet ACLs) state; managed tiers add domain names and signatures | The web tier may reach the app tier on TCP 8443 | Usually less application and user awareness than an NGFW |
| Web application firewall | Complete HTTP requests sent to applications you publish | Block requests whose query string matches SQL injection patterns | Traffic that is not HTTP; your users' outbound browsing |
Why this matters: if a question asks you to allow or block an application, a user group or a URL category regardless of port, it is describing NGFW features. If it asks only about addresses and ports, a stateful firewall or a cloud security group meets the need, and an NGFW adds cost without meeting any extra requirement.
Cloud-native firewalls versus an NGFW in a virtual machine
NIST gives three example deployment options for an NGFW: an appliance in the data center, software in a virtual machine (VM) in a cloud, or a cloud service called firewall as a service (FWaaS).[3] A Cloud-native firewall is not the second option. The cloud service provider (CSP) builds and runs it as part of the platform. You configure it through the provider's console, its API or infrastructure as code (IaC) templates, and the provider handles capacity, patching and availability.
Cloud-native filtering usually comes in three layers, and the exam expects you to know how they differ:
- Interface-level rules. Amazon Web Services (AWS) security groups and Azure network security groups (NSGs) are stateful. If you allow an inbound request, its reply is allowed automatically. Security groups attach to an instance's network interface. NSGs can attach to an interface or to a subnet.
- Subnet-level rules. AWS network access control lists (NACLs) apply to a whole subnet and are stateless. Every packet is judged on its own, so you must also write rules for return traffic, usually covering the ephemeral port range. Forgetting those return rules is a classic cause of a broken cloud application.
- Managed firewall services. AWS Network Firewall and Azure Firewall are stateful inspection engines that the provider runs for you. You place them in the traffic path with route tables, often in a dedicated inspection VPC or hub virtual network. Depending on the service tier, they can add domain-name filtering and intrusion prevention.
Here is what an interface-level rule set looks like for Halvorsen's application tier. The values are fictional.
| Direction | Protocol and port | Source or destination | Purpose |
|---|---|---|---|
| Inbound | TCP 8443 | Source: security group of the web tier | Web servers call the application API |
| Inbound | TCP 22 | Source: 203.0.113.0/28, the bastion subnet | Administration through a jump host only |
| Outbound | TCP 5432 | Destination: security group of the database tier | Application queries the database |
Notice the first rule. Its source is another security group, not an IP range. When autoscaling adds a tenth web server, that server joins the web-tier group and is allowed at once, without anyone editing the rule. This membership-based referencing is the main reason cloud-native controls suit autoscaling workloads. The same idea appears later as the dynamic list.
| Question | Cloud-native firewall | Vendor NGFW in a VM |
|---|---|---|
| Who runs and scales it? | The CSP | You: you size the instances, build high availability and scale out |
| Policy language | The provider's own, different in each cloud | The same as the on-premises firewalls from that vendor |
| Application and user awareness | Basic to moderate, depending on the service tier | The full NGFW feature set |
| Getting traffic to it | Built in for security groups; route tables for managed services | Route tables, and often a load balancer in front of a fleet of VMs |
| Cost | Security groups carry no separate charge; managed services are usually billed by time and by traffic processed | A license plus the cost of running the VMs |
| Best fit | Cloud-first teams, autoscaling, IaC pipelines | Hybrid estates that need one policy across on-premises and cloud |
Why this matters: when a question says "managed by the provider", "scales automatically" or "defined in templates", it points to cloud-native controls. When it stresses one consistent policy and full application inspection across a hybrid estate, a vendor NGFW in the cloud is the better fit, and you must budget for running it yourself.
Web application firewall: guarding the applications you publish
A Web application firewall (WAF) protects web applications that you publish to others. It reads each HTTP request in full: the URL, headers, cookies, query string and body. AWS describes its WAF as a way to control how protected resources respond to HTTP and HTTPS requests.[5] The mechanism is simple. You build a web access control list (web ACL) and attach it to a resource such as a load balancer, an API gateway or a content delivery network (CDN) distribution. That resource forwards each incoming request to the WAF, and the web ACL inspects it.[5]
Each rule has a match condition and an action. Besides allow, block and count, the AWS service can run CAPTCHA puzzles or silent challenge checks to confirm that a human with a normal browser is behind the request.[5] The web ACL also has a default action, which decides what happens to requests that no rule matched.[5] NIST describes WAFs as able to inspect for SQL injection, operating system command injection and cross-site scripting, and to prevent inbound attacks.[3]
| Priority | Rule (fictional web ACL for portal.example.com) | Matches | Action |
|---|---|---|---|
| 1 | Allow-HealthCheck | The load balancer's health-check path, /healthz, from its own address range | Allow |
| 2 | Managed-SQLi | SQL injection patterns in the query string or body | Block |
| 3 | Managed-XSS | Script injection patterns in parameters | Block |
| 4 | Track-Rate | More than 500 requests in 5 minutes from one address to /track | CAPTCHA |
| 5 | Geo-Trial | Requests from countries with no customers | Count, for two weeks of tuning |
| Default | Anything not matched above | Allow |
Read the table from the bottom. A default of Allow with Block rules above it is a negative security model: block what looks bad and let the rest through. A default of Block with narrow Allow rules is a positive security model: allow only the request shapes the application expects. The positive model is stronger but takes much more work, because every change to the application can break a rule. Rule 5 shows the habit that keeps a WAF from hurting the business. A new rule runs in Count mode first, so you can see what it would have blocked before it blocks anything.
A WAF can only inspect HTTP it can read, so TLS must end before the WAF sees the request. For inbound traffic this causes no trust problem. The load balancer or CDN ends the session using the organization's own certificate for portal.example.com, the WAF inspects the decrypted request, and the request goes on to the servers. This is the half of TLS inspection that nobody in the Halvorsen review disputes. NIST also describes web application and API protection (WAAP) as a broader approach that builds on the WAF, adding API security, bot defense and distributed denial-of-service (DDoS) protection, often delivered as a cloud service.
Application gateways and secure web gateways: which way the proxy faces
An Application gateway, in the classic firewall sense, is an application-level proxy. The client connects to the gateway, the gateway opens a separate connection to the server, and the gateway relays only what the application protocol allows. Because there are two connections rather than one, no packet passes straight from client to server. Because the gateway understands the protocol, it can enforce rules a packet filter cannot, for example allowing file downloads but refusing uploads, or rejecting malformed commands. The cost is that it needs code for each protocol it understands, and it does more work per connection than a stateful filter.
Cloud vocabulary reuses the name. Azure Application Gateway, for example, is a layer 7 load balancer and reverse proxy that can host a WAF in front of web servers. When an exam question says "application gateway", look at which way the traffic flows. If the gateway stands in front of servers and receives requests from the internet, it acts as a reverse proxy, and pairing it with a WAF is the usual design.
A Secure web gateway (SWG) faces the other way. NIST calls an SWG at heart a web filter that protects users' outbound traffic by inspecting HTTP and HTTPS.[3] It blocks malicious and unwanted URL categories, scans downloads for malware, and protects endpoints when users click links to infected sites. NIST adds that SWGs are not a replacement for WAFs.[3] An SWG protects your users from the web, while a WAF protects your web applications from the internet's users. SWGs now often run as cloud services, and that is why they suit dispersed users: they centralize control, visibility and reporting across many locations and kinds of user.[3]
| Control | Faces | Protects | Ends TLS with | Typical requirement |
|---|---|---|---|---|
| Secure web gateway | Users going out to the web | Users and their endpoints | Certificates it generates, signed by an internal certificate authority (CA) | "Filter browsing and block malware downloads for staff wherever they are" |
| Web application firewall | Internet clients coming in | Your published web applications and APIs | The organization's own server certificate | "Stop SQL injection against our portal" |
| Application gateway (reverse proxy) | Clients coming in | Servers behind it; often hosts a WAF | The organization's own server certificate | "Route /api and /shop to different server pools and terminate TLS" |
| Application gateway (classic proxy firewall) | Either direction, for one protocol | The zone behind it | Depends on the protocol | "Allow only approved commands of this protocol across the boundary" |
Why this matters: WAF and SWG are the pair most often confused on this objective. Ask whose traffic it is. If it is your users' outbound browsing, choose the SWG. If it is strangers' requests to your application, choose the WAF.
IDS and IPS: placement decides what they can do
An Intrusion detection system (IDS) watches traffic and raises alerts. An Intrusion prevention system (IPS) does the same detection and can also stop the traffic. NIST SP 800-94 groups them as intrusion detection and prevention systems (IDPS), and the difference comes down to placement. An inline sensor is placed so that the traffic it monitors must pass through it, as traffic passes through a firewall.[6] The main reason to put a sensor inline is so that it can stop attacks by blocking traffic.[6] A passive sensor gets a copy of the traffic from a switch mirror port (often called a SPAN port, for switched port analyzer) or from a network tap. It cannot block anything, and if it fails, no traffic is affected.
Placement within a boundary matters as well. NIST notes that inline sensors that are not combined firewall and IDPS devices are often placed on the more secure side of a network boundary, so that they have less traffic to process.[6] The firewall has already discarded what policy forbids, so the IPS spends its effort on traffic that was allowed. NIST also advises using a separate management network for network-based IDPS whenever feasible, which keeps the sensors' own control traffic away from the networks they watch.[6]
Host-based IDPS runs as an agent on each server or endpoint. It sees things a network sensor cannot, such as file changes and process behavior, and it sees traffic after the host has decrypted it. The price is that the agents use the host's resources and can slow it down.[6] Some host-based products also send their alerts to the management server in batches, which delays response.
| Question | Passive IDS | Inline IPS |
|---|---|---|
| Where it sits | Off to the side, fed by a mirror port or tap | In the path, like a firewall |
| Can it block? | No; it alerts, and at most can ask another device to act | Yes; it drops the packets that match |
| Effect of a false positive | An unnecessary alert | A legitimate transaction blocked |
| Effect of the sensor failing | Monitoring stops; traffic is unaffected | Traffic stops if it fails closed; it passes unchecked if it fails open |
| Best when | Any interruption is unacceptable, for example on a medical-device or industrial control network | Known attacks must be stopped in real time and a small latency cost is acceptable |
The fail-open or fail-closed choice is a design decision you should be able to defend. Fail-open favors availability: if the IPS hardware dies, traffic flows without inspection. Fail-closed favors security: nothing passes uninspected. Some designs, for example, fail closed at the internet edge and fail open on internal links that carry production traffic. Neither setting is a rule. Justify the choice for each link, write it down, and agree it with the owners of the systems behind the sensor.
Both IDS and IPS share the limit from the opening section. Their signatures need to see the payload, and the payload is encrypted. A network sensor that cannot decrypt still sees addresses, ports, timing, volume and the unencrypted parts of the TLS handshake. That is enough to spot scanning or a host talking to a known-bad address, but not enough to see an exploit hidden inside HTTPS. This is why NGFWs bundle decryption with IPS, and why Position A ties the two together.
Symmetric and asymmetric algorithms: who does which job
Every encrypted protocol you will meet on this exam uses two families of algorithm, and it uses each for what it does best.
Symmetric-key algorithms use one shared secret key, both to encrypt and to decrypt. The Advanced Encryption Standard (AES) is the one you will see most often. Symmetric ciphers are fast, and modern processors have instructions that speed up AES, so they carry the bulk data. Their weakness is distribution: both sides need the same key before they start, and sending the key safely is the very problem encryption is meant to solve. Pre-shared keys are one answer. SP 800-52 describes them as symmetric keys put in place before a TLS session begins, an approach suited to closed environments.[7]
Public-key cryptography, the family of asymmetric algorithms, uses a key pair. The public key can be shared with anyone, and the private key stays with its owner. These algorithms are much slower and need much longer keys for the same strength, so protocols use them for two small but critical jobs. The first is key establishment: getting both sides to the same symmetric key without sending it in the clear. Elliptic-curve Diffie-Hellman (ECDH) does this by key agreement, where each side combines its own private value with the other side's public value and both arrive at the same secret. RSA (named after its inventors, Rivest, Shamir and Adleman) can do it by key transport, where the client encrypts a secret with the server's public key. The second job is authentication: a digital signature proves that the other party holds the private key that matches a certificate.
| Property | Symmetric | Asymmetric |
|---|---|---|
| Keys | One shared secret key | A public and private key pair |
| Speed | Fast; suited to bulk data | Slow; used for small pieces of data |
| Main jobs in network protocols | Encrypting and integrity-protecting the traffic | Key agreement or transport, and signatures for authentication |
| Examples | AES in GCM mode, ChaCha20-Poly1305 | RSA, ECDHE, ECDSA (Elliptic Curve Digital Signature Algorithm) |
| Key management problem | Getting the same key to both sides safely | Proving which public key belongs to whom, which is the job of public key infrastructure (PKI) and certificates |
TLS, Internet Protocol Security (IPsec) and Secure Shell (SSH) are all hybrids. An asymmetric exchange authenticates the parties and agrees on a secret. A key derivation function turns that secret into symmetric keys. The symmetric cipher then protects everything else. When the asymmetric exchange is ephemeral (the "E" in ECDHE), each session uses freshly generated values that are discarded afterwards. That gives Forward secrecy: if someone steals the server's long-term private key next year, they still cannot decrypt sessions recorded today.
Reading a cipher suite, and deciding what to switch off
A Cipher suite is the named set of algorithms a TLS session will use. During the handshake, the client lists the suites it supports and the server picks one of them.[7] The suite names look intimidating, but they follow a pattern. Here is a fictional report of what Halvorsen's warehouse management server offers:
Example only: TLS settings reported for wms.example.com:443 (fictional)
Protocol versions offered: TLS 1.0, TLS 1.2, TLS 1.3
TLS 1.3 suites: TLS_AES_256_GCM_SHA384
TLS_AES_128_GCM_SHA256
TLS 1.2 suites: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_128_CBC_SHA
TLS 1.0 suites: TLS_RSA_WITH_AES_128_CBC_SHA
Certificate: RSA 2048-bit, issued by Halvorsen Internal CA
Take the TLS 1.2 suite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 one piece at a time:
ECDHEis the key exchange: ephemeral elliptic-curve Diffie-Hellman, which gives forward secrecy.RSAis the authentication. The server signs its ECDHE values with the private key that matches its RSA certificate. Here RSA does not encrypt anything.AES_128_GCMis the symmetric cipher for the data: AES with a 128-bit key in Galois/Counter Mode (GCM), which encrypts the data and protects its integrity in one operation.SHA256is SHA-256, a hash from the Secure Hash Algorithm 2 family, used by the pseudorandom function that derives the keys.
Now compare TLS_RSA_WITH_AES_128_CBC_SHA. There is no ECDHE. The single word RSA means RSA key transport: the client encrypts the session secret with the server's public key. Anyone who later obtains that private key can decrypt every recorded session. This is the static RSA that TLS 1.3 removed, and NIST is phasing out RSA key transport in TLS.[7] The rest of the name is also old-fashioned. AES_128_CBC is AES in cipher block chaining (CBC) mode, which encrypts but does not protect integrity by itself, so the suite adds a separate message check using SHA-1 (the SHA at the end).
Two families of suites are treated as legacy in everyday practice, and this rests on general professional knowledge rather than on the guidance cited here. CBC-mode suites in TLS have been the target of several padding and timing attacks over the years, which is one reason TLS 1.3 kept only authenticated modes. Suites using Triple DES (3DES, three passes of the old Data Encryption Standard cipher) are slow and have a small 64-bit block, which makes long sessions risky. When clients allow it, remove both and keep AEAD suites such as AES-GCM.
The TLS 1.3 names are shorter because the design changed. TLS 1.3 separates the authentication and key exchange from the record protection algorithm and its hash.[1] So TLS_AES_256_GCM_SHA384 names only the symmetric cipher and the hash. The key exchange is negotiated separately, through one of three modes: (EC)DHE, a pre-shared key alone, or a pre-shared key combined with (EC)DHE.[1] Every symmetric algorithm left in TLS 1.3 is an authenticated encryption with associated data (AEAD) algorithm, a cipher that encrypts and integrity-protects in one step.[1] TLS 1.2 suites cannot be used with TLS 1.3.[1] TLS 1.3 suites cannot be used with TLS 1.2 either, which is why a server lists the two sets separately.
The objective still says "SSL", so here is the history behind the name. Netscape's Secure Sockets Layer (SSL) 2.0 was released in 1995 with well-known security flaws, and SSL 3.0 followed in 1996 to fix them.[7] The IETF then standardized TLS 1.0, which was based on SSL 3.0 but different enough that the two do not interoperate.[7] Every SSL version is now obsolete. Products still say "SSL inspection" and "SSL certificate", but what they handle is TLS.
Now make the decision for wms.example.com. NIST SP 800-52 Revision 2, written for US federal systems and widely used as a baseline elsewhere, sets TLS 1.2 with NIST-approved cipher suites as the minimum. It allows TLS 1.0 and 1.1 only when a system must interoperate with non-government systems.[7] It also required support for TLS 1.3 by January 1, 2024.[7] It works as an allow-list: suites not listed in the guideline or its appendices must not be used.[7] Applying those ideas step by step:
- Every client of this server is a managed Halvorsen device, so there is no interoperability reason to keep TLS 1.0. Disable it.
- Remove
TLS_RSA_WITH_AES_128_CBC_SHAfrom TLS 1.2. It uses RSA key transport, so it has no forward secrecy, and it uses a legacy CBC mode rather than an AEAD cipher. - Keep both TLS 1.3 suites and both ECDHE GCM suites for TLS 1.2. They provide forward secrecy and AEAD protection.
Now change one input. Suppose the 600 depot barcode scanners run firmware that supports only TLS_RSA_WITH_AES_128_CBC_SHA over TLS 1.2, and the vendor's fixed firmware is nine months away. Removing the suite would stop every depot from scanning parcels. NIST recognizes that some environments need RSA key transport for a transition period.[7] The decision flips from "remove now" to "keep it, contained". Offer the suite only on a separate listener that the scanners' virtual local area network (VLAN) can reach. Log every session that uses it. Record a dated exception with the firmware deadline. The weak suite stays, but only where it is needed, and with an end date.
Why this matters: exam questions about cipher suites almost always come down to three checks. Is the protocol version TLS 1.2 or later? Does the key exchange give forward secrecy (ECDHE, or DHE for ephemeral Diffie-Hellman, rather than plain RSA)? Is the cipher an AEAD such as AES-GCM rather than an old CBC or 3DES suite?
Encryption protocol types: where each one wraps the traffic
"Protocol types" in the objective means knowing which encryption protocol protects which layer, because that decides what a firewall, IPS or SWG can still see. The more of the packet a protocol encrypts, the less a middlebox can inspect without becoming an endpoint of the session. The table starts at the bottom of the stack with MACsec, the link-encryption standard IEEE 802.1AE from the Institute of Electrical and Electronics Engineers (IEEE), and works up.
| Protocol | What it protects | Typical use | What a device in the path still sees |
|---|---|---|---|
| MACsec (IEEE 802.1AE) | Ethernet frames on one link, hop by hop | Switch-to-switch and data-center interconnect links | Nothing on the protected wire; the traffic is plaintext again inside each switch |
| IPsec with Encapsulating Security Payload (ESP) | IP packets | Site-to-site and remote-access VPNs | The outer IP addresses, and ESP (IP protocol 50) or User Datagram Protocol (UDP) port 4500 when network address translation (NAT) traversal is used |
| TLS | One application session over TCP | HTTPS, LDAPS (Lightweight Directory Access Protocol over TLS), mail submission, most APIs | IP addresses, TCP ports and parts of the handshake; TLS 1.2 shows the server certificate, while TLS 1.3 encrypts it |
| DTLS (Datagram TLS) | Application data over UDP | Some VPN data channels, WebRTC (Web Real-Time Communication) key setup | Much the same as TLS, carried over UDP |
| QUIC | Transport and application data over UDP, with the TLS 1.3 handshake built in | HTTP/3 | IP addresses, UDP 443, and very little else |
| SSH | One interactive or file-transfer session | Device administration, SFTP (SSH File Transfer Protocol) | IP addresses and TCP 22 |
In a typical TLS session, the client still sends the host name it wants, the Server Name Indication (SNI), in readable form during the handshake. A gateway that does not decrypt can therefore often apply URL-category policy from the SNI and the destination address alone. Newer extensions that encrypt the client's first handshake message are designed to hide even that, so do not build a whole design on SNI always being visible. QUIC causes a practical problem for inspection: many SWGs and NGFWs cannot decrypt it. A common design blocks UDP 443 outbound so that browsers fall back to TLS over TCP, which the gateway can inspect.
SSL/TLS inspection: the strongest case on each side
SSL/TLS inspection means a security device decrypts TLS traffic, inspects the plaintext, and encrypts it again. Inbound inspection, at the WAF or load balancer in front of your own servers, uses your own certificate and nobody disputes it. The argument is about outbound inspection of users' traffic, which works like this:
- A user's browser starts a TLS session to www.example.com. The inline NGFW or SWG intercepts the ClientHello, the client's first handshake message.
- The device opens its own TLS session to the real www.example.com and checks the real server's certificate against the public trust store.
- The device generates a certificate for www.example.com on the spot, signed by the organization's internal CA, and completes a second TLS session with the browser.
- The browser accepts that certificate only because the internal CA's root certificate was installed on managed devices through mobile device management (MDM) or group policy.
- The device now holds the plaintext between two separate sessions. Its IPS, data loss prevention (DLP) and malware engines inspect it, and then it re-encrypts the traffic toward the user.
Because the device must create its own sessions, it has to be inline. A passive sensor cannot do this, and under TLS 1.3 there is no server key it could borrow to decrypt passively.
The case for decrypting broadly. Without decryption, the IPS, DLP and malware engines that Halvorsen pays for see only metadata on most web traffic. A malicious download over HTTPS looks like any other HTTPS download. Data leaving in an upload to a personal cloud drive cannot be matched against DLP patterns. The NGFW's application identification also improves when it can see inside the session. For Position A, an inspection platform that does not decrypt is an expensive stateful firewall.
The case for decrypting narrowly. The costs fall on four groups:
- Applications. Software that pins a certificate, or that authenticates with mutual TLS (a client certificate), fails, because the device cannot present the real server's certificate or the client's private key. Halvorsen's R5 payment client is exactly this case.
- Trust. The inspection device now holds a CA key that every managed device trusts. If that key is stolen, someone can impersonate any website to your staff, so it belongs in a hardware security module (HSM). The device must also check server certificates at least as strictly as a browser, or it quietly hides bad certificates from users.
- Law and policy. Reading the content of employees' banking, health or personal browsing may be restricted by privacy law, such as the General Data Protection Regulation (GDPR), and by agreements like Halvorsen's R6.
- Capacity. Decrypting and re-encrypting costs far more processing than stateful forwarding. Vendors usually publish a separate, lower throughput figure with decryption enabled, and that is the figure to size against.
Practical designs resolve this with a decryption policy and a bypass list. A bypass (or decryption exemption) lets a session through without decrypting it, while still applying policy from the SNI, the destination and the category.
| Category (fictional Halvorsen policy) | Decision | Reason |
|---|---|---|
| Uncategorized and newly registered domains | Decrypt, or block outright | Highest risk, and no business need for privacy |
| File-sharing and webmail | Decrypt | The main routes for data loss; DLP needs the payload |
| Financial services and health | Do not decrypt; filter by category | Personal privacy and legal limits |
| Partner payment API (pinned, mutual TLS) | Do not decrypt; allow only to the partner's listed names and addresses | Inspection would break the connection |
| Operating system and security-agent updates | Do not decrypt | Often pinned; already integrity-checked by signatures |
Work R5 through, then change one input. The payment client pins its certificate and uses mutual TLS. The moment Position A's decrypt-everything policy goes live, the client sees a certificate signed by Halvorsen's internal CA, rejects it, and payments stop. The fix is to exempt the partner's destinations from decryption, allow only those destinations from the finance servers, and log the sessions. Now suppose the partner did not pin certificates or use client certificates, and the traffic were ordinary HTTPS to a supplier's website. Decryption would then work without breaking anything, and the case for inspecting it, to catch malware in downloaded invoices, would win. The same technology gets two different verdicts because one property of the traffic changed.
Network access control: posture assessment and dynamic lists
Network access control (NAC) decides what a device may reach at the moment it connects. In a wired campus, the usual mechanism is IEEE 802.1X, the IEEE standard for port-based access control. The device (the supplicant) presents credentials, often a certificate through Extensible Authentication Protocol-Transport Layer Security (EAP-TLS). The switch port or access point (the authenticator) passes them to a policy server over Remote Authentication Dial-In User Service (RADIUS). The policy server replies with a decision: accept or reject, plus attributes such as a VLAN, a downloadable access control list (ACL) or a security group tag. Devices that cannot run 802.1X, such as printers and many barcode scanners, are usually admitted by MAC Authentication Bypass (MAB), where the device's Media Access Control (MAC) address is checked instead. MAC addresses are easy to copy, so MAB should be paired with device profiling and a tightly limited level of access.
Authentication answers "who is this?" Posture assessment answers a second question: "is this device in a fit state to join?" The NAC system checks the endpoint against a policy, through a persistent agent, a temporary agent that runs once, or agentless queries to MDM and endpoint detection and response (EDR) systems. Typical checks are operating system patch age, an EDR agent that is running, disk encryption, and MDM enrollment. The result sets the device's access. A compliant device gets production access. A non-compliant device gets a remediation network that can reach only patch and antivirus servers. A device whose state is unknown gets guest access or nothing. Posture is not checked only once. Policy servers re-assess devices and can use a RADIUS Change of Authorization (CoA) to move a session that is already connected, for example when an EDR agent stops in the middle of the day.
Example only: NAC policy set Depot-Wired (fictional)
Rule 1 IF 802.1X EAP-TLS certificate valid AND posture = Compliant
THEN VLAN 110 (Corp), ACL DEPOT-CORP
Rule 2 IF 802.1X EAP-TLS certificate valid AND posture = NonCompliant
THEN VLAN 199 (Remediation), ACL PATCH-AND-AV-ONLY
Rule 3 IF MAC in dynamic list Scanners-Approved AND profile = barcode-scanner
THEN VLAN 140 (Scanners), ACL WMS-ONLY
Default DENY
Posture checks: OS patch age <= 30 days; EDR service running; disk encryption on
Re-assessment: every 4 hours and on posture change; send RADIUS CoA to move the session
Rule 3 refers to Scanners-Approved, which is a dynamic list. A dynamic list is a named set of devices, users, addresses or URLs whose membership updates automatically from a source of truth, while the rules that refer to it never change. When the asset system enrolls a new scanner, or retires a lost one, the list changes, and the NAC rule applies at once without anyone editing it. The same idea runs through the rest of the security stack, under vendor-specific names. A NAC system can publish its quarantined devices as a list that the firewall blocks. An NGFW can pull lists of malicious addresses or domains from a threat-intelligence feed several times a day. The cloud security group referencing in the earlier section works the same way. Dynamic lists are how policy keeps up with an environment that changes faster than people can edit rules. Their risk is the reverse side of that strength: if the feed is wrong or tampered with, every rule that uses it is wrong too. So restrict who can write to the source, and watch for sudden large changes in list size.
Walk through two depot devices under this policy. A shared PC presents a valid certificate, has patches from 12 days ago, a running EDR agent and an encrypted disk. Rule 1 matches, and it lands on VLAN 110. A laptop presents a valid certificate, but its EDR service has stopped. Authentication succeeds, but posture fails. Rule 2 matches, and it can reach only patch and antivirus servers until its agent is running again, when the next re-assessment sends a CoA and moves it to VLAN 110.
Settling the Halvorsen argument requirement by requirement
With the technologies laid out, score each requirement on its own merits.
| Req. | Position A's answer | Position B's answer | Verdict and reason |
|---|---|---|---|
| R1 | NGFW IPS signatures in front of the VPC | WAF on the portal's load balancer | B. The threat is HTTP aimed at one application, and a WAF understands the requests and can be tuned to that application. |
| R2 | The NGFW vendor's FWaaS for remote users | A cloud-delivered SWG | A draw on technology: both are cloud forward proxies. Choose by policy consistency and how far decryption is needed. A's single policy is a real advantage here. |
| R3 | IPS on the headquarters NGFW cluster | An inline IPS in front of the WMS segment | A. The cluster is already inline at that boundary; its IPS meets the requirement without another device. |
| R4 | Nothing offered | NAC with posture assessment and a dynamic list for scanners | B. Firewalls act after a device is on the network; NAC decides whether it gets on. |
| R5 | Decrypt everything | Exempt the partner from decryption | B, unless A adds an exemption. Decryption breaks pinned, mutual-TLS clients. |
| R6 | Decrypt everything | Category filtering without decryption for personal browsing | B. A legal limit overrides visibility, so A's design needs a bypass for this population. |
| R7 | NGFW VMs between tiers | Security groups referencing each other, deployed by Terraform | B. Autoscaling and IaC favor provider-run, membership-based rules; NGFW VMs between tiers add scaling work for little gain. |
The resulting design takes from both. It keeps Position A's NGFW cluster at headquarters, with IPS at the WMS boundary and decryption for high-risk categories. It adopts Position B's WAF, cloud-native tier filtering and NAC. Remote users get a cloud proxy service, chosen from the NGFW vendor if one policy language matters most. The decryption policy has explicit exemptions for R5 and R6.
Now change one input and watch a verdict move. Suppose R2 disappears: remote work ends, every employee works at a depot or at headquarters, and the depots send their internet traffic through headquarters. Every outbound web session now already crosses the headquarters NGFW cluster. A separate cloud SWG would add a second policy engine and a second bill for traffic the NGFW already sees, so Position A wins R2 outright. Change a different input: the depots move to local internet breakout through SD-WAN to save bandwidth. Now outbound traffic no longer passes headquarters, and the cloud-delivered proxy becomes the only place that sees it. The technology did not change. Where the traffic flows changed, and that settled the question.
That is the general rule for the dispute. These questions decide it:
- Where does the traffic flow? A control can only inspect what passes through it.
- At which layer does the threat live? Address and port threats call for a firewall. Application exploits call for an IPS or WAF. Threats from an unknown device call for NAC.
- Who may legally and technically read the plaintext? This decides where to decrypt and what to exempt.
- What happens when the control fails or makes a mistake? This decides between IDS and IPS, and between failing open and failing closed.
- Who will run it? One platform is cheaper to operate, while several specialized tools each fit their job better.
Exam cues: the words in the question and where they point
| The question says | Choose | Do not confuse with |
|---|---|---|
| SQL injection, cross-site scripting, bots hitting our site or API | Web application firewall | SWG, which protects users' outbound browsing |
| Users anywhere; URL categories; malware downloads; outbound web | Secure web gateway (often cloud-delivered) | WAF, which protects inbound requests to your applications |
| Identify applications regardless of port; rules by user or group | Next-generation firewall | Stateful firewall, which sees only addresses, ports and state |
| Provider-managed; scales automatically; defined in Terraform | Cloud-native firewall (security groups, managed firewall service) | An NGFW virtual appliance, which you size and patch yourself |
| Alert only; must never block or add latency | Passive IDS on a tap or mirror port | Inline IPS |
| Stop the attack in real time | Inline IPS (standalone or an NGFW feature) | IDS, which cannot block |
| Terminates the client connection and opens a new one; protocol-aware relay | Application gateway (proxy) | Stateless packet filter |
| Read inside encrypted outbound traffic | SSL/TLS inspection with an internal CA trusted by managed devices | Passive decryption with the server's key, which fails under TLS 1.3 |
| Pinned certificate or mutual TLS breaks after inspection is enabled | A decryption exemption for that destination | Turning inspection off everywhere |
| Device must be patched, encrypted and running EDR before it gets access | NAC posture assessment | Port security or MAC filtering |
| Membership that updates itself from an asset system or threat feed | Dynamic list | A static ACL edited by hand |
| Fast bulk encryption with a shared key | Symmetric algorithm (AES) | Asymmetric algorithm |
| Key exchange or digital signature without a prior shared secret | Asymmetric algorithm (ECDHE, RSA, ECDSA) | Symmetric algorithm |
| Legacy suite with no forward secrecy | Remove suites that start TLS_RSA_WITH | Removing the ECDHE_RSA suites, whose RSA only signs |
For more practice with firewall and IPS fundamentals, see the Atlas Security+ course. For the stateful filtering and proxy basics this lesson assumes, see the Network+ course.
Common misconceptions
- "An NGFW makes a WAF unnecessary." An NGFW identifies applications and runs general IPS signatures. A WAF reads every part of the HTTP requests sent to your particular application, supports rules tuned to that application, and adds bot and rate controls. Publishing a web application usually justifies both.
- "If we hold the server's private key, we can decrypt TLS from a mirror port." That worked only with static RSA key exchange. TLS 1.3 removed it, and ECDHE sessions in TLS 1.2 resist it too, because the session keys never depend on the server's long-term key alone.
- "Asymmetric encryption is stronger, so TLS uses it for the data." TLS uses asymmetric algorithms only to authenticate and agree on keys. The data is encrypted with a fast symmetric AEAD cipher such as AES-GCM.
- "Security groups and network ACLs behave the same way." Security groups are stateful and attach to interfaces. AWS network ACLs are stateless and apply to subnets, so they need explicit rules for return traffic.
- "NAC is just 802.1X." 802.1X authenticates the device or user. NAC also assesses posture, assigns VLANs or ACLs, re-assesses devices and can move a connected session with a Change of Authorization.
- "The RSA in an ECDHE_RSA cipher suite means it lacks forward secrecy." In that suite, RSA only signs the handshake. ECDHE does the key exchange, so the suite has forward secrecy. Only suites with plain RSA key exchange lack it.
Looking back
- NIST SP 800-215 names application data awareness at layer 7 as the NGFW's distinguishing feature, with DPI, TLS decryption and IPS among its capabilities.
- A cloud-native firewall is run and scaled by the cloud provider. Security groups are stateful and can refer to other groups. AWS network ACLs are stateless subnet rules.
- A WAF inspects inbound HTTP requests to your applications through a web ACL whose rules allow, block, count or challenge, with a default action for unmatched requests. An SWG filters users' outbound web traffic and is not a replacement for a WAF.
- An inline sensor can block because traffic must pass through it. A passive IDS on a tap or mirror port can only alert, and its failure does not interrupt traffic.
- Symmetric algorithms such as AES carry the bulk data. Asymmetric algorithms such as ECDHE and RSA agree on keys and authenticate. Ephemeral key exchange gives forward secrecy.
- In TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, ECDHE exchanges keys, RSA signs, AES-128-GCM protects the data, and SHA-256 drives key derivation. TLS 1.3 suites name only the AEAD cipher and the hash.
- TLS 1.3 removed static RSA and static Diffie-Hellman, so outbound inspection needs an inline proxy that ends the session using an internal CA that managed devices trust.
- Pinned certificates, mutual TLS and legal limits on reading personal traffic call for decryption exemptions, not for turning inspection off everywhere.
- NAC combines authentication, posture assessment and dynamic lists to place each device in production, remediation or no access, and re-assesses devices while they stay connected.
Sources
- E. Rescorla. (2018). The Transport Layer Security (TLS) Protocol Version 1.3 (RFC 8446). IETF. datatracker.ietf.org
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- NIST. (2022). Guide to a Secure Enterprise Network Landscape, SP 800-215. nvlpubs.nist.gov
- Karen Scarfone; Paul Hoffman. (2009). SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy. NIST. csrc.nist.gov
- Amazon Web Services. (n.d.). How AWS WAF works. docs.aws.amazon.com
- Karen Scarfone; Peter Mell. (2007). Guide to Intrusion Detection and Prevention Systems (IDPS), SP 800-94. NIST. nvlpubs.nist.gov
- Kerry McKay; David Cooper. (2019). Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations, SP 800-52 Rev. 2. NIST. nvlpubs.nist.gov
- Key terms
- Next-generation firewall (NGFW)
- A firewall that adds application awareness at layer 7 to stateful inspection, identifying applications, users and URL categories, and often adding deep packet inspection, TLS decryption and intrusion prevention.
- Cloud-native firewall
- Filtering that a cloud service provider builds and runs as part of its platform, such as security groups and managed firewall services. It is configured through the provider's console, API or templates and scaled by the provider.
- Web application firewall (WAF)
- A layer 7 inspector that examines complete inbound HTTP requests to applications an organization publishes, and allows, blocks, counts or challenges them to stop attacks such as SQL injection and cross-site scripting.
- Secure web gateway (SWG)
- A web filter, often delivered from the cloud, that inspects users' outbound HTTP and HTTPS traffic to block malicious or unwanted sites and downloads wherever the users are.
- Application gateway
- A protocol-aware proxy that ends the client's connection and opens a separate one to the server, relaying only what the application protocol and policy allow. Cloud providers also use the name for a layer 7 reverse proxy and load balancer.
- SSL/TLS inspection
- Decrypting TLS traffic at an inline device, inspecting the plaintext and re-encrypting it. Outbound inspection uses certificates generated on the spot and signed by an internal certificate authority that managed devices trust.
- Cipher suite
- The named set of algorithms a TLS session uses. In TLS 1.2 it names key exchange, authentication, symmetric cipher and hash; in TLS 1.3 it names only the AEAD cipher and the hash.
- Forward secrecy
- The property that recorded sessions stay safe even if a server's long-term private key is stolen later, achieved by agreeing on session keys through ephemeral key exchanges such as ECDHE.
- Posture assessment
- A network access control check of whether a connecting device meets security policy, such as patch age, running EDR, disk encryption or MDM enrollment, used to grant full, limited or no access.
- Dynamic list
- A named set of devices, users, addresses or URLs whose membership updates automatically from a source such as an asset system or threat feed, so the rules that refer to it apply without manual edits.
Configuring Network Access Controls
- Trace a flow through firewall, decryption, URL filtering, file blocking, DLP, geolocation and signature rules, and predict which rule decides it.
- Configure AWS network ACLs and Azure network security groups with correct inbound and outbound rules, including return traffic through stateless controls.
- Choose port security settings and a violation mode for an access switch port to match a stated business need.
- Match scenario wording to the correct access control and avoid common ordering and default-setting mistakes.
Change request CR-2317: one ticket, nine kinds of rule
Change request CR-2317 is a fictional example, and this lesson follows it from the first rule to the last. It reaches the network architect at Larkspur Health, a group of twelve clinics, on a Monday morning with three demands. First, publish a new patient portal on web servers in an Amazon Web Services (AWS) virtual private cloud (VPC), with a PostgreSQL database behind them. Second, stop clinic staff from uploading patient spreadsheets to personal file-sharing sites, which an auditor caught last month. Third, stop the spare network jacks in exam rooms from accepting whatever a visitor plugs in.
No single device can meet all three demands. The work lands on several controls. A next-generation firewall (NGFW) sits at the campus internet edge, and a virtual NGFW sits in the cloud. AWS subnets have network access control lists. Microsoft Azure, where Larkspur runs its scheduling app, has network security groups. Intrusion prevention signatures and the access switches in every clinic make up the rest. Each control reads different fields, keeps or forgets different state, and fails in its own typical way. The procedure below configures them in the order a packet meets them. It then reruns the trickiest step with one input changed.
Exam objectives: CompTIA CloudNetX CNX-001 objective 2.3, "Given a scenario, configure the appropriate access controls to secure a network."[1] The objective's bullets are firewall rules (decryption rules, application aware, source and destination, allow list, block list), network access control lists (NACLs), network security groups (NSGs) with inbound and outbound rules, intrusion prevention system and intrusion detection system (IPS/IDS) signature rules, geolocation rules, content and Uniform Resource Locator (URL) filtering by categories, applications and file blocking, data loss prevention (DLP) controls, and port security.
| Control | Where it runs | What it matches on | Remembers connections? | Typical actions |
|---|---|---|---|---|
| Firewall rule | NGFW at an edge or between zones | Zones, source and destination addresses, users, applications, ports | Yes (stateful) | Allow, deny, attach inspection profiles |
| Decryption rule | NGFW or proxy | Source, destination, URL category | Yes | Decrypt, do not decrypt |
| URL filtering profile | Attached to an allow rule | URL category, listed sites, application functions, file types | Works inside an allowed session | Allow, alert, continue, override, block |
| DLP control | NGFW, proxy, endpoint agent or cloud service | Data patterns inside files, forms and messages | Works inside a session | Log, alert, coach, block |
| Geolocation rule | NGFW, web application firewall, content delivery network edge | Country mapped from the IP address | Inherits the firewall's state | Allow or deny by country |
| IPS/IDS signature rule | Inline IPS or passive IDS sensor | Byte patterns and protocol behavior | Tracks flows | Alert, drop, reject, pass |
| Network ACL (AWS) | Subnet boundary | Protocol, port range, Classless Inter-domain Routing (CIDR) block, direction | No (stateless) | Allow, deny |
| Network security group (Azure) | Subnet or network interface | Five-tuple, service tags, application security groups | Yes (stateful) | Allow, deny |
| Port security | Switch access port | Source Media Access Control (MAC) address | Keeps a table of learned addresses | Protect, restrict, shutdown |
Remember: a packet gets through only if every control on its path allows it, and a stateless control must allow the reply as well. Start every configuration task by listing the controls in the order the packet meets them.
Step 1: Map each flow to the controls on its path
National Institute of Standards and Technology (NIST) Special Publication 800-41 Revision 1, published in September 2009, defines firewalls as devices or programs that control the flow of traffic between networks or hosts with differing security postures.[2] That definition hides a design task. Before you write a rule, you need to know which postures differ, where the boundaries lie and which device sits on each boundary. Most broken access-control changes start before the flows are written down.
So the first step in CR-2317 is a flow table. A network flow here means one kind of conversation: who starts it, who receives it, which protocol and port it uses (for example Transmission Control Protocol, TCP, port 443), and which controls it crosses.
| Flow | Source | Destination | Protocol and port | Controls on the path, in order |
|---|---|---|---|---|
| F1 Patient sign-in | Any internet address | Portal web servers 10.40.1.0/24, published at 203.0.113.10 | TCP 443 | Cloud NGFW (inbound decryption, IPS), web subnet NACL, web security group |
| F2 Portal database query | Web servers 10.40.1.0/24 | Database 10.40.2.10 | TCP 5432 | Web subnet NACL outbound, database subnet NACL inbound, database security group; the reply crosses both NACLs in reverse |
| F3 Staff web browsing | Clinic staff 10.10.0.0/16 | Internet | TCP 443 and 80 | Campus NGFW: firewall rules, decryption, URL filtering, file blocking, DLP, IPS |
| F4 Scheduling app | Clinic staff over a site-to-site virtual private network (VPN) | Azure subnet 10.60.1.0/24 | TCP 443 | Azure NSG inbound; the app's own traffic out passes NSG outbound rules |
| F5 Exam-room workstation | Device on switch port Gi1/0/14 | Clinic virtual local area network (VLAN) 30 | Any | Port security on the access switch |
| F6 Staff administration of the portal | Staff working from internet addresses in the home country | Portal admin interface, published at 203.0.113.20 | TCP 443 | Cloud NGFW (geolocation allow list, inbound decryption, IPS), web subnet NACL, web security group |
Notice the last column of F2. Every TCP conversation has two directions. The request goes from the client's random high port to the server's well-known port, and the reply comes back from the server's port to the client's random port. That random client port is called an ephemeral port. A stateful control remembers the request and lets the reply through on its own. A stateless control does not, so you must write a rule for each direction. Most mistakes in this objective come from forgetting which kind of control you are configuring.
Step 2: Firewall rules: source and destination, allow lists and block lists
A firewall rule is a set of match conditions plus an action. On an NGFW the conditions usually include the source zone and address, the destination zone and address, the user or group, the application, the service (protocol and port), and sometimes a URL category. The action is allow or deny. An allow rule can also carry security profiles. These are inspection settings for threats, URLs, files and data, and they apply only to the traffic that rule lets through.
Source and destination are the core of every rule, and you should write them as narrowly as the flow allows. Use named address objects such as clinic-staff = 10.10.0.0/16 rather than raw numbers. A reviewer can then read the intent, and one change to the object updates every rule that uses it. Source Any and destination Any belong in the final deny rule. In an allow rule they are almost never right.
Two strategies decide what happens to traffic that no rule mentions. An allow list (older documents say whitelist) names what is permitted and denies everything else. A block list (blacklist) names what is forbidden and permits everything else. The difference is the default. An allow list fails closed: a new, unknown application stays blocked until someone approves it. A block list fails open: anything the list's author did not foresee gets through. At a trust boundary, build the rulebase as an allow list that ends in a deny-all rule. Then layer block lists above it for sources you know are hostile, such as a threat-intelligence feed of malicious addresses.
Order matters because most firewalls read the rulebase from the top and stop at the first rule that matches. Palo Alto Networks' URL filtering guide gives exactly this reason when it tells you to place a narrow allow rule above a broader rule that blocks the same category.[3] Here is Larkspur's outbound rulebase for flow F3.
| Order | Name | Source | Destination | Application | URL category | Action and profiles |
|---|---|---|---|---|---|---|
| 1 | deny-threat-feed | Any | Block list object: threat-feed addresses | Any | Any | Deny, log |
| 2 | secteam-research | Group IT-Security | Internet zone | web-browsing, ssl | hacking | Allow; threat profile |
| 3 | staff-web | clinic-staff 10.10.0.0/16 | Internet zone | web-browsing, ssl | Any | Allow; URL profile staff-web, file blocking, DLP, threat profile |
| 4 | resolvers-dns | dns-servers 10.10.5.53 | Internet zone | dns (Domain Name System) | Not applicable | Allow |
| 5 | deny-all-log | Any | Any | Any | Any | Deny, log |
Rule 5 looks redundant, because most firewalls deny unmatched traffic anyway. On many platforms, though, the built-in default deny does not write a log entry. An explicit final deny with logging gives you evidence of what the policy refused, and that evidence is the first thing you reach for when a user reports that something stopped working.
Working the rulebase: two requests, then the same two with rules swapped
Request A. Priya works in IT-Security at 10.10.40.17. She opens a security research blog that the URL database files under the hacking category. Rule 1: the blog's address is not in the threat feed, so there is no match. Rule 2: her group matches, the internet zone matches, the application ssl matches and the category matches. The firewall allows the session, stops evaluating, and applies rule 2's threat profile to the traffic.
Request B. Sam is a scheduler at 10.10.22.8, and he opens the same blog. Rule 1 does not match. Rule 2 does not match, because Sam is not in IT-Security. Rule 3 matches on source, zone and application, so the firewall applies rule 3's URL filtering profile. That profile blocks the hacking category, so Sam sees a block page.
The flip. An engineer tidying the rulebase moves staff-web above secteam-research. Run Request A again. Rule 1 does not match. The new rule 2, staff-web, matches Priya, because 10.10.40.17 lies inside 10.10.0.0/16. The firewall stops there, the profile blocks hacking, and Priya is blocked too. The secteam-research rule is now shadowed: a rule above it matches every packet it could match, so it never fires. Policy-analysis tools flag shadowed rules for this reason. Azure prevents a related ambiguity outright: it will not accept two NSG rules with the same priority and direction.[4]
Remember: in a first-match rulebase, exceptions go above the general rule they make an exception to. When a narrow rule seems to be ignored, look for a broader rule above it.
Step 3: Application-aware rules: match the application, not the port
A port-based rule says "allow TCP 443". Anything that speaks over TCP 443 passes: a browser, a remote-access tool, or a Secure Shell (SSH) session someone moved to port 443 to slip past the firewall. An application-aware rule says "allow the applications web-browsing and ssl". The NGFW then works out the application from the traffic itself, using protocol decoders and application signatures, whatever port the traffic uses.
Run it on CR-2317. Rule 3 allows only web-browsing and ssl. A staff laptop that opens SSH to an outside server on port 443 is identified as ssh. Rule 3 does not match, rule 4 does not match, and rule 5 denies and logs the session. A port-based rule allowing TCP 443 would have let the same session through.
Two configuration details matter in practice. First, pair the application with its standard ports. Many NGFWs offer a setting along the lines of "application default", which allows web-browsing only on 80 and 443 rather than on any port. That stops a permitted application from being used as a carrier on an odd port. Second, some applications depend on others. A collaboration suite may need its own named application plus ssl and web-browsing, so test in a pilot group before you remove a broad rule.
Application identification has a limit. Most encrypted web traffic uses Transport Layer Security (TLS). For a TLS session, the firewall can often still name the application from the unencrypted parts of the handshake, such as the server name the client asks for, sent in a field called the Server Name Indication (SNI). A newer TLS extension, Encrypted Client Hello, is now being deployed by browsers and large content providers, and it encrypts that server name as well. Where it is in use, the firewall loses even that clue, which pushes more inspection toward decryption or endpoint controls. In every case, the firewall cannot see what happens inside the session unless it decrypts.
Step 4: Decryption rules: decide what every later control can see
Most web traffic now runs over TLS. Without decryption, URL filtering sees the hostname but not the full path. File blocking cannot see the file. DLP cannot read the upload, and IPS content signatures cannot match payload bytes. A decryption rule decides which sessions the NGFW opens up for those controls and which it leaves sealed.
| Question | Outbound decryption (forward proxy) | Inbound inspection |
|---|---|---|
| Which traffic? | Your users going to internet sites (flow F3) | Internet clients coming to your own servers (flows F1 and F6) |
| How it works | The NGFW ends the client's TLS session, presents a certificate for the site signed by an internal certificate authority (CA), and opens its own TLS session to the real site | The inspecting device holds your server's certificate and private key, or TLS ends at a load balancer or reverse proxy in front of the servers |
| Prerequisite | The internal CA certificate is trusted by every managed endpoint, pushed by mobile device management (MDM) or group policy | Secure handling of server keys |
| What breaks if it is missing | Browsers show certificate errors; applications that pin certificates fail | The device sees only encrypted bytes |
| Typical exclusions | Personal banking, health sites, pinned applications | Rare; clients using mutual TLS may need care |
One mechanism point catches experienced engineers out. TLS 1.3 uses only ephemeral key exchange. A device that holds the server's private key can therefore no longer decrypt a passive copy of the traffic. It has to take part in the session, by ending TLS itself or by proxying it.
Decryption rules are ordered and first-match, like security rules, so the exceptions go on top. Palo Alto Networks' documentation gives the standard privacy example: a decryption policy rule that excludes sites in the financial-services and health-and-medicine URL categories.[3] It also suggests starting with high-risk and medium-risk sites.[5] It recommends rolling out in stages: check that decryption works as expected, then decrypt a few more categories at a time.[3]
| Order | Name | Source | Destination or category | Action |
|---|---|---|---|---|
| 1 | no-decrypt-privacy | clinic-staff | financial-services, health-and-medicine | Do not decrypt |
| 2 | no-decrypt-pinned | Any | Custom list of applications known to pin certificates | Do not decrypt |
| 3 | decrypt-risky | clinic-staff | high-risk, medium-risk, online storage | Decrypt (forward proxy) |
| 4 | decrypt-general | clinic-staff | Any (phase 2, after pilot) | Decrypt (forward proxy) |
Trace two of Sam's sessions. When he checks his own bank balance at lunch, rule 1 matches and the session stays encrypted. The firewall still applies URL category policy from the hostname, but DLP and file blocking see nothing. When he opens a personal file-sharing site, rule 3 matches and the session is decrypted. Every profile on security rule 3 can now read the content.
Remember: a decryption exclusion is a deliberate blind spot. Write it down, keep it narrow, and do not expect DLP or file blocking to work on traffic you chose not to decrypt.
Step 5: Content and URL filtering: categories, applications and file blocking
Security rule 3 lets staff browse. The URL filtering profile attached to it decides what browsing means. Palo Alto Networks describes a URL Filtering profile as defining how the firewall handles traffic to specific URL categories. It applies the profile to Security policy rules that allow internet access.[5] That attachment is the first thing to understand: a profile does nothing on its own. It inspects only the traffic its parent allow rule permits.
URL categories. The vendor's cloud database files each URL into categories. In this platform, every URL can carry up to four, including a risk category.[3] That allows layered policy. A site can be both "online storage" and "medium-risk", and you can act on either. Two defaults matter. The firewall ships with a default profile that blocks threat-prone categories such as malware and phishing.[5] A newly created basic profile, by contrast, sets every category to allow, which the documentation says means users can browse to all sites freely and the traffic is not logged.[5] An engineer who creates a new profile and attaches it without setting actions has added nothing.
| Action | What the user sees | Logged? | Use it for |
|---|---|---|---|
| allow | The site | Not by default | Business categories you trust |
| alert | The site | Yes | Categories you want visibility into before you decide |
| continue | A warning page with a button to proceed | Yes | Categories considered benign, where a site may be miscategorized |
| override | A page asking for a password issued by the help desk | Yes | Temporary access to a whole category |
| block | A block page, no way through | Yes | Malware, phishing, policy-forbidden categories |
The documentation describes continue as typically used for categories considered benign.[5] It describes override as a response page that asks for a password, which an administrator or help desk provides.[5] Lists of specific sites refine a category decision: you can block the social-networking category but allow specific sites in it.[5]
Application controls. Filtering by application goes finer than allowing or blocking a whole site. Palo Alto's use-case guide notes that you can let users reach a site while blocking particular functions, such as submitting corporate credentials or downloading files.[3] Credential control is a good example. The profile can stop users from typing their corporate credentials into high-risk and medium-risk sites, which defends against credential phishing.[5] Larkspur also uses application controls to permit its own sanctioned file-sharing tenant while treating personal instances of the same service as a different, restricted application.
File blocking. A file blocking profile, also attached to an allow rule, stops chosen file types moving in chosen directions. The guide shows how to block high-risk file downloads from specific URL categories by pairing a Security policy rule with a File Blocking profile.[3] For categories you only alert on, it advises blocking downloads of dangerous file types and obfuscated JavaScript.[5] Most NGFWs identify the file type from its contents rather than trusting the extension, so renaming a file does not fool them, provided the session is decrypted.
| Category | Action | Extra controls | Reason |
|---|---|---|---|
| malware, phishing, command-and-control | block | None needed | Known threats |
| gambling, adult | block | None needed | Acceptable-use policy |
| hacking | block | IT-Security exception in security rule 2 | Research only |
| online storage (personal) | alert | Decrypt; DLP on uploads; credential submission blocked | The auditor's finding |
| high-risk, medium-risk | alert | Decrypt; block executable downloads; block credential submission | Useful content, higher exposure |
| social-networking | continue | None | Allowed, but users are reminded of policy |
| All other categories | allow | Threat profile on the rule | Business browsing |
Remember: URL filtering decides where traffic may go, while file blocking and DLP decide what may travel. All three ride on an allow rule, and all three see more when the session is decrypted.
Step 6: Data loss prevention controls: inspect what leaves
The auditor's finding was about data, not destinations. A spreadsheet of patient records is just as harmful on a well-known storage site as on an obscure one. Data loss prevention (DLP) inspects the content of files, form posts and messages for sensitive data. It then acts on what it finds, whatever the destination's category.
A DLP control has three parts: what to look for, where to look, and what to do on a match.
- What to look for. Pattern rules use regular expressions, often with a validity check. Payment card numbers, for instance, are checked with the Luhn checksum to cut false matches. Keyword dictionaries catch phrases such as "discharge summary". Exact data matching compares content against fingerprints (hashes) of real records exported from the source system, which is far more precise than a pattern. Document fingerprinting recognizes copies of specific template files. Many products also read classification labels that users or tools attached to documents.
- Where to look. Network DLP runs on the NGFW, a proxy or a cloud security service and sees uploads, web forms and email in transit. It is blind to encrypted sessions it does not decrypt. Endpoint DLP runs as an agent and sees copies to USB drives, printing and uploads before encryption. Cloud DLP, often delivered through a cloud access security broker (CASB), inspects data already stored in software-as-a-service (SaaS) applications through their application programming interfaces (APIs).
- What to do. Log only, alert the security team, coach the user with a warning that asks for a justification, block the transfer, or quarantine or encrypt the item.
| Rule | Data identifier | Destination | Threshold | Action |
|---|---|---|---|---|
| DLP-1 | Patient record number pattern | Personal online storage, webmail | 10 or more matches in one file | Block, alert security |
| DLP-2 | Patient record number pattern | Personal online storage, webmail | 1-9 matches | Coach user, log |
| DLP-3 | Exact data match against the patient index | Any destination except the sanctioned storage tenant | 1 or more matches | Block, alert security |
| DLP-4 | Any of the above | Sanctioned storage tenant | Any | Allow, log |
Work it through. Sam uploads a workbook containing 240 record numbers to a personal storage site. Decryption rule 3 opened the session, security rule 3 allowed it, and DLP-1 matches: 240 is at least 10. The upload is blocked and the security team gets an alert. Change one input: the same upload happens while the site is excluded from decryption. DLP never sees the file, and the upload succeeds. That second run is why DLP projects so often turn into decryption projects.
Start new DLP rules in log-only mode for a few weeks. Patterns written from a specification always match things nobody expected, such as part numbers that happen to look like record numbers. Thresholds and exact data matching are the usual tools for bringing false positives down before you switch to block.
Step 7: Geolocation rules: filter by country, knowing what that means
Flow F6 is the staff administration interface for the portal, published at 203.0.113.20. Only staff working in Larkspur's home country use it, and nobody outside that country has any reason to reach it. That fact suggests a geolocation rule: a rule whose source or destination is a set of countries rather than addresses.
The mechanism is a lookup. The firewall vendor or a data provider maps IP address blocks to countries. It builds that map from regional internet registry allocations, routing data and measurement, and the firewall resolves each packet's address against it. A geolocation rule is therefore an address-based rule with a very large, vendor-maintained address object behind it.
The two list strategies apply here as well. A country allow list admits only listed countries. Larkspur uses one for F6: source country equals the home country, otherwise deny. A country block list denies a few named countries and admits the rest. It suits a public service with a worldwide audience, where you only want to shed heavy scanning from places you have no business. The patient portal itself, flow F1, gets no country rule at all, because patients travel. It relies on authentication with multifactor sign-in and on IPS signatures instead.
Know the limits before you promise anything. Country mapping is good but not perfect, and addresses change hands. Cloud provider and content delivery network addresses often geolocate to wherever the provider registered them, not where the server or user is. An attacker can rent a server, or use a residential proxy, inside an allowed country, so a geolocation rule reduces noise but does not establish identity. Geolocation rules also break legitimate traffic in predictable ways. Staff travel. Uptime monitors and payment processors call in from other regions. Health checks from a cloud provider may come from addresses mapped elsewhere. Before you deploy a country allow list, list those sources and write explicit address exceptions above the country rule.
Step 8: IPS/IDS signature rules: detect, then decide whether to stop
An intrusion detection signature is a description of traffic that indicates a known attack or a policy violation. A signature rule pairs that description with an action. The same rule language usually serves both an intrusion detection system (IDS) and an intrusion prevention system (IPS). An IDS watches a copy of traffic and alerts. It is often fed from a switch mirror port, which Cisco calls SPAN (Switched Port Analyzer): a port the switch configures to send the sensor a copy of the frames on other ports. An IPS sits inline, in the traffic path, and can drop traffic. The example below is fictional and simplified, written in the rule style used by the open-source engines Snort and Suricata. It shows two local rules Larkspur adds for the portal.
alert tcp any any -> 10.40.1.0/24 23 (msg:"LOCAL POLICY Telnet attempt to portal web subnet"; flow:to_server; sid:1000001; rev:1;)
drop http any any -> 10.40.1.0/24 any (msg:"LOCAL Request for retired /legacy-export path"; flow:established,to_server; http.uri; content:"/legacy-export/"; nocase; sid:1000002; rev:1;)
| Part | Example value | Meaning |
|---|---|---|
| Action | alert, drop | Record an alert; on an inline sensor, drop the packet and alert. Engines also offer reject (drop and send a reset) and pass (ignore). |
| Protocol | tcp, http | Which traffic the rule considers; an application protocol such as Hypertext Transfer Protocol (HTTP) lets the engine parse fields such as the requested Uniform Resource Identifier (URI) |
| Source and port, direction, destination and port | any any -> 10.40.1.0/24 23 | The same addressing a firewall rule uses |
| msg | LOCAL POLICY Telnet... | Text written into the alert so an analyst knows what fired |
| flow | established,to_server | Match only client-to-server packets in an established session |
| http.uri, content, nocase | /legacy-export/ | Look for these bytes in the request URI, ignoring case |
| sid, rev | 1000002, 1 | Signature identifier and revision, used for tuning, suppression and change tracking |
The first rule only alerts. Nothing should ever send Telnet to the portal, so a match tells Larkspur that a firewall or NACL rule somewhere is wrong, or that someone is probing. NIST SP 800-94 lists this as a real use of intrusion detection: duplicating the firewall rules and alerting on traffic the firewall should have blocked but did not, because of a configuration error.[6] The second rule drops, which works only because the sensor sits inline. It also works only because the portal's TLS is ended at the cloud NGFW's inbound inspection. Otherwise the URI is encrypted and the content match cannot fire.
An IPS can do more than drop one packet. SP 800-94 describes IPSs that end the network connection or user session used for an attack.[6] It also describes IPSs that reconfigure another device, such as a firewall, router or switch, to block access from the attacker or to the target.[6] Each of those responses is also a way to block legitimate users when a signature misfires, which is why tuning matters.
Vendor signature sets run to many thousands of rules. Nobody enables them all in block mode on day one. The usual sequence is: enable the sets that match your environment (web servers, PostgreSQL, the operating systems you run); run in alert mode; review what fires; then set individual signatures or whole high-confidence categories to drop. For noisy signatures, add exceptions by source or destination, or thresholds that fire only after repeated matches. Keep local rules in version control with their sid and rev, so you can tell which version of a rule produced last Tuesday's alerts.
Remember: the action on a signature rule only takes effect if the sensor is placed to carry it out. Drop on a passive sensor fed from a mirror port changes nothing, because the sensor never carried the packet in the first place.
Step 9: Network ACLs: stateless rules at the subnet edge
Now the cloud side of F1 and F2. In AWS, a network access control list (network ACL, or NACL) filters traffic entering and leaving a subnet. Its behavior is unforgiving, and AWS's documentation spells it out:
- One NACL can serve several subnets, but each subnet has exactly one NACL at a time.[7] A subnet with no custom NACL uses the VPC's default NACL, which allows all traffic. A newly created custom NACL denies everything until you add rules.
- Each rule has a number from 1 to 32766.[7] Rules are checked from the lowest number up, and once traffic matches a rule, that rule applies and no further rules are evaluated.[7] A final rule marked with an asterisk denies anything that matched nothing.
- NACLs are stateless, which means information about earlier traffic is not saved.[7] Security groups, the instance-level control, are stateful: if a security group allows inbound traffic to an instance, the responses are allowed regardless of its outbound rules.[7]
- Rules are evaluated when traffic enters and leaves the subnet, not while it moves within the subnet.[7] Two web servers in 10.40.1.0/24 talking to each other never touch the web subnet's NACL.
- Some traffic bypasses NACLs entirely. For example, NACLs cannot block Domain Name System (DNS) requests to or from the Route 53 Resolver, the VPC's built-in DNS service.[7] Filtering those needs a DNS firewall instead.
Because the NACL is stateless, F2 needs four rules across two NACLs. It needs one rule for the request out of the web subnet and one for the request into the database subnet, then one for the reply out of the database subnet and one for the reply into the web subnet. The reply rules must allow the client's ephemeral ports. Different operating systems pick ephemeral ports from different ranges, so a broad range such as 1024-65535 is the common choice. Rule numbers go up in steps of 10, leaving room to insert rules later without renumbering.
| Direction | Rule # | Protocol | Port range | Source or destination | Action |
|---|---|---|---|---|---|
| Inbound | 100 | TCP | 5432 | Source 10.40.1.0/24 (web subnet) | Allow |
| Inbound | 110 | TCP | 22 | Source 10.40.9.0/24 (management subnet) | Allow |
| Inbound | * | All | All | 0.0.0.0/0 | Deny |
| Outbound | 100 | TCP | 1024-65535 | Destination 10.40.1.0/24 | Allow |
| Outbound | 110 | TCP | 1024-65535 | Destination 10.40.9.0/24 | Allow |
| Outbound | * | All | All | 0.0.0.0/0 | Deny |
The web subnet's NACL mirrors this. It allows TCP 5432 outbound to 10.40.2.0/24 and TCP 1024-65535 inbound from 10.40.2.0/24. It also allows TCP 443 inbound from the cloud NGFW's subnet, with ephemeral ports outbound back to it. Behind the NACLs, the database instance's security group allows TCP 5432 with the web servers' security group as its source. A security group can name another security group as a source, so the rule keeps working as web servers are added or replaced.
Now walk one query through. A web server at 10.40.1.25 opens a connection from ephemeral port 51514 to 10.40.2.10 port 5432.
| Packet | Check | Matching rule | Result |
|---|---|---|---|
| Request 10.40.1.25:51514 to 10.40.2.10:5432 | Web NACL outbound | Allow TCP 5432 to 10.40.2.0/24 | Pass |
| Request | Database NACL inbound | Rule 100 | Pass |
| Request | Database security group inbound | Allow 5432 from web security group | Pass |
| Reply 10.40.2.10:5432 to 10.40.1.25:51514 | Database security group | Stateful: reply to a tracked connection | Pass |
| Reply | Database NACL outbound | Rule 100: TCP 1024-65535 to 10.40.1.0/24 | Pass |
| Reply | Web NACL inbound | Allow TCP 1024-65535 from 10.40.2.0/24 | Pass |
Step 10: Second run: one tidy-looking change flips the verdict
A month later, a well-meaning reviewer reads the database NACL and objects. "Outbound 1024-65535 is far too broad for a database. It should only talk on 5432." They change outbound rule 100 to TCP port 5432, destination 10.40.1.0/24. Nothing else changes.
Run the same query. The request still passes the first three checks, because nothing on the inbound side changed. The database answers. Its reply leaves from source port 5432 and is addressed to destination port 51514. A NACL port range in an outbound rule is matched against the destination port, so the reply's destination is 51514. Rule 100 now allows only 5432, so it does not match. Rule 110 covers a different destination. The asterisk rule denies. The reply is dropped at the subnet edge, and the web server sees connection timeouts, not refusals. The difference is a clue: a refused connection means something answered with a reset, while a timeout means something silently dropped a packet.
Now make the same edit on the database security group's outbound rules instead. Nothing happens to the portal. The security group is stateful, so the reply belongs to a tracked connection and passes whatever the outbound rules say. The identical change is harmless on one control and an outage on the other. The only difference is whether the control keeps state.
Remember: on a stateless control, the rule for the reply names the client's ephemeral ports as the destination port. If a stateless filter is involved and the symptom is a timeout after a change, check the return-direction rule first.
Step 11: Network security groups: inbound and outbound rules in Azure
Flow F4 reaches Larkspur's scheduling app in Azure. There the subnet and instance controls are merged into one construct. Microsoft's documentation describes a network security group as a set of security rules that allow or deny inbound traffic to, or outbound traffic from, several types of Azure resources.[4] An NSG can be attached to a subnet, to a virtual machine (VM) network interface, or to both. If both are present, traffic must pass both: inbound traffic meets the subnet NSG and then the interface NSG, and outbound traffic meets them in the reverse order.
Each rule has a priority, a name, a source and a destination, a protocol, a port range, a direction and an action. Lower priority numbers are processed first, and processing stops at the first match. Azure's own default rules carry the highest numbers, so your rules are always processed before them.[4] Matching uses the five-tuple of source, source port, destination, destination port and protocol.[4] NSGs are stateful. If you allow outbound traffic to a port, you do not need an inbound rule for the response.[4] The same holds in the other direction.
Sources and destinations can be addresses or ranges, but also two labels that save maintenance. A service tag represents a group of IP address prefixes from a given Azure service, and Microsoft maintains the list.[4] Examples are Storage, Internet and VirtualNetwork. An application security group is a label you put on VMs, so a rule can say "from web-tier to db-tier" without listing addresses. One translation detail matters for internet-facing VMs. For inbound traffic, NSGs process traffic after Azure has translated public IP addresses to private ones.[4] Your inbound rule therefore names the VM's private address, not its public one.
| Priority | Name | Source | Destination | Protocol and port | Action |
|---|---|---|---|---|---|
| 100 | allow-clinics-https | 10.10.0.0/16 | 10.60.1.0/24 | TCP 443 | Allow |
| 110 | allow-jumphost-ssh | 10.10.250.0/24 | 10.60.1.0/24 | TCP 22 | Allow |
| 120 | allow-app-cluster | 10.60.1.0/24 | 10.60.1.0/24 | Any | Allow |
| 4000 | deny-other-vnet-in | VirtualNetwork | Any | Any | Deny |
| 65000 | AllowVnetInBound | VirtualNetwork | VirtualNetwork | Any | Allow |
| 65001 | AllowAzureLoadBalancerInBound | AzureLoadBalancer | Any | Any | Allow |
| 65500 | DenyAllInBound | Any | Any | Any | Deny |
Read the defaults closely, because they are where Azure designs leak. AllowVnetInBound admits anything tagged VirtualNetwork. That tag covers the virtual network's own address space, peered networks, and on-premises ranges reached through a VPN gateway. Left alone, every clinic PC and every peered workload can reach every port on the scheduling servers. Rule 4000 closes that gap. Rules 100 to 120 above it reopen exactly what the app needs, including traffic between the app's own servers.
| Priority | Name | Source | Destination | Protocol and port | Action |
|---|---|---|---|---|---|
| 100 | allow-smtp-relay | 10.60.1.0/24 | 10.10.5.25 (internal mail relay) | TCP 587 | Allow |
| 110 | allow-storage | 10.60.1.0/24 | Service tag Storage | TCP 443 | Allow |
| 4000 | deny-internet-out | Any | Service tag Internet | Any | Deny |
| 65000 | AllowVnetOutBound | VirtualNetwork | VirtualNetwork | Any | Allow |
| 65001 | AllowInternetOutBound | Any | Internet | Any | Allow |
| 65500 | DenyAllOutBound | Any | Any | Any | Deny |
The outbound defaults let every VM reach the whole internet through AllowInternetOutBound. Outbound rules are where you stop a compromised server from calling home or uploading data. Here, rule 110 permits the Azure Storage service by tag. It sits above rule 4000, because Storage's public addresses also fall within the Internet tag, and first match wins.
Work F4 and one outbound case. Sam's browser at 10.10.22.8 opens TCP 443 to 10.60.1.20 over the site-to-site VPN. Inbound priority 100 matches, and the session is allowed. The reply needs no outbound rule, because the NSG tracks the flow. Now the scheduling app tries to send appointment reminders directly to an external mail server on TCP 25, the Simple Mail Transfer Protocol (SMTP) port. Outbound 100 does not match (wrong destination and port), 110 does not match, and 4000 denies. The fix is to send through the internal relay on 587, which rule 100 allows. On some Azure subscription types the platform blocks this traffic anyway: for the cloud service provider subscription type, Microsoft states that outbound port 25 communication is blocked from all resources, and that you have to use an SMTP relay service to send email from a virtual machine.[4]
| Property | AWS network ACL | AWS security group | Azure NSG |
|---|---|---|---|
| Attached to | Subnet | Instance network interface | Subnet, network interface, or both |
| State | Stateless | Stateful | Stateful |
| Rule actions | Allow and deny | Allow only | Allow and deny |
| Evaluation | Lowest rule number first, first match wins | All rules considered; any allow permits | Lowest priority number first, first match wins |
| Return traffic | Needs its own rule | Automatic | Automatic |
| Typical use | Coarse subnet guardrail, explicit denies | Per-workload allow list | Both roles in one construct |
Remember: NSG inbound rules protect what listens, and outbound rules limit what a compromised workload can reach. Azure's defaults allow internal and internet-bound traffic until your own lower-numbered rules say otherwise.
Step 12: Port security on the access switch
The third demand in CR-2317 is physical. A visitor in exam room 4 unplugs the workstation and plugs in a laptop, or adds a small unmanaged switch so both work. Port security is a switch feature that limits which source MAC addresses an access port will accept and how many. It works at layer 2, before any IP address exists, and it is enforced on the switch port itself.
The configuration below is a fictional example in Cisco IOS syntax. The first block secures the workstation port. The spare jack is handled in the second block, and it gets a different treatment: the strongest control for an unused port is not port security but shutting the port down and parking it in an unused VLAN.
interface GigabitEthernet1/0/14
description Exam room 4 workstation
switchport mode access
switchport access vlan 30
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation restrict
!
interface GigabitEthernet1/0/15
description Spare jack, exam room 4
switchport mode access
switchport access vlan 999
shutdown
Line by line: port security requires the port to be a static access port, so the mode is set explicitly. The maximum of 1 means only one MAC address is accepted. With the sticky option, the switch learns the first MAC address it sees and writes it into the running configuration, which saves a technician from typing every workstation's address. Save the configuration afterward, or the learned address is lost on reload. The violation mode decides what happens when a frame arrives from an address that would exceed the limit.
| Mode | Frames from the extra address | Log message and violation counter | Port state |
|---|---|---|---|
| protect | Dropped | No | Stays up; the known device keeps working |
| restrict | Dropped | Yes (syslog, Simple Network Management Protocol (SNMP) trap, counter increases) | Stays up; the known device keeps working |
| shutdown (the default) | Port stops forwarding | Yes | Error-disabled until an administrator recovers it or automatic recovery is configured |
Choosing the mode is a business decision, and the scenario usually tells you which way it goes. In an exam room, a clinician who loses the workstation mid-appointment is a patient-care problem, so Larkspur uses restrict. The workstation keeps working, the extra device gets nothing, and the security team sees a log entry. On a lobby kiosk port, where nothing else should ever appear, shutdown is right. A dead port is a loud, useful signal, and someone has to walk over and look. Protect is rarely the best choice because it hides the event.
Here is simplified example output after a visitor plugs in an unmanaged switch with a laptop behind it, in restrict mode:
Switch# show port-security interface GigabitEthernet1/0/14
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Restrict
Maximum MAC Addresses : 1
Total MAC Addresses : 1
Sticky MAC Addresses : 1
Last Source Address:Vlan : 0200.5e10.0003:30
Security Violation Count : 14
The port is still up. The violation count shows 14 rejected frames, and the last source address is the laptop's locally administered MAC address. Under shutdown, the status would read as shut down by a security violation, and the workstation would be offline as well.
Port security limits addresses. It does not authenticate devices, because a MAC address can be copied from a label or a packet. For stronger assurance, Larkspur's next phase is IEEE 802.1X network access control (NAC), which requires each device to prove its identity to a Remote Authentication Dial-In User Service (RADIUS) server before the port forwards traffic. Port security then stays on as a backstop.
Exam cues: what the stem says, and what it points to
| The stem says | Look for | Commonly confused with |
|---|---|---|
| Subnet level, rule numbers, stateless, replies time out after a change | Network ACL with an ephemeral-port return rule | Security group or NSG, which return replies automatically |
| Azure, priority, attached to a network interface or subnet, service tag | Network security group inbound or outbound rule | Network ACL |
| Same port, different application; SSH or a tunnel on 443 | Application-aware firewall rule | Block list of ports |
| Malware or data hidden inside HTTPS; DLP sees nothing | Decryption rule | A stricter URL category |
| Do not inspect banking or health sites | No-decrypt rule placed above the decrypt rule | Blocking the category |
| Block gambling or newly registered sites; warn but let users proceed | URL filtering category with block or continue | Geolocation rule |
| Allow the site, stop downloads or uploads of certain file types | File blocking profile on the allow rule | DLP, which looks at data content, not file type |
| Stop record numbers or card numbers leaving | DLP control | URL filtering, which looks at destination |
| Traffic from countries where we have no users | Geolocation rule, allow list or block list | Authentication, which geolocation does not provide |
| Known exploit pattern, sid, alert versus drop | IPS/IDS signature rule; drop needs an inline sensor | Firewall deny rule |
| Unknown device on a wall jack, MAC limit, err-disabled | Port security and its violation mode | 802.1X NAC, which authenticates rather than counts |
| Only approved destinations; deny everything else | Allow list ending in a logged deny | Block list, which fails open |
| A narrow rule never fires | Shadowing by a broader rule above it | A missing rule |
Common misconceptions
- "If I allow the request, the reply is allowed too." That holds for stateful controls such as NGFW rules, AWS security groups and Azure NSGs. It is false for AWS network ACLs, which need an explicit rule for the reply on the client's ephemeral ports.
- "Decrypting everything is the most secure setting." Decryption exclusions for personal banking, health sites and certificate-pinned applications are part of a sound design. They protect employee privacy and keep applications working. The risk lies in exclusions that are undocumented or too broad, not in having exclusions.
- "A country block stops attackers from that country." It stops traffic from addresses mapped to that country. Anyone can rent a server or use a proxy inside an allowed country, so geolocation reduces noise but does not replace authentication or IPS.
- "Port security authenticates devices." It counts and remembers MAC addresses, which can be copied. Device authentication needs 802.1X NAC.
- "Setting a signature to drop protects us." Only an inline sensor can drop. A passive IDS on a mirror port can only alert, whatever the rule says.
- "A new URL filtering profile starts out restrictive." On the platform documented here, a newly created basic profile allows every category without logging until you set actions. The shipped default profile is the one that blocks threat categories.
Recap
- A packet passes only if every control on its path allows it. Stateless controls such as AWS network ACLs must also allow the reply, usually TCP 1024-65535 toward the client.
- Firewall rules, network ACLs and NSGs are first-match. A broad rule above a narrow one shadows it, so exceptions go above the general rule.
- Allow lists fail closed and block lists fail open. Build boundaries as allow lists ending in a logged deny, and layer block lists such as threat feeds above them.
- Application-aware rules identify the application from the traffic itself, so SSH on port 443 is still treated as SSH.
- Decryption rules decide what URL paths, file blocking, DLP and content signatures can see. No-decrypt exclusions for categories such as financial services and health go above the decrypt rule.
- URL filtering profiles, file blocking profiles and DLP act only on traffic their parent allow rule permits. A newly created basic URL profile allows every category without logging until you set actions.
- Azure NSGs are stateful and processed lowest priority number first. Their defaults, numbered 65000-65500, allow virtual network traffic and outbound internet access until your rules override them.
- Geolocation rules map IP addresses to countries. They reduce noise and exposure, but they do not authenticate anyone.
- Port security limits the MAC addresses an access port accepts. Protect drops silently, restrict drops and logs, and shutdown (the default) error-disables the port.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Karen Scarfone; Paul Hoffman. (2009). Guidelines on Firewalls and Firewall Policy (SP 800-41 Rev. 1). NIST. csrc.nist.gov
- Palo Alto Networks. (n.d.). URL Filtering Use Cases. docs.paloaltonetworks.com
- Microsoft Learn. (n.d.). Network security groups overview. learn.microsoft.com
- Palo Alto Networks. (n.d.). URL Filtering Profiles. docs.paloaltonetworks.com
- Karen Scarfone; Peter Mell. (2007). Guide to Intrusion Detection and Prevention Systems (IDPS) (SP 800-94). NIST. nvlpubs.nist.gov
- Amazon Web Services. (n.d.). Control subnet traffic with network access control lists. docs.aws.amazon.com
- Key terms
- Network access control list (NACL)
- In AWS, a stateless set of numbered allow and deny rules applied to traffic entering and leaving a subnet; rules are checked lowest number first, and replies need their own rules.
- Network security group (NSG)
- In Azure, a stateful set of prioritized inbound and outbound allow and deny rules attached to a subnet or network interface, matched on source, destination, ports and protocol.
- Allow list
- A rule strategy that names permitted traffic and denies everything else by default, so unknown traffic is blocked until approved.
- Block list
- A rule strategy that names forbidden traffic and permits everything else by default, so traffic nobody foresaw gets through.
- Decryption rule
- A firewall or proxy policy rule that decides which TLS sessions are decrypted for inspection and which are excluded, typically matched on source, destination and URL category.
- Application-aware rule
- A firewall rule that matches the application identified from the traffic itself rather than only the port number, so a protocol moved to an unusual port is still recognized.
- File blocking
- A firewall profile attached to an allow rule that stops specified file types from being uploaded or downloaded, often only for chosen URL categories.
- Data loss prevention (DLP) control
- A rule that inspects files, forms or messages for sensitive data such as record numbers, then logs, coaches, blocks or quarantines the transfer.
- IPS/IDS signature rule
- A pattern describing known attack or policy-violating traffic, paired with an action such as alert or drop; dropping requires an inline sensor.
- Port security
- A switch feature that limits how many and which source MAC addresses an access port accepts, with protect, restrict or shutdown actions on a violation.
Applying Zero Trust Principles to a Network
- Explain how zero trust replaces location-based trust with per-request decisions that use identity, device posture and context.
- Choose among microsegmentation, ZTNA, CASB, SASE and SSE for a stated requirement and justify the choice.
- Apply least privilege and device trust to evaluate access requests and to design workload segmentation rules.
- Trace how one changed rule or request input changes a blast radius or an access decision.
A flat network and one borrowed password
Picture a fictional company, Kestrel Biologics, at 07:50 on a Monday. It employs 1,400 people across a headquarters, two data centers and twelve branch laboratories. It runs a growing set of workloads in Microsoft Azure and subscribes to about forty software as a service (SaaS) applications. Over the weekend, a contractor's remote-access account signed in from a hotel network. It then opened connections to two file servers, a backup console and the database behind the laboratory information management system (LIMS). The contractor had been hired to maintain one reporting dashboard. A phishing page had captured the account's password on Friday afternoon.
Nothing on Kestrel's network malfunctioned. The firewall at the internet edge did its job. The virtual private network (VPN) did its job as well. It checked the password once, then gave the laptop an address on the inside, where the design assumed everything could be trusted. Every server answered because every server was reachable. No single device was at fault. The fault was the assumption, and zero trust replaces it.
The rest of this lesson follows Kestrel's network architect, Dana (also invented), through the redesign. Each item in the exam objective arrives at the point where Dana needs it. Near the end, you will watch all of them act on a single access request. The lesson assumes the firewall, VPN and identity basics from Security+.
Exam objectives: CompTIA CloudNetX CNX-001 objective 2.4, "Given a scenario, analyze requirements to apply the appropriate Zero Trust architecture (ZTA) principles to secure a network." The objective names microsegmentation, Secure Access Service Edge (SASE) and its subset Secure Service Edge (SSE), Cloud Access Security Broker (CASB), identity as the perimeter, device trust, the principle of least privilege, and Zero Trust network access (ZTNA).[1]
What NIST SP 800-207 changed about trust
In 2020 the US National Institute of Standards and Technology (NIST) published Special Publication (SP) 800-207, Zero Trust Architecture, by Scott Rose, Oliver Borchert, Stu Mitchell and Sean Connelly. Its central claim is the one Kestrel learned the hard way. Zero trust grants no implicit trust to an account or a device because of its physical or network location alone, or because the enterprise owns it.[2] A perimeter firewall decides what gets in. It says nothing about what happens next. Kestrel's weekend began outside and became an inside attack the moment the VPN connected.
NIST's operative definition is worth reading slowly. Zero trust is a collection of ideas for making access decisions that are accurate, least privileged and made per request, while treating the network as already compromised.[2] Three phrases carry the weight:
- Per request. A device does not enter a trusted state by connecting. Each attempt to reach a resource is a new decision. A login at 08:00 does not authorize a database query at 23:00.
- Least privileged. The decision grants the smallest access that does the job: one application, not a subnet; read, not write; for a session, not forever.
- A network viewed as compromised. The design starts from the assumption that an attacker may already be on some segment. The question changes from "how do we keep them out?" to "what could they reach from here, and how would we know?"
Two more of NIST's statements turn this into rules a designer can check. First, one of its basic tenets says that a request from a device on the enterprise's own network must meet the same security requirements as a request from any other network.[2] A wired desk port at headquarters earns nothing that a hotel Wi-Fi connection does not. Second, the publication's abstract says that zero trust protects resources, meaning assets, services, workflows and accounts, rather than network segments.[2] The unit you design around is the thing being reached, not the zone it sits in.
Keep two terms separate. Zero trust (ZT) is the set of principles. A Zero Trust architecture (ZTA) is an organization's plan for applying them: which components exist, how they relate, and what the policies say. You cannot buy one in a box. NIST's National Cybersecurity Center of Excellence (NCCoE) worked with 24 technology collaborators and, in SP 1800-35 (finalized in June 2025), documented 19 different example implementations built from commercially available products.[3] Nineteen builds from many vendors is a fair picture of the market: each ZTA is assembled from parts.
In short: zero trust removes location and ownership as reasons to trust. It makes every request a fresh decision and protects resources rather than network zones. A ZTA is the plan that puts those ideas into practice with many cooperating components.
How a zero trust access decision is made
SP 800-207 describes the logical parts of a ZTA. Vendor documentation uses other names for them, but the roles are the same. The policy engine makes the decision. The policy administrator carries it out by setting up or tearing down the path, for example by issuing a session token. Together NIST calls them the policy decision point. The policy enforcement point (PEP) is where traffic is actually allowed or stopped. It might be an access proxy, a gateway, an agent on the host or a cloud security group. For each resource in a design, ask two questions: where is its PEP, and can traffic reach the resource any other way? A resource with a side door has no real enforcement point.
The decision itself uses two identities. NIST requires authentication and authorization of both the subject (the user or service asking) and the device. These are separate steps, performed before a session to the resource exists.[2] Typical inputs to the decision include the user's identity and groups, device health and risk, location, time, the sensitivity of the data and unusual behavior. Location is still on that list. It just stops being the deciding factor.
Microsoft condenses zero trust into three principles, and they map neatly onto the CloudNetX bullets.[4] The table shows each one and what Dana does with it at Kestrel.
| Principle | What it asks for | Kestrel control | Objective bullets it drives |
|---|---|---|---|
| Verify explicitly | Authenticate and authorize every request using all available signals | Every application sits behind an identity provider policy that checks user, device and risk | Identity as the perimeter, device trust, ZTNA |
| Use least-privileged access | Just-in-time and just-enough access, adaptive policy, data protection | Contractors see one app; admins elevate for a window; SaaS uploads are checked | Principle of least privilege, CASB |
| Assume breach | Minimize blast radius, segment access, encrypt end to end, use analytics | Workload-level segmentation in both data centers and in Azure; cloud-delivered inspection | Microsegmentation, SASE and SSE |
Two phrases in that table need definitions. Just-in-time and just-enough access (JIT/JEA) means access that exists only when needed and covers only what is needed. Blast radius is the set of resources an attacker could affect from one compromised foothold. At Kestrel on that Monday, the blast radius of one contractor password was most of the data center.
Identity as the perimeter
Look at how Kestrel's old firewall rule for the LIMS web front end was written. It trusted an address range, the VPN pool, so it trusted anyone who could get an address in that range. The IP address was standing in for "who you are". It is a poor stand-in, because it says where a packet came from, not who sent it or from what machine.
! Before: trust by address (fictional rule, documentation addresses)
access-list 120 permit tcp 198.51.100.0 0.0.0.255 host 192.0.2.40 eq 443
# After: trust by identity (fictional access-broker policy)
application: lims-web
allow:
groups: [LIMS-Analysts, LIMS-Admins]
require: [mfa-phishing-resistant, device-compliant]
session: 8h, reevaluate on risk change
default: deny
Identity as the perimeter means that the boundary deciding access is drawn around identities (of users, devices and workloads) rather than around network address space. In practice the identity provider (IdP) becomes the main control plane. The IdP is the directory and sign-on service that issues tokens. Its conditional access policies decide whether a token is issued for a given application, and the applications and access proxies accept only those tokens. Lesson 14 covers single sign-on (SSO), tokens and multifactor authentication (MFA) in detail. Here the point is architectural.
Three design consequences follow. An architect who misses them builds a weaker system than the one being replaced:
- The IdP becomes critical infrastructure. If it is unreachable, nobody reaches anything. Plan its availability the way Lesson 5 planned core services: redundant regions, tested emergency (break-glass) accounts, and documented behavior when the IdP is down.
- The IdP becomes the prime target. A perimeter made of identities is only as strong as its authentication. Phishing-resistant MFA for everyone, and stronger controls for administrators, are prerequisites, not refinements. Kestrel's contractor account had a password and nothing else.
- Workloads need identities too. Servers, containers and scripts talk to each other far more than people talk to servers. Service principals, managed identities and machine certificates let a policy say "the LIMS application tier" rather than "192.0.2.50".
Identity as the perimeter does not mean the network stops mattering. Identity decides who may ask. The network still decides what can physically be reached, and a well-built design uses both: an identity check at the front door and network rules that hide everything a subject has no business reaching.
Device trust: the second half of every request
Suppose Kestrel had required phishing-resistant MFA on Friday. The weekend would likely have gone differently, but another gap would remain. A legitimate user on a laptop already infected with malware passes every identity check. Device trust means two things. First, establish which device a request comes from and whether its current state is acceptable before granting access. Second, keep re-checking that state while the session lasts.
NIST's fifth tenet is direct about this. No asset is inherently trusted, and the enterprise checks an asset's security posture as part of judging each request. Devices found to be subverted, to have known vulnerabilities, or to be outside enterprise management may be treated differently, up to and including denial of all connections.[2] In a bring your own device (BYOD) program, a personal phone is therefore not ignored. It is assessed and given a narrower policy.
Device trust has two parts that people often blur. Device identity answers "is this the enrolled device it claims to be?" The usual proof is a certificate issued at enrollment by the enterprise public key infrastructure (PKI) and kept in hardware such as a Trusted Platform Module (TPM), a tamper-resistant chip that stores keys on the device. Device posture answers "is it in an acceptable state right now?" A stolen but enrolled laptop has a good identity and may have good posture. That is why device trust complements user authentication rather than replacing it.
| Posture signal | Typical source | What it protects against |
|---|---|---|
| Enrollment in mobile device management (MDM) | MDM service | Unknown or unmanaged hardware reaching sensitive apps |
| Device certificate present and valid | Enterprise PKI, hardware key store | A cloned or spoofed device claiming to be managed |
| Operating system patch age | MDM or endpoint agent | Known vulnerabilities that already have fixes |
| Disk encryption on | MDM | Data exposure if the device is lost |
| Endpoint detection and response (EDR) agent healthy; device risk score | EDR platform | A device that is already compromised |
| Jailbreak or root detection | Mobile MDM agent | A phone whose built-in security model has been removed |
Dana writes Kestrel's device tiers like this. It is an illustrative policy, not a product default.
| Device | What the signals show | Tier | Access granted |
|---|---|---|---|
| KB-LT-0412, company laptop | Enrolled, certificate valid, patched 6 days ago, encrypted, EDR healthy | Compliant | All apps the user's groups allow |
| KB-LT-0377, company laptop | Enrolled, but the EDR agent has not reported for 3 days | Noncompliant | Remediation portal and patch service only |
| Contractor's personal laptop | Not enrolled, no certificate | Unmanaged | Browser-only access to low-risk web apps, downloads blocked |
Notice what the second row teaches. KB-LT-0377 is company-owned, joined to the domain and plugged into the corporate local area network (LAN), and it still loses access. Ownership is not posture. Posture data is also only as fresh as the agent's last report. A policy should therefore treat "no recent report" as a failing signal, not a pass.
In short: identity as the perimeter decides who is asking. Device trust decides whether they are asking from the expected machine and whether that machine is healthy now. A zero trust decision needs both.
The principle of least privilege, applied to the network
Most people meet the principle of least privilege as a rule about accounts and file permissions: grant the smallest set of permissions a job needs. NIST applies it more widely: least privilege restricts both visibility and accessibility.[2] For a network architect, visibility is the part that changes designs. A resource a user is not entitled to should not even appear: not in a portal, not in a port scan, not in a Domain Name System (DNS) answer.
On a network, least privilege has four dimensions, and Kestrel's contractor access failed all four:
- Scope: which resources and which actions. One dashboard, read-only, rather than every server.
- Path: which ports and protocols. Hypertext Transfer Protocol Secure (HTTPS) to one host, rather than every Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) port on ten subnets.
- Time: how long the access lasts. Standing access exists all the time. Just-in-time (JIT) access exists only for an approved window.
- Visibility: what the subject can see or discover. One tile in an access portal, rather than every internal name and address.
Here is the contractor's access before and after, as Dana documented it.
| Dimension | Before (VPN) | After (redesign) |
|---|---|---|
| Scope: resources | Every host in the 10 server subnets routed to the VPN pool, about 600 servers | One application: the reporting dashboard |
| Scope: actions | Whatever each server's local accounts allowed | Dashboard editor role; no database access |
| Path | All ports | TCP 443, through the access broker only |
| Time | Account valid indefinitely; VPN usable at any hour | Access expires on the contract end date; sessions re-evaluated when risk changes |
| Visibility | Could resolve and scan every internal name | Sees one tile in the access portal |
Now compare the blast radius. Before, one stolen contractor credential exposed roughly 600 servers on any port. After, the same stolen credential exposes one dashboard, on one port, to one role, and only if it somehow got past MFA. The protection came from a smaller grant, not a stronger wall.
For administrators, Dana replaces standing admin rights with JIT elevation. Network engineers hold ordinary accounts. When a change is approved, the privileged access management (PAM) system grants firewall administrator rights for four hours and records the session. Lesson 15 covers PAM and role design in depth. The network consequence is that, most of the time, no account at Kestrel can change a firewall. A stolen engineer's password is therefore worth far less.
In short: on a network, least privilege limits scope, path, time and visibility. The blast radius of a stolen credential depends on the size of the grant, not the strength of the perimeter.
Microsegmentation: containing what gets in
Least privilege controls what users can reach. Kestrel has a second problem: what servers can reach. In the old design, the LIMS web servers, application servers and database shared a subnet with file servers and the backup console. Traffic inside that subnet passed through no firewall at all. Traffic between servers inside a data center is called east-west traffic. Traffic into and out of the data center is north-south. Kestrel's firewalls watched only north-south traffic.
Microsoft's segmentation strategy guide gives two definitions worth keeping. A segment is a logical unit that is isolated from other entities and protected by its own set of security measures.[5] A perimeter is the trust boundary around a segment.[5] The goal is containment: when a segment is compromised, it is contained and prevented from spreading laterally through the rest of the network.[5] Movement from one compromised host to others is called lateral movement, and stopping it is what the assume-breach principle asks for.
Traditional segmentation draws boundaries around groups: a virtual local area network (VLAN) per department, a firewall zone per tier. Microsegmentation draws them around individual workloads, applications or services, so each one has its own small perimeter.[4] The practical difference is what happens inside a group. With VLAN segmentation, two database servers in the same VLAN talk freely. With microsegmentation, they talk only if a rule says they should.
In a cloud, segmentation works at several levels: between accounts or subscriptions, between virtual networks (VNets), between subnets in a VNet, and between the internet and a VNet. The coarse levels isolate whole environments, such as production from development. Microsegmentation is the finest level: inside a subnet, down to the single workload.
Where microsegmentation is enforced, and in what order
| Enforcement point | How it works | Strength | Watch out for |
|---|---|---|---|
| Host-based agent | A central console programs each server's own firewall | Works anywhere the agent runs, on premises or in any cloud | Hosts that cannot run an agent, such as appliances; an attacker with admin rights on the host may tamper with it |
| Hypervisor or virtual switch distributed firewall | Rules are applied at each virtual machine's (VM's) virtual network interface | Enforced outside the guest operating system, so harder to disable from inside | Covers only workloads on that virtualization platform |
| Cloud-native controls | Network security groups (NSGs), security groups or application security groups attached to interfaces | Built in, applied by the provider's fabric, manageable as code | Each cloud's model differs; rules written by IP range drift as workloads change |
| Network devices | Access control lists (ACLs) and firewalls between VLANs or zones | No change to servers | Coarse: cannot separate two hosts in the same VLAN unless their traffic is forced through a firewall |
Good microsegmentation policy is written against labels such as app=lims, tier=db and env=prod, rather than against addresses. A new database VM built with the right labels inherits the right rules. When an address changes, nothing breaks. Rules written by IP range are where microsegmentation projects quietly decay.
Deployment follows an order. Skipping a step is the most common way these projects fail:
- Discover. Collect flow logs for several weeks, long enough to see month-end jobs, backups and patch cycles.
- Label. Tag every workload by application, tier and environment.
- Model. Write allow rules for the flows each application needs. Include shared services such as DNS, Network Time Protocol (NTP), the directory, patching, backup and monitoring.
- Monitor. Run the policy in log-only mode and review what would have been blocked.
- Enforce. Switch to default deny one application at a time, with a rollback plan.
Worked example: the LIMS ruleset, run twice
Dana's enforced policy for the LIMS application looks like this. The labels are fictional, and the backup port is invented for the example.
| Rule | Source | Destination | Port | Action |
|---|---|---|---|---|
| 1 | ZTNA connector | app=lims tier=web | TCP 443 | Allow |
| 2 | app=lims tier=web | app=lims tier=app | TCP 8443 | Allow |
| 3 | app=lims tier=app | app=lims tier=db | TCP 1433 | Allow |
| 4 | app=lims (all tiers) | svc=dns, svc=ntp | UDP/TCP 53, UDP 123 | Allow |
| 5 | svc=backup | app=lims tier=db | TCP 9400 | Allow |
| 6 | Any | Any | Any | Deny and log |
Run 1. Assume the worst: an attacker gains control of one LIMS web server, 192.0.2.21, through a flaw in the web application. What can it reach? Walk the rules from the web server's point of view:
- Rule 2 lets it reach the application tier on TCP 8443.
- Rule 4 lets it query DNS and NTP.
- No rule lets a web-tier source reach the database on TCP 1433. A direct connection to the database falls through to rule 6, so it is denied and logged.
- An attempt to open file shares on a file server over TCP 445 also falls through to rule 6.
The blast radius is the web tier plus the application tier's API. To go further, the attacker would need a second flaw, in the application tier, and every failed attempt along the way would add more deny events to the log. Those rule 6 log entries give the security team an early signal.
Run 2: one changed input. Months later, a report runs slowly. An engineer troubleshooting it adds a "temporary" rule written by address: source 192.0.2.0/24, destination 192.0.2.0/24, any port, allow, placed above rule 6. Run the same compromise again. The web server's traffic to the database on TCP 1433 now matches the temporary rule. So does its traffic to every other host in that /24, on every port, including the file servers and the backup console. The blast radius is back to roughly what it was before the redesign. The segment labels did not change; one broad rule erased their effect.
The comparison teaches two things. First, microsegmentation's protection lives in the ruleset. Rule changes need the same review as firewall changes, ideally through version control and automated checks (Lesson 21, on automating a hybrid cloud network, returns to this). Second, default-deny logs are a detection tool. A sudden burst of rule 6 denies from a web server is exactly the lateral-movement signal that assume breach asks you to watch for.
In short: microsegmentation gives each workload its own perimeter, written against labels and enforced by default deny, so a compromise stays contained. One overly broad rule brings the flat network back.
Zero Trust network access: replacing the flat VPN
Next, Dana needs a way for remote users and contractors to reach internal applications without repeating Monday. NIST's 2022 guide to the enterprise network landscape, SP 800-215 by Ramaswamy Chandramouli, lays out the chain: zero trust is the strategy, ZTA is the blueprint, and Zero Trust Network Access (ZTNA) is the resulting model for how network communication flows.[6] Microsoft's networking guidance describes what ZTNA does in practice. It replaces broad, perimeter-based VPNs with fine-grained connectivity that is aware of identity and context.[4]
The mechanism matters, because it explains both the security benefit and the limits.
- A user opens an application, either through a client agent on the device or, for web applications, through a browser.
- The request goes to a broker, usually a cloud service, which acts as the policy enforcement point. The broker sends the user to the IdP and collects device posture.
- If policy allows, the broker builds a connection to that one application only. The user never receives an internal IP address on a routed network.
- Inside the data center or VNet, a small connector sits next to the application and makes an outbound connection to the broker. The broker joins the two halves.
- The decision is re-evaluated during the session. If the device's EDR agent raises its risk score, the broker can end the session.
Step 4 is the clever part. Because the connector dials out, the application needs no port listening for connections from the internet. Microsoft's description of its own ZTNA service, Global Secure Access, makes the same point: no inbound firewall rules are required, and only approved applications are visible in the user portal.[4] An application that accepts no inbound connections from the internet cannot be found by internet-wide scanning.
That "dark until authorized" design comes from the Software-defined perimeter (SDP) pattern, in which software builds a perimeter for each authorized session and anyone else cannot see the resource at all. Many ZTNA products are built on this pattern, but SDP is not simply another name for ZTNA, and some ZTNA products work differently. SP 800-215 treats SDP and microsegmentation as two candidate techniques for realizing a ZTA.[6]
| Question | Traditional remote-access VPN | ZTNA |
|---|---|---|
| What does a successful login grant? | An IP address on the internal network | A connection to specific applications |
| When is trust evaluated? | At connection time | Per application request, and during the session |
| Is device posture checked? | Sometimes, at connection | Normally, as part of every decision |
| What can the user see? | Every reachable subnet and host | Only entitled applications |
| What faces the internet? | A VPN concentrator listening for connections | The broker; applications sit behind outbound-only connectors |
| Where does it struggle? | Lateral movement; access that is too broad | Server-initiated connections; some legacy and peer-to-peer protocols |
The last row matters in design scenarios. ZTNA is built around a user starting a connection to an application. Some traffic flows the other way: a help-desk tool that pushes a remote session to a user's laptop, a softphone receiving incoming call signaling, or a management server that polls endpoints. These may need extra design, or a VPN kept on for that one purpose and tightly scoped. Spotting that limit is part of what the objective means by "analyze requirements".
ZTNA also does not replace microsegmentation. It controls the path from a user to an application. If an attacker takes over an application server, east-west controls decide how far the compromise spreads. Kestrel needs both.
Cloud Access Security Broker: control over SaaS you do not run
Kestrel's forty sanctioned SaaS applications pose a different problem. Kestrel does not run their servers, so it cannot microsegment them. Users reach them directly over the internet, so ZTNA's connector model does not apply. Worse, a review of Kestrel's web proxy logs shows staff using 17 unsanctioned file-sharing and note-taking services (an invented figure for this example). Applications used without the organization's approval are called shadow IT.
A Cloud Access Security Broker (CASB) is a security control placed between users and cloud services to give the organization visibility and policy over cloud use. CASB work usually falls into four areas:
- Discovery and visibility: finding which cloud services are used, by whom and how much, often by analyzing firewall or proxy logs, and rating each service's risk.
- Data security: applying data loss prevention (DLP) rules, for example blocking uploads of files labeled Confidential to a personal storage account.
- Threat protection: spotting malware in files stored in SaaS, and unusual account behavior such as mass downloads.
- Compliance and configuration: finding risky sharing settings and misconfigurations in sanctioned SaaS tenants.
How a CASB connects to the traffic decides what it can do, and exam scenarios often turn on this.
| CASB mode | How it connects | What it can do | What it cannot do |
|---|---|---|---|
| API mode (out of band) | Connects to the SaaS provider's application programming interface (API) with administrator consent | Scan data already stored, find public shares, fix settings, remove access after the fact | Stop an action in real time; see unsanctioned apps |
| Forward proxy (inline) | An agent or proxy setting on the device steers its traffic to the CASB | Block an upload as it happens, in any cloud app, sanctioned or not | Cover devices the organization cannot configure, such as unmanaged personal laptops |
| Reverse proxy (inline) | The sanctioned app's SSO sign-in redirects sessions through the CASB | Control sessions in sanctioned apps from any device, including unmanaged ones | Cover unsanctioned apps, which do not use the organization's SSO |
Read the table as a decision tool. "Files shared publicly before we bought the product" needs API mode, because that data is at rest. "Stop the upload now" needs an inline mode. "Contractors on their own laptops in our sanctioned app" points to reverse proxy, because you cannot install an agent on their machines. Many deployments run API and inline modes together. Kestrel's third device tier, browser-only access with downloads blocked, uses the same idea in two places: for sanctioned SaaS, the CASB's reverse proxy enforces it; for Kestrel's own private web apps, the ZTNA broker does.
CASB and ZTNA are easy to confuse because both are brokers. The difference is the destination. ZTNA brokers access to the organization's private applications. A CASB governs use of public cloud services that the organization does not run.
SASE and SSE: delivering the controls from the cloud
By now Dana has a list: ZTNA, a CASB, a secure web gateway (SWG) to filter web traffic, and firewall inspection for branch internet traffic. Kestrel's twelve branch laboratories add one more fact. Their Multiprotocol Label Switching (MPLS) circuits come up for renewal next year, and today they backhaul all internet traffic to headquarters for inspection. When the destination is a SaaS application in the cloud anyway, that detour adds latency for no benefit.
Secure Access Service Edge (SASE) is the architecture built for that combination. Microsoft describes SASE as converging networking and security into a cloud-delivered service that follows users and data across environments.[4] NIST's SP 800-215 frames it as the evolving wide area network (WAN) infrastructure that delivers a comprehensive set of security services to the modern enterprise.[6] Concretely, the security functions run in a provider's points of presence (PoPs) around the world. Every user and branch connects to the nearest one, so the same policy applies at headquarters, in a branch or at home.
Security Service Edge (SSE) is the security half of SASE without the networking half. CompTIA's objectives write it as "Secure Service Edge"; Microsoft and most vendors write "Security Service Edge". Both names mean the same thing, and Microsoft describes its own ZTNA service as built on an SSE foundation.[4] The core of SSE is SWG, CASB and ZTNA. Some vendors also include a cloud firewall service.
| Component | What it does | Part of SSE? | Part of SASE? |
|---|---|---|---|
| Software-defined Wide Area Network (SD-WAN) | Connects sites over multiple transports with application-aware path selection | No | Yes |
| Secure web gateway (SWG) | Filters and inspects user web traffic: Uniform Resource Locator (URL) categories, malware, Transport Layer Security (TLS) inspection | Yes (core) | Yes |
| CASB | Visibility and data control over SaaS use | Yes (core) | Yes |
| ZTNA | Identity- and posture-based access to private apps | Yes (core) | Yes |
| Firewall as a service (FWaaS) | Cloud-delivered firewall for non-web traffic from sites and users | Offered by some vendors | Often included |
The choice between them turns on the network. Kestrel's branch circuits are due for replacement, so Dana can choose SASE. Each branch gets SD-WAN with local internet breakout, which sends traffic to the nearest PoP, where the SSE functions inspect it. Change one input and the choice flips. Suppose Kestrel had finished an SD-WAN rollout last year, with three years left on that contract. Replacing it would waste money. The right choice would then be SSE: cloud-delivered security for users everywhere, working alongside the SD-WAN already in place. Some vendors sell both halves as one product (single-vendor SASE); other organizations pair separate SD-WAN and SSE providers.
In short: SASE combines SD-WAN networking with cloud-delivered security. SSE is that security set on its own: SWG, CASB and ZTNA at the core, with FWaaS from some vendors. Choose SASE when the WAN is changing too, and SSE when only the way security is delivered is changing.
One request, every principle: Dana's design at work
Six months after the incident, a quality assurance analyst named Priya (fictional) opens the LIMS from home. The ZTNA broker's decision log records the evaluation. The format below is invented for illustration. Real products lay it out differently but carry the same kinds of fields.
2026-09-14T08:12:44Z request user=priya.n@example.com app=lims-web
identity : idp=ok mfa=phishing-resistant groups=LIMS-Analysts user_risk=low
device : id=KB-LT-0412 mdm=enrolled cert=valid patch_age_days=6
disk_encryption=on edr=healthy device_risk=low
context : network=residential-isp geo=expected time=business-hours
policy : LIMS-Analysts -> lims-web:analyst-role require=compliant
decision : ALLOW path=connector-dc1 session=8h reevaluate=on-risk-change
Read the log line by line and you can name every principle:
- The identity line is identity as the perimeter. The decision begins with a verified user and group, not an address.
- The device line is device trust.
- The context line shows that location was considered (a residential network) and did not count against her. Location no longer grants or removes trust by itself.
- The policy line is least privilege: one application, one role.
- The path line is ZTNA through an outbound connector.
Two principles act out of sight. Behind lims-web, Dana's microsegmentation rules still limit what the web tier can reach. And when Priya browses to a SaaS file service after lunch, that traffic passes through the SSE's CASB and SWG.
Run 2: same user, one changed input. That evening Priya tries again from her personal laptop.
2026-09-14T19:40:02Z request user=priya.n@example.com app=lims-web
identity : idp=ok mfa=phishing-resistant groups=LIMS-Analysts user_risk=low
device : id=unknown mdm=not-enrolled cert=none
context : network=residential-isp geo=expected time=after-hours
policy : LIMS-Analysts -> lims-web require=compliant (not met)
decision : DENY reason=device-unmanaged offer=remediation-info
Her identity is exactly as strong as it was in the morning. The only change is the device, and the decision flips from allow to deny. If Dana's policy had an unmanaged tier for the LIMS, the result would instead be clientless (browser-based) ZTNA access: the ZTNA broker acts as a reverse proxy for the private web app, and the session is read-only with downloads blocked. That is a ZTNA function for an application Kestrel runs, separate from the CASB reverse proxy that governs sanctioned SaaS. This is what the objective asks of you. Apply the same principles to a different set of requirements, and you reach a different answer that you can defend.
Reading a CloudNetX scenario: cue words
Objective 2.4 is a "given a scenario" objective. Its questions describe a requirement and ask which principle or technology fits. The table pairs common stem wording with the choice it points to, including pairs that are easy to confuse.
| The stem says | Think | Not to be confused with |
|---|---|---|
| Malware on one server must not reach others in the same subnet or data center; east-west; lateral movement | Microsegmentation | A perimeter next-generation firewall (NGFW), which watches north-south traffic |
| Contractors need one internal app; replace the VPN; apps must not be exposed to the internet | ZTNA | Split-tunnel VPN, which still grants network-level access |
| Unsanctioned cloud apps; shadow IT; block uploads to personal cloud storage | CASB | ZTNA, which governs private apps, not public SaaS |
| Find files already shared publicly in a SaaS tenant | CASB in API mode | Inline CASB, which sees only new activity |
| Converge branch networking and security; replace MPLS backhaul; cloud-delivered | SASE | SSE, which lacks the SD-WAN half |
| Keep the existing SD-WAN; add cloud SWG, CASB and ZTNA | SSE | Full SASE, which would replace the WAN |
| Users on the corporate LAN should not be trusted automatically; policy based on who the user is | Identity as the perimeter | Port-based network access control (NAC), which decides LAN admission, not application access |
| Deny access from laptops without encryption or with an unhealthy EDR agent | Device trust (posture) | User authentication, which can be perfect on an infected device |
| Standing admin rights; access only as long as needed; just enough | Least privilege with JIT | Stronger passwords, which leave the standing access in place |
Common misconceptions
- "Zero trust means trusting nothing, so everything is blocked." Zero trust removes implicit trust. Access is still granted, but explicitly, per request, after the user, device and context have been checked. Priya's morning request was allowed.
- "Buying a ZTNA product gives us zero trust." NIST's NCCoE built 19 example implementations from many vendors' products. A ZTA is a plan across identity, devices, network and data, not one product, and a ZTNA broker covers only the user-to-application path.
- "Company-owned devices on the corporate LAN can be trusted." Neither ownership nor location earns trust. A domain-joined laptop whose EDR agent has gone silent is noncompliant, wherever it is plugged in.
- "Microsegmentation is just more VLANs." VLANs group hosts, and hosts in the same VLAN talk freely. Microsegmentation puts a perimeter around each workload, usually written against labels and enforced by default deny.
- "SASE and SSE are competing products." SSE is the security subset of SASE. SASE adds SD-WAN networking. The choice depends on whether the WAN is changing too.
- "CASB and ZTNA do the same job because both are brokers." ZTNA brokers access to private applications you run. A CASB governs use of public SaaS you do not run.
What to carry forward
- NIST SP 800-207 (2020) grants no implicit trust based on network location or asset ownership. A request from inside the enterprise network must meet the same requirements as one from anywhere else.
- Zero trust decisions are per request and least privileged, made on a network assumed to be compromised. Both the subject and the device are authenticated and authorized before a session exists.
- The policy decision point (policy engine plus policy administrator) decides, and the policy enforcement point allows or blocks. A resource reachable around its PEP is not protected.
- Identity as the perimeter makes the IdP the main control plane. The IdP therefore needs high availability and phishing-resistant MFA, and workloads need identities of their own.
- Device trust combines device identity (such as a hardware-held certificate) with current posture. Company ownership or a LAN connection is not enough, and a missing agent report should count as failing.
- On a network, least privilege limits scope, path, time and visibility. JIT elevation replaces standing administrator rights.
- Microsegmentation puts a default-deny perimeter around each workload to stop east-west lateral movement. Deploy it in the order discover, label, model, monitor, enforce. One broad allow rule undoes it.
- ZTNA grants application-level access through a broker and an outbound-only connector. Users get no internal IP address, and applications have no inbound internet exposure. Server-initiated flows need extra design.
- A CASB in API mode handles data at rest, a forward proxy covers managed devices in any app, and a reverse proxy covers unmanaged devices in sanctioned apps. SASE is SD-WAN plus SSE (SWG, CASB and ZTNA, with FWaaS from some vendors). Choose SSE when the WAN stays.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Scott Rose, Oliver Borchert, Stu Mitchell, Sean Connelly. (2020). Zero Trust Architecture (NIST SP 800-207). NIST. nvlpubs.nist.gov
- NIST NCCoE. (2025). Implementing a Zero Trust Architecture: Full Document (NIST SP 1800-35). pages.nist.gov
- Microsoft Learn. (n.d.). Zero Trust networks guidance. learn.microsoft.com
- Microsoft Learn. (n.d.). Segmentation strategy (Well-Architected security). learn.microsoft.com
- Ramaswamy Chandramouli. (2022). Guide to a Secure Enterprise Network Landscape (NIST SP 800-215). NIST. nvlpubs.nist.gov
- Key terms
- Zero Trust architecture (ZTA)
- An organization's plan for applying zero trust principles, covering its components, workflows and access policies, so that no user or device is trusted because of network location or ownership.
- Microsegmentation
- Segmentation that puts a security boundary around each individual workload, application or service, usually written against labels and enforced by default deny, to stop lateral movement inside a network.
- Zero Trust network access (ZTNA)
- Remote access that connects a verified user and device to specific applications through a broker, rather than giving network-level access the way a traditional VPN does.
- Secure Access Service Edge (SASE)
- An architecture that combines SD-WAN networking with cloud-delivered security services such as a secure web gateway, CASB and ZTNA, enforced at provider points of presence; many offerings add firewall as a service.
- Secure Service Edge (SSE)
- The cloud-delivered security subset of SASE without SD-WAN: at its core a secure web gateway, CASB and ZTNA, with firewall as a service offered by some vendors. Most vendors call it Security Service Edge.
- Cloud Access Security Broker (CASB)
- A control between users and public cloud services that discovers cloud use and applies data, threat and configuration policy, connecting through provider APIs, a forward proxy or a reverse proxy.
- Device trust
- Granting access only after establishing a device's identity and checking its current security posture, such as patch level, encryption and EDR health, and re-checking that posture during the session.
- Identity as the perimeter
- A design approach in which access is decided by verified identities of users, devices and workloads, typically through an identity provider's policies, rather than by network address or location.
- Principle of least privilege
- Granting only the permissions, resources, network paths and time a subject needs for a task, and hiding the resources it is not entitled to.
- Policy enforcement point (PEP)
- The component in a zero trust architecture, such as an access proxy, gateway, host agent or security group, that actually allows or blocks traffic to a resource according to the policy decision.
Authenticating Users and Devices: SSO, Tokens, MFA, Risk and Conditions
- Distinguish single sign-on from federation, and choose among SAML 2.0, OAuth 2.0 and OpenID Connect for a given application scenario.
- Explain how session-based tokens extend a single authentication, and set timeouts and revocation that limit token misuse.
- Rank MFA methods by phishing resistance, and design risk-based, conditional access and geofencing policies that combine user, location and device signals.
- Explain how PKI, certificate-based authentication, key management systems and endpoint trust let a network authenticate devices as well as people.
The 02:13 sign-in that every control allowed
At 02:13 Coordinated Universal Time (UTC) on Tuesday 17 November, the identity provider at Harbor Survey, a fictional 900-person engineering firm, recorded a successful sign-in for the account m.okafor@example.com. The password was right. The multifactor push was approved. Eighteen minutes later the same browser session was inside the firm's cloud console with an administrator role. The security team pulled this log on Wednesday morning. All data is fictional, and the IP addresses come from the documentation ranges.
| Time (UTC) | Event | Source IP | IP location | Device | Result |
|---|---|---|---|---|---|
| 01:58-02:12 | Password accepted, push sent to phone (11 times) | 198.51.100.77 | A country never seen for this user | Unregistered Windows PC | Pushes denied or ignored |
| 02:13 | 12th push approved | 198.51.100.77 | Same | Same | Success; IdP session cookie issued |
| 02:15 | Single sign-on to file-sharing app | 198.51.100.77 | Same | Same | SAML assertion issued; access granted |
| 02:24 | Single sign-on to expense app | 198.51.100.77 | Same | Same | OpenID Connect ID token issued; access granted |
| 02:31 | Single sign-on to cloud console | 198.51.100.77 | Same | Same | Access granted with administrator role |
| 08:50 | The real m.okafor signs in at the office | 192.0.2.40 | Home city | Managed, compliant laptop | Success; the 02:13 sessions are still active |
| 09:30 | Security team disables the account at the IdP | Not applicable | Not applicable | Not applicable | New sign-ins refused from now on |
| 09:52 | Cloud console command in the session opened at 02:31 | 198.51.100.77 | Same as 02:13 | Unregistered Windows PC | Success; the console's own session is still valid |
Read the log as an architect rather than an incident handler. Every row is a design decision somebody made, usually for good reasons. Single sign-on turned one approval into three applications. Session tokens kept the intruder inside after the real user arrived, and even after the account was disabled. A push prompt counted as a second factor even though a sleepy user tapped Approve on the twelfth try. A new country and an unregistered computer changed nothing, because no policy asked about risk, location or the device.
Two words need to stay separate through this lesson. Authentication proves who or what is asking. Authorization decides what that identity may do. This lesson is about authentication. It takes the failures in the log one at a time, teaches the control that addresses each, and then rebuilds the 02:13 sign-in so that it fails.
Exam objectives: 2.5 Given a scenario, apply identity and access management to secure a network environment.[1] This lesson covers the authentication half of objective 2.5: single sign-on (SSO), including federation, Security Assertion Markup Language (SAML), OAuth 2.0, OpenID Connect (OIDC) and passwordless methods; session-based tokens; multifactor authentication (MFA); risk-based authentication; conditional access; geofencing; public key infrastructure (PKI), including certificate-based authentication and key management systems (KMS); and endpoint trust. The next lesson covers the remaining 2.5 bullets on authorization, provisioning and privileged access.
Single sign-on and federation: why one approval opened three apps
Single sign-on (SSO) means a person authenticates once and then reaches many applications without typing credentials into each one. Harbor Survey's applications do not check passwords at all. They send the browser to a central identity provider (IdP), the system that holds the account and runs the authentication, and they accept its verdict.
When the applications belong to different organizations, the arrangement is called federation. The US National Institute of Standards and Technology (NIST), in Special Publication 800-63C, describes federation as a process for carrying authentication and subscriber attributes across networked systems.[2] The system that authenticated the user is the identity provider. The application that receives and uses the result is the relying party (RP). SAML documents call the same role a service provider. What travels between them is an assertion: a signed statement from the IdP to the RP about the user. A typical assertion carries an identifier for the user, the time and method of authentication, and attributes such as department or group.
Why federate rather than give each app its own password database? Federation fits best when the RP and the IdP are run by different organizations. Harbor Survey does not run its expense system; a software as a service (SaaS) vendor does. Federation lets the vendor trust Harbor's IdP without ever seeing a Harbor password. The two parties set up that trust in advance by exchanging metadata: endpoint addresses, identifiers and the IdP's signing certificate. The payoffs for a network architect are concrete:
- One place to make authentication strong. Add MFA at the IdP and every federated app inherits it. Older business applications can often gain MFA the same way, by being integrated with the enterprise IdP.
- One place to remove access. Disabling an account at the IdP stops new sign-ins everywhere, which matters on a leaver's last day.
- Fewer passwords in circulation. Apps never receive or store the user's password, so a breach at one vendor cannot leak it.
The same design turned 02:13 into an incident. An IdP session is a master key. Whoever holds it can collect assertions for every app that trusts the IdP, without being asked again. SSO does not make authentication weaker, but it raises the stakes of the one authentication that remains.
SSO does not require federation. Inside one Windows domain, Kerberos provides SSO: the user authenticates to a domain controller once and receives tickets that file servers and intranet sites accept. A Kerberos ticket is itself a kind of assertion. The difference is scope. Kerberos works within one realm under common control. Federation crosses organizational lines, usually over Hypertext Transfer Protocol Secure (HTTPS) through the user's browser.
The upshot: SSO is the experience of signing in once; federation is the pre-arranged trust that lets separately run applications accept one IdP's assertions. Both concentrate the benefit and the risk at the IdP, so the IdP sign-in must be the strongest authentication in the network.
SAML 2.0, OAuth 2.0 and OpenID Connect side by side
Three protocols carry most federated sign-ins, and exam scenarios expect you to pick the right one. They solve different problems, which is easiest to see by walking through each.
Security Assertion Markup Language (SAML) is a framework, written in Extensible Markup Language (XML), for exchanging authentication and attribute information between trusted parties. Its current version, SAML 2.0, was issued on 15 March 2005.[2] It remains the workhorse of enterprise browser SSO into SaaS. A sign-in that starts at the application, called service-provider-initiated, runs like this:
- The user opens https://files.example.com. The service provider has no session for this browser, so it redirects the browser to the IdP with an authentication request.
- The IdP authenticates the user, or finds an existing IdP session and skips that step. This skip is where the 02:13 approval kept paying out.
- The IdP builds an assertion, signs it with its private key and returns it to the browser, which posts it to the service provider's assertion consumer address.
- The service provider checks the signature against the IdP certificate it received when the trust was set up. It confirms it is the intended audience and that the time window is current, then starts its own session.
Here is a trimmed, fictional assertion showing the fields the service provider checks. The signature block is elided.
<saml:Assertion ID="_a71f" IssueInstant="2026-11-17T02:15:04Z">
<saml:Issuer>https://idp.example.com</saml:Issuer>
<ds:Signature>...</ds:Signature>
<saml:Subject>
<saml:NameID>m.okafor@example.com</saml:NameID>
</saml:Subject>
<saml:Conditions NotBefore="2026-11-17T02:15:04Z"
NotOnOrAfter="2026-11-17T02:20:04Z">
<saml:AudienceRestriction>
<saml:Audience>https://files.example.com</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
<saml:AuthnStatement AuthnInstant="2026-11-17T02:13:41Z"/>
</saml:Assertion>
Three details matter. The audience restriction names files.example.com, so the expense app must reject this assertion if anyone presents it there. The validity window is five minutes, which limits replay. And AuthnInstant, 02:13:41, is earlier than the assertion's issue time, 02:15:04: the IdP reused an existing session rather than authenticating again. An application that needs a fresh login can request one, and NIST makes the RP, not the IdP, the authority on whether its reauthentication requirements were met.[3]
OAuth 2.0 answers a different question: may this application act on this user's behalf, and within what limits? It is an authorization framework, not a sign-in protocol. Four roles take part. The resource owner is the user. The client is the app that wants access. The authorization server, often the same product as the IdP, issues tokens. The resource server is the application programming interface (API) holding the data. After the user consents, or policy approves, the authorization server gives the client an access token limited by scopes such as calendar.read. The client presents the token to the API, which serves only what the scopes allow.
How does the client get that token? When a user is present, the usual route is the authorization code grant, and for mobile and single-page browser apps it is paired with Proof Key for Code Exchange (PKCE). The steps are:
- The app makes a random secret, the code verifier, and keeps it. It sends only a hash of it, the code challenge, when it redirects the browser to the authorization server.
- The user signs in at the authorization server, which redirects the browser back to the app's registered address with a short-lived authorization code.
- The app calls the token endpoint directly, sending the code and the original code verifier.
- The server hashes the verifier, compares it with the stored challenge, and only on a match returns the tokens.
The reason for PKCE is that mobile and browser apps cannot keep a client secret, since anyone can unpack the app. With PKCE, a code intercepted on its way back is useless to any other app, because only the app that started the flow knows the verifier. For machine-to-machine jobs, the client credentials grant lets a service obtain a token as itself, with no user present.
A valet key is the usual analogy for an access token: it lets the attendant drive the car but not open the boot. The analogy breaks at one point the exam likes. An access token tells the API what the bearer may do. It is not a dependable statement to the client about who the user is, and plain OAuth 2.0 does not define one. Treating "the app received an access token" as "the user logged in" is a known design error.
OpenID Connect (OIDC) fixes that gap by adding an identity layer on top of OAuth 2.0. The client asks for the openid scope, usually through the same authorization code flow with PKCE, and the authorization server returns an ID token alongside the access token. The ID token is a JSON Web Token (JWT): a compact, signed set of JavaScript Object Notation (JSON) claims about the authentication. Decoded, the fictional ID token that Harbor's expense app received at 02:24 looks like this:
{
"iss": "https://idp.example.com",
"sub": "248289761001",
"aud": "expenses-web",
"iat": 1794882245,
"exp": 1794885845,
"auth_time": 1794881621,
"amr": ["pwd", "mfa"],
"nonce": "n-0S6WzA2Mj"
}
The client must first verify the token's signature with the IdP's published signing key; a token with a missing or wrong signature is rejected outright, whatever its claims say. Then it confirms that iss is the IdP it trusts, that aud is its own client identifier, that exp has not passed, and that nonce matches the random value it sent, which defeats replay.
The times are Unix seconds, counted from 1 January 1970 UTC. Subtract iat (issued at) from exp (expires): 1,794,885,845 minus 1,794,882,245 is 3,600 seconds, so the token is valid for one hour, from 02:24:05 to 03:24:05. Now compare auth_time with iat: 1,794,882,245 minus 1,794,881,621 is 624 seconds, about ten minutes. The user did not authenticate at 02:24. The IdP reused the session created by the push approved at 02:13:41, exactly as the SAML assertion's AuthnInstant showed. The amr claim lists the authentication methods: a password plus MFA. Because OIDC uses JSON over Representational State Transfer (REST) APIs rather than XML posted through the browser, it suits mobile apps, single-page web apps and new cloud services.
| Feature | SAML 2.0 | OAuth 2.0 | OpenID Connect |
|---|---|---|---|
| Main purpose | Authentication and attributes for browser SSO | Delegated, scoped authorization to APIs | Authentication built on OAuth 2.0 |
| Main artifact | Signed XML assertion | Access token, plus an optional refresh token | ID token (signed JWT) plus OAuth tokens |
| Question it answers | Who is this user, according to the IdP? | What may this client do, for whom? | Who signed in, when, and how? |
| Usual flow | Browser redirect and post, started at the service provider or the IdP | Authorization code with PKCE for user apps; client credentials for services | Authorization code with PKCE plus the openid scope |
| Typical use | Enterprise browser SSO into established SaaS | App calling an API for a user; service to service | Modern web and mobile sign-in |
| Data format | XML through browser redirects and posts | Not fixed for access tokens by the core framework | JSON throughout |
The upshot: choose SAML for browser SSO into enterprise SaaS, OAuth 2.0 when an app needs scoped access to an API, and OIDC when an app needs to know who signed in. A stem that says scopes, delegation or "on behalf of" points to OAuth; one that says ID token or identity layer points to OIDC; one that says a mobile app must not hold a client secret points to the authorization code flow with PKCE.
Session-based tokens: what the browser carries after the login
Authentication happens at one moment; everything afterwards rides on a token. An authenticated session continues because the client holds a session secret that the session host issued at login. In a browser that secret is usually a cookie. In a mobile app it is a stored token. A session-based token is any such issued secret that stands in for the original login. Most are bearer tokens: whoever presents the token gets the access, with no further proof.
In a federated network, one user collects several tokens with different jobs:
| Token | Issued by | Presented to | What it shows | Lifetime design |
|---|---|---|---|---|
| IdP session cookie | IdP | IdP | This browser has already authenticated | Bounded by inactivity and overall timeouts |
| SAML assertion or OIDC ID token | IdP | One relying party | This user authenticated, at this time, by these methods | Minutes to an hour; used to start an app session |
| App session cookie | Relying party | Same relying party | This browser has a session with this app | Set by the app, independent of the IdP |
| OAuth access token | Authorization server | API | The bearer may use these scopes | Short, so a stolen copy expires quickly |
| OAuth refresh token | Authorization server | Authorization server | The client may obtain new access tokens | Longer, and must be revocable |
| Kerberos ticket | Domain controller | Services in the realm | The user authenticated to the domain | Hours, set by domain policy |
The app session cookie explains the 09:52 row in Harbor's log. NIST points out that the IdP and RP manage sessions separately, and the federation protocol does not link their session management.[3] Disabling the account at 09:30 stopped new sign-ins at the IdP. It did nothing to the cloud console session opened at 02:31, which was still accepting commands at 09:52 and would keep doing so until it expired on its own schedule.
The design answer is to make applications honor revocation. Keep app sessions short, make refresh tokens revocable, and where the products support shared security signals, let the IdP tell an app that a session has gone bad. Pair this with session monitoring, sometimes called continuous authentication: the ongoing evaluation of session characteristics, such as IP address, device and timing, to catch fraud during the session rather than only at login.
Timeouts are the other lever. Two timers bound every session. The inactivity timeout ends a session that has sat idle. The overall timeout forces reauthentication however busy the user has been. NIST's authentication assurance levels (AALs), its tiers of confidence in an authentication, set ceilings for both.
| Level | Overall timeout | Inactivity timeout | Reauthentication after idle |
|---|---|---|---|
| AAL2 (high confidence, two factors) | Must be set; should be no more than 24 hours | Should be no more than 1 hour | A password or biometric plus the session secret may suffice |
| AAL3 (very high confidence, hardware-based) | Must be no more than 12 hours | Should be no more than 15 minutes | Same as the initial AAL3 authentication |
The figures come from NIST Special Publication 800-63B-4. At AAL2, NIST requires a definite overall reauthentication timeout that should be no more than 24 hours.[4] The AAL2 inactivity timeout should be no more than one hour.[4] At AAL3 the overall limit is a firm 12 hours.[4] The AAL3 inactivity timeout should be no more than 15 minutes.[4] NIST adds that session secrets used as bearer tokens should not persist, meaning they should not survive an application restart or a device reboot.[3]
From the defender's side, the risk of bearer tokens is simple. A copied session cookie carries the session to another machine, and MFA does not help, because MFA ran before the token existed. Defenses work on the token's life rather than the login: short lifetimes, a sign-in frequency that forces periodic reauthentication, binding tokens to a device key where the platform supports it, and monitoring that notices a token suddenly arriving from a new IP address or device.
The upshot: after the login, the token is the identity. Limit how long it lives, make the app end it when the IdP says so, and watch for it appearing somewhere new.
Multifactor authentication: why the twelfth push worked
The US Cybersecurity and Infrastructure Security Agency (CISA) defines multifactor authentication as a control requiring a user to present two or more different authenticators.[5] The categories are something you know (a password or personal identification number, PIN), something you have (a phone, key or card) and something you are (a fingerprint or face). The word that matters is different. A password plus a security question is two things you know: one factor used twice, so it is not MFA. Two factors can come from two separate authenticators or from one multi-factor authenticator, such as a security key that needs a fingerprint or PIN before it will work.
m.okafor had genuine MFA: a password plus a registered phone. It still failed, because MFA methods differ widely in strength. Codes sent by text message (Short Message Service, SMS) are exposed to SIM swap fraud, in which a criminal persuades a carrier to move the victim's number to a new subscriber identity module (SIM). They are also exposed to weaknesses in Signaling System 7 (SS7), the protocol telephone networks use to route calls and messages. Codes and simple pushes share a deeper weakness: nothing in them checks which website the user is actually signing in to. The table ranks the common methods from the defender's side.
| Method | Factors | Main weakness | Phishing-resistant? | Typical role |
|---|---|---|---|---|
| SMS or voice one-time password (OTP) | Have (a phone number) | SIM swap, SS7 interception, relay through a lookalike page | No | Last-resort fallback |
| Authenticator app, time-based OTP (TOTP) | Have (a secret seed in the app) | The six-digit code can be typed into a fake page and relayed in real time | No | Better than SMS; transitional |
| Push approval | Have (a registered phone) | Fatigue: repeated prompts until the user taps Approve | No | Needs number matching |
| Push with number matching | Have, plus the user types a number shown on the sign-in screen | Stops blind approvals; a real-time proxy can still relay | No | Interim step |
| FIDO2 security key or passkey | Have, unlocked by PIN or biometric | Recovery process; lost keys | Yes | Target for staff and administrators |
| PKI smart card | Have (card holding a private key), plus PIN | Needs a mature PKI and card readers | Yes | Government and large regulated organizations |
Number matching changes the push mechanism in one useful way. The sign-in page shows a two-digit number, and the phone asks the user to type it. A prompt triggered by someone else's sign-in shows a number the user cannot see, so a reflexive tap cannot approve it. At Harbor, number matching would have blocked a blind tap on a prompt the user did not start. It would not stop an intruder who lures the user to a lookalike page and relays the number in real time, and the log does not show which technique this intruder used. CISA recommends number matching for organizations whose MFA is not yet phishing-resistant, as an additional prevention and detection control.[5]
Phishing-resistant MFA goes further. The authenticator itself checks which site is asking, so nothing the user does on a fake page produces a credential the real site will accept. NIST requires verifiers to offer at least one phishing-resistant option at AAL2.[4] The two main families of phishing-resistant MFA are FIDO2 credentials and PKI smart cards. FIDO2 is the more widely supported of the two; CISA calls PKI-based MFA the less widely available form.[5] Both are covered below. If the factor categories themselves need a refresher, Atlas's Security+ course covers them from the beginning.
The upshot: MFA means two different factor types, and its strength depends on whether the second factor can be relayed or approved blindly. Push and code methods reduce password risk; only phishing-resistant methods also defeat lookalike pages.
Passwordless authentication and FIDO2
Passwordless authentication signs users in without a password, so there is nothing to phish, spray or reuse. The main standard is FIDO2 from the Fast IDentity Online (FIDO) Alliance. It combines the World Wide Web Consortium (W3C) Web Authentication (WebAuthn) browser interface with the Client to Authenticator Protocol (CTAP), which lets a browser talk to an external key. A credential can live on a hardware security key or be built into a laptop or phone. A passkey is a FIDO credential, either bound to one device or synchronized across a user's devices by the platform.
The mechanism explains the phishing resistance:
- At registration, the authenticator creates a new key pair for this one site. The site stores only the public key.
- At sign-in, the site sends a random challenge.
- The user unlocks the authenticator locally with a PIN or biometric. The authenticator signs the challenge with the private key, and the browser includes the site's real origin in what is signed.
- The site verifies the signature with the stored public key.
A credential registered for login.example.com will never answer a challenge from a lookalike domain, because the browser reports the true origin. Nothing reusable crosses the network, and the server holds no secret worth stealing. Other passwordless forms include Windows Hello for Business, which uses a key protected by the device's Trusted Platform Module (TPM), a security chip on the motherboard, and certificate smart cards.
Passwordless and MFA overlap but are not the same thing. A passkey unlocked by a fingerprint proves possession plus inherence in one gesture, so it is a multi-factor authenticator. A sign-in link emailed to the user is also passwordless, but it is single-factor and can be phished. The weak point of strong passwordless schemes is account recovery: if the help desk resets a lost key on a phone call, the phone call becomes the authentication. Register two authenticators per person and treat recovery as a high-assurance event.
Risk-based authentication: let the evidence set the bar
Risk-based authentication, also called adaptive authentication, sets how much proof to demand according to the assessed risk of each attempt. A routine sign-in from a known laptop might pass with the usual MFA. An odd one triggers a stronger method or a block. NIST gives the canonical example: authentication from an unexpected geolocation or IP address block, such as a cloud service, might prompt additional risk-based controls.[4]
Typical signals are usage patterns, velocity and timing; behavioral biometrics such as typing cadence; device and browser characteristics; geolocation; and whether the IP address sits in a block known for abuse. Microsoft Entra ID Protection, one implementation, keeps two different scores. User risk shows the likelihood that the account itself is compromised.[6] It rises when credentials appear in a leak or the account behaves riskily. Sign-in risk concerns one authentication request: how likely it is that this attempt is not the account owner.
Apply that to Harbor's log. Across the 01:58-02:12 window, the signals stack up: a country never seen for the account, an unregistered PC, eleven denied or ignored prompts in fourteen minutes, and a time of night the user never works. Each alone might be innocent. Together they should rate the sign-in high. A typical policy shape requires MFA when sign-in risk is medium or high, and many designs block outright at high.
Risk responses can also clean up after themselves. Some platforms mark a user's risk as remediated once the user completes the required control, such as a secure password change, so administrators do not have to close every alert by hand.
Three limits keep risk scoring honest. First, a risk score is not a factor: NIST states that fraud indicators do not change an authentication's AAL or substitute for an authentication factor.[4] Second, most of these signals have privacy implications, so collecting and storing them belongs in a privacy risk assessment. Third, the scores produce false positives, so step-up is usually a better response than blocking at medium risk, and users must already have registered the stronger method or step-up becomes a lockout.
Product direction matters for currency. Microsoft announced that the legacy risk policies configured inside Entra ID Protection would retire on 1 October 2026.[7] Risk is now set as a condition inside conditional access policies. That shift is a good mental model even outside Microsoft: risk is a signal, and conditional access is where signals become decisions.
Conditional access: turning signals into decisions
Conditional access is a policy engine that evaluates signals about each access attempt and applies a decision. Microsoft describes its policies, at their simplest, as if-then statements: if a user wants to access a resource, then they must complete an action.[8] Other identity platforms offer the same capability under other names. In the zero trust terms from Lesson 13, conditional access is a policy decision point for identity.
Timing matters. Conditional access policies are enforced after first-factor authentication completes.[8] They decide what happens after the password or first credential is checked, so they are not a shield against floods of sign-in requests. Rate limiting and lockout handle that.
A policy has three parts. Assignments say who and what it covers: users or groups, and target applications. Conditions are the signals: sign-in risk, user risk, IP location, device platform and state, and client app type. Controls are the decision. Block is the most restrictive. Grant can attach requirements such as MFA, a specific authentication strength (a named set of acceptable methods, such as phishing-resistant only), or a device marked as compliant. A sign-in frequency setting forces reauthentication at a set interval.
Two baseline policies appear in nearly every design. The first blocks legacy authentication protocols. Older protocols such as basic-authentication email clients cannot carry MFA or device state, so leaving them open lets a stolen password bypass every other rule. The second requires MFA for everyone, with emergency break-glass accounts excluded and monitored. New policies should run first in report-only mode, which records what a policy would have decided without enforcing it.
Here is a policy set Harbor could adopt (fictional). In Microsoft Entra, and in most comparable engines, every matching policy applies, a block in any matching policy wins, and every grant requirement from every matching policy must be met.
| Policy | Assigned to | Apps | Condition | Decision |
|---|---|---|---|---|
| HS-01 | All users except two break-glass accounts | All | Any | Grant: require MFA |
| HS-02 | All users | All | Client is a legacy authentication protocol | Block |
| HS-03 | All users | All | Sign-in risk high | Block |
| HS-04 | All users | All | Sign-in risk medium | Grant: phishing-resistant authentication strength; reauthenticate every time |
| HS-05 | Administrator roles | Cloud console | Any | Grant: phishing-resistant MFA and compliant device |
| HS-06 | All users except the Travel-approved group | All | Location not in named location "Operating countries" | Block |
Run 1: replay the 02:13 attempt. Assume the risk engine rates it high. Work through each policy in turn:
| Policy | Matches? | Requirement | Met? |
|---|---|---|---|
| HS-01 | Yes | MFA | Yes, the push was approved |
| HS-02 | No, it is a modern browser client | None | Not applicable |
| HS-03 | Yes, sign-in risk is high | Block | Blocked |
| HS-04 | No, risk is high, not medium | None | Not applicable |
| HS-05 | No, this sign-in targets the IdP and the file app, not the cloud console | None | Not applicable |
| HS-06 | Yes, the country is outside the list and m.okafor is not in Travel-approved | Block | Blocked |
Result: blocked, by two independent policies. Note that HS-01 was satisfied. MFA alone would have let the intruder in, exactly as it did.
Run 2: change one input. Now the intruder routes traffic through a hosting provider inside one of Harbor's operating countries, and the risk engine, seeing a familiar country, rates the sign-in medium instead of high. HS-06 no longer matches, and neither does HS-03. HS-04 now matches and demands a phishing-resistant method. m.okafor's push does not qualify, so the IdP asks for a FIDO2 key the intruder does not have. Even if that somehow succeeded, HS-05 would apply the moment the session reached the cloud console, and it demands a compliant device, which the unregistered PC is not. The outcome is still denial, but for different reasons: the location layer failed and the authentication strength and device layers held.
Run 3: the legitimate traveller. The real m.okafor flies to a conference in a country outside the list and forgets to request travel approval. HS-06 blocks her at the hotel. That cost is real, and it is why a location block needs a fast, time-limited exception process, such as adding the user to Travel-approved for the dates of a trip.
The upshot: conditional access combines identity, risk, location and device signals into grant-or-block decisions after the first factor. Layer policies so that no single signal, especially location, carries the whole decision.
Geofencing: location as a condition, not proof
Geofencing defines a virtual geographic boundary and triggers an access rule when a user or device is inside or outside it. In identity systems there are two common implementations. The first is IP-based: administrators define named locations from IP ranges, and in Microsoft Entra they can specify entire countries or regions to block or allow.[8] The second uses the location a managed phone reports through mobile device management (MDM), which can restrict an app to a site or region.
Geofencing earns its place in three jobs. It blocks countries where the organization has no staff, customers or partners, which cuts exposure to traffic from regions with no business need. It marks trusted locations, and many designs require a trusted location for registering MFA methods, which stops an intruder with a stolen password from enrolling their own device. And it feeds risk engines, most visibly through impossible-travel detection.
Impossible travel is simple arithmetic. Suppose (fictional figures) m.okafor's last sign-in was at 22:40 UTC on Monday from her home city, and the next attempt came at 01:58 UTC from a city 7,500 km away. The gap is 3 hours 18 minutes, or 3.3 hours. The implied speed is 7,500 divided by 3.3, about 2,270 km per hour. An airliner cruises at roughly 900 km per hour, so no person made that trip, and the second sign-in is suspicious before any other signal is considered.
Location is also the weakest signal. IP geolocation is a database estimate, not a measurement. Virtual private networks (VPNs), proxies and cloud hosting let anyone appear in any country, which is exactly what happened in Run 2. Legitimate traffic can also look strange. When a company uses a Secure Access Service Edge (SASE) or Security Service Edge (SSE) provider (CompTIA's acronym list expands SSE as Secure Service Edge), users' traffic exits from the provider's points of presence. Those egress addresses must be in the trusted named locations, or every sign-in looks foreign.
The upshot: geofencing is cheap and catches broad patterns, but a location can be faked or misread. Use it to narrow exposure and to raise risk, never as the only gate in front of a sensitive resource.
Public key infrastructure and certificate-based authentication
Passwords and codes are shared secrets: the server knows something that the user also knows. Public key infrastructure (PKI) replaces them with key pairs. The private key stays with its owner; the public key can be published. PKI is the system that lets a verifier trust that a given public key really belongs to a given person or device.
Its parts are standard. An end entity is a user or system that uses certificates or is named in one. A certification authority (CA) issues certificates. A registration authority (RA) is an optional system to which the CA delegates tasks such as checking identity before issue. A CRL issuer generates and signs certificate revocation lists (CRLs), and a repository stores certificates and CRLs for others to fetch. Many CAs also run an Online Certificate Status Protocol (OCSP) responder, which answers a verifier's question about one certificate's status on demand.
A certificate binds a public key to a subject. RFC 5280, the Request for Comments that profiles X.509 certificates for the internet, explains that the binding is asserted by a trusted CA digitally signing the certificate.[9] Trust runs in a chain. An offline root CA signs an issuing CA, which signs the end-entity certificate. The verifier already trusts the root, checks each signature down the chain, and confirms the certificate is within its validity dates and not revoked. Atlas's Security+ course reviews certificate chains if you want the foundations first. Here are the fields of a fictional device certificate:
| Field | Example value | Why the verifier cares |
|---|---|---|
| Subject | CN=HS-LT-0412.corp.example.com | Which device this is |
| Issuer | CN=Harbor Issuing CA 2 | Which CA vouches for it; must chain to a trusted root |
| Validity | 2026-03-01 to 2027-03-01 | An expired certificate must be refused |
| Key usage | Digital signature | The key may sign challenges |
| Extended key usage | Client authentication | The certificate is meant for proving a client's identity, not for running a server |
| Subject alternative name | DNS name HS-LT-0412.corp.example.com | The Domain Name System (DNS) name the verifier maps to a device record |
| CRL distribution point and OCSP address | https://pki.example.com/... | Where to check revocation |
Certificate-based authentication uses that certificate and its private key as the credential. In mutual Transport Layer Security (TLS), in 802.1X with the Extensible Authentication Protocol method EAP-TLS (Lesson 12), and in many client VPNs, the steps are the same. The client presents its certificate. The verifier sends a challenge. The client signs it with the private key. The verifier checks the signature, the chain, the dates, the extended key usage and revocation, then maps the subject to an account or device. The private key never leaves its protected store: a TPM chip, a smart card or a phone's secure hardware.
Smart cards, like the identity cards many government agencies issue to staff, are the best-known form of PKI-based MFA. The card is something you have, and the PIN that unlocks it is something you know. They are also the harder family to run: they need mature identity management, meaning reliable issuance, renewal, revocation and card replacement, plus card readers on every device.
Revocation is where certificate designs most often fail in practice. Work an example. A Harbor sales laptop with an EAP-TLS certificate is stolen on Friday. The team revokes the certificate at the CA. The CA publishes the serial number in its next CRL, and its OCSP responder answers "revoked" at once. Harbor's Remote Authentication Dial-in User Services (RADIUS) server, which authenticates Wi-Fi clients for 802.1X and checks OCSP on each authentication, refuses the laptop on its next attempt to join the Wi-Fi.
Now flip one input: suppose the RADIUS server was configured not to check revocation, a setting sometimes chosen to avoid outages when the CRL cannot be fetched. The stolen laptop still holds a valid, unexpired certificate signed by a trusted CA, so it joins as before. Revocation is only as good as the verifier's willingness to check it.
Expiry is the mirror risk. A certificate that lapses unnoticed takes down every connection that depends on it. Automation reduces both problems. MDM platforms enroll and renew device certificates automatically, and the Automated Certificate Management Environment (ACME) protocol automates issuing and renewing server certificates.
Key management systems: protecting the keys behind identity
Every mechanism in this lesson ends at a private key. The IdP signs SAML assertions and ID tokens with one. The CA signs certificates with one. If an IdP's token-signing key is stolen, an intruder can mint assertions for any user, and no MFA prompt ever runs, because the forged assertion claims MFA already happened. That makes key protection an authentication control.
A key management system (KMS) is a service that generates, stores, rotates and controls the use of cryptographic keys, and logs every operation. Cloud service providers (CSPs) each offer one, and enterprise KMS products exist for on-premises use. The design principles are stable:
- Keys do not leave. Applications send data to the KMS to be signed or decrypted; they never receive the key. A hardware security module (HSM), a tamper-resistant device built to keep keys inside it, usually backs the most sensitive keys, such as a root CA key.
- Envelope encryption. Bulk data is encrypted with a data key, and the data key is itself encrypted ("wrapped") by a master key that stays in the KMS. Rotating or revoking the master key controls access to everything it wraps.
- Separation of duties. The administrators who manage a key's policy should not be the identities that use it, and both sets of actions are logged.
- Rotation and monitoring. Signing keys are rotated on a schedule, and unusual signing activity, such as tokens issued for users with no matching sign-in event, is treated as a severe alert.
For a network architect, KMS questions usually arrive as placement and ownership decisions: should the organization use provider-managed or customer-managed keys for a cloud service, and where does the CA's root key live? The answer follows from what a compromise of that key would allow.
Endpoint trust: authenticating the device as well as the person
The 02:13 intruder used Harbor's real credentials on a computer Harbor had never seen. Endpoint trust is the confidence that a device is the one it claims to be and is in an acceptable state, and it is what Harbor's sign-in never checked. NIST's zero trust architecture, Special Publication 800-207, treats authentication and authorization of both the subject and the device as discrete functions performed before a session to an enterprise resource is established.[10] Zero trust also grants no implicit trust because of network location or because the organization owns the device.
Endpoint trust has two parts. Device identity proves which device this is, almost always with a certificate or key held in protected hardware and provisioned when the device registers. Device health, often called compliance or posture, reports whether the device meets policy. Typical MDM checks are disk encryption on, an operating system at a supported patch level, a screen lock set, an endpoint detection and response (EDR) agent running, and no jailbreak.
| Trust level | What the IdP knows | Reasonable access |
|---|---|---|
| Unknown device | Nothing beyond the browser | Low-risk apps only, or browser access with downloads blocked |
| Registered personal device (bring your own device, BYOD) | A device identity, no management | Approved apps with app protection policies that keep corporate data inside managed apps |
| Managed and compliant | Identity plus current health from MDM | Full access, including sensitive applications |
| Managed, compliant, privileged access workstation | As above, on a hardened device reserved for administration | Administrative consoles |
Device checks fail in ways that look like user errors. Microsoft documents that its browser device check fails when the browser runs in private mode or has cookies disabled.[6] A help desk that does not know this will chase a nonexistent account problem. Compliance is also a snapshot: a laptop that was compliant at 09:00 and had its EDR agent stopped at 09:30 is still trusted until MDM reports the change, which is why short session lifetimes and continuous evaluation matter here too.
The network enforces the same idea at a different layer. Network access control (NAC) with 802.1X and posture checks, from Lesson 12, decides whether a device may join a switch port or a wireless network's Service Set Identifier (SSID). Conditional access decides whether it may reach an application. A sound design uses both, with the same device certificate as the root of trust. The 802.1X basics are in Atlas's Network+ course.
Rebuilding the 02:13 sign-in
Put the controls together and walk the original log again. Each failure now has a specific fix and a mechanism that explains why the fix works.
| What happened at Harbor | Control | Why it works |
|---|---|---|
| Eleven ignored pushes, then an approval | Phishing-resistant MFA (FIDO2) for all staff; number matching in the interim | No credential the intruder can relay or obtain by nagging |
| A new country and unregistered PC changed nothing | Risk-based policy: block at high sign-in risk, step up at medium | Unusual signals raise the bar for that attempt |
| Sign-in from a country Harbor never operates in | Geofence block with a travel exception group | Removes broad exposure cheaply |
| Unregistered PC reached the admin console | Require a compliant device and phishing-resistant MFA for administrator roles | Credentials alone cannot open privileged apps |
| One IdP session opened three apps | Keep SSO, but protect the IdP sign-in as the crown jewel | SSO concentrates strength as well as risk |
| The console session still worked at 09:52, after the 09:30 disable | Short app sessions, revocable refresh tokens, shared signals, AAL2-level timeouts | Revocation reaches the app, not only the IdP |
| Nobody noticed the impossible trip | Session monitoring and impossible-travel detection feeding the risk score | Fraud is caught during the session, not the next morning |
No row depends on any other row. That independence is the design goal: Run 2 showed the location control failing while the authentication strength and device controls still held.
Exam cues: words in the stem and where they point
| The stem says | Think | Commonly confused with |
|---|---|---|
| Sign in once, reach many apps | Single sign-on | Federation, which is the trust that makes cross-organization SSO possible |
| Separate organizations; assertions; identity provider and relying party | Federation | Kerberos SSO inside one domain |
| XML assertion; service provider; enterprise browser SSO | SAML 2.0 | OIDC, which uses JSON ID tokens |
| Scopes; delegated access; app acts on the user's behalf | OAuth 2.0 | OIDC; OAuth alone does not establish who signed in |
| Mobile or single-page app cannot keep a client secret; authorization code intercepted | Authorization code flow with PKCE | Client credentials grant, which has no user at all |
| ID token; identity layer; mobile or single-page app sign-in | OpenID Connect | Plain OAuth 2.0 |
| No password; FIDO2; passkey; security key | Passwordless, phishing-resistant | Emailed sign-in links, which are passwordless but phishable |
| Cookie; bearer; refresh; session continues after the account is disabled | Session-based tokens | The authentication event itself |
| Two different factor categories | MFA | Two passwords, which is one factor twice |
| Prompt only when the sign-in looks unusual; risk level; step-up | Risk-based authentication | Conditional access, the engine that acts on risk as one signal |
| If-then policy; grant or block; require compliant device | Conditional access | Network access control lists (ACLs), which filter packets rather than sign-ins |
| Block countries; trusted locations; virtual boundary | Geofencing | Impossible travel, a risk detection that uses location |
| Smart card; client certificate; EAP-TLS; mutual TLS; CRL; OCSP | PKI and certificate-based authentication | Pre-shared keys |
| Generate, store, rotate and control use of keys; HSM-backed | Key management system | The CA, which issues certificates but is not a key vault |
| Device compliance; managed device; posture; device identity | Endpoint trust | User risk, which scores the account rather than the device |
Common misconceptions
- "SSO is a security feature in itself." SSO is a convenience and a control point. It makes the IdP sign-in a master key, so it improves security only when that sign-in is strong and its sessions are managed.
- "OAuth 2.0 logs users in." OAuth 2.0 issues access tokens that authorize a client to call an API. Authentication of the user is what OpenID Connect adds, through the signed ID token.
- "Disabling the account at the IdP ends every session." IdP and app sessions are managed independently. Existing app sessions and refresh tokens run on unless the apps are told to revoke them or their lifetimes are short.
- "Any MFA stops phishing." SMS codes, app codes and simple pushes can be relayed or approved blindly. Only methods that check the requesting site, such as FIDO2 and PKI smart cards, resist phishing.
- "A low risk score or a trusted location can replace a factor." Risk indicators adjust how much proof to demand; NIST is explicit that they do not substitute for an authentication factor, and locations can be faked with a VPN.
- "A valid certificate means a trusted device." A certificate can be unexpired and still revoked, or belong to a device that has fallen out of compliance. The verifier must check revocation, and conditional access must check health.
What to remember
- SSO is signing in once to reach many apps; federation is the pre-arranged trust in which a relying party accepts signed assertions from an identity provider run by another party.
- SAML 2.0 (issued 15 March 2005) carries signed XML assertions for browser SSO; the service provider checks signature, audience and time window before starting its own session.
- OAuth 2.0 grants scoped access tokens for APIs, using the authorization code flow with PKCE for apps that cannot keep a secret; OpenID Connect adds a signed JWT ID token whose signature, issuer, audience, expiry and nonce the client must validate.
- IdP sessions and app sessions are independent, so revocation must reach the app; NIST AAL2 sets an overall timeout of no more than 24 hours and an inactivity target of 1 hour, and AAL3 sets 12 hours and 15 minutes.
- MFA requires two different factor categories; SMS, TOTP and push are not phishing-resistant, number matching stops blind push approvals but not real-time relay, and FIDO2 and PKI smart cards resist phishing.
- Risk-based authentication raises or lowers the required proof from signals such as unfamiliar location, device and velocity; user risk scores the account, sign-in risk scores one attempt, and neither counts as a factor.
- Conditional access runs after the first factor as if-then policy; matching policies combine, any block wins, and every grant requirement must be met.
- Geofencing uses IP ranges or device-reported location as a condition; impossible travel compares distance over time, and VPNs or SASE egress can make location wrong in either direction.
- Certificate-based authentication proves possession of a private key bound by a CA-signed certificate, works only if verifiers check revocation through a CRL or OCSP, and depends on keys protected by an HSM-backed KMS and on endpoint trust that verifies device identity and compliance.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- NIST. (2017). NIST SP 800-63C Digital Identity Guidelines: Federation and Assertions. nvlpubs.nist.gov
- NIST. (2025). NIST SP 800-63B-4 Session Management. pages.nist.gov
- NIST. (2025). NIST SP 800-63B-4 Authentication Assurance Levels. pages.nist.gov
- CISA. (2022). Implementing Phishing-Resistant MFA (fact sheet). cisa.gov
- Microsoft Learn. (n.d.). Conditional Access: Conditions (includes locations/geofencing and device conditions). learn.microsoft.com
- Microsoft Learn. (n.d.). Risk-based access policies. learn.microsoft.com
- Microsoft Learn. (n.d.). What is Conditional Access? learn.microsoft.com
- D. Cooper et al. (2008). RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile. IETF (RFC Editor). rfc-editor.org
- Scott Rose, Oliver Borchert, Stuart Mitchell, Sean Connelly. (2020). Zero Trust Architecture (NIST SP 800-207). NIST. nist.gov
- Key terms
- Single sign-on (SSO)
- An arrangement in which a user authenticates once to an identity provider and then reaches many applications without entering credentials for each one.
- Federation
- A pre-arranged trust in which a relying party run by one organization accepts signed assertions about a user from an identity provider run by another.
- Identity provider (IdP)
- The system that holds user accounts, performs authentication and issues assertions or tokens that applications accept as proof of sign-in.
- OpenID Connect (OIDC)
- An identity layer built on OAuth 2.0 that issues a signed ID token, a JSON Web Token stating who signed in, when and by what methods.
- Bearer token
- A session or access token that grants access to whoever presents it, without further proof, so its lifetime and revocation must be tightly controlled.
- Phishing-resistant MFA
- Multifactor authentication in which the authenticator verifies the requesting site, such as FIDO2 keys, passkeys or PKI smart cards, so credentials cannot be relayed from a fake page.
- Risk-based authentication
- Authentication that adjusts the required proof for each attempt according to assessed risk signals such as unfamiliar location, device, velocity or leaked credentials.
- Conditional access
- A policy engine that evaluates user, application, risk, location and device signals after the first factor and decides to block access or grant it with requirements.
- Geofencing
- Defining a virtual geographic boundary, by IP ranges or device-reported location, so that access rules apply when a user or device is inside or outside it.
- Endpoint trust
- Confidence that a device is the one it claims to be, usually proven by a certificate, and that it meets health requirements such as encryption, patching and a running EDR agent.
Authorizing and Provisioning Access: RBAC, ABAC, JIT, SCIM, CIEM, PAM and UEBA
- Choose between RBAC and ABAC for a scenario by comparing how each reaches an access decision and where each breaks down.
- Explain how SCIM and just-in-time provisioning create, update and remove accounts, and why JIT provisioning alone leaves orphaned accounts.
- Design privileged access with PAM so administrative rights are eligible, approved, time-limited and recorded instead of standing.
- Distinguish CIEM from UEBA by what each measures, and pick the right one for permission drift versus anomalous behavior.
A Friday resignation and two standards from September 2015
In September 2015 the Internet Engineering Task Force (IETF) published two companion Request for Comments (RFC) documents, RFC 7643 and RFC 7644. Together they define the System for Cross-domain Identity Management (SCIM).[1][2] The problem they solve sounds dull. When a company hires or fires someone, every cloud application that keeps its own user list needs to hear about it. SCIM lets the company's identity system tell those applications directly, over a standard interface. Nobody has to remember to do it by hand.
To see why an architect should care, follow a fictional example. Dana Reyes is a senior network engineer at Kestrel Logistics, an invented company. She resigns on a Friday. Her directory account is disabled within the hour, so single sign-on (SSO) stops working for her. On Monday an auditor finds four problems:
- The cloud firewall manager is a software as a service (SaaS) application. It created a local account for Dana the first time she signed in, and nothing ever removed it. The account still holds a valid application programming interface (API) token.
- Dana held the cloud tenant's top administrator role permanently, even though she used it perhaps twice a month.
- Dana built a pipeline identity that Terraform uses to deploy virtual networks. It holds thousands of cloud permissions, including the right to delete production networks, and it has used a few dozen of them.
- On Thursday night, her account downloaded every firewall configuration in the company from a laptop it had never used before. No alert fired, because the password and the multifactor authentication (MFA) prompt were both valid.
None of these is an authentication failure. Lesson 14 covered how users and devices prove who they are. This lesson covers what happens next. It asks what an identity is allowed to do, and how its accounts appear and disappear across systems. It also asks how long its privilege lasts, which permissions it holds but never uses, and whether it still behaves like its owner.
Exam objectives: 2.5 Given a scenario, apply identity and access management to secure a network environment.[3] This lesson teaches seven bullets of that objective: role-based access control (RBAC), attribute-based access control (ABAC), just-in-time (JIT) provisioning, System for Cross-domain Identity Management (SCIM), cloud infrastructure entitlement management (CIEM), privileged access management (PAM) and user and entity behavior analytics (UEBA). Lesson 14 covered the authentication bullets of 2.5. One naming quirk: the exam's official acronym list expands SCIM as "System for Cross-interdomain Identity Management", but the objective text and the IETF standards say Cross-domain. Both names refer to the same standard.
Seven controls, seven questions
The quickest way to keep these seven apart is to ask which question each one answers. This lesson is built on the comparison in the table below. Each later section explains one or two of its rows.
| Control | Question it answers | What it works on | When it acts | Typical form | Characteristic failure |
|---|---|---|---|---|---|
| RBAC | What does this person's job allow? | Roles that hold permissions; users assigned to roles | Mostly when a role is assigned | Directory groups, cloud roles, device command authorization | Role creep and role explosion |
| ABAC | Does this specific request satisfy policy, given everything known about it? | Attributes of subject, object, action and environment | At every request | Policy decision and enforcement points; tag-based cloud conditions | Stale attributes; untested policy logic |
| JIT provisioning | Should this person have an account here, right now? | An application account built from sign-in attributes | At the user's first SSO sign-in | Account created from a Security Assertion Markup Language (SAML) assertion or an OpenID Connect (OIDC) token | Never removes accounts |
| SCIM | Does every application's account list match the source of truth? | User and Group resources over a Representational State Transfer (REST) API | Whenever the source changes | Identity provider pushing changes to SaaS applications | Overprivileged provisioning token; incomplete group mapping |
| PAM | Who holds powerful rights, when, and what did they do with them? | Privileged accounts, credentials and sessions | Before, during and after privileged work | Vault, eligible roles, approvals, session recording | Standing admins left in place; unmonitored break-glass accounts |
| CIEM | Which identities hold cloud permissions they never use? | Permissions granted compared with permissions used | Continuously, after the fact | Multicloud permission analytics | Reports nobody acts on; deleting rarely used but needed rights |
| UEBA | Is this identity behaving like itself and its peers? | Activity of users and entities such as hosts | Continuously, after the fact | Analytics inside a security information and event management (SIEM) platform | Noisy baselines; alerts nobody investigates |
Read the "When it acts" column and three families appear. RBAC, ABAC and PAM are decision controls: they decide whether an action is allowed before or during a request. JIT provisioning and SCIM are lifecycle controls: they make sure accounts exist where they should and vanish where they should not. CIEM and UEBA are detective controls. They look at what has already happened, either the permissions identities hold or the actions they take, and they report drift. Dana's four problems fit this split exactly: an orphaned account (lifecycle), standing administrator rights (decision), an oversized pipeline identity (detective, then decision) and an unnoticed bulk download (detective).
So what?: when a scenario describes a problem, first decide whether it is about deciding access, keeping accounts in sync or noticing drift. That one step usually removes four of the seven choices.
Role-based access control: permissions attached to jobs
The glossary of the National Institute of Standards and Technology (NIST) defines role-based access control as a model in which the actions a subject may perform are tied to roles rather than to individual identities.[4] The mechanism has three sets and two links. There is a set of users, a set of roles and a set of permissions. Permissions are assigned to roles, and users are assigned to roles. A user never holds a permission directly. If least privilege and the basic access control models are rusty, the Security+ course covers them at foundation level.
That indirection is the whole point. When Kestrel hires its fifteenth network operations center (NOC) analyst, nobody picks permissions for her. She joins the NOC role and gets exactly what the other fourteen have. When the NOC needs read access to a new monitoring tool, one change to the role reaches all fifteen people at once. Auditors like RBAC for the same reason: the question "what can a NOC analyst do?" has one written answer.
The NIST SP 800-53 definition adds two refinements. Roles can form a hierarchy in which a senior role inherits a junior role's permissions, and role permissions normally reflect the functions a job requires.[4] A role can be held by one person or by many.[4] Here is a fictional role matrix for Kestrel's network team:
| Role | Firewall manager | Routers and switches (command-line interface, CLI) | Cloud virtual networks | Monitoring |
|---|---|---|---|---|
| NOC-Analyst | Read rules and logs | Show commands only | Read | Read, acknowledge alerts |
| Network-Engineer | Read, stage changes | Configure lab and branch devices | Read, edit development route tables | Read |
| Senior-Network-Engineer (inherits Network-Engineer) | Commit to production, through PAM | Configure core devices, through PAM | Edit production route tables, through PAM | Read |
| Network-Auditor | Read rules, logs and change history | None | Read | Read |
On network devices, RBAC usually arrives through Terminal Access Controller Access Control System Plus (TACACS+). The device can send each command to the TACACS+ server for authorization against the user's group. A NOC analyst's "configure terminal" is refused while "show interfaces" is allowed. In the cloud, RBAC means the provider's built-in and custom roles, assigned at the scope of a subscription, project or resource.
RBAC can also enforce separation of duties. If the person who stages a firewall change must not approve it, define the stager and approver roles as mutually exclusive so no one user can hold both.
RBAC breaks in two predictable ways. The first is role creep. People change jobs and pick up new roles without losing the old ones. Roles also pick up "temporary" permissions that nobody removes. Periodic access reviews exist to catch this. The second is role explosion, which leads to the next section. Suppose Kestrel decides that engineers may change devices only in their own region, only during the change window and only from a managed laptop. RBAC cannot express "during the window" or "from a managed laptop" except by creating more roles. Four job roles across six regions already make 24 roles before you add shifts or device state, and each new condition multiplies the count again. When the number of roles grows with the number of conditions instead of the number of jobs, the model needs attributes.
Attribute-based access control: policies that read the whole request
NIST Special Publication (SP) 800-162, published in 2014, is the standard reference for attribute-based access control. It was written to give United States federal agencies a definition of ABAC and considerations for using it to share information while still controlling it.[5] ABAC stores no permission against a user or a role. Instead, at the moment of each request, a policy evaluates attributes and returns permit or deny. The attributes fall into four groups:
- Subject attributes describe the requester: department, employment type, region, clearance or role. A role can be just one attribute among many.
- Object attributes describe the resource: its data classification, owning team, region, or an environment tag such as "production".
- The action is what the subject wants to do: read, write, commit or delete.
- Environment conditions describe the moment: time, location, device compliance or the current threat level. NIST revised the guide's trust-chain figure specifically to add environment conditions as an input to the access decision.[5]
ABAC does not authenticate anyone. The NIST guide says it assumes that subjects are already bound to trusted identities or identity providers.[5] That is the hand-off from Lesson 14. SSO, MFA and certificates establish who is asking. ABAC takes that verified identity and adds everything else known about the request.
The guide uses a standard vocabulary for the parts of an ABAC system. Among the acronyms it defines are the policy administration point, the policy decision point and the policy enforcement point.[5] A fourth part, the policy information point, supplies attribute values. Here is what each part looks like on a network:
- The policy administration point (PAP) is where people write and manage policy.
- The policy information point (PIP) supplies attribute values. Examples are the directory, the human resources (HR) system, the mobile device management (MDM) platform that knows whether a laptop is compliant, and the configuration management database (CMDB) that knows a device's region.
- The policy decision point (PDP) evaluates a request against policy and returns permit or deny.
- The policy enforcement point (PEP) sits in the request path and carries out the decision. It might be a zero trust network access (ZTNA) proxy, an API gateway, a next-generation firewall (NGFW) with identity-based rules, or the cloud provider's own authorization layer.
This is the same split as the policy engine and enforcement point in Lesson 13's zero trust architecture. In practice, a zero trust policy engine usually makes its decisions the ABAC way.
Subjects need not be people. The guide notes that authorization services can use attributes of any kind of entity.[5] Its non-person entities (NPEs) explicitly include switches, routers, server processes, workstations and other endpoints.[5] That matters for automation: a configuration pipeline that pushes changes to 400 switches is a subject with attributes of its own. It also carries a warning. If a decision rests on an NPE's credential, the system cannot tell which person was behind the request.[5] So a shared automation account that ten engineers trigger gives no individual accountability, unless the pipeline itself records who started each run.
Worked example: one ABAC policy, two requests
Kestrel writes this policy for production firewall commits. It is a fictional example written as pseudocode, not the syntax of any product.
POLICY fw-prod-commit
PERMIT action = commit
ON object.type = firewall-policy
AND object.environment = production
IF subject.department = network-engineering
AND subject.employment = employee
AND subject.region = object.region
AND environment.device_compliant = true
AND environment.time WITHIN change_window(object.region)
OTHERWISE DENY
Ama Osei, a senior engineer, requests a commit at 22:40. The PDP collects attributes from its information points and checks each clause in turn. The table shows the same request twice, with one input changed in the second run.
| Attribute | Supplied by | Run 1 value | Run 2 value | Clause met? |
|---|---|---|---|---|
| subject.department | HR system, through the directory | network-engineering | network-engineering | Yes in both runs |
| subject.employment | HR system | employee | employee | Yes in both runs |
| subject.region and object.region | Directory and CMDB | EU-West and EU-West | EU-West and EU-West | Yes, they match |
| environment.device_compliant | MDM platform | true | false (disk encryption off after a reimage) | Run 1 yes, run 2 no |
| environment.time | PEP clock | 22:40 | 22:40 | Yes, the window is 22:00-02:00 |
| Decision | PDP | PERMIT | DENY | Every clause must hold |
In run 1 every clause holds, so the PDP returns permit and the PEP lets the commit through. In run 2 exactly one input changed. The MDM platform reports Ama's laptop as non-compliant because disk encryption was not turned back on after a reimage. Nothing about Ama changed: her department, role and region are the same. But the clauses are joined by AND, so one false clause makes the whole condition false, and the decision flips to deny. RBAC could not have told these runs apart. Under RBAC, Ama is a Senior-Network-Engineer at 22:40 on either laptop, so both requests look identical.
That power has a price in three places. First, attributes must be accurate and current. If HR records Ama's transfer to another region a week late, the policy is wrong for a week, so the information points become security-critical systems. Second, policies are harder to audit. Under RBAC, "who can commit to the EU firewall?" is a list of role members. Under ABAC the honest answer is "whoever meets these conditions at that moment". Third, policy logic can hide mistakes that only show up in unusual combinations. NIST advises organizations to add testing and independent product reviews before they deploy an ABAC product.[5]
| Question | RBAC | ABAC |
|---|---|---|
| What grants access? | Membership in a role | A policy evaluated against attributes |
| When is the decision really made? | When someone assigns the role | At each request |
| Can it use time, location or device state? | Only by creating more roles | Yes, as environment conditions |
| Who can reach resource X? | A list of role members | Depends on conditions at request time |
| Administrative work | Maintaining roles and memberships | Maintaining policies and trustworthy attribute sources |
| Typical failure | Role creep and role explosion | Stale attributes and untested policy logic |
Most real designs are hybrids. The role becomes one subject attribute, and ABAC conditions narrow it down. Cloud providers support this pattern by letting a permission policy compare a tag on the caller with a tag on the resource. "Engineers may modify only networks tagged with their own team" then becomes one policy instead of one role per team.
So what?: choose RBAC when access follows job functions and auditors need a simple list. Choose ABAC when the scenario mentions conditions such as time, location, device posture or data classification, or when a user attribute must match a resource attribute.
SCIM: one source of truth pushing to every application
SSO controls whether you can sign in to an application. It does not control whether an account exists there. Most SaaS applications keep their own user store, with their own records, group memberships, API tokens and sometimes local passwords. Provisioning means creating, updating and removing those records. Deprovisioning, the removing half, is the part that gets forgotten.
RFC 7644 describes SCIM as a protocol for provisioning and managing identity data across domains, and gives enterprise-to-cloud and inter-cloud cases as examples.[1] RFC 7643 defines a provisioning domain as an administrative domain separate from the service provider's, for legal or technical reasons.[2] In practice, the SCIM client is the company's identity provider (IdP) or HR-driven identity system. The SCIM service provider is the SaaS application that receives the changes. The schema represents users, groups and other resource types in JavaScript Object Notation (JSON).[2] The standard's stated aim is to reduce the cost and complexity of user management.[2]
The RFC Editor's pages show that both 2015 documents have since been updated, by RFC 9865 and RFC 9967.[1] This lesson has not reviewed those updates. The method behavior taught below comes from the 2015 documents, so check the updates before you rely on a fine detail in production.
The protocol is a small REST API. It is carried over Hypertext Transfer Protocol Secure (HTTPS) and uses ordinary Hypertext Transfer Protocol (HTTP) methods. GET retrieves resources, and POST creates them; POST also handles searches and bulk changes.[2] PUT replaces attributes within a resource, PATCH updates only some attributes, and DELETE removes the resource.[2] The difference between PUT and PATCH matters in day-to-day operation. A PUT that carries only one attribute may clear the attributes it left out. For that reason, a change to a single attribute, such as deactivating an account, normally uses PATCH.
Here is what the traffic looks like. This fictional example creates a user when HR records a hire. The token is a placeholder.
POST /scim/v2/Users HTTP/1.1
Host: app.example.com
Authorization: Bearer EXAMPLE-TOKEN-REDACTED
Content-Type: application/scim+json
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"externalId": "E10442",
"userName": "ama.osei@example.com",
"name": { "givenName": "Ama", "familyName": "Osei" },
"active": true
}
HTTP/1.1 201 Created
Location: https://app.example.com/scim/v2/Users/a41f-example-0001
When HR later records the end of Ama's employment, the client sends a partial update. It switches the account off and touches nothing else:
PATCH /scim/v2/Users/a41f-example-0001 HTTP/1.1
Host: app.example.com
Authorization: Bearer EXAMPLE-TOKEN-REDACTED
Content-Type: application/scim+json
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{ "op": "replace", "path": "active", "value": false }
]
}
Some organizations send DELETE instead. Deactivation is the more common choice. It keeps the record for audit and lets the account be restored if the termination was a mistake. Once the account is inactive, the application stops accepting its sign-ins. Check one thing in your own applications: whether deactivation also revokes existing API tokens depends on how the application is built, not on SCIM.
Groups carry roles. RFC 7643 says its Group resource is meant to let deployments express group-based or role-based access control, but SCIM defines no authorization model of its own.[2] So SCIM delivers the fact "Ama is a member of Network-Engineer" to the application, and the application's own configuration decides what that group may do. This is where RBAC and SCIM meet. Map identity-provider groups to application roles once, and every later membership change flows through automatically.
Finally, protect the SCIM channel itself. A SCIM credential can create accounts and add them to administrator groups, which makes it one of the most powerful secrets an organization holds. RFC 7644 advises against basic authentication, because it rests on one relatively static shared secret.[1] It also requires the service provider to map each authenticated client to an access control policy that decides what that client may read and change.[1] Give the provisioning client its own identity, limit it to provisioning, rotate its token and restrict where it may connect from.
Just-in-time provisioning: accounts created at first sign-in
Just-in-time provisioning is the lighter alternative, with no provisioning connection at all. The first time a user signs in through SSO, the application reads the attributes in the SAML assertion or the OIDC ID token. These are typically the email address, name and perhaps a group or department. The application then creates the account on the spot. JIT provisioning is easy to set up, because it needs nothing beyond the SSO trust from Lesson 14, and it creates accounts only for people who actually use the application.
Its weakness comes from its trigger. JIT provisioning runs only when someone signs in. It can create accounts and sometimes update them, but it can never remove one. A person who leaves never signs in again, so the application never hears about the departure. Disabling the directory account blocks future SSO sign-ins, but the orphaned application account, its API tokens and any long-lived sessions remain. That was Dana's first problem. There is a second gap: attribute changes reach the application only at the user's next sign-in. If someone transfers out of the network team, their old group memberships stay in place until then.
| Question | SCIM | JIT provisioning |
|---|---|---|
| What triggers a change? | A change in the source of truth (HR or IdP) | The user signing in through SSO |
| Direction | Pushed by the identity system to the application | Read by the application from the sign-in assertion |
| Can it disable or remove accounts? | Yes, with PATCH (active set to false) or DELETE | No |
| Can it create accounts before the first sign-in? | Yes | No |
| When do group changes arrive? | When they happen | At the user's next sign-in |
| What it needs | The application's SCIM endpoint and a provisioning credential | Only the SSO trust |
| Typical failure | Overprivileged SCIM token; incomplete group mapping | Orphaned accounts after departures |
Now replay Dana's first problem with one input changed. With JIT provisioning only, her firewall-manager account and API token outlive her employment by months. With SCIM, HR enters the termination at 16:05 on Friday and the change reaches the IdP. The IdP sends the PATCH shown above to the firewall manager, and the account is inactive minutes later. Many organizations combine the two. They use SCIM for the full lifecycle where an application supports it, and fall back to JIT provisioning only where it does not.
A warning about the phrase "just-in-time". The exam's JIT provisioning bullet sits next to SCIM, and it means creating accounts at first sign-in. "Just-in-time access" also describes granting privilege for a limited time, which is a PAM technique covered in the next section. When a stem says JIT, read the nouns around it. Account, first login, assertion and attributes point to provisioning. Elevation, approval, expiry and administrator point to privileged access.
So what?: if a scenario's problem is accounts that survive a person's departure, the fix is SCIM-based deprovisioning. Turning on JIT provisioning in more applications makes that problem worse, not better.
Privileged access management: from standing rights to eligible rights
NIST describes a privileged user as one who is authorized, and therefore trusted, to perform security-relevant functions that ordinary users cannot.[6] The same definition adds that such users need additional training and must sign an acceptable use policy.[6] On a network, privileged users include anyone who can change routing, firewall rules, switch configuration or cloud network settings. They also include accounts that no person signs in to day to day: router enable secrets, local administrator accounts on appliances, root on Linux jump hosts, and service accounts used by automation.
The problem PAM solves is standing privilege: rights that stay switched on whether or not anyone is using them. Dana held the top administrator role around the clock, so anyone who stole her session would hold it too, at any hour. Her role's power was exposed every hour of every day, even though she used it for perhaps four hours a month. PAM reduces that exposure, both in how long rights are active and in how far they reach. A complete PAM program usually covers:
- Discovery of every privileged account, including device local accounts and service accounts hidden in scripts.
- A credential vault that stores privileged passwords and keys. Users check a credential out, the vault logs the checkout, and the vault rotates the credential afterward. The shared spreadsheet of enable passwords goes away.
- Session brokering and recording. The administrator connects to the device through the PAM system over Secure Shell (SSH) or Remote Desktop Protocol (RDP). The PAM system injects the credential, so the administrator never sees it, and it records the session for review.
- Just-in-time elevation. The user holds an eligible assignment and activates it only when needed. Activation requires a justification and sometimes an approval and MFA, and it lasts a set number of hours before it expires.
- Break-glass accounts: one or two emergency accounts for use when the identity system itself is down. They are kept in the vault and monitored closely.
Microsoft's Privileged Identity Management (PIM) is a concrete example of the elevation piece. Microsoft describes it as providing as-needed and just-in-time access to Azure and Microsoft Entra resources.[7] Administrators can create eligible or time-bound role assignments.[7] Users activate an assignment when they need access and deactivate it when they finish.[7] Every activation and assignment is recorded in an audit history.[7] Note the naming: Microsoft calls its product PIM, while the exam's PAM is the broader discipline that also includes vaulting and session recording. Here is a fictional activation log of the kind such a system produces:
| Time (Coordinated Universal Time, UTC) | User | Eligible role | Justification | Approver | Duration | Outcome |
|---|---|---|---|---|---|---|
| 21:52 | ama.osei | Network Administrator (production) | CHG-4471: add network address translation (NAT) rule for new warehouse site | j.mensah | 2 hours | Activated 21:58, expired 23:58 |
| 03:10 | t.lindqvist | Global Administrator | "urgent fix" | None available | 1 hour requested | Not approved; alert sent to security team |
| 09:00 | breakglass-02 | Global Administrator (standing, emergency only) | None | Not applicable | Not applicable | Sign-in triggered an immediate alert |
Look at the second row. With standing privilege, that 03:10 request would never appear, because the account would already be an administrator. With eligible assignments, an attacker who steals the account still needs a second person to approve the elevation, and the attempt itself becomes a signal. That is how PAM turns a stolen credential into an incident someone can see.
The same ideas apply to network devices without a cloud portal. Authenticate device administrators against TACACS+, so every command is authorized and logged per person. Keep the device's local account only as a break-glass credential in the vault, and rotate it after each use. Reach devices for administration through a recorded jump host or the out-of-band management network, never from general user subnets.
So what?: the exam's PAM cues are standing admin rights, shared or unrotated privileged passwords, a need for approvals and time limits, and a need to record what administrators did. If a scenario says admin rights should exist only during a change window, the answer is JIT elevation in PAM, not a new RBAC role.
Cloud infrastructure entitlement management: permissions granted versus permissions used
An entitlement is a permission that an identity holds. In a data center, the entitlements that matter for the network sit on a few hundred devices. In infrastructure as a service (IaaS) clouds they multiply. Each provider exposes thousands of distinct actions. Workload identities such as pipelines, functions and virtual machines (VMs) often outnumber people. And each provider models permissions differently. Teams grant broad permissions to get a deployment working, plan to tighten them later, and never do.
Cloud infrastructure entitlement management tools address that drift. Microsoft described its CIEM product, Microsoft Entra Permissions Management, as providing visibility into the permissions held by every identity, human and workload, across cloud infrastructures.[8] It detected, right-sized and monitored unused and excessive permissions to support least privilege.[8] The core measurement is the gap between the permissions an identity was granted and the permissions it used.[9] The product summarized that gap as a Permission Creep Index, a periodic risk score based on how many unused or excessive permissions identities hold.[9] Its remediation options were to right-size permissions to observed usage, grant new permissions on demand and automate just-in-time access to cloud resources.[9] It could also delete permissions automatically once they had gone unused for 90 days.[9]
That product is also a lesson in keeping knowledge current. Microsoft stopped selling Permissions Management from 1 April 2025.[9] It scheduled the product's retirement and end of support for 1 November 2025.[9] The CIEM category and the exam bullet did not disappear with one product. When you meet CIEM at work, check which current tool in your cloud or security platform provides it. Here is a fictional CIEM report of the kind these tools produce:
| Identity | Type | Permissions granted | Used in last 90 days | Highest-risk unused permission | Recommendation |
|---|---|---|---|---|---|
| tf-network-deployer | Workload (pipeline), two clouds | 4,210 | 37 | Delete virtual network | Right-size to the 37 used, plus documented pipeline needs |
| netops-readonly | Group of 14 people | 310 | 288 | None significant | Keep |
| dr-failover-runner | Workload | 96 | 0 | Modify route tables in the secondary region | Automatic deletion suggested; see below |
| legacy-vpn-admin | User whose owner left | 1,020 | 0 | Modify virtual private network (VPN) gateway | Disable and remove |
Work the first row. The pipeline identity holds 4,210 permissions and used 37. Subtract: 4,210 minus 37 leaves 4,173 unused permissions, about 99 percent of the total (4,173 divided by 4,210). Every one of them is exposure without benefit. If the pipeline's credential leaks, an attacker inherits the right to delete production networks, which the pipeline never needed. Right-sizing to the 37 used permissions, plus any that the pipeline's documentation lists for rare tasks, removes that exposure without breaking deployments.
The third row turns the same logic around. The disaster recovery (DR) runner used none of its 96 permissions in 90 days, so the 90-day rule makes all of them candidates for deletion. But the runner exists for a failover the team tests twice a year. Its permissions are unused because nothing has failed, not because they are unnecessary. Deleting them automatically would break recovery on the day it is needed. The architect's fix is to exclude the runner from automatic deletion, or to move its rights to approved on-demand access, and to record why. A usage window is evidence, not a verdict.
Keep CIEM separate from its neighbors. PAM controls how privileged people obtain and use power. CIEM measures whether any identity, usually a machine, holds more cloud permission than it uses. Cloud security posture management (CSPM), a related category, inspects resource configurations such as a publicly readable storage bucket, while CIEM inspects identities and their permissions.
User and entity behavior analytics: baselines, peers and anomalies
Dana's fourth problem, the Thursday-night bulk download, got past every control discussed so far. She authenticated correctly, her roles allowed the export, and her account legitimately existed. Only her behavior gave her away. User and entity behavior analytics is built to notice exactly this.
The "entity" half matters as much as the "user" half. Microsoft Sentinel is a SIEM service. Microsoft says its UEBA feature uses machine learning to build behavioral profiles for users and also for hosts, Internet Protocol (IP) addresses, applications and other entities.[10] It then flags anomalies by comparing current activity with those learned baselines.[10] Sentinel also builds peer groups, ranking each user's top 20 peers by security group membership, mailing lists and similar associations.[10] When it detects unusual behavior, it tags the user so that analysts can prioritize investigations by recent activity.[10]
Peer groups help because a single person's history can be thin. Suppose a network engineer has never opened the HR file share. Her own history says little about whether a first visit is odd. But if none of her 20 closest peers has ever opened it either, her first visit stands out. Here is a fictional set of anomalies from Dana's Thursday night:
| Time | Entity | Activity | Entity's own baseline | Peer-group baseline | Why it was flagged |
|---|---|---|---|---|---|
| Thu 23:12 | dana.reyes | Exported 1,486 firewall rule sets | Fewer than 5 exports a week, in working hours | Under 10 exports a week | About 300 times her normal volume, off-hours |
| Thu 23:12 | LT-0917 (laptop) | First sign-in by dana.reyes | Never used by this user | Not applicable | New device for this user |
| Thu 23:30 | 203.0.113.45 | 2.1 GB upload to a personal cloud storage domain | Destination never seen | No peer has used this domain | Rare destination for the peer group |
Compare that with a SIEM correlation rule, which states something fixed, such as "alert when any account exports more than 2,000 objects in an hour". Dana exported 1,486, so the rule stays silent. Lowering the threshold would bury the NOC in alerts from automation accounts that export thousands of objects every night. UEBA asks a different question: is this unusual for this identity and its peers? A pipeline exporting thousands of objects is normal for the pipeline. Dana exporting 1,486 at midnight is not normal for Dana.
UEBA has real limits. It needs a learning period before its baselines mean anything, and an attacker already present during that period becomes part of "normal". Legitimate change looks anomalous too. A transfer to a new team produces a burst of alerts until the baseline adapts, which is one more reason to keep HR attributes and group memberships current through SCIM. And UEBA only detects. Its value depends on what happens next. An analyst may investigate, or a security orchestration, automation, and response (SOAR) playbook may suspend the account. The finding can also become a risk signal that makes Lesson 14's conditional access and risk-based authentication demand stronger proof at the next sign-in.
So what?: CIEM and UEBA both read logs, but they ask different questions. CIEM asks what an identity is allowed to do but never does. UEBA asks what an identity did that it does not normally do.
Dana's four problems replayed, plus two related gaps
The first four rows below are the auditor's findings from Dana's departure. The last two were not in the auditor's report. They are related gaps that a review of the same team should also check for, added so that RBAC and ABAC appear beside the other controls. JIT provisioning appears in the first row as the mechanism that SCIM replaces.
| Finding | Where it comes from | Control | How the outcome changes |
|---|---|---|---|
| Firewall-manager account survived her departure | Auditor finding 1 | SCIM, replacing JIT-only provisioning | The termination in HR pushes active set to false within minutes |
| Permanent top administrator role | Auditor finding 2 | PAM with JIT elevation | The role is held as eligible; each use needs a justification, an approval and an expiry |
| Pipeline identity with 4,210 permissions | Auditor finding 3 | CIEM, then a tighter RBAC or ABAC policy | The gap report drives right-sizing to what the pipeline actually uses |
| Thursday-night bulk export | Auditor finding 4 | UEBA | The anomaly against her own baseline and her peers starts an investigation |
| Production commits allowed from any laptop at any hour | Related gap | ABAC | Device compliance and the change window are checked on each request |
| Inconsistent permissions across the NOC | Related gap | RBAC | One role, one written list of permissions, one review |
Now change one input. Suppose Dana did not resign. Instead, on the same Thursday, an attacker phished her password and tricked her into approving an MFA prompt. The lifecycle controls now do nothing: nobody disabled anything, so SCIM had nothing to send. The decision controls limit the damage. Without an approver, the attacker cannot elevate through PAM, and ABAC refuses production commits from the attacker's unmanaged device. UEBA becomes the control that notices, because the stolen account is behaving unlike Dana. The flip shows how the families divide the work. Lifecycle controls handle events that someone reports. Decision controls limit what any account can do. Detective controls catch what nobody reported. A sound design needs all three.
Exam cues: words in the stem and where they point
| The stem says | Think | Not to be confused with |
|---|---|---|
| Job function, department role, group-based permissions, simplest to audit | RBAC | ABAC, which adds conditions to each request |
| Time of day, location, device posture, data classification, user attribute must match resource attribute, fine-grained, contextual | ABAC | Conditional access, which applies conditions at sign-in, not to each action on a resource |
| Account created automatically at first login from SAML or OIDC attributes | JIT provisioning | JIT privileged access, a PAM technique |
| Automatically deprovision, sync users and groups to SaaS, REST API, orphaned accounts | SCIM | JIT provisioning, which cannot remove accounts |
| Standing admin rights, shared or unrotated privileged passwords, session recording, break-glass, approved and time-limited elevation | PAM | RBAC, which can define an admin role but cannot limit it in time |
| Unused or excessive cloud permissions, workload identities, multicloud, right-size, permission creep | CIEM | UEBA, which watches actions rather than grants |
| Baseline, peer group, anomaly, valid credentials used unusually, insider, compromised account | UEBA | SIEM correlation rules with fixed thresholds |
Common misconceptions
- "RBAC and ABAC are rivals, so a design must pick one." Most real designs treat the role as one subject attribute and use ABAC conditions to narrow it, for example a role plus a device-compliance check plus a change window.
- "Disabling the directory account removes access everywhere." It stops future SSO sign-ins. Application-local accounts, API tokens and long-lived sessions, especially those created by JIT provisioning, remain until SCIM or an administrator removes them.
- "Just-in-time means the same thing wherever it appears." JIT provisioning creates accounts at first sign-in. JIT access in PAM switches on privilege for a limited time. A stem's surrounding nouns tell you which is meant.
- "PAM is a password vault." Vaulting is one part. Eligible assignments, approvals, expiry, session brokering and recording, and monitored break-glass accounts are the rest.
- "A permission unused for 90 days is always safe to delete." Disaster recovery and other rare tasks depend on permissions that look idle. Review CIEM findings against runbooks before deleting automatically.
- "UEBA replaces SIEM rules." It complements them. Rules catch known patterns cheaply, and UEBA catches unusual use of valid credentials. Neither one blocks anything on its own.
The short version
- RBAC ties permissions to roles that reflect job functions. Users get permissions only through role membership, and senior roles can inherit junior roles' permissions through a hierarchy.
- RBAC fails through role creep and role explosion. When conditions such as region, time or device multiply the number of roles, move those conditions into ABAC.
- ABAC evaluates subject, object, action and environment attributes at each request. The PDP decides, the PEP enforces, the PIP supplies attributes and the PAP manages policy.
- ABAC assumes identities are already authenticated, and its decisions can be no more accurate than its attributes are fresh.
- SCIM (RFC 7643 for the schema, RFC 7644 for the protocol, both since updated) is a REST and JSON standard that lets an identity system create (POST), partly update (PATCH), replace (PUT) and delete (DELETE) users and groups in another domain. Deactivation is usually a PATCH that sets active to false.
- JIT provisioning creates an account at the first SSO sign-in from assertion attributes and cannot deprovision. Departures leave orphaned accounts unless SCIM or another process removes them.
- PAM replaces standing privilege with vaulted, rotated credentials, eligible assignments activated with justification and approval for a limited time, recorded sessions and monitored break-glass accounts.
- CIEM measures the gap between cloud permissions granted and permissions used, mostly for workload identities, and right-sizes them. Rarely used disaster recovery permissions need review before automatic deletion.
- UEBA builds baselines for users and for entities such as hosts and IP addresses, compares them with peer groups, and flags misuse of valid credentials that fixed SIEM thresholds miss.
Sources
- Key terms
- Role-based access control (RBAC)
- An access control model in which permissions are attached to roles that reflect job functions, and users receive permissions only by being assigned to roles.
- Attribute-based access control (ABAC)
- An access control model in which a policy evaluates attributes of the subject, the resource, the requested action and environment conditions such as time or device state at the moment of each request.
- Policy decision point (PDP)
- The part of an attribute-based access control system that evaluates a request against policy and returns permit or deny; a separate policy enforcement point carries out the decision.
- Role explosion
- The rapid growth in the number of roles when an RBAC design tries to encode conditions such as region, shift or device state, making roles hard to manage and audit.
- System for Cross-domain Identity Management (SCIM)
- An IETF standard, defined in RFC 7643 and RFC 7644 and later updated, that lets an identity system create, read, update and delete users and groups in another organization's application through a REST API using JSON resources.
- Just-in-time (JIT) provisioning
- Creating a user's account in an application at the moment of first single sign-on, using attributes from the SAML assertion or OIDC token; it cannot remove accounts when users leave.
- Privileged access management (PAM)
- The set of controls over accounts that can perform security-relevant functions, including credential vaulting and rotation, approved and time-limited elevation, session brokering and recording, and audit.
- Standing privilege
- Administrative rights that remain permanently active on an account whether or not they are being used, in contrast to an eligible assignment that is activated only when needed and then expires.
- Cloud infrastructure entitlement management (CIEM)
- Tools that inventory the permissions held by human and workload identities across cloud platforms, compare permissions granted with permissions actually used, and right-size the excess.
- User and entity behavior analytics (UEBA)
- Analytics that build behavioral baselines for users and for entities such as hosts and IP addresses, compare activity with those baselines and with peer groups, and flag anomalies for investigation.
Securing Wireless Networks
- Explain how AES, CCMP, TKIP, WPA2 and WPA3 relate to one another, and choose the right encryption setting for a WLAN that has modern and legacy clients.
- Choose between a shared passphrase (PSK or WPA3 SAE), per-device PSKs and enterprise 802.1X authentication by weighing the organization's size, directory, PKI and need to revoke individual users or devices.
- Design guest access that correctly combines a separate SSID and VLAN, a captive portal, Opportunistic Wireless Encryption and Layer 2 client isolation.
- Spot the limits of MAC address filtering and client isolation, and add the wired-side controls that make up for them.
A wireless design that sounds right and fails review
Lakeside Orthopedic Clinic is a fictional practice with 140 staff and 22 access points. Version 0.9 of its wireless design ends with a one-line security summary: "Staff traffic is AES-encrypted, only registered devices can join, and guests are protected by a captive portal." Each phrase names a real feature, and each one hides a fault that a design review should catch. The CloudNetX exam builds its wireless scenarios out of faults like these.
A few terms first. A wireless local area network (WLAN) is a set of devices that exchange data by radio within a building or campus. An access point (AP) is the radio that connects wireless clients to the wired network. An SSID (Service Set Identifier) is the network name an AP advertises. One AP can advertise several SSIDs. Each SSID has its own security settings and usually maps to its own VLAN (Virtual Local Area Network) on the wired side. Every Wi-Fi device also has a MAC address (Media Access Control address), the hardware address that appears in the header of every frame it sends. The lesson assumes the Wi-Fi basics from Network+ and the wireless attack families from Security+.
Below is the part of the draft that matters, as it might appear in a wireless controller's configuration export. The syntax is a generic illustration, not any one vendor's. In it, akm stands for authentication and key management, the setting that chooses how clients prove themselves and how keys are produced.
! Lakeside Orthopedic Clinic: WLAN design v0.9 (fictional example)
wlan LAKESIDE-STAFF
security wpa+wpa2 ! "mixed mode"
ciphers tkip aes-ccmp
akm psk ! one passphrase, 16 characters, set in 2023
mac-filter allow-list ! 140 entries, maintained by hand
vlan 10 ! staff and server subnet 192.0.2.0/24
wlan LAKESIDE-DEVICES
security wpa2
ciphers tkip
akm psk
vlan 20
wlan LAKESIDE-GUEST
security open
captive-portal terms-of-use
client-isolation disabled
vlan 10 ! same VLAN as staff
The author sees encryption, authentication, an allow list and a guest portal. An auditor sees at least five faults. The table pairs each claim with the setting it rests on and the point where the reasoning breaks. Each later section traces one row.
| Claim in the draft | Setting it rests on | Where the reasoning fails |
|---|---|---|
| Staff traffic is AES-encrypted | ciphers tkip aes-ccmp | Mixed mode pushes broadcast traffic onto TKIP and keeps a deprecated protocol alive |
| Only staff know the key | akm psk | A passphrase shared by 140 people is not an identity, and you cannot revoke it for one person |
| Only registered devices can join | mac-filter allow-list | MAC addresses travel in readable headers and can be copied; randomized addresses break the list |
| Guests are protected by the portal | security open, captive-portal | A portal controls who gets in, not whether traffic is encrypted; open frames can be read over the air |
| Guests are kept apart | vlan 10, client-isolation disabled | Guests share the staff VLAN and can reach each other and the clinic's servers |
Exam objectives: 2.6 Given a scenario, use the appropriate wireless security method or configuration. CompTIA groups the methods under encryption (AES, WPA2, WPA3), authentication (TKIP, PSK, PSK enterprise) and guest access (captive portal, Layer 2 client isolation, MAC address filtering).[1] The list has one oddity. It files TKIP under authentication, although TKIP protects data rather than proving who you are. This lesson teaches it as a data-protection protocol, under the exam's name.
How 802.11 security got here: WEP, WPA, WPA2 and WPA3
To judge the line "ciphers tkip aes-ccmp" you need the history, because each name in it repaired the one before. The original Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard protected frames with Wired Equivalent Privacy (WEP). WEP encrypted with RC4 (Rivest Cipher 4), a stream cipher that generates a keystream and combines it with the data. Its common key was only 40 bits long (later products also offered 104-bit keys), and the keys never changed unless someone changed them by hand.[2] It checked integrity with a CRC (cyclic redundancy check), a checksum built to catch accidental errors rather than deliberate changes.[2] The US National Institute of Standards and Technology (NIST) describes WEP as having a number of known security vulnerabilities, and calls its lack of key management services particularly problematic.[2]
Wi-Fi Protected Access (WPA) was the stopgap. NIST describes it as the interim solution between WEP and the ratification of the IEEE 802.11i security amendment.[2] It was an upgrade for WEP-era equipment, and many such devices could move to WPA with a firmware update.[2] WPA brought two things: IEEE 802.1X, the standard for port-based network access control, as a framework for authentication, and the Temporal Key Integrity Protocol (TKIP) for protecting data.[2] TKIP kept WEP's encryption mechanism so that old radios could run it. On top of that it used a 128-bit key, built a new key for every packet, and replaced WEP's checksum with a cryptographic message integrity check (MIC).[2]
IEEE 802.11i, ratified in 2004, defined two protocols that protect data confidentiality and integrity in what it calls a robust security network: TKIP and CCMP.[3] CCMP (Counter Mode with Cipher Block Chaining Message Authentication Code Protocol) is built on the Advanced Encryption Standard (AES). NIST makes the decisive comparison. Of WEP, TKIP and CCMP, only CCMP uses a core algorithm approved under the Federal Information Processing Standards (FIPS), and that algorithm is AES. For this reason NIST requires CCMP for federal WLANs.[3] NIST's legacy-WLAN guide makes the same point from the other direction: TKIP is not FIPS-approved.[2]
Here is how CCMP uses AES. AES is a block cipher: it encrypts 128-bit blocks under a key of 128, 192 or 256 bits. In WPA2, CCMP runs AES with a 128-bit key in CCM mode (counter with CBC-MAC), which does two jobs with one cipher. Counter mode provides confidentiality: AES encrypts a counter that changes for every block, and the result is combined with the data. CBC-MAC (cipher block chaining message authentication code) provides integrity: it runs the data through AES block by block, each step feeding the next, and keeps the final result as a short tag. The tag covers the payload and fields of the frame header, so the receiver detects a changed byte or a changed address. A packet number in every frame lets the receiver throw away replayed frames.
WPA2 and WPA3 are certification programs run by the Wi-Fi Alliance, not ciphers. WPA2 certifies the 802.11i design with CCMP. WPA3, introduced in 2018, keeps AES and adds three things: a new personal-mode handshake, mandatory protection for management frames, and an optional 192-bit enterprise mode that uses GCMP-256 (Galois/Counter Mode Protocol with a 256-bit key).
| Generation | Data protection | Cipher | Personal mode | Enterprise mode | Status |
|---|---|---|---|---|---|
| WEP | WEP | RC4, static 40- or 104-bit key | Static shared key | Not part of the original design | Broken; never deploy |
| WPA | TKIP with MIC | RC4, per-packet keys | PSK | 802.1X | Legacy; remove |
| WPA2 | CCMP | AES, 128-bit key | PSK | 802.1X with EAP | Baseline still widely deployed |
| WPA3 | CCMP (GCMP-256 in 192-bit mode) | AES | SAE | 802.1X with EAP | Current choice |
Worth holding on to: WPA2 and WPA3 are certification programs. AES is the cipher, CCMP is the protocol that applies AES to wireless frames, and TKIP is the legacy protocol built on WEP's machinery. When a question says "WPA2 with AES", it means WPA2 using CCMP.
Fault 1: TKIP and AES on the same SSID
The architect's argument goes like this: "Modern laptops will choose AES, and the old devices can still join with TKIP. Everyone gets the best cipher they support." The first half is true. The conclusion fails because Wi-Fi uses two kinds of keys.
- A pairwise key protects unicast frames between one client and the AP. Each client negotiates its own, so a modern laptop can use CCMP while an old scanner uses TKIP.
- A group key protects broadcast and multicast frames, such as ARP (Address Resolution Protocol) requests and multicast discovery traffic. Every client on the SSID shares it, so it must use a cipher that every client understands.
If the SSID admits even one TKIP client, the group cipher has to be TKIP. Every client's broadcast and multicast traffic then rides on the weaker protocol, including the modern laptops'. You can see this in client detail output. The example below is fictional, and the MAC addresses are made up.
Client 02:00:5e:10:00:21 SSID LAKESIDE-STAFF
Pairwise cipher : CCMP (AES)
Group cipher : TKIP
AKM : PSK
Data rate : 1201 Mbps (802.11ax)
Client 02:00:5e:10:00:47 SSID LAKESIDE-STAFF
Pairwise cipher : TKIP
Group cipher : TKIP
AKM : PSK
Data rate : 54 Mbps (legacy)
The second client shows another cost. IEEE 802.11n and later amendments do not allow their high-throughput data rates with TKIP. A client that uses TKIP therefore falls back to the legacy 802.11a/g rates, which top out at 54 Mbps, and it occupies more airtime for every byte it sends. Leaving WPA (version 1) enabled also lets a client negotiate the weakest option the AP advertises. A secure design advertises only what it intends to allow.
The fix for the staff SSID is CCMP only, under WPA2 or WPA3. The LAKESIDE-DEVICES SSID is a warning sign: "wpa2, ciphers tkip" usually means someone enabled TKIP for one old device. Find that device. The corrected design later in this lesson shows how to handle a device that truly cannot run CCMP without weakening every other client.
Fault 2: one passphrase shared by 140 people
A pre-shared key (PSK) network, which the Wi-Fi Alliance calls Personal mode, is one where every device is configured with the same secret. In WPA2-Personal, the passphrase of 8-63 characters is combined with the SSID in a key-derivation function. The result is a 256-bit pairwise master key, and every device that knows the passphrase derives the same one. When a client associates, the AP starts the four-way handshake, using the PSK to authenticate the client and to derive the traffic encryption keys.[4] In the handshake, the AP and client swap random numbers called nonces, prove to each other that they hold the same master key, and mix the nonces and their MAC addresses into fresh session keys.
Three consequences follow from that mechanism. A defender needs to understand all three.
- The passphrase is the only credential. Anyone who has it can join, and the network cannot tell one holder from another. You cannot revoke access for one person without changing the key on every device.
- A weak passphrase can be guessed offline. In WPA2-Personal, someone who records a handshake can test candidate passphrases against it without ever talking to the AP again. No lockout or rate limit applies, so the only protection is a long, random passphrase.
- Insiders can read each other's traffic. In WPA2-Personal, a person who knows the passphrase and observes another client's handshake has every input needed to derive that client's session keys. The shared secret protects you from outsiders, not from other people who hold the same secret.
Cisco's 2026 guidance on guest wireless states the business risk directly. Even with WPA3-Personal, any leak of a shared key, whether it is handed out, shared between devices or obtained by social engineering, compromises the SSID and can give access to the wider network.[5] NIST records the usual organizational response: most organizations choose EAP (Extensible Authentication Protocol) authentication instead of PSKs, because administering PSKs properly takes so many resources.[3]
Worked example (Lakeside, fictional figures). The 140 staff carry about 280 phones and laptops, and there are 60 shared clinical tablets, for roughly 340 devices that know the passphrase. Suppose 18 staff leave in a year. Each departure leaves two choices. You can accept that a former employee still knows the key. Or you can change the passphrase on all 340 devices, at short notice, without disrupting patient care. In practice, clinics take the first choice 18 times. The design has quietly turned "only staff know the key" into "everyone who has worked here since 2023 knows the key."
Enterprise mode: 802.1X, EAP and RADIUS
Enterprise mode replaces the shared secret with individual authentication. It involves three roles. The supplicant is the client device. The authenticator is the AP or controller, which keeps the client's access closed until authentication succeeds. The authentication server is usually a RADIUS (Remote Authentication Dial-in User Service) server that checks credentials against a directory. They talk using EAP, a framework that carries many different authentication methods. The exchange runs in this order.
- The client associates. The AP allows only EAP traffic from it, so DHCP (Dynamic Host Configuration Protocol), DNS (Domain Name System) and everything else are still blocked.
- The AP relays EAP messages between the client and the RADIUS server.
- The EAP method runs. With EAP-TLS (EAP with Transport Layer Security), both client and server present certificates. With PEAP (Protected EAP), only the server presents a certificate, and the user's password is then checked inside an encrypted tunnel, commonly with MS-CHAPv2 (Microsoft Challenge Handshake Authentication Protocol version 2), a password-based challenge-response method.[3]
- On success, the RADIUS server tells the AP to admit the client and sends it key material that is unique to this client and this session. The reply can also carry policy, such as a VLAN assignment, an access control list (ACL) or a session timeout.
- The AP and client run the same four-way handshake as in Personal mode, but starting from the per-session key instead of a shared passphrase.
Revocation now works one person at a time. Disable the departed nurse's directory account, or revoke her device certificate, and her next authentication fails while every other device carries on. There is a cost. EAP needs an authentication server, and depending on the method it may need a public key infrastructure (PKI).[3] NIST's case study of a federal agency shows the trade-off being made. IT staff proposed PEAP with MS-CHAPv2 because the existing domain controllers could serve as authentication servers. The project manager and security officer wanted client PKI certificates, and the team settled on EAP-TLS, accepting a short delay while the agency's PKI was rolled out.[3]
The most common Enterprise-mode failure is on the client side. If clients are not told which server certificate to trust, a user may accept any certificate a look-alike AP presents. With PEAP, that can hand a password-based credential to an impostor. The defense is to deploy the Wi-Fi profile centrally, naming the trusted certificate authority and the expected server name, rather than letting users click through prompts. NIST advises organizations to standardize, automate and centralize WLAN security configuration as much as practical.[6]
The same staff-SSID decision can come out differently when the inputs change. Run it twice.
| Input | Run 1: Lakeside clinic | Run 2: six-person dental office |
|---|---|---|
| Users and turnover | 140 staff, about 18 leave each year | 6 staff, departures rare |
| Directory | Active Directory domain controllers | None; cloud email only |
| PKI and device management | Internal certificate authority (CA); MDM (Mobile Device Management) on clinic devices | None |
| Cost of revoking one person | 340 devices to re-key under PSK | About 10 devices to re-key |
| Decision | WPA3-Enterprise with EAP-TLS | WPA3-Personal with a long random passphrase, changed whenever anyone leaves |
Lakeside has the infrastructure Enterprise mode needs and a revocation problem that PSK cannot solve, so the answer is 802.1X. The dental office has no server to authenticate against, and re-keying ten devices takes an afternoon, so a well-managed shared password is proportionate. The variable that flipped the result was not "security matters more at the clinic." It was the cost of revocation compared with the cost of running an authentication server.
Worth holding on to: choose Enterprise mode when you need individual identity, individual revocation or per-user policy such as dynamic VLANs. Choose Personal mode when the organization is small, has no directory and can afford to re-key every device when someone leaves.
Reading "PSK enterprise": shared keys, per-device keys and 802.1X
The objective lists "PSK" and "PSK enterprise" as separate bullets, but "PSK enterprise" is not a term defined in IEEE 802.11 or in the Wi-Fi Alliance's programs. It can be read two ways. The first reading is the contrast between the Wi-Fi Alliance's two modes: Personal, where a shared key or password authenticates, and Enterprise, where each user or device authenticates individually through 802.1X. The second reading is a vendor hybrid that gives each device its own pre-shared key, sold under names such as identity PSK or per-device PSK. This lesson treats the first reading as the main one, because the exam's other bullets build on that distinction, and teaches the hybrid here so that you recognize it in a scenario.
Here is how a per-device PSK works. Instead of one passphrase for the whole SSID, the controller or a RADIUS server holds a table that maps each device to its own passphrase, and often to a VLAN. In one common design, when a client associates, the AP sends the client's MAC address to RADIUS in a MAC authentication request. The reply carries that device's passphrase and VLAN, and the AP uses that passphrase in the normal four-way handshake. Some platforms instead store several keys for one SSID and check which one the client's handshake matches. Either way, the client sees an ordinary WPA2-Personal or WPA3-Personal network. That is why the method suits scanners, printers and other devices that cannot run 802.1X.
! Per-device PSK table on a RADIUS server (fictional example)
mac-address device passphrase-ref vlan
02:00:5e:20:00:11 scanner-ward-a-01 key-0117 20
02:00:5e:20:00:12 scanner-ward-a-02 key-0118 20
02:00:5e:20:00:31 label-printer-03 key-0204 21
Revocation now works one device at a time. Delete the row for scanner-ward-a-02, or change its key, and that scanner fails its next handshake while the others carry on. Because each device has its own key, holding one key no longer lets an insider derive other devices' session keys. The weakness sits in the lookup. The MAC address only selects which key to test, and the key still does the proving. But the MAC address is the only thing the network knows about which device is which, so logs, VLAN placement and policy all rest on a value that travels in readable headers and can be copied (Fault 3 explains why). A device that randomizes its MAC address breaks the lookup, so it must use a fixed address on that SSID. And each key is still a passphrase: on WPA2, a weak one can still be guessed offline from a captured handshake, so per-device keys must be long and random too.
| Approach | Credential | What the network knows about who joined | Revoking one | Main weakness | Typical fit |
|---|---|---|---|---|---|
| Shared PSK (WPA2 or WPA3 Personal) | One passphrase on every device | Nothing individual | Re-key every device | Leaks spread to everyone; WPA2 allows offline guessing | Small sites with no directory |
| Per-device PSK (vendor hybrid) | One passphrase per device, held by RADIUS or the controller | A device name tied to a MAC address | Delete that device's entry | Identity rests on a MAC address; no user identity | Devices that cannot run 802.1X |
| 802.1X Enterprise | Certificate or directory credential checked through EAP | A named user or device certificate | Disable the account or revoke the certificate | Needs RADIUS, often a PKI, and correct server-certificate checks on clients | Organizations with a directory and managed devices |
Worth holding on to: if a scenario's devices cannot run 802.1X but each needs a key that can be revoked on its own, per-device PSKs fit. If it needs to know which person connected, only 802.1X gives that.
What WPA3 changes, and what it does not
WPA3-Personal replaces the PSK handshake with Simultaneous Authentication of Equals (SAE). SAE is a password-authenticated key exchange: both sides prove they know the password without sending anything an eavesdropper can use to test guesses later. Every guess has to be a live exchange with the AP, which the AP can slow down or refuse. That closes the offline-guessing weakness from Fault 2. SAE also provides forward secrecy, which means that learning the password later does not let anyone decrypt sessions recorded earlier.
WPA3 also requires Protected Management Frames (PMF, from IEEE 802.11w). Management frames run the connection itself, for example deauthentication messages. In older networks they were unprotected, so a forged deauthentication frame could knock clients offline. With PMF, the client rejects such frames unless they carry valid integrity protection.
WPA3-Enterprise keeps 802.1X and adds the optional 192-bit security mode for high-assurance environments, which uses GCMP-256 instead of 128-bit CCMP. Transition mode lets WPA2 and WPA3 clients share one SSID. Use it while older clients remain, but remember that a WPA2 client on a transition-mode SSID still uses the old PSK handshake and keeps every weakness that comes with it.
What WPA3 does not change is just as testable. A WPA3-Personal password is still a shared secret. Cisco's guidance says shared-key networks, whether WPA2-Personal or WPA3-Personal, should not be treated as secure enough for enterprise use unless the organization actively monitors devices, segments them and rotates the passphrase frequently.[5] SAE makes the password harder to guess. It does not turn the password into an identity.
Fault 3: MAC address filtering as the lock
The draft's allow list holds 140 MAC addresses, and the architect treats it as authentication: only listed devices can associate. The reasoning breaks at the frame header. Every 802.11 frame carries source and destination MAC addresses in its header, and WPA2 and WPA3 do not encrypt that header. CCMP protects the addresses against tampering, so a modified address fails the integrity check, but it does not hide them.[3] Anyone within radio range can therefore observe which addresses are allowed. A device can then be configured to present one of those addresses, because a MAC address is a value the device sends, not something the network can verify.
A second failure comes from the defenders' own side. Modern phone and laptop operating systems can use a randomized, per-network MAC address to protect user privacy. A staff phone may join with a different address than the one on the list, or change it after a reset, and the help desk spends its week updating 140 entries by hand.
MAC filtering still has legitimate uses as long as nobody mistakes it for a lock:
- A deny list that blocks a known misbehaving device quickly while the real fix is arranged.
- An inventory signal: an unknown address on a device SSID is worth investigating.
- MAC authentication bypass for devices that cannot run 802.1X, combined with device profiling and a restrictive VLAN, so that a copied address gains little.
Worth holding on to: MAC address filtering identifies a device only as reliably as the device tells the truth. Treat it as hygiene or an inventory signal. Never let it replace encryption or 802.1X.
Fault 4: an open guest SSID, a captive portal and the staff VLAN
The guest SSID combines two separate mistakes. The worse one is on the wired side: LAKESIDE-GUEST maps to VLAN 10, the same VLAN as staff laptops and the records servers on 192.0.2.0/24. A guest who clicks "accept" is on the clinic's internal network. NIST's WLAN guidance is explicit. Where there is more than one security profile, an organization should have logically separated WLANs for external use, such as guests, and internal use.[6] Devices on one WLAN should not be able to connect to devices on a logically separated WLAN.[6] Even internal WLAN clients should reach only the hosts they need on the wired network, using only the protocols they need.[6] In practice, the guest SSID gets its own VLAN that is routed or tunneled straight to the internet. An ACL at the gateway denies the internal address ranges, and per-client rate limits stop one guest from filling the link.
The second mistake is about what a captive portal does. A captive portal holds a newly associated client in a restricted state. It allows DHCP, DNS and traffic to the portal server, a set of destinations often called a walled garden. Any web request is redirected to a portal page. When the user accepts the terms, enters a voucher code, registers, or is approved by a sponsoring employee, the controller moves the client to the permitted state, usually keyed to its MAC address, for a set session time.
Look at what is missing from that description: encryption. A portal decides who is admitted at the application layer. On an open SSID, every frame before and after login crosses the air unencrypted. The portal page may load over HTTPS (Hypertext Transfer Protocol Secure), but that protects only the portal page. Because the permitted state is usually keyed to a MAC address, portal sessions should also time out, and the guest VLAN should be built on the assumption that admitted clients cannot be trusted.
If you want guest traffic encrypted over the air without publishing a password, use Opportunistic Wireless Encryption (OWE). The Wi-Fi Alliance certifies it as Wi-Fi Enhanced Open, and the Internet Engineering Task Force (IETF) describes it in RFC 8110, a Request for Comments published in 2017. OWE runs a Diffie-Hellman key exchange during association, so each client gets its own encryption keys. In the RFC's words, it provides "encryption of the wireless medium but no authentication."[4] Two limits follow. First, because nobody is authenticated, OWE is open to an active attack in which an adversary impersonates the AP and relays traffic.[4] Second, OWE protects only the radio link, not traffic end to end, so applications still need their own security such as TLS.[4] OWE and a captive portal work well together: OWE provides the encryption and the portal handles terms of use.
| Guest control | What it provides | What it does not provide |
|---|---|---|
| Separate SSID and VLAN with gateway ACLs | Keeps guests off internal networks | Encryption; protection between guests on the same VLAN |
| Captive portal | Terms acceptance, vouchers, sponsorship, registration, logging | Encryption; strong device identity |
| OWE (Enhanced Open) | Per-client encryption over the air with no password | Authentication of the AP or the user |
| Layer 2 client isolation | Blocks guest-to-guest traffic within the SSID | A complete security boundary (see Fault 5) |
Fault 5: guests who can reach each other
Moving guests to their own VLAN protects staff from guests. It does nothing to protect guests from each other. A guest phone and an infected guest laptop on VLAN 30 can still talk directly. That is the job of Layer 2 client isolation. Cisco Meraki's documentation describes it as a feature that prevents wireless clients from communicating with one another, and recommends it for guest and BYOD (Bring Your Own Device) SSIDs.[7]
The mechanism explains its failure modes. In Meraki's bridge-mode implementation, a client may make a DHCP request when it connects. The AP then records the MAC address of the client's default gateway and permits that address in a Layer 2 firewall that blocks all other traffic to and from the client.[7] Two practical consequences follow. A device with a statically assigned Internet Protocol (IP) address never completes DHCP, so it cannot pass meaningful traffic on an isolated SSID.[7] And on Meraki the feature is off by default for bridge-mode SSIDs, so it must be enabled per SSID.[7] Other vendors implement isolation differently, so check your own platform's behavior.
Sometimes isolated guests need one shared resource, such as a printer in a waiting room. Meraki lets an administrator define exception addresses that are allowed to cross the isolation, up to 16 MAC addresses in recent firmware.[7] Keep such exceptions as narrow as the need.
Isolation also has a limit that research published in 2026 put on record. On 26 February 2026, researchers published a paper named AirSnitch that analyzed vendors' client isolation features and showed ways around them.[5] Cisco's review emphasizes that these are insider attacks: the attacker must already be associated and authenticated to the wireless infrastructure.[5] Cisco also found no vulnerability in the wireless encryption methods themselves.[5] The lesson Cisco draws is that client isolation is "a localized feature rather than a comprehensive security boundary."[5] An AP can block frames going directly from one client to another, but traffic sent to the shared gateway may come back toward another client unless the gateway and switches also enforce policy. Cisco names techniques of this kind, such as gateway bouncing and port stealing.[5] Meraki's documentation makes the matching design point: for an isolated client to reach another device, the upstream gateway must allow it, through inter-VLAN routing and ACLs.[7] So the gateway is where policy between clients is really enforced.
The recommended defense is layered: identity-based authentication where possible, plus wired protections including DHCP snooping, Dynamic ARP Inspection, VLAN access control lists and robust segmentation and classification of devices.[5] Logging matters too. Cisco notes that the enterprise test ran with no logging, alarming or management console in use, so alarms such as duplicate-MAC and duplicate-IP detection, which most enterprise equipment can raise, were never seen.[5]
Worth holding on to: VLAN separation keeps guests away from you, and client isolation keeps guests away from each other. Neither works alone, and isolation needs wired-side controls behind it.
The corrected design, and two inputs that flip it
Here is version 1.0 of the design, again fictional, with each fault traced back to a setting.
! Lakeside Orthopedic Clinic: WLAN design v1.0 (fictional example)
wlan LAKESIDE-STAFF
security wpa3-enterprise ! wpa2/wpa3 transition only while old clients remain
ciphers aes-ccmp
akm 802.1x ! EAP-TLS, certificates from the clinic CA
pmf required
radius-server 198.51.100.10 ! returns VLAN 10 for staff, 11 for clinical admins
vlan 10
wlan LAKESIDE-DEVICES
security wpa2-personal
ciphers aes-ccmp
akm psk ! per-device keys from RADIUS where supported
vlan 20 ! ACL: imaging and records servers, required ports only
wlan LAKESIDE-GUEST
security owe-transition ! Enhanced Open plus an open companion SSID for old clients
captive-portal terms-of-use
client-isolation enabled
vlan 30 ! internet only; gateway ACL denies 192.0.2.0/24
The MAC allow list is gone. 802.1X does that job properly for staff, and per-device keys give each clinical device its own revocable credential. Device-level health checks for clinical tablets belong in network access control, which you met in the lesson on configuring network access controls.
Flip 1: a device that cannot run CCMP. Suppose a ward has four label printers that support only WPA with TKIP, and their replacement is budgeted for next year. Re-enabling TKIP on LAKESIDE-DEVICES would drag every device on that SSID back to a TKIP group key, so keep it off. One option is a separate SSID for the printers, mapped to its own VLAN, with an ACL that allows only the print server on the print port, plus monitoring and a dated retirement plan. NIST sets the bar higher for federal systems: legacy equipment that cannot provide CCMP needs auxiliary protection, such as an Internet Protocol Security (IPsec) virtual private network (VPN) using FIPS-approved algorithms.[3] Each extra SSID also adds beacon overhead on every AP that broadcasts it, which is one more reason to retire the printers on schedule.
Flip 2: guests who must reach a shared device. Change the site to a hotel where guests cast video to the television in their room. Client isolation, the right default for a cafe, now breaks a service guests are paying for. Turning isolation off for everyone is the wrong fix. Better fixes are a narrow exception for the specific devices or discovery service, or a design that puts each room's guest and television in their own segment. The question to ask is always which traffic between clients is actually required, and how narrowly you can allow it.
Exam cues for wireless security scenarios
| Words in the question stem | Points to | Commonly confused with |
|---|---|---|
| FIPS-approved, strongest WPA2 cipher, "WPA2 with AES" | AES-CCMP | TKIP, which has a 128-bit key but is not FIPS-approved |
| Legacy device supports only WPA, interim protocol, per-packet keys on RC4 | TKIP: recognize it, then isolate or retire the device | Enabling TKIP alongside AES on the main SSID |
| Revoke one user, individual accountability, dynamic VLAN, existing directory | Enterprise mode: 802.1X, EAP, RADIUS | A longer or more frequently rotated PSK |
| Devices cannot run 802.1X, but each needs its own revocable key | Per-device PSK assigned through RADIUS | One shared PSK, or a MAC allow list |
| Small office, no server, simple setup | WPA3-Personal (SAE) with a strong passphrase | Enterprise mode with no authentication server to run it |
| Resist offline password guessing, forward secrecy | WPA3-Personal with SAE | WPA2-Personal with a complex passphrase |
| Accept terms of use, voucher, sponsor approval | Captive portal | OWE, which encrypts but shows no terms |
| Encrypt guest traffic with no password | OWE (Wi-Fi Enhanced Open) | Captive portal, which admits but does not encrypt |
| Guests must not see each other's devices | Layer 2 client isolation | VLAN separation, which separates guests from staff |
| Keep guests away from internal servers | Separate SSID and VLAN with gateway ACLs | Client isolation alone |
| Allow only known hardware addresses | MAC address filtering, a weak control | Authentication, which MAC filtering is not |
Common misconceptions
- "Mixed TKIP and AES gives every client its best cipher." Each client's unicast traffic can use its best cipher, but the shared group key falls to TKIP, so broadcast and multicast traffic for every client uses the weaker protocol.
- "A captive portal secures an open guest network." A portal controls admission. Frames on an open SSID stay unencrypted unless the SSID uses OWE or WPA2/WPA3.
- "MAC filtering keeps outsiders off the network." MAC addresses travel in readable frame headers and can be copied. Address randomization also breaks allow lists for legitimate users.
- "WPA3-Personal is as good as Enterprise." SAE defeats offline guessing, but the password is still shared by everyone, so there is no individual identity and no individual revocation.
- "Client isolation is a security boundary." It is a local AP feature. Authenticated insiders can work around it unless the gateway and switches also enforce segmentation, DHCP snooping and ARP inspection.
- "TKIP's 128-bit key makes it as strong as AES." TKIP keeps WEP's encryption mechanism, is not FIPS-approved, and blocks the high-throughput rates of 802.11n and later.
Where this leaves us
- AES is the cipher. CCMP is the 802.11i protocol that uses AES for confidentiality and integrity. WPA2 and WPA3 are Wi-Fi Alliance certification programs built on CCMP.
- Of WEP, TKIP and CCMP, only CCMP uses a FIPS-approved algorithm. TKIP was WPA's interim fix, built on WEP's mechanism with per-packet keys and a MIC.
- An SSID that allows both TKIP and AES must use TKIP for its group key, and TKIP clients lose 802.11n and later high-throughput rates.
- In WPA2-Personal, everyone who knows the passphrase can join. A captured handshake allows offline guessing, and one person cannot be revoked without re-keying every device.
- Enterprise mode uses 802.1X with EAP to a RADIUS server, produces unique per-session keys, allows one user to be revoked and can return per-user VLANs. It needs an authentication server and possibly a PKI.
- Per-device PSKs let one device be revoked without 802.1X, but the key lookup is usually indexed by a MAC address, which can be copied or randomized, and gives no user identity.
- WPA3-Personal's SAE stops offline guessing and adds forward secrecy, and WPA3 requires Protected Management Frames. A WPA3-Personal password is still a shared secret.
- A captive portal controls admission but does not encrypt. OWE encrypts the radio link without authenticating anyone. The two can be combined.
- Guests need a separate SSID and VLAN to keep them from internal hosts, and Layer 2 client isolation to keep them from each other, backed by wired controls such as DHCP snooping and Dynamic ARP Inspection. MAC filtering is hygiene, not authentication.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Karen Scarfone, Derrick Dicoi, Matthew Sexton, Cyrus Tibbs. (2008). Guide to Securing Legacy IEEE 802.11 Wireless Networks, SP 800-48 Rev. 1. NIST. nvlpubs.nist.gov
- Sheila Frankel, Bernard Eydt, Les Owens, Karen Scarfone. (2007). Establishing Wireless Robust Security Networks: A Guide to IEEE 802.11i, SP 800-97. NIST. nvlpubs.nist.gov
- D. Harkins, W. Kumari. (2017). RFC 8110: Opportunistic Wireless Encryption. IETF (RFC Editor). rfc-editor.org
- Cisco. (n.d.). Review and Recommendations for Guest Wireless Access (Catalyst 9800). cisco.com
- Murugiah Souppaya, Karen Scarfone. (2012). Guidelines for Securing Wireless Local Area Networks (WLANs), SP 800-153. NIST. nvlpubs.nist.gov
- Cisco Meraki Documentation. (n.d.). Wireless Client Isolation. documentation.meraki.com
- Key terms
- Advanced Encryption Standard (AES)
- A block cipher approved under the Federal Information Processing Standards (FIPS) that encrypts 128-bit blocks under 128-, 192- or 256-bit keys. In Wi-Fi, CCMP uses it to protect frames under WPA2 and WPA3.
- CCMP
- Counter Mode with Cipher Block Chaining Message Authentication Code Protocol: the IEEE 802.11i data-protection protocol that uses AES in counter mode for confidentiality and a chained AES integrity tag (CBC-MAC) for integrity, with packet numbers that block replayed frames.
- Temporal Key Integrity Protocol (TKIP)
- The interim WPA data-protection protocol. It reuses the RC4-based mechanism of Wired Equivalent Privacy (WEP) but adds a 128-bit key, per-packet keys and a message integrity check. It is not FIPS-approved, and 802.11n and later do not allow their high-throughput rates with it.
- WPA2
- Wi-Fi Protected Access 2: the Wi-Fi Alliance certification for the IEEE 802.11i security design, using AES-CCMP, with Personal (pre-shared key) and Enterprise (802.1X) modes.
- WPA3
- Wi-Fi Protected Access 3: the Wi-Fi Alliance successor to WPA2. It uses Simultaneous Authentication of Equals (SAE) in Personal mode, requires Protected Management Frames, and offers an optional 192-bit Enterprise mode.
- Pre-shared key (PSK)
- A Wi-Fi Personal-mode credential that every device shares. A passphrase plus the SSID derive one master key, so the network cannot tell users apart or revoke a single user. Vendor per-device PSK features give each device its own key instead.
- Enterprise mode (802.1X)
- Wi-Fi authentication in which each user or device proves its identity through the Extensible Authentication Protocol (EAP) to an authentication server such as a Remote Authentication Dial-in User Service (RADIUS) server. Each client gets unique session keys, and one user can be revoked individually.
- Captive portal
- A gateway function that holds a new client in a restricted state and redirects its web requests to a page for terms, vouchers, registration or sponsor approval before allowing wider access. It does not encrypt traffic.
- Layer 2 client isolation
- An access point or controller feature that blocks wireless clients on the same SSID or VLAN from sending traffic directly to each other, normally allowing only the default gateway. It is a local feature, not a complete security boundary.
- MAC address filtering
- Allowing or denying wireless clients by Media Access Control (hardware) address. Addresses appear in unencrypted frame headers and can be copied or randomized, so it does not count as authentication.
Hardening Network Appliances
- Apply the objective 2.7 hardening techniques to a network appliance in a working order, from default credentials and patching to log management.
- Choose a patch delivery channel, and verify a software image's integrity and origin before installation and its effect after.
- Replace or disable insecure management protocols, and restrict administrative interfaces to designated hosts, networks and identities.
- Adapt the procedure when a device cannot meet the baseline, using compensating controls, a documented exception and a replacement date.
A switch that arrives already talking
In August 2020, the National Security Agency (NSA) published a guide called Hardening Network Devices. One of its plainest sentences describes every box you have ever unpacked: routers and switches come from the manufacturer with services already turned on.[1] Those services are why a weakly configured switch makes a good foothold for an attacker. Endpoint security tools watch laptops and servers, not the network gear between them.
This lesson walks one fictional device through a complete hardening procedure. The device is br-sw01, a 24-port Layer 3 access switch going to a branch office of example.com. Twelve of its ports will be cabled on day one. Before anyone configures it, an engineer connects it to an isolated bench network and writes down what it does straight out of the box.
br-sw01 first-boot audit (fictional example, simplified)
Software image ........ 17.3.1 (vendor current: 17.9.4; security advisory open for 17.3.x)
Local accounts ........ admin (factory default, full privilege)
Management listeners .. telnet tcp/23, ssh v1 and v2 tcp/22, http tcp/80, https tcp/443
Web certificate ....... self-signed, generated at first boot
Other listeners ....... snmp v2c udp/161 (community: public), smart install tcp/4786
Discovery protocols ... CDP and LLDP sending on all 24 ports
Physical ports ........ 24 enabled, 12 will be cabled; console and USB enabled
Management reachable .. from every VLAN, any source address
Logging ............... 4 KB local buffer, no remote destination, clock not synchronized
Some names in the audit need defining. Telnet and Secure Shell (SSH) are protocols for reaching a device's command line remotely. In tcp/23, tcp means Transmission Control Protocol (TCP) and 23 is the port number; udp/161 is User Datagram Protocol (UDP) port 161. SNMP v2c is version 2c of the Simple Network Management Protocol (SNMP), which monitoring systems use to read a device's counters. Smart Install is a Cisco deployment feature. Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) advertise a device's identity to its directly connected neighbors. A virtual local area network (VLAN) is a separate Layer 2 network carried on the same switch.
Every line of that audit maps to a technique in the exam objective. Appliance hardening means reducing the ways a network device can be misused. That means fewer running features, no published passwords, secure protocol versions only, management reachable from as few places as possible, and a trustworthy record of what happens. "Appliance" covers anything with a management plane. That is the part of a device that administrators and tools talk to: the command-line interface (CLI), the web interface, the application programming interface (API) and SNMP. The data plane, by contrast, forwards users' traffic. Switches, routers, next-generation firewalls (NGFWs), wireless controllers and load balancers all count as appliances, and so do their virtual versions running in a cloud provider.
Exam objectives: CompTIA CloudNetX CNX-001 objective 2.7, "Given a scenario, implement the appropriate appliance-hardening technique."[2] The objective lists patch management (delivery channels and verification), default credential management, disabling unneeded services, local password management (password complexity, length and rotation), protocol configuration (disabling insecure protocols), restricting access to administrative interfaces, disabling unused physical ports, and log management (log rotation and remote logging).
The procedure below takes the bullets in a working order. The order is a judgment, not a standard, but each position has a reason.
| Step | Objective bullet | Question the step answers | br-sw01 finding |
|---|---|---|---|
| 0 | (Supports every step) | What is this device, and where does its approved configuration live? | Not yet in the inventory |
| 1 | Default credential management | Can anyone log in with a password printed in a manual? | Factory admin account; SNMP community public; self-signed certificate |
| 2 | Patch management | Is the software free of known flaws, and did the update arrive intact? | 17.3.1 with an open advisory |
| 3 | Local password management | When central login fails, how strong and how controlled is the fallback? | No policy at all |
| 4 | Disabling unneeded services | What is running that nobody needs? | Web server, Smart Install, discovery on every port |
| 5 | Protocol configuration | For the functions we keep, are we using the secure version? | Telnet, SSH version 1, SNMPv2c |
| 6 | Restricting access to administrative interfaces | Who can reach the management plane, and from where? | Anyone on any VLAN |
| 7 | Disabling unused physical ports | Can a stranger plug in and get a link? | 12 live ports with nothing attached |
| 8 | Log management | Will there be a complete, trustworthy record when it matters? | 4 KB buffer, nothing sent off the box, wrong clock |
| 9 | (Verification of the whole) | Did each change actually take effect? | Tested from two vantage points |
Default credentials come first because a factory password works the moment the device is on any network, even a bench network. Patching comes next because a flawed image can undermine every setting layered on top of it. Many teams also turn on remote logging early so that the hardening work itself leaves a record. That is a sensible variation.
The core of it: every scenario in this objective describes one of these findings. Name the finding and the technique follows. A known password calls for default credential management. An unused feature calls for disabling a service. A cleartext version of a needed feature calls for protocol configuration.
Before the first command: inventory and a known-good baseline
Hardening starts with knowing what you own. The National Institute of Standards and Technology (NIST) Special Publication (SP) 800-40 Revision 4, the 2022 guide to enterprise patch management planning, warns that an inventory goes out of date quickly without constant updates, and then feeds patching inaccurate, incomplete information.[3] For br-sw01, that means a record in the configuration management database (CMDB) before the switch leaves the bench. The record holds the model, serial number, software version, location, owner and management address.
The second piece is deciding where the approved configuration lives. The Cybersecurity and Infrastructure Security Agency (CISA) advises storing configurations centrally and pushing them to devices, so that a device is never the trusted source of truth for its own configuration.[4] That changes what hardening means. The hardened configuration is a reviewed, versioned file in a repository, and the switch runs a copy of it. If the two ever differ, the device is wrong. Lesson 21, on automating a hybrid cloud network, develops this idea as infrastructure as code (IaC).
Configuration backups need the same care as the device itself. They contain password hashes, shared keys and a map of the network. Never send them by email or the File Transfer Protocol (FTP), and never publish them where outsiders can read them. Store them encrypted, with access limited to the people who restore devices.
Step 1: Default credential management
A default credential is any login secret the manufacturer set before you received the device. The obvious one is the admin account with its documented password. Others are easy to miss: an SNMP community string such as public, a default web login, a factory API key, and the self-signed certificate the device generated for its web interface. NIST SP 800-123, the 2008 guide to general server security, states the problem in one line: default account names and passwords are commonly known to attackers.[5] Manuals are public, and so are the lists compiled from them.
Default credential management has three moves, in this order of preference:
- Remove the default accounts you do not need.
- Disable the ones you cannot remove.
- Change the ones you must keep. Give each a new password that meets your policy and, where the platform allows, rename the administrator account.
The rule covers every management door, not only the operating system's login. On an appliance that includes the web interface, the API and SNMP, each of which may carry its own factory secret.
The responsibility is also shifting toward vendors. On 15 December 2023, CISA published a Secure by Design alert urging technology manufacturers to proactively eliminate the risk of default password exploitation.[6] Some newer devices now force you to set a password at first login, or ship with a unique password printed on each unit. That helps, but it does not remove your job, and exam scenarios usually involve a device that still has a factory login.
Certificates are credentials too. A self-signed certificate trains administrators to click through browser warnings, and that habit is exactly what an interception attack relies on. Replace it with a certificate issued by your organization's public key infrastructure (PKI), the system of certificate authorities your devices and browsers already trust.
Defaults also come back. A factory reset restores them. A replacement unit shipped under a Return Merchandise Authorization (RMA) arrives with them. A virtual firewall launched from a marketplace image may start with a documented initial login. So default credential management is a recurring check, not a one-time task at installation. A common form is a scheduled authenticated scan that tries the vendor defaults against every management address.
For br-sw01, the engineer creates a named emergency account, deletes admin, removes the public community (Step 5 replaces the old SNMP versions entirely) and installs a certificate issued by the company's internal certificate authority for the name br-sw01.mgmt.example.com.
Step 2: Patch management, from delivery channel to verification
Patch management is the repeatable process of learning that an update exists, obtaining it, testing it, installing it and confirming that it worked. On an appliance, a patch is usually a complete new software image from the vendor (often called firmware on smaller devices). Sometimes it is a small hotfix. On security appliances there is also a steady stream of content updates, such as intrusion prevention system (IPS) signatures.
NIST's sample patching plan has a group for the on-premises data center, and that group explicitly includes network equipment.[3] For it, non-emergency patching must fit scheduled outage windows.[3] Reloading a core switch is an outage. That one fact explains much of appliance patching: it happens inside change windows, it needs a rollback plan, and redundant pairs (Lesson 5) are what let you patch one member while the other carries traffic.
The objective names two sub-bullets. Delivery channels concern how the update reaches the device. Verification concerns proving that the update is genuine and that it took effect.
A delivery channel is the path an update travels from the vendor to the device. Each channel has a different trust point: the place where a person or a system checks the update before it runs.
| Channel | How the update travels | Where it fits | What can go wrong | Where you verify |
|---|---|---|---|---|
| Vendor support portal (manual) | Engineer downloads the image over Hypertext Transfer Protocol Secure (HTTPS) from the vendor's authenticated portal, stages it on an internal server, then copies it to the device | Core routers, data center switches, small fleets, change-controlled upgrades | Slow and error-prone; a lookalike download site; an insecure copy on the last hop | On the staging server, before copying: digest and signature |
| Central management platform | A firewall manager, wireless LAN controller or software-defined wide area network (SD-WAN) orchestrator holds the image and pushes it to managed devices in waves | Fleets: hundreds of branch firewalls, access points or SD-WAN edges | A compromised or misconfigured manager reaches every device at once | On the manager when the image is imported; then each device's reported version |
| Vendor cloud feed (automatic) | The device pulls updates from the vendor's service on a schedule | Content updates such as IPS signatures, application and URL databases; firmware for some cloud-managed devices | A bad update changes behavior everywhere at once; the device needs outbound internet access | Device checks signatures; you watch for new blocks or traffic drops after each update |
| Zero touch provisioning | A new device boots, finds a provisioning server and downloads an image and configuration with no one at the keyboard | First deployment at sites with no engineer present | Left enabled, software can keep arriving without a human decision | On the provisioning server; then disable the feature after deployment |
| Removable media or console | Image carried on a USB drive, or transferred over the console or an out-of-band link | Isolated networks; recovery when the device cannot reach the network | Tampered media; a lost chain of custody | Compute the digest of the file on the media before installing |
Two rows deserve a comment. Zero touch provisioning (ZTP) lets network devices reach out and download firmware and configuration without any user interaction.[1] That is what makes it convenient at a branch with no engineer, and it is also why it belongs on the list of services to review: once deployment is over, a path that installs software without a human decision should be closed. The second is the insecure copy. The Trivial File Transfer Protocol (TFTP) has no authentication or encryption, and FTP sends credentials in cleartext, so an image staged correctly can still be swapped in transit. Use Secure Copy Protocol (SCP), SSH File Transfer Protocol (SFTP) or HTTPS for the last hop.
Notice also that a firewall has at least two patch streams. Its operating system image might change quarterly, inside a change window, with a reload. Its IPS signatures and application databases might change daily from the vendor's cloud feed, with no reload. Both are patch management, but they use different channels and different checks. A scenario that says "signatures" is not asking about the same process as one that says "firmware".
Verification before installation answers two questions. Is this exactly the file the vendor published (integrity)? Did it really come from the vendor (authenticity)? A cryptographic hash answers the first. A hash function such as SHA-256 (Secure Hash Algorithm, 256-bit output) turns a file of any size into a short, fixed-length fingerprint called a digest. Change one bit of the file and the digest changes completely, so a matching digest means you hold the file that produced the published value. If hashing and signatures need a refresher, the Atlas Security+ course covers them. Here is the check for br-sw01's new image:
staging$ sha256sum br-sw-17.9.4.bin
3f9a0c41...d07e21b9 br-sw-17.9.4.bin
Vendor download page, release 17.9.4:
SHA-256 3f9a0c41...d07e21b9
(fictional values, shortened for display; a real SHA-256 digest is
64 hexadecimal characters, and all 64 are compared)
The reasoning runs in three steps. First, the engineer computes the digest locally, on the staging server, because the point is to fingerprint the file actually in hand. Second, the engineer compares every character with the vendor's published value; checking only the first or last few characters is a shortcut an attacker can exploit. Third, the full values match, so the file is intact and may be copied to br-sw01 over SCP.
Now change one input. Suppose the computed digest ends in ...a4c39f02 instead. The decision flips completely. Do not install it, and do not "just try it in the lab", because a lab device running a tampered image is a compromised device. Delete the file, download it again from the vendor portal and recompute. A mismatch can mean an incomplete download, the wrong file for this model or release, or tampering, and the digest alone cannot tell you which. If a fresh download still does not match, open a case with the vendor and treat it as a possible security incident.
A hash has one weakness: it is only as trustworthy as the page you compare it with. Someone able to replace the file on a mirror might replace the listed digest too. A digital signature closes that gap. The vendor signs the image with its private key, and your tooling or the device checks the signature with the vendor's public key, which you obtained separately and in advance. A valid signature proves both integrity and origin. Many current platforms check image signatures at boot and refuse unsigned images; treat that as the last check, not the only one. Where a vendor offers both MD5 (Message Digest 5) and SHA-256 digests, use SHA-256 or SHA-512, because practical MD5 collisions, two different files with the same digest, have been demonstrated.
Verification after installation confirms the result. A complete check has four parts.
- Version. The device reports the intended release, and the members of a redundant pair match each other.
- Configuration. The running configuration still matches the repository copy. Upgrades can change defaults or translate old commands, so compare rather than assume.
- Function. Routing neighbors are up, VLANs pass traffic, and management, logging and authentication still work.
- Scanner agreement. The vulnerability scanner no longer reports the advisory. NIST notes that a scanner needs sufficient access to an asset, meaning authenticated scanning, to detect changes to its software.[3] An unauthenticated scan that reads only a login banner can report the wrong version in either direction.
Verification continues after the change window closes. A switch restored from an old image after a hardware fault, or a colleague who rolls back an upgrade to cure an unrelated problem, quietly reopens the advisory you closed. Keep checking reported versions against the inventory, and run every one of these steps under a change ticket so the history is visible.
The core of it: pick the delivery channel that fits the fleet and moves the update securely. Verify the image's digest and signature before it touches a device. Afterward, verify the outcome: the intended version, an unchanged configuration, working functions, an authenticated scan that agrees, and nobody quietly rolling it back.
Step 3: Local password management: complexity, length and rotation
On a well-run network, engineers do not log in to appliances with local accounts day to day. They authenticate against a central authentication, authorization, and accounting (AAA) server, usually over Terminal Access Controller Access Control System Plus (TACACS+), which can also authorize each command and record it. Remote Authentication Dial-in User Services (RADIUS) can do the login job with less per-command control. CISA's 2024 guidance for communications infrastructure states the local-account rule directly: use local accounts only for emergencies, change their passwords after each use, and confirm that each use was authorized and expected.[4]
CISA adds a design point that is easy to miss: the AAA server should not be linked to the primary corporate identity store.[4] The reason is containment. An attacker who takes over corporate identity should not also inherit the network. The everyday AAA path should also require phishing-resistant multifactor authentication (MFA), such as a hardware security key.
That makes the local account a break-glass account: the way in when the AAA servers cannot be reached, which is exactly when the network is already in trouble. The line aaa authentication login default group tacacs+ local expresses the design. The device tries TACACS+ first and falls back to its local database only if no TACACS+ server responds. A TACACS+ server that responds with a rejection does not trigger the fallback. That is what you want: a password refused centrally must not get a second chance locally.
Storage matters as much as strength. Use the strongest password storage format the equipment supports. On Cisco-style platforms that is a real choice. The old type 7 format, which the global command service password-encryption applies, is a reversible encoding that free tools undo instantly; it only hides passwords from someone looking over your shoulder. Type 8 uses PBKDF2 (Password-Based Key Derivation Function 2), which runs a hash many thousands of times over the password. Type 9 uses scrypt, a function designed to need a lot of memory as well as time. Both add a salt, a random value stored with each hash so that two identical passwords produce different hashes. The point of all three properties is to make guessing slow even for someone holding the hash. Configuration backups end up in repositories and tickets, so assume someone will eventually read one, and store passwords in a form that survives being read.
Now the three sub-bullets. The NSA's network device guide points administrators to NIST SP 800-63B, the Digital Identity Guidelines volume on authentication, for password policy. That standard's text is not reproduced in this course's sources, so the table summarizes its general direction rather than quoting it; check the current revision before you rely on a specific number from it. Its direction differs from the policies many appliances still ship with, and the exam uses the older vocabulary, so you need both.
| Sub-bullet | What it controls | Traditional appliance policy | General direction of NIST SP 800-63B (summarized) | Practice for a break-glass account |
|---|---|---|---|---|
| Password complexity | Which character types are required | Uppercase, lowercase, digit and symbol all required | Moves away from composition rules and toward screening new passwords against lists of common and compromised values | Randomly generated, so strength comes from randomness rather than rules |
| Password length | Minimum and maximum number of characters | Minimum of 8 | Treats length as the main source of strength and favors allowing long passphrases | A long random string, well above the device minimum |
| Password rotation | When a password must change | Expire every 60 or 90 days | Moves away from forced periodic change and toward changing on evidence of compromise | Change after every use, after any holder leaves, and on any suspicion |
You do not need the standard to see why length beats complexity. Count the possibilities, assuming each character is chosen at random. A password of 8 characters drawn from the 94 printable keyboard characters has 948, about 6.1 × 1015, possible values. A password of 12 lowercase letters has 2612, about 9.5 × 1016. That is roughly 16 times more, from a far smaller alphabet. Each added character multiplies the total by the alphabet size, while adding a character class enlarges the alphabet only once. A 16-character random password from 94 characters reaches about 3.7 × 1031 values.
Human behavior widens the gap. Composition rules produce predictable shapes, such as a capital first letter with "1!" at the end. Calendar expiry produces predictable successors, such as Spring2026! becoming Summer2026!. Password-guessing tools try those patterns first, so a rule that looks strong on paper often adds little real strength. Rotation still has a job: a password should change when there is a reason, such as each use of a break-glass account, a holder leaving, or a suspected leak.
How should you answer exam items that name these sub-bullets? Read what the stem asks. If it says the organization's policy requires 14-character passwords with 90-day rotation, implementing that policy on the appliance is the task; most appliances have settings for minimum length, character classes and lockout. If the stem asks which change best improves security, length and screening beat composition rules, and rotation tied to events beats rotation tied to the calendar.
For br-sw01, the result is one local account, brk-glass. Its password is long and random, generated by the privileged access management (PAM) vault from Lesson 15 and stored with scrypt. It is checked out only during AAA outages, and the vault changes it after every checkout. The same event-driven rule covers the device's other shared secrets. The TACACS+ key, the SNMPv3 keys and the Network Time Protocol (NTP) key all change when someone who knew them leaves, and whenever compromise is suspected.
Step 4: Disabling unneeded services
For hardening purposes, a service is any feature that listens for, answers or sends traffic on the device's own behalf: a web server, a discovery protocol, a provisioning agent. The NSA's reasoning is short: a disabled service cannot be exploited, so every unnecessary service should be disabled.[1] Each vendor enables a different set by default, and defaults change between software releases, so the first-boot audit tells you what is running, not memory.
br-sw01's twelve cabled ports split into two groups: ports 1-10 connect IP phones and wireless access points, and ports 11-12 are uplinks to the branch router and firewall. That split decides the LLDP row below.
| Service | What it does | Why it is a risk when nobody needs it | Decision for br-sw01 |
|---|---|---|---|
| Web server (Hypertext Transfer Protocol (HTTP) and HTTPS) | Browser-based management | A second login surface with its own software flaws | Disable both; SSH and the controller API cover management |
| Cisco Smart Install | A Cisco zero-touch deployment feature for switches, listening on TCP 4786 | An unauthenticated management function | Disable |
| Zero touch provisioning | Fetches an image and configuration at boot | Software can arrive without a human decision | Disable once deployment is complete; the command or setting differs by vendor and release |
| CDP and LLDP | Advertise the device's identity to neighbors | Free reconnaissance for anyone listening on a port | Disable CDP; keep LLDP only on ports 1-10, where phones and access points use it to learn voice VLAN and power settings; turn it off on the uplinks and unused ports |
| Internet Protocol (IP) source routing | Lets the sender choose the path a packet takes | Can steer traffic around filtering points | Disable |
| Internet Control Message Protocol (ICMP) unreachables and mask replies | Error and information messages | Help an outsider map the network's topology | Disable or rate-limit on untrusted interfaces, remembering that some ICMP is needed for path maximum transmission unit (MTU) discovery |
| Unused routing protocols, proxy Address Resolution Protocol (ARP), directed broadcast | Features for designs this switch does not use | Behavior that nobody is watching | Disable |
Two rows have sources worth knowing. CISA names Cisco Smart Install as an example of an unauthenticated management function to disable.[4] The NSA's 2022 infrastructure guide explains what discovery protocols give away: an adversary with a sniffer on the network can collect device model numbers, operating system versions, VLAN information and addresses.[7] SNMP is missing from the table on purpose. br-sw01 needs monitoring, so SNMP is a protocol question for Step 5, not a service to drop.
Should you disable a service or remove it? NIST SP 800-123 prefers removal.[5] Its reasoning has two parts. An attack that tries to switch a disabled service back on cannot succeed when the component is not there, and a disabled service can also be re-enabled through simple human error. On most appliances you cannot remove code from the vendor's image, so the compensating control is detection. With the repository as the source of truth, alert on any unauthorized change, including a weak protocol or service that has been turned back on. A no vstack line that vanishes from the running configuration then becomes an alert, not a surprise.
Step 5: Protocol configuration and disabling insecure protocols
Step 4 asked whether anyone needs a function. Step 5 starts where the answer is yes and asks which version of the protocol should carry it. An insecure protocol, in this objective, is one that sends credentials or data in cleartext, authenticates weakly or not at all, or can be negotiated down to such a mode. The cost of cleartext management is concrete: anyone on the path with an ordinary packet capture tool can read usernames, passwords and configuration.
The table covers management protocols and also protocols that run between devices: NTP for time, and the routing protocols Open Shortest Path First (OSPF), used inside an organization, and Border Gateway Protocol (BGP), used between networks. Protocols between devices need protecting as much as protocols used by administrators.
| Function | Insecure protocol (port) | What is wrong with it | Secure replacement (port) |
|---|---|---|---|
| Command-line management | Telnet (TCP 23) | Credentials and commands in cleartext | SSH version 2 (TCP 22) |
| Older remote shell | SSH version 1 | Obsolete protocol with known design weaknesses | SSH version 2 only |
| Web management | HTTP (TCP 80); Transport Layer Security (TLS) below version 1.2 | Cleartext, or outdated encryption | HTTPS with TLS 1.2 or later (TCP 443) |
| File transfer (images, backups) | FTP (TCP 20 and 21), TFTP (UDP 69) | Cleartext; TFTP has no authentication at all | SCP or SFTP (over SSH, TCP 22), or HTTPS |
| Monitoring | SNMPv1 and SNMPv2c (UDP 161; traps on UDP 162) | Community string sent in cleartext with every request | SNMPv3 with authentication and privacy (authPriv) |
| Logging | Syslog over UDP 514 | No encryption, no delivery assurance | Syslog over TLS (TCP 6514) |
| Time | Unauthenticated NTP (UDP 123) | Anyone on the path can supply a false time | Authenticated NTP |
| Routing | OSPF or BGP without authentication | A rogue neighbor can inject routes | Authenticated adjacencies and sessions |
The SSH and TLS rows carry the exam's version numbers. The NSA names SSH version 2 as the preferred way to reach devices remotely.[7] It also says encrypted web servers should accept only TLS 1.2 or higher.[7] Turning on the new version is not enough. The NSA warns that protocols such as SSH can be configured to stay backward compatible, accepting older insecure versions alongside the new ones.[7] A server that accepts both lets someone in the path push the negotiation down to the weaker version. CISA's 2024 guidance therefore says to disable SSH version 1 outright.[4] For the SSH host key, it sets a floor of a 3072-bit RSA key (RSA is the public-key algorithm named after Rivest, Shamir and Adleman).[4] Disabling the old version is the hardening step. Enabling the new one is only half of it.
SNMP gets its own treatment because its weak versions are so common. SNMPv1 and SNMPv2c authenticate with a community string, a shared word sent in cleartext with every request, and the factory values public and private are as well known as admin/admin. SNMPv3 adds per-user authentication and, at the authPriv security level, encryption. The NSA's advice is to run SNMP only if it is needed, only as SNMPv3 with a Management Information Base (MIB) allow list, and with no community strings.[1] The MIB is the structured set of values a device exposes. An allow list, called a view on many platforms, limits a poller to the branches it needs, such as interface counters, so a stolen SNMP credential cannot read everything.
The device-to-device rows follow the same logic. An unauthenticated OSPF adjacency accepts routes from any device that speaks OSPF on the segment. An unauthenticated time source can shift the clock that every log timestamp and certificate check depends on. Turn on authentication wherever the protocol supports it.
The core of it: if nobody needs the function, disable the service. If someone does, keep the function, force the secure version, and switch off the old version so nothing can negotiate down to it.
Step 6: Restricting access to administrative interfaces
An administrative interface is any door into the management plane: the SSH and console lines, the web interface, the API and SNMP. Restricting access means controlling who can reach those doors, from which networks, over which protocols and for how long. No single control does all of that, so the controls stack in layers.
The strongest layer is the path. Out-of-band management (OOB) means managing devices over a network separate from the one carrying user traffic. CISA's guidance is to use an OOB management network that is physically separate from the operational data network, and to accept device management only from it.[4] A good OOB design also blocks management connections from one device to another across that network. If an intruder compromises one switch, its management port should not be a stepping stone to every other switch. Lesson 19, on continuity, recovery and out-of-band management, covers OOB design in depth.
The next layer is the source. The NSA recommends access control lists (ACLs) that allow only administrator systems to connect for remote management.[7] That is far easier when administrators work from a few jump hosts with fixed addresses than from laptops whose addresses come from the Dynamic Host Configuration Protocol (DHCP). Every ACL ends with an implied deny, but write the final deny explicitly with the log keyword so that denied attempts are recorded. Those log lines are often the first sign that someone is probing the management plane.
Look at the entry permit 192.0.2.8 0.0.0.7 log in br-sw01's management ACL. The second number is a wildcard mask, the inverse of a subnet mask: a 0 bit must match and a 1 bit is ignored. The mask 0.0.0.7 ignores the last three bits, so the entry matches the eight addresses 192.0.2.8 through 192.0.2.15. That /29 holds the two jump hosts, 192.0.2.10 and 192.0.2.11. Every other source falls through to deny any log.
Know where that ACL acts. On IOS-style devices, an ACL applied to the virtual terminal (vty) lines with access-class typically decides who may log in after the TCP connection has been accepted. It refuses the session; it does not hide the port. If policy says the management port must be invisible from user VLANs, add a second filter that drops packets before they reach the management process, such as an inbound ACL on the user VLAN interface or control-plane filtering. The verification pass below shows what each choice looks like from a scanner.
| Layer | Question | Control | br-sw01 setting |
|---|---|---|---|
| Path | Over which network does management travel? | OOB network or dedicated management VLAN | Management address 192.0.2.2 on the OOB network |
| Source | Which hosts may connect? | Management ACL on the lines, web, SNMP and API | Jump hosts in 192.0.2.8/29 only; everything else refused and logged |
| Protocol | How is the session protected? | SSH version 2; HTTPS with TLS 1.2 or later | Set in Step 5 |
| Identity | Who is the administrator? | AAA with phishing-resistant MFA; local account for emergencies only | TACACS+ at 192.0.2.20 |
| Session | How many sessions, and for how long? | Session limits, idle timeouts, login rate limiting | 10-minute idle timeout; logins blocked for 120 seconds after 5 failures in 60 seconds |
| Physical | Who can touch the console? | Locked cabinet, console login and timeout | Cabinet in the branch's locked equipment room |
For devices at the internet edge, never expose management to the internet directly. If someone outside must administer a device, they first connect through a virtual private network (VPN), and the management ACL then sees the VPN's internal address range. The same idea applies to virtual appliances in a cloud provider. A virtual firewall's management interface belongs in its own subnet. The security group or network security group (NSG) attached to it should allow SSH and HTTPS only from the bastion or jump-host subnet, never from any address.
Finally, limit sessions. Cap the number of simultaneous management connections, use idle timeouts to end forgotten sessions, and rate-limit logins to slow password guessing: br-sw01 refuses all logins for 120 seconds after 5 failures within 60 seconds.
Step 7: Disabling unused physical ports
br-sw01 has 24 ports and 12 cables. The other 12 are working network jacks waiting for anyone with a laptop. The NSA says plainly that router interfaces and switch ports that are not used should be disabled to prevent unauthorized access.[1] It adds a second layer: place unused switch ports in a VLAN that is not routed and is closely monitored.[1]
Why both? The administrative shutdown is the control. The parking VLAN is the safety net for the day someone re-enables a port with no shutdown and forgets everything else. The port then comes up in a VLAN with no gateway and no route, so whatever is plugged in reaches nothing. Monitoring turns that mistake into an alert. Give each parked port a description that says it is unused and may be enabled only through a change ticket.
Three related settings belong in the same step.
- Trunk native VLAN. On an IEEE 802.1Q trunk, untagged frames belong to the native VLAN, which is VLAN 1 by default on many switches. Reassign it to an unused VLAN that carries no users. That blocks double tagging, in which a frame carrying two VLAN tags is delivered into a VLAN its sender should not reach.
- Ports in use. Disabling covers only empty ports. Cabled ports get port security or IEEE 802.1X network access control (NAC), covered in Lesson 12. Empty uplink cages for small form-factor pluggable (SFP) transceivers are ports too, and get shut down the same way.
- Non-network ports. Console, auxiliary and USB ports are physical access. Lock the cabinet, give the console a login and an idle timeout, and disable USB where the platform allows it.
Step 8: Log management: log rotation and remote logging
Log management covers everything that happens to log data, from the moment a device writes an event to the moment the record is deliberately destroyed: generating, sending, storing, analyzing, protecting and disposing. NIST SP 800-92, the 2006 guide to computer security log management, is the standard reference. The objective picks out two parts: rotation and remote logging.
Start with where an appliance keeps its logs. Many switches and routers write to a small buffer in memory. When the buffer fills, the newest event overwrites the oldest, and on many platforms the whole buffer is lost when the device reloads. br-sw01's 4 KB buffer holds only a few dozen messages. During a port flap or an attack it would cycle within seconds, and a reload would erase it.
Log rotation is the controlled version of that overwriting. When a log file reaches a size or age limit, the system closes it, starts a new file, keeps a set number of older files (usually compressed) and deletes the oldest. Rotation prevents two opposite failures. Without it, a file grows until the disk fills, and then logging stops or the system suffers. With careless settings, it deletes evidence before anyone needs it. The retention period, not the disk size, should set the numbers.
Because the appliance's own buffer is tiny, real rotation happens on the log collector. On a Linux collector, the logrotate utility is a common tool. A fictional policy for network device logs might read:
/var/log/netdev/*.log {
daily
rotate 90
compress
delaycompress
missingok
notifempty
}
Read it line by line. Rotate every day. Keep 90 rotated files, which here means 90 days, chosen to match a fictional retention policy. Compress old files, but leave the newest rotated file uncompressed for one more cycle so that a process still writing to it is not disturbed. Skip quietly if a file is missing, and do not rotate an empty file. Logs older than the collector's window move to an archive. Protect archives by recording a digest of each file, storing those digests separately, and encrypting the files. The digests let you prove later that an archived log was not altered.
Remote logging sends each event off the device as it happens, to a collector or a security information and event management (SIEM) system. It solves three problems at once. Events survive a reload. An intruder who clears the device's local log cannot reach the copy. Events from hundreds of devices can be correlated on one timeline.
The usual transport is Syslog, and NIST is frank about its history: it was designed when log security was not a major concern. Most implementations send over UDP, which gives no assurance that entries arrive at all, or arrive in order.[8] Most also perform no access control, so any host can send messages to the collector, and attackers can flood it with bogus entries to bury the real ones.[8] Messages also cross the network unencrypted, readable by anyone on the path.
Each weakness has a matching control.
- Restrict who can send. Put logging on a separate network, or use ACLs on network devices and on the collector so that only known log sources can reach it.
- Protect the content and confirm delivery. Use syslog over TLS, standardized in RFC 5425 and usually carried on TCP port 6514. Where a device cannot speak TLS, carry syslog inside an Internet Protocol Security (IPsec) tunnel, which encrypts and authenticates every packet between two endpoints.
- Make timestamps mean something. Synchronize every device to authenticated NTP. Events from two devices whose clocks differ by two minutes cannot be put in the right order.
What should be sent? Syslog severities run from 0 (emergency) to 7 (debugging); sending severity 6 (informational) and everything more severe captures logins and configuration changes without debug noise. At minimum, send every attempt to access the device and every configuration change, so that any change made outside the change management process stands out. On br-sw01, the configuration archive feature writes each command an administrator enters to syslog, and TACACS+ accounting records the same commands centrally.
Leave out what should not be stored, such as passwords typed into the wrong prompt. Finally, the collector is now a high-value target. Harden it like any critical server, and let it do log management and nothing else.
The core of it: rotation keeps logs from filling disks or disappearing early, belongs on the collector and is sized by the retention policy. Remote logging moves the record out of an intruder's reach, but plain UDP syslog needs help: restricted senders, encryption and synchronized clocks.
The finished baseline for br-sw01
Here are Steps 1 to 8 as one configuration. It is written in Cisco IOS style because that syntax is widely recognized, but it is illustrative: commands differ between vendors and software versions, and the values are fictional. Read it as a checklist written in device language, not a script to paste. Addresses come from the 192.0.2.0/24 documentation range: jump hosts at 192.0.2.10 and 192.0.2.11, TACACS+ at 192.0.2.20, the network management station (NMS) at 192.0.2.30, the log collector at 192.0.2.50 and the time server at 192.0.2.60.
! br-sw01 hardened baseline (illustrative IOS-style configuration, fictional values)
hostname br-sw01
!
! Steps 1 and 3: accounts and local passwords
aaa new-model
aaa authentication login default group tacacs+ local
aaa authorization exec default group tacacs+ local
aaa accounting commands 15 default start-stop group tacacs+
no username admin
username brk-glass privilege 15 algorithm-type scrypt secret <generated-by-vault>
enable algorithm-type scrypt secret <generated-by-vault>
tacacs server TAC1
address ipv4 192.0.2.20
key <from-vault>
!
! Step 4: services nobody needs
no ip http server
no ip http secure-server
no vstack
no cdp run
lldp run
no ip source-route
! Zero touch provisioning: the disable command or setting is platform-specific;
! follow the vendor guide, and remove the device from the provisioning server
!
! Step 5: protocols we keep, in their secure versions
ip domain name mgmt.example.com
crypto key generate rsa modulus 3072
ip ssh version 2
no snmp-server community public
snmp-server view NOC-VIEW ifMIB included
snmp-server group NOC v3 priv read NOC-VIEW access SNMP-MGRS
ntp authentication-key 1 <algorithm> <from-vault>
ntp trusted-key 1
ntp authenticate
ntp server 192.0.2.60 key 1
!
! Step 6: who can reach the management plane
ip access-list standard MGMT-ONLY
permit 192.0.2.8 0.0.0.7 log
deny any log
ip access-list standard SNMP-MGRS
permit host 192.0.2.30
deny any log
line vty 0 15
transport input ssh
access-class MGMT-ONLY in
exec-timeout 10 0
line con 0
exec-timeout 5 0
login block-for 120 attempts 5 within 60
banner login #Authorized access only. Activity is monitored and logged.#
!
! Steps 4 and 7: LLDP only where it does a job
interface range GigabitEthernet1/0/1 - 10
description PHONES AND ACCESS POINTS (LLDP kept)
interface range GigabitEthernet1/0/11 - 12
description UPLINKS to branch router and firewall
no lldp transmit
no lldp receive
!
! Step 7: unused ports
vlan 999
name PARKED-NOT-ROUTED
interface range GigabitEthernet1/0/13 - 24
description UNUSED - enable only through a change ticket
switchport mode access
switchport access vlan 999
no lldp transmit
no lldp receive
shutdown
!
! Step 8: logging
service timestamps log datetime msec show-timezone
logging buffered 64000 informational
logging trap informational
logging host 192.0.2.50 transport tls port 6514
archive
log config
logging enable
notify syslog
Notice what is absent as well as what is present. No line enables Telnet, HTTP or Smart Install. No community string exists. No password appears in readable form: the angle-bracket placeholders stand for values generated and held by the PAM vault, never typed into a ticket. The ZTP line is a comment rather than a command because there is no single cross-vendor command for it; the verification pass checks it directly.
Proving it worked: the verification pass
A hardened configuration is a claim, and testing turns it into evidence. The test must run from where an attacker would stand as well as from where an administrator stands. The engineer uses Nmap, the network scanner, from a laptop in the user VLAN against the switch's gateway address on that VLAN, 198.51.100.1 (another documentation range), before and after hardening.
user-laptop$ nmap -Pn -p 22,23,80,443,4786 198.51.100.1
Before hardening (fictional output)
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
80/tcp open http
443/tcp open https
4786/tcp open smart-install
After hardening (fictional output)
PORT STATE SERVICE
22/tcp open ssh
23/tcp closed telnet
80/tcp closed http
443/tcp closed https
4786/tcp closed smart-install
Here is how to read the states. Open means something accepted the TCP connection. Closed means the device answered with a TCP reset because nothing listens on that port. Filtered means no answer came back, typically because a firewall or an interface ACL dropped the probe on the way in. The -Pn option tells Nmap to skip its host-discovery ping, since a hardened device may not answer one.
Why is port 22 still open after hardening? Because br-sw01 restricts SSH only with the vty access-class, and that check typically happens after the TCP handshake. The switch accepts the connection, sees that the source is not a jump host, and closes the session before any login prompt appears. So an open port 22 is not, by itself, a failure here. The real test is whether a session gets anywhere:
user-laptop$ ssh netops@198.51.100.1
Connection closed by 198.51.100.1 port 22
(fictional output; no login prompt was offered)
Now change one input. Suppose the branch's policy says the management port must not even be visible from user VLANs. The engineer adds an inbound ACL on the user VLAN interface that drops traffic addressed to the switch's own addresses on TCP 22. Rerun the same scan and 22/tcp now shows filtered, because the probe is dropped before the SSH process ever sees it. Both designs refuse the session. Only the second hides the port, and the scan result tells you which one is in place.
| Test | Run from | Pass | Fail |
|---|---|---|---|
| Port scan of TCP 23, 80, 443 and 4786 | Laptop in the user VLAN | Every port closed or filtered | Any port open |
| SSH session attempt to the switch | Laptop in the user VLAN | Connection closed with no login prompt (or port filtered, if an interface ACL is used) | A login prompt appears |
| SSH login | Jump host 192.0.2.10 | SSH version 2 session, TACACS+ prompt, MFA challenge | No prompt, or the local account accepted while TACACS+ is up |
| SNMPv2c query with community public | NMS 192.0.2.30 | No response | Any response |
| SNMPv3 authPriv query for interface counters | NMS 192.0.2.30 | Counters returned; other MIB branches refused | Timeout, or the whole MIB readable |
| LLDP per port | Switch CLI | Transmit and receive enabled on ports 1-10 only | LLDP active on uplinks or parked ports |
| Zero touch provisioning | Switch CLI and provisioning server | Provisioning agent reported off; device removed from the provisioning server | Agent active, or device still listed |
| Unused port status | Switch CLI | Ports 13-24 administratively down in VLAN 999 | Any of them up, or in a user VLAN |
| Log delivery | A deliberate failed login from the jump host | Event at 192.0.2.50 within seconds, with the correct time | No event, or a wrong timestamp |
| Drift check | Configuration repository | Running configuration matches the approved file | Any unexplained difference |
UDP services such as SNMP are hard to judge from a scan. A silent UDP port can mean a filter or a service that ignored the probe, and Nmap reports such ports as open|filtered. That is why the table tests SNMP with real queries instead of a scan.
Second run: the same procedure on a switch that cannot meet the baseline
Change one input and run the procedure again. The device is now wh-sw07, a switch in the same company's warehouse. Its vendor has declared it end-of-life (EOL), meaning it is no longer sold or developed, and end-of-support (EOS), meaning no more patches or help. Its final software release can be managed over the network only by Telnet, speaks only SNMPv2c, sends syslog only over UDP, and can store local passwords only in the reversible type 7 format. Its replacement is funded for next fiscal year. Until then, it has to be run as safely as possible.
NIST's sample patch plan includes a similar case: legacy operational technology (OT) assets, whose existing software is no longer supported and cannot be patched.[3] OT means systems that control physical processes, so a warehouse switch is not OT, but the reasoning carries over. When no patch exists, the patch step becomes a choice among other risk responses. In this lesson's words: isolate the device, add controls around it, formally accept the risk that remains, or retire it early.
| Step | br-sw01 (supported) | wh-sw07 (end-of-support) |
|---|---|---|
| 1 Default credentials | Factory account removed | Same: remove or rename the account; change the SNMP community |
| 2 Patch management | Verified 17.9.4 installed | No patch exists; a risk response replaces the patch |
| 3 Local passwords | scrypt storage, vault, changed after use | Type 7 only (stated in the scenario): treat every backup as exposing the password, keep backups in the vault, change the password after each use |
| 4 Unneeded services | Web server, Smart Install and ZTP disabled | Disable whatever the old release allows |
| 5 Insecure protocols | Telnet and SSH version 1 off; SNMPv3 | Preferred: console server reached over SSH, with Telnet off on the vty lines. Fallback: Telnet confined to an isolated segment, a documented shortfall. SNMPv2c read-only, long non-default community, one NMS address |
| 6 Administrative access | Management ACL on the lines | If the device cannot apply ACLs: a separate management segment with the ACL on the router in front of it |
| 7 Unused ports | Shut down and parked | Same |
| 8 Logs | Syslog over TLS to the collector | UDP syslog confined to the management segment; collector accepts only that segment |
| Outcome | Meets the baseline | Documented exception that expires at replacement |
Start with Telnet, because it shows how far a compensating control can go. NIST SP 800-123's rule is not to use less secure protocols such as Telnet unless they are absolutely required, and then only tunneled over an encrypted protocol.[5] The option that meets the rule is a console server. Administrators open an SSH session to the console server, which is cabled to wh-sw07's serial console port, so the only network hop is encrypted and Telnet can be switched off on the vty lines entirely. If engineers or scripts also need a network path to the switch, the fallback is Telnet confined to a short, isolated management segment reached only from an SSH jump host. That fallback is a compensating control, not a tunnel. The Telnet leg is still cleartext and readable by anything on that segment, so it falls short of NIST's rule, and the exception must say so.
The other flips follow the same pattern. If the old software cannot apply an ACL to its management lines, the NSA covers that case: place devices that cannot support ACLs on a separate management segment, and filter at the router in front of it.[7] The UDP syslog stays unencrypted, but it travels only on that segment, and the collector accepts messages from that segment's addresses only.
The result is not hardened in the first run's sense. It is a documented exception: the gap, the compensating controls, a named risk owner and an expiry date tied to the replacement. Exceptions need monitoring too, because a compensating control removed for convenience leaves the original gap wide open.
The core of it: when a device cannot meet the baseline, the procedure does not stop. Each step that cannot be fixed on the device moves outward to the network around it, and the gap is written down with an end date.
Reading the scenario: exam cues for objective 2.7
The objective starts "Given a scenario", so items describe a situation and ask for the technique. These are the phrases that point to each answer, with the neighbor each is most often confused with.
| The stem says | Points to | Commonly confused with |
|---|---|---|
| "Digest does not match", "confirm the image was not tampered with", "signed image" | Patch management: verification | Delivery channels |
| "How updates reach 300 branches", "central manager", "vendor feed", "copied by TFTP from headquarters" | Patch management: delivery channels | Verification |
| "Factory login", "admin/admin", "community public", "after an RMA replacement or factory reset" | Default credential management | Local password management |
| "TACACS+ unreachable", "emergency account", "minimum length", "expiry", "character classes" | Local password management | Default credential management |
| "Feature not used", "web interface enabled but managed by CLI", "Smart Install", "ZTP after deployment" | Disabling unneeded services | Disabling insecure protocols |
| "Telnet", "SSH version 1", "HTTP", "SNMPv2c", "must keep the function but encrypt it" | Protocol configuration: disabling insecure protocols | Disabling unneeded services |
| "SSH reachable from the guest VLAN", "management from the internet", "only from jump hosts" | Restricting access to administrative interfaces | Disabling unused physical ports |
| "Unused jacks", "lobby", "spare interfaces" | Disabling unused physical ports | Restricting access to administrative interfaces |
| "Disk full", "oldest logs overwritten", "retention period" | Log management: log rotation | Remote logging |
| "Intruder cleared the logs", "correlate across devices", "logs lost at reboot" | Log management: remote logging | Log rotation |
When the stem could fit both services and protocols, ask two questions in order. Does anyone need this function? If not, disable the service. If someone does, is it running in its secure version? If not, it is protocol configuration. Telnet on a switch already managed over SSH is an unneeded service. Telnet as the only way to manage a switch is an insecure protocol to replace or, failing that, to isolate.
Common misconceptions
- "A matching hash proves the vendor made the file." A digest proves the file matches the value you compared it with. If that value came from a page an attacker controls, the match proves nothing. A signature checked against a vendor key you already trust proves origin.
- "Disabling a feature is as good as removing it." A disabled service can be switched back on by an attacker or by human error. Remove it where you can, and where you cannot, watch the configuration for drift.
- "Forcing appliance passwords to change every 90 days makes them stronger." Calendar expiry produces predictable successors. Long random passwords, changed after each use or on suspicion of compromise, protect break-glass accounts better.
- "Sending syslog to a central server finishes remote logging." Plain UDP syslog can lose entries, accepts messages from any sender and travels unencrypted. Restrict senders, use TLS or a tunnel, and synchronize clocks.
- "Changing the admin password finishes default credential management." SNMP communities, default web and API logins, and self-signed certificates are defaults too, and a factory reset or RMA replacement brings them all back.
- "An ACL on the vty lines makes the SSH port invisible." A vty access-class typically refuses the session after the TCP handshake, so scanners still see the port open. Hiding it takes an interface or control-plane filter that drops the packets first.
Putting it together
- Default credentials include factory accounts, SNMP community strings such as public, default web and API logins and self-signed certificates; remove, disable or change them, and recheck after any factory reset or RMA replacement.
- Verify an image before installation by comparing its full SHA-256 or SHA-512 digest with the vendor's published value and checking the vendor's signature; on a mismatch, stop, delete the file and download it again from the vendor portal.
- Choose the delivery channel to fit the fleet: central managers for many devices, the vendor portal for change-controlled core upgrades, SCP, SFTP or HTTPS for the last hop, never TFTP or FTP, and ZTP disabled after deployment.
- Verify after installation: the intended version, a configuration that still matches the repository, working functions, and an authenticated scan that no longer reports the advisory.
- Local accounts are for emergencies only: store them with the strongest hashing the device offers, change the password after every use, and keep the AAA server separate from the corporate identity store.
- Length and screening against compromised passwords beat composition rules, and rotation tied to events beats rotation tied to the calendar, although an exam stem that states a policy expects you to implement that policy.
- If nobody needs a function, disable the service; if someone does, use SSH version 2, TLS 1.2 or later and SNMPv3 authPriv, and switch off SSH version 1 and other old versions so nothing can negotiate down.
- Restrict management to an OOB network or management VLAN with an ACL that permits only jump hosts and denies and logs everything else; a vty access-class refuses sessions but leaves the port visible, while an interface filter makes it show as filtered.
- Shut down unused ports and park them in an unrouted, monitored VLAN; rotate logs on the collector to match retention, and send events off the device in real time to a hardened collector over an authenticated, encrypted transport.
Sources
- NSA (with CISA). (2020). Hardening Network Devices. media.defense.gov
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Murugiah Souppaya, Karen Scarfone. (2022). Guide to Enterprise Patch Management Planning: Preventive Maintenance for Technology (SP 800-40 Rev. 4). NIST. nvlpubs.nist.gov
- CISA. (2024). Enhanced Visibility and Hardening Guidance for Communications Infrastructure. cisa.gov
- Karen Scarfone, Wayne Jansen, Miles Tracy. (2008). Guide to General Server Security (SP 800-123). NIST. nvlpubs.nist.gov
- CISA. (2023). Secure by Design Alert: How Manufacturers Can Protect Customers by Eliminating Default Passwords. cisa.gov
- NSA. (2022). Network Infrastructure Security Guidance (Cybersecurity Technical Report). aha.org
- Karen Kent, Murugiah Souppaya. (2006). Guide to Computer Security Log Management (SP 800-92). NIST. nvlpubs.nist.gov
- Key terms
- Appliance hardening
- Reducing the ways a network device such as a switch, router or firewall can be misused, by removing defaults, patching, disabling unneeded features, enforcing secure protocols, limiting management access and keeping trustworthy logs.
- Patch delivery channel
- The path a software update travels from the vendor to a device, such as a manual portal download, a central management platform, a vendor cloud feed, zero touch provisioning or removable media.
- Image verification
- Checking a software image before installation by comparing its full cryptographic digest with the vendor's published value (integrity) and checking the vendor's digital signature (origin).
- Default credential
- Any login secret set by the manufacturer before delivery, such as a factory admin account and password, an SNMP community string like public, a default API key or a self-signed certificate.
- Break-glass account
- A local account on a device used only when central AAA authentication is unavailable, held in a vault, monitored, and given a new password after each use.
- Insecure protocol
- A protocol that sends credentials or data in cleartext, authenticates weakly, or can be negotiated down to such a mode, for example Telnet, HTTP, FTP, TFTP, SNMPv2c and SSH version 1.
- Out-of-band management
- Managing devices over a network separate from the one carrying user traffic, so administrative access neither depends on nor shares a path with production traffic.
- Management ACL
- An access control list applied to a device's management services that permits only designated administrator hosts or subnets and explicitly denies, and logs, every other source.
- Log rotation
- Closing a log file at a size or age limit, starting a new one, keeping a set number of older files, often compressed, and deleting the oldest according to a retention policy.
- Remote logging
- Sending each event off a device as it occurs to a separate collector or SIEM, so records survive reboots and tampering and can be correlated across many devices.
Module 3: Network Operations, Monitoring and Performance
Running a network as a service, continuity and recovery, monitoring and performance tools, and automating a hybrid cloud.
Running a Network as a Service: Risk, Audits, Contracts, Cost and Service Management
- Choose and justify a risk response (acceptance, avoidance, transference or mitigation) for a network risk, record it in a risk register, and write a time-limited waiver or exception when policy cannot be met.
- Distinguish SLI, KPI, SLO, SLA and OLA, calculate measured availability against an SLA, and check whether the OLAs beneath it can support the promise.
- Identify which agreement (MSA, SOW, ISA, MOU, NDA or licensing agreement) governs a situation, and explain how EOL and EOS dates and audit findings drive operating decisions.
- Compare CapEx and OpEx options and apply cost optimization, chargeback, orphaned-resource cleanup, self-service, cross-connects, time to market and service management practices.
Risk R-031: a firewall pair with an expiry date
On 3 March 2026, the risk register at Kestrel Freight gained a new row. Kestrel is a fictional logistics company with 1,400 staff, a head office, three distribution centers and a growing public cloud footprint. It was invented for this lesson. The row was assigned to the chief information officer (CIO), and it read like this:
| ID | Risk | Likelihood (1-5) | Impact (1-5) | Score | Owner | Response | Review |
|---|---|---|---|---|---|---|---|
| R-031 | Core firewall pair FW-01 and FW-02 reaches vendor end-of-support on 30 June 2027. No security fixes after that date. | 4 | 5 | 20 (critical) | CIO | To be decided | Monthly |
Two people who both know their jobs disagree about what goes in the Response column. Lena Ortiz, the network architect, wants to buy a new firewall pair, rack it in Kestrel's own data center and run it with Kestrel's own engineers. Marcus Bell, the IT operations director, wants a contract with a managed service provider (MSP) that would supply, run and refresh the edge firewalls for a monthly fee. The security team adds a third point. Whichever option wins, the migration will run some months past 30 June 2027, so someone with authority has to approve running unsupported equipment until cutover.
Settling that argument properly uses every idea in the first half of objective 3.1. You need to know how a risk is answered and recorded, how audits test what the register claims, and what each contract commits a party to. You also need to compare capital and operating spending, and to understand what it means to deliver and manage a network as a service. Each position gets its strongest form below, with the numbers it rests on and the inputs that would flip the decision.
Exam objectives: CompTIA CloudNetX CNX-001 objective 3.1, "Explain concepts related to operating and maintaining a network environment." This lesson covers the risk management, auditing, contracts, agreements and terms, network cost management, service delivery and service management bullets. Lesson 19 covers the rest of 3.1: business continuity, disaster recovery, failure rates, out-of-band management and network functions.[1]
Four ways to answer a risk
A risk combines two things: how likely it is that a threat exploits a weakness, and how much harm that would do. The United States National Institute of Standards and Technology (NIST) published its guide to risk assessment, Special Publication (SP) 800-30 Revision 1, in 2012. It lists the responses an organization can choose once it understands a risk: acceptance, avoidance, mitigation, sharing or transfer.[2] NIST's glossary adds the condition that matters most. A risk response is an intentional and informed decision about an identified risk.[3] Running an old firewall because nobody checked its support date is not risk acceptance. It is an unmanaged risk, and an auditor will call it that.
CompTIA's objectives list four responses: risk acceptance, avoidance, transference and mitigation. NIST names sharing and transfer separately. Transfer moves a consequence to another party, for example through insurance or a contract. Sharing spreads a risk among partners who each carry part of it, for example two companies that jointly fund a circuit both depend on. The two are closely related, and a question about moving a risk's consequences to a third party points to transference. Another NIST report, NISTIR 8286, describes risk responses as ways to keep risk within tolerable levels and lists four for negative risks: accept, transfer, mitigate or avoid.[3] Here is what each would mean for R-031.
| Response | What you do | Applied to R-031 | What is left afterwards |
|---|---|---|---|
| Risk avoidance | Stop the activity, or remove the condition, that creates the risk | Finish replacing FW-01 and FW-02 before 30 June 2027, so Kestrel never runs unsupported firewalls | The risks of the new arrangement, which get their own register rows |
| Risk mitigation | Add or strengthen controls that reduce likelihood or impact | If the pair must run past end-of-support: allow management access only from the out-of-band network, disable unused features and watch upstream intrusion prevention signatures | A residual risk, smaller but not zero |
| Risk transference | Move the financial consequence, and some tasks, to another party by contract or insurance | Contract with an MSP that is responsible for patching and hardware refresh; buy cyber insurance | Kestrel's accountability to its customers, regulators and board |
| Risk acceptance | Carry the risk knowingly, for a stated period, approved by someone with authority | Run the old pair for a defined period under a documented exception | All of the risk, for the agreed time |
Risk mitigation is the response people reach for first. NIST defines it as prioritizing, evaluating and implementing the risk-reducing controls that the risk management process recommends.[4] Notice what a control can change. Restricting management access lowers the chance that an attacker reaches the firewall's administrative interface. It does nothing to the impact if an attacker gets through some other way, because the firewall still guards every packet entering head office. A mitigation usually moves one factor, rarely both.
Risk transference is the response people overestimate. A contract or an insurance policy moves the financial consequence, and some of the work, to another party. Agreements are where those responsibilities get written down. NIST's supply chain guidance, SP 800-161 Revision 1, notes that the responsibility and accountability for services performed by different parties are usually defined in agreement documents.[5] What a contract cannot move is Kestrel's obligation to the customers whose shipment data crosses the firewall. Suppose the MSP misses a patch and data leaks. The MSP may owe Kestrel money under the contract. Kestrel still owes its customers an explanation, and possibly owes a regulator a notification.
Risk avoidance removes the activity or condition that creates the risk. Kestrel cannot avoid the risk of having firewalls. It can avoid ever running unsupported ones by finishing the replacement before the support date. Avoidance is often the cleanest response and the most expensive, because it gives up whatever the risky activity provided. Retiring an old partner File Transfer Protocol (FTP) gateway removes that gateway's risks completely, and it also ends the service the partners relied on.
Risk acceptance means carrying the risk knowingly, for a stated period, with the decision approved by someone who has the authority to make it. It is a legitimate choice when every other response costs more than the expected harm. It turns into negligence when nobody with authority approved it, or when nobody ever looks at it again.
Bottom line: avoidance removes the risky condition, mitigation adds controls that change likelihood or impact, transference moves consequences by contract or insurance but never your accountability, and acceptance is a recorded, approved, time-limited decision rather than inaction.
Waivers and exceptions: acceptance with an expiry date
Kestrel's network security standard contains clause NET-STD-4.2: no production network device may run software past the vendor's end-of-support date. The migration plan puts cutover in the autumn of 2027, months after FW-01 and FW-02 lose support. The standard has not changed and should not change. What the security team needs is a formal, recorded departure from it.
That record is an exception, or in some organizations a waiver. Organizations use the two words differently. A common pattern is that an exception approves one system's departure from a policy for a set period, while a waiver formally releases a project or contract from a requirement. For the exam, treat both the same way: a documented, approved, time-limited form of risk acceptance for a stated scope.
The example record below uses a few acronyms. OOB is out-of-band, a separate management network. VPN is virtual private network. IPS is intrusion prevention system. CISO is the chief information security officer.
EXCEPTION EX-2027-007 (example record, fictional)
Policy clause: NET-STD-4.2 No production device past vendor end-of-support
Scope: FW-01, FW-02 (head office internet edge) only
Reason: Replacement cutover is in migration wave 3, after the EOS date
Period: 1 July 2027 to 31 December 2027 (no automatic renewal)
Compensating controls:
- Management interfaces reachable only from OOB network 192.0.2.0/26
- Remote-access VPN feature disabled; users moved to the new gateway
- Upstream IPS signatures for this firewall model reviewed weekly
Residual risk: Likelihood 2 x Impact 5 = 10 (medium)
Risk owner: CIO (approved) Security review: CISO (concurred)
Review triggers: Monthly; immediately on any vendor advisory for this model
Each field prevents a specific failure:
- Narrow scope. The record names two devices, not "legacy firewalls". A vague scope quietly covers devices nobody assessed.
- A hard expiry. There is no automatic renewal. Renewing means making a fresh decision based on current facts.
- Compensating controls. These are controls that partly stand in for the missing requirement. Here they lower the likelihood of exploitation, which is what brings the residual score into a band the CIO may accept.
- The right approver. NIST's assessment guide, SP 800-53A Revision 5, says the risk management activities that follow an assessment involve the organization's senior leadership, such as heads of agencies and mission and business owners.[6] A network engineer cannot accept a critical risk on the company's behalf, however confident the engineer is.
- Review triggers. One review is set by date and one by event, so a new fact reopens the decision at once.
The approver also needs a yardstick. SP 800-53A ties risk-based decisions directly to organizational risk tolerance, which the organization itself defines.[6] Kestrel's tolerance appears as scoring bands in the next section.
The risk register: scoring R-031 twice
A risk register is the single list in which each identified risk gets an ID, a description, likelihood and impact ratings, an owner, a chosen response, a residual rating and a review date. Its value is memory. NIST's risk management hierarchy names traceability and transparency of risk-based decisions as goals.[2] Two years from now, someone will ask why unsupported firewalls ran for six months. The register, and the exception linked to it, supply the reasoning, the evidence and the name of the person who decided.
Kestrel scores likelihood and impact from 1 to 5 and multiplies them. The bands below are Kestrel's own. Every organization sets its own bands as part of its risk tolerance.
| Score | Band | Who may accept it |
|---|---|---|
| 1-7 | Low | The system owner, recorded in the register |
| 8-14 | Medium | The CIO, through a written exception lasting at most 12 months |
| 15-25 | High or critical | Nobody. The risk must be mitigated, transferred or avoided. |
Run 1: the exception as planned. Left untreated after 30 June 2027, R-031 scores likelihood 4 times impact 5, which is 20. Likelihood is 4 because new vulnerabilities in this firewall family will keep being found and none will be fixed. Impact is 5 because the pair protects every inbound path. A score of 20 is critical, so Kestrel's policy forbids accepting it. The compensating controls make the management plane unreachable from production networks and switch off the most exposed feature, remote-access VPN. On that basis the analyst lowers likelihood to 2. Impact stays at 5, because none of the controls reduces what a successful attack would cost. The residual score is 2 x 5 = 10, which is medium. The CIO may accept a medium risk for up to 12 months, so the six-month exception is within tolerance and gets approved.
Run 2: one new fact. In August 2027 the vendor publishes an advisory for a critical flaw in the firewall's packet inspection engine. Traffic passing through the device can trigger it, and there will be no fix for end-of-support releases. The compensating controls protected the management plane and the VPN. This flaw is in the data path, which they do not touch. Likelihood goes back to 4 and the residual score returns to 20. The exception's event trigger fires, and Kestrel's own policy no longer allows acceptance. Two choices remain: bring the cutover forward (avoidance), or put a supported filtering device in front of the pair until cutover (mitigation). SP 800-30 gives this kind of question as a reason to run a fresh assessment: what are the risk implications of a newly discovered vulnerability?[2]
The arithmetic is trivial. What makes scoring useful is the habit of asking which factor each control actually changes, and which new fact would undo it.
Bottom line: a risk register makes each decision traceable to an owner, a score and a response. A compensating control usually lowers likelihood, not impact, and an accepted risk must be re-scored as soon as a new fact breaks the assumption behind its controls.
End-of-life, end-of-support and licensing agreements
R-031 exists because of a date in a vendor bulletin. End-of-life (EOL) generally means the vendor has stopped selling and developing a product. End-of-support (EOS) means the vendor stops supporting it: no more software fixes, including security fixes, no technical assistance and no hardware replacement under contract. Vendors publish a series of milestone dates under their own names, and some use the two terms loosely. Read the bulletin and record each date, rather than trusting the label.
| Milestone | What stops | What the network team does |
|---|---|---|
| Lifecycle announcement | Nothing yet | Add a register row, budget the replacement, check licensing and contract terms |
| End of sale (often part of EOL) | New orders | Buy spares now, or design the dependency on spares out |
| End of software maintenance | Feature and bug-fix releases | Accept that known non-security bugs will stay unfixed |
| End of security fixes and last date of support (EOS) | Security patches, support cases, hardware replacement | Replace, or run only under an approved exception with compensating controls |
For risk, the date that matters most is EOS, because after it every new vulnerability stays open for good. EOL usually comes earlier and mostly affects your ability to buy more units.
Licensing agreements set the terms under which you may use the software that runs on network equipment. A handful of clauses keep deciding network designs and costs:
- Perpetual or subscription. A perpetual license lets you keep using a given version indefinitely. A subscription stops working when the payments stop. Many network products now sell features such as threat prevention signatures or software-defined wide area network (SD-WAN) functions only by subscription.
- Support entitlement. On many products, the right to download updates comes from a separate support contract, not from the license. If the support contract lapses, the device can be properly licensed and still unpatched.
- Counting metric. A license may be counted per device, per throughput tier, per user or per virtual instance size. Moving a firewall from hardware to a virtual appliance in the cloud can change both the metric and the price.
- Transfer and use rights. Some licenses cannot move to a new owner. That matters if an MSP takes over equipment you already own, or if you sell a business unit.
- Audit clause. Many commercial licenses let the vendor check how the software is being used. Being found over-deployed in a vendor audit is a cost management failure as well as a legal one.
Auditing: testing what the register claims
The exception for R-031 states that the management interfaces are reachable only from the out-of-band network. An information security audit, usually just called an audit, is how anyone outside the network team finds out whether that is true. An audit compares evidence against a stated criterion, such as a policy, standard, contract or regulation. Someone independent of the work does the checking. The audit produces findings: specific, evidenced statements of where reality differs from the criterion.
SP 800-53A describes a range of assessment types: self-assessments by system owners and control providers, independent verification and validation, automated assessments, and independent audits or inspections.[6] The distinction that matters is independence. A self-assessment helps a team find its own gaps. An independent audit gives leadership evidence it can rely on. Automated assessment, such as a tool that compares every running configuration with an approved baseline each night, can turn auditing from an annual event into a continuous check.
Kestrel's internal audit team ran a network audit in April 2026 to inform the firewall decision. Its findings (fictional) were these:
| Finding | Criterion | Evidence | Feeds into |
|---|---|---|---|
| A-1 | Firewall rules reviewed every 6 months; no rules that permit any service from any source | 41 of 412 rules had no hits in 180 days. 3 rules permit any service from any source to the warehouse management servers. | New register row R-036; rule cleanup before migration |
| A-2 | Administrator accounts removed within 1 day of a staff departure | Two local administrator accounts on FW-01 belong to engineers who left in 2025 | Immediate fix; access review added to an internal agreement |
| A-3 | Every configuration change has an approved change ticket | 6 differences between configuration backups with no matching ticket | Change management finding; configuration monitoring |
| A-4 | Supplier contracts grant audit rights over services that handle customer data | The MSP's draft master agreement offers a monthly summary report but no right to audit | Contract negotiation |
The audit bears on the risk decision in two ways. First, authorization decisions are risk acceptance decisions. SP 800-53A says they rest on how far the required security capabilities have actually been achieved.[6] The CIO cannot sensibly accept R-031's residual score of 10 when finding A-2 shows that access to the device it covers is already poorly controlled. Second, finding A-4 goes straight into the argument about owning versus renting. When you buy a service, you lose sight of the machinery behind it. NIST's supply chain guidance observes that acquirers often lack visibility into how acquired technology is built and deployed and how services are delivered.[5] A customer gets some of that visibility back through a right-to-audit clause, or through the provider's independent attestation reports. Examples are a SOC 2 (System and Organization Controls 2) report, or a certificate against ISO/IEC 27001, the information security management standard of the International Organization for Standardization and the International Electrotechnical Commission.
The case for owning: CapEx, control and evidence
Lena's proposal is a capital expenditure (CapEx). That is money spent once to acquire a long-lived asset, here a firewall pair. The finance team records it as an asset and depreciates it, which means spreading its cost over the years the asset is expected to serve. The support contracts, subscriptions and staff time that keep the asset running are operating costs. Even the owned option has a tail of operating spending.
Her strongest arguments are concrete:
- Audit evidence. Findings A-1 to A-3 can only be fixed and re-tested by someone with full access to configurations and logs. Owning keeps that access in-house.
- Change timing. Kestrel's peak season runs from October to December. With owned equipment, Kestrel decides when changes happen. A provider running one platform for many customers sets its own maintenance calendar, within whatever the contract allows.
- Supplier concentration. The same MSP already runs Kestrel's wide area network (WAN), using SD-WAN. NIST lists overreliance on a single source of supply as an area of risk that organizations should identify.[5] With both the WAN and its security edge at one firm, a single supplier failure, or a single contract dispute, affects everything at once.
- Five-year cost. In her model, owning is cheaper. The model appears two sections below.
The case for renting: OpEx, a master agreement and someone else's night shift
Marcus's proposal is an operating expenditure (OpEx). That is a recurring cost charged to the period in which it is incurred, here a monthly fee to the MSP. His arguments are just as concrete:
- No next EOS cliff. The contract includes hardware refresh. R-031 exists because owned hardware ages. Under the service, the provider carries that work and must keep the platform supported.
- Round-the-clock coverage. Kestrel's network team is five people who work day shifts. The MSP runs a network operations center (NOC) 24 hours a day, every day of the year.
- Spending that follows demand. Kestrel plans to move much of its data center into the cloud over three years. The cost optimization guidance in the Amazon Web Services (AWS) Well-Architected Framework contrasts cloud practice, which aligns resource consumption with business outcomes, with the on-premises habit of capacity prediction and procurement.[7] A five-year hardware purchase is a capacity prediction.
- Contractual remedies. The service comes with measured service levels and credits, which Lena's design lacks. Whether those remedies are worth much is the question for the sections after the cost model.
Both cases are strong, and they rest on different evidence that can be checked: the cost model, the fine print of the service levels, and the agreements that would govern the relationship. Start with the money.
Five years of cost, run twice
The figures below are fictional, but their shape is realistic. They compare total cost of ownership over five years. That means counting every cost each option causes, not just the purchase price or the monthly fee.
| Cost line | Own (Lena) | Rent (Marcus) |
|---|---|---|
| Hardware in year 0 (CapEx) | $96,000 | None |
| One-time onboarding | None | $8,000 |
| Support and security subscriptions | $14,000 per year | Included |
| Managed service fee | None | $5,200 per month = $62,400 per year |
| Internal engineering time | 0.2 of an engineer costing $130,000 = $26,000 per year | 0.05 of an engineer for supplier oversight = $6,500 per year |
| Five-year total | $96,000 + 5 x ($14,000 + $26,000) = $296,000 | $8,000 + 5 x ($62,400 + $6,500) = $352,500 |
Run 1. Owning costs $56,500 less over five years. If these inputs are right, Lena wins on money.
Run 2: change one input. After reading the audit findings, Kestrel's audit committee asks for 24x7 monitoring of the internet edge. Kestrel has no night shift. To keep the owned design, it must buy monitoring from a security operations provider, say at $3,000 per month, or $36,000 per year. The owned total becomes $96,000 + 5 x ($14,000 + $26,000 + $36,000) = $96,000 + $380,000 = $476,000. Renting is now $123,500 cheaper, because the managed fee already included round-the-clock coverage.
The time horizon can flip the result too. Go back to run 1's inputs and suppose the cloud migration retires the head-office edge after three years. The owned pair then costs $96,000 + 3 x $40,000 = $216,000, and the hardware still has years of unused life. The service costs $8,000 + 3 x $68,900 = $214,700, but only if the contract allows Kestrel to leave after three years without a penalty. That condition sits in the termination clause of the master agreement, which is why contract terms belong in any cost comparison.
Bottom line: CapEx versus OpEx is never settled in general. Count every cost each option causes over a realistic horizon, including staffing gaps and exit terms, then change the input you are least sure of and see whether the answer flips.
Reading the service levels: SLI, KPI, SLO, SLA and OLA
Marcus's draft contract has a schedule of service levels. Google's book on site reliability engineering (SRE) has a chapter on service level objectives that splits this vocabulary into three layers. CompTIA adds two more terms.
- A service-level indicator (SLI) is a carefully defined quantitative measure of some aspect of the service being provided.[8] Common SLIs include request latency, error rate and throughput. For a network service, typical SLIs are availability, packet loss, jitter and time to restore.
- A key performance indicator (KPI) is a measure an organization uses to judge performance against its goals. It is often broader than one service: the percentage of changes that succeed, the average time to bring a new site online, or the cost per connected branch. CompTIA pairs SLI with KPI because both are the measurement itself. Either one can have a target set on it, and for a service, that target is what an SLO expresses.
- A service-level objective (SLO) is the target value for an SLI, for example availability of at least 99.9 percent per calendar month.
- A service-level agreement (SLA) is, in the SRE book's words, an explicit or implicit contract with users that includes consequences of meeting or missing the SLOs it contains.[8] So an SLA contains SLOs. The book offers a simple test that runs one way: if missing a target has no explicit consequence, you are almost certainly looking at an SLO, not an SLA.[8]
- An operational-level agreement (OLA) is an agreement between teams inside one organization. It sets what each team does, and how fast, so that the organization can keep an SLA. An OLA supports an SLA; it does not replace one.
Expect these terms to blur at work. Plenty of internal teams publish "SLAs" with no consequences attached. By the definitions above, those are SLOs. The SRE chapter also recommends a safety margin: run a tighter SLO internally than the one you promise users, so that chronic problems show up inside the team before customers see them.[8] If Kestrel's contract promises 99.9 percent, a sensible MSP will aim for something like 99.95 percent internally.
Here is the relevant part of the draft contract:
SCHEDULE B SERVICE LEVELS (example extract, fictional)
B.1 Availability SLI: minutes in the calendar month in which the managed
edge service passes customer traffic, divided by total minutes in the
month. Excludes Scheduled Maintenance announced at least 5 business
days in advance.
B.2 Availability commitment: 99.9% per calendar month.
B.3 Service credits (percentage of the monthly fee):
99.0% to below 99.9% ........ 10%
below 99.0% ................. 25%
B.4 Priority 1 incidents: response within 15 minutes; restore within
4 hours.
B.5 Service credits are the Customer's sole and exclusive remedy for
failure to meet B.2.
When an outage earns a credit, and when it does not
Take a 30-day month in which the managed edge stops passing warehouse traffic for 50 minutes in total. Work it through step by step.
- Minutes in the month: 30 x 24 x 60 = 43,200.
- Downtime allowed at 99.9 percent: 0.1 percent of 43,200, which is 43.2 minutes.
- Run 1: all 50 minutes unscheduled. SLI = (43,200 - 50) / 43,200 = 43,150 / 43,200 = 0.99884, or 99.88 percent. That is below 99.9 and above 99.0, so clause B.3 gives a 10 percent credit: 10 percent of $5,200, which is $520.
- Run 2: one detail changed. Twenty of the 50 minutes fell inside a maintenance window that the MSP announced six business days in advance. Clause B.1 excludes those minutes, so only 30 minutes count. SLI = 43,170 / 43,200 = 0.99931, or 99.93 percent. The commitment is met, and no credit is due.
Warehouse staff lived through the same 50 minutes in both runs. Suppose Kestrel estimates the stoppage cost it $40,000 in delayed dispatches. In run 1 the remedy is $520. In run 2 it is nothing. And clause B.5 says credits are the only remedy. This is what transference through an SLA really looks like. The credit gives the provider a reason to perform, but it is not insurance. The definition of the SLI and its exclusions decide what counts, so negotiate them, and require maintenance windows outside warehouse shifts.
Checking the OLA chain behind an SLA
Kestrel's IT department makes its own promise to the warehouse division: a priority 1 network outage will be restored within 4 hours. Priority 1 means the most severe class of incident, with business operations stopped. That internal promise depends on several internal teams and on the MSP. Lay out the chain and add it up.
| Step | Who | Commitment | Running total |
|---|---|---|---|
| Log the alert and route it | Service desk (OLA) | 10 minutes | 0:10 |
| Triage, and confirm the fault is in the managed edge | Operations on-call (OLA) | 20 minutes | 0:30 |
| Open a priority 1 case with the MSP | Network team (OLA) | 30 minutes | 1:00 |
| Restore service | MSP (contract clause B.4) | 4 hours | 5:00 |
The chain needs five hours to deliver a four-hour promise. Every team can meet its own commitment and the business still sees a broken promise. There are three ways to fix it. Kestrel can tighten the internal OLAs, for example by sending edge alarms to the MSP and the network team at the same moment, which removes most of the first hour. It can negotiate a faster restore time in the contract. Or it can change the internal promise to one the chain can actually support. The rule is that the commitments underneath an SLA must add up to less than the SLA itself, with some margin left over.
Bottom line: an SLI or KPI is the measurement, an SLO is the target set on it, an SLA is a contract that attaches consequences to one or more SLOs, and an OLA is the internal promise that makes the SLA keepable. Read the SLI's definition and exclusions before trusting any of the numbers built on it.
The other paperwork: MSA, SOW, ISA, MOU and NDA
An SLA rarely stands alone. Before Kestrel asked three MSPs for proposals, it had each of them sign a non-disclosure agreement (NDA). A meaningful bid requires network diagrams, Internet Protocol (IP) addressing plans and firewall rule counts, and an attacker would value all of them. If Kestrel signs with one of the bidders, the relationship will rest on a stack of documents, each settling a different question.
| Agreement | Between | What it settles | Kestrel example |
|---|---|---|---|
| Master service agreement (MSA) | Customer and supplier | Legal terms negotiated once and reused by every later order: liability limits, payment, confidentiality, data handling, audit rights, termination and exit assistance | Kestrel's master contract with the MSP |
| Statement of work (SOW) | The same parties, under the MSA | Deliverables, schedule and price for one specific piece of work | The firewall migration project |
| Service-level agreement (SLA) | Provider and customer | Measured service levels and the consequences of missing them | Schedule B |
| Operational-level agreement (OLA) | Teams inside one organization | Internal response commitments that let the organization keep an SLA; usually not a legal contract | Service desk to network team |
| Interconnection security agreement (ISA) | Organizations whose systems connect | Technical and security requirements of the connection, the controls, a topology drawing and signatures | Site-to-site VPN to a customs broker |
| Memorandum of understanding (MOU) | Organizations working together | Why the organizations are cooperating and what each is responsible for; often not legally binding | Kestrel and the customs broker |
| Non-disclosure agreement (NDA) | Any parties sharing confidential information | What counts as confidential, how it is protected and for how long | MSP bidders receiving network diagrams |
| Licensing agreement | Software vendor and licensee | Rights to use software and features, the counting metric, transfer rights and vendor audit | Firewall operating system and threat subscriptions |
The MSA is where the exit terms from the cost model live, together with the audit rights that finding A-4 asked for. Negotiating it once means each later SOW can be short, because it only has to describe the work, not restate the legal relationship.
Two of these documents come from connecting organizations rather than buying services. Kestrel already runs a permanent site-to-site VPN to a customs broker, which carries shipment declarations. NIST SP 800-47 Revision 1, on managing the security of information exchanges, defines an interconnection security agreement (ISA) as a document that specifies the technical and security requirements for establishing, operating and maintaining an interconnection between two or more systems.[9] It describes the controls that protect the exchanged information, usually includes a topology drawing of the connection, and carries signatures from the participating organizations.[9] ISAs are often paired with a memorandum of understanding (MOU) or a memorandum of agreement.[9] Roughly, the MOU records why the organizations are connecting and who is responsible for what, and the ISA records how the connection is built and secured. Whether an MOU binds anyone legally depends on its wording and the jurisdiction. Many are written as statements of intent, which is why commercial obligations go in a contract instead.
There is a practical consequence for the migration. When the customs broker VPN moves to new firewalls, the ISA's topology drawing and control description must be updated, and the broker must agree to the changes. Migration plans often leave this step out.
Cost management after the decision: optimization, chargeback and orphaned resources
Whichever way R-031 is settled, Kestrel's network will keep costing money every month, and more of it will be in the cloud. The AWS cost optimization guidance calls cost optimization a continual process of refinement and improvement across a workload's life.[7] It also says the goal is not cost reduction alone, but the best ratio between cost and business value.[7] A cheaper design that drops the audit committee's 24x7 monitoring requirement has not been optimized. It has simply lost a requirement.
Optimization starts with visibility. In the AWS framing, awareness means knowing where the money goes, which team or product owns each cost, and whether the resources behind it are still needed.[7] In practice that takes a consistent account structure and consistent tags: separate cloud accounts or subscriptions for business units and for production versus test, plus an owner tag and a cost center tag on every network resource, enforced by policy. With that in place, the next two practices become possible.
A chargeback model bills each business unit for its measured use of shared services, so the cost actually lands in that unit's budget. Its gentler relative, showback, reports each unit's share without moving any money. Here is a worked example. Kestrel's shared cloud transit hub is the central routing and inspection point that every application network connects through, and it costs $12,000 per month. Last month the warehouse system sent 60 terabytes (TB) through it, the customer portal 30 TB and the finance applications 10 TB, for a total of 100 TB. Charging by data processed, the warehouse pays 60 percent ($7,200), the portal 30 percent ($3,600) and finance 10 percent ($1,200).
Chargeback changes behavior. That is its purpose, and also its danger. The warehouse team will now look hard at its 60 TB, and may find a nightly backup that should never have crossed the hub. But a team facing a large inspection charge may also try to send traffic straight to the internet and skip the firewall. A good chargeback design prices the secure path fairly and makes the insecure path impossible by policy, not merely more expensive.
Orphaned resources are resources that keep billing after the thing they served has gone. Examples are a disk left behind when its virtual machine (VM) was deleted, a public IP address attached to nothing, a VPN gateway for a branch that closed, and a load balancer with no back-end servers. The AWS guidance asks teams to manage resources across their lifecycle so that nothing runs longer than it is needed.[7] Network teams create many orphans, because network resources outlive the projects that requested them.
| Resource | Type | Monthly cost | Owner tag | Evidence | Finding |
|---|---|---|---|---|---|
| vpngw-branch-17 | VPN gateway | $180 | None | No tunnels connected for 5 months; branch closed in spring | Orphaned: confirm, then delete |
| nat-hub-01 | Network Address Translation (NAT) gateway | $640, mostly data processing | network-team | Serves 3 subnets; processed 9 TB | Keep; review what traffic crosses it |
| disk-test-04 | Managed disk, 512 gigabytes (GB) | $75 | None | Unattached since its test VM was deleted | Orphaned: confirm, then delete |
| lb-portal-prod | Load balancer | $210 | portal-app | 4 healthy back ends, steady traffic | Keep |
The cure is a process, not a cleanup day: tag at creation, report weekly on untagged and unattached resources, confirm with the owner, then delete. Alerts help. In Microsoft Cost Management, budget alerts notify people when cost passes a set amount or a forecast.[10] Anomaly alerts flag unexpected changes in daily usage, whether spikes or dips.[10] A NAT gateway that suddenly processes ten times its usual data is often the first sign of a misrouted backup, or of something worse. The Atlas Cloud+ course covers the cloud billing tools in more depth.
Bottom line: cost optimization is continuous and aims at value, not the lowest bill. It depends on tagging that ties every cost to an owner, which in turn makes chargeback, showback and the regular removal of orphaned resources possible.
Service delivery: self-service, cross-connects and time to market
Service delivery is how a network team hands working capability to the people who need it. Three exam terms describe how fast it happens and how.
Self-service lets a requester provision something without waiting for an engineer. An application team picks a catalog item such as an internal-only application network from a portal, and within minutes receives a subnet, routing to the transit hub and baseline firewall rules. The design work moves from handling each request to building the catalog item and its guardrails: allowed address ranges, mandatory tags, and which requests need approval. Requests outside policy, such as a rule that opens a database port to the internet, fall back to human review. The automation that makes this work is covered later in the course.
A cross-connect is a physical cable, usually fiber, that a colocation data center operator installs between two customers' equipment in the same building. It might run from Kestrel's cage to a carrier's, or from Kestrel's router to a cloud provider's on-ramp for a dedicated private connection. You order it from the facility operator, and it usually carries an installation charge, a monthly fee and a provisioning lead time. The other party typically has to authorize use of its port. A cross-connect is often the last physical step before the private cloud connections from Lesson 4 can carry traffic, so its lead time belongs in the project schedule.
Time to market is the time from deciding to offer something to having it live for users. For a network team, that might mean opening a new distribution center, connecting a newly acquired company or putting a new application safely on the internet. The SRE book names time to market, alongside staffing, hardware availability and funding, as a constraint that service targets must be traded against.[8] Time to market was a hidden argument in R-031, because Kestrel plans a fourth distribution center in 2027. In the owned design, opening it involves hardware procurement and an engineer's site visit. In the managed design, the MSP ships a preconfigured edge device. Neither is automatically faster, but the difference can be measured, and it belongs in the decision.
Service management: running the network as a catalog of services
IT service management is the discipline of running technology as a set of defined services, each with an owner, users, measured service levels and processes around it, rather than as a collection of devices. Frameworks such as ITIL (originally the Information Technology Infrastructure Library) and the international standard ISO/IEC 20000 describe it in detail. These are the parts a network team meets most often:
| Practice | What it does for the network | Kestrel example |
|---|---|---|
| Service catalog | Lists what the network team offers, to whom, and at what service level | Site connectivity, gold tier: dual WAN links, 99.9 percent SLO, 4-hour restore |
| Service level management | Agrees, measures and reports SLIs and SLOs; manages SLAs and OLAs | Monthly comparison of the MSP's reported figures with Kestrel's own monitoring |
| Incident management | Restores service as fast as possible | The 50-minute edge outage |
| Problem management | Finds and removes the root cause behind repeated incidents | Why the edge failed over badly twice in one quarter |
| Change management | Assesses, approves and schedules changes to limit risk | Finding A-3; the peak-season change freeze |
| Configuration management | Keeps an accurate record of components and how they depend on each other, often in a configuration management database (CMDB) | Which applications depend on FW-01 |
| Supplier management | Manages contracts and supplier performance | Quarterly MSP reviews; MSA renewal |
| Continual improvement | Uses measurements to decide what to improve next | KPI trends feeding next year's budget |
Service management is what ties the rest of this lesson together. The register entry, the exception, the audit findings, the SLA report and the chargeback report each need an owner and a regular review slot. Without them, every one of those documents becomes something nobody reads.
What would settle the argument
Lena and Marcus are not arguing about values. They are making different predictions, and each prediction can be tested before anyone signs a contract or a purchase order.
| Question | Favors owning if | Favors renting if |
|---|---|---|
| Is 24x7 monitoring required, and can Kestrel provide it? | It is not required, or Kestrel already has it at little extra cost | It is required and Kestrel would have to buy it, while the managed fee already covers it |
| How long will the head-office edge exist? | Five years or more | Three years or less, and the MSA allows exit then |
| Will the MSP accept a right-to-audit clause? | No, so findings like A-1 to A-3 could not be re-tested | Yes, or it provides acceptable independent attestation |
| Does the SLI measure what the warehouse feels? | Exclusions are broad and credits are the sole remedy | Exclusions are narrow and maintenance avoids warehouse hours |
| Can the OLA chain support the 4-hour internal promise? | Only with Kestrel's own engineers on site | Yes, with alarms routed directly to the MSP |
| How concentrated is supplier risk? | The MSP already runs the WAN and no exit plan exists | A tested exit plan and an alternative supplier exist |
The last row deserves weight. NIST SP 800-161 says supply chain contingency planning includes planning for alternative suppliers of components, systems and services.[5] An MSA with no transition assistance clause, no return of configurations and data on exit, and no notice period turns the choice of provider into a long-term dependency.
In this example, the answers came out as follows. The audit committee required 24x7 monitoring that Kestrel could not staff, which favored renting by $123,500 over five years. After negotiation, the MSP accepted a right-to-audit clause. The maintenance exclusion was rewritten so that windows must fall outside warehouse hours of 06:00-22:00. Kestrel chose the managed service. It kept R-031 open under the exception until cutover, and added a new register row for supplier concentration, with a documented exit plan as its mitigation.
Now change the inputs that drove that result. Suppose the audit committee accepts business-hours monitoring, or Kestrel already pays for 24x7 monitoring under another contract, so no new monitoring cost falls on the owned design. Suppose also that the MSP refuses a right-to-audit clause and the head-office edge must last five years. Run 1's figures then apply: owning is $56,500 cheaper over five years. Only owning lets findings A-1 to A-3 be re-tested. The same method now picks Lena's design. Changing the horizon alone would not have flipped the answer while the paid 24x7 requirement stood, because that requirement is the input that cost the owned design $180,000 over five years.
Exam cues for operating and maintaining a network
| If the stem says | Think | Often confused with |
|---|---|---|
| Buy insurance; contract shifts liability to the provider | Risk transference | Mitigation, which changes likelihood or impact through controls |
| Stop offering the service; decommission the feature | Risk avoidance | Acceptance, which keeps the activity running |
| Add controls to reduce likelihood or impact | Risk mitigation | Transference, which moves the consequence elsewhere |
| Documented, approved, time-limited departure from policy | Waiver or exception | Risk register, which lists all risks |
| Single list of risks with scores, owners and responses | Risk register | Audit report, which records findings against criteria |
| Independent review of evidence against a standard or contract | Audit | Risk assessment, which estimates likelihood and impact |
| Measured latency, loss, error rate or availability | SLI or KPI | SLO, which is the target value |
| Target with no penalty attached | SLO | SLA, which carries consequences |
| Service credits, rebates or penalties | SLA | SLO |
| Commitment between internal teams to support a customer promise | OLA | SLA |
| Technical and security requirements for connecting two organizations' systems, topology drawing | ISA | MOU, which records purpose and responsibilities |
| Umbrella contract that later orders refer to | MSA | SOW, which covers one piece of work |
| Protect diagrams shared with bidders | NDA | ISA |
| Vendor stops security patches and support | EOS | EOL, which usually ends sales first |
| Up-front hardware purchase, depreciated | CapEx | OpEx, which is a recurring fee |
| Business units billed for what they consume | Chargeback | Showback, which only reports |
| Unattached disk, idle gateway, no owner tag | Orphaned resource | Oversized resource, which is in use but too large |
| Physical cable between cages in a colocation facility | Cross-connect | A VPN, which is a logical tunnel |
| Portal lets teams request a subnet or rule within guardrails | Self-service | Change management, which reviews out-of-policy requests |
| How long from decision to live service | Time to market | Mean time to recovery (MTTR), a recovery measure (Lesson 19) |
Common misconceptions
- "Once we transfer a risk to a provider, it is their problem." A contract moves financial consequences and some tasks. Your accountability to customers, regulators and your board stays with you, which is why audit rights and exit plans still matter.
- "An SLA guarantees availability." An SLA guarantees a consequence when the measured SLI misses its target. Credits are often small, are often the sole remedy, and exclusions can mean an outage users felt does not count at all.
- "SLO and SLA are two names for the same thing." An SLA contains SLOs and attaches consequences to them. A target with no explicit penalty or rebate is an SLO on its own, even if a team calls it an SLA.
- "Accepting a risk means doing nothing." Acceptance is an informed decision, approved by someone with authority, recorded with a scope and an expiry, and reopened when facts change. Doing nothing without a record is an unmanaged risk.
- "EOL and EOS are the same date." End of sale usually comes first. The date that ends security fixes is the one that turns every new vulnerability into a permanent one, so record each milestone separately from the vendor bulletin.
- "Moving to subscriptions ends the need for cost planning." OpEx removes the up-front purchase, not the planning. Orphaned resources, data transfer charges and missing owner tags make unmanaged cloud spending grow month after month.
Pulling it together
- NIST lists five risk responses: acceptance, avoidance, mitigation, sharing and transfer. CompTIA's objectives list acceptance, avoidance, transference and mitigation; sharing is closely related to transference.
- Transference moves financial consequences and tasks through contracts or insurance. Accountability to customers and regulators stays with the organization.
- A waiver or exception is a documented, time-limited risk acceptance with a narrow scope, compensating controls, approval from someone with authority, and date-based and event-based review triggers.
- A risk register records each risk's likelihood, impact, score, owner, response and residual score. A compensating control usually lowers likelihood, not impact.
- EOS is when the vendor stops security fixes and support. EOL, which usually ends sales, often comes earlier.
- An SLI or KPI is a measurement, an SLO is a target set on it, an SLA attaches consequences to SLOs, and an OLA is an internal team commitment. A target with no consequence is an SLO, not an SLA.
- A 30-day month has 43,200 minutes, so 99.9 percent availability allows 43.2 minutes of downtime. The SLI's exclusions decide which minutes count.
- An ISA sets the technical and security requirements for connecting two organizations' systems and is often paired with an MOU. An MSA sets the master terms that SOWs and SLAs sit under.
- CapEx is an up-front, depreciated purchase and OpEx is a recurring cost. Which is cheaper depends on horizon, staffing and exit terms. Chargeback bills units for consumption, showback only reports it, and orphaned resources keep billing after their purpose has gone.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- NIST. (2012). Guide for Conducting Risk Assessments (SP 800-30 Rev. 1). nvlpubs.nist.gov
- NIST CSRC. (n.d.). Risk response (CSRC Glossary). csrc.nist.gov
- NIST CSRC. (n.d.). Risk mitigation (CSRC Glossary). csrc.nist.gov
- NIST. (2022). Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations (SP 800-161 Rev. 1). nvlpubs.nist.gov
- NIST. (2022). Assessing Security and Privacy Controls in Information Systems and Organizations (SP 800-53A Rev. 5). nvlpubs.nist.gov
- Amazon Web Services. (2024). Cost Optimization Pillar - AWS Well-Architected Framework. docs.aws.amazon.com
- Google (Site Reliability Engineering book). (2017). Chapter 4 - Service Level Objectives. sre.google
- Dempsey, Pillitteri, Regenscheid. (2021). Managing the Security of Information Exchanges (SP 800-47 Rev. 1). NIST. nvlpubs.nist.gov
- Microsoft Learn. (n.d.). What is Microsoft Cost Management. learn.microsoft.com
- Key terms
- Risk register
- A single, maintained list of identified risks recording each one's description, likelihood and impact scores, owner, chosen response, residual score and review date, so that risk decisions are traceable.
- Waiver or exception
- A documented, approved and time-limited departure from a policy or requirement for a stated scope, normally with compensating controls and review triggers; a formal form of risk acceptance.
- Service-level indicator (SLI)
- A carefully defined quantitative measurement of some aspect of a service, such as availability, latency, error rate or packet loss, over a stated measurement window.
- Service-level objective (SLO)
- A target value for a service-level indicator, such as 99.9 percent monthly availability. It becomes part of a service-level agreement when consequences such as credits are attached; a target with no explicit consequence stands alone as an SLO.
- Service-level agreement (SLA)
- An explicit or implicit contract that contains service-level objectives and states the consequences, such as service credits or penalties, of meeting or missing them.
- Operational-level agreement (OLA)
- An agreement between teams inside one organization that sets internal responsibilities and response times so the organization can keep the SLAs it offers.
- Interconnection security agreement (ISA)
- A signed document specifying the technical and security requirements for establishing, operating and maintaining a connection between systems of two or more organizations, usually including a topology drawing.
- CapEx and OpEx
- Capital expenditure is a one-time purchase of a long-lived asset that is depreciated over its useful life; operating expenditure is a recurring cost, such as a subscription or service fee, charged to the period in which it is incurred.
- Chargeback model
- A cost allocation method that bills each business unit's budget for its measured consumption of shared IT or network services, in contrast to showback, which only reports usage.
- Orphaned resource
- A cloud or network resource, such as an unattached disk, an unassociated public IP address or an idle VPN gateway, that keeps incurring cost after the workload it served has gone.
Keeping the Network Running: Continuity, Recovery, Failure Rates and Out-of-Band Management
- Calculate MTTD, MTTI, MTTR, MTBF, failure rate and availability from incident records, and use the results to decide where improvement effort pays off.
- Tell business continuity apart from disaster recovery, and judge a recovery design against the RPO and RTO that a business impact analysis sets.
- Design out-of-band management that shares nothing with the failures it must fix, and secure it as the most privileged part of the network.
- Explain network function virtualization, and place firewall as a service, reverse proxies, forward proxies and NAT gateways in a design, along with the continuity risk each one brings.
02:14 on a Saturday at Larkspur Cold Chain
Larkspur Cold Chain is a fictional refrigerated-food distributor, invented for this lesson. It has a headquarters data center, three warehouses, and a warehouse management system (WMS) that runs in a public cloud. At 02:14 on a Saturday, the routing process on Larkspur's primary headquarters edge router crashed. The router stayed powered on and its interfaces stayed up. Its partner router saw nothing wrong and never took over. Traffic from the warehouses to the cloud stopped.
No alert fired. The monitoring server sat inside headquarters and sent its alerts out through the same internet edge that had just failed. At 02:51 a night-shift lead at Warehouse 2 phoned the network operations center (NOC), because the handheld scanners could not load pick lists. The on-call engineer tried to reach the router over the remote-access virtual private network (VPN), but the VPN terminated on the same dead edge. She then connected through a small console server in the headquarters rack. It had its own cellular modem. Through it she opened the router's serial console, read the crash messages, and had traffic flowing again by 04:05.
Most of this lesson happened that night. The gap between 02:14 and 02:51 is detection. The time spent reading logs is investigation. The cellular console server is out-of-band management. Whether 111 minutes of outage was acceptable is a business continuity question, and what would have happened if the building itself had been lost is a disaster recovery question. Later, Larkspur replaces some of its boxes with software, and that is where network function virtualization comes in.
Exam objectives: CompTIA CloudNetX CNX-001 objective 3.1, Explain concepts related to operating and maintaining a network environment.[1] This lesson teaches these 3.1 bullets:
- business continuity, with mean time to recovery (MTTR), mean time between failures (MTBF), mean time to detect (MTTD), mean time to investigate (MTTI), recovery point objective (RPO) and recovery time objective (RTO);
- disaster recovery;
- failure rate;
- out-of-band (OOB) management;
- network function virtualization (NFV), including firewall as a service, reverse proxy, forward proxy and network address translation (NAT) gateways.
Firewall as a service appears under the NFV bullet on the exam, even though you normally consume it from a provider rather than run it yourself. Lesson 18 covered the rest of 3.1: risk, audits, contracts, cost, service delivery and service management.
Three clocks in one incident: MTTD, MTTI and MTTR
An outage starts several clocks at the same moment, and each one stops at a different point. Here is Larkspur's night as a timeline.
| Time | Event | Clock that stops |
|---|---|---|
| 02:14 | Routing process on hq-edge-rtr1 crashes; warehouse traffic to the cloud stops | Outage begins; detection and recovery clocks start |
| 02:51 | Warehouse 2 night lead phones the NOC; ticket opened | Time to detect: 37 minutes |
| 02:58 | On-call engineer acknowledges; her VPN login fails | |
| 03:06 | Engineer reaches the router console through the cellular console server | |
| 03:32 | Cause identified: crashed routing process, and failover tracking missing on hq-edge-rtr2 | Time to investigate: 41 minutes after detection |
| 03:49 | Routing process restarted; tracking restored on the standby router | |
| 04:05 | Scanners load pick lists at all three warehouses; service verified | Time to recover: 111 minutes after the outage began |
Average these intervals over many incidents and they get their exam names.
- Mean time to detect (MTTD) is the average time from the moment a fault begins to the moment someone or something knows about it, usually when an alert fires or a ticket opens. Larkspur's 37 minutes came from a monitoring design flaw, not from slow people.
- Mean time to investigate (MTTI) is the average time from detection until the team understands the cause well enough to choose a fix. It includes reaching the device, collecting evidence and ruling out other explanations. In Larkspur's case, 15 of the 41 minutes passed before the engineer even had a working session on the router.
- Mean time to recovery (MTTR) is the average time from the start of an outage until the service works again. Amazon Web Services (AWS) describes MTTR as measuring the time between the start of an outage and workload recovery.[2] Larkspur's first incident therefore took 111 minutes, counted from 02:14 and not from the phone call.
Two cautions. First, organizations draw the boundaries differently. Some start the investigation clock when someone acknowledges the alert rather than when it fires. Some expand MTTI as mean time to identify. Different tools expand the R in MTTR as repair, restore, respond or resolve, and each measures a slightly different interval. The CompTIA acronym list uses mean time to recovery. Whatever definitions you choose, write them down, so that this quarter's number can be compared with last quarter's.
Second, the M means mean. A single incident gives you a time to recover. You need several incidents before you have a mean.
Why split recovery into pieces? Because each piece points to a different fix. The recovery clock contains the other two, plus the time spent fixing and verifying. For any one incident:
time to recover = time to detect + time to investigate + time to fix and verify
For the 02:14 incident that is 37 + 41 + 33 = 111 minutes. Seventy-eight of those minutes passed before the fix began. Faster hardware replacement would not have saved a single minute of them.
Here is Larkspur's whole quarter for its warehouse-to-cloud wide area network (WAN) service.
| Incident | Fault began | Detected | Cause identified | Restored | Detect (min) | Investigate (min) | Recover (min) |
|---|---|---|---|---|---|---|---|
| 1. Edge router routing process crash | 02:14 | 02:51 | 03:32 | 04:05 | 37 | 41 | 111 |
| 2. Warehouse 2 access switch power supply failed | 10:00 | 10:05 | 10:20 | 10:45 | 5 | 15 | 45 |
| 3. Cloud VPN tunnel dropped after a rekey error | 14:30 | 14:32 | 14:40 | 14:50 | 2 | 8 | 20 |
| 4. Dynamic Host Configuration Protocol (DHCP) scope exhausted at Warehouse 3 | 21:10 | 21:26 | 21:46 | 22:14 | 16 | 20 | 64 |
| Mean | 15 | 21 | 60 |
To get the means, add each column and divide by 4.
- Detection: 37 + 5 + 2 + 16 = 60 minutes, so MTTD = 15 minutes.
- Investigation: 41 + 15 + 8 + 20 = 84 minutes, so MTTI = 21 minutes.
- Recovery: 111 + 45 + 20 + 64 = 240 minutes, so MTTR = 60 minutes.
Notice what the mean hides: one incident contributed almost half the total. Report the worst case next to the mean. Otherwise a single bad night disappears into a respectable average.
Key idea: MTTD, MTTI and MTTR are averages over many incidents. For each incident, recovery time is the sum of detection, investigation and fix time, so the largest piece tells you where to invest.
Failure rate and MTBF: how often things break
AWS's reliability guidance starts from the assumption that failures will occur in any system of reasonable complexity.[3] So the useful question is how often. Two numbers answer it from opposite ends.
- Failure rate, written with the Greek letter lambda (λ), is the number of failures per unit of operating time. Suppose 400 switches together run 3,504,000 hours in a year and 10 of them fail. The observed failure rate is 10 ÷ 3,504,000, about 2.85 failures per million operating hours.
- Mean time between failures (MTBF) is the average operating time between one failure and the next for a repairable item. For items that are thrown away rather than repaired, the matching term is mean time to failure (MTTF). When the failure rate is constant, MTBF = 1 ÷ λ. The two are reciprocals, so a high failure rate means a low MTBF.
Worked example. Larkspur plans to buy 400 access switches. The data sheet (an example) gives an MTBF of 350,000 hours. A year has 8,760 hours.
- Fleet operating hours per year: 400 × 8,760 = 3,504,000 hours.
- Expected failures per year: 3,504,000 ÷ 350,000 = about 10.
- Annualized failure rate per switch: 8,760 ÷ 350,000 = 0.025, or 2.5 percent a year.
That is the number an architect actually needs: about ten dead switches a year. They arrive at random, so two or three may land in the same month. The number drives how many spares sit in each intermediate distribution frame (IDF), and what the support contract from lesson 18 has to cover.
Now the trap. 350,000 hours is about 40 years, but that does not mean a switch lasts 40 years. MTBF describes how often failures occur in a population during its useful life. Under a constant failure rate, the probability that one unit survives a period t is e-t/MTBF. At t = MTBF that is e-1, about 0.37. So even if nothing ever wore out, only about 37 percent of the units would still be running at the 40-year mark. And things do wear out.
Reliability engineers describe how the failure rate changes over a product's life as a bathtub curve. On a graph of failure rate against age, it is high on the left, flat across the middle and rising on the right:
- Early failures (infant mortality): manufacturing defects show up in the first weeks. Burn-in testing before installation catches some of them.
- Useful life: failures are random and the rate is roughly constant. This is the only stretch where MTBF = 1 ÷ λ holds, and the only stretch where a data-sheet MTBF means anything.
- Wear-out: fans, power supply capacitors and batteries age, and the rate climbs. This is one practical reason to refresh equipment around the end-of-life (EOL) and end-of-support (EOS) dates covered in lesson 18.
Data-sheet MTBF figures are often predictions calculated from component models at a stated operating temperature, not counts of failures in the field. Your own measured failure rate, taken from incident records like Larkspur's, is better evidence for your environment. A hot, dusty IDF will miss the data sheet in the wrong direction.
From failure rate to availability: the nines
AWS's reliability pillar defines availability as the percentage of time that a workload is available for use.[4] Availability brings the last two sections together: how often things fail (MTBF) and how long they stay failed (MTTR).
Availability = MTBF ÷ (MTBF + MTTR)
AWS gives an example: an MTBF of 150 days with an MTTR of 1 hour gives an availability of about 99.97 percent.[4] Check it yourself. 150 days is 3,600 hours, and 3,600 ÷ 3,601 = 0.99972, which is 99.97 percent.
Now apply the formula to Larkspur's quarter, step by step.
- The quarter had 90 days, which is 2,160 hours.
- Total downtime was 240 minutes, or 4 hours, so the service was up for 2,156 hours.
- MTBF = 2,156 ÷ 4 failures = 539 hours.
- MTTR = 1 hour.
- Availability = 539 ÷ 540 = 99.81 percent.
You get the same answer directly as 2,156 ÷ 2,160, which is a useful cross-check.
| Availability | Downtime per year | Downtime per 30-day month |
|---|---|---|
| 99% | 87.6 hours (3.65 days) | 7.2 hours |
| 99.9% (three nines) | 8.76 hours (8 h 45.6 min) | 43.2 minutes |
| 99.95% | 4.38 hours (4 h 22.8 min) | 21.6 minutes |
| 99.99% (four nines) | 52.6 minutes | 4.3 minutes |
| 99.999% (five nines) | 5.3 minutes | 26 seconds |
Before you compare two availability numbers, check what counts as downtime. AWS notes that some customers exclude scheduled downtime, such as planned maintenance, from the calculation.[4] A provider's 99.95 percent that excludes maintenance windows and your internal 99.95 percent that counts them are not the same promise.
Here is the flip. Larkspur's 99.81 percent missed its 99.9 percent service-level objective (SLO). There are two ways to close the gap.
- Double MTBF to 1,078 hours: 1,078 ÷ 1,079 = 99.91 percent.
- Halve MTTR to 30 minutes: 539 ÷ 539.5 = 99.91 percent.
The two results are identical, because availability depends only on the ratio of MTTR to MTBF. Doubling MTBF means fewer failures: better hardware, more redundancy, fewer risky changes. Halving MTTR means faster detection, faster access and rehearsed fixes. In Larkspur's worst incident, 78 of the 111 minutes went on detection and investigation, so the MTTR half is the cheaper one to buy.
Real services depend on chains of components. When every component in the chain must work, multiply their availabilities. AWS shows three dependencies at 99.99 percent each combining to 99.97 percent.[4] When independent redundant components back each other up, the theoretical availability is 100 percent minus the product of their unavailabilities. For two parallel components, that is 1 - (1 - A1) × (1 - A2), where A1 and A2 are their availabilities.[4]
| Design | Calculation | Availability |
|---|---|---|
| One internet service provider (ISP) circuit (99.9%), then router (99.99%), then firewall (99.99%) | 0.999 × 0.9999 × 0.9999 | 99.88% |
| Two independent ISP circuits (99.9% each), then router, then firewall | (1 - 0.001 × 0.001) × 0.9999 × 0.9999 | 99.98% |
| Two circuits from different carriers sharing one conduit | The circuits fail together, so they behave like one | About 99.88%, or worse |
The second row is the textbook answer. The third row is what many real networks actually have. The parallel formula assumes the failures are independent. Two circuits that share the last 300 meters of conduit both fail when a backhoe arrives, so the redundancy exists only on paper. AWS frames the remedy as fault isolation: limiting the impact of a component or system failure to a defined boundary, so that components outside it are unaffected.[3] For a network, that means diverse building entrances, separate conduits, separate power feeds and separate cloud zones, each one verified rather than assumed.
Key idea: availability is MTBF ÷ (MTBF + MTTR). Components in series multiply and pull it down. Independent components in parallel push it up. A shared physical path quietly turns parallel back into series.
Business continuity and disaster recovery are different plans
Five weeks after the router incident, at 16:20 on a weekday, a sprinkler pipe split above Larkspur's headquarters data center. Facilities staff pressed the emergency power off (EPO) button to protect people from water near live power. Every device in the room went dark at once: both edge routers, both firewalls, the monitoring server and the on-premises database servers. Redundant pairs inside one room do not help when the room is what fails.
The first incident was an availability problem. This one is a disaster. AWS draws the line like this: disaster recovery measures objectives for one-time events, while availability objectives measure mean values over a period of time.[5] Its examples of disaster events are natural disasters, large-scale technical failures, and human threats such as attack or error.[2]
Business continuity and disaster recovery are often lumped together as BC/DR, but they answer different questions. The National Institute of Standards and Technology (NIST) Special Publication 800-34 Revision 1, the US federal contingency planning guide from 2010, separates them by scope. It calls facility-level planning for information systems the disaster recovery plan.[6] It assigns recovery of mission essential functions to continuity of operations (COOP) plans or business continuity plans.[6] AWS states the relationship in one line: the objective of disaster recovery is business continuity.[5]
| Document | Question it answers | Usual owner | Larkspur example (fictional) |
|---|---|---|---|
| Business impact analysis (BIA) | Which processes matter most, and how much downtime and data loss can each tolerate? | Business owners, with IT | Order picking tolerates 2 hours down and 15 minutes of lost records; the HR intranet tolerates 3 days |
| Business continuity plan (BCP) | How does the business keep operating while systems are degraded or gone? | Business leadership | Dispatchers switch to printed manifests and phones; trucks wait at the docks with refrigeration running |
| Disaster recovery plan (DRP) | How do we restore technology after losing a site or a major platform? | IT | Bring up the WMS network path in a second cloud region and re-route the warehouses to it |
| Information system contingency plan (ISCP), NIST's term | How do we recover one specific system? | System owner | Step-by-step restore of the WMS database and its firewall rules |
| Incident response plan | How do we handle a security incident? | Security team | Used if the outage turns out to be an attack |
Notice the direction of dependency. The BIA sets the numbers. The BCP says how the business survives the gap. The DRP is the technology half that must close the gap within those numbers. A network team that writes a polished DRP without a BIA is guessing what to recover first. NIST's guide also uses maximum tolerable downtime (MTD): the longest a business process can be disrupted before the damage becomes unacceptable. The RTO for any system that the process depends on must fit inside the MTD.
Setting RPO and RTO, and judging a design against them
Two numbers from the BIA drive every recovery design. Both are set by the organization, not by the technology.
- Recovery time objective (RTO): AWS defines it as the maximum acceptable delay between the interruption of service and restoration of service.[2] It looks forward from the disaster: how long can we be down?
- Recovery point objective (RPO): AWS defines it as the maximum acceptable amount of time since the last data recovery point.[2] It looks backward from the disaster: how much recent data can we afford to lose?
Picture a horizontal timeline with the disaster in the middle. To the left sits the last good recovery point, which is a backup or a replicated copy. The distance from that point to the disaster is the data you lose, and it must not exceed the RPO. To the right sits the moment service is restored. The distance from the disaster to that moment is downtime, and it must not exceed the RTO.
Worked example 1: the warehouse management system. Larkspur's BIA (fictional figures) sets an RPO of 15 minutes, because losing more pick confirmations than that sends trucks out with the wrong loads. It sets an RTO of 2 hours, because refrigerated trucks can idle at the dock for about that long. When the pipe burst, the design was a full database backup every night at 01:00, copied off site, plus a restore onto rebuilt servers that took 9 hours in the last test.
- Data loss. The pipe burst at 16:20, so the last recovery point was 15 hours 20 minutes old. That exceeds 15 minutes. Worse, a design must be judged by its worst case: a disaster at 00:59 would lose almost 24 hours. The RPO fails.
- Downtime. A 9-hour restore exceeds 2 hours. The RTO fails.
- Fix. Replicate the database continuously to a standby in a cloud region, so that the worst-case loss is the replication lag of a few minutes. Keep a standby environment, network path included, ready to take traffic, so that failover takes tens of minutes. Both objectives are now met, at a higher monthly cost.
Worked example 2: same backups, different system. The human resources (HR) intranet uses exactly the same nightly backup and 9-hour restore. Its BIA says staff can manage without it for 3 days and can re-enter a day of edits by hand, so its RPO is 24 hours and its RTO is 72 hours. The worst-case loss is just under 24 hours and the restore takes 9, so the identical design passes. A design is never good or bad on its own. It is good or bad against a stated objective, which is why the BIA comes first. AWS makes the same point: the probability of disruption and the cost of recovery decide how much disaster recovery a workload is worth.[3]
Example 1 hides one more trap. Replication copies everything, mistakes included. If ransomware or a bad script corrupts the database, the replica is corrupted seconds later. Replication protects you against losing a site. Point-in-time backups protect you against losing correctness. AWS advises backing up regularly and testing the backup files, to confirm you can recover from both logical and physical errors.[3]
Finally, keep RTO and MTTR apart. Both run from the start of an outage to recovery. But AWS notes that MTTR is a mean taken over several availability-impacting events, while RTO is a target, the maximum allowed for a single event.[2] MTTR is measured after the fact. RTO is promised in advance. A team can have a 20-minute MTTR for everyday faults and still miss a 2-hour RTO on the one day the building floods.
One paperwork note: the CNX-001 acronym list prints RTO as 'Real Time Objective', but the objective text and standard usage say recovery time objective, and that is the term to answer with.
Disaster recovery for the network itself
Recovery designs range from cheap and slow to expensive and fast. The site names below come from traditional data center planning. The cloud names that providers such as AWS use map onto them closely.
| Strategy | What is ready before the disaster | Relative recovery speed | Relative cost | Fits |
|---|---|---|---|---|
| Cold site, or backup and restore in the cloud | Space, power and connectivity, or only backups and templates; equipment and data must be brought in or built | Slowest | Lowest | RTOs measured in days |
| Warm site, or pilot light and warm standby in the cloud | Core infrastructure running at reduced size; data replicated or recent | Middle | Medium | RTOs measured in hours |
| Hot site | A full duplicate environment with current data, ready to take load | Fast | High | RTOs under an hour |
| Active-active, or multi-site | Both sites serve traffic all the time | Near-immediate; traffic shifts away from the lost site | Highest | Services where any outage is costly |
For a network team, the data in disaster recovery is more than databases. A DRP that restores the application but not its network path has restored nothing anyone can reach. Larkspur's post-flood review listed what the network itself had to recover:
- Device configurations. AWS's advice to back up data, applications and configuration to meet RTO and RPO applies directly to routers, switches and firewalls.[3] Configuration has its own RPO. If configs are backed up weekly but changed daily, restoring from backup silently drops up to a week of changes. Back them up after every change; the automation in lesson 21 makes that routine.
- Addressing and naming. Internet Protocol (IP) address management (IPAM) data, DHCP scopes and Domain Name System (DNS) zones. If DNS is how users find the recovered service, the record's time to live (TTL) sets a floor on how fast clients move. With a 1-hour TTL, clients that cached the old answer may keep trying the dead site for up to an hour.
- Routing and circuits. How the recovery site's prefixes are advertised, for example by Border Gateway Protocol (BGP) from the DR location, and whether its circuits are already installed. A new circuit can take weeks to order, so it cannot be part of a 2-hour RTO.
- Security state. Firewall rules, VPN profiles, certificates and keys, so that the recovered environment is not a less-protected copy of the original.
- Management access. Out-of-band access and authentication that survive the loss of the primary site, covered in the next section.
- Spares and runbooks. Pre-staged hardware, and step-by-step procedures that someone other than the resident expert can follow at 3 a.m.
Some organizations without a second site of their own sign a reciprocal agreement with a similar organization, often set up through a memorandum of understanding (MOU). NIST warns that such an agreement needs care, because each site must be able to support the other, in addition to its own workload, in the event of a disaster.[6] It also notes that connecting the two parties' systems may call for interconnection security agreements (ISAs), the agreement type lesson 18 introduced.[6]
A DR plan that has never been run is only a hypothesis. Testing ranges from a tabletop exercise, where the team talks through a scenario around a table, to a partial failover of one system, to a full failover in which production really moves. AWS sets a demanding standard: recovery processes should be exercised as thoroughly as normal production processes.[3] Larkspur had tested its database restore exactly once. That single test is the only reason anyone knew a restore took 9 hours.
Key idea: the BIA sets RPO and RTO. The DRP must meet them for the network path as well as the data. Only a test tells you whether it does.
Out-of-band management: a path that does not depend on the network it repairs
Go back to 02:58 on the first night. The engineer's normal route to the router was Secure Shell (SSH) over the VPN, and it ran through the very device that had failed. That route is in-band management: management traffic shares the production network. It is cheap and convenient, and it fails exactly when you need it most. Out-of-band management gives administrators a separate path to their devices, one that keeps working when the production network does not.
Dell's networking guide describes three kinds of management network for reaching devices: console servers, Ethernet out-of-band and Ethernet in-band.[7] They differ in how much they share with production.
| Method | How you reach the device | Still works if the device's IP configuration is broken? | Still works if the production network is down? | Typical use |
|---|---|---|---|---|
| Ethernet in-band | SSH, Hypertext Transfer Protocol Secure (HTTPS) or Simple Network Management Protocol (SNMP) to an address on a production interface | No | No | Everyday management |
| Ethernet out-of-band | A dedicated management port on a separate management switch and network | Usually, because the management port has its own configuration; not if that configuration is what broke | Yes, if the management network has its own uplink | Day-to-day management that survives faults in the data path |
| Console server (serial) | A serial cable runs from the console server to each device's console port; you connect to the console server | Yes; the console needs no IP configuration and works even during boot | Yes, if the console server has an independent uplink such as cellular | Last-resort recovery, boot problems, bad configuration pushes |
| Baseboard management controller (servers and appliances) | A dedicated network port on the server's management chip | Yes; it is independent of the operating system | Yes, on a separate management network | Power control, remote console, firmware updates, hardware health |
For servers and many appliances, the out-of-band endpoint is the baseboard management controller (BMC), a management chip on the motherboard with its own network port. The Intelligent Platform Management Interface (IPMI) is the standard protocol used to talk to a BMC over the network.[8] Vendor BMCs include HPE iLO, Dell iDRAC and Lenovo XCC, all of which support IPMI.[8] Qumulo's hardware guide notes that IPMI allows out-of-band maintenance access even when the node is powered off, as long as it is still connected to power.[8] Through the BMC, an administrator can power-cycle a hung server, watch its console through a remote keyboard-video-mouse (KVM) session, mount installation media and read hardware sensors.
A typical way to verify a BMC's settings on a Linux host is ipmitool, an open-source IPMI client. The channel number differs between platforms, so check the vendor's documentation before you use it:
ipmitool lan print 1 # show the BMC's network settings on channel 1
ipmitool channel getaccess 1 # show access settings for channel 1
The wiring rule is simple. Qumulo's guide tells installers to connect all out-of-band management ports to a dedicated management switch that is separate from the data network.[8] Addressing deserves the same thought. BMCs often ship set to request an address by DHCP, as Qumulo's nodes do by default.[8] On an OOB network, static addresses avoid depending on a production DHCP server that may be part of the outage.
After the router incident, Larkspur redesigned its OOB network. The design below is an example, using documentation addresses.
| Element | Larkspur design | Why it is built that way |
|---|---|---|
| Management switch | One per site, separate from the data switches, connecting every management port and BMC | Data-network faults do not reach it |
| Console server | A console server in each main distribution frame (MDF) and IDF rack, serial-cabled to every router, switch and firewall | Works when a device has no usable IP configuration |
| Independent uplink | A cellular modem on each console server, plus a separate small business internet line at headquarters | Shares nothing with the WAN or internet edge it may need to repair |
| Addressing | Static addresses from 198.51.100.0/24 for the headquarters management network | No dependence on production DHCP or DNS; engineers can connect by address |
| Authentication | Terminal Access Controller Access Control System Plus (TACACS+) servers at two different sites, multifactor authentication (MFA) on the OOB VPN, and one local break-glass account whose password is kept in a sealed vault | Logins must still work if the main site and its authentication servers are lost |
| Power control | Switched power distribution units (PDUs) on the OOB network | A hung device can be power-cycled remotely |
| Time and logs | The console server and all devices sync to Network Time Protocol (NTP); console sessions are logged | Incident timelines like the one above depend on correct clocks |
| Console server port | Device | Device port | Serial speed |
|---|---|---|---|
| 1 | hq-edge-rtr1 | Console (RJ-45) | 9600 baud, a common default; confirm for each model |
| 2 | hq-edge-rtr2 | Console (RJ-45) | 9600 baud |
| 3 | hq-fw1 | Console (RJ-45) | 9600 baud |
| 4 | hq-fw2 | Console (RJ-45) | 9600 baud |
| 5 | hq-core-sw1 | Console (Universal Serial Bus, USB) | 9600 baud |
An OOB network is a master key. Anyone who reaches a console port or a BMC can reboot devices and change their configurations. Console access often also allows a device's password-recovery procedure. Qumulo's guide warns that exposing the out-of-band management port on a public local area network (LAN) can have serious security implications.[8] Treat the OOB network as the most privileged zone you have:
- Never put console servers or BMCs on the internet or on the user network. Reach them only through a dedicated VPN or a hardened jump host protected by MFA.
- Use centralized authentication, authorization and accounting (AAA) with a separate account for each person and full session logging. Replace every default credential before the device is cabled.
- Filter the management network with access control lists (ACLs), so that only the jump hosts and management tools can reach it.
- Do not give the cellular modem an open public address. Use the carrier's private network option or an encrypted tunnel back to the NOC.
- Test the path on a schedule. An OOB path nobody has used in a year often has an expired subscriber identity module (SIM) card, a forgotten password or a cable moved during a rack change.
The design rule underneath all this is dependency. OOB is only independent if everything it relies on is independent too: uplink, power, authentication, name resolution (or the ability to connect by address), and the documentation that says which port is which. Larkspur's original console server authenticated only against a TACACS+ server inside headquarters. If the engineer had needed it on the day of the flood, it would have rejected her login, because the server it asked was under water. That is why the redesign added a second authentication server at another site and a local break-glass account.
You will also see 'out of band' used in a looser sense. AWS suggests replacing a failed cloud resource with a new one, then carrying out the analysis on the failed resource out of band, meaning away from the production path.[3] It is the same idea applied to investigation: restore service first, then study the failed part where it cannot hurt anyone. This lowers MTTR, because the investigation no longer sits between the fault and the recovery.
Key idea: out-of-band management only helps if it shares nothing with the failure it is meant to fix. That means a separate switch, a separate uplink, separate power, and authentication that still works when the main site is gone.
Network function virtualization: the function without the box
A network function is a job the network performs on traffic: routing, firewalling, address translation, load balancing, proxying or VPN termination. For decades each job came in its own appliance, which is now called a physical network function (PNF). Network function virtualization (NFV) runs the same job as software, called a virtualized network function (VNF), on general-purpose servers, hypervisors or cloud instances. The European Telecommunications Standards Institute (ETSI) publishes the reference architecture. Its management and orchestration specification, GS NFV 006, reached version 4.5.1 in May 2024.[9]
| Component | What it is | Example |
|---|---|---|
| NFV infrastructure (NFVI) | The compute, storage and network resources, plus the virtualization layer, that VNFs run on | A hypervisor cluster at a regional site, or cloud instances |
| Virtualized network function (VNF) | A network function implemented in software | A virtual firewall, a virtual router, a software load balancer |
| VNF Descriptor (VNFD) | A template describing what a VNF needs in order to be deployed and run | Two virtual central processing units (CPUs), 8 GB of memory, three interfaces, scale out to four instances |
| VNF manager (VNFM) | Runs the lifecycle of VNF instances: create, scale, heal and remove them | Replaces a failed firewall instance automatically |
| Virtualized infrastructure manager (VIM) | Manages the NFVI's virtual compute, storage and network resources | A cloud platform's resource manager, such as OpenStack in many operator networks |
| NFV orchestrator (NFVO) | Manages whole network services built from several VNFs, and the resources behind them | Deploys a firewall, proxy and load balancer together as one service |
The standard spells out how these parts cooperate. Each VNF's deployment and operational requirements are captured in its VNF Descriptor.[9] The management and orchestration layer (NFV-MANO) then manages each VNF instance's lifecycle according to that descriptor.[9] The VIM exposes management of the virtualized compute, storage and networking resources of the infrastructure.[9] The NFVO handles the lifecycle of complete network services and their parts.[9] A forwarding graph specifies network forwarding paths that steer traffic through a chain of functions, for example firewall, then proxy, then load balancer. This is called service chaining.[9]
Why does NFV appear under operating and maintaining a network? Because it changes the recovery arithmetic in both directions.
- It lowers MTTR. A failed VNF instance can be replaced from its descriptor in minutes. A failed appliance means a return-merchandise process and a courier.
- It helps the RTO. The same descriptor can deploy the function at the DR site or in another cloud region, so the recovery site does not need a matching box waiting on a shelf.
- It scales. More instances can be added under load and removed afterward.
- It adds dependencies. The hypervisor host, the VIM, the orchestrator and the cloud region all join the series chain from the availability section. If both members of a redundant VNF pair run on the same physical host, they share a fault. Anti-affinity rules, which place the pair on different hosts or zones, are fault isolation applied to software.
- It has performance limits. Packet processing on general-purpose CPUs can need hardware acceleration at high throughput, and VNFs are often licensed by throughput or virtual CPU count, which affects cost planning.
Four functions under NFV: firewall as a service, reverse proxy, forward proxy and NAT gateway
The objective lists four items under the NFV bullet, all of them now usually delivered as software or as a service. The fastest way to tell them apart is to ask two questions. Whom does the function stand in front of? And which side starts the connections?
| Function | Stands in front of | Who starts the connections | Main jobs | Continuity question to ask |
|---|---|---|---|---|
| Firewall as a service (FWaaS) | Sites and users, from the provider's cloud points of presence | Either side, as policy allows | Stateful filtering, application control, intrusion prevention and uniform resource locator (URL) filtering, run and scaled by a provider | If the nearest point of presence fails, does traffic move to another one automatically? |
| Reverse proxy | Servers | Outside clients, inbound | Transport Layer Security (TLS) termination, load balancing, caching, web application firewall (WAF) inspection, hiding the origin servers | Is the proxy itself clustered behind a virtual IP (VIP), or is it a single point of failure in front of a redundant server pool? |
| Forward proxy | Clients | Inside users, outbound | URL filtering, logging, caching and data loss prevention (DLP) on outbound traffic | If it fails, do users fail open (go straight to the internet) or fail closed (lose the web)? |
| NAT gateway | Private subnets in a cloud network | Inside instances, outbound only | Lets instances without public addresses reach the internet; replies return, but unsolicited inbound connections do not | With zonal gateways, is there one per availability zone, or do all zones depend on one? |
Firewall as a service moves the firewall function into a provider's cloud. Branches and remote users send their traffic to the provider's nearest point of presence. The provider runs and scales the firewall, and you write the policy. It is often one component of a secure access service edge (SASE) or secure service edge (SSE) offering. Do not confuse it with a virtual firewall appliance that you deploy in your own virtual private cloud (VPC). That is NFV in the strict sense, and you still operate it: you patch it, scale it and keep its pair on separate hosts. FWaaS is a service you consume. A virtual appliance is a function you run. The exam lists FWaaS under NFV because the provider itself delivers the firewall as virtualized software.
A reverse proxy receives connections on behalf of servers. The public DNS name resolves to the proxy. The proxy opens its own connection to a server in the pool, so the servers see the proxy's address, and the original client address is usually passed along in a header. Many load balancers are reverse proxies with health checks, as you saw in Network+. For continuity, the classic mistake is a single proxy in front of six redundant web servers: the pool survives any one server failure, but the proxy is a series component with no partner.
A forward proxy makes outbound requests on behalf of clients. It can be explicit, where browsers are configured to use it, or transparent, where the network intercepts traffic without the client knowing. Its continuity question is a security question too. If the proxy fails and browsers fall back to direct internet access, the business keeps working but filtering and logging stop. If it fails closed, filtering holds but the business loses the web. Decide which you want in advance, write it into the BCP, and if you choose fail-open, record it as an accepted risk, the process covered in lesson 18.
A NAT gateway is a managed cloud service that performs port address translation (PAT) for instances in private subnets. Many private addresses share the gateway's public address for outbound connections. Replies come back through the gateway's translation table, but nothing on the internet can open a new connection inward. The original type is a zonal NAT gateway, which lives in one availability zone. If private subnets in other zones route through it, losing that zone also cuts their outbound access, so the resilient design with zonal gateways is one gateway per zone, with each zone's subnets routing to their own. Providers have since added regional or multi-zone NAT gateway variants that span zones themselves, so check your provider's current documentation for which type you are using and how it behaves when a zone fails. The NAT gateway and the reverse proxy point in opposite directions. The NAT gateway lets the inside reach out, and the reverse proxy lets the outside reach in.
After the flood, Larkspur used all four. Warehouse internet security moved to FWaaS, so losing headquarters no longer removes the warehouses' firewall. The customer delivery portal now sits behind a pair of reverse proxies in two cloud zones. Office web traffic goes through the FWaaS provider's forward-proxy filtering instead of an appliance in the flooded room. And the WMS instances, which have no public addresses, reach the shipping carriers' tracking interfaces through a zonal NAT gateway in each zone.
Key idea: ask whom a function stands in front of and who starts the connections. Reverse proxies front servers for inbound traffic, forward proxies front clients for outbound traffic, NAT gateways give private subnets outbound-only access, and FWaaS is a firewall someone else runs.
Exam cues: words in the stem and where they point
| If the stem says | Think | Not to be confused with |
|---|---|---|
| Average time from the fault to someone knowing about it | MTTD | MTTI, which starts after detection |
| Time spent finding the cause after the alert | MTTI | MTTD |
| Average time to restore service, measured over many incidents | MTTR | RTO, a target for one event |
| Maximum acceptable downtime after a single disaster, set by the business | RTO | MTTR |
| How much data can be lost; time since the last backup or copy | RPO | RTO |
| Average operating hours between failures; a data-sheet hours figure | MTBF | MTTR |
| Failures per hour, or failures per year across a fleet | Failure rate (λ = 1 ÷ MTBF) | MTBF |
| Keep the business operating; manual workarounds; people and processes | Business continuity plan | Disaster recovery plan |
| Restore technology after losing a site or platform | Disaster recovery plan | Business continuity plan |
| Reach a device when the production network or its configuration is broken; console server; cellular | Out-of-band management | In-band SSH, or a virtual local area network (VLAN) on the same links |
| Power-cycle a hung server; remote console with the operating system not running | BMC over IPMI (iLO, iDRAC, XCC) | Remote Desktop Protocol (RDP) or SSH to the operating system |
| Run a firewall or router as software on standard servers, deployed from templates | NFV (a VNF) | FWaaS, which a provider runs |
| Firewall delivered from a provider's cloud as a subscription | Firewall as a service | A virtual appliance you operate |
| In front of web servers; TLS termination; hides the origin | Reverse proxy | Forward proxy |
| In front of users; filters and logs outbound web traffic | Forward proxy | Reverse proxy |
| Private instances need outbound internet access, with no inbound connections | NAT gateway | Reverse proxy, or public addresses on each instance |
Common misconceptions
- "An MTBF of 350,000 hours means each switch lasts 40 years." MTBF describes how often failures occur across a population during its useful life. Under a constant failure rate, only about 37 percent of units survive to the MTBF, and wear-out is excluded entirely. Use it to predict failures across a fleet, not the lifespan of one unit.
- "MTTR and RTO are the same number." Both run from the start of an outage to recovery, but MTTR is a measured average over many incidents and RTO is a maximum promised in advance for one event. A good MTTR for everyday faults says little about whether you can meet the RTO for a site loss.
- "Two of everything means high availability." The parallel formula assumes independent failures. Two routers in one room, two circuits in one conduit or two VNFs on one host fail together, so the pair behaves like a single component.
- "Continuous replication meets a tight RPO, so we can drop backups." Replication copies corruption and deletions within seconds. It protects against site loss, not against logical errors, so you still need tested point-in-time backups.
- "A management VLAN is out-of-band management." A VLAN carried on the same switches and the same WAN circuit fails with them. OOB needs its own path, and its authentication, addressing and power must not depend on the production site either.
- "NFV and firewall as a service are the same thing." NFV is a way of building functions as software that you may run yourself. FWaaS is a firewall consumed from a provider, even though the exam lists it under NFV. A virtual firewall in your own VPC is something you operate, not FWaaS.
What you now know
- For one incident, time to recover = time to detect + time to investigate + time to fix and verify, all measured from the start of the outage. MTTD, MTTI and MTTR are means over many incidents, so write down where each clock starts and stops.
- Failure rate (λ) and MTBF are reciprocals when the failure rate is constant. Expected fleet failures per year = units × 8,760 ÷ MTBF; for 400 units at 350,000 hours, that is about 10.
- MTBF holds only in the flat, useful-life part of the bathtub curve, and it is not a lifespan: only about 37 percent of units survive to the MTBF.
- Availability = MTBF ÷ (MTBF + MTTR). Halving MTTR gives exactly the same gain as doubling MTBF, because only their ratio matters.
- Components in series multiply (three at 99.99 percent give about 99.97 percent). Independent parallel components give 100 percent minus the product of their unavailabilities (two at 99.9 percent give 99.9999 percent). A shared conduit or room cancels the independence.
- A business continuity plan keeps the business operating; a disaster recovery plan restores technology after a site or platform is lost. The BIA comes first and sets the RTO and RPO, which must fit within the maximum tolerable downtime.
- RPO looks back to the last good recovery point, and RTO looks forward to restored service. Judge a design by its worst case. The same nightly backup can fail one system's BIA and pass another's.
- Out-of-band management uses console servers (which need no IP configuration), dedicated management ports on a separate switch, and BMCs reached over IPMI (which work while the server is powered off). It needs an independent uplink, power and authentication, and it must be secured as the most privileged zone.
- NFV runs network functions as VNFs that MANO deploys from a VNFD on infrastructure managed by a VIM. FWaaS is provider-run, reverse proxies front servers for inbound traffic, forward proxies front clients for outbound traffic, and NAT gateways give private subnets outbound-only access: one zonal gateway per zone, or a regional variant where the provider offers one.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Amazon Web Services. (n.d.). Disaster Recovery (DR) objectives - Reliability Pillar. docs.aws.amazon.com
- Amazon Web Services. (2025). Failure management - AWS Well-Architected Framework. docs.aws.amazon.com
- Amazon Web Services. (n.d.). Availability - Reliability Pillar. docs.aws.amazon.com
- Amazon Web Services. (n.d.). Introduction - Disaster Recovery of Workloads on AWS: Recovery in the Cloud. docs.aws.amazon.com
- Marianne Swanson et al. (2010). Contingency Planning Guide for Federal Information Systems (SP 800-34 Rev. 1). NIST. nvlpubs.nist.gov
- Dell Technologies. (n.d.). Management Networks for Dell Networking. dell.com
- Qumulo. (n.d.). Configuring Out-of-Band Management. docs.qumulo.com
- ETSI. (2024). ETSI GS NFV 006 V4.5.1: Network Functions Virtualisation (NFV); Management and Orchestration; Architectural Framework Specification. etsi.org
- Key terms
- Mean time to detect (MTTD)
- The average time, over many incidents, from the moment a fault begins until an alert, ticket or person registers it.
- Mean time to investigate (MTTI)
- The average time, over many incidents, from detection of a fault until its cause is understood well enough to choose a fix. Some organizations start this clock at acknowledgment instead of detection.
- Mean time to recovery (MTTR)
- The average time, over many incidents, from the start of an outage until service is restored and verified. It includes detection, investigation and repair.
- Mean time between failures (MTBF)
- The average operating time between failures of a repairable item. Under a constant failure rate it equals 1 divided by the failure rate, and it is not a prediction of one unit's lifespan.
- Failure rate
- The number of failures per unit of operating time, written as lambda. It is used to predict how many units in a fleet will fail per year.
- Recovery point objective (RPO)
- The maximum acceptable amount of time between the last good recovery point and a disaster, which is the most recent data the business can afford to lose.
- Recovery time objective (RTO)
- The maximum acceptable time between an interruption of service and its restoration for a single event. The business sets it in advance as a target.
- Disaster recovery plan
- The plan for restoring information technology, including networks, systems and data, after losing a site or a major platform. It serves the wider business continuity plan.
- Out-of-band management
- Administrative access to devices over a path separate from the production network, such as console servers, dedicated management ports or baseboard management controllers. It keeps working when production fails.
- Network function virtualization (NFV)
- Running network functions such as routing, firewalling, NAT or load balancing as software instances on general-purpose infrastructure, deployed and managed from templates by an orchestration layer.
Monitoring Tools and Performance Techniques
- Choose between traffic mirroring, flow export, SNMP, streaming telemetry and log collection by matching what each source can see to the question a scenario asks.
- Calculate bandwidth utilization from SNMP counters, recognize counter wrap, and compute latency, loss and jitter from probe results.
- Design a log pipeline that uses syslog, JSON, a SIEM and a data lake for the jobs each does best, and protect it against loss, forgery and eavesdropping.
- Explain how QoS classifies, marks, queues, polices and shapes traffic, and use alerts, dashboards, status pages and QoS counters for proactive, continuous monitoring.
What syslog will not tell you
RFC 5424 is the syslog standard, published in March 2009 in the Internet's Request for Comments (RFC) series. It states one of its basic principles in a single line: the protocol does not acknowledge delivery.[1] A router sends a message. If the collector never receives it, neither side finds out. NIST's log management guide, Special Publication 800-92, adds that most syslog implementations send logs over UDP, the User Datagram Protocol, which promises neither arrival nor order.[2] So the one log line that would have explained last night's outage may have existed only in a router's memory, for a few seconds, before it was lost on a congested link.
That gap runs through this whole lesson. Every monitoring source sees part of the network and misses the rest. A packet copy sees everything on one link and nothing on the others. A flow record sees every conversation but none of the content. An SNMP counter sees totals but not who caused them. A log sees only what a device chose to report. Most scenario questions on this objective come down to one decision: which source can actually see the thing the question asks about?
Exam objectives: CNX-001 objective 3.2, "Given a scenario, use tools and techniques related to monitoring and performance."[3] The objective lists traffic analysis (traffic mirroring, throughput, latency, loss, jitter, network flows, reachability); log collection (centralized logging, security information and event management or SIEM, syslog, JavaScript Object Notation or JSON, data lake); the Simple Network Management Protocol (SNMP); quality of service (QoS); alerting; telemetry; dashboards and status pages; metrics (resource utilization and bandwidth utilization); continuous monitoring; and reactive versus proactive monitoring.
The table below compares the five ways data reaches a monitoring system. They are traffic mirroring, through a switch's Switched Port Analyzer (SPAN) session or a network test access point (TAP); flow export, with NetFlow, IP Flow Information Export (IPFIX) or sFlow; SNMP; streaming telemetry; and logs. The lesson then explains each row, then where the data goes, then what you do with it.
| Source | What it captures | Push or pull | Level of detail | Main blind spot |
|---|---|---|---|---|
| Traffic mirroring (SPAN or TAP) | Copies of whole packets on chosen links | Copies pushed to a tool | Highest: headers and payload | Only the links you mirror; storage grows fast; encrypted payloads stay unreadable |
| Network flows (NetFlow, IPFIX, sFlow) | Summaries of conversations: addresses, ports, protocol, bytes, packets, times | Pushed by an exporter | Medium: who talked to whom, and how much | No payload; sampling can miss short flows |
| SNMP polling and traps | Counters and status values held by devices | Mostly pulled; traps are pushed | Low: totals per interface or per device | Cannot say which host caused a spike; the polling interval hides bursts |
| Streaming telemetry | Device counters and state, sent by subscription | Pushed | Low to medium, but frequent | Needs devices and collectors that support the same data models |
| Logs (syslog, cloud and application logs) | Events a system chose to record | Pushed, or pulled by an agent | Depends on the software | Only what was logged; syslog over UDP can lose messages silently |
The point: before you choose a tool, name what the question needs: content, conversations, totals, events or state. Each source answers one of those well and the others badly.
The five numbers of traffic analysis: throughput, latency, loss, jitter and reachability
Traffic analysis is the measurement of how traffic actually behaves on a network, as opposed to how the design says it should behave. Five measurements carry most of the weight, and the exam expects you to tell them apart by their symptoms.
| Measurement | What it is | Unit | Typical ways to measure it | What users notice when it is bad |
|---|---|---|---|---|
| Throughput | Data actually delivered per second | bit/s | Interface counters, flow records, test transfers | Slow downloads; backups that overrun their window |
| Latency | Time a packet takes to arrive, usually measured as round-trip time (RTT) | ms | Ping, which sends Internet Control Message Protocol (ICMP) echo requests; Transmission Control Protocol (TCP) handshake timing; synthetic tests | Sluggish interactive apps; chatty protocols crawl |
| Loss | Share of packets sent that never arrive | % | Probe series, interface discard and error counters, TCP retransmissions | TCP slows sharply; gaps in voice and video |
| Jitter | Variation in delay from one packet to the next | ms | Voice and video probes, real-time media statistics | Choppy or robotic audio; frozen video frames |
| Reachability | Whether a destination answers at all, at a given layer | Up or down | ICMP echo, TCP connection test, web page check | "The site is down" |
Throughput is not bandwidth. Bandwidth is the capacity of a link: a 1 Gbit/s port can carry at most 1 Gbit/s. Throughput is what actually got through. A single TCP connection is also limited by how much unacknowledged data it may have in flight per round trip. A connection allowed 65,535 bytes in flight over an 80 ms round trip can move at most 65,535 x 8 / 0.08, about 6.6 Mbit/s, however fast the link is. TCP window scaling lifts that ceiling, but the principle stands: on long-distance paths, latency limits per-flow throughput. When a scenario says "the link is barely used but transfers are slow", think latency and window, not capacity.
Latency has four parts. Serialization delay is the time to clock bits onto the wire. Propagation delay is the time for the signal to travel the distance. Queuing delay is time spent waiting in buffers behind other packets. Processing delay is time spent inside devices. Only queuing delay changes quickly with load, which is why a sudden latency rise on a known path usually means congestion somewhere along it.
Jitter matters because real-time media plays out at a fixed pace. A voice phone buffers a few packets to smooth out variation. If one packet arrives too late for its turn, the phone drops it or stretches the audio around it. Steady high latency is annoying. Variable latency is audible.
A worked example: same average latency, opposite verdicts
A probe sends five packets from a branch to a voice gateway and records each round-trip time. Here are two runs, labeled as fictional examples.
| Probe | Run A RTT (ms) | Run B RTT (ms) |
|---|---|---|
| 1 | 20 | 25 |
| 2 | 22 | 26 |
| 3 | 21 | 25 |
| 4 | 45 | 26 |
| 5 | 20 | 26 |
Step 1, average latency. Run A sums to 20 + 22 + 21 + 45 + 20 = 128 ms, so the average is 128 / 5 = 25.6 ms. Run B sums to 25 + 26 + 25 + 26 + 26 = 128 ms, also 25.6 ms. On a latency graph the two runs look identical.
Step 2, jitter. A simple jitter estimate is the average absolute difference between consecutive delays. In run A the differences are 2, 1, 24 and 25 ms. They sum to 52, and 52 / 4 = 13 ms. In run B the differences are 1, 1, 1 and 0 ms, which sum to 3, so jitter is 3 / 4 = 0.75 ms.
Step 3, verdict. Run B is a healthy voice path. Run A is the path that produces complaints, even though its average latency is no worse. One packet in five sat in a queue for an extra 24 ms. Tools differ in the formula: receivers of real-time media streams usually keep a smoothed running estimate rather than a simple average. But every method measures the same thing, which is change in delay, not delay itself.
Loss works the same way. If 2 of 200 probes never return, loss is 2 / 200 = 1 percent. A 1 percent loss rate is invisible to a web user on a short page and very visible to a long bulk transfer, because TCP treats loss as a congestion signal and slows down.
Reachability is layered
Reachability answers "can I get there?", but the answer depends on which layer you test. An ICMP echo (ping) shows only that the host's Internet Protocol (IP) stack replied. Firewalls and cloud security groups often drop ICMP, so a failed ping can be a false alarm. A TCP connection test to port 443 proves that something is listening. A Hypertext Transfer Protocol (HTTP) check that requests a page and examines the response code proves that the application works. A good design runs the highest-layer check the service supports, and runs it from more than one vantage point: one probe inside the data center and one on the internet. That way "unreachable from everywhere" and "unreachable through one Internet Service Provider (ISP)" look different.
The point: averages hide what users feel. Report latency, loss and jitter together, and test reachability at the layer the service lives on.
Traffic mirroring: SPAN, RSPAN, ERSPAN and network TAPs
Traffic mirroring sends a copy of packets to an analysis tool such as an intrusion detection system (IDS), a protocol analyzer like Wireshark, or a packet capture (PCAP) recorder. It is the only source on this list that gives you payloads, so it is the answer when a scenario needs to see inside packets: an application handshake failing, a malformed header, a retransmission pattern.
There are two physical ways to get the copy, and they behave differently under load.
- Port mirroring, often called SPAN (Switched Port Analyzer, Cisco's name), tells a switch to copy frames from source ports or virtual local area networks (VLANs) to a destination port. RSPAN (remote SPAN) carries the copies across switches on a dedicated VLAN. ERSPAN (encapsulated remote SPAN) wraps them in GRE (Generic Routing Encapsulation) so they can cross a routed IP network. Mirroring is cheap and configurable in software. But the switch treats copying as lower priority work than forwarding, and the destination port has fixed capacity.
- A Network tap is a passive device placed inline on a cable. It splits each direction of the link onto its own monitor output. It copies everything, including frames a switch might discard, and it cannot be oversubscribed because each direction gets its own port. The cost is hardware, a brief outage to install it, and one tap per link.
Here is the oversubscription problem worked through. A 1 Gbit/s full-duplex uplink carries 700 Mbit/s inbound and 600 Mbit/s outbound. Mirror both directions to one 1 Gbit/s destination port, and the switch must send 700 + 600 = 1,300 Mbit/s of copies into a 1,000 Mbit/s port. About 300 Mbit/s of copies are dropped, and the IDS sees gaps that look like missing packets on the real link. Now change one input: at 3 a.m. the same uplink carries 200 Mbit/s each way. The copies total 400 Mbit/s and fit easily. The same SPAN session is fine at night and unreliable at noon, which is exactly the kind of intermittent tool fault that wastes days. A tap, with one output per direction, never faces that limit.
Public cloud providers offer the same idea without cables: packet mirroring services copy traffic from virtual machine (VM) network interfaces to a collector. Supported targets, filters and limits differ by provider, so read the provider's documentation before you design around one. The copies still cross the virtual network and consume capacity, so filter down to the traffic you need.
Two limits apply to every kind of mirroring. First, it is local: you see only the links you copied. Second, payloads protected by Transport Layer Security (TLS) stay encrypted in the copy. Mirroring still shows addresses, ports, timing, TCP flags and the unencrypted parts of the TLS handshake, which is often enough to diagnose a performance fault.
Network flows: NetFlow, IPFIX and sFlow
RFC 7011, the IPFIX specification from September 2013, begins with a simple model: traffic can be seen as flows passing through network elements.[4] A Network flow is a set of packets that share the same key fields. The classic key is the five-tuple of source address, destination address, source port, destination port and protocol. Exporters often add the ingress interface and the Differentiated Services Code Point (DSCP), the six-bit QoS marking in the IP header that a later section explains. The router or firewall keeps a flow cache. When a flow ends or times out, it exports a summary record.
The standard names the two roles. An Exporting Process on the device sends records. A Collecting Process receives them, and it is expected to receive flow information from many network elements.[4] In practice that collector is a flow analyzer that stores records and answers questions like "top talkers", "which application spiked at 14:00" and "who is still sending traffic to that retired server".
A single flow record looks like this (fictional example data):
| Field | Value |
|---|---|
| Source address and port | 192.0.2.25 : 51514 |
| Destination address and port | 203.0.113.80 : 443 |
| Protocol | 6 (TCP) |
| Ingress interface | ge-0/0/2 |
| DSCP | 0 |
| Packets / bytes | 18,240 / 24,117,000 |
| Start / end | 2026-11-20 09:12:04 / 09:14:51 UTC (Coordinated Universal Time) |
From that one record you can compute the flow's average throughput. The flow lasted from 09:12:04 to 09:14:51, which is 2 minutes 47 seconds, or 167 seconds. 24,117,000 bytes x 8 = 192,936,000 bits, and 192,936,000 / 167 is about 1.16 Mbit/s. What you cannot learn is what was inside the packets.
Three technologies appear in the exam and in the field:
| Technology | Origin | How it builds records | Best fit |
|---|---|---|---|
| NetFlow (v5, v9) | Cisco; v9 introduced templates | Flow cache on the device; records exported when flows end or time out | Accounting and top talkers on routers and firewalls |
| IPFIX | Internet Engineering Task Force (IETF) standard based on NetFlow v9 | Same cache model, with templates that describe any set of fields | Multivendor environments; extra fields such as application IDs |
| sFlow | Industry consortium standard | Samples 1 in N packets and sends packet headers, plus periodic counter samples; no flow cache | High-speed switch fabrics where a full cache would be too costly |
Sampling is the trade-off. At 1-in-1,000 sampling, a long backup flow is estimated well, but a three-packet DNS query will usually not appear at all. Sampling exists because measurement has a cost: RFC 7011 notes that PSAMP, a companion standard for exporting sampled packets, gives control over the impact on the measured network through its sampling rate.[4] Use sampled data for trends and capacity, and unsampled flows or packet capture for security investigations of rare events.
Flow export is itself traffic, and it can be lost when links are overloaded, which is exactly when you need it. RFC 7011 suggests that a mechanism for service differentiation could be used to prioritize flow export over other traffic on the same link.[4] That is a QoS decision about your monitoring traffic, and the same reasoning applies to syslog and SNMP.
Cloud platforms offer flow logs for virtual networks in the same spirit, though the fields and delivery delay vary by provider. In a hybrid network, put on-premises IPFIX and cloud flow logs in one store so a single query follows a conversation from a branch to a cloud workload.
Flow data is sensitive. RFC 7011 warns that it may be personally identifiable, and that its storage must be protected by technical and policy means.[4] A year of flow records reveals who visited which services and when, so treat the flow collector as a system holding personal data.
SNMP: the MIB, polling, traps and security levels
The Simple Network Management Protocol (SNMP) is the oldest monitoring workhorse, covered at foundation level in Network+. RFC 3411, the SNMP architecture document, describes management information as a collection of managed objects.[5] Those objects reside in a virtual information store called the Management Information Base (MIB).[5] Each object has an object identifier (OID), a dotted string of numbers that names it uniquely. The interface table, for example, holds a row per port with counters such as ifHCInOctets, the 64-bit count of bytes received.
SNMP works in two directions:
- Polling. A network management station (NMS) sends Get, GetNext or GetBulk requests, by convention to UDP port 161, and stores the answers as a time series. Set requests can change values, which is why write access must be locked down.
- Notifications. The device sends a trap, by convention to UDP port 162, when something happens, such as a link going down. An inform is a notification the receiver acknowledges, so the sender can retry.
RFC 3411 notes that SNMP typically runs over a connectionless transport.[5] As a result, messages can be reordered, delayed or replayed.[5] That is one reason security matters. SNMPv1 and SNMPv2c authenticate with a community string sent in clear text. SNMPv3 adds the User-based Security Model, and the architecture recognizes three security levels, ordered from weakest to strongest: noAuthNoPriv (no authentication, no privacy), authNoPriv (authentication only) and authPriv (authentication and encryption).[5] For production, use SNMPv3 at authPriv, read-only views, and access control lists (ACLs) that accept requests only from the NMS addresses, as the device hardening covered earlier in the course requires.
Worked example: utilization from counters, and the 32-bit trap
Bandwidth utilization is throughput expressed as a share of capacity. SNMP does not report it directly. The NMS calculates it from two counter readings:
utilization % = (delta octets x 8) / (interval seconds x link speed in bit/s) x 100
A fictional edge router has a 1 Gbit/s uplink. Its ifHighSpeed object, which reports speed in units of a million bits per second, reads 1000. The NMS polls ifHCInOctets every five minutes:
10:00:00 ifHCInOctets.3 = 1204500000000
10:05:00 ifHCInOctets.3 = 1227000000000
- Delta octets: 1,227,000,000,000 minus 1,204,500,000,000 = 22,500,000,000 bytes.
- Convert to bits: 22,500,000,000 x 8 = 180,000,000,000 bits.
- Divide by the interval: 180,000,000,000 / 300 s = 600,000,000 bit/s, which is 600 Mbit/s.
- Divide by capacity: 600 / 1,000 = 60 percent average utilization.
Now change one input. An older template polls ifInOctets, the 32-bit counter, instead. A 32-bit counter holds 232 = 4,294,967,296 values before it rolls back to zero. At 600 Mbit/s the link moves 75,000,000 bytes per second, so the counter wraps every 4,294,967,296 / 75,000,000, about 57 seconds. In a 300-second interval it wraps five times. The NMS cannot know how many wraps occurred, so it sees only the remainder: 22,500,000,000 minus 5 x 4,294,967,296 = 1,025,163,520 bytes. That works out to 1,025,163,520 x 8 / 300, about 27.3 Mbit/s, or 2.7 percent. A link running at 60 percent appears nearly idle.
How fast is "fast enough to wrap"? Divide 4,294,967,296 by the link's rate in bytes per second. The table shows the worst case, with each link running at full line rate:
| Link rate | Bytes per second | Time to wrap |
|---|---|---|
| 10 Mbit/s | 1,250,000 | About 57 minutes |
| 100 Mbit/s | 12,500,000 | About 5.7 minutes |
| 1 Gbit/s | 125,000,000 | About 34 seconds |
| 10 Gbit/s | 1,250,000,000 | About 3.4 seconds |
The rule follows from the table. If the counter can wrap in less time than your polling interval, or close to it, its readings cannot be trusted. At 100 Mbit/s the wrap time is already barely longer than a five-minute poll. In practice, use the 64-bit HC (high capacity) counters on any interface above a few tens of Mbit/s, which means every modern uplink, and always when the wrap time is shorter than the polling interval.
A second limit: averages hide bursts. A 60 percent five-minute average could mean three minutes at 100 percent and two minutes at zero. During those three minutes, queues filled and voice suffered, and the graph shows nothing alarming. Shorter intervals help, and so does the next technique.
Telemetry: pushing state instead of polling for it
Telemetry is the automatic collection of measurements at remote points and their transmission to a central system. In networking the term now usually means streaming telemetry, also called model-driven telemetry. The collector subscribes once to a set of data paths. Those paths are defined in YANG data models; YANG, short for Yet Another Next Generation, is the IETF's language for describing configuration and state data. The device then pushes updates at a fixed interval or whenever a value changes. Common transports are gNMI (gRPC Network Management Interface, built on the open-source gRPC remote procedure call framework) and NETCONF (the Network Configuration Protocol).
| Question | SNMP polling | Streaming telemetry |
|---|---|---|
| Who starts each update? | The NMS asks every interval | The device pushes after one subscription |
| Typical resolution | Minutes | Seconds, or on change |
| Data structure | MIB objects identified by OIDs | YANG models with named paths |
| Device load at scale | Rises with the number of pollers and objects requested | Tends to be lower per sample, because no request has to be processed; varies by platform |
| Where it fits | Every device, including old and small ones | Modern routers, switches and cloud platforms |
The word telemetry also covers what cloud platforms and applications emit: provider metrics for virtual machines, load balancers and gateways, and application traces and metrics, often produced with the open-source OpenTelemetry project. In a hybrid design, the goal is one place where streaming network telemetry, cloud metrics and application telemetry share timestamps and labels. Then an engineer can line up "API latency rose" with "the VPN tunnel's queue filled" on one screen.
The point: SNMP tells you, every few minutes, what a counter has added up to. Streaming telemetry tells you, every few seconds, what changed. Choose telemetry when bursts or fast failover matter; keep SNMP for breadth and for older equipment.
Log collection and centralized logging with syslog
NIST defines a log as a record of events in an organization's systems and networks, made of entries that each describe one event.[2] It also notes that logs began as a troubleshooting aid and now serve many purposes, including optimizing system and network performance.[2] For a network architect, logs are how devices explain themselves: an interface flapped, a Border Gateway Protocol (BGP) neighbor reset, a firewall denied a flow, a configuration was changed by a named administrator.
Centralized logging means every device sends its logs to a collector instead of keeping them locally. The reasons are concrete. Local buffers are small and overwrite old entries. A rebooted or compromised device can lose or alter its own logs. And a fault that touches five devices can be understood only when their entries sit side by side, in time order. That last point depends on every device using the Network Time Protocol (NTP): logs with clocks two minutes apart cannot be lined up. Syslog also allows originators and relays to send the same message to more than one collector, which is how designs add redundancy.[1]
Syslog is the standard format and transport for device logs. Here is a fictional RFC 5424 message from an edge router:
<187>1 2026-11-20T09:41:07.312Z edge-rtr1.example.com ifmgr 2211 LINK [origin ip="192.0.2.1"] Interface ge-0/0/1 changed state to down
| Part | Value | Meaning |
|---|---|---|
| PRI | 187 | Facility x 8 + severity |
| Version | 1 | RFC 5424 format |
| Timestamp | 2026-11-20T09:41:07.312Z | Time in UTC, to the millisecond |
| Hostname | edge-rtr1.example.com | Originating device |
| App name, process ID, message ID | ifmgr, 2211, LINK | Which software produced it |
| Structured data | [origin ip="192.0.2.1"] | Machine-readable name and value pairs |
| Message | Interface ge-0/0/1 changed state to down | Free text for humans |
To decode PRI 187, divide by 8: 187 / 8 = 23 remainder 3. Facility 23 is local7, a facility commonly assigned to network devices; the standard requires facility values from 0 to 23.[1] Severity 3 is Error. The eight severities run from 0 (most urgent) to 7 (least): 0 Emergency, 1 Alert, 2 Critical, 3 Error, 4 Warning, 5 Notice, 6 Informational, 7 Debug. When a device is set to log "at severity 4", it sends 4 and everything more urgent, that is 0 to 4.
The structured data field matters more than it looks. RFC 5424 describes it as a well-defined, easily parsed and interpretable format.[1] Its examples of content include traffic counters and IP addresses.[1] The free-text message differs by vendor and software version. Structured fields can be read by a machine without fragile text patterns.
Securing the log pipeline
NIST lists syslog's weaknesses plainly. Over UDP there is no assurance that entries arrive, or arrive in order.[2] Most implementations perform no access control, so any host can send messages to a syslog server unless the network prevents it.[2] An attacker can flood a collector with bogus entries so that important ones go unnoticed.[2] Most implementations also cannot encrypt logs to protect their integrity or confidentiality in transit.[2] RFC 5424 accordingly advises operators to use a secure transport mapping.[1] NIST's suggested network defenses include a separate logging network, or ACLs on network devices that restrict which hosts can send to the syslog server.[2]
| Weakness | Effect | Defense |
|---|---|---|
| No delivery acknowledgment over UDP | Silent loss during congestion | Syslog over TCP or TLS; local buffering on the sender; QoS priority for management traffic |
| No sender authentication | Forged or flood entries | ACLs allowing only known senders; TLS with certificates; a separate management network |
| Clear text in transit | Configuration details exposed | Syslog over TLS (TCP port 6514 by convention) |
| Collector as a single point of failure | Gaps when it fails | Send to two collectors or through redundant relays |
Sending every message to two collectors over UDP helps with one failure mode, a dead collector. It does nothing about forgery or eavesdropping. When a scenario lists loss, forgery and disclosure together, the answer is an authenticated, encrypted, connection-oriented transport plus sender restrictions.
JSON, SIEM and the data lake: where logs go next
Modern sources, especially cloud platforms, application programming interfaces (APIs) and applications, emit logs as JSON rather than syslog text. RFC 8259 describes JSON as a lightweight, text-based, language-independent data interchange format.[6] It represents four primitive types (strings, numbers, booleans and null) and two structured types (objects and arrays).[6] An object is an unordered set of name and value pairs.[6] That makes each field self-labeling. The same interface event, written as a fictional JSON log entry, looks like this:
{
"timestamp": "2026-11-20T09:41:07.312Z",
"host": "edge-rtr1.example.com",
"severity": "error",
"event": "interface_down",
"interface": "ge-0/0/1",
"bgp_neighbor": "198.51.100.7",
"tags": ["wan", "site-a"]
}
A collector can index "interface" and "bgp_neighbor" without guessing where they sit in a sentence. One safety note from the standard: parsing JSON by evaluating it as program code generally constitutes an unacceptable security risk, because the text could contain executable code.[6] Log pipelines must use real JSON parsers, since log content partly comes from untrusted input.
A Security information and event management (SIEM) system collects logs from many sources, normalizes them into common fields, and correlates them. Its security role is taught in Security+; here the focus is design. NIST notes that SIEM agents can forward data to a central server in real time or near-real time.[2] Because a SIEM understands the meaning of fields in each source's format, NIST judges it usually better than a plain syslog setup at normalization, analysis and correlation across sources.[2] A SIEM can analyze many sources, identify significant events and start automated responses.[2] NIST also notes the trade-off: SIEM software is usually much more complicated and expensive to deploy than centralized syslog.[2]
A Data lake answers the cost problem. It stores raw data in its original format, usually on low-cost object storage, and applies structure only when someone queries it. That approach is called schema-on-read. Many SIEMs parse and normalize data as it arrives, which makes searches fast and storage per gigabyte expensive; some log platforms extract fields at search time instead, so check the product rather than assuming. A common hybrid design sends everything to the lake, and only security-relevant events to the SIEM.
| Destination | What it does well | Weakness | Typical use |
|---|---|---|---|
| Central syslog server | Simple, cheap, universal | Little parsing or correlation | Device logs for troubleshooting and retention |
| SIEM | Normalization, correlation, alerting, automated response | Cost and complexity; usually shorter fast-search retention | Security detection and investigation in near real time |
| Data lake | Cheap, long retention of raw data in any format | Slower ad hoc queries; needs governance and access control | Long-term retention, analytics, threat hunting across years |
The point: syslog moves device events, JSON gives them labeled fields, a SIEM turns them into detections, and a data lake keeps the raw history cheaply. Scenarios that stress correlation point to the SIEM; scenarios that stress volume, retention and cost point to the lake.
Metrics: resource utilization and bandwidth utilization
A metric, in monitoring, is a numeric measurement recorded over time, such as interface throughput every minute. Two families appear in the objective.
Resource utilization is how much of a device's finite internal capacity is in use. Network devices fail in ways that interface graphs never show:
| Resource | Why it matters | What failure looks like |
|---|---|---|
| Central processing unit (CPU) of the control plane | Runs routing protocols, management and logging | Routing neighbors time out; Secure Shell (SSH) and SNMP stop responding |
| Memory | Holds routing tables, sessions and buffers | Crashes, or new routes and sessions refused |
| Forwarding table capacity (hardware tables) | Limits routes, media access control (MAC) addresses and ACL entries held in hardware | Traffic falls back to slow software forwarding or is dropped |
| Firewall and Network Address Translation (NAT) session tables | Each connection holds an entry | New connections fail while existing ones keep working |
| Cloud gateway and Virtual Private Network (VPN) limits | Throughput and connection quotas set by the provider | Throttling or drops at a provider-imposed ceiling |
Bandwidth utilization is throughput as a share of link capacity, calculated as in the SNMP example. For capacity planning, the 95th percentile is the usual summary. Take 30 days of five-minute samples: 30 x 288 = 8,640 samples. Sort them and discard the highest 5 percent, which is 432 samples, about 36 hours. The highest remaining value is the 95th percentile. It ignores rare spikes but still reflects the busy hours, unlike the monthly average, which the quiet nights pull down.
Quality of service mechanisms: classification, marking, queuing, policing and shaping
Quality of service (QoS) is the set of tools that decides which traffic waits, and which traffic is dropped, when more packets want to leave an interface than the link can carry. It cannot create capacity. On an uncongested link QoS does nothing visible, because no queue forms to reorder. Before you can monitor QoS, you need the jobs it does, in the order a packet meets them.
Classification sorts each packet into a class by examining it: addresses, ports, protocol, the application, or an existing mark. A rule set, often called a class map, defines the match. Any packet that matches no class falls into a catch-all class, commonly named class-default.
Marking writes the class into the packet so that later devices can read it instead of classifying again. Two fields carry marks:
- The Differentiated services field holds the six-bit DSCP in the IP header (in the old type-of-service byte in IPv4 and the Traffic Class byte in IPv6). Six bits give 64 possible values. Because it lives in the IP header, the DSCP survives across routed hops and WAN links.
- The IEEE 802.1p Class of Service (CoS) is a three-bit priority value, 0 to 7, inside the 802.1Q VLAN tag. Voice is commonly CoS 5. The tag exists only on tagged Ethernet links, so the CoS value disappears when a frame is routed or leaves the trunk. Switches therefore map CoS to DSCP and back at the edges.
| Name | Decimal | Binary | Typical traffic |
|---|---|---|---|
| EF (Expedited Forwarding) | 46 | 101110 | Voice media: small packets that must not wait |
| AF41 (Assured Forwarding class 4, drop precedence 1) | 34 | 100010 | Interactive video |
| CS6 (Class Selector 6) | 48 | 110000 | Network control, such as routing protocol traffic |
| Default, also called best effort | 0 | 000000 | Everything not otherwise classified |
The Assured Forwarding names follow a pattern. AFxy means class x (1 to 4) and drop precedence y (1 to 3), and the decimal value is 8x + 2y. AF41 is 8 x 4 + 2 x 1 = 34. Within one AF class, packets with a higher drop precedence are discarded first when the queue fills.
The trust boundary is the point where the network starts believing the marks it receives. Anything can write a DSCP value, including a laptop whose user would like faster downloads. So the access switch normally trusts marks only from a device it recognizes, such as an IP phone, and re-marks everything else to 0 or classifies it itself. Set the boundary too loose, and any host can claim EF. Set it too tight, and the switch erases the phone's EF mark, so the phone's packets reach the WAN router looking like bulk data.
Queuing decides the order in which waiting packets leave a congested interface. Each class gets its own queue, and a scheduler chooses which queue sends next.
| Queue type | How it is served | Good for | What goes wrong |
|---|---|---|---|
| Strict priority queue (often called low-latency queuing) | Always sent first whenever it holds packets | Voice: small, steady, delay-sensitive | Starves every other class unless capped by a policer |
| Weighted, bandwidth-guaranteed queue (such as class-based weighted fair queuing) | Gets a configured share of the link during congestion; can borrow unused capacity | Video and business-critical applications | A share set too small causes drops and delay at peak |
| class-default | Whatever capacity is left, often shared fairly among flows | Unclassified and bulk traffic | Becomes the landing place for mis-marked priority traffic |
Policing and shaping both limit a rate, but they treat the excess differently. Traffic policing measures the rate and drops, or re-marks to a lower class, every packet above the limit at once. Traffic shaping holds the excess in a buffer and sends it later, so the output never exceeds the configured rate.
| Question | Traffic policing | Traffic shaping |
|---|---|---|
| What happens to the excess? | Dropped or re-marked immediately | Buffered and sent later |
| Effect on delay | Adds none | Adds queuing delay |
| Effect on TCP | Drops trigger retransmissions and slowdowns | Smoother rate, fewer drops |
| Direction | Inbound or outbound | Outbound only, because only a sender can hold packets back |
| Typical use | Capping the priority queue; a provider enforcing a contract rate | Matching a WAN service slower than the physical port |
Here is why shaping matters on a WAN, worked through with fictional numbers. A branch router has a 1 Gbit/s Ethernet handoff to the provider, but the contract is 200 Mbit/s, and the provider polices at 200 Mbit/s. A backup starts sending 350 Mbit/s. The router's own port is a 1 Gbit/s port carrying 350 Mbit/s, so it sees no congestion. Its queues never fill, and its carefully built priority queue never acts. The provider's policer then drops the excess 150 Mbit/s without looking at markings, so voice is dropped as readily as backup data. Now add a shaper at 200 Mbit/s on the router's WAN interface, with the queuing policy applied inside it. The queue now builds on the router, where voice goes first and the backup waits. Change one input and the result flips back: if the contract equals the port speed, the physical interface congests by itself, and the queuing policy works without a shaper.
QoS fails in a few recurring ways, and each one shows up in monitoring data:
- Marks stripped or not trusted. The access port re-marks voice to 0. The priority queue sits empty and voice drops along with everything in class-default.
- An uncapped priority queue. If bulk traffic is marked EF, for example because the trust boundary is too loose, a strict priority queue with no cap can starve every other class. That is why priority queues are policed.
- A priority policer sized too small. In a fictional branch, the priority queue is capped at 1 Mbit/s and each call needs about 100 kbit/s (an illustrative round figure that includes headers). Ten calls fit. When fourteen calls are active during congestion, the policer drops the excess voice packets, and every call degrades, not just the newest. The fix is to size the cap from the expected call count, or to limit the number of calls admitted.
- A policy in one direction only. Your router's outbound policy controls only traffic you send. Traffic arriving from the WAN was queued in the provider's equipment, so inbound QoS needs the provider's class of service or shaping at the far end.
- No shaper on a slower-than-port WAN service, as in the worked example.
The point: QoS classifies and marks at the edge, queues during congestion, polices to drop excess and shapes to delay it. Most QoS faults are marking and trust problems, not queue design problems.
Reading QoS counters: is priority really happening?
Monitoring QoS means checking two things: that traffic is marked as the design expects, and that each class's queue behaves as intended. The useful data are per-class packet and drop counters, priority policer exceed counters, queue depth, and the mix of DSCP values in flow records.
Look at this fictional per-class output from a branch WAN interface during a complaint about voice quality:
Interface ge-0/0/1 output policy WAN-EDGE
Class VOICE (match dscp ef) packets 0 drops 0
Class VIDEO (match dscp af41) packets 211,402 drops 0
Class class-default packets 4,812,330 drops 39,410
The VOICE class has matched zero packets. Phones are clearly making calls, so their packets must be landing in class-default, where they compete with bulk traffic and share in its drops. The flow records explain why: the voice flows show DSCP 0 instead of EF (DSCP 46). Somewhere between the phone and this router the marking was removed, typically at an access switch port that does not trust the phone. The priority queue is configured and idle. Fixing the trust setting at the access edge fixes the voice problem; adding WAN bandwidth would only delay it.
Now change one input. Suppose the VOICE line instead read "packets 1,902,551, drops 6,120", with the class-default drops unchanged. Voice is now marked and matched correctly, but the priority policer is dropping it. That is the undersized-cap failure from the previous section, and the fix is a larger cap or fewer admitted calls, not a change at the access edge. The same output format points to two different causes depending on which counter is wrong.
This is a good example of combining sources. The QoS counters showed which class was dropping; the flow records showed the marking; neither alone gave the cause.
Alerting, continuous monitoring, and moving from reactive to proactive
Alerting turns a metric or event into a notification that a person or an automation acts on. A useful alert rule has five parts: what it measures, a threshold, a duration, a clear condition, and a destination. Here is a fictional rule in generic syntax:
alert: WanUplinkSaturated
metric: interface_out_utilization_percent
scope: device=edge-rtr1.example.com interface=ge-0/0/1
fire_when: value > 85 for 10m
clear_when: value < 70 for 10m
severity: warning
route_to: noc-queue
runbook: https://wiki.example.com/runbooks/wan-saturation
The duration ("for 10m") stops a single spike from paging anyone. The gap between the fire and clear thresholds, called hysteresis, stops a value hovering at 85 percent from opening and closing an alert every minute. Routing by severity sends warnings to a queue and outages to an on-call phone. Without these, teams drown in alerts and start ignoring them, which is how a real outage gets missed. The service management lesson earlier in the course defined service-level objectives (SLOs); alert on those too. "Checkout error rate above objective" reflects user pain directly, while "CPU at 80 percent" may or may not.
Reactive monitoring responds after something has broken: a link-down trap, a user ticket, an investigation after a breach. Proactive monitoring looks for trends and early signals before users notice: utilization climbing toward a limit, rising error counters on an optic, a certificate nearing expiry, a synthetic test that runs every minute against a service nobody is using yet at 6 a.m. Both are needed. The exam's distinction is timing relative to impact: proactive acts before the user feels it. An automated page on a link failure is still reactive, because the failure has already happened.
Continuous monitoring makes monitoring an ongoing program rather than a periodic audit. NIST SP 800-137 defines its purpose as providing visibility into organizational assets, awareness of threats and vulnerabilities, and visibility into whether deployed security controls work.[7] It frames the result as ongoing assurance that controls stay aligned with the organization's risk tolerance.[7] In network terms, that means configuration drift checks, vulnerability scans, flow-based anomaly detection and SIEM correlation running all the time, with their findings feeding the same alerting and ticketing paths as performance problems.
Dashboards and status pages
Both are views of monitoring data, built for different readers.
| Question | Dashboard | Status page |
|---|---|---|
| Who reads it? | Engineers, the network operations center (NOC), managers | Customers and users |
| What it shows | Live metrics, top talkers, alert lists, key performance indicators (KPIs) | Plain-language state of each service, incident updates, planned maintenance |
| Level of detail | High, with drill-down to devices and interfaces | Low: operational, degraded, partial outage, major outage |
| Updated by | Automatically, from metrics | Often by a person during an incident, sometimes from health checks |
| Design rule | Start with the questions on-call staff ask first | Host it on separate infrastructure so it survives the outage it reports |
A good dashboard leads with service health, the KPIs and service-level indicators (SLIs), then lets the viewer drill down to the devices underneath. A status page hosted inside the data center it reports on goes dark at exactly the moment customers need it.
Exam cues: what the stem says and where it points
| The stem says | Think | Commonly confused with |
|---|---|---|
| "Inspect payloads", "full packet capture", "IDS needs a copy" | Traffic mirroring: SPAN, or a TAP if no drops are acceptable | Flows, which have no payload |
| "Who talked to whom", "top talkers", "no content stored" | NetFlow or IPFIX flow records | SNMP, which gives interface totals only |
| "Interface counters", "poll every five minutes", "trap" | SNMP | Telemetry, which pushes by subscription |
| "Push", "subscription", "seconds" or "on change" | Streaming telemetry | SNMP polling |
| "Choppy voice", "variation in delay" | Jitter | Latency, which is average delay |
| "Link capacity" versus "what actually got through" | Bandwidth versus throughput | Treating them as the same number |
| "Correlate events from firewalls, servers and identity systems" | SIEM | A central syslog server, which stores but barely correlates |
| "Years of raw logs at low cost", "schema at query time" | Data lake | SIEM fast-search storage |
| "Messages lost with no notice", "any host can send" | Syslog over UDP weaknesses; fix with TLS and sender ACLs | Adding a second UDP collector |
| "Machine-readable, labeled fields", "API output" | JSON | Free-text syslog messages |
| "Priority class shows no packets", "drops in default class" | QoS marking or trust boundary problem | Too little bandwidth |
| "Excess dropped at the rate limit" | Policing | Shaping, which delays instead |
| "Smooth traffic to the contracted rate", "port faster than the service" | Shaping | Policing, which drops instead |
| "Tell customers about the outage" | Status page | Internal dashboard |
| "Before users notice", "trend toward the limit" | Proactive monitoring | Reactive alerts on failure |
| "Ping fails but the web service works" | Reachability tested at the wrong layer, ICMP filtered | A real outage |
Common misconceptions
- "A low utilization graph means the link is fine." A five-minute average can hide minutes at 100 percent, and a 32-bit counter on a fast link can wrap so often that a busy link reads as idle. Check the counter width and the interval before trusting the number.
- "Good average latency means voice will be fine." Voice fails on variation. Two paths with the same 25.6 ms average can have 0.75 ms or 13 ms of jitter.
- "Flow data shows what users did." Flows show who talked to whom, when and how much. They contain no payload, and sampled flows can miss short conversations entirely.
- "A SPAN port copies everything." A switch drops mirror copies when the destination port is oversubscribed, and it may not copy damaged frames. A TAP is the choice when completeness matters.
- "Syslog is reliable because the collector has never complained." Syslog has no delivery acknowledgment, so a collector cannot complain about messages it never received.
- "QoS fixes congestion." QoS only decides who waits and who is dropped. If traffic is not marked correctly, or the port never congests because no shaper is set, a well-built priority queue sits empty while voice is dropped with everything else.
The takeaway
- Traffic mirroring is the only source that carries payloads; a SPAN session that mirrors both directions of a busy link can exceed the destination port's capacity and drop copies, while a TAP gives each direction its own output.
- Flow records (NetFlow v9, IPFIX, sFlow) summarize conversations by key fields such as the five-tuple, with byte and packet counts; IPFIX is the IETF standard, and flow data must be protected as potentially personal data.
- Utilization equals delta octets x 8 divided by interval seconds x link speed; a 32-bit counter at 600 Mbit/s wraps about every 57 seconds, so use the 64-bit HC counters whenever the wrap time could be shorter than the polling interval.
- Jitter is the variation in delay between consecutive packets, not the average delay; it is the measurement that predicts choppy voice.
- SNMPv3 at the authPriv level provides both authentication and encryption, while v1 and v2c send community strings in clear text; streaming telemetry pushes YANG-modeled data after one subscription instead of waiting to be polled.
- Syslog PRI equals facility x 8 + severity; PRI 187 is facility 23 (local7) at severity 3 (Error), and severities run from 0 Emergency to 7 Debug.
- A SIEM normalizes and correlates logs for detection at higher cost; a data lake keeps raw data cheaply for long retention and applies structure at query time.
- DSCP EF is 46 and AF41 is 34; the trust boundary decides whose marks are believed, policing drops excess while shaping delays it, and a WAN service slower than its port needs a shaper for the queuing policy to act.
- Proactive monitoring acts on trends before users feel the impact; a status page serves customers and must run on infrastructure separate from the service it reports on.
Sources
- R. Gerhards. (2009). RFC 5424: The Syslog Protocol. IETF / RFC Editor. rfc-editor.org
- Karen Kent, Murugiah Souppaya. (2006). NIST SP 800-92: Guide to Computer Security Log Management. NIST. nvlpubs.nist.gov
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- P. Aitken, B. Claise, B. Trammell. (2013). RFC 7011: Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of Flow Information. IETF / RFC Editor. rfc-editor.org
- D. Harrington, R. Presuhn, B. Wijnen. (2002). RFC 3411: An Architecture for Describing SNMP Management Frameworks. IETF / RFC Editor. rfc-editor.org
- T. Bray (Editor). (2017). RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format. IETF / RFC Editor. rfc-editor.org
- Kelley Dempsey, Nirali Chawla, et al. (2011). NIST SP 800-137: Information Security Continuous Monitoring (ISCM) for Federal Information Systems and Organizations. NIST CSRC. csrc.nist.gov
- Key terms
- Traffic mirroring
- Sending copies of packets from chosen ports, VLANs or virtual interfaces to an analysis tool, using switch port mirroring (SPAN, RSPAN, ERSPAN), a passive network TAP, or a cloud packet-mirroring service.
- Network flow record
- A summary of a set of packets sharing the same key fields, such as source and destination addresses, ports and protocol, with byte and packet counts and start and end times, exported by NetFlow, IPFIX or sFlow.
- Jitter
- The variation in delay from one packet to the next on a path, measured in milliseconds; high jitter causes choppy voice and frozen video even when average latency is low.
- Bandwidth utilization
- Measured throughput expressed as a percentage of a link's capacity, usually calculated from the change in interface octet counters over a polling interval.
- Management Information Base (MIB)
- The collection of managed objects, each named by an object identifier, that an SNMP agent exposes for a manager to read, set or receive notifications about.
- Streaming telemetry
- Monitoring in which a device pushes counters and state to a collector after a single subscription, at short intervals or when values change, typically using YANG data models over gNMI or NETCONF.
- Traffic shaping
- A QoS technique that holds traffic above a configured rate in a buffer and sends it later, smoothing output to that rate at the cost of added delay, unlike policing, which drops or re-marks the excess.
- Security information and event management (SIEM)
- A system that collects logs from many sources, normalizes them into common fields, correlates events to detect incidents and can trigger automated responses.
- Data lake
- A large, low-cost store, usually object storage, that keeps raw data in its original formats and applies structure only when the data is queried.
- Proactive monitoring
- Monitoring that looks for trends and early warning signs, such as rising utilization or error counts, so that problems are fixed before users are affected.
Automating a Hybrid Cloud Network
- Walk a hybrid network change through change management, infrastructure as code, linting, version control, a CI/CD pipeline, configuration review, apply and drift detection.
- Tell apart resource provisioning and resource configuration, YAML and JSON, API, SDK and CLI, continuous delivery and continuous deployment, and baselines and benchmarks.
- Decide how to handle configuration drift, a leaked secret and a patch under mutable and immutable life cycle models.
- Apply controls for safe pipeline management and for using generative AI in network automation.
Change CHG-2147: one subnet, two environments
On a Monday morning, the payments team at a retailer files change request CHG-2147. The retailer, its devices and its addresses are a fictional example built for this lesson, using documentation address ranges. Its payment application runs in a public cloud virtual private cloud (VPC) numbered 198.51.100.0/24, and each store reaches that VPC over a site-to-site virtual private network (VPN) tunnel. The request is to create a new subnet, 198.51.100.64/26, for a second application tier, and make it reachable from the Leeds store, whose point-of-sale network is 192.0.2.0/25.
The job touches two very different environments. In the cloud, a subnet and a security group are objects behind the provider's application programming interface (API): a published set of requests a program can send to create, read, change or delete them. In Leeds, the matching route lives in the running configuration of a physical branch router that was installed four years ago. By hand, the job means a console session in a web browser and a Secure Shell (SSH) session to the router. That is two sets of typing and two chances for a slip, and the only record is whatever someone remembers to write down. With automation, the same job becomes a few text files, a pipeline that checks them, a reviewer who reads them, and a history that records itself.
Exam objectives: CompTIA CloudNetX CNX-001 objective 3.3, "Given a scenario, apply automation and scripting to administer a hybrid cloud environment."[1] Its bullets are infrastructure as code (IaC), with resource provisioning, resource configuration, Yet Another Markup Language (YAML), JavaScript Object Notation (JSON) and linters; life cycle management, with mutable and immutable infrastructure and patch management; version control, with public versus private repositories and secrets management; DevOps, with continuous integration and continuous delivery (CI/CD) pipeline management and GitOps; generative artificial intelligence (AI); the API; the software development kit (SDK); the command-line interface (CLI); desired state, with configuration reviews, baselines and benchmarks, and configuration backup and restore; and change management.
The sections below take CHG-2147 through the procedure a mature hybrid team uses, one step per section, and each objective bullet appears at the step that needs it. Then the same request runs a second time with one input changed, and the right decision flips. Here is the map.
| Step | What happens | Objective items it exercises |
|---|---|---|
| 1 | Open and classify the change record | Change management |
| 2 | Write the desired state in files | Infrastructure as code: provisioning, configuration, YAML, JSON |
| 3 | Check the files automatically | Linters |
| 4 | Branch, commit, open a pull request, keep secrets out | Version control, public and private repositories, secrets management |
| 5 | Pipeline lints, tests and plans | DevOps, CI/CD pipeline management, GitOps |
| 6 | A second person reads the plan | Configuration reviews |
| 7 | Apply, verify, back up, watch for drift | Desired state, baselines and benchmarks, backup and restore |
| Underneath | Every tool talks to an interface | API, SDK, CLI |
| Over time | Resources age, get patched and get replaced | Life cycle management, mutable and immutable, patch management, generative AI |
If Git, pipelines or cloud networking objects are new to you, the Atlas Cloud+ course introduces them at a gentler pace.
Step 1: Open the change record before you open an editor
The National Institute of Standards and Technology (NIST) Special Publication (SP) 800-128, the 2011 guide to security-focused configuration management, starts from a plain observation: making a change to a system almost always means adjusting its configuration.[2] Automation does not alter that. It alters how fast the adjustment happens and how many devices one mistake can reach, which raises the stakes. So the procedure starts with change management, not with code.
Change management is the process that decides whether a change should happen, when, on whose authority, how success will be checked, and how the change will be undone if it fails. It also keeps a record of all of that. Most organizations sort changes into three types:
- Standard change: low risk, repeatable and pre-approved, such as adding a tagged subnet from an approved template. A standard change can often run straight through automation with no meeting.
- Normal change: assessed for risk and impact and approved before it runs, often by a change advisory board (CAB), a group of technical and business reviewers.
- Emergency change: needed now to restore service or close an active security hole. It is approved quickly by a small authorized group and must be documented and reviewed afterward. An emergency change drives the second run of this procedure.
Here is the record for CHG-2147.
| Field | CHG-2147 (example) |
|---|---|
| Type | Normal: it touches a production VPN path and opens a new firewall rule |
| Scope | Create subnet 198.51.100.64/26 in VPC retail-core with its route table association and a new security group allowing Transmission Control Protocol (TCP) port 443, the Hypertext Transfer Protocol Secure (HTTPS) port, from 192.0.2.0/25; add one static route on edge-rtr-07 (Leeds) via Tunnel1 |
| Risk and impact | Low: additive only, no existing route or rule altered. Security impact: one store network gains HTTPS to one new subnet |
| Window | Tuesday 22:00-23:00 local time, after trading hours |
| Implementation | Merge the reviewed pull request; the pipeline applies the cloud change, then pushes the router change |
| Verification | Subnet exists with the right tags; route present on edge-rtr-07; HTTPS from a Leeds test host succeeds |
| Rollback | Revert the merge commit and re-run the pipeline; if the pipeline cannot reach the router, restore it from the pre-change backup over the out-of-band console |
| Approvers | Peer reviewer (network architect) and change manager |
Look at the rollback line. In an automated shop the first rollback is usually "revert the commit and run the pipeline again". That works only if the pipeline can still reach the device after the change. A change that breaks the management path also breaks the automation, so the second line, a restore through out-of-band access, is there for exactly that case.
What matters here: automation moves change management into the tooling; it does not remove it. A pull request can carry the change record, and a standard change can run with no meeting, but every change still has a risk assessment, an approval, a window, a verification plan and a rollback plan.
Step 2: Write the desired state as infrastructure as code
Infrastructure as code (IaC) means describing infrastructure in text files that a tool reads and acts on, instead of building it by hand. HashiCorp's Well-Architected Framework puts the idea this way: you write code describing the infrastructure state you want, and the IaC tool creates, modifies and manages real infrastructure until it matches.[3] The same guide names the problem being solved: provisioning by hand through cloud consoles produces inconsistent configurations, missed steps and failed deployments.[3]
Two words matter here. A declarative file states the result ("this subnet exists with this address range") and lets the tool work out the steps. An imperative script lists the steps ("call create-subnet, then call create-route"). Apply a declarative file twice and the second run finds nothing to do. Run an imperative script twice and it may fail because the subnet already exists, or create a duplicate. That property of doing nothing when the target already matches is called idempotence, and it is why declarative IaC is the norm.
The objective splits IaC into two jobs, and many teams use different tools for each.
| Question | Resource provisioning | Resource configuration |
|---|---|---|
| What it does | Creates, resizes and deletes resources | Sets what is inside a resource that already exists |
| CHG-2147 example | The subnet, its route table association, the new security group | The static route on the Leeds router |
| Typical tools | Terraform, Amazon Web Services (AWS) CloudFormation, Azure Bicep | Ansible, Puppet, Chef, vendor controller templates |
| How it reaches the target | Cloud provider APIs | SSH, Network Configuration Protocol (NETCONF) or a device Representational State Transfer (REST) API |
| Typical file format | HashiCorp Configuration Language (HCL), JSON or YAML | YAML playbooks and variable files, rendered templates |
Terraform, the provisioning tool in this example, uses plug-ins called providers to talk to each cloud's API. Its files are written in HCL, a block-structured language for describing resources. Here is part of the cloud half of CHG-2147.
# Example only: fictional names, documentation addresses
resource "aws_subnet" "payments_app_b" {
vpc_id = aws_vpc.retail_core.id
cidr_block = "198.51.100.64/26"
availability_zone = "eu-west-2a"
tags = {
Name = "payments-app-b"
Change = "CHG-2147"
}
}
Read it as a sentence. There should be a subnet, which Terraform will call payments_app_b, inside the VPC that the same code defines as retail_core, with the range 198.51.100.64/26, in one availability zone, carrying two tags. The Change tag ties the real object back to its change record. That helps a reviewer months later, and it lets an inventory script find everything a change created.
Terraform keeps track of what it has built by storing the state of your infrastructure.[3] This state file maps each resource block to the real object's identifier. When you ask for a plan, Terraform compares three things: the code, the state file and the live objects the provider reports. The plan is the list of actions needed to make the live objects match the code. The state file matters again later. It must be backed up, and because it can hold sensitive values, it belongs in a protected, access-controlled storage backend, never in the repository.
YAML and JSON: the same data in two spellings
The Leeds half of the change is configuration, not provisioning, and it is driven by a variables file that a configuration tool turns into router commands. Here it is in YAML. CompTIA expands the name as Yet Another Markup Language; the YAML project itself now calls it "YAML Ain't Markup Language".
# Example only: Leeds branch router intent
site: leeds-store-07
router: edge-rtr-07.example.com
vpn_peer: 203.0.113.10
min_firmware: "17.10"
routes:
- prefix: 198.51.100.64/26
next_hop: Tunnel1
description: "payments-app-b via cloud VPN"
Here is exactly the same data in JSON (JavaScript Object Notation).
{
"site": "leeds-store-07",
"router": "edge-rtr-07.example.com",
"vpn_peer": "203.0.113.10",
"min_firmware": "17.10",
"routes": [
{
"prefix": "198.51.100.64/26",
"next_hop": "Tunnel1",
"description": "payments-app-b via cloud VPN"
}
]
}
Both describe one structure: a mapping of keys to values, in which routes is a list holding one mapping. YAML shows structure with indentation and dashes. JSON shows it with braces, brackets and commas. YAML version 1.2 was designed as a superset of JSON, so a YAML 1.2 parser accepts a JSON document. The practical differences:
| Feature | JSON | YAML |
|---|---|---|
| Structure | Braces, brackets and commas | Indentation with spaces; a dash starts each list item |
| Comments | Not allowed | Allowed after # |
| Quoting strings | Keys and strings must be in double quotes | Usually optional, which is convenient and risky |
| Whitespace | Not significant | Indentation is significant; tabs cannot be used to indent |
| Where you meet it | API request and response bodies, cloud policy documents, machine-generated files | Pipeline workflow files, Ansible playbooks, Kubernetes manifests, human-edited variables |
| Typical failure | A missing or extra comma | A wrong indent, or a value read as the wrong type |
The last row is the one that hurts. YAML guesses the type of an unquoted value, so data can change meaning with no syntax error at all. Three cases network engineers meet:
- A parser following the older YAML 1.1 rules reads unquoted yes, no, on and off as true or false. A line such as
country: no, meant as Norway, arrives as the boolean false. - An unquoted firmware version such as 17.10 is read as the number 17.1. That is why min_firmware is quoted in the example above: without the quotes, a check for release 17.10 would compare against the wrong value.
- A description such as
description: Leeds: tillsfails to parse, because the second colon followed by a space looks like a new key.
The defense is to quote any string that could be mistaken for a number, a boolean or a key, and to let a linter catch what you miss. That is the next step.
Step 3: Lint every file before a person reads it
A linter is a static analysis tool. It reads a file without running it and reports errors, style problems and risky patterns. The name comes from lint, an early Unix program that flagged suspicious C code. Linting is the cheapest check in the procedure: it takes seconds, runs on the engineer's laptop and again in the pipeline, and it costs no reviewer any attention. HashiCorp lists automated testing among the main benefits of IaC for this reason, because errors and policy violations are caught before they reach production.[3]
Linting works in layers, from "does it parse?" to "is it allowed?".
| Layer | Question it answers | Example check for CHG-2147 |
|---|---|---|
| Syntax | Can the file be parsed at all? | yamllint on the Leeds variables file; a JSON parser on API payloads |
| Formatting and style | Does it follow the team's conventions? | terraform fmt -check; consistent indentation; required quoting |
| Validation | Do names, types and references make sense to the tool? | terraform validate |
| Policy | Is it allowed by our rules? | No security group open to 0.0.0.0/0 on management ports; every resource carries a Change tag |
Here is what a failed lint looks like when one line of the variables file is indented with a tab. The output is a simplified example.
$ yamllint sites/leeds-store-07.yml
sites/leeds-store-07.yml
7:1 error syntax error: found character '\t' that cannot start any token
$ terraform -chdir=cloud validate
Success! The configuration is valid.
The YAML file fails and goes back to its author. The Terraform code passes validation. Be clear about what passing means. A linter shows that a file is well formed and obeys the rules someone encoded. It does not show that the design is right. A perfectly valid file can still send the wrong prefix down the wrong tunnel. Linting comes before review, not instead of it.
Step 4: Commit to version control, and keep secrets out of it
Version control records every change to a set of files as a snapshot with an author, a time and a reason. Git is the system almost everyone uses, and its vocabulary is short:
- A Git repository (repo) holds the files and their complete history.
- A Git commit is one recorded change, with an author, a timestamp, a message and a unique identifier: a long hexadecimal hash, often shortened to its first seven characters.
- A Git branch is a line of work kept apart from the main line until it is ready.
- A pull request (GitLab calls it a merge request) asks for a branch to be merged. It is where discussion, automated checks and approval happen.
The engineer creates a branch named chg-2147-payments-subnet, commits the HCL and YAML files with a message that quotes the change number, and opens a pull request. HashiCorp notes that keeping infrastructure in version control is what makes code review, collaboration and shared knowledge possible through pull requests.[3] It also gives an exact answer to "what changed, when, and who approved it?", plus a clean way back: git revert creates a new commit that undoes an earlier one without erasing history.
Public versus private repositories. Anyone on the internet can read a public repository. Only accounts that have been granted access can read a private one. Infrastructure code for a production network belongs in a private repository. Even with no secrets in it, it is a map of the network: address plans, firewall rules, device names and the location of every tunnel endpoint.
| Question | Public repository | Private repository |
|---|---|---|
| Who can read it | Anyone | Only granted users, teams and service accounts |
| Typical network use | Shared modules, open-source tools, published examples | Production IaC, site variables, pipeline definitions |
| If a secret is committed | Exposed to the whole internet immediately | Exposed to everyone with access now, and to anyone who gains access later |
| GitHub secret scanning | Runs automatically at no cost | Available only when the GitHub Secret Protection feature is enabled, on Team or Enterprise Cloud plans |
The last row comes from GitHub's documentation. Secret scanning runs automatically and at no cost on public repositories.[4] Organization-owned private repositories get it only when GitHub Secret Protection is enabled on a GitHub Team or Enterprise Cloud plan.[4] In other words, the private repository that holds your most sensitive code may have no secret detection at all unless someone turns it on. NIST SP 800-218A, a 2024 secure development profile, carries a general practice for any code store: keep all forms of code, including configuration-as-code, on the principle of least privilege, so that only authorized people, tools and services can reach it.[5]
Secrets management is the practice of storing, issuing, rotating and auditing credentials in a system built for the job, rather than in files, scripts or people's memories. Credentials here include passwords, API keys, private keys and VPN pre-shared keys (PSKs). The rule for automation is that code refers to a secret but never contains one. Compare two versions of one line in the Leeds variables file:
# Wrong: the key itself is in the file, and so in Git history from now on
vpn_psk: "example-not-a-real-key"
# Right: the file says where the key lives; the pipeline fetches it at run time
vpn_psk_ref: "vault:kv/network/vpn/leeds-store-07"
The second line works because a secrets manager hands the credential only to an authenticated pipeline, only while it runs. HashiCorp Vault, AWS Secrets Manager and Azure Key Vault are examples. HashiCorp's guidance applies the same rule to built images: they must never contain database passwords, API keys or encryption keys.[6] Instead, a virtual machine or container authenticates to Vault when it starts and receives temporary credentials that expire.[6] Short-lived credentials limit the damage of a leak, because a stolen credential soon stops working.
Mistakes still happen, so detection backs up prevention. GitHub's secret scanning searches the entire Git history on every branch for hardcoded credentials of known types.[4] The word "history" is the point. If an engineer commits a key and deletes it in the next commit, the key is still readable in the earlier commit and in every clone. GitHub's advice is to rotate the affected credential immediately.[4] Removing the secret from Git history is possible, but GitHub calls it time-intensive and often unnecessary once the credential has been revoked.[4] NIST SP 800-218A, written for teams that develop generative AI models, recommends continuously monitoring each environment for plaintext secrets.[5] A network automation pipeline deserves the same watch.
What matters here: keep infrastructure code in a private repository with least-privilege access, make files refer to secrets rather than contain them, and if a secret is ever committed, rotate it at once. Deleting the commit does not undo the exposure.
Step 5: Let the pipeline lint, test and plan
DevOps is a way of working that joins software development and IT operations into one team with shared responsibility, short feedback loops and as much automation as the work allows. For a network team, it means handling changes to routers, firewalls and cloud networks the way developers handle application code: small changes, automated checks, peer review, and monitoring that feeds into the next change.
The engine of DevOps is the CI/CD pipeline, an automated sequence of jobs that runs whenever the code changes. The abbreviation covers three ideas, and the exam separates the last two.
- Continuous integration (CI): engineers merge small changes often, and every proposed change is automatically built and tested. For infrastructure, "build and test" means lint, validate and plan.
- Continuous delivery: every change that passes the checks is ready to release at any time, but a person starts the release. Microsoft's training describes software that can be released at any time, but through a manual release process.[7]
- Continuous deployment: once the checks pass, the pipeline deploys the latest version automatically. Microsoft's training describes this step as happening without manual interaction.[7] Microsoft's architecture guidance warns that it needs robust automatic testing and advanced process planning, and might not suit every team.[8]
The difference between the two CDs is one human decision. For production network changes, continuous delivery with a required approver standing in for the change manager is the safer default. Many teams keep continuous deployment for low-risk targets, such as lab environments or standard changes backed by strong automated tests.
Here is the CHG-2147 pipeline as a GitHub Actions workflow. In GitHub Actions, workflow files are written in YAML and must use a .yml or .yaml extension.[9] They must be stored in the repository's .github/workflows directory.[9] The file below is an example.
# .github/workflows/network-plan.yml (example)
name: network-plan
on:
pull_request:
paths:
- "cloud/**"
- "sites/**"
permissions:
contents: read
id-token: write
jobs:
lint-and-plan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@<full-commit-SHA>
- uses: hashicorp/setup-terraform@<full-commit-SHA>
- uses: aws-actions/configure-aws-credentials@<full-commit-SHA>
with:
role-to-assume: arn:aws:iam::111122223333:role/network-plan-readonly
aws-region: eu-west-2
- name: Lint YAML
run: pip install yamllint && yamllint sites/
- name: Check formatting
run: terraform -chdir=cloud fmt -check
- name: Init and validate
run: |
terraform -chdir=cloud init -input=false
terraform -chdir=cloud validate
- name: Plan
run: terraform -chdir=cloud plan -input=false -out=tfplan
# A separate apply workflow runs only after merge, in a protected
# environment that requires the change manager's approval.
CI/CD pipeline management is the work of keeping that pipeline trustworthy. A pipeline that can change production is itself a privileged system, and an attacker who controls it controls the network. Each choice in the example has a reason:
- Pinned actions. Each uses line names a third-party action by its full commit hash, not by a moving name such as main. GitHub's documentation calls the commit SHA (Secure Hash Algorithm identifier) of a released version the safest choice for stability and security.[9] A moving name can change underneath you, through an honest update or a compromised maintainer account.
- Least-privilege permissions. The permissions block gives the job read-only access to the code, plus the right to request a short-lived identity token. The cloud account trusts that token through OpenID Connect (OIDC) federation and grants a read-only planning role, so no long-lived cloud key is stored in the pipeline at all.
- Fail fast. On GitHub-hosted runners, bash and sh steps run with set -e by default.[9] The first failing command therefore stops the step and the job, so a lint failure prevents the plan.
- Separate plan and apply. The plan runs on every pull request with read-only rights. The apply runs only after merge, in a protected environment with a required approver and a role that can write. That separation is continuous delivery in practice.
- Runner placement. A cloud-hosted runner can reach the cloud API but usually cannot reach a branch router's management address. The router job runs on a self-hosted runner inside the management network, and that runner must be patched and hardened like any other management server.
GitOps is a particular way to run all this. The Git repository is the single source of truth for desired state, every change arrives as a pull request, and an automated process makes the live environment match whatever is merged. Microsoft's reference architecture shows the flow: repository, branch, pull request, then automated test and plan.[8] Approval, merge and deployment follow. The same architecture adds a scheduled drift-detection job in which the actual infrastructure state is compared with the desired state defined in code.[8]
GitOps comes in two styles. In a push model, like the workflow above, the pipeline pushes changes out to the targets. In a pull model, common with Kubernetes tools such as Argo CD and Flux, an agent inside the target environment watches the repository and pulls changes in, so nothing outside the environment needs write access to production. Either way, a change that is not in Git is, by definition, drift.
Step 6: The configuration review
The pipeline posts its plan to the pull request. For CHG-2147 the summary reads as follows (a simplified example):
Terraform will perform the following actions:
# aws_route_table_association.payments_app_b will be created
# aws_security_group.payments_app_b will be created
# aws_subnet.payments_app_b will be created
Plan: 3 to add, 0 to change, 0 to destroy.
A configuration review is a qualified person other than the author checking a proposed configuration before it is applied. In an IaC workflow the reviewer reads two things: the diff, which shows what text changed, and the plan, which shows what that text will do to real infrastructure. The plan matters more, because a one-word edit can replace a whole resource. A practical checklist:
- Counts: three to add, none to change, none to destroy. An additive request should never show a destroy, and a change to an existing resource needs an explanation.
- Scope: every resource in the plan maps to a line of the change record. Anything else goes back to the author as a question.
- Addressing: 198.51.100.64/26 lies inside the VPC's 198.51.100.0/24 and overlaps no existing subnet. Check the IP address management (IPAM) records as well.
- Security rules: the new security group allows TCP 443 from 192.0.2.0/25 only, not from 0.0.0.0/0, and opens nothing else.
- Router side: the rendered configuration for edge-rtr-07 adds one line and removes none.
! Rendered for edge-rtr-07 (example)
ip route 198.51.100.64 255.255.255.192 Tunnel1 name payments-app-b
The exam uses the term in a second sense as well: a scheduled review of running configurations against the approved baseline, whether or not anyone has requested a change. That kind of review catches things no pull request ever showed, which is the subject of Step 7.
The reviewer approves, the change manager approves the window, and at 22:00 on Tuesday the merge triggers the apply.
Under every tool: API, SDK and CLI
Terraform and the cloud half of the pipeline end up sending requests to cloud provider APIs, and most network controllers and network management systems expose APIs as well. Configuration tools are more varied. Ansible, for example, may log in to a router over SSH and send commands to its command-line interface, or use NETCONF, a structured management protocol usually carried over SSH, with no REST call involved. Knowing the three ways to reach an API helps you pick the right one for a scripting task and answer scenario questions that turn on the difference.
- An application programming interface (API) is the contract itself: the endpoints, the request format, the authentication method and the responses. Cloud and controller APIs are usually REST style, meaning HTTPS requests with verbs such as GET, POST, PUT and DELETE, carrying JSON bodies.
- A software development kit (SDK) is a library for one programming language that wraps the API, so a program calls a function instead of building Hypertext Transfer Protocol (HTTP) requests by hand. A good SDK signs requests, retries after errors, follows pagination and returns typed errors. Boto3 is the AWS SDK for Python.
- A command-line interface (CLI) is a program you type commands into, such as the AWS CLI, the Azure CLI or a router's own CLI. Cloud CLIs are built on the same API and suit one-off checks and short shell scripts.
Here is one question, "which objects carry change tag CHG-2147?", asked all three ways. All three are examples with fictional data; the third uses an imaginary on-premises network management system.
# CLI: one command in a terminal
aws ec2 describe-subnets --filters "Name=tag:Change,Values=CHG-2147" --query "Subnets[].CidrBlock"
# SDK: the same request from a Python program using boto3
import boto3
ec2 = boto3.client("ec2", region_name="eu-west-2")
resp = ec2.describe_subnets(Filters=[{"Name": "tag:Change", "Values": ["CHG-2147"]}])
for subnet in resp["Subnets"]:
print(subnet["SubnetId"], subnet["CidrBlock"], subnet["State"])
# API: a fictional on-premises controller, called directly over HTTPS
GET https://nms.example.com/api/v1/devices/edge-rtr-07/routes?tag=CHG-2147
Authorization: Bearer <token issued by the secrets manager>
HTTP/1.1 200 OK
Content-Type: application/json
{"routes": [{"prefix": "198.51.100.64/26", "next_hop": "Tunnel1", "state": "active"}]}
| Question | API | SDK | CLI |
|---|---|---|---|
| What it is | The contract: endpoints, formats, authentication | A language library wrapping the API | A command-line program wrapping the API |
| Who uses it | Any program that can send HTTPS | Programs written in that language | People at a terminal; shell scripts; pipeline steps |
| Signing, retries, paging | You write them | The SDK handles them | The CLI handles them |
| Best for | Platforms with no SDK; webhooks; any language | Automation with loops, logic, error handling and integrations | Quick checks, one-off changes, short scripts |
| Common pitfall | Hand-built authentication with no retry logic | An old SDK version that lacks a newer API field | Long, fragile shell scripts that should have been programs |
APIs matter outside change work too. NIST's patch management guide notes that APIs built into cloud platforms can keep software inventory information continuously up to date.[10] Network inventory works the same way: a scheduled script that lists every VPC, subnet and tunnel through the API produces an inventory that is never more than a day old, which is far better than a monthly or quarterly scan.
What matters here: the API is the contract, and the SDK and the CLI are two wrappers around it. Use the CLI for quick human tasks, the SDK for programs that need logic, and the raw API when no wrapper exists for your platform or language. Devices with no API are still reached over SSH or NETCONF.
Step 7: Apply, verify, back up and watch for drift
The apply job runs, the router job pushes its one line, and the verification steps from the change record run as pipeline jobs: query the subnet, read the route from edge-rtr-07, and test HTTPS from a test host in Leeds. All three pass. The change is closed with links to the pull request and the pipeline run. The network, however, keeps changing after the ticket closes.
Desired state is the configuration you have declared the network should have, kept in version control. Actual state is what the devices and cloud resources are really running. When the two differ, you have configuration drift. Drift comes from console fixes during incidents, a colleague's manual edit, a vendor support session, a device reset, or a firmware upgrade that changes a default. A desired-state system finds drift by comparing the two on a schedule. Depending on how it is set up, it then reports the difference or corrects it.
Two references define what "correct" means:
- A baseline configuration is your organization's reviewed and approved set of settings for a class of system, such as all branch routers. NIST SP 800-128 treats it as a living record: as systems change, baselines are updated, settings confirmed, and configuration items tracked, verified and reported.[2]
- A benchmark, in the exam's sense, is a published, externally developed hardening guide, such as the CIS Benchmarks from the Center for Internet Security (CIS). A team usually adopts a benchmark, documents the deviations its environment needs, and the result becomes its baseline.
A scheduled compliance job compares each device with the baseline. Here is an example result for edge-rtr-07 a week after CHG-2147.
| Baseline check | Expected | Found on edge-rtr-07 | Result |
|---|---|---|---|
| SSH version | Version 2 only | Version 2 only | Pass |
| Telnet on remote access lines | Disabled | Disabled | Pass |
| Network Time Protocol (NTP) servers | Two internal servers | Two internal servers | Pass |
| Simple Network Management Protocol (SNMP) | SNMPv3 with authentication and privacy only | SNMPv3 plus an SNMPv2c community string | Fail |
| Logging | Central syslog collector | Central syslog collector | Pass |
The SNMP failure is drift: someone added an SNMPv2c community, perhaps while testing a monitoring tool. The finding goes to a person. That person either removes the community through the pipeline or records an approved exception, and either way the baseline and the device agree again.
Configuration backup and restore protects you when the network, or the automation itself, breaks. It answers a different question from version control. Git holds what you intended. A backup holds what was actually running, including devices not yet under automation and drift nobody has noticed. A sound practice backs up:
- each device's running and startup configuration, automatically before every change and on a schedule, stored off the device;
- the IaC state file, in a versioned, access-controlled backend, because if it is lost the tool no longer knows which real objects it manages;
- the secrets manager's own data, under its own protected procedure;
- the repository itself, which holds the code and the pipeline definitions.
A backup that has never been restored is a hope, not a control. Test restores on a schedule, on a lab device or a spare. In an IaC environment you will often recover cloud resources by re-applying code rather than by restoring anything. A physical router that lost its configuration, or a corrupted state file, still needs a real restore.
The second run: same request, one changed input
Now run CHG-2147 again with one difference. On the Sunday night before the change, card payments failed at Leeds. The incident team found that the store had added a second till network, 192.0.2.128/25, and that its HTTPS traffic to the existing payments security group was being dropped. Under emergency change CHG-2139, an engineer added an inbound rule for 192.0.2.128/25 in the cloud console. Payments recovered at 01:40. The emergency record says "codify in IaC within 48 hours". Nobody has done that yet, and the existing payments security group is defined in the same Terraform code.
On Monday the engineer opens the same pull request as before. The pipeline posts a different plan (a simplified example):
# aws_security_group.payments will be updated in-place
~ resource "aws_security_group" "payments" {
~ ingress = [
- {
- cidr_blocks = ["192.0.2.128/25"]
- from_port = 443
- to_port = 443
- protocol = "tcp"
},
# (1 unchanged element hidden)
]
}
Plan: 3 to add, 1 to change, 0 to destroy.
Work through it the way the reviewer would.
- Counts: one to change, in a request that should only add. The checklist says stop and ask.
- Scope: aws_security_group.payments is not in the CHG-2147 record. Nothing in the pull request's diff touches it.
- Detail: the change removes the HTTPS rule for 192.0.2.128/25.
- Cause: the code has never contained that rule, but the live group does. Terraform's job is to make live match code, so it plans to delete the extra rule. The tool is working exactly as designed: this is drift showing up in an unrelated change.
- Authority: is the drift authorized? The change records show CHG-2139, an approved emergency change. So here the live state is right and the code is out of date.
- Decision: do not merge as it stands. Merging would delete the rule at 22:00 on Tuesday and repeat Sunday's outage for the second till network. Instead, add the rule to the code in its own pull request referencing CHG-2139, merge that first, and re-run the CHG-2147 plan. It should return to "3 to add, 0 to change, 0 to destroy."
Now change the input once more. Suppose there is no change record for the console rule at all. The same plan line now points the other way: an unexplained rule opening HTTPS to a production group is unauthorized drift and possibly a security event. Removing it is right, but not quietly as a side effect of an unrelated change. Raise it, check the cloud audit log for who made it and from where, and remove it under its own change once the investigation allows.
The general lesson is that a desired-state tool enforces whatever the code says. It cannot tell an emergency fix from an intruder's rule. Change records tell you which is which, and that is why emergency changes must be written back into code quickly. A scheduled drift-detection job would have reported the rule on Monday morning, before anyone opened the pull request.
What matters here: when a plan proposes changes you did not ask for, the code and the live network disagree. Find out which one is authorized before you merge, then fix the other one.
Life cycle management: mutable, immutable and patched
Life cycle management covers a resource from request to removal: provisioning, configuration, ongoing change, patches and upgrades, and finally decommissioning when it reaches end of life (EOL) or end of support (EOS). In IaC, decommissioning is a reviewed change too: delete the resource from the code, and the plan shows the destroy. The largest life cycle choice is whether resources are changed in place or replaced.
Mutable infrastructure is changed in place: you push a configuration change, or install an upgrade, on the running system. Immutable infrastructure is never modified once deployed, only replaced. To change a setting or apply a security patch, you build a new artifact containing the change and deploy it to replace the old infrastructure.[6] An artifact here means a built, versioned unit such as a machine image or a container image.
| Question | Mutable | Immutable |
|---|---|---|
| How a change happens | Applied to the running system | New artifact built, tested and deployed; old one removed |
| Typical in a hybrid network | Physical routers, switches, firewalls, wireless controllers | Cloud virtual machines, virtual appliances deployed from images, containers |
| Drift risk | High: in-place edits accumulate | Low: every instance comes from the same artifact |
| Rollback | Reverse the change or restore a configuration backup | Redeploy the previous artifact |
| Prerequisites | Backups, change records, compliance scans | An image build pipeline, redundancy or a load balancer to swap instances |
| Weak point | One-off devices nobody can rebuild exactly | Anything stateful, such as logs or session data, must live elsewhere |
HashiCorp gives the two main arguments for immutability. First, in-place updates cause servers to drift from their original configuration over time.[6] Second, rollback becomes a matter of redeploying the previous artifact rather than repairing the current one.[6] Most hybrid networks use both models. You cannot replace the Leeds router each time a setting changes, so the branch edge stays mutable and relies on backups and compliance scans. The virtual firewalls in the VPC, deployed from a vendor image behind a load balancer, can be immutable: a new version means new instances from a new image, health checks, a traffic shift, and then deletion of the old instances.
Patch management is where the two models differ most. NIST SP 800-40 Revision 4, published in 2022, defines enterprise patch management as identifying, prioritizing, acquiring, installing and verifying patches, updates and upgrades across an organization.[10] Every day between a vendor advisory and a verified fix is a day of exposure, so a faster, well-tested pipeline shortens that window.
| Phase | Mutable: edge-rtr-07 firmware | Immutable: virtual firewall image |
|---|---|---|
| Identify and prioritize | Vendor advisory; query inventory for affected versions | Same |
| Acquire and test | Download the image; test on a lab router of the same model | Build a new image with the fix in the pipeline; run automated tests |
| Deploy | Back up the configuration; upgrade in a change window; reboot | Launch new instances; shift traffic; retire old instances |
| Verify | Check version and configuration after the reboot | Check the version on every new instance |
| Roll back | Reinstall the previous firmware and restore the configuration | Redeploy the previous image |
Verification is part of the job, not an extra. NIST notes that verifying patch deployment at scale generally needs automated means.[10] It also recommends continued monitoring afterward, for example to confirm that a patch has not been uninstalled and that an unpatched version has not been restored from a backup.[10] That last point links patching to backup and restore: restoring an old image or old firmware can quietly bring back a vulnerability you already fixed. Patches can also break things. NIST notes that installing a patch can cause operational issues that require uninstalling it, reverting to the previous version, or restoring from backups.[10] That is why the rollback row exists.
What matters here: mutable systems are changed in place and depend on backups, change records and drift checks. Immutable systems are replaced, which removes drift and turns rollback into a redeploy. A patch is a change like any other: tested, approved, verified and then monitored.
Generative AI in the automation workflow
Generative artificial intelligence (generative AI) means models that produce new text, code or images from a prompt. Network engineers use it to draft a Terraform module or an Ansible task, translate one vendor's CLI configuration into another's syntax, convert JSON to YAML, explain an unfamiliar configuration block, summarize a long plan or diff, or write a first draft of a test. Platforms are also building it into pipelines. GitHub's documentation describes Agentic Workflows, which keep YAML frontmatter (a settings block at the top of the file) for triggers and configuration but let you describe the task in natural-language Markdown.[9]
The risks follow from how these models work. They produce plausible output, not verified output. A generated configuration can use a parameter that does not exist, an API field from a different version, or a firewall rule that is syntactically perfect and far too broad. A prompt is also data leaving your control unless the tool is approved for that data, and a pasted running configuration can carry addresses, community strings or keys. Controls that work:
- Treat generated code as code from a new, untrusted contributor. It goes through the same branch, linter, plan, review and approval as anything else.
- Never paste secrets, customer data or full production configurations into a tool your organization has not approved for that data.
- Require a person who understands the plan to approve it before apply. "The AI wrote it" is not a review.
- Give automated agents least-privilege permissions, with no write access to production except through the pipeline.
Exam cues: what the stem says, what it points to
| The question stem says | Think | Commonly confused with |
|---|---|---|
| "Define the end state; the tool works out the steps" | Declarative IaC, desired state | An imperative script |
| "Create VPCs, subnets and gateways from code" | Resource provisioning | Resource configuration |
| "Push NTP, SNMP or route settings to existing devices from templates" | Resource configuration | Resource provisioning |
| "Catch indentation or syntax errors automatically before review" | Linter | Configuration review |
| "No one logs in to running servers; changes ship as new images" | Immutable infrastructure | In-place patching |
| "Upgrade firmware in place during a maintenance window" | Mutable infrastructure, patch management | Immutable replacement |
| "Ready to release; a person approves the release" | Continuous delivery | Continuous deployment |
| "Deploys automatically once tests pass" | Continuous deployment | Continuous delivery |
| "The repository is the single source of truth; changes only by pull request" | GitOps | Continuous integration alone |
| "A credential was found in a repository" | Rotate the credential first | Deleting the commit |
| "Live configuration no longer matches the code" | Configuration drift, desired-state check | A failed patch |
| "Published hardening guide from an outside body" | Benchmark (for example CIS) | Baseline, which is your approved standard |
| "Language library that handles signing and retries" | SDK | API or CLI |
| "One-off query typed in a terminal" | CLI | SDK |
| "Approval, window and rollback plan" | Change management | Configuration review |
Common misconceptions
- "If I delete the commit, the leaked key is gone." The key is still in the earlier commit, on every branch and in every clone. Rotate it first; cleaning history is optional once the old key no longer works.
- "A private repository is a safe place for a password." Everyone with access can read it now, anyone who gains access later can read the history, and secret scanning may not be enabled on private repositories. Files should refer to secrets, not contain them.
- "Infrastructure as code replaces change management." It changes where change management happens. The pull request can carry the record, but risk assessment, approval, a window and a rollback plan still apply.
- "Immutable infrastructure never changes." It changes all the time, by replacement. What never happens is an in-place edit to a running instance.
- "Continuous delivery and continuous deployment are the same thing." Delivery keeps a human release decision; deployment removes it. For production network changes, many teams keep the human decision.
- "When the tool reports drift, the code is always right." The tool enforces the code, right or wrong. An approved emergency fix makes the live network right and the code stale.
Summing up
- Every automated change still needs a change record with type, risk, window, verification and rollback; standard changes are pre-approved, emergency changes are documented afterward and written back into code.
- Declarative IaC describes the desired end state, and an idempotent tool calculates the steps; provisioning creates resources, configuration sets what is inside them.
- JSON uses braces and quotes and allows no comments; YAML uses space indentation, allows comments, forbids tab indentation and guesses types, so ambiguous strings such as 17.10 or no must be quoted.
- Linters check syntax, formatting, validity and policy before review, but a valid file can still carry a wrong design.
- Production IaC belongs in a private repository with least-privilege access; secrets are referenced from a secrets manager, and a committed secret is rotated immediately because it remains in Git history.
- Continuous delivery leaves the release to a person, continuous deployment releases automatically, and GitOps makes the repository the single source of truth reconciled against the live environment.
- Pipelines are privileged systems: pin actions by full commit SHA, grant minimal permissions, use short-lived federated credentials, and separate a read-only plan from an approved apply.
- The API is the contract; the SDK wraps it for a programming language and the CLI wraps it for a terminal, while some configuration tools reach devices over SSH or NETCONF instead.
- A baseline is your approved standard, often built from an external benchmark such as CIS; drift is any difference between desired and actual state, and backups capture actual state for restore, which must be tested.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Johnson, Souppaya, Scarfone, et al. (2011). Guide for Security-Focused Configuration Management of Information Systems (SP 800-128). NIST. nvlpubs.nist.gov
- HashiCorp Developer. (n.d.). Infrastructure as code (Well-Architected Framework). developer.hashicorp.com
- GitHub Docs. (n.d.). About secret scanning. docs.github.com
- NIST. (2024). Secure Software Development Practices for Generative AI and Dual-Use Foundation Models (SP 800-218A). nvlpubs.nist.gov
- HashiCorp Developer. (n.d.). Immutable infrastructure (Well-Architected Framework). developer.hashicorp.com
- Microsoft Learn. (n.d.). What is CI/CD? learn.microsoft.com
- Microsoft Learn (Azure Architecture Center). (n.d.). DevOps architecture design. learn.microsoft.com
- GitHub Docs. (n.d.). Workflow syntax for GitHub Actions. docs.github.com
- Murugiah Souppaya, Karen Scarfone. (2022). Guide to Enterprise Patch Management Planning: Preventive Maintenance for Technology (SP 800-40 Rev. 4). NIST. nvlpubs.nist.gov
- Key terms
- Infrastructure as code (IaC)
- Defining network and cloud infrastructure in version-controlled text files that a tool reads to create and change real resources, instead of configuring them by hand.
- Desired state
- The configuration an organization has declared a system should have, usually kept in version control and used as the reference for detecting and correcting differences in the live system.
- Configuration drift
- Any difference between a system's declared desired state and the configuration it is actually running, caused by manual edits, resets, upgrades or unrecorded changes.
- Immutable infrastructure
- Infrastructure that is never modified after deployment; any change or patch is made by building a new image or artifact and replacing the running instances with it.
- Linter
- A static analysis tool that reads code or configuration files without running them and reports syntax errors, style violations and risky patterns.
- Continuous delivery
- A pipeline practice in which every change that passes automated checks is ready to release at any time, but a person triggers the release to production.
- GitOps
- An operating model in which a Git repository is the single source of truth for desired state, all changes arrive by pull request, and automation makes the live environment match the repository.
- Secrets management
- Storing, issuing, rotating and auditing credentials such as passwords, API keys and pre-shared keys in a dedicated system so that code and images refer to secrets rather than contain them.
- Software development kit (SDK)
- A library for a specific programming language that wraps a service's API, handling details such as request signing, retries and pagination so programs can call functions instead of raw HTTP requests.
- Baseline configuration
- An organization's reviewed and approved set of settings for a class of system, often derived from an external benchmark with documented deviations, used as the standard for compliance checks.
Module 4: Network Troubleshooting
A method for complex networks, choosing and reading tools, and resolving connectivity, performance, Wi-Fi and access problems.
A Troubleshooting Method for Complex Networks
- Apply each step of the CompTIA troubleshooting methodology, in order, to a fault in a hybrid cloud network.
- Choose a top-to-bottom, bottom-to-top or divide-and-conquer approach based on the symptoms and the path involved.
- Decide what follows a confirmed or an unconfirmed theory, including when to escalate and what to hand over.
- Plan, verify and document a fix so that its effects, outcomes and lessons learned are recorded.
Fourteen tickets before ten o'clock
At 09:40 on a Monday, the service desk at Halvorsen Freight has logged fourteen tickets from its Leeds branch. Halvorsen is a fictional haulage company, and its outage is the running example in this lesson. Twelve tickets say some version of 'the internet is down.' One says the label printer on the second floor is slow. One says a desk phone has an echo.
A change window ran over the weekend, from 22:00 Saturday to 02:00 Sunday. In it, the network team upgraded the firmware on the branch's SD-WAN (Software-defined Wide Area Network) edge appliance. Separately, the application team used its infrastructure as code (IaC) pipeline to tighten the security group around the company's inventory application. That application runs in a Virtual private cloud (VPC) at a cloud provider.
You are the network architect on call. The manager on the bridge call wants the firmware rolled back now. That is a theory dressed up as a fix. A rollback reboots the edge appliance and drops every tunnel the branch has while it restarts. If the firmware is innocent, you have added a second outage to the first one and learned nothing. This lesson works through the Leeds case one step of CompTIA's troubleshooting methodology at a time and shows the mistake each step prevents.
Exam objectives: CompTIA CloudNetX CNX-001, objective 4.1: Explain the troubleshooting methodology.[1]
The objective lists seven steps. CompTIA does not number them; the numbers below are added here for reference. If you studied for Network+, the model will look familiar. CloudNetX applies it to longer paths: a laptop, a branch, an SD-WAN overlay, a cloud interconnect, route tables, network access control lists (NACLs, the subnet-level form of an ACL, or access control list) and security groups, all owned by different teams.
| Step | Question it answers | What it produces | What goes wrong if you skip it |
|---|---|---|---|
| 1. Identify the problem | What exactly fails, for whom, from where, since when? | A problem statement with scope and timeline | You fix the wrong thing, or a symptom instead of the problem |
| 2. Establish a theory of probable cause | Given the evidence, what is most likely wrong? | A short, ranked list of theories | Random changes, each one a new variable |
| 3. Test the theory to determine cause | Does a test confirm the theory or rule it out? | A confirmed cause, or a new theory or an escalation | A fix applied to a guess |
| 4. Establish a plan of action and identify potential effects | How will we fix it, and what else will the fix touch? | A change plan with rollback and communication | The fix breaks something else |
| 5. Implement the solution or escalate as necessary | Who applies the fix, and do they have the authority and access? | An applied fix, or a case handed to the right owner | Unauthorized changes, or a stalled incident |
| 6. Verify full system functionality and, if applicable, implement preventive measures | Does everything work, for everyone, and can we stop a repeat? | Verified service and preventive actions | A ticket closed while other users stay broken |
| 7. Document findings, actions, outcomes and lessons learned throughout the process | What did we see, do and learn? | A running record and a final report | The same fault costs the same hours next time |
Cisco's networking curriculum says that once you know the protocols and products, troubleshooting is essentially an exercise in logic.[2] It argues that a logical, step-by-step model helps minimize the time lost to unstructured troubleshooting.[2] You do not need to recite the steps. You need to apply them in order when the pressure to skip one is highest.
Identify the problem: gather information and question users
The first step ends in a problem statement. This is one or two sentences saying what fails, for whom, from where, since when, and what still works. Every later step is tested against it. Its first two sub-steps are to gather information and to question users.
Gather information from systems before you rely on memories. For a hybrid network, the usual sources are:
- Monitoring from Lesson 20: synthetic checks, SNMP (Simple Network Management Protocol) traps, interface counters and flow records.
- Controller and appliance logs. For Leeds, that means the SD-WAN controller's tunnel status and the edge appliance's event log since Saturday.
- Cloud-side evidence: the provider's status page, flow logs if they are enabled, and the activity log of who changed what in the account.
- The tickets themselves: site, time opened, device type, and the words used.
Here is what the Leeds tickets look like once sorted. Every name and address is fictional.
| Ticket | Opened | User's words | Found on callback |
|---|---|---|---|
| INC-7702 to INC-7713 (12 tickets) | 08:02-09:35 | 'Internet is down' | Web mail and public sites load. inv.example.com shows a timeout page after about 20 seconds. |
| INC-7714 | 08:50 | 'Label printer is slow' | Printing works. Jobs take 2 minutes to start. Started this morning. |
| INC-7690 | Thursday 15:10 | 'Phone has an echo' | One handset only. Started before the weekend change. |
Question users with specific questions, and ask them to show you rather than summarize. Users report their interpretation, so 'the internet is down' really means 'the thing I need does not work.' Good questions separate the observation from the interpretation:
| Question | What the answer tells you |
|---|---|
| What exactly do you see? Read me the error, word for word. | The symptom, and often the layer involved |
| When did it last work? | The time window to search for changes |
| Does anyone near you have the same problem? | Scope: one device, one floor, one site, everyone |
| What else fails, and what still works? | Which shared parts of the path are healthy |
| Are you in the office, at home, or on VPN? | Which path the traffic actually takes |
| Have you changed or installed anything? | Changes on the user's side that no change record will show |
Ask open questions first and leading questions never. 'Is it the Wi-Fi?' invites a yes from someone who does not know. After six callbacks, the Leeds report has become something much narrower: users at Leeds time out on one internal cloud application, while email and public web traffic work.
Identify the problem: symptoms, changes and duplicating the fault
Identify symptoms means listing what can be observed, kept separate from guesses about cause. Different error messages point to different places, so the exact wording matters:
- Name could not be resolved: the client never got an address. Look at DNS (Domain Name System) first.
- Connection refused: a host answered and actively rejected the connection. The path works; the service, the port or a reject rule does not.
- Connection timed out: nothing came back. Something dropped the traffic silently: a missing route, a filter that drops instead of rejecting, or a host that is down.
- Slow but working: a performance problem. It needs measurement over time rather than a pass or fail test, using the monitoring techniques from Lesson 20.
Leeds shows a timeout, not a refusal and not a name error. That one word already rules out a whole family of theories.
Determine if anything has changed. A network that worked on Friday and fails on Monday has had something move. Look at more than one place:
- Approved change records and the change calendar.
- The commit history of the IaC repository and its pipeline runs. Lesson 21's automation is a change source even when nobody logged in to a device.
- The difference between each device's running configuration and its last backup, which catches unrecorded changes.
- Expiry dates for certificates, licenses and keys. These change state with no human action at all.
- Provider maintenance notices for the circuit, SD-WAN service or cloud region.
- The CMDB (Configuration Management Database), to see what depends on the item that changed.
| Change | Window | Owner | Summary |
|---|---|---|---|
| CHG-4411 | Sat 22:00-23:10 | Network team | Leeds SD-WAN edge firmware upgrade |
| CHG-4415 | Sun 00:30-00:45 | Application team | Replace the broad 10.0.0.0/8 HTTPS (Hypertext Transfer Protocol Secure) rule on the inventory security group with per-site ranges |
Duplicate the problem, if possible.[1] Reproduce the failure yourself, from the same vantage point the users have. A failure you can trigger on demand lets you run a test and see the result in seconds. The network team signs in to a Leeds laptop and runs Windows PowerShell's Test-NetConnection against the application on TCP (Transmission Control Protocol) port 443. The output below is a fictional example:
PS> Test-NetConnection inv.example.com -Port 443
WARNING: TCP connect to (10.20.4.15 : 443) failed
ComputerName : inv.example.com
RemoteAddress : 10.20.4.15
RemotePort : 443
InterfaceAlias : Ethernet
SourceAddress : 10.8.12.34
PingSucceeded : True
PingReplyDetails (RTT) : 22 ms
TcpTestSucceeded : False
Read it line by line. The name resolved to 10.20.4.15, so DNS works. The ping succeeded, so the IP (Internet Protocol) path carries ICMP (Internet Control Message Protocol) traffic. The TCP test failed. The fault is now reproduced, and it already has a shape.
Notice the words 'if possible.' Some faults are intermittent, so you set up capture or monitoring to catch the next occurrence. Some should never be reproduced on purpose. You do not recreate a switching loop on a production floor to watch it happen again. When duplication is unsafe or impossible, record that, and lean harder on logs and timelines.
Approach multiple problems individually
Fourteen tickets arrived in one morning, but they do not describe one problem. The last sub-step of identifying the problem is to approach multiple problems individually. Give each distinct problem its own record, its own problem statement and its own priority.
The incident handling guide from NIST, the National Institute of Standards and Technology, is Special Publication (SP) 800-61 Revision 2. It recommends prioritizing incidents on factors such as their functional impact on the business.[3] Revision 2 dates from 2012. NIST published a Revision 3 in 2025, which restructures its incident response guidance, so use the current edition for security work. The ideas borrowed here, ranking by impact and learning lessons after an incident, are long-standing practice in both editions' field. The guide is written for security incidents, but the same rule ranks network faults well. Twelve users who cannot process shipments outrank one slow printer.
Handling problems individually does not mean ignoring links between them. Compare timelines:
- The phone echo (INC-7690) started on Thursday, before either weekend change. It is a separate problem and goes to the voice team.
- The slow label printer (INC-7714) started this morning, so it could be related to the weekend changes. It still gets its own ticket. You note the possible link and recheck it after the main fix. If the printer recovers too, the link was real. If it does not, you have avoided bending your main theory to explain a symptom it never caused.
- The twelve application tickets share a symptom, a site and a start time. They are linked under one parent incident.
Why this matters: a theory built to explain every ticket at once is usually wrong about some of them. Separate the problems, rank them by impact, and use timelines to decide which ones might share a cause.
The Leeds problem statement now reads: Since at least 08:02 Monday, when the first ticket arrived, users at Leeds (10.8.0.0/16) time out connecting to inv.example.com (10.20.4.15) on TCP 443. Users at headquarters (HQ) are not affected. DNS, ICMP, email and public web traffic work from Leeds. Every word in it came from evidence. Notice that it says 'since at least': the first complaint tells you when users noticed, not when the fault began.
Establish a theory of probable cause: question the obvious
A theory of probable cause is a specific, testable explanation that fits the evidence. The objective's first sub-step is to question the obvious. That has two meanings, and both matter.
First, check the simple things before the clever ones. For Leeds:
- Is the application up at all? The synthetic check from headquarters has passed every five minutes all morning. Yes.
- Does the name resolve to the right address? Yes, 10.20.4.15, matching the CMDB record.
- Are the users on the corporate network rather than the guest Wi-Fi? The callbacks were from wired desks on the user VLAN (Virtual Local Area Network). Yes.
- Is the SD-WAN tunnel up? The controller shows it up since 23:06 Saturday, just after the upgrade.
Second, question 'obvious' facts that people hand you. 'Nothing changed on our side' and 'the firewall is fine' are claims, not evidence, until someone checks. The manager's belief that the firmware must be to blame is also a claim. It rests on timing alone.
Now write down the competing theories and what you know for and against each. Writing them down is what stops the loudest theory from winning by default.
| Theory | Evidence for | Evidence against | Cheapest test |
|---|---|---|---|
| A. The firmware upgrade broke routing to the cloud | Timing: Saturday night | Tunnel is up; ping to the server succeeds | Ping and traceroute from Leeds to 10.20.4.15 |
| B. The security group change no longer admits Leeds | Timing: Sunday 00:30; only Leeds affected; TCP fails while ICMP works | None yet | Read the CHG-4415 diff; run the TCP test from headquarters |
| C. The application itself is failing | None | Headquarters synthetic check passes | Already done by monitoring |
Theory C is effectively closed. Theory A is the manager's favorite. Theory B fits more of the evidence. The method says test before you fix, and test the cheapest theory first if it is quick, so both A and B will be tested in minutes.
Consider multiple approaches: top-to-bottom, bottom-to-top, divide and conquer
The second sub-step of building a theory is to consider multiple approaches. The objective names three. Two follow the OSI model (Open Systems Interconnection model) in opposite directions. The third splits the problem in half and keeps splitting.
| Approach | Where you start | How you move | Best when | Watch out for |
|---|---|---|---|---|
| Top-to-bottom | Layer 7: the application and the user's error | Down the layers until a layer works | One application fails while others on the same path work | Slow when the fault is a dead cable or port |
| Bottom-to-top | Layer 1: cables, optics, power, link lights | Up the layers, confirming each before moving on | Everything fails at once, or after physical work such as re-patching or new hardware | Wastes time when lower layers are clearly fine |
| Divide and conquer | The middle: often a layer 3 test such as ping, or the midpoint of the path | Up or down, toward the half that failed | The fault could be anywhere, the path is long, or several teams own parts of it | Only works if the test truly separates the two halves |
Top-to-bottom starts where the user is. You confirm the application error, then the session, then the transport port, then IP reachability, and you stop at the first layer that works. The fault is in the layer just above it.
Bottom-to-top starts at the physical layer and climbs: is there link, are there errors on the interface, is the port in the right VLAN, is there an address, a route, a reachable port, a working service. It is slow, but it rarely misses a physical fault. That makes it the right start when the symptom is broad and physical work just happened.
Divide and conquer picks a test in the middle. If a ping to the server's IP address succeeds, layers 1 to 3 along that path work, so you move up. If it fails, you move down. The same idea applies to the path as well as the layers. On a hybrid path you test from the branch LAN (local area network) gateway, then the SD-WAN edge, then the cloud side of the interconnect, and halve the suspect section each time.
These names are standard across the industry. A 2015 Cisco exam blueprint for wireless troubleshooting listed bottom up, top down and divide and conquer, plus a fourth called 'shoot from the hip.'[4] Shooting from the hip means acting on an experienced hunch. It is reasonable only when the hunch is cheap to test and harmless if wrong. Rolling back firmware on a live branch edge is neither. The same blueprint asked candidates to evaluate layer 2 issues against upper-layer issues as a way to find the source of poor user experience.[4] That is a divide-and-conquer split.
One vocabulary trap is worth knowing. Cisco's curriculum also uses 'top-down' and 'bottom-up' for two kinds of reasoning, not two directions through the OSI model. Deductive reasoning moves from the general to the specific and is informally referred to as a top-down approach.[2] Inductive reasoning moves from specific observations to broader theories and is sometimes referred to as a bottom-up approach.[2] When an exam question about objective 4.1 says top-to-bottom or bottom-to-top, it means the OSI layers.
Cloud tools now run part of a divide-and-conquer search for you, within their own boundary. Microsoft's training on hybrid networking teaches a structured IP troubleshooting method for isolating connectivity problems.[5] The Reachability Analyzer from AWS (Amazon Web Services) checks a path inside Amazon's cloud for misconfigurations in components such as security groups, network ACLs and route tables.[6] If the path is unreachable, it returns an explanation code that names the blocking component.[6] The AWSSupport-ConnectivityTroubleshooter runbook from AWS walks the same kind of path in order. It starts by gathering details about the source resource.[7] It then works out where the traffic goes, using the routes it gathered in that first step.[7] Among its later steps, it checks whether the security group rules allow the traffic and whether the NACLs allow it.[7]
These tools see only their own provider's configuration, and they have preconditions. Reachability Analyzer, for example, expects the source and destination to be in the same AWS Region.[6] A Leeds laptop is outside that boundary, so the branch half of the path still needs your own tests.
Why this matters: choosing the approach is part of the theory. A broad, physical symptom calls for bottom-to-top. One application failing calls for top-to-bottom. A long path with several owners calls for divide and conquer, so each test removes half of what is left.
Test the theory to determine cause
The third step is to test the theory to determine cause.[1] Cisco's description of deductive reasoning is this step in miniature. You begin with a theory about the problem, narrow it to a specific hypothesis that can be tested, and collect observations against it.[2] A good test has four properties:
- You write down the expected result before you run it. Otherwise any result can be explained after the fact.
- Its result would be different if the theory were false. A test that comes out the same either way proves nothing.
- It changes nothing, or changes one thing that you can undo.
- It is the cheapest test that separates the theories you have.
Testing Theory A. If the firmware broke routing, a ping from the Leeds jump host to the server should fail, and a traceroute should stop at the edge appliance. The jump host, lds-jump01 at 10.8.1.50, is a server on the branch's server VLAN. The fictional output shows the opposite of the prediction. The traceroute uses ICMP (the -I option) because the security group still allows ICMP from 10.0.0.0/8 under a separate rule.
lds-jump01:~$ ping -c 4 10.20.4.15
PING 10.20.4.15 (10.20.4.15) 56(84) bytes of data.
64 bytes from 10.20.4.15: icmp_seq=1 ttl=61 time=21.8 ms
64 bytes from 10.20.4.15: icmp_seq=2 ttl=61 time=21.6 ms
64 bytes from 10.20.4.15: icmp_seq=3 ttl=61 time=22.1 ms
64 bytes from 10.20.4.15: icmp_seq=4 ttl=61 time=21.9 ms
--- 10.20.4.15 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
lds-jump01:~$ traceroute -I 10.20.4.15
traceroute to 10.20.4.15 (10.20.4.15), 30 hops max, 60 byte packets
1 10.8.1.1 (10.8.1.1) 0.611 ms 0.540 ms 0.502 ms
2 10.255.8.1 (10.255.8.1) 1.204 ms 1.188 ms 1.160 ms
3 10.255.0.9 (10.255.0.9) 19.870 ms 19.902 ms 19.844 ms
4 10.20.4.15 (10.20.4.15) 21.733 ms 21.690 ms 21.702 ms
Hop 1 is the branch LAN gateway. Hop 2 is the SD-WAN edge. Hop 3 is the cloud side of the interconnect. Hop 4 is the server. The overlay carries traffic end to end with no loss. The prediction failed, so Theory A is not confirmed.
The objective says what to do next. If the theory is not confirmed, establish a new theory or escalate.[1] Do not apply the firmware rollback 'just in case.' That turns a failed test into an untested fix. The ping result also adds evidence: layers 1 to 3 work along the whole path, so the search moves up to layer 4.
Testing Theory B. If the security group change excluded Leeds, two things should be true. The diff of CHG-4415 should show a rule that does not cover 10.8.0.0/16. And a TCP test to port 443 from headquarters (10.9.0.0/16) should succeed while the same test from Leeds, laptop or jump host, fails. Here is the relevant part of the diff, as a fictional example in HCL (HashiCorp Configuration Language):
ingress {
description = "Inventory app HTTPS from Leeds and HQ"
from_port = 443
to_port = 443
protocol = "tcp"
- cidr_blocks = ["10.0.0.0/8"]
+ cidr_blocks = ["10.80.0.0/16", "10.9.0.0/16"]
}
Only the block covering Leeds and headquarters is shown. The same commit added separate ingress blocks for the other branches, and those list their ranges correctly, which is why no other site complained. The block shown admits 10.80.0.0/16, a typing slip for Leeds's 10.8.0.0/16, plus the headquarters range. The TCP test from the headquarters jump host returns TcpTestSucceeded True, and the same test from lds-jump01 at Leeds returns False. Both predictions hold. Theory B is confirmed: the security group drops Leeds's HTTPS traffic, and because a security group drops silently, users see a timeout rather than a refusal.
If the theory is confirmed, the objective's next sub-step is to determine the next steps to resolve the problem.[1] That is a decision, not a keystroke. Who owns the rule? Where is it defined: in code, or by hand in the console? Is the fix urgent enough for an emergency change? Those questions feed the plan in step 4.
Same evidence, one input changed: the second run
Change one fact and watch the reasoning flip. Suppose the CHG-4415 diff had listed Leeds correctly, as 10.8.0.0/16. Nothing else about the morning changes: the tickets arrive, and laptops on the Leeds user VLAN still time out. What changes is what your tests show. With the rule correct, the TCP test from lds-jump01 at 10.8.1.50 now succeeds.
| Observation | First run | Second run |
|---|---|---|
| CIDR for Leeds in the CHG-4415 rule (the changed input) | 10.80.0.0/16, a typing slip | 10.8.0.0/16, correct |
| Does the security group admit Leeds source addresses? | No | Yes |
| TCP 443 from a Leeds user laptop (10.8.12.34) | Fails | Fails |
| TCP 443 from the Leeds jump host (10.8.1.50) | Fails | Succeeds |
| TCP 443 from headquarters | Succeeds | Succeeds |
| Theory B | Confirmed | Not confirmed |
| Where the fault now lies | Cloud security group | Inside Leeds: between the user VLAN and the SD-WAN edge, or on the laptops |
In the second run, the cloud half of the path is innocent. The jump host proves that traffic from a Leeds address crosses the overlay, passes the security group and reaches the application. So the new theory must explain what differs between the jump host and the laptops. Candidates include a branch firewall or SD-WAN application policy that treats the user VLAN differently, a proxy setting pushed to laptops, NAC (Network Access Control) placing laptops in a restricted VLAN, or an endpoint firewall update.
Each candidate has a cheap test. Compare the edge's policy for the two VLANs. Run the same TCP test from a laptop with the proxy bypassed. Check which VLAN the NAC system assigned. If those tests run out and the fault sits in a component you do not own, the second half of the objective's rule applies: escalate.
Why this matters: the test that rules out a theory is often the most useful test of the day. It moves the boundary of the search and tells you which half of the path to look at next.
Establish a plan of action and identify potential effects
Back to the first run. The fourth step is to establish a plan of action to resolve the problem and identify its potential effects.[1] The fix looks trivial: change 10.80 to 10.8. The plan exists because 'trivial' changes to shared rules break things.
| Element | Content |
|---|---|
| Change | Correct the CIDR (Classless Inter-domain Routing) block in the IaC repository from 10.80.0.0/16 to 10.8.0.0/16, then apply it through the pipeline |
| Why in code, not the console | A console edit would be overwritten at the next pipeline run and would create drift between code and reality |
| Potential effects | The security group also protects the inventory API (application programming interface) servers. Check the plan output to see whether the provider updates the rule in place or deletes and recreates it, which could briefly drop headquarters traffic too |
| Other dependencies | Check IPAM (IP Address Management) for whether 10.80.0.0/16 belongs to any site. It belongs to none, so removing it affects nobody |
| Approval | Emergency change, approved by the duty change manager |
| Rollback | Revert the commit; the pipeline restores the previous rule |
| Communication | Service desk and Leeds site lead told of the fix time and asked to have users retry |
| Success test | TCP 443 succeeds from Leeds, headquarters and one other branch; monitoring stays green |
Identifying potential effects is the part people skip. A fix touches whatever shares the object you change: the rule, the device, the route, the policy. Ask what else uses that object, what happens during the change itself, and how you will undo it if the success test fails.
Implement the solution or escalate as necessary
The fifth step is to implement the solution, or escalate as necessary.[1] Implementing means carrying out the approved plan exactly. Do not bundle in the extra tidy-up you noticed along the way, because every unplanned change is a new variable.
Escalation means handing the problem, with your evidence, to someone with the authority, access, skill or ownership you lack. It is a planned outcome, not a failure. Escalate when:
- The fix lies in a system another team or a provider owns.
- The fix needs privileges you do not hold, and your organization grants elevation through a controlled process such as just-in-time access (Lesson 15).
- Your theories are exhausted and a specialist or vendor is needed.
- The time box agreed in a service-level agreement (Lesson 18) has run out.
Now flip one more input. Suppose the inventory security group lives in the application team's cloud account, and the network team's role there is read-only. The diagnosis stands, but step 5 becomes an escalation. A good handover lets the receiver act without repeating your work:
To: Application platform on-call
Re: INC-7702, Leeds cannot reach inv.example.com on TCP 443
Problem: Since at least 08:02 Mon (likely since CHG-4415, 00:45 Sun),
10.8.0.0/16 times out to 10.20.4.15:443. HQ unaffected.
Cause (confirmed): CHG-4415 rule lists 10.80.0.0/16; Leeds is 10.8.0.0/16.
Evidence: diff attached; TCP test fails from Leeds, passes from HQ;
ping and traceroute from Leeds complete, so the path is healthy.
Ruled out: SD-WAN firmware (CHG-4411); application health (HQ check green).
Requested action: correct the CIDR in the repository; apply via pipeline.
Potential effects: same group protects the inventory API servers; check the plan output.
Contact: network on-call, bridge 4471
Why this matters: an escalation that arrives with the problem statement, the confirmed cause, the evidence and what has been ruled out gets fixed in minutes. A bare 'please look at this' starts the whole method again from step 1.
Verify full system functionality and implement preventive measures
The sixth step is to verify full system functionality and, if applicable, implement preventive measures.[1] 'Full' is the key word. The users who complained are not the only people the change touched. NIST's guide expresses the same idea for recovery: confirm that affected systems are functioning normally and, if necessary, add monitoring to watch for future related activity.[3]
For Leeds, verification covers everything the plan named:
- TCP 443 from a Leeds user laptop: TcpTestSucceeded True. Two users confirm the application loads and they can post a shipment.
- TCP 443 from headquarters and from one other branch: still True, so the fix did not break them.
- The inventory API servers behind the same security group: their health checks stay green through and after the change.
- The headquarters synthetic check, and a new synthetic check from Leeds: both green.
- The printer ticket (INC-7714): still slow. It was not caused by the security group, so it stays a separate problem with its own investigation.
Preventive measures fix the conditions that let the fault happen, not the fault itself. Good candidates here:
- A pipeline policy check that compares every CIDR in a security group against IPAM's list of site ranges and fails the build on any unknown range.
- A synthetic transaction from every branch, not only from headquarters, for business-critical applications. Leeds was broken from about 00:45 on Sunday, when CHG-4415 finished, and nobody with monitoring knew until users phoned from 08:02 on Monday.
- A change template that requires a post-change test from each affected site.
'If applicable' means a preventive measure is not always warranted. A one-off hardware failure may need only the replacement part. When a fault came from a process gap, as here, prevention is where the real value lies.
Document findings, actions, outcomes and lessons learned throughout
The seventh item is easy to misread as the last step. The objective says to document findings, actions, outcomes and lessons learned throughout the process. Cisco names documentation, planning and communication as the keys to a problem-free network.[2] NIST's checklist says to begin documenting the investigation as soon as the handler believes an incident has occurred.[3]
A running log, written as you go, looks like this for Leeds (fictional example):
09:41 INC-7702 parent; INC-7703 to INC-7713 linked. INC-7714 (printer) and INC-7690 (phone) kept separate.
09:48 Problem statement recorded (see top of ticket).
09:52 Changes in scope: CHG-4411 SD-WAN firmware, CHG-4415 inventory security group.
09:58 Reproduced from Leeds laptop 10.8.12.34: ping OK, TCP 443 FAIL.
10:03 Theory A (firmware). Ping and traceroute from lds-jump01: complete, 0% loss. NOT CONFIRMED.
10:09 Theory B (security group). Diff shows 10.80.0.0/16. HQ TCP 443 OK, lds-jump01 FAIL. CONFIRMED.
10:15 Plan drafted; potential effect on inventory API servers noted.
10:24 Emergency change ECHG-118 approved.
10:31 Pipeline applied corrected CIDR.
10:34 Verified: Leeds, HQ, one other branch TCP 443 OK; API health green; users confirm.
10:40 INC-7714 printer still slow; remains open, not related.
A log like this does three jobs during the incident. It lets a second engineer join without asking you to repeat everything. It stops the team re-testing a theory that was already ruled out. And it gives the change manager the evidence behind the emergency approval.
After the incident it does a fourth job. NIST recommends using the lessons learned process to gain value from incidents.[3] After a major incident, it recommends a lessons learned meeting to review how well the handling process worked.[3]
NIST also notes that follow-up reports help with future incidents and with training new team members.[3] For Leeds, the lessons are concrete. A typing slip in a CIDR block went through peer review. Branch monitoring did not exist, so a fault that began at about 00:45 on Sunday went unseen for more than 31 hours, until the first ticket at 08:02 on Monday. The first theory came from the bridge call, not from the evidence. Each lesson maps to one of the preventive measures above, which is how a lessons learned record proves its worth.
Exam cues: matching the stem to the step
Questions on this objective usually describe a moment in an incident and ask what comes next, or which step was skipped. The cue words below point to the step being tested, including the pairs people confuse.
| The stem says | The step or sub-step | Often confused with |
|---|---|---|
| 'What should the technician do first?' with a vague report | Identify the problem: gather information, question users | Establishing a theory, which needs evidence first |
| 'It worked yesterday' or 'after the weekend maintenance' | Determine if anything has changed | Rolling back the change, which is a fix that has not been tested |
| 'Tries to make the error happen again' | Duplicate the problem, if possible | Testing the theory, which comes after a theory exists |
| Several unrelated complaints at once | Approach multiple problems individually | Assuming one root cause |
| 'Checks whether the cable is plugged in' or 'whether the service is running' | Question the obvious | Bottom-to-top, which is a full layer-by-layer sequence |
| One application fails, others work | Top-to-bottom OSI approach | Bottom-to-top |
| Everything fails after physical work | Bottom-to-top OSI approach | Top-to-bottom |
| Starts with a ping, then moves up or down | Divide and conquer | Bottom-to-top, which starts at layer 1 |
| 'The test did not support the theory' | Establish a new theory or escalate | Implementing the fix anyway |
| 'The theory is confirmed' | Determine next steps, then establish a plan of action | Implementing immediately |
| 'Considers what else the change could affect' or 'schedules a rollback' | Establish a plan of action and identify potential effects | Verifying functionality |
| Fault lies in a provider's or another team's system | Implement the solution or escalate | Establishing a new theory |
| 'After the fix,' 'confirms all users,' 'adds monitoring' | Verify full system functionality and implement preventive measures | Documenting |
| 'Records what was tried,' 'lessons learned' | Document throughout the process | Treating documentation as only the final step |
If an option offers a fix before the stem describes a confirmed theory, it is almost always wrong. The method's whole point is that changes follow evidence.
Common misconceptions
- 'Documentation is the last step.' The objective says findings, actions, outcomes and lessons learned are documented throughout the process. A log written from memory after a two-hour bridge call loses the ruled-out theories, which are often the most useful part.
- 'If the timing fits, the latest change is the cause.' Timing makes a change a suspect, not a culprit. At Leeds two changes fit the timeline, and the one everyone blamed was innocent.
- 'A failed test means try a fix anyway.' When a theory is not confirmed, the method says form a new theory or escalate. Applying the untested fix adds a variable and may cause a second outage.
- 'Escalating means I failed.' Escalation is a named step. When the fault sits in another team's account, or needs privileges you do not hold, escalating with evidence is the correct action.
- 'The user says it works, so the ticket is done.' Verification means full system functionality, which includes every user and system the fix could have touched.
- 'Top-down always means the OSI model.' In Cisco's curriculum, top-down and bottom-up also describe deductive and inductive reasoning. In CompTIA's objective 4.1, top-to-bottom and bottom-to-top refer to OSI layers.
Looking back
- Objective 4.1 has seven steps: identify the problem; establish a theory of probable cause; test the theory; establish a plan of action and identify potential effects; implement or escalate; verify full system functionality and implement preventive measures; and document throughout.
- Identifying the problem means gathering information, questioning users, identifying symptoms, determining what changed, duplicating the problem if possible, and approaching multiple problems individually. It produces a problem statement.
- Error wording narrows the layer: a name error points to DNS, a refusal means a host answered, and a timeout means something dropped the traffic silently.
- Top-to-bottom starts at the application and suits one failing application. Bottom-to-top starts at layer 1 and suits broad failures after physical work. Divide and conquer starts in the middle, often with ping, and halves the suspect section with each test.
- A good test has a predicted result written down first, and its result would differ if the theory were false.
- A confirmed theory leads to deciding next steps and building a plan. An unconfirmed theory leads to a new theory or escalation, never to an untested fix.
- A plan of action names the change, its potential effects on everything sharing the changed object, approval, rollback, communication and a success test.
- Verification covers every user and system the fix could affect. Preventive measures, such as pipeline checks against IPAM and monitoring from every branch, address the conditions that allowed the fault.
- Cloud path analyzers such as AWS Reachability Analyzer name the blocking component inside their own provider's network, but the on-premises half of a hybrid path still needs your own tests.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Cisco. (n.d.). 11.1 General Approach to Troubleshooting. cisco.com
- Cichonski, Millar, Grance, Scarfone. (2012). Computer Security Incident Handling Guide (SP 800-61 Rev. 2). NIST. nvlpubs.nist.gov
- Cisco. (n.d.). Troubleshooting Cisco Wireless Enterprise Networks (300-370 WITSHOOT) Exam Topics. learningcontent.cisco.com
- Microsoft Learn. (n.d.). Troubleshoot on-premises and hybrid networking. learn.microsoft.com
- Amazon Web Services. (n.d.). How do I use the VPC Reachability Analyzer to troubleshoot connectivity issues with an Amazon VPC resource? aws.amazon.com
- Amazon Web Services. (n.d.). AWSSupport-ConnectivityTroubleshooter. docs.aws.amazon.com
- Key terms
- Troubleshooting methodology
- An ordered procedure for resolving faults: identify the problem, theorize, test, plan with effects, implement or escalate, verify and prevent, and document throughout.
- Problem statement
- A short, evidence-based description of what fails, for whom, from where, since when, and what still works, against which theories and fixes are judged.
- Theory of probable cause
- A specific, testable explanation of a fault that fits the gathered evidence and predicts what a given test should show.
- Top-to-bottom OSI approach
- Troubleshooting that starts at the application layer and works down the OSI layers until it reaches one that works; suited to a single failing application.
- Bottom-to-top OSI approach
- Troubleshooting that starts at the physical layer and confirms each layer upward; suited to broad failures or faults after physical work.
- Divide and conquer
- Troubleshooting that tests at a midpoint, by OSI layer or along the path, and continues in whichever half failed, halving the suspect area with each test.
- Escalation
- Handing a problem, with the evidence gathered so far, to a person or team with the authority, access, skill or ownership needed to resolve it.
- Potential effects
- Everything a planned fix could change besides the target fault, such as other systems sharing the same rule or device, downtime during the change, and rollback risk.
- Full system functionality
- Verification that a fix works for every user and system it could have affected, not only for the person who reported the fault.
- Lessons learned
- A review after an incident that records what happened, what worked, and what to change in processes or controls so the fault is less likely to recur.
Choosing the Right Tool or Command
- Match each tool and command in objective 4.2 to the question it answers, the layer it reads and the platform it runs on.
- Read typical output from ip, dig, mtr, ss, Nmap, curl, OpenSSL, tcpdump, iperf3, top, snmpwalk and nfdump, and state what it proves and what it cannot prove.
- Choose between similar tools (dig or nslookup, traceroute or mtr, Netcat or Nmap, tcpdump or Wireshark, curl or Postman, snmpwalk or nfdump) for a given scenario.
- Sequence tools from host configuration up to the application to locate a fault and verify the fix.
One ticket, twenty-five tools
Here is an example ticket, invented for this lesson. At 08:40 on a Monday, the service desk forwards a message from branch office 12. The human resources (HR) portal at hr.example.com times out. Video calls work. Head office says the portal is fine. CompTIA's objective 4.2 gives you twenty-five tools and commands for a moment like this, and it frames the skill as choosing the right one for the scenario in front of you.[1] Each tool answers one kind of question well. A ping cannot tell you whether a web server is listening on port 443. Nmap cannot tell you why a Transport Layer Security (TLS) handshake fails. Wireshark cannot tell you who filled the Wide Area Network (WAN) link at 14:00 yesterday, because nobody was capturing at 14:00 yesterday.
So the skill is not memorizing flags. It is turning a symptom into a precise question, then picking the tool that answers that question. The questions follow the layers a packet climbs. What does the host believe about its own configuration? Do names resolve? Does a path exist? Does a port answer? Do the application and its certificates work? How much capacity is there? What do the packets show? And what did the whole fleet record while you were not looking?
Exam objectives: 4.2 Given a scenario, use the appropriate tool or command. Tools: Wireshark, Netcat, Nmap, Iperf, radclient, OpenSSL and Postman. Commands: tcpdump, dig, mtr, arp, netstat, curl, ping, nslookup, traceroute, ifconfig, route, ss, dhclient, top, snmpwalk, nfdump, ip, and ipconfig with its /flushdns switch.
The basic forms of ping, traceroute, ipconfig and nslookup are Network+ material. If they feel rusty, the Atlas Network+ course covers them. This lesson works at the architect's level: what each output can prove and what it cannot. Every command and output below is an example. Output layout varies with version and operating system, so read the fields, not the spacing. The examples use only documentation addresses and example.com names, with a fixed plan so you can follow one network through the lesson:
| Address range | What it stands for in the examples |
|---|---|
| 198.51.100.0/24 | Branch office 12. The user's laptop is 198.51.100.44, the branch gateway 198.51.100.1, the branch DHCP server 198.51.100.5 and the branch DNS resolver 198.51.100.53. |
| 192.0.2.0/24 | Head office and the data-center internal network. The Linux jump host is 192.0.2.25, with gateway 192.0.2.1. |
| 203.0.113.0/24 | The data center's public side and the provider routers between sites. The data-center firewall's outside address is 203.0.113.1, the HR portal is 203.0.113.40, and provider routers use 203.0.113.201 and 203.0.113.217. |
The objective in one table
Read this table as a map. The sections after it group the tools by question and show realistic example output for each one.
| Tool or command | The question it answers | Where it runs | Do not confuse with |
|---|---|---|---|
| ipconfig, ipconfig /flushdns | What Internet Protocol (IP) address, default gateway and Domain Name System (DNS) servers does this Windows host have? Clear its DNS cache. | Windows | ifconfig and ip, the Unix and Linux equivalents |
| ifconfig | What addresses, Maximum Transmission Unit (MTU) and error counters does each interface have? | macOS, BSD, older Linux | ipconfig (Windows) and ip (current Linux) |
| ip | What addresses, links, routes and neighbors does a Linux host have? Which route would one packet take? | Linux | ifconfig, route and arp, which it replaces on Linux |
| route | What is in the routing table? Can I add a static route? | Windows (route print), older Linux | traceroute, which tests the path the network actually uses |
| arp | Which Media Access Control (MAC) address does the Address Resolution Protocol (ARP) cache hold for a local IP address? | Windows, macOS, older Linux | ip neigh on current Linux |
| dhclient | Can this Linux host get a Dynamic Host Configuration Protocol (DHCP) lease, and what does the server offer? | Linux | ipconfig /release and /renew on Windows |
| dig | Exactly what does a DNS server answer, with which flags and Time to Live (TTL)? | Linux, macOS, installable on Windows | nslookup, which gives simpler output and is built into Windows |
| nslookup | What does a DNS server answer for this name? | Windows, Linux, macOS | dig |
| ping | Does a host answer Internet Control Message Protocol (ICMP) echo? How fast, with how much loss, at what packet size? | Everywhere | curl or Netcat, which test a service rather than the host |
| traceroute | Which routers lie on the path to a destination? | Linux, macOS (tracert on Windows) | mtr, which repeats the test and keeps statistics |
| mtr | Where along the path do loss and latency appear, over time? | Linux, macOS | traceroute (one pass) and ping (one destination) |
| ss | Which sockets are listening or connected on this Linux host, and in what Transmission Control Protocol (TCP) state? | Linux | netstat, the older tool |
| netstat | Which connections and listeners exist, and which process owns them? | Windows, macOS, older Linux | ss; Nmap, which looks from outside |
| Netcat (nc) | Can I open a TCP or User Datagram Protocol (UDP) connection to one port from here? Can I listen on a test port? | Linux, macOS | Nmap, which surveys many ports or hosts |
| Nmap | Which hosts are up? Which ports are open, closed or filtered? Which services run? | All platforms | Netcat; ss and netstat, which look from inside |
| curl | What does this Uniform Resource Locator (URL) return: Hypertext Transfer Protocol (HTTP) status code, headers, redirects, timing, certificate errors? | All platforms | Postman (interactive, saved requests); OpenSSL (TLS only) |
| Postman | Does this Application Programming Interface (API) accept my request, with these headers, token and body? | Desktop or web application | curl, which suits scripts and one-liners |
| OpenSSL | Which certificate chain and TLS version does the server present, and does it verify? | All platforms | curl, which shows the HTTP result on top of TLS |
| radclient | Does the Remote Authentication Dial-In User Service (RADIUS) server accept, reject or ignore a test request? | Linux (FreeRADIUS utilities) | Testing a login through a wireless controller or VPN |
| Iperf | How much throughput, jitter and loss does the path deliver between two hosts I control? | All platforms, both ends | ping, which measures delay, not capacity |
| top | Which processes use Central Processing Unit (CPU) time and memory on this Linux host right now? | Linux, macOS | snmpwalk, which reads a device's counters remotely |
| tcpdump | Which packets cross this interface? Capture and filter them from a command line. | Linux, macOS, many appliances | Wireshark, which decodes and analyzes interactively |
| Wireshark | What happened in this conversation, decoded field by field? | Desktop | tcpdump, which suits headless capture |
| snmpwalk | Which values does this device's Simple Network Management Protocol (SNMP) agent report under a branch of its Management Information Base (MIB)? | Net-SNMP on Linux, macOS, Windows | nfdump, which reports traffic flows |
| nfdump | Who talked to whom, how much and when, according to stored flow records? | Linux flow collector | tcpdump, which must be running at the time |
Remember: sort the tools by the question each one answers, not by name. Host configuration, names, paths, ports, applications, capacity, packets and fleet history are eight different questions, and each has its own small set of right tools.
What the host believes: ipconfig, ifconfig, ip, route, arp and dhclient
Start at the host, because every later test inherits its mistakes. A laptop pointed at the wrong DNS server fails every lookup. A wrong default gateway makes every remote test fail in the same way, and you can lose an hour blaming the WAN for it.
Three families of command answer the question. Ipconfig is the Windows tool. Ifconfig is the classic Unix tool. It is still the native command on macOS and the BSDs, but on Linux it belongs to the old net-tools package, which many current distributions no longer install by default. The ip command from the iproute2 suite is the Linux replacement. It also replaces the Linux route and arp commands. The table maps the common tasks across platforms.
| Task | Windows | Linux, current (iproute2) | Legacy Unix and Linux (net-tools) |
|---|---|---|---|
| Show addresses and DNS settings | ipconfig /all | ip addr (ip -br addr for a brief view) | ifconfig -a |
| Show interface counters | netstat -e | ip -s link | ifconfig |
| Show the routing table | route print | ip route | route -n or netstat -rn |
| Ask which route one destination uses | Find-NetRoute in PowerShell | ip route get 203.0.113.40 | No direct equivalent |
| Add a static route | route add 203.0.113.0 mask 255.255.255.0 192.0.2.9 (add -p to keep it after reboot) | ip route add 203.0.113.0/24 via 192.0.2.9 | route add -net 203.0.113.0 netmask 255.255.255.0 gw 192.0.2.9 |
| Show the neighbor (ARP) cache | arp -a | ip neigh | arp -n |
| Release and renew a DHCP lease | ipconfig /release, then ipconfig /renew | dhclient -r, then dhclient (where installed) | Same as Linux |
| View or clear the DNS cache | ipconfig /displaydns, ipconfig /flushdns | resolvectl flush-caches (when systemd-resolved is used) | Usually no local cache |
Here is an example of ipconfig /all on the branch 12 laptop from the opening ticket, trimmed to the lines that matter:
> ipconfig /all
Ethernet adapter Ethernet:
Physical Address. . . . . . . . . : 00-00-5E-00-53-44
DHCP Enabled. . . . . . . . . . . : Yes
IPv4 Address. . . . . . . . . . . : 198.51.100.44(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 198.51.100.1
DHCP Server . . . . . . . . . . . : 198.51.100.5
DNS Servers . . . . . . . . . . . : 198.51.100.53Read it as a checklist. Is there an address? Does the mask match the site's plan? Is there a gateway? Which DNS server is in use? Now suppose the IPv4 line read Autoconfiguration IPv4 Address with a 169.254.x.x value. That means Windows asked for a lease, nobody answered, and it gave itself a link-local address. The fault is then in DHCP: the server, the DHCP relay on the router (often called an IP helper), or a Network Access Control (NAC) policy that holds the port in a quarantine Virtual Local Area Network (VLAN).
The Linux tools give the same facts in a denser form. This example output comes from the head office Linux jump host, which has one extra static route:
$ ip -br addr
lo UNKNOWN 127.0.0.1/8 ::1/128
ens3 UP 192.0.2.25/24 2001:db8:12::25/64
$ ip route
default via 192.0.2.1 dev ens3 proto dhcp metric 100
192.0.2.0/24 dev ens3 proto kernel scope link src 192.0.2.25
203.0.113.0/24 via 192.0.2.9 dev ens3
$ ip route get 203.0.113.40
203.0.113.40 via 192.0.2.9 dev ens3 src 192.0.2.25 uid 1000
cache
$ ip neigh
192.0.2.1 dev ens3 lladdr 00:00:5e:00:53:01 REACHABLE
192.0.2.9 dev ens3 lladdr 00:00:5e:00:53:09 STALE
192.0.2.30 dev ens3 FAILEDThe ip route get line is the most useful one here. It asks the kernel which route, interface and source address it would use for one destination, and it sends no packet. In this example, traffic to 203.0.113.40 leaves via 192.0.2.9, not the default gateway. Why? A host always prefers the most specific matching prefix. A /24 beats the default route (0.0.0.0/0), and the metric only breaks ties between equally specific routes. A leftover static route, or one pushed by a Virtual Private Network (VPN) client with a split tunnel, can quietly steer traffic the wrong way. That is exactly the kind of fault ip route get exposes before you capture anything.
The ip neigh lines show the neighbor cache. REACHABLE means a recent reply. STALE means the entry is old and will be checked again before use. FAILED means the host asked for 192.0.2.30's MAC address and got no answer. That host is off, on another VLAN, or blocked at layer 2.
The route command is the older tool for the same table. On Windows, route print lists the IPv4 and IPv6 route tables with destination, netmask, gateway, interface and metric. route add creates a static route, and -p makes it persist across reboots. Keep the limit in mind: route reads what the host intends to do. It does not prove the network beyond the first hop agrees. That is traceroute's job.
The arp command prints the Address Resolution Protocol cache, the mappings from IP address to MAC address for hosts on the local segment. For any remote destination you will only see the gateway's MAC address, because that is where the frame goes. Look for two things. An incomplete entry means no ARP reply came. A MAC address that changes for the same IP address between two checks suggests a duplicate address or ARP spoofing, which is the attack that dynamic ARP inspection on switches is built to stop.
Dhclient is the Internet Systems Consortium (ISC) DHCP client on Linux. dhclient -r releases the lease, and dhclient -v ens3 requests a new one and prints each step. Here are two example runs on head office VLANs:
$ sudo dhclient -v ens3 (a VLAN with no working DHCP path)
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
$ sudo dhclient -v ens3 (a healthy VLAN)
DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.0.2.80 from 192.0.2.5
DHCPREQUEST for 192.0.2.80 on ens3 to 255.255.255.255 port 67
DHCPACK of 192.0.2.80 from 192.0.2.5
bound to 192.0.2.80 -- renewal in 1742 seconds.The four messages are the DHCP exchange: discover, offer, request, acknowledge. Repeated discovers with no offer mean the broadcast never reached a server, so check the relay on that VLAN's router interface, the server's scope and any NAC quarantine. An offer that arrives from an unexpected address means a second, unauthorized DHCP server is on the segment, the problem DHCP snooping prevents. ISC has ended maintenance of its original DHCP software, and many current distributions manage leases through NetworkManager or systemd-networkd instead. The exam names dhclient, so know its output, but expect other clients on new builds.
Ifconfig still earns its place for one reason: its interface counters are easy to read. Here is an example from the jump host with net-tools installed:
$ ifconfig ens3
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.0.2.25 netmask 255.255.255.0 broadcast 192.0.2.255
ether 00:00:5e:00:53:25 txqueuelen 1000 (Ethernet)
RX packets 9120443 bytes 8811230441 (8.8 GB)
RX errors 1832 dropped 0 overruns 0 frame 1832
TX packets 6034112 bytes 1204438770 (1.2 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Receive (RX) frame errors that keep rising point at layer 1: a damaged cable, a dirty optic or a duplex mismatch. Run the command twice a minute apart and compare the counts. ip -s link shows the same counters on systems without ifconfig.
Remember: check what the host believes before testing the network. ipconfig, ifconfig and ip show addresses; route and ip route show the table, and ip route get shows the one route a packet will use; arp and ip neigh show layer 2 neighbors; dhclient and ipconfig /renew test the lease.
Names: dig, nslookup and ipconfig /flushdns
The dig command (domain information groper) sends a DNS query and prints the whole response. Here is an example from a branch host:
$ dig hr.example.com A
; <<>> DiG 9.18.28 <<>> hr.example.com A
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40211
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;hr.example.com. IN A
;; ANSWER SECTION:
hr.example.com. 2416 IN A 203.0.113.40
;; Query time: 3 msec
;; SERVER: 198.51.100.53#53(198.51.100.53) (UDP)| Field | What it tells you |
|---|---|
| status | NOERROR means the query worked. NXDOMAIN means the name does not exist. SERVFAIL means the resolver could not get a usable answer, for example because the authoritative servers were unreachable or Domain Name System Security Extensions (DNSSEC) validation failed. REFUSED means this server will not answer you. |
| flags | aa (authoritative answer) appears only when the answering server holds the zone itself. No aa means a recursive resolver answered instead. That resolver may have fetched the record a moment ago or served it from its cache; the flag alone does not say which. ra means recursion is available. |
| TTL (2416) | Seconds this answer may still be cached. A resolver serving from cache counts it down from the record's original TTL, so a value lower than the one the authoritative server gives suggests a cached copy. |
| SERVER | Which server actually answered. Check that it is the one you expected. |
| Query time | A few milliseconds suggests a cache hit; hundreds suggest a full recursive lookup or a slow path. Read it together with the TTL to tell cached from fresh. |
dig's useful options are few. @server sends the query to a chosen server, such as dig @ns1.example.com hr.example.com, so you can compare the authoritative answer with the resolver's copy. +short prints only the answer. +noall +answer prints only the answer section with its TTL. +trace follows the delegation from the root servers downward, which shows where a broken delegation lies.
Nslookup does the same job with less detail, and it is built into Windows, which is why help desk staff reach for it. Example output from the branch laptop:
> nslookup hr.example.com
Server: branch-dns.example.com
Address: 198.51.100.53
Non-authoritative answer:
Name: hr.example.com
Address: 203.0.113.40Non-authoritative answer is the same fact that dig shows as a missing aa flag: a recursive resolver answered, not the zone's own server. It does not by itself mean the answer is stale or cached, and nslookup's default output does not show the TTL, so switch to dig when that matters. nslookup hr.example.com 192.0.2.53 queries a specific server, here the head office resolver, and typing nslookup alone starts an interactive mode.
Two facts about both tools catch experienced people out. First, they send the query straight to a DNS server. They do not read the hosts file and do not consult the operating system's resolver cache. So nslookup can show the correct answer while a browser on the same laptop still uses a stale one. Second, unless you name a server, they ask the host's configured resolver, and that resolver may itself be caching an old answer.
Work an example. The record for hr.example.com pointed at 203.0.113.41 with a TTL of 3600 seconds. At 09:00 it was changed to 203.0.113.40. The branch resolver last fetched the record at 08:50. At 09:20 a user still reaches the old server. You run two queries:
$ dig @198.51.100.53 hr.example.com +noall +answer
hr.example.com. 1800 IN A 203.0.113.41
$ dig @ns1.example.com hr.example.com +noall +answer
hr.example.com. 3600 IN A 203.0.113.40The authoritative server has the new address and the full TTL. The branch resolver holds the old one with 1800 seconds left. Check the arithmetic: fetched at 08:50, plus 3600 seconds, expires at 09:50, which is 30 minutes after 09:20. Flushing every laptop in the branch would achieve nothing, because each laptop would ask the resolver again and get the old answer again. The fix is to clear that entry on the resolver or wait. The lesson for next time is to lower the TTL, for example to 300 seconds, a day before a planned change.
Now change one input. At 09:55, dig @198.51.100.53 returns 203.0.113.40, yet one Windows laptop still connects to .41. Run ipconfig /displaydns on it. If the cache shows the old A record, the stale copy is on the laptop, and this is the moment for the objective's named switch:
> ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.Ipconfig /flushdns empties the Windows DNS Client cache, including negative entries that remember a name did not exist. It does not touch a browser's own DNS cache, so closing and reopening the browser may also be needed. It does nothing to any upstream resolver. On Linux with systemd-resolved, the equivalent is resolvectl flush-caches. Do not confuse it with ipconfig /renew, which renews the DHCP lease and does not empty the DNS cache.
Paths: ping, traceroute and mtr
The ping command sends ICMP echo requests and reports replies, round-trip time and loss. It proves the host answers ICMP. It does not prove a service works, and a failed ping does not prove the host is down: many host firewalls and cloud security groups drop ICMP echo unless a rule allows it.
Ping's most useful architect-level job is finding the path MTU, the largest packet that crosses every link without fragmentation. Set the don't-fragment bit and vary the size. On Windows that is ping -f -l size; on Linux it is ping -M do -s size. The size you give is the ICMP payload. An IPv4 header adds 20 bytes and the ICMP header 8 bytes, so on a 1500-byte path the largest payload is 1500 - 20 - 8 = 1472. Example output from a head office host whose traffic to the data center crosses an Internet Protocol Security (IPsec) tunnel:
> ping -f -l 1472 203.0.113.40
Pinging 203.0.113.40 with 1472 bytes of data:
Packet needs to be fragmented but DF set.
> ping -f -l 1372 203.0.113.40
Pinging 203.0.113.40 with 1372 bytes of data:
Reply from 203.0.113.40: bytes=1372 time=14ms TTL=581372 + 28 = 1400, so the path MTU is at least 1400 bytes, which fits the overhead a tunnel adds. Now the flip. If the 1472-byte ping simply timed out instead of returning the fragmentation message, the router that cannot forward the packet is sending its ICMP fragmentation-needed message and something is dropping it. That is a path MTU black hole: small packets work, large ones vanish, and TLS sessions stall right after the handshake. The fix is to allow that ICMP type or clamp the TCP maximum segment size (MSS) on the tunnel.
Traceroute maps the routers on a path. It sends probes with the IP TTL set to 1, then 2, then 3, and so on. Each router decrements the TTL; the router that takes it to zero discards the probe and returns an ICMP time exceeded message, which reveals its address. Linux traceroute sends UDP probes by default; Windows tracert uses ICMP echo; traceroute -I uses ICMP, and traceroute -T -p 443 sends TCP synchronize (SYN) segments, the first packet of a TCP connection, to port 443, so the probes pass firewalls that allow only web traffic. Example output from the head office jump host:
$ traceroute -n 203.0.113.40
traceroute to 203.0.113.40 (203.0.113.40), 30 hops max, 60 byte packets
1 192.0.2.1 0.512 ms 0.488 ms 0.470 ms
2 203.0.113.201 4.102 ms 4.230 ms 4.011 ms
3 * * *
4 203.0.113.1 13.004 ms 13.120 ms 12.981 ms
5 203.0.113.40 13.611 ms 13.580 ms 13.702 msThe stars at hop 3 mean that router sent no time exceeded message. Because hops 4 and 5 answer, packets clearly pass through hop 3, so this is not a fault. If the stars began at hop 3 and continued to hop 30, the path or the replies stop there.
The mtr tool (originally Matt's traceroute) combines traceroute and ping. It keeps probing every hop and keeps statistics, which turns a single snapshot into evidence over time. Here is an example report of 100 cycles from the same jump host (-r report mode, -w wide names, -c count):
$ mtr -rwc 100 203.0.113.40
HOST: hq-jump Loss% Snt Last Avg Best Wrst StDev
1.|-- 192.0.2.1 0.0% 100 0.6 0.7 0.4 1.9 0.2
2.|-- 203.0.113.201 0.0% 100 4.1 4.3 3.8 9.0 0.6
3.|-- 203.0.113.217 38.0% 100 12.2 12.5 11.9 30.1 2.1
4.|-- 203.0.113.1 0.0% 100 13.0 13.4 12.7 20.4 0.9
5.|-- 203.0.113.40 0.0% 100 13.6 13.8 13.1 19.8 0.7Hop 3 shows 38 percent loss, and the hops after it show none. Real forwarding loss cannot vanish downstream: if hop 3 dropped 38 percent of packets passing through it, hops 4 and 5 would show at least that much. What hop 3 drops is its own replies. Routers forward traffic in hardware but generate ICMP replies on their control-plane CPU, which they rate-limit and deprioritize. This report shows a healthy path.
Change one input. Suppose hops 3, 4 and 5 all showed loss of about 38 percent. Now the loss starts at hop 3 and carries through to the destination, so it is real, and it begins on the link into hop 3 or inside it. That report, with timestamps, is what you send to the provider. One caution: traceroute and mtr show the forward path only. The return path may differ, so loss can appear because replies come back a different way. Run mtr from both ends when you can.
Sockets and ports: ss and netstat from inside, Netcat and Nmap from outside
A network socket is the operating system's endpoint for a conversation: protocol, local address and port, and for a connection, the remote address and port. Two tools list sockets from inside the host, and two test ports from outside. You usually need one of each, because they answer different halves of one question. Inside says something listens. Outside says I can reach it.
The ss command is the Linux socket statistics tool from iproute2. Its manual describes it as showing information similar to netstat, with more TCP and state detail than the older tools.[2] With no options it lists established connections. The -l option shows only listening sockets, which are otherwise left out.[2] Combine -t (TCP), -u (UDP), -n (numeric, no name lookups) and -p (owning process). Here is an example from the HR portal server itself:
$ sudo ss -tlnp
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=640,fd=3))
LISTEN 0 511 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=812,fd=7))
LISTEN 0 511 127.0.0.1:8443 0.0.0.0:* users:(("nginx",pid=812,fd=6))Port 443 listens on all IPv4 addresses (0.0.0.0). Port 8443 listens only on 127.0.0.1, the loopback address, so no remote client can ever reach it, whatever the firewall says. A remote attempt gets a TCP reset (RST), which shows as connection refused. On a listening socket, Recv-Q is the number of connections waiting to be accepted and Send-Q is the maximum backlog. A Recv-Q that climbs toward Send-Q means the application is not accepting connections fast enough.
ss can also filter by TCP state, using names such as established, syn-sent, time-wait and close-wait.[2] Two states are diagnostic. Many sockets stuck in syn-sent on a client mean its SYNs get no answer: something drops them. Many in close-wait on a server mean the remote side closed and the local application never closed its end, which is an application bug that leaks sockets until the service fails.
Netstat is the older tool for the same view, and it is still the standard on Windows. netstat -ano lists all connections and listeners with numeric addresses and the owning process ID; netstat -r prints the routing table; netstat -s prints per-protocol statistics. Example output from the branch 12 laptop in the opening ticket:
> netstat -ano | findstr 203.0.113.40
TCP 198.51.100.44:51544 203.0.113.40:443 SYN_SENT 9312SYN_SENT means the laptop sent a SYN and nothing has come back. Hold that thought for the worked ticket below.
Netcat (nc) opens or accepts a raw TCP or UDP connection. Its two troubleshooting uses are testing one port and standing up a test listener. Example output from the common OpenBSD version, run from the head office jump host:
$ nc -zv -w 3 203.0.113.40 443
Connection to 203.0.113.40 443 port [tcp/https] succeeded!
$ nc -zv -w 3 203.0.113.40 8443
nc: connect to 203.0.113.40 port 8443 (tcp) failed: Connection refusedThe -z option connects without sending data, -v reports the result and -w 3 gives up after three seconds. Refused means a reset came back, which matches the loopback-only listener that ss showed on 8443. A timeout means nothing came back at all. The listener use is the one architects value: before an application is installed, run nc -l 9000 on the new server (traditional versions use nc -l -p 9000), then nc -zv from the client side. If that succeeds, the new firewall rules, security groups and routes are proven, and any later failure belongs to the application. With UDP (-u), silence is ambiguous, because a UDP service need not reply.
Nmap (Network Mapper) is the survey tool. Its reference guide describes it as an open source tool for network exploration and security auditing, designed to scan large networks quickly.[3] The same guide notes that administrators also use it for routine tasks such as network inventory and managing service upgrades.[3] Example output from head office:
$ nmap -Pn -p 22,443,8443 203.0.113.40
Nmap scan report for 203.0.113.40
Host is up (0.014s latency).
PORT STATE SERVICE
22/tcp filtered ssh
443/tcp open https
8443/tcp closed https-alt
Nmap done: 1 IP address (1 host up) scanned in 1.52 secondsThe port states are the heart of Nmap, and they map directly to fixes. Open means an application on the target is listening on that port.[3] Filtered means a firewall, filter or other obstacle blocked the probes, so Nmap cannot tell whether the port is open or closed.[3] Closed means the host answered but no application listens on the port.[3] Unfiltered, which appears only with certain scan types, means the port responds to probes but Nmap cannot tell open from closed.[3] Read this scan against the ss output: sshd listens on 22, but a firewall in front of the server drops the probes, so Nmap sees filtered; 8443 listens only on loopback, so the host itself resets the probe and Nmap sees closed. In practice, filtered sends you to the firewall team, and closed sends you to the server or application team. One subtlety: a firewall configured to reject rather than drop sends its own reset, so a port can look closed when a firewall is answering for it. A capture at the server settles which.
The options you need are few. -p chooses ports. -Pn skips host discovery and treats the target as up, which matters when ICMP is blocked. -sn does host discovery only, the inventory sweep of a subnet. -sV probes open ports to identify the service and version, which helps check that a patched version is really running. Scan only networks you are authorized to test, under written scope such as a statement of work. An unannounced scan looks exactly like reconnaissance to an intrusion detection system and to the network's owner.
Remember: ss and netstat prove something is listening and on which address; Netcat proves one port is reachable from one place; Nmap surveys many ports or hosts and labels each port open, closed or filtered. Filtered points to the path, closed to the host.
Applications: curl, Postman, OpenSSL and radclient
An open port only proves a TCP handshake can happen. The next question is whether the application behind it works.
The curl command is the command-line client for URLs. With -v it prints the connection, the TLS details and the HTTP exchange. Example output for a different site, a wiki behind a load balancer at 203.0.113.50, trimmed:
$ curl -v https://wiki.example.com/
* Trying 203.0.113.50:443...
* Connected to wiki.example.com (203.0.113.50) port 443
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* Server certificate:
* subject: CN=wiki.example.com
* expire date: Mar 14 23:59:59 2027 GMT
> GET / HTTP/1.1
> Host: wiki.example.com
< HTTP/1.1 502 Bad GatewayLines starting with an asterisk are curl's own notes; the greater-than sign marks what curl sent and the less-than sign what the server returned. This run proves DNS, the TCP path and TLS all worked. A 502 Bad Gateway comes from a reverse proxy or load balancer that could not get a good response from the server behind it, so the fault is behind the front end, not in the network you just tested.
curl's timing output splits a slow page into its parts. Each value is cumulative from the start of the request, in seconds:
$ curl -sS -o /dev/null -w 'dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} first_byte=%{time_starttransfer} total=%{time_total} code=%{http_code}' https://wiki.example.com/
dns=0.004 tcp=0.018 tls=0.055 first_byte=2.912 total=2.915 code=200Work it through. Name lookup took 4 ms. The TCP handshake took 18 - 4 = 14 ms, which is one round trip. TLS finished at 55 ms. Then the client waited 2.912 - 0.055 = 2.857 seconds for the first byte. The network delivered everything within 55 ms; the server spent almost three seconds thinking. Change one input: if tcp had read 1.018, the first SYN was probably lost and resent after the initial one-second retransmission timeout, which is a network problem.
Three more options matter. --resolve wiki.example.com:443:192.0.2.12 sends the request to one chosen back-end server while keeping the right name for the Host header and for TLS server name indication (SNI), the field a client uses to tell a multi-site server which certificate it wants. That lets you test each server behind a load balancer in turn. The --cacert option names a file of certificate authority (CA) certificates to trust, for example curl --cacert CA-file.txt https://example.com.[4] The --capath option names a directory of certificates used to verify the server.[4] Either one is the right way to test a site signed by a private CA. -k (--insecure) skips verification entirely: it is a diagnostic that tells you the failure is in certificate verification, never a fix. Finally, if the SSLKEYLOGFILE environment variable names a file, curl writes the TLS secrets of its connections into it.[4] That file lets an analyzer decrypt a capture, so treat it as a secret and delete it afterwards.
Postman is a graphical API client. Where curl is a one-line test or a script, Postman is a workbench: you build a request with its method, URL, headers, authorization and body, save it in a collection, and switch between environments that hold variables such as base_url and token. Here is an example request against a fictional network controller's Representational State Transfer (REST) API, which returns JavaScript Object Notation (JSON):
| Part of the request | Example value |
|---|---|
| Method and URL | GET {{base_url}}/api/v1/devices?site=branch12 |
| Environment | base_url = https://ctrl.example.com; token stored as a secret variable, not in the shared collection |
| Header | Authorization: Bearer {{token}} |
| Response and meaning | 200 OK with a JSON list: works. 401 Unauthorized: token missing, expired or invalid. 403 Forbidden: the token is valid but its role lacks permission. 429 Too Many Requests: an automation script is hitting the rate limit. |
Choose Postman when you are exploring an API, sharing tested requests with a team, or checking the JSON a REST endpoint returns before writing automation around it. Choose curl for scripts, health checks and jump hosts with no desktop. Postman can generate the equivalent curl command for a saved request, so the two work well together. The 401 and 403 split is worth memorizing: the first is an authentication failure, the second an authorization failure.
OpenSSL is a cryptographic toolkit, and its s_client command opens a raw TLS session and shows exactly what the server presents. Example output for an intranet server with a broken chain, trimmed:
$ echo | openssl s_client -connect intranet.example.com:443 -servername intranet.example.com
CONNECTED(00000003)
depth=0 CN = intranet.example.com
verify error:num=20:unable to get local issuer certificate
verify error:num=21:unable to verify the first certificate
---
Certificate chain
0 s:CN = intranet.example.com
i:C = US, O = Example Trust, CN = Example Issuing CA 2
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Verify return code: 21 (unable to verify the first certificate)In the chain, s: is a certificate's subject and i: its issuer, and CN is the common name. The chain lists only certificate 0, the server's own. Its issuer is an intermediate CA that the server did not send, so a client that does not already hold that intermediate cannot build a path to a trusted root. The fix is to install the full chain on the server. Always pass -servername, because a server hosting many sites uses the SNI name to choose which certificate to present. -showcerts prints every certificate sent, and -tls1_2 or -tls1_3 tests whether a given version is accepted. To read a certificate file, use openssl x509 -in intranet.pem -noout -subject -issuer -dates, which prints the names and the notBefore and notAfter dates.
| Verify return code | Meaning | Usual fix |
|---|---|---|
| 0 (ok) | The chain verified to a trusted root | None |
| 10 (certificate has expired) | A certificate's notAfter date has passed | Renew; automate renewal, for example with the Automated Certificate Management Environment (ACME) protocol |
| 18 or 19 (self-signed) | The certificate, or a root in the chain, is not in the trust store | Use a trusted CA, or add the private root to clients |
| 20 or 21 | The client could not find the issuer of a certificate | Send the intermediate certificates with the server certificate |
Radclient is a FreeRADIUS utility that sends a single RADIUS packet and prints the reply. It lets you test the authentication server directly, without the wireless controller, VPN gateway or switch that normally sits in between. Example, with a test account and a placeholder secret:
$ echo 'User-Name = "radtest01", User-Password = "example-only"' | radclient -x 192.0.2.60:1812 auth <shared-secret>
Sent Access-Request Id 23 from 0.0.0.0:41932 to 192.0.2.60:1812 length 49
User-Name = "radtest01"
User-Password = "example-only"
Received Access-Reject Id 23 from 192.0.2.60:1812 to 0.0.0.0:41932 length 20Three outcomes matter. Access-Accept means the server and the account work, so look at the controller or switch. Access-Reject means the server processed the request and said no, so read the server's log for the reason: a wrong password, a disabled account, a policy mismatch, or a wrong shared secret. No reply at all means the server never processed the request: UDP 1812 is blocked, or the server does not list your test host as a RADIUS client.
The shared secret behaves in a way worth knowing. RADIUS hides the User-Password attribute using the secret, so with a mismatched secret the server may decode the password into garbage and simply send Access-Reject, as if the password were wrong. Where the server requires a Message-Authenticator attribute, it instead discards the packet and you see no reply. So when a known-good test account is rejected, compare the secret on both sides before resetting the password.
Know radclient's limit too. It sends the attributes you give it, such as a plain Password Authentication Protocol (PAP) User-Password or a Challenge Handshake Authentication Protocol (CHAP) exchange. It does not run Extensible Authentication Protocol (EAP) methods such as Protected EAP (PEAP) or EAP-TLS, which 802.1X wired and wireless logins use. An Access-Accept from radclient therefore proves the server, the client entry and the account, but not that 802.1X works; that needs a separate EAP test client such as eapol_test from the wpa_supplicant project. Besides auth, radclient also sends acct (accounting), status, coa (change of authorization) and disconnect packets.
Capacity and load: Iperf and top
Iperf measures throughput between two hosts you control: one runs as a server and the other as a client. The current version is iperf3, which listens on TCP port 5201 by default and does not interoperate with the older iperf2. Example runs between a head office client and a branch 12 test host at 198.51.100.20:
server$ iperf3 -s
Server listening on 5201
client$ iperf3 -c 198.51.100.20 -t 10
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 1.09 GBytes 937 Mbits/sec 14 sender
[ 5] 0.00-10.00 sec 1.09 GBytes 934 Mbits/sec receiver
client$ iperf3 -c 198.51.100.20 -u -b 50M -t 10
[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams
[ 5] 0.00-10.00 sec 59.5 MBytes 49.9 Mbits/sec 1.204 ms 52/43158 (0.12%) receiverThe TCP run shows 934 Mbit/s received on a gigabit path, with 14 retransmissions (Retr). The UDP run sends at a fixed 50 Mbit/s (-b 50M) and reports what TCP hides: jitter and lost datagrams. That makes UDP mode the right test before moving voice onto a circuit. -R reverses the direction so the server sends, which tests the download direction through network address translation (NAT) without opening an inbound port at the client. -P 4 runs four parallel streams.
Why parallel streams? A single TCP stream can carry at most one window of data per round trip, so its throughput is limited to window size divided by round-trip time. With a 64 KiB window (65,536 bytes) over a 40 ms round trip: 65,536 bytes × 8 = 524,288 bits, and 524,288 / 0.040 s = 13.1 Mbit/s, however fast the link. To fill 1 Gbit/s at 40 ms you need 1,000,000,000 × 0.040 = 40,000,000 bits, about 5 MB, in flight. This is the bandwidth-delay product. If one stream is slow and four streams together fill the link, the limit is the window or the host, not the circuit. Two cautions: an iperf test consumes the capacity it measures, so schedule it, and in the cloud the result is often capped by the instance size's network limit rather than the path.
The top command shows, live, which processes use CPU time and memory on a Linux or macOS host, including the many network appliances and virtual appliances built on Linux. Its default summary line averages all CPUs together; pressing the 1 key while it runs shows one line per CPU, which matters on network appliances. Example output from a virtual firewall in the cloud with four virtual CPUs (vCPUs), after pressing 1:
top - 09:20:11 up 41 days, 2:03, 1 user, load average: 1.85, 1.72, 1.10
Tasks: 141 total, 2 running, 139 sleeping, 0 stopped, 0 zombie
%Cpu0 : 1.0 us, 1.3 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 96.2 si, 1.5 st
%Cpu1 : 18.4 us, 8.1 sy, 0.0 ni, 66.0 id, 0.6 wa, 0.0 hi, 1.2 si, 5.7 st
%Cpu2 : 16.9 us, 7.4 sy, 0.0 ni, 69.5 id, 0.3 wa, 0.0 hi, 0.9 si, 5.0 st
%Cpu3 : 15.2 us, 6.8 sy, 0.0 ni, 71.4 id, 0.4 wa, 0.0 hi, 0.8 si, 5.4 st
MiB Mem : 7940.0 total, 512.3 free, 3120.6 used, 4307.1 buff/cache
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14 root 20 0 0 0 0 R 98.7 0.0 912:44.10 ksoftirqd/0
812 www-data 20 0 412300 98120 10440 S 22.1 1.2 88:02.51 nginxOn each CPU line, us is user programs, sy the kernel, id idle, wa waiting for disk, si software interrupts and st steal; each line adds up to 100 percent. The load averages are for the last 1, 5 and 15 minutes. At 1.85 on four vCPUs, the machine as a whole looks less than half busy, and CPUs 1-3 are about 70 percent idle. CPU 0 is a different story: 96.2 percent si and 0.0 idle. Software interrupt work on a network appliance is mostly packet receive processing, and ksoftirqd/0, the kernel thread that handles that work for CPU 0, sits near 100 percent. So packet processing is landing on one core while three others wait. In the default summary view, si would average to about 25 percent ((96.2 + 1.2 + 0.9 + 0.8) / 4 = 24.8), which hides the saturated core. The next check is whether the network interface card (NIC) spreads its receive queues across cores, often called receive side scaling (RSS). The st values, around 5 percent, are time the hypervisor gave to other virtual machines; a steal figure that climbs much higher points to an undersized or oversubscribed instance, not to your configuration.
Remember: iperf3 measures capacity, jitter and loss between two endpoints you control; ping measures delay, not capacity; top explains why a Linux-based host is slow right now, with si for packet processing and st for a starved virtual machine, and the per-CPU view catches one saturated core that the average hides.
Packets: tcpdump and Wireshark
When every summary tool disagrees, the packets settle it. Tcpdump is the command-line packet capture tool; its manual names it simply as a tool that dumps traffic on a network.[5] It prints a line for each packet that matches a filter expression and ignores everything else.[5] The -w option saves the raw packets to a file for later analysis.[5] The -r option reads a saved file instead of a live interface.[5] That pairing is the standard workflow: capture on the headless appliance, analyze elsewhere. Example output, captured on the branch 12 edge router's LAN-facing interface:
$ sudo tcpdump -i ens3 -nn -c 3 'host 198.51.100.44 and tcp port 443'
listening on ens3, link-type EN10MB (Ethernet), snapshot length 262144 bytes
09:14:02.118204 IP 198.51.100.44.51544 > 203.0.113.40.443: Flags [S], seq 1837465001, win 64240, length 0
09:14:03.140551 IP 198.51.100.44.51544 > 203.0.113.40.443: Flags [S], seq 1837465001, win 64240, length 0
09:14:05.188430 IP 198.51.100.44.51544 > 203.0.113.40.443: Flags [S], seq 1837465001, win 64240, length 0-i picks the interface, -nn turns off name and port lookups (so the capture does not generate DNS traffic of its own), and -c 3 stops after three packets; the manual describes -c as exiting after that many packets have been received or read.[5] The same SYN from the laptop, with the same sequence number, goes out three times, about one and then two seconds apart, and no SYN-ACK comes back. The client is retrying with backoff, and something beyond this point is silent. The flags are worth knowing on sight:
| tcpdump flag | TCP meaning | What it usually tells you |
|---|---|---|
| [S] | SYN (synchronize) | A connection attempt |
| [S.] | SYN-ACK | The server accepted the attempt |
| [.] | ACK (acknowledgment) | Acknowledgment, often completing the handshake |
| [P.] | PSH (push) and ACK | Data being delivered |
| [F.] | FIN (finish) and ACK | A side closing normally |
| [R] or [R.] | RST (reset) | Refused or aborted: nothing listening, or a device rejecting the connection |
The filter expression uses Berkeley Packet Filter (BPF) syntax: host, net, port, tcp, udp, and the words and, or, not. For a long capture on a busy appliance, write a ring of files instead of one huge one: tcpdump -i ens3 -w /var/tmp/edge.pcap -C 100 -W 10 keeps ten packet capture (PCAP) files of about 100 MB each, overwriting the oldest. With -z, tcpdump runs a command on each file it closes, for example gzip to compress it.[5] Use -s to cap how many bytes of each packet are stored when you only need headers, which also limits how much personal data the capture holds.
Wireshark is the graphical protocol analyzer: it captures packets and lets you examine their contents field by field.[6] Wireshark has a companion terminal tool, tshark, for when you need its decoders without a desktop.[6] Wireshark's strength is analysis: Follow TCP Stream reassembles a conversation, Statistics then Conversations ranks who talked most, Expert Information lists the retransmissions, resets and malformed packets it noticed, and an I/O graph plots throughput over time.
Wireshark has two filter languages, and mixing them up is a classic error. A capture filter uses the same BPF syntax as tcpdump and decides what is recorded. A display filter uses Wireshark's own field names and only hides packets in a capture you already have. The same intent written both ways: capture filter host 203.0.113.40 and port 443; display filter ip.addr == 203.0.113.40 && tcp.port == 443. Useful display filters:
| Display filter | What it shows |
|---|---|
| tcp.flags.syn == 1 && tcp.flags.ack == 0 | Connection attempts only |
| tcp.analysis.retransmission | Segments Wireshark judges to be retransmissions |
| tcp.flags.reset == 1 | Resets |
| dns.flags.rcode != 0 | DNS responses carrying an error such as NXDOMAIN |
| tls.handshake.type == 1 | TLS Client Hello messages, including the SNI name |
| http.response.code >= 500 | HTTP server errors, visible only in unencrypted or decrypted traffic |
Most application traffic is now TLS, so Wireshark sees handshakes but not content. A client-side key log file solves that for your own test client: the curl documentation describes using it to analyze TLS traffic with tools such as Wireshark.[4] Point Wireshark's TLS settings at the file and the session decrypts. Where to capture matters as much as how. Capture at both ends of a suspect segment: a packet that left one end and never reached the other was lost in between, which no single capture can show.
The fleet view: snmpwalk and nfdump
Everything so far runs on demand, from one place. Two tools read what the network recorded on its own.
Snmpwalk, from the Net-SNMP package, asks a device's SNMP agent for every value under one branch of its MIB, the tree of numbered objects the agent exposes. Each object has an object identifier (OID), a dotted number such as the one behind IF-MIB::ifOperStatus. snmpwalk works by sending repeated GETNEXT requests until it leaves the branch; snmpbulkwalk does the same faster with GETBULK. Example, with placeholder credentials for an SNMPv3 user, against a head office switch:
$ snmpwalk -v3 -l authPriv -u nocmon -a SHA -A <auth-pass> -x AES -X <priv-pass> 192.0.2.2 IF-MIB::ifOperStatus
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
$ snmpwalk -v3 ... 192.0.2.2 IF-MIB::ifHCInOctets.2
IF-MIB::ifHCInOctets.2 = Counter64: 918223401977-l authPriv requires both authentication and encryption, the SNMPv3 security level to use across any shared network. When the walk fails, the kind of failure narrows the cause. A reply of Timeout: No Response from 192.0.2.2 means nothing usable came back: with SNMPv2c a wrong community string does this, because agents silently ignore it, and so does an access control list (ACL) on the device that does not list your host, or UDP 161 blocked on the path. With SNMPv3, wrong credentials usually produce an explicit error from the user-based security model (USM), such as an unknown user name or an authentication failure, so an SNMPv3 timeout points first at the ACL or the path.
Counters need arithmetic. Suppose two readings of ifHCInOctets on a 100 Mbit/s interface, taken 300 seconds apart, differ by 1,200,000,000 octets. Multiply by 8: 9,600,000,000 bits. Divide by 300 seconds: 32,000,000 bit/s, or 32 Mbit/s, which is 32 percent average utilization over those five minutes. Use the HC (high-capacity) 64-bit counters. The older 32-bit ifInOctets wraps after 4,294,967,296 octets, which a busy 1 Gbit/s link fills in about 34 seconds (4,294,967,296 × 8 / 1,000,000,000 = 34.4), so slow polling would miss whole wraps.
Nfdump reads flow records. Routers and switches export a record for each conversation in NetFlow format, which Cisco created, or in IP Flow Information Export (IPFIX), the Internet Engineering Task Force (IETF) standard based on it. A collector process called nfcapd stores the records in time-sliced files, and nfdump queries those files. A flow record holds addresses, ports, protocol, start time, duration, packets and bytes, but no payload. Example query for the top three branch 12 sources by bytes during a 20-minute window, with the output trimmed:
$ nfdump -R /var/cache/nfdump -t 2026/11/20.14:00:00-2026/11/20.14:20:00 -s srcip/bytes -n 3
Top 3 Src IP Addr ordered by bytes:
Src IP Addr Flows Packets Bytes
198.51.100.61 42 6.1 M 8.4 G
198.51.100.17 1180 812000 690 M
198.51.100.88 310 402000 380 MOne host moved 8.4 GB in 20 minutes: 8.4 × 109 × 8 / 1200 s = 56 Mbit/s on average, from just 42 flows. That looks like a backup or a large sync, not general browsing. Add a filter such as 'src host 198.51.100.61' with -s dstport/bytes to see where it went. The key property is that flow data is retrospective. tcpdump and Wireshark see only what happens while they run; nfdump answers questions about yesterday. If the exporter samples (records one packet in N), multiply counts accordingly and expect short flows to be missing.
Here is the line between the two: snmpwalk tells you how busy an interface was, and nfdump tells you who made it busy.
Working the opening ticket end to end
Return to the example ticket: the branch 12 HR portal times out, and head office is fine. Here is one sensible sequence, with each step chosen to answer the question the previous step left open.
| Step | Tool and command | Example result | What it proves |
|---|---|---|---|
| 1 | ipconfig /all on the branch laptop | Address 198.51.100.44/24, gateway 198.51.100.1 and DNS server 198.51.100.53 present | Host configuration is not the problem |
| 2 | nslookup hr.example.com | 203.0.113.40, the same answer head office gets | Name resolution is not the problem |
| 3 | ping 203.0.113.40 | Request timed out | Nothing yet: the server may simply block ICMP |
| 4 | curl -v --connect-timeout 10 https://hr.example.com/ | Trying 203.0.113.40:443, then curl: (28) a connection timeout | The TCP handshake itself fails; this is not an application error. netstat -ano shows SYN_SENT. |
| 5 | nmap -Pn -p 443 203.0.113.40, from the branch and from head office | Branch: filtered. Head office: open | The service is up; something drops branch traffic |
| 6 | tcpdump on the branch edge router, then on the server, filtered to host 198.51.100.44 | Router: the SYNs leave. Server: no packets at all | The SYNs die between the branch and the server |
| 7 | traceroute -T -p 443 -n 203.0.113.40 from the branch | Hop 4, the firewall's outside address 203.0.113.1, answers; every hop after it shows stars | The data-center firewall is the drop point |
The finding: the data-center firewall's rule for the portal lists head office's prefix, 192.0.2.0/24, but not the branch prefix, 198.51.100.0/24. After the rule is corrected, verify with the same tools in reverse: nc -zv 203.0.113.40 443 from the branch succeeds, curl returns 200, and the user confirms. Notice what was not used. Iperf, top and snmpwalk answer capacity and load questions, and nothing in the symptoms raised one.
Now change one input. At step 2, the branch laptop's nslookup returns 203.0.113.41 while head office gets 203.0.113.40. Step 5, run against .41, says closed rather than filtered: that host is up, but nothing listens on 443. On .41, ss -tlnp confirms there is no listener; it is the old server, kept running after the move. The firewall was never involved. Compare dig @198.51.100.53 hr.example.com with dig @ns1.example.com hr.example.com: if the branch resolver holds a stale record, or a split-horizon record (one that deliberately gives different answers to different networks) pointing at the old server, fix it there, and only then flush any laptop that cached the old answer. One changed output, the DNS answer, moved the fault from a firewall rule to name resolution, and Nmap's closed versus filtered result was the evidence that confirmed it.
Exam cues: words in the stem and the tool they point to
| The question stem says | Reach for | The tempting wrong choice |
|---|---|---|
| Which process is listening on a port, on Linux | ss -tlnp | Nmap, which sees from outside and cannot name the process |
| Which process owns a connection, on Windows | netstat -ano | ipconfig |
| Verify one new firewall rule or security group before the application exists | Netcat: a listener on the target, nc -zv from the source | A full Nmap sweep of the subnet |
| Inventory hosts and services; open, closed or filtered | Nmap | Netcat, which tests one port at a time |
| Authoritative answer, TTL, flags, query a specific DNS server | dig | nslookup, which shows less detail |
| A Windows client still reaches the old address after a DNS change | ipconfig /flushdns | ipconfig /renew, which renews the lease, not the DNS cache |
| Which hop introduces loss or latency over time | mtr | traceroute, a single pass |
| List the routers on the path | traceroute (tracert on Windows) | route print, which shows only the local table |
| Largest packet that crosses a tunnel; fragmentation | ping with the don't-fragment flag and a set size | iperf3 |
| Throughput, bandwidth test, jitter between two endpoints | iperf3 (UDP mode for jitter and loss) | ping |
| HTTP status, headers, timing, scripted health check | curl | Postman, which is interactive |
| Test a REST API with saved requests, environments and tokens | Postman | curl, which works but keeps no collection |
| Certificate chain, expiry, TLS version a server presents | OpenSSL s_client or x509 | curl -k, which hides the error |
| Test the RADIUS server directly with a test account | radclient | OpenSSL against port 1812 |
| Capture on a headless appliance or server | tcpdump -w | Wireshark, which needs a desktop |
| Analyze a pcap, follow a stream, decode fields | Wireshark | tcpdump, which prints but does not analyze |
| High CPU on a Linux appliance or VM | top (per-CPU view with the 1 key) | snmpwalk |
| Read interface status or counters remotely; MIB, OID | snmpwalk | nfdump |
| Top talkers; who used the bandwidth yesterday | nfdump | tcpdump, which was not running then |
| No address, 169.254 address, lease problem | dhclient on Linux; ipconfig /release and /renew on Windows | ipconfig /flushdns |
| IP-to-MAC mapping, duplicate IP address | arp -a, or ip neigh on Linux | route |
| Linux addresses, routes and which route a packet uses | ip addr, ip route, ip route get | ifconfig and route, the legacy commands |
Common misconceptions
- A failed ping means the host is down. Many host firewalls and cloud security groups drop ICMP echo. Test the service itself with curl, Netcat or Nmap -Pn before concluding anything.
- If nslookup shows the new address, users will reach it. nslookup and dig ask a DNS server directly and skip the operating system's resolver cache and hosts file. A laptop can still hold the old answer until ipconfig /flushdns or the TTL runs out.
- A non-authoritative answer is a stale answer. It only means a recursive resolver answered rather than the zone's own server. Compare the TTL and the address with dig @ the authoritative server to judge freshness.
- Loss at one hop in mtr means that router is dropping traffic. Loss that disappears at later hops is the router limiting its own ICMP replies. Real loss continues to the destination.
- A port in LISTEN state is reachable from the network. A service bound to 127.0.0.1 listens only to the host itself, and a firewall can still block an address that is bound correctly. Confirm from outside with Netcat or Nmap.
- A packet capture can explain yesterday's outage. tcpdump and Wireshark see only what happens while they run. For the past, use flow records with nfdump, SNMP history and logs.
Recap
- On Linux, ip route get shows the route, interface and source address the kernel would use for one destination, without sending a packet, and the most specific prefix wins over the default route.
- dig and nslookup query a DNS server directly and bypass the local resolver cache; dig shows the status, the aa flag and the remaining TTL, @server picks which server to ask, and a missing aa flag means a recursive resolver answered, not that the answer is stale.
- ipconfig /flushdns empties only the Windows DNS Client cache; it does not affect browser caches or upstream resolvers, and ipconfig /renew renews the DHCP lease instead.
- For path MTU with ping, payload plus 28 bytes equals packet size, so 1472 is the largest payload on a 1500-byte IPv4 path; a large ping that times out instead of reporting fragmentation suggests a black hole.
- In mtr, loss that appears at one hop but not after it is ICMP rate limiting; loss that continues to the destination is real.
- Nmap's filtered means probes were blocked by a firewall or other obstacle; closed means the host answered and nothing listens; open means an application is listening.
- OpenSSL s_client with -servername shows the chain the server presents; verify return code 21 usually means a missing intermediate certificate, and 10 means an expired certificate.
- radclient tests the RADIUS server directly: no reply points to the path or a missing client entry, Access-Reject can also mean a wrong shared secret, and it cannot test EAP methods used by 802.1X.
- tcpdump -w captures on headless systems for later analysis in Wireshark; iperf3 measures throughput, jitter and loss; top's per-CPU view exposes one core saturated by software interrupts; snmpwalk reads device counters; nfdump answers who used the bandwidth after the fact.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Debian Manpages. (n.d.). ss(8), socket statistics (iproute2). manpages.debian.org
- Gordon Lyon. (n.d.). Chapter 15. Nmap Reference Guide. Nmap Project (insecure.org). nmap.org
- Daniel Stenberg. (n.d.). curl.1 the man page. curl project. curl.se
- man7.org (Linux man-pages project). (n.d.). tcpdump(1), Linux manual page. man7.org
- Wireshark Foundation. (n.d.). Wireshark User's Guide. wireshark.org
- Key terms
- Capture filter
- A Berkeley Packet Filter (BPF) expression, such as host 203.0.113.40 and port 443, applied while capturing so that non-matching packets are never recorded; used by tcpdump and by Wireshark's capture options.
- Display filter
- A Wireshark expression using field names, such as tcp.port == 443, that hides non-matching packets in an existing capture without discarding them.
- Filtered port
- An Nmap port state meaning a firewall, filter or other network obstacle blocked the probes, so Nmap cannot tell whether the port is open or closed.
- Closed port
- An Nmap port state meaning the target host responded but no application is listening on that port.
- Network socket
- The operating system's endpoint for a network conversation, identified by protocol, local address and port, plus the remote address and port once connected; listed by ss on Linux and netstat on Windows.
- Resolver cache
- A local store of recent DNS answers that an operating system keeps until each record's TTL expires; on Windows it is shown with ipconfig /displaydns and emptied with ipconfig /flushdns.
- Path MTU
- The largest IP packet that can cross every link on a path without fragmentation, tested with ping by setting the don't-fragment flag and changing the packet size.
- Flow record
- A summary of one conversation exported by a router or switch in NetFlow or IPFIX format, holding addresses, ports, protocol, timing, packet and byte counts but no payload; queried with tools such as nfdump.
- Bandwidth-delay product
- Link rate multiplied by round-trip time: the amount of data that must be in flight to keep a path full, which caps a single TCP stream whose window is smaller.
- TLS key log file
- A file, named by the SSLKEYLOGFILE environment variable in clients such as curl, in which the client writes its TLS session secrets so that a protocol analyzer can decrypt captured traffic; it must be protected like a password.
Reading Tool Output to Find the Fault
- Interpret output from interface, address, neighbor, route, path, DNS and socket commands to find where a connectivity fault actually sits.
- Tell a real fault from a misleading artifact, such as ICMP rate limiting at a middle hop, a filtered ping, a non-authoritative DNS answer or a checksum error caused by offloading.
- Read iperf, top, snmpwalk, nfdump, Wireshark, spectrum analyzer and heat map results to locate a performance bottleneck.
- Use curl, OpenSSL, Postman, radclient, Netcat, Nmap and SIEM results to resolve access and security issues without misdiagnosing them.
Ping said the payroll server was dead. It was not.
The ticket arrives at 08:40 on a Monday. It is a fictional example, but a common one: "Payroll portal down for everyone at the Leeds office. Cannot ping 203.0.113.80." The analyst attached this output from their laptop:
ping -c 4 203.0.113.80
PING 203.0.113.80 (203.0.113.80) 56(84) bytes of data.
--- 203.0.113.80 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3062ms
The analyst concludes that the server is down. That is a reasonable reading of four lost packets, and it is wrong twice over. First, ping sends Internet Control Message Protocol (ICMP) Echo Requests. The payroll server sits behind a firewall that drops ICMP from user networks, as many firewalls do, so the server never had a chance to reply. Second, the real fault is somewhere else entirely. An engineer runs curl against the portal's name and gets this:
curl -v https://payroll.example.com/
* Could not resolve host: payroll.example.com
curl: (6) Could not resolve host: payroll.example.com
Exit code 6 means curl never got an address for the name, so it never sent a single packet to the server. The fault is name resolution. Pinging an IP address could never have found it, because typing an address skips the Domain Name System (DNS) entirely. Fifteen minutes spent investigating the server would have been fifteen minutes wasted.
That small story is the whole lesson in miniature. Each tool tests one narrow thing from one place. Its output is true about that narrow thing and says nothing about anything else. Most misreadings come from treating a narrow result as a broad verdict. Before you act on any output, ask three questions:
- What did the tool actually send, using which protocol, from which host? Ping tests ICMP. Netcat tests one Transmission Control Protocol (TCP) port. dig tests one resolver. None of them tests "the network".
- What came back, or failed to come back? A reply, an error message, a TCP reset and silence each mean something different.
- What else would produce exactly this output? If a second explanation fits, run the test that tells the two apart before you change anything.
Exam objectives: CompTIA CloudNetX CNX-001, objective 4.3, "Given a scenario, analyze output from network tools and commands to resolve issues."[1] The objective lists ten tools: Wireshark, Netcat, Nmap, Iperf, radclient, OpenSSL, Postman, a spectrum analyzer, a heat map and a security information and event management (SIEM) system. It lists eighteen commands: tcpdump, dig, mtr, arp, netstat, curl, ping, nslookup, traceroute, ip, ipconfig, ifconfig, route, ss, dhclient, top, snmpwalk and nfdump. And it names three kinds of problem: performance issues, connectivity issues, and access and security issues.
Lesson 23 covered how to choose the right tool. This lesson is about reading what that tool prints. Each section starts from the plausible wrong reading and follows the evidence to where it really leads. The payroll ticket returns in the DNS section; the other sections use their own fictional tickets, each introduced as it appears, because a different fault teaches more than stretching one story. Every output block is a fictional example that uses documentation addresses, private addresses and example.com names. The blocks follow each tool's usual format, but spacing and wording change between versions, so learn what the fields mean rather than memorizing the layout. If any basic protocol behavior here feels unfamiliar, the Atlas Network+ course covers it.
Interface output: ip, ifconfig and ipconfig
The tempting wrong reading here is "the machine has an address, so its network connection is fine." An address is only configuration. It says nothing about whether the link is up, whether frames are getting through cleanly, or whether the address came from the right place. Read the whole block. On current Linux the standard tool is the ip command from the iproute2 package. Here is a fictional server that has lost its uplink:
ip -s link show dev eth0
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
link/ether 52:54:00:3a:91:0c brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
8812345901 6120044 0 0 0 1204
TX: bytes packets errors dropped carrier collsns
2290451877 3301872 0 0 14 0
Two words in the first line seem to contradict each other. UP inside the angle brackets means the interface is administratively enabled: someone, or the boot configuration, turned it on. NO-CARRIER and state DOWN mean the network interface card (NIC) cannot detect a link partner. The usual causes are physical: an unplugged or damaged cable, a switch port that is shut down or error-disabled, or a mismatched small form-factor pluggable (SFP) optic. The TX carrier counter of 14 counts the times the carrier dropped during transmission, which fits a link that keeps going up and down (flapping).
The counters still matter when the link is up. Rising RX errors usually mean frames arrived damaged, which points to cabling, optics or a duplex mismatch. Rising dropped with zero errors means good frames were thrown away, usually because the host could not keep up or because the frames belonged to a protocol or virtual local area network (VLAN) the host does not handle. A single reading tells you little, because counters add up from boot. Take two readings a minute apart and look at the difference.
The older ifconfig command, from the net-tools package, shows the same facts in different words. It is still the normal tool on macOS and the BSDs, and it still turns up on Linux systems even though iproute2 replaced it there. Look for the RUNNING flag. A line such as flags=4099<UP,BROADCAST,MULTICAST>, with no RUNNING, is ifconfig's way of saying "enabled, but no link."
On Windows, ipconfig /all is the first stop, and one pattern in it deserves instant recognition:
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration IPv4 Address. . : 169.254.23.7(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
An address in 169.254.0.0/16 with no default gateway comes from Automatic Private IP Addressing (APIPA). Windows gives itself this address when it asked for a Dynamic Host Configuration Protocol (DHCP) lease and got no reply. An engineer who sees this and starts checking DNS has jumped two steps ahead. The host has no usable address, so the real question is why DHCP failed. If the same output said "Media disconnected", the problem would be the physical link instead.
In short: read link state and counters before you read addresses. UP with NO-CARRIER is a physical problem, and a 169.254 address is a DHCP problem, not a DNS one.
dhclient: a lease that never arrives, or arrives from the wrong server
On Linux, dhclient is the Internet Systems Consortium (ISC) DHCP client. With -v it prints each step of the exchange: the client sends DISCOVER, a server sends OFFER, the client sends REQUEST and the server confirms with ACK. Many newer distributions ship a different DHCP client because ISC no longer maintains its DHCP software, but dhclient output still appears on the exam and on plenty of servers. Here is a fictional laptop on a newly created VLAN:
dhclient -v eth0
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
The plausible wrong reading is "the DHCP server is down." Look at what the output actually shows. The client broadcast three DISCOVER messages to 255.255.255.255 on User Datagram Protocol (UDP) port 67, and nothing came back. A broadcast does not cross a router. On almost every campus the DHCP server sits in a different subnet, so a device on the client's VLAN has to relay the request. That device is a DHCP relay agent, configured on the VLAN's gateway interface; Cisco's command for it is ip helper-address. Users on other VLANs are getting leases from the same server, so the server is working. The new VLAN's gateway was built without a relay.
Other faults produce the same silence, so rule them out in order. The scope may have no free addresses left. DHCP snooping may be treating the port that faces the server as untrusted. Or an access control list (ACL) may be dropping UDP 67 and 68. Running a capture on the gateway, covered below, shows which one: you either see the DISCOVER arrive and go nowhere, or you never see it at all.
Now change one input. The same command on a different VLAN prints this:
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.1.57 from 192.168.1.1
DHCPREQUEST for 192.168.1.57 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.57 from 192.168.1.1
bound to 192.168.1.57 -- renewal in 41723 seconds.
This client did get a lease, so it looks like a success. But this company's user VLANs use 10.20.0.0/16. An offer from 192.168.1.1 is a classic sign of a rogue DHCP server, often a consumer router that someone has plugged into a wall port. Clients that accept its lease get the wrong gateway and the wrong DNS server. That is an outage, and it is also a security problem, because whoever controls the gateway can see the traffic. The standard defense is DHCP snooping on the access switches: mark only the uplinks toward the real servers as trusted, and the switch drops server messages such as OFFER and ACK that arrive on any other port. To find the rogue device, take its media access control (MAC) address from a capture of the OFFER and look it up in the switch's MAC address table.
Neighbor and route tables: arp, ip neigh, route and ip route
A host with a good address and a live link can still fail to reach its gateway. The Address Resolution Protocol (ARP) table shows whether the host has learned the gateway's MAC address:
arp -n
Address HWtype HWaddress Flags Mask Iface
10.20.30.1 (incomplete) eth0
10.20.30.77 ether 3c:52:82:4e:10:aa C eth0
ip neigh show
10.20.30.1 dev eth0 FAILED
10.20.30.77 dev eth0 lladdr 3c:52:82:4e:10:aa REACHABLE
An incomplete or FAILED entry means the host broadcast ARP requests for 10.20.30.1 and never got a reply. That puts the fault below IP: the host and the gateway are not on the same layer 2 segment. The usual causes are the wrong access VLAN on the switch port, a VLAN missing from a trunk, or a gateway interface that is shut down. A ping to the gateway would also fail, but ping could not tell you that it failed at layer 2. The ARP table can.
A complete entry with the wrong MAC is a different problem. Suppose the gateway's MAC suddenly matches the MAC of an ordinary workstation. Then suspect ARP spoofing, where a host answers ARP requests for an address it does not own so that traffic flows through it. Switches defend against this with dynamic ARP inspection, which checks ARP replies against the DHCP snooping records. Before raising an alarm, though, check whether the gateway address belongs to a first-hop redundancy group. The Virtual Router Redundancy Protocol (VRRP) uses a virtual MAC that begins 00:00:5e:00:01. If the gateway's MAC stays the same after a router failover, that is VRRP working as designed, not tampering.
The routing table answers the next question: for a given destination, which interface will the packet leave by? Here is a fictional laptop at a user's home, connected to the corporate remote-access virtual private network (VPN):
ip route
default via 192.168.1.1 dev wlan0 proto dhcp metric 600
192.168.0.0/16 dev tun0 scope link
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.34 metric 600
ip route get 192.168.1.20
192.168.1.20 dev wlan0 src 192.168.1.34 uid 1000
cache
The user says the file server at head office, 192.168.1.20, is unreachable over the VPN, while everything else at head office works. The wrong reading is "the VPN route is there, so the VPN must be broken." In fact two routes in the table match 192.168.1.20: the VPN's 192.168.0.0/16 and the home network's 192.168.1.0/24. Routing always picks the longest matching prefix. A /24 is longer than a /16, so packets for the file server leave through the Wi-Fi interface onto the user's own home network. ip route get proves this by printing the interface the kernel would actually use.
The fix is a design change, not a VPN repair. A corporate network that uses common home ranges such as 192.168.1.0/24 will collide with remote users. The reliable fixes are to renumber the corporate network away from those ranges, or to have the VPN push more specific routes for critical servers, such as a /32 for 192.168.1.20, which beats the home /24. Switching to a full-tunnel design does not fix it by itself. A full tunnel replaces the default route, but the home network's directly connected /24 is still more specific than any default route, so the collision remains unless the VPN client also blocks local-LAN access or installs those more specific routes.
The older route -n command, and netstat -rn, print the same table with a Flags column: U means up, G means the route goes via a gateway, and H marks a route to a single host. On Windows, route print shows the table. If there is no 0.0.0.0/0 default entry, that alone explains the complaint "local servers work, the internet does not."
In short: an incomplete ARP entry places the fault at layer 2. For routing, never assume which route wins: ask the kernel with ip route get, because the longest matching prefix beats the route you expected.
Path output: ping, traceroute and mtr
Ping is still worth reading carefully when it does get replies. Here is a fictional test toward a branch server that answers ICMP:
ping -c 4 198.51.100.7
64 bytes from 198.51.100.7: icmp_seq=1 ttl=54 time=11.2 ms
64 bytes from 198.51.100.7: icmp_seq=2 ttl=54 time=152.3 ms
64 bytes from 198.51.100.7: icmp_seq=3 ttl=54 time=12.0 ms
64 bytes from 198.51.100.7: icmp_seq=4 ttl=54 time=20.1 ms
--- 198.51.100.7 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 11.2/48.9/152.3/59.8 ms
Zero loss looks healthy, but the round-trip times (RTT) swing from 11 to 152 ms. The mdev figure, 59.8 ms here, measures how far the samples spread around the average. A large mdev relative to the minimum means jitter, and jitter hurts voice and video calls long before it causes loss. The time to live (TTL) in each reply also carries information. A reply arriving with TTL 54 most likely left a host that starts at 64, so it crossed about 10 routers. If the TTL suddenly changes between tests, the return path has changed. Four packets is also far too small a sample: use -c 100 or more before you call anything "no loss".
Traceroute discovers the path by sending probes with TTL 1, then 2, then 3, and so on. Each router that decrements a probe's TTL to zero sends back an ICMP Time Exceeded message, which reveals that router's address. On Linux, traceroute sends UDP probes to high ports by default. Windows tracert sends ICMP Echo Requests instead. So a firewall that allows one protocol but not the other can make the two tools disagree about the same path. Here is a fictional trace to a partner's file-transfer server at 203.0.113.120:
traceroute 203.0.113.120
1 10.20.30.1 0.512 ms 0.488 ms 0.470 ms
2 198.51.100.1 2.104 ms 2.087 ms 2.311 ms
3 * * *
4 203.0.113.9 14.882 ms 15.010 ms 14.791 ms
5 203.0.113.120 15.301 ms 15.122 ms 15.276 ms
Hop 3 shows three asterisks, meaning no reply arrived within the timeout. The wrong reading is "hop 3 is broken." But hops 4 and 5 answered, and their probes passed through hop 3 to get there, so hop 3 is forwarding traffic perfectly well. It simply does not send Time Exceeded messages, or it rate-limits them. The reading changes only when the asterisks begin at some hop and continue all the way to the maximum hop count. Then either the path really breaks there, or everything beyond that point filters the probes. A TCP-based test to the service port settles which.
The mtr command combines traceroute and ping. It sends probes to every hop continuously and keeps statistics for each one, which makes it the best tool for intermittent loss. Here is a fictional report of 100 probes to the same server:
mtr --report -c 100 203.0.113.120
HOST: ws01 Loss% Snt Last Avg Best Wrst StDev
1.|-- 10.20.30.1 0.0% 100 0.5 0.6 0.4 1.2 0.1
2.|-- 198.51.100.1 0.0% 100 2.1 2.3 1.9 4.0 0.3
3.|-- 203.0.113.5 38.0% 100 14.8 15.1 14.2 30.5 2.0
4.|-- 203.0.113.9 0.0% 100 15.0 15.4 14.6 18.1 0.5
5.|-- 203.0.113.120 0.0% 100 15.3 15.6 14.9 19.0 0.6
Work through it step by step. Hop 3 shows 38 percent loss. If hop 3 really dropped 38 percent of the traffic passing through it, then every hop beyond it would show at least that much loss, because their probes cross hop 3. Hops 4 and 5 show zero. So hop 3 is dropping only the probes addressed to itself. The reason is mechanical. A router forwards transit packets in hardware, but it builds ICMP replies in its own central processing unit (CPU), the control plane, and it protects that CPU by rate-limiting or deprioritizing ICMP. This hop is healthy, and opening a ticket with its owner would waste everyone's time.
Now flip one input. Suppose the report read 0, 0, 12, 11 and 12 percent from hop 1 to hop 5. Loss that starts at a hop and persists to the destination is real. The fault lies on hop 3 or on the link just before it, and that is worth escalating with this report attached. Latency follows the same rule. A jump that appears at one hop and carries through to every later hop is real delay, such as a long-distance link or a congested queue. A jump at one hop only is slow ICMP generation at that router.
In short: in traceroute and mtr, trust only loss or delay that persists to the final hop. A single bad hop followed by clean hops is a router protecting its CPU.
Name resolution output: dig and nslookup
Back to the payroll ticket. curl could not resolve payroll.example.com, so the engineer queries the office resolver with dig:
dig payroll.example.com A
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31877
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;payroll.example.com. IN A
;; Query time: 41 msec
;; SERVER: 10.20.0.53#53(10.20.0.53) (UDP)
Three fields carry the diagnosis. status is the response code. flags describes the reply: qr marks it as a response, rd and ra mean recursion was requested and is available, and aa, missing here, would mean an authoritative server for the zone answered. SERVER shows which resolver actually replied, which matters whenever different resolvers might give different answers.
| dig status | What it means | Where to look next |
|---|---|---|
| NOERROR with answers | The name resolved | Check that the address is the one you expect, and check the TTL |
| NOERROR, ANSWER: 0 | The name exists but has no record of the type you asked for (often called NODATA) | Query a different type, for example AAAA versus A |
| NXDOMAIN | The name does not exist in this view of DNS | Typo, missing record, or a split-horizon zone missing the entry |
| SERVFAIL | The resolver could not produce an answer | DNSSEC validation, or authoritative servers it cannot reach |
| REFUSED | The server will not answer this client | Resolver ACLs; you may be querying the wrong server |
| "no servers could be reached" | No reply at all | Path or firewall to the resolver on port 53 |
SERVFAIL has two common causes, and one changed flag separates them. Repeat the query with +cd (checking disabled). This flag asks the resolver to skip Domain Name System Security Extensions (DNSSEC) validation:
dig +cd payroll.example.com A
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5120
;; flags: qr rd ra cd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; ANSWER SECTION:
payroll.example.com. 300 IN A 203.0.113.80
With validation off, the answer arrives. So the resolver can reach the authoritative servers and the record exists, but the signatures fail validation. The usual causes are expired resource record signature (RRSIG) records, or a delegation signer (DS) record in the parent zone that no longer matches the zone's key after a key rollover. The fix belongs with whoever runs the zone's signing. Now the flipped case: if +cd still returns SERVFAIL, validation is not the problem. The resolver cannot get any answer at all, typically because a firewall blocks its outbound port 53 or because the delegation points at name servers that no longer respond. Query an authoritative server directly with dig @ns1.example.com payroll.example.com, or follow the chain from the root with dig +trace.
The nslookup command, available on Windows, Linux and macOS, gives similar facts with less detail. Once the zone's signatures are fixed, a Windows client shows this:
nslookup payroll.example.com
Server: dns1.corp.example.com
Address: 10.20.0.53
Non-authoritative answer:
Name: payroll.example.com
Address: 203.0.113.80
"Non-authoritative answer" alarms many newcomers, and it should not. It only means the reply came from a recursive resolver rather than straight from the zone's own server, which is how almost every lookup works. The resolver may have fetched the record a moment ago or served it from its cache; the label alone does not say which. The trap to watch for is a different one. nslookup sends its queries directly to a DNS server. It does not read the hosts file or the operating system's resolver cache, so a browser and nslookup can honestly disagree about the same name. When they disagree, check the hosts file and the local cache (ipconfig /displaydns on Windows) before blaming DNS. Also compare the Server line: in a split-horizon design, the internal resolver and a public resolver are supposed to return different addresses.
Socket output: ss and netstat
A new fictional ticket: a developer says a service on port 8080 is "definitely running", because curl localhost:8080 works on the server itself. Clients on other hosts time out. The plausible wrong reading is a firewall rule. Check what the socket table says first. The ss tool dumps socket statistics, similar to netstat, and its manual says it can show more TCP and state information than netstat.[2] Run with no options, ss lists only non-listening sockets that have established connections.[2] Listening sockets are left out unless you ask for them with -l.[2] So the right command is ss -tlnp: TCP, listening, numeric, and with the owning process.
ss -tlnp
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 511 127.0.0.1:8080 0.0.0.0:* users:(("node",pid=2211,fd=19))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=901,fd=3))
The service is listening on 127.0.0.1, the loopback address, so only processes on the same machine can reach it. That is why the local curl worked and the remote clients failed. The Secure Shell (SSH) daemon, by contrast, listens on 0.0.0.0, meaning every IPv4 address on the host. The fix is the application's bind address, not the firewall. On a LISTEN line, Recv-Q shows connections waiting to be accepted and Send-Q shows the maximum backlog. A Recv-Q that stays near Send-Q means the application is not accepting connections fast enough.
For established and half-built connections, the TCP state is the evidence. Recall how TCP opens a connection: the client sends a SYN (synchronize) segment, the server answers with a SYN-ACK (synchronize-acknowledge), and the client completes the handshake with an ACK (acknowledge). Each side's state shows how far that exchange, and later the closing exchange, has got. Filter on a state with, for example, ss -tan state syn-sent.
| State piling up | On which side | What it usually means |
|---|---|---|
| SYN-SENT | Client | The SYNs get no reply: a firewall silently dropping them, a missing route, or the host is down |
| SYN-RECV | Server | SYN-ACKs are not being acknowledged: a broken return path (asymmetric routing through a stateful firewall) or a SYN flood |
| ESTAB with a growing Send-Q | Either | Data is queued but not being acknowledged: a slow peer or a congested path |
| CLOSE-WAIT | Usually server | The peer closed the connection but the local application never closed its socket: an application bug |
| TIME-WAIT | The side that closed first | Normal after a connection closes; worth attention only at extreme connection rates |
netstat is the older tool, and the one you will use on Windows. netstat -ano lists every connection with its owning process ID, and Windows writes states with underscores. Here is a fictional client that cannot reach a supplier portal at 198.51.100.30:
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 4120
TCP 10.20.30.41:51544 198.51.100.30:443 SYN_SENT 8812
A connection stuck in SYN_SENT to 198.51.100.30 tells you that this client's SYN got no answer at all. Silence like that points toward a filtering device on the path rather than toward the server. netstat -s prints per-protocol counters, including retransmitted TCP segments; a count that keeps climbing between two readings is a cheap first sign of packet loss.
In short: before you blame the network, check that something is listening and on which address. Then read the TCP states: SYN-SENT means silence came back, and CLOSE-WAIT means the application is at fault.
Probing a port yourself: Netcat and Nmap
Netcat (nc) opens one TCP connection, or sends UDP, to one port. Its value lies in how it fails. Here is the OpenBSD version, which most Linux distributions ship, run from a data center jump host against the payroll server:
nc -vz -w 5 203.0.113.80 443
Connection to 203.0.113.80 443 port [tcp/https] succeeded!
nc -vz -w 5 203.0.113.80 8443
nc: connect to 203.0.113.80 port 8443 (tcp) failed: Connection refused
nc -vz -w 5 203.0.113.80 3389
nc: connect to 203.0.113.80 port 3389 (tcp) timed out: Operation now in progress
The three results are three different facts. "Succeeded" means the TCP handshake completed, so something is listening on 443. "Connection refused" came back immediately, which means a TCP reset (RST) arrived. Something answered, so the path works, and usually nothing is listening on 8443. Some firewalls also send resets on purpose, so "refused" proves that something replied but not exactly what. "Timed out" means nothing came back within the five seconds set by -w 5. A silent drop by a firewall is the usual cause, though a host that is down or a broken return route looks the same. The common mistake is to read refused and timed out as the same failure. They point in opposite directions: refused points to the server, silence points to the path.
Nmap does the same thing at scale and names the result. Its port table classifies each port. Open means an application on the target is listening for connections or packets on that port.[3] Closed ports have no application listening on them.[3] Filtered means a firewall, filter or other network obstacle is blocking the port, so Nmap cannot tell whether it is open or closed.[3] Unfiltered means the port answers Nmap's probes, but Nmap cannot tell whether it is open or closed.[3] When Nmap cannot choose between two states, it reports a combination such as open|filtered.
nmap -Pn -p 22,443,3389,8443 203.0.113.80
PORT STATE SERVICE
22/tcp filtered ssh
443/tcp open https
3389/tcp filtered ms-wbt-server
8443/tcp closed https-alt
This fictional scan matches the Netcat results and adds context. Run the same scan from inside the data center and from a user subnet, then compare the two. A port that is open from inside and filtered from outside shows exactly which firewall boundary is blocking it. That is the evidence you need for a change request.
Three cautions apply when you read Nmap output. First, everything Nmap concludes comes from the packets that the targets, or the firewalls in front of them, send back.[4] A firewall that answers on behalf of a host can make the host look different from what it really is. Second, by default Nmap runs a SYN scan, but it switches to a full connect scan when the user lacks the privileges to send raw packets.[4] The two can log differently on the target, so the same command run by different users is not always the same test. Third, UDP needs extra patience. The Nmap documentation notes that UDP scanning is generally slower and more difficult than TCP scanning.[4] A UDP service often sends nothing back to a probe it does not understand, so a silent UDP port is commonly reported as open|filtered rather than given a definite state. Scan only systems you are authorized to test, and tell the security team before you run scans that their intrusion detection system (IDS) will flag.
Application output: curl, OpenSSL and Postman
Once a port answers, the next question is whether the application behaves. curl's verbose mode (-v) prints every stage: name resolution, the TCP connection, the Transport Layer Security (TLS) handshake, and the Hypertext Transfer Protocol (HTTP) exchange. The curl project's library documentation describes verbose output as useful for protocol debugging and understanding.[5] It also warns that verbose output may show sensitive contents from headers and data.[5] Redact Authorization headers and cookies before you paste verbose output into a ticket.
Here is a separate fictional ticket: users of the expenses portal get an error page.
curl -v https://expenses.example.com/
* Host expenses.example.com:443 was resolved.
* Trying 203.0.113.90:443...
* Connected to expenses.example.com (203.0.113.90) port 443
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
> GET / HTTP/1.1
> Host: expenses.example.com
< HTTP/1.1 504 Gateway Timeout
< Server: example-lb
Read it from the top, and notice how far the request got before anything went wrong. DNS worked, TCP connected and TLS negotiated, so the network path and the certificate are fine. The 504 status came from a load balancer, as the Server header shows. A 504 means the load balancer timed out waiting for the server behind it. The fault is behind the load balancer, between it and the application server or inside the application. curl's exit codes record how far the transfer got: 6 means the name could not be resolved, 7 means the TCP connection failed, 28 means the operation timed out, and 60 means the server's certificate could not be verified.
| HTTP status | Who is complaining | Typical cause |
|---|---|---|
| 401 Unauthorized | The application or API | No credentials sent, or the token is invalid or expired |
| 403 Forbidden | The application, a web application firewall (WAF) or a proxy | The caller is identified but not permitted |
| 429 Too Many Requests | An API gateway or application | A rate limit; read the Retry-After header |
| 502 Bad Gateway | A proxy or load balancer | The upstream server sent an invalid response or reset the connection |
| 503 Service Unavailable | A proxy, load balancer or the application | No healthy back end, or overload or maintenance |
| 504 Gateway Timeout | A proxy or load balancer | The upstream server did not answer in time |
When the failure is in the TLS layer itself, openssl s_client shows the certificate chain the server actually sends. Here is a fictional application programming interface (API) that browsers load happily but a Python client rejects:
openssl s_client -connect api.example.com:443 -servername api.example.com
depth=0 CN = api.example.com
verify error:num=20:unable to get local issuer certificate
verify error:num=21:unable to verify the first certificate
---
Certificate chain
0 s:CN = api.example.com
i:C = US, O = Example CA, CN = Example Issuing CA 2
---
Verify return code: 21 (unable to verify the first certificate)
The chain lists only certificate 0, the server's own certificate (s: is its subject and i: is its issuer). The intermediate certificate authority (CA) certificate, Example Issuing CA 2, is missing, so the client cannot build a path from this certificate to a root it trusts. Browsers often cover for the gap by fetching or caching intermediates, which is why "it works in Chrome" proves nothing here. The fix is to configure the server to send the intermediate along with its own certificate. Now flip the input. If the result read Verify return code: 10 (certificate has expired), the chain is complete but the certificate's validity period has ended, so the fix is renewal. And keep -servername in the command, especially when you connect by IP address. It sends the Server Name Indication (SNI) extension, which tells a server hosting many sites which one you want; without it the server may hand you its default certificate. For deeper problems, -state prints the TLS session states as the handshake proceeds.[6] -debug prints extensive debugging information, including a hex dump of all traffic.[6]
Postman tests APIs from a graphical client. After each request it shows the status code, the response time, the response size and the headers. Its console shows the raw request that was actually sent, which is often different from what you think you sent. Suppose a call returns 401 with the header WWW-Authenticate: Bearer error="invalid_token". The token is expired or malformed, so check its expiry and where it came from. A 403 with error="insufficient_scope" is different: the token is valid but lacks a permission, so the fix lies in the identity provider's scopes or roles. A 401 and a 403 send you to different teams.
Authentication output: radclient and FreeRADIUS
When users cannot get on to 802.1X Wi-Fi or a VPN, the plausible wrong reading is "the RADIUS server is down." radclient, the test client that ships with FreeRADIUS, sends one Remote Authentication Dial-In User Service (RADIUS) request and reports what came back. That separates "the server is unreachable" from "the server said no". You give it the request's attributes as a list of name and value pairs, here piped in with echo, followed by the server, the request type and the shared secret. The -x flag prints the attributes sent and received. The output below is abbreviated and fictional, and the password and secret are placeholders, never real values.
echo "User-Name = test.user, User-Password = <test-password>" | radclient -x 192.0.2.10:1812 auth <shared-secret>
Sent Access-Request Id 17 from 0.0.0.0:41623 to 192.0.2.10:1812 length 71
User-Name = "test.user"
User-Password = "<test-password>"
Received Access-Reject Id 17 from 192.0.2.10:1812 to 10.20.30.41:41623 length 20
(the same command, run from a host the server does not list as a client)
Sent Access-Request Id 18 from 0.0.0.0:50211 to 192.0.2.10:1812 length 71
No reply from server for ID 18
An Access-Accept means the whole chain works, so look at the network access device or the client. An Access-Reject means the server received the request, processed it and refused it. That rules out the network path. The cause is in the credentials or in the policy, for example a group or VLAN condition that the user does not meet. Read the server's log, ideally with the server in debug mode, for the exact reason.
"No reply" means nothing came back, and it has more causes than people expect. UDP 1812 may be blocked on the path, or the server may not be running. The server may not recognize the sender as a configured client and silently ignore it. A mismatched shared secret can also end here: the secret protects the integrity of the request, and a server that finds the integrity check (for example the Message-Authenticator attribute) does not match may discard the packet without answering. With other setups, a wrong secret turns the hidden password into garbage and produces an Access-Reject instead, so a secret mismatch can look like either result. Run the test from the address of the switch, access point or VPN concentrator itself, with that device's secret, because a server that recognizes the switch may not recognize your laptop.
Capture output: tcpdump and Wireshark
When every other tool leaves two explanations standing, a packet capture settles the question. tcpdump prints packets as text, and its manual notes that the output depends on the protocol.[7] By default every line begins with a timestamp.[7] Here is a fictional capture taken on the client that was stuck in SYN_SENT toward the supplier portal at 198.51.100.30:
tcpdump -ni eth0 host 198.51.100.30 and tcp port 443
09:14:02.118230 IP 10.20.30.41.51544 > 198.51.100.30.443: Flags [S], seq 1849204, win 64240, length 0
09:14:03.141877 IP 10.20.30.41.51544 > 198.51.100.30.443: Flags [S], seq 1849204, win 64240, length 0
09:14:05.157902 IP 10.20.30.41.51544 > 198.51.100.30.443: Flags [S], seq 1849204, win 64240, length 0
Read each line from left to right: the time, the source address and port, an arrow, the destination address and port, and then the TCP flags. [S] is a SYN. [S.] would be a SYN-ACK, [R] a reset and [P.] data being pushed with an acknowledgment. Here the same SYN, with the same sequence number, goes out three times at growing intervals of about 1 second and then 2 seconds, and nothing ever comes back. That is TCP retransmitting a SYN that got no answer. The capture proves the client did its part.
The next capture point decides where the packet died. Capture on the firewall's outside interface. If the SYN leaves the firewall but no SYN-ACK returns, the problem is beyond it. If the SYN never appears on the outside, the firewall dropped it, and its logs will say which rule. If the server's own capture shows SYN-ACKs being sent but the client never sees them, suspect asymmetric routing: the replies are taking a path through a stateful device that never saw the original SYN, so it drops them.
Two practical points come straight from the tcpdump manual. Capturing live from an interface may need special privileges, but reading a saved capture file does not.[7] So you can write a packet capture (PCAP) file on the server with -w and analyze it later on a workstation. Second, timestamps come from the capturing host's clock. When you line up captures from two machines, check that both are synchronized by the Network Time Protocol (NTP) before you trust a cross-host timing argument.
Wireshark reads the same files with a graphical interface: its user's guide describes it as capturing packets and letting you examine their contents.[8] It adds analysis that tcpdump leaves to you. Its TCP analysis marks packets with labels such as TCP Retransmission, TCP Dup ACK and TCP Zero Window, and the display filter tcp.analysis.flags shows only the marked packets. Learn to tell two kinds of label apart. Retransmissions and duplicate ACKs usually indicate packets lost on the path, though duplicate ACKs can also come from packets arriving out of order, so check whether retransmissions follow them. Zero Window means the receiver advertised that its buffer was full: the receiving application is not reading data fast enough, and the network is not to blame.
A classic false alarm also lives here. Capture on a sending host and Wireshark may flag that host's own outgoing packets with bad TCP or IP checksums. Modern NICs calculate checksums in hardware after the capture library has already copied the packet (checksum offloading), so the copy Wireshark sees has a blank or incorrect checksum. If the bad checksums appear only on packets the capturing host sent, they are almost certainly an offload artifact, not corruption.
In short: a capture shows what actually crossed one point. Capture at two points and the fault sits between them, but discount checksum errors on the capturing host's own outbound packets.
Throughput and host load: iperf and top
A fictional application team reports that copying backups to a cloud region "only gets 100 megabits" over a 1 gigabit per second (Gbit/s) dedicated connection. The plausible wrong reading is that the provider is under-delivering. iperf measures throughput between two hosts that you control: one runs iperf3 -s and the other connects to it. Note that iperf3 is a separate rewrite of the older iperf2, and the two are not compatible, so both ends must run the same one. Results are in megabits per second (Mbit/s).
iperf3 -c 198.51.100.20 -t 10
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 112 MBytes 94.0 Mbits/sec 0 sender
[ 5] 0.00-10.04 sec 111 MBytes 92.7 Mbits/sec receiver
iperf3 -c 198.51.100.20 -t 10 -P 8
[SUM] 0.00-10.00 sec 1.05 GBytes 902 Mbits/sec 3 sender
One stream reaches 94 Mbit/s with zero retransmissions (the Retr column). Eight parallel streams together reach 902 Mbit/s. So the connection clearly can carry about 900 Mbit/s, and the single stream is being held back by something other than capacity. The zero retransmissions also rule out packet loss. The usual answer is the TCP window, the amount of data a sender may have in flight without an acknowledgment. Work it through with the path's RTT of 80 ms.
- A single stream can send at most one window per round trip, so throughput is at most window divided by RTT.
- To fill 1 Gbit/s, the window must equal the bandwidth-delay product (BDP): 1,000,000,000 bits/s multiplied by 0.08 s gives 80,000,000 bits, which is 10 megabytes (MB).
- Working backwards, 94 Mbit/s multiplied by 0.08 s gives about 7.5 million bits, roughly a 1 MB window. That fits a host whose TCP buffers are capped at about 1 MB.
- Eight streams with 1 MB each add up to 8 MB in flight, close to the 10 MB BDP, which is why the total gets near line rate.
The fix is larger TCP buffers on both hosts, or a transfer tool that uses parallel streams, not a bigger circuit. Now flip one input: run the same single-stream test to a server 2 ms away and it reaches about 940 Mbit/s. The BDP there is 1,000,000,000 multiplied by 0.002, which is 2,000,000 bits or 250 kilobytes, well within a 1 MB window. The same hosts and the same buffers give opposite results because the distance changed. A second flip: if the single stream had shown hundreds of retransmissions, the window would not be the limit. Loss would be, and the next step would be mtr and interface counters along the path. In UDP mode (-u -b 50M), iperf3 instead reports jitter and lost datagrams, for example 2.104 ms 512/43150 (1.2%), which is the right test for voice-like traffic.
If iperf shows the network delivering 900 Mbit/s and the application is still slow, look at the host itself. top shows the load average and how CPU time is being spent. Here is a fictional virtual machine (VM) with 4 virtual CPUs:
top - 10:02:11 up 41 days, 3:12, 2 users, load average: 7.91, 7.60, 6.02
Tasks: 212 total, 3 running, 209 sleeping, 0 stopped, 0 zombie
%Cpu(s): 38.5 us, 9.0 sy, 0.0 ni, 12.1 id, 0.4 wa, 0.0 hi, 1.0 si, 39.0 st
| top field | Meaning | When it is high, suspect |
|---|---|---|
| load average (1, 5 and 15 minutes) | Tasks running or waiting to run; on Linux it also counts tasks blocked in uninterruptible waits, usually disk I/O | Overload if well above the number of CPU cores, or slow storage if wa is also high |
| us, sy | Time in user programs and in the kernel | A busy application, or heavy system call activity |
| wa | CPU idle while waiting for disk I/O | Slow storage, not the network |
| si | Software interrupts, much of it packet processing | Very high packet rates; check NIC queue settings |
| st | Steal: time the hypervisor gave to other virtual machines | A crowded host in a virtualized or cloud environment |
Read the CPU line field by field. Steal is 39 percent, so the hypervisor is withholding more than a third of the CPU time this guest wanted. Software interrupts are only 1 percent, so packet processing is not the bottleneck, and iowait of 0.4 percent rules out slow storage. Because wa is near zero, the load average of 7.9 on 4 virtual CPUs is made of runnable tasks queuing for CPU, not tasks stuck on disk. The dominant cause is steal, so no network change will help. The fix is a larger or dedicated instance type, or moving the workload to another host.
Device counters and flow records: snmpwalk and nfdump
Simple Network Management Protocol (SNMP) agents listen on UDP port 161, and traps are sent to 162. The Nmap documentation lists DNS, SNMP and DHCP, on ports 53, 161 and 162, and 67 and 68, among the most common UDP services.[4] snmpwalk reads a whole branch of a device's management information base (MIB). The IF-MIB branch holds per-interface status and counters. Here is a fictional switch:
snmpwalk -v2c -c <community> 192.0.2.1 IF-MIB::ifOperStatus
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: down(2)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
The number after the dot in each name is the interface index, and the value is printed as a name with its numeric code in brackets. For ifOperStatus, the operational state, the codes are 1 up, 2 down and 3 testing; further codes include 5 dormant and 7 lowerLayerDown. Read both the name and the number. A monitoring script often stores only the number, so learn the mapping rather than trusting a dashboard label. Pair the walk with ifAdminStatus, which uses 1 up and 2 down for the configured state. Interface 2 here shows the same pattern as UP with NO-CARRIER on a Linux host if its admin status is up: enabled, but with no working link. Its ifInErrors counter is the next thing to walk.
Utilization comes from the octet counters. Suppose IF-MIB::ifHCInOctets.3, the inbound byte counter for interface 3, rises by 6,750,000,000 between two walks 60 seconds apart on a 1 Gbit/s uplink. Then 6,750,000,000 octets multiplied by 8 gives 54,000,000,000 bits; divided by 60 seconds that is 900,000,000 bits/s, so the uplink averaged 90 percent inbound over that minute. Use the 64-bit HC ("high capacity") counters on fast links. The 32-bit ifInOctets counter tops out at 4,294,967,296 octets, and at 1 Gbit/s, which is 125,000,000 octets per second, it wraps back to zero in about 34 seconds. Between two polls a minute apart, a wrapped 32-bit counter gives a meaningless answer.
When snmpwalk prints Timeout: No Response from 192.0.2.1, do not conclude that the device is down. SNMP v2c gives no error for a wrong community string; the agent simply stays silent. A wrong SNMP version (v2c against an agent that accepts only v3), an ACL on the agent restricting which managers may poll it, or UDP 161 being blocked on the path all produce the same timeout. Check whether the device answers ping or SSH first, then check the agent's configuration.
Counters tell you how much traffic there was. Flow records tell you whose traffic it was. Routers and firewalls export NetFlow or IP Flow Information Export (IPFIX) records, each summarizing one conversation's addresses, ports, packets and bytes. A collector stores them, and nfdump queries the stored files. Here is an abbreviated fictional query for the top source addresses by bytes during the 90 percent period:
nfdump -R /var/cache/nfdump -t 2026/11/16.09:00:00-2026/11/16.09:15:00 -s srcip/bytes -n 3
Top 3 Src IP Addr ordered by bytes:
Src IP Addr Flows(%) Packets(%) Bytes(%)
10.20.40.15 12( 0.0) 61.2 M(71.4) 84.9 G(78.0)
10.20.30.41 804( 0.4) 2.1 M( 2.5) 2.6 G( 2.4)
10.20.30.77 611( 0.3) 1.4 M( 1.6) 1.9 G( 1.7)
One host, 10.20.40.15, sent 78 percent of the bytes in only 12 flows: a few long, heavy transfers. That is the pattern of a backup or replication job running in business hours, not a broad problem. The fix is scheduling or a quality of service (QoS) policy. Flow data also shows security patterns that counters cannot. One internal host opening thousands of short flows to many different addresses on TCP 445 looks like a worm or an unauthorized scan. Thousands of external sources all sending to one public address and port looks like a distributed denial of service (DDoS) attack.
In short: counters say how full the link is, flows say who filled it. Compute utilization from the difference between two 64-bit counter readings, and treat an SNMP timeout as "the agent will not answer me", not "the device is down".
Radio output: spectrum analyzer and heat map
In a fictional office, users in one wing complain that Wi-Fi drops every day around noon. A Wi-Fi scanning app shows the usual access points (APs) and no new networks, so the plausible wrong reading is that the APs are failing. The scanner can only see Wi-Fi frames. A spectrum analyzer measures raw radio frequency (RF) energy across a band, whatever produced it. Its displays typically include a real-time plot of power against frequency, a waterfall (spectrogram) that shows energy over time, and duty cycle, the percentage of time a frequency is occupied.
Wi-Fi transmissions appear as bursts shaped to fit channel widths. A microwave oven, which works near 2.45 GHz, appears as broad, pulsing energy across the upper part of the 2.4 GHz band, starting and stopping with the oven. Energy that matches the lunchtime pattern and does not look like Wi-Fi is non-Wi-Fi interference. The fix is to move the affected clients to 5 or 6 GHz, or to change the 2.4 GHz channel plan in that wing. Replacing APs would not help. A spectrum analyzer that shows clean air while users still struggle sends you back to the Wi-Fi layer: retries, channel overlap and client counts.
A heat map overlays a measurement on a floor plan, usually with colors. A predictive heat map is calculated from the floor plan and wall materials before installation. A survey heat map is measured on site: a passive survey listens to beacons, and an active survey connects and measures throughput. The usual first layer is received signal strength indicator (RSSI) in decibel-milliwatts (dBm), where -60 dBm is stronger than -75 dBm. Signal alone can mislead. In a fictional conference room, the signal is -62 dBm and the noise floor is -95 dBm, so the signal-to-noise ratio (SNR) is 33 dB, which is excellent. Near the kitchen the signal is the same -62 dBm, but the noise floor rises to -78 dBm, so the SNR is only 16 dB, and data rates fall even though the signal-strength map is solidly green.
So check the SNR, channel and co-channel overlap layers before you conclude that coverage is fine. A room where six APs on the same channel are all strong is a co-channel contention problem, and it appears as "great signal, poor performance".
Correlated output: SIEM
A SIEM collects logs from many systems, normalizes them and lets you search and correlate them. Its output is only as good as the question you ask. Here are two fictional search results over the same 15 minutes, both counting failed Windows logons (event ID 4625):
| Result | Source address | Distinct accounts | Failures per account | Lockouts |
|---|---|---|---|---|
| A | 10.20.50.12 (internal kiosk) | 1 (svc-print) | 2,900 | Repeated |
| B | 198.51.100.66 (external) | 380 | 2 | None |
Both results show a lot of failures, and the plausible wrong reading is to treat both as attacks. Result A is one account failing thousands of times from one internal machine. That is the signature of a stale stored credential: someone changed the service account's password, and a forgotten device keeps retrying the old one. It locks the account repeatedly and breaks printing. The fix is operational: update or remove the stored credential. Result B is the opposite shape: many accounts, a couple of attempts each, from one outside address, and deliberately below any lockout threshold. That is password spraying. The response is security work: block the source, check whether any of the 380 accounts later logged on successfully, and make sure multifactor authentication (MFA) covers the targeted service.
Correlating events across systems depends on consistent time. If a firewall's clock runs four minutes off from the domain controllers', the SIEM will place its events in the wrong order. Check NTP status whenever a timeline seems impossible.
Sorting output into performance, connectivity and access issues
The objective groups the scenarios into three classes of issue. The output tells you which class you are in, and that decides which tool to use next.
| Class of issue | Output that signals it | Tools that confirm it |
|---|---|---|
| Connectivity | NO-CARRIER, 169.254 addresses, no DHCPOFFER, incomplete ARP, missing or overriding routes, timeouts, SYN-SENT, loss persisting to the last hop | ip, ifconfig, ipconfig, dhclient, arp, route, ping, traceroute, mtr, Netcat, Nmap, tcpdump |
| Performance | High mdev, latency steps that persist, retransmissions, zero windows, single-stream ceilings, high utilization, steal or iowait, high noise floor | mtr, iperf, Wireshark, top, snmpwalk, nfdump, spectrum analyzer, heat map |
| Access and security | Refused or filtered ports, 401 and 403, certificate verify errors, Access-Reject, rogue DHCP offers, changed gateway MACs, failed-logon patterns | Nmap, curl, OpenSSL, Postman, radclient, SIEM, arp, nfdump |
Exam questions describe output in a few words and expect you to map them quickly. The pairs in this table are the ones people confuse.
| Cue in the question | Points to | Not to be confused with |
|---|---|---|
| Loss at one middle hop, clean after it | ICMP rate limiting; no fault | Loss from a hop onward to the destination: a real fault |
| "Connection refused" immediately | Host reachable, port closed | "Timed out": filtered, or host or path down |
| Nmap "filtered" | Something is blocking probes | "closed": host answered, nothing listening |
| SERVFAIL that works with +cd | DNSSEC validation failure | NXDOMAIN: the name does not exist |
| Listening on 127.0.0.1 | Bound to loopback only | A firewall block on the port |
| Verify return code 21, one certificate in chain | Missing intermediate | Code 10: expired certificate |
| Single stream slow, parallel streams fast, no retransmissions | TCP window below the BDP | Retransmissions: loss on the path |
| Access-Reject | Server reached; credentials or policy (sometimes the secret) | No reply: path, port, unknown client or a secret that fails the integrity check |
| TCP Zero Window | Slow receiving application | Retransmissions or Dup ACKs: usually network loss |
| Strong RSSI, poor throughput | Low SNR or co-channel contention | Weak coverage |
Common misconceptions
- "No ping reply means the host is down." Ping tests only ICMP, and firewalls and cloud security groups often drop it. Test the actual service port with Netcat, Nmap or curl before you draw a conclusion.
- "The hop with the most loss in mtr is the broken one." Loss that does not persist to later hops comes from a router rate-limiting the ICMP replies it generates. Only loss that carries through to the destination is real.
- "Non-authoritative answer means the DNS reply is untrustworthy." It only means a recursive resolver answered rather than the zone's own server; it does not by itself mean the answer is cached or stale. The real traps are SERVFAIL caused by DNSSEC, split-horizon differences, and nslookup ignoring the hosts file.
- "Refused and timed out are the same failure." A refusal means a reset came back, so something answered. A timeout means silence. They send you in opposite directions.
- "If one iperf stream cannot fill the link, the link is underperforming." On long paths a single TCP stream is limited by its window divided by the RTT. Parallel streams that reach line rate, with no retransmissions, show that the link itself is fine.
- "Bad checksums in Wireshark mean corrupted packets." On the capturing host's own outgoing packets they are usually a side effect of checksum offloading.
What to carry forward
- Every tool tests one narrow thing from one place: ask what it sent, what came back, and what else would produce the same output.
- UP with NO-CARRIER means an enabled interface with no physical link; a Windows 169.254.x.x address with no gateway means DHCP got no reply.
- "No DHCPOFFERS received" on one new VLAN while others work points to a missing DHCP relay; an offer from an unexpected subnet points to a rogue DHCP server.
- In mtr and traceroute, loss or delay at one middle hop that clears at later hops is ICMP rate limiting; loss that persists to the destination is real.
- dig SERVFAIL that resolves with +cd is a DNSSEC validation failure; still failing with +cd means the resolver cannot reach the authoritative servers.
- ss shows established sockets by default and listening sockets only with -l; a service listening on 127.0.0.1 cannot be reached from other hosts.
- Nmap reports open, closed, filtered and unfiltered, and every conclusion rests on the packets that targets or firewalls return.
- OpenSSL verify code 21 with a one-certificate chain means a missing intermediate; code 10 means an expired certificate.
- Single-stream throughput is capped at window divided by RTT: a 1 MB window over 80 ms gives about 100 Mbit/s, while filling 1 Gbit/s needs a 10 MB window.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Debian Manpages (iproute2 project). (n.d.). ss(8), another utility to investigate sockets. manpages.debian.org
- Gordon Lyon (Fyodor). (n.d.). Chapter 15. Nmap Reference Guide. Nmap Project (Insecure.Com LLC). nmap.org
- Gordon Lyon (Fyodor). (n.d.). Port Scanning Techniques. Nmap Project (Insecure.Com LLC). nmap.org
- curl project (via MankIer). (n.d.). CURLOPT_VERBOSE - Man Page. mankier.com
- OpenSSL Project. (n.d.). openssl-s_client. docs.openssl.org
- man7.org (Linux man-pages project). (n.d.). tcpdump(8), Linux manual page. man7.org
- Wireshark Foundation. (n.d.). Wireshark User's Guide. wireshark.org
- Key terms
- APIPA
- Automatic Private IP Addressing: a Windows host gives itself an address in 169.254.0.0/16, with no gateway, when its Dynamic Host Configuration Protocol (DHCP) request gets no reply. Seeing one signals a DHCP failure, not a DNS fault.
- ICMP rate limiting
- A router protecting its CPU by limiting the Internet Control Message Protocol (ICMP) replies it generates. In traceroute or mtr it shows as loss or delay at one hop that does not carry through to later hops.
- Connection refused versus timed out
- A refusal means a Transmission Control Protocol (TCP) reset came back, so something on the path answered and the port is usually closed. A timeout means no reply at all, usually a silent firewall drop or a host or path that is down.
- Nmap filtered state
- An Nmap port state meaning a firewall, filter or other obstacle blocked the probes, so Nmap cannot tell whether the port is open or closed.
- SERVFAIL
- A Domain Name System (DNS) response code meaning the resolver could not produce an answer, commonly because Domain Name System Security Extensions (DNSSEC) validation failed or because the authoritative servers could not be reached.
- Bandwidth-delay product
- Link rate multiplied by round-trip time: the amount of data that must be in flight to fill a path. A single Transmission Control Protocol (TCP) stream whose window is smaller than this cannot reach line rate.
- CLOSE-WAIT
- A Transmission Control Protocol (TCP) state in which the remote side has closed the connection but the local application has not closed its socket. Large numbers of them indicate an application bug.
- OpenSSL verify return code
- The final result that openssl s_client prints for certificate validation, for example 0 (ok), 10 (certificate has expired) or 21 (unable to verify the first certificate, often a missing intermediate).
- Steal time
- The st value in top: processor time a hypervisor gave to other virtual machines while this guest wanted to run. High steal points to a crowded host, not to the network.
Troubleshooting Addressing and Name Resolution
- Apply a fixed checking order to locate addressing and name-resolution faults from client, server and switch evidence.
- Distinguish DHCP failures, IP address exhaustion, duplicated IP and MAC addresses, and IPv6 router advertisement faults by their evidence, and choose the fix for each.
- Diagnose DNS failures and stale or negative caches from the response status, the answering server and TTL values.
- Tell NAT table exhaustion, SNAT port exhaustion and host ephemeral port exhaustion apart, and choose a fix that reduces demand before adding capacity.
Monday 08:40: forty tickets from one floor
At 08:40 on a Monday, at a fictional regional insurer that this lesson follows, the service desk logs its fortieth ticket in twenty minutes. Every ticket comes from the third floor, and every one says the same thing: "the internet is down." The second floor is fine. The cloud-hosted claims application is still answering the monitoring system's health checks. Whatever broke, it broke only for these users, and only since the weekend.
Before a host can send its first useful packet, it has to complete a few lookups. It needs an IP address, a subnet mask, a default gateway and resolver addresses, usually from the Dynamic Host Configuration Protocol (DHCP). It needs to turn names into addresses through the Domain Name System (DNS). It needs to turn the next hop's IP address into a Media Access Control (MAC) address, the hardware address on the local link, through the Address Resolution Protocol (ARP) on IPv4 or Neighbor Discovery on IPv6. If its traffic leaves through network address translation (NAT), the translating device must also find a free public port for every new flow. Each lookup has a table behind it: a DHCP scope, a DNS cache, an ARP or neighbor cache, a NAT translation table. Tables fail in two ways. They fill up, or they hold an entry that is wrong.
What follows is a fixed order for checking those tables. You will work the third-floor case through it, then change one fact so that the same symptom leads to a different fault. After that, each remaining fault type gets its own section, with the evidence that identifies it and the fix that removes it. If DHCP or ARP basics feel rusty, the Atlas Network+ course covers them from the start.
Exam objectives: CNX-001 objective 4.4, "Given a scenario, troubleshoot connectivity issues."[1] This lesson covers the addressing and name-resolution bullets of that objective: DHCP issues, DNS issues, duplicated IP addresses, duplicated MAC addresses, IP address exhaustion, IPv6 router advertisements, stale cache, NAT table exhaustion and port exhaustion. Lesson 26 covers the path, routing and link bullets of the same objective.
The ladder: check the tables in the order the host uses them
A host builds connectivity in a fixed order, so you troubleshoot in a matching order. Skipping a rung wastes time. Flushing the DNS cache on a laptop that has no default gateway changes nothing. Adding public IP addresses to a NAT gateway does not help a server whose own ephemeral ports are used up.
| Rung | What you check | Typical commands | Healthy result | A failure here points to |
|---|---|---|---|---|
| 1. Own configuration | Address, mask, gateway, resolvers, IPv6 prefixes and routes | ipconfig /all; ip addr; ip -6 route | An address in the expected subnet, from the expected DHCP server, with the expected gateway and resolvers | DHCP issues, IP address exhaustion, a rogue DHCP server or router advertisement |
| 2. Neighbor entry | Which MAC address answers for the gateway and for the failing peer | ping; arp -a; ip neigh | A reply, and a MAC address that matches the real device and stays the same | Duplicated IP address, duplicated MAC address, stale ARP or neighbor cache |
| 3. Resolver reachability | Whether the host can reach its configured DNS server by IP address | ping the resolver; test User Datagram Protocol (UDP) and Transmission Control Protocol (TCP) port 53 | A reply or an open port | A path or firewall problem between client and resolver |
| 4. Name resolution | What the resolver says for the failing name, and whether the client's cache agrees | nslookup; dig; Resolve-DnsName; ipconfig /displaydns | Status NOERROR with the expected address, matching the client's cache | DNS issues, stale or negative cache, the client asking the wrong resolver |
| 5. The host's own sockets | How much of the local ephemeral port range is in use | netstat -ano; ss -s | Well inside the range | Host ephemeral port exhaustion |
| 6. Translation at the edge | NAT translation counts, port use and failed-connection counters | Firewall session table; cloud NAT metrics | Failed translations at zero, use well below limits | NAT table exhaustion, source NAT (SNAT) port exhaustion |
Microsoft's DNS client troubleshooting guide starts on the same first rung. Before testing any name, it has you confirm that the client has a valid address, mask and default gateway for the network it is attached to.[2] The first four rungs form a true dependency chain. A host cannot reach its resolver without an address and a working neighbor entry for the next hop, and it cannot resolve names without reaching a resolver. Rungs 5 and 6 do not depend on names in the same way. They come next because their failures show up only after a name has resolved and the host tries to open a connection.
The upshot: climb in order (configuration, neighbor, resolver, name, host sockets, edge translation) and stop at the first rung that fails. On the first four rungs the fault is on that rung or one it depends on; the last two are where failures appear once names resolve.
Worked run 1: the third floor gets a 169.254 address
Start at rung 1 on one affected laptop. Here is the output, trimmed to the lines that matter (a fictional example):
> ipconfig /all
Ethernet adapter Ethernet:
Physical Address. . . . . . . . . : 02-00-5E-10-33-41
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IPv4 Address. . : 169.254.77.12(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Three details tell the story. First, the address is in 169.254.0.0/16, the IPv4 link-local range. Windows and most other operating systems assign themselves an address from it when no DHCP server answers, a behavior Windows calls Automatic Private IP Addressing (APIPA). Second, the label says "Autoconfiguration", not a leased address. Third, the default gateway is blank. The user's "the internet is down" is true but misleading: this laptop cannot reach anything beyond its own link, internet or not. The ladder stops at rung 1, and nothing about DNS or NAT matters yet.
A 169.254 address proves that DHCP failed. It does not say why. There are two broad possibilities. Either the server never received the request (or its reply never got back), or the server received the request and had nothing to give. First force a fresh attempt with ipconfig /renew, which rules out a one-off timing failure. Here the renew fails too, so move to the server. Microsoft's DHCP server checklist asks you to verify that leases are available in the scope for the client's subnet.[3] The scope statistics answer that question in one screen:
Scope 10.20.3.0/24 "Floor 3 users" (fictional example)
Address range ........ 10.20.3.10 - 10.20.3.249 (240 addresses)
In use ............... 240 (100%)
Available ............ 0
Lease duration ....... 8 days
Oldest active lease .. 7 days 21 hours
The scope is full. The change log shows that a weekend project moved 70 new conference-room displays and desk phones into the users' VLAN (virtual local area network). The pool had served about 200 laptops with room to spare. With 70 more devices, demand reached 270 against 240 addresses, and the eight-day lease meant nothing would come back on its own for days. This is IP address exhaustion, and it produces exactly the symptom you saw: laptops still holding last week's leases worked, and everything that needed a new lease got 169.254.
The fix has two parts. The immediate repair is to free addresses: delete leases that belong to devices that have gone, or shorten the lease for a while so that abandoned leases expire sooner. The real repair is a design change. Either put the displays and phones in their own VLAN and scope, which is what segmentation is for, or widen the subnet. Widening a /24 to a /23 is not a server-only change. The router interface, the scope and every statically addressed device in the subnet need the new mask, so it belongs in a change window, not in a morning firefight.
Worked run 2: the same 169.254, a different fault
Now change one input. Same floor, same Monday, same 169.254 addresses. But this time the scope statistics read differently:
Scope 10.20.3.0/24 "Floor 3 users" (fictional example)
In use ............... 112 (47%)
Available ............ 128
Requests from this subnet since 06:00 ... 0
The server has addresses, and it has heard nothing from the third floor all morning. The requests are not making the trip. To see why, recall how a client finds a server. A client with no address broadcasts its first message, DHCPDISCOVER, and routers do not forward broadcasts. On a routed campus, the client's gateway runs a DHCP relay agent. The relay receives the broadcast and forwards it as unicast to the server, writing its own interface address into the message's giaddr (gateway IP address) field. RFC 2131 has the server base its choice on the address of the relay agent whenever giaddr is not zero, so the server normally picks the scope that matches the relay's interface.[4] The RFC allows an exception: where more than one IP subnet shares a physical segment, the client may need an address from a different subnet than the one recorded in giaddr.[4] Either way, the relay is what lets one central server serve dozens of VLANs.
The weekend change log shows that the core team moved the floor-3 VLAN interface to a new distribution switch. Compare the two configurations (fictional, in Cisco IOS style):
! Old switch
interface Vlan30
ip address 10.20.3.1 255.255.255.0
ip helper-address 10.0.0.20
! New switch
interface Vlan30
ip address 10.20.3.1 255.255.255.0
The ip helper-address line, which turns on the relay, did not come across. Adding it back fixes the floor. Before you close the ticket, run the reverse checks, because a relay can be configured and still fail. The server must be able to route its reply back to the relay's address, so ping the relay interface from the server. The server's UDP ports 67 and 68 must belong to the DHCP service alone; another service bound to them, such as a network-boot service, can swallow requests. Any firewall between the relay and the server must allow the same ports.
| Evidence | Run 1: exhausted scope | Run 2: missing relay |
|---|---|---|
| Client address | 169.254.x.x, no gateway | 169.254.x.x, no gateway |
| Scope use | 100%, none available | 47%, addresses free |
| Requests reaching the server from that subnet | Yes, but no address to offer | None |
| Other subnets | Working | Working |
| Fix | Reclaim leases, segment device types, resize the subnet | Restore the relay, verify the return path and ports |
The upshot: a 169.254 address proves DHCP failed but not why. The scope statistics separate the two commonest causes at a glance. A full scope means exhaustion. Free addresses with no requests arriving mean the messages are not reaching the server.
DHCP issues: where each step of the exchange breaks
The DHCP exchange has four messages, usually remembered as DORA. The client broadcasts a Discover, the server answers with an Offer, the client broadcasts a Request for the offered address, and the server confirms with an Acknowledgment. Afterward, the client renews its lease part-way through (by default at half the lease time), so a short server outage does not cut clients off at once. Each step can fail in its own way, and each failure leaves a different trace.
| Where it breaks | Typical cause | What you see |
|---|---|---|
| Discover never reaches a server | Missing or wrong relay; client in the wrong VLAN; DHCP snooping (a switch feature that drops DHCP server messages on untrusted ports) with an uplink wrongly left untrusted | 169.254 address; server logs nothing from that subnet |
| No Offer can be made | Scope exhausted; a server policy or filter refuses this client | 169.254 address; server logs requests it could not satisfy |
| Request ends in a decline | The client finds the offered address already in use | Repeated attempts; server marks addresses as bad |
| Acknowledgment carries wrong options | Wrong gateway, DNS server or domain-name option in the scope | A valid-looking address, but no internet or no name resolution |
| The wrong server answers | Rogue DHCP server | An address from an unexpected subnet; an unknown DHCP server address in ipconfig /all |
Wrong options are the quiet failures. A client with a proper address and a mistyped DNS server option passes rung 1 on a quick glance, so read every line of the configuration, not just the address. The DHCP Server line matters too, because it names who issued the lease.
A rogue DHCP server is any server answering clients that the network team did not authorize. The DHCP standard is frank about why this is possible. Its security section says unauthorized DHCP servers are easy to set up, and that they can feed clients false information, including incorrect or duplicate IP addresses and wrong routing and name server details.[4] Most rogues are accidents, typically a consumer router plugged in by one of its LAN ports, which then hands out 192.168.x.x addresses with itself as the gateway. Some are hostile, because a client that accepts a rogue's gateway and DNS options sends its traffic wherever the rogue chooses.
Two controls address rogues, and they work at different layers. In Active Directory networks, Microsoft's checklist includes confirming that the Windows DHCP server is authorized.[3] Authorization stops an unauthorized Windows DHCP server from serving. It does nothing about a consumer router, which never asks Active Directory for permission. DHCP snooping on the access switches does catch it. Only ports marked trusted (uplinks toward the real servers) may send DHCP server messages, and server messages arriving on access ports are dropped. Snooping also builds a binding table of which MAC address holds which IP address on which port, which dynamic ARP inspection later uses. The commonest snooping fault is the reverse problem: after a change, an uplink is left untrusted, the switch drops the legitimate offers, and every client on that switch gets 169.254.
In public cloud networks, the provider runs addressing for virtual machines, so most of these failures disappear and a different set replaces them. Your levers are the subnet's address range and the DHCP options or custom DNS settings attached to the virtual network. A wrong custom DNS server on a virtual network is the cloud version of a wrong scope option: every new virtual machine boots with a working address and broken name resolution.
IP address exhaustion: the arithmetic of leases
Exhaustion is a capacity question, so treat it with arithmetic. An address stays bound to a device while the device is present. After the device leaves, the address stays bound until its lease expires, unless the client releases it on the way out, and many do not. Call the time one device holds an address H. How long H is depends on how the stay compares with the lease:
- If the stay is shorter than half the lease, the device leaves before its first renewal. The lease simply runs out one lease length after arrival, so H is about the lease length.
- If the stay is longer, renewals keep extending the lease, and H approaches the stay plus one more lease length.
So stay plus lease is an upper bound on H. Once the network has been running for longer than H, departures balance arrivals, and demand settles at or below a steady-state bound:
peak addresses held = arrivals per hour x H, which is at most arrivals per hour x (hours on site + lease hours)
Before that point, no address has come back yet, and demand is just the total number of devices that have arrived so far. Demand can never exceed that total.
Work an example. A visitor Wi-Fi network has a pool from 10.30.0.10 to 10.30.0.250, which is 241 addresses. About 30 new devices join per hour across a ten-hour day, and visitors stay about two hours.
- With a 24-hour lease, a two-hour stay is far shorter than half the lease, so H is about 24 hours. That is longer than the whole day, so no address comes back before closing and the steady state never arrives. Demand is simply arrivals so far: 30 x the hours elapsed. The pool of 241 runs out after about 241 / 30 hours, roughly eight hours into the day. By closing, the network would have needed 30 x 10 = 300 addresses.
- With a 2-hour lease, the stay is longer than half the lease, so renewals happen and H is at most 2 + 2 = 4 hours. From about the fourth hour on, demand settles at no more than 30 x 4 = 120 addresses, half the pool.
Changing one setting, the lease length, flips the result from exhaustion in mid-afternoon to comfortable headroom. Short leases cost a little more renewal traffic, which a modern server handles easily. Long leases suit stable networks of desktops. Short leases suit guest and conference networks, where devices come and go.
Two modern factors make the arithmetic worse. Phone and laptop operating systems can present randomized MAC addresses, and some rotate them, so one physical device can appear as a new client and take a second lease. Devices with fixed addresses also take space. Microsoft's checklist warns you to look for devices with static addresses that were never excluded from the scope.[3] Such devices shrink the real pool and also cause address conflicts, covered next.
Cloud subnets run out in their own way. Cloud providers reserve several addresses in every subnet for their own services, so a very small subnet has noticeably fewer usable addresses than its prefix length suggests. Scaling services consume addresses quickly. Some Kubernetes network plugins, such as the AWS VPC Container Network Interface (CNI) plugin, give every pod an address from the virtual network's subnet, so a node group that scales out can drain a /24 that looked generous for virtual machines. When autoscaling fails with an address error, the fix is a larger or additional subnet, or a plugin mode that assigns pod addresses from a separate range. An IP address management (IPAM) tool that tracks use per subnet lets you see exhaustion coming instead of learning about it from tickets.
The upshot: address demand is at most arrivals per hour times (hours on site plus lease hours), and never more than the devices that have arrived. When demand exceeds the pool, shorten the lease, enlarge or split the subnet, or move a class of devices to its own scope. On cloud subnets, allow for reserved addresses and for workloads that take one address per container.
Duplicated IP addresses: the ARP entry that keeps changing
When two hosts on one subnet use the same IP address, IPv4 cannot tell them apart. Every other device learns which MAC address owns an IP address through the Address Resolution Protocol, and it caches the most recent answer. Whenever either duplicate host sends an ARP message, its neighbors update their caches to point at that host. Traffic for the address goes to whichever host spoke last. The symptom is intermittent: sessions work for a while, reset when the caches flip, then work again.
The evidence is easy to collect. From a neighbor on the same subnet, run arp -a for the address a few times, half a minute apart (fictional example):
> arp -a 10.20.3.50
Interface: 10.20.3.77 --- 0x7
Internet Address Physical Address Type
10.20.3.50 02-00-5e-10-aa-01 dynamic
(30 seconds later)
10.20.3.50 02-00-5e-10-bb-07 dynamic
Two MAC addresses alternating for one IP address is the signature of a duplicated IP address. Look up each MAC address in the switch's MAC address table to find its port, and the port tells you which device is the intruder.
Clients and servers both try to catch duplicates before they cause harm. Microsoft notes that Windows DHCP clients send a gratuitous ARP request to check for a conflict before they use an address the server offered.[5] A gratuitous ARP in this sense is an ARP request for the host's own address: if anyone answers, the address is taken, and the client declines it. The DHCP server records declined addresses, and Microsoft's server checklist includes looking for BAD_ADDRESS entries among the leases.[3] A scope full of BAD_ADDRESS entries means something else may be squatting on that range.
The usual causes are these:
- A device with a static address inside the DHCP range. Fix it with a DHCP reservation for that device, or an exclusion for its address.
- Two DHCP servers handing out overlapping ranges, for example a failover pair whose configurations drifted apart, or a rogue server.
- A virtual machine restored from an old snapshot, or cloned, that comes back with a static address someone has since given to another host.
Not every reported conflict is real. Microsoft documents a case in which Windows logs an address conflict for 0.0.0.0 and the DHCP server's audit logs fill with BAD_ADDRESS entries, yet no second host using the address was found. Microsoft says the cause might be a security feature on a layer 3 switch or router, called IP Device Tracking, that probes clients with ARP.[5] If such a probe arrives while the client is running its duplicate address detection, the client mistakes it for a conflict and declines a perfectly good address. Microsoft's fix belongs on the switch: deactivate the probing feature or delay its probes. It also shows how to turn off the client's duplicate check, and warns that this belongs only in well-managed environments, because real duplicates would then go unreported.[5] For a troubleshooter, the point is to confirm a duplicate with a second kind of evidence, such as two MAC addresses in an ARP cache or two switch ports, before hunting for a machine that may not exist.
IPv6 builds the same protection in. A host runs duplicate address detection on each address it forms before using it, and an address that fails the check is not used. On IPv6, a duplicate therefore usually appears as an address flagged as duplicate in the host's address list, rather than as a flapping cache.
Duplicated MAC addresses: the switch port that keeps changing
A duplicated MAC address breaks the layer below. A switch learns which port each MAC address lives on by reading the source address of incoming frames. If two devices in one VLAN share a MAC address, the switch moves its table entry back and forth between their two ports every time either one transmits. Frames for that address go to whichever port spoke last, so both devices suffer intermittent loss. The switch usually logs the movement. Here is a fictional example of such a log line (exact wording varies by vendor):
Nov 16 09:12:44 sw-fl3-01: MAC 02:00:5e:44:10:0a in VLAN 30 is flapping between port Gi1/0/14 and port Gi1/0/31
Duplicate MAC addresses on physical network interface cards (NICs) are rare, because manufacturers assign them from blocks they own. The real-world causes are mostly logical:
- Cloned virtual machines. A template with a hard-coded MAC address, or a clone made without generating a new address, produces two guests with one hardware identity.
- First-hop redundancy groups with the same number. The Virtual Router Redundancy Protocol (VRRP) derives its virtual MAC address from the group number, called the virtual router ID. Two separate router pairs on one VLAN that both use group 10 therefore present the same virtual MAC address. Cisco's Hot Standby Router Protocol (HSRP) has the same trap.
- Misconfigured NIC teaming or bonding. Two links from one server send with the same source MAC address into switch ports that are not configured as one bundle.
- MAC spoofing. A device deliberately copies another device's address to get past a MAC-based control. Port security, 802.1X authentication and the DHCP snooping bindings described earlier help detect and block it.
The look-alike to rule out is a layer 2 loop. In a loop, many MAC addresses flap at once, broadcast traffic climbs, and the switch processor may spike. A duplicated MAC address shows one address flapping between two edge ports while everything else stays stable. Most switches learn addresses separately per VLAN, so the same MAC address in two different VLANs usually causes no flapping at all. Check the VLAN in the log line.
The upshot: one IP address with two MAC addresses is a duplicated IP address and shows up in ARP caches. One MAC address on two switch ports is a duplicated MAC address and shows up in the switch's MAC table and logs. Many MAC addresses flapping at once is a loop.
IPv6 router advertisements: the gateway nobody configured
IPv6 has no ARP. Its Neighbor Discovery Protocol (ND) does the jobs that IPv4 splits across ARP, Internet Control Message Protocol (ICMP) router discovery and ICMP redirects.[6] One of those jobs is letting hosts find neighboring routers that are willing to forward their traffic.[6] Routers announce themselves in a Router Advertisement (RA), sent regularly to all hosts on the link, and also on demand when a host asks with a Router Solicitation. An RA tells hosts several things:
- The router's link-local address and a router lifetime. A nonzero lifetime makes the router a default-gateway candidate. A lifetime of zero means the router should not be used as a default gateway.
- The prefixes on the link, from which hosts build their list of on-link prefixes. With the autonomous flag set on a prefix, hosts also form their own addresses in it, which is stateless address autoconfiguration (SLAAC).
- Two flags about DHCPv6. The Managed (M) flag says addresses are available from DHCPv6. The Other (O) flag says other settings, such as DNS servers, are available from DHCPv6.
The fact that catches IPv4 engineers: DHCPv6 does not hand out a default gateway. An IPv6 host learns its default route only from RAs. A network that has DHCPv6 but no working RAs leaves hosts with addresses and nowhere to send off-link traffic.
| Fault | Typical cause | What hosts show | Fix |
|---|---|---|---|
| No RAs | RAs suppressed on the router interface; ICMPv6 filtered; an RA Guard policy blocking the real router's port | Only a link-local fe80:: address, or addresses but no IPv6 default route | Enable RAs on the gateway; permit the needed ICMPv6 types; allow RAs on the router-facing port |
| Rogue RA | A device advertising itself as a router: a lab router, an operating system's connection-sharing feature, or a hostile host | An unexpected prefix; a second default route through an unknown link-local address | Find and remove the source; deploy RA Guard on host-facing ports |
| Flag mismatch | M flag set but no DHCPv6 server; or autonomous flag cleared while some clients support only SLAAC and cannot use stateful DHCPv6 | Some or all clients without a global address | Make the flags match the services that actually exist |
| Router lifetime zero by mistake | Configuration error on the advertising router | Prefix and addresses present, no default route | Correct the lifetime |
A rogue RA is the fault exam scenarios favor, because its symptom is so indirect. Here is what a dual-stack Linux host on an affected segment shows (fictional addresses from the 2001:db8::/32 documentation range):
$ ip -6 route show default
default via fe80::1 dev eth0 proto ra metric 1024 expires 1650sec pref medium
default via fe80::2c0:ffff:fe12:3456 dev eth0 proto ra metric 1024 expires 1790sec pref medium
$ ip -6 addr show dev eth0 scope global
inet6 2001:db8:30:1::5a/64 scope global dynamic
inet6 2001:db8:ffff:0:4d2:1aff:fe33:9b10/64 scope global dynamic
The host has two default routers and an address in a prefix the network team never assigned. Users report that some websites are slow to open and then load. Here is why. When a name has both IPv4 and IPv6 addresses, dual-stack hosts usually try IPv6 first. Packets sent toward the rogue router go nowhere, and the application waits until it falls back to IPv4. Many modern applications race IPv4 and IPv6 attempts (the Happy Eyeballs approach), which shortens the wait but hides the fault.
The prevention is RA Guard, a switch feature that drops RAs arriving on ports that do not face an authorized router. It is the IPv6 counterpart of DHCP snooping, and neither control covers the other's job: DHCP snooping filters DHCPv4 server messages and does nothing about RAs.
The upshot: IPv6 hosts trust whatever router advertises on their link, and they learn default routes only from RAs. Missing RAs leave hosts without a gateway, rogue RAs give them a wrong one, and RA Guard is the switch-side control.
DNS issues: read the status before the records
Most clients run a stub resolver: a minimal resolver that does not walk the DNS tree itself but hands each query to a recursive server. RFC 1034 describes it in those terms: all the stub needs is a list of name server addresses that will do the recursive work.[7] So when names fail, there are two parties to question. One is the client, which has its own cache and settings. The other is the resolver it was told to use.
Microsoft's client procedure follows the ladder. First, ping the configured DNS server by its IP address. If no configured server answers, Microsoft says the problem is more likely connectivity between the client and the DNS servers.[2] That is a path problem, not a DNS problem. Ping depends on ICMP being allowed through every firewall on the way, so a failed ping alone is not proof; test port 53 as well. Then query the failing name directly. One detail makes this useful: nslookup does not use the client's DNS cache, so it goes straight to the configured server.[2] If nslookup gets the right answer and the application still fails, look on the client side: its cache, its hosts file, or a browser using its own resolver.
Two similar terms need separating before the status codes. Split-horizon DNS means one zone gives different answers depending on who asks: internal clients get internal addresses, and outside clients get public ones. Split DNS on a VPN, sometimes called conditional query routing, means the client sends queries for named domains (such as corp.example.com) to particular resolvers through the tunnel, and everything else to its usual resolver. Both can fail, and they fail differently: split-horizon errors give the wrong answer, while missing VPN query routing sends the question to the wrong server.
When you query, read two things first: which server answered, and the response status. Together they usually tell you who is responsible, faster than reading the records.
| Status or result | Meaning | Where to look next |
|---|---|---|
| NOERROR with an answer | The resolver found records | Is it the expected address? If not, suspect a stale cache or an answer from the wrong side of a split-horizon zone |
| NOERROR with no answer (often called NODATA) | The name exists but has no record of the type asked for, for example no AAAA record | A missing record of that type; check which type the application requests |
| NXDOMAIN | The name does not exist in the zone this resolver can see | Spelling, the suffix, or a resolver that cannot see the internal zone (for example, VPN query routing not applied) |
| SERVFAIL | The resolver tried and failed: upstream servers unreachable, a broken delegation, or a failed Domain Name System Security Extensions (DNSSEC) signature check | The resolver's upstream path and logs; retry with checking disabled to test DNSSEC |
| REFUSED | The server will not answer this client, usually because of a policy | Resolver access lists; whether the client is using the intended server |
| Timeout | Nothing came back | The path, firewall rules for UDP and TCP port 53, resolver service health |
Work a case. A remote user on the virtual private network (VPN) cannot open the internal application app1. Querying the resolver her laptop is using gives this (fictional example):
$ dig app1.corp.example.com
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40321
;; SERVER: 192.0.2.53#53(192.0.2.53)
The SERVER line is the clue. 192.0.2.53 is her home internet provider's resolver, which has never heard of corp.example.com. The VPN tunnel is up, but the client is not applying split DNS, the VPN setting that routes queries for the corporate domain to the corporate resolvers through the tunnel. Fix the VPN profile so that corp.example.com queries go to the internal resolver, and the same query returns NOERROR with the internal address.
Flip one input and the conclusion flips. Suppose the SERVER line had shown the internal resolver, 10.20.0.53, and the status was still NXDOMAIN. Then the client is asking the right server, and the record is genuinely missing from the internal zone. The fix moves from the VPN profile to the zone.
Four more DNS faults recur in hybrid networks:
- Suffix problems. If the fully qualified domain name (FQDN) resolves and the short name does not, Microsoft points to the DNS suffix configuration.[2] The client is appending the wrong domain, or none, to short names. Flushing the cache does not help, because the client rebuilds the same wrong query.
- Private cloud zones. A private DNS zone in a cloud provider answers only queries that come from inside its linked virtual networks. On-premises resolvers need conditional forwarders that send that zone to the provider's inbound resolver endpoints (for example, AWS Route 53 Resolver inbound endpoints or Azure DNS Private Resolver). Cloud resources need the reverse path to resolve on-premises names. When either forwarder is missing, one side gets NXDOMAIN or the public answer.
- DNSSEC validation failures. DNSSEC lets a validating resolver check signatures on answers. Expired signatures, or a key that no longer matches what the parent zone publishes, make the resolver return SERVFAIL. Repeat the query with dig +cd, which sets the checking-disabled bit. If the answer now appears, validation is the problem, and the fix belongs on the signed zone, not in turning validation off for everyone.
- Encrypted DNS that bypasses the corporate resolver. A browser using DNS over HTTPS (DoH) can send its queries to its own provider, so internal names fail in the browser while nslookup works. Managed browser policy keeps browser queries on the corporate resolvers. An operating system pointed at an outside DNS over TLS (DoT) server causes the same split.
Stale cache: right yesterday, wrong today
Every cache trades accuracy for speed. RFC 1034 set the rule for DNS in 1987: when the cost of fetching data, the speed of updates and the accuracy of caches pull against each other, the source of the data should control the tradeoff.[7] The tool for that control is the time to live (TTL) on each record. The zone owner sets it, and every resolver and client that caches the record may keep using it until that many seconds have passed. A stale cache is a cache still serving an entry that was true when it was stored and is no longer true.
Work a migration. The record shop.example.com has a TTL of 86,400 seconds, which is 24 hours. The team will move the site to a new address at 10:00 on Tuesday.
- If the TTL stays at 86,400, a resolver that cached the old record at 09:59 on Tuesday may serve it until 09:59 on Wednesday. Some users reach the old server for a full day.
- If the team lowers the TTL to 300 seconds (five minutes) at 09:00 on Monday, more than 24 hours before the move, every cached copy of the old 24-hour record has expired by the time of the change. After the move, the worst-case staleness is five minutes. Raise the TTL again once the new address is stable.
- Now flip one input: the team lowers the TTL only one hour before the move. Resolvers that fetched the record before the lowering still hold copies with up to 24 hours to run, so some users can be stuck on the old address for up to 23 hours after the move. Lowering a TTL only helps after you have waited out the old one.
Caches are stacked, and each layer can hold a stale entry: the application or browser, the operating system's resolver cache, the organization's recursive resolver, and any forwarders behind it. A shared recursive resolver caches for everyone who uses it. That cuts both ways. A shared cache speeds everyone up, and one stale entry in it becomes everyone's problem. Flushing a laptop does nothing about an entry held in the shared resolver.
Failures are cached too. If a lookup happened while a record was missing, the answer "this name does not exist" is itself kept for a time; this is negative caching. Microsoft's guide shows how to spot it on Windows. In the output of ipconfig /displaydns, a "Name does not exist" entry under the failing name means a negative response was returned from a DNS server and was cached on the client.[2] The fix is to clear the cache with ipconfig /flushdns. On Linux systems that use systemd-resolved, the equivalent is resolvectl flush-caches. On the shared resolver, flush the single name rather than the whole cache where the product allows it.
Address caches go stale the same way. When an IP address moves to a different MAC address (a firewall cluster fails over, a virtual IP moves, a server's network card is replaced), neighbors keep sending frames to the old MAC address until their ARP entries time out. A well-behaved failover sends a gratuitous ARP announcing the new mapping, so neighbors update at once. When that announcement is missing or ignored, neighbors see an outage that lasts exactly as long as their ARP timeout. IPv6 is better placed: its Neighbor Unreachability Detection notices a neighbor that has stopped answering. RFC 4861 lists this among its improvements over IPv4, noting that mobile nodes can move off-link without losing connectivity to stale ARP caches.[6] To test the theory, compare the MAC address in a neighbor's cache (arp -a, ip neigh show) with the MAC address of the device that now owns the IP address. Then clear the entry (arp -d on Windows, ip neigh flush on Linux) and watch whether traffic recovers.
The upshot: stale caches last as long as the TTL or timeout that created them. Lower a DNS TTL a full old TTL before a planned change, clear negative entries with a flush at the layer that holds them, and make sure failovers announce their new MAC address.
NAT table exhaustion and port exhaustion: two different limits at the edge
A device doing network address translation keeps a NAT translation table. It holds one entry per active flow, recording the inside address and port, the outside address and port they were mapped to, the destination, and an idle timer. When many inside hosts share a few public addresses, which is port address translation (PAT), the device also needs a free source port on a public address for each new flow. Two different resources can run out, and the exam lists them separately.
NAT table exhaustion means running out of table entries: the device's memory or license allows only so many concurrent translations. RFC 4787 notes that very many short-lived UDP flows load the NAT's connections table, which is why shorter timers are used for those specific protocols.[8] One host generating huge numbers of flows (a misbehaving application, a scanner, an infected machine) can fill the table for everyone. The evidence is a session count at or near the platform maximum, with new flows failing for all users at once. The fixes are to find the top talkers, shorten idle timers for protocols whose flows are known to be brief, set per-host session limits, and size the platform for the real flow count.
Port exhaustion means running out of source ports. A port number is a 16-bit field, so one public address has 65,536 port values. After setting aside the well-known ports below 1024, roughly 64,000 remain for translations; the exact usable number depends on the platform. A NAT with a pool of public addresses spreads mappings across the pool, which multiplies the supply. Many NATs, including cloud NAT gateways, can also reuse the same public port for flows to different destinations. So the limit that usually bites is ports toward one destination address and port.
Work an example. 3,000 containers sit behind one public address on a cloud NAT gateway. Each container keeps 25 connections open to one payment API at 203.0.113.10, port 443.
- Demand toward that one destination: 3,000 x 25 = 75,000 concurrent flows.
- Supply toward that destination from one public address: roughly 64,000 ports at most, and a service can set a lower limit. Azure NAT Gateway, for example, gives each public address 64,512 SNAT ports but supports up to 50,000 simultaneous connections to one destination.
- 75,000 is more than either figure, so thousands of connection attempts fail at peak: roughly 11,000 even if all 64,000 ports were usable, and about 25,000 at a 50,000 limit. The symptom is intermittent outbound failures that grow with load, while inbound traffic and other destinations look fine.
Flip one input. The same 75,000 flows are now spread evenly across 50 destinations. Each destination needs only 1,500 ports, and a NAT that reuses ports per destination copes easily. Same number of flows, no exhaustion. That is why port exhaustion scenarios usually mention one busy destination.
Cloud NAT services expose the evidence as metrics. Azure's troubleshooting guide lists source network address translation (SNAT) port exhaustion among the causes of NAT gateway connection failures. It says that more than zero failed connections in the SNAT connection count metric indicates port exhaustion or the gateway's connection-count limit.[9] Its advice on the fix is blunt. Adding ports without understanding the cause of the demand should be a last resort.[9] Adding public addresses will only delay the same failure as the application scales.[9] In the example, the likely root cause is 25 connections per container where connection pooling and keep-alive would need a handful. Two other fixes reduce demand rather than adding supply. One is reaching provider services over private endpoints; Azure notes that Private Link frees SNAT ports for internet traffic.[9] The other is closing idle connections promptly, so ports return to the pool.
The same exhaustion can happen with no NAT involved, on the client host itself. Each outbound connection uses a local ephemeral port, and a closed TCP connection lingers in the TIME_WAIT state for a while before its port is freed. Operating systems set aside a fixed range of local ports for this, and the default range differs between Windows and Linux; you can read it with netsh int ipv4 show dynamicport tcp on Windows or from /proc/sys/net/ipv4/ip_local_port_range on Linux. A server that opens and closes connections rapidly to one backend can use up its own range, and applications then report that they cannot assign a local address or port. The way to tell this apart from NAT port exhaustion is scope. One host failing while its neighbors behind the same NAT work points at the host. Many hosts failing together toward one destination points at the NAT. Count socket states with netstat -ano on Windows or ss -s on Linux to confirm.
| Resource that runs out | Where | Evidence | First fix |
|---|---|---|---|
| IP addresses | DHCP scope or cloud subnet | 169.254 addresses; scope at 100%; cloud address-allocation errors | Shorter leases, segmentation, larger subnets |
| NAT table entries | The translating device's session table | Session count at the platform maximum; new flows fail for everyone | Find top talkers, tune idle timers, set per-host limits |
| Ports on a public address | The NAT's port inventory, per destination | Failed SNAT connections above zero at peak; one busy destination | Connection reuse and private endpoints, then more public addresses |
| Ephemeral ports on a host | One client or server | Many TIME_WAIT sockets; address-assignment errors on one host | Connection pooling; widen the range only as a stopgap |
The upshot: address exhaustion is about inside addresses, table exhaustion is about translation entries, and port exhaustion is about source ports per public address and destination. Identify which resource is gone before buying more of any of them.
Exam cues: words in the stem and where they point
| Cue in the scenario | Points to | Commonly confused with |
|---|---|---|
| 169.254.x.x address, blank default gateway | DHCP failure: check the scope first, then the relay | DNS failure (names cannot matter until the address is fixed) |
| Scope at 100%; guest or Internet of Things (IoT) devices recently added; long leases | IP address exhaustion | NAT port exhaustion (outside ports, not inside addresses) |
| New VLAN or replaced switch; other VLANs get addresses | Missing DHCP relay (ip helper-address) | Exhausted scope |
| Clients get 192.168.x.x or show an unknown DHCP server | Rogue DHCP server; prevent with DHCP snooping | Rogue router advertisement (IPv6, not DHCP) |
| Intermittent drops; ARP entry for one IP alternates between two MACs | Duplicated IP address | Duplicated MAC address |
| One MAC moving between two ports in one VLAN; cloned VMs; two VRRP groups with the same ID | Duplicated MAC address | Layer 2 loop (many MACs, broadcast storm) |
| Unexpected IPv6 prefix; second default route through an unknown fe80:: address | Rogue router advertisement; prevent with RA Guard | Rogue DHCP server |
| IPv6 hosts have addresses but no default route | Missing RAs or a router lifetime of zero | Missing DHCPv6 server |
| FQDN resolves, short name fails | DNS suffix search list | Stale cache |
| SERVER line shows a public resolver for an internal name over VPN | Split DNS (VPN query routing) not applied | Missing internal record |
| Internal clients receive the public address of an internal service | Wrong view of a split-horizon zone | Stale cache |
| Some users reach the old server after a migration; flushing fixes it | Stale cache governed by TTL | Wrong record on the server |
| SERVFAIL, but an answer appears with checking disabled | DNSSEC validation failure | Unreachable resolver (that is a timeout) |
| Outbound failures at peak, failed SNAT connections above zero, one busy destination | SNAT port exhaustion | NAT table exhaustion |
| Session table at maximum; flood of short UDP flows from one host | NAT table exhaustion | Port exhaustion |
| One server cannot open outbound connections; thousands of TIME_WAIT sockets | Host ephemeral port exhaustion | NAT port exhaustion (which hits many hosts) |
Common misconceptions
- "A 169.254 address means the DHCP server is down." It means the client got no lease. The server may be running with a full scope, or running and unreachable because a relay is missing. Check the scope statistics before restarting anything.
- "DHCPv6 can give hosts their IPv6 default gateway." It cannot. IPv6 hosts learn default routers only from router advertisements, which is why missing or rogue RAs break IPv6 even where DHCPv6 works.
- "Lowering a TTL takes effect immediately." Copies cached before the change keep their old TTL. Lower the TTL at least one old TTL ahead of the move.
- "Adding public IP addresses fixes SNAT port exhaustion." It adds supply, which only delays the failure if the application opens far more connections than it needs. Reduce demand first.
- "Every conflict warning means two machines share an address." A switch's ARP probe during duplicate address detection can produce a false conflict for 0.0.0.0. Confirm with a second kind of evidence, such as two MAC addresses in an ARP cache.
- "MAC flapping always means a loop." One address flapping between two edge ports with no broadcast storm is a duplicated MAC address. Many addresses flapping during a storm is a loop.
What to remember
- Check in order: own configuration, neighbor entry, resolver reachability, name resolution, then host sockets and translation at the edge. The first four rungs are a strict dependency chain.
- A 169.254.0.0/16 address with no gateway means DHCP failed. A full scope points to exhaustion; free addresses with no requests arriving point to a missing relay (ip helper-address).
- A DHCP relay writes its interface address into giaddr, and the server normally uses it to choose the client's scope.
- Address demand is at most arrivals per hour x (hours on site + lease hours), and never more than the devices that have arrived; short leases suit guest networks.
- One IP address with two alternating MAC addresses in an ARP cache is a duplicated IP address. One MAC address on two switch ports is a duplicated MAC address. Many MAC addresses flapping during a storm is a loop.
- IPv6 hosts learn default routers only from router advertisements. RA Guard blocks rogue RAs; DHCP snooping blocks rogue DHCPv4 servers.
- NXDOMAIN means the name does not exist in the zone that resolver can see. SERVFAIL means the resolver failed, and an answer with dig +cd points to DNSSEC validation.
- Lower a DNS TTL at least one old TTL before a change. A cached "Name does not exist" entry in ipconfig /displaydns is cleared with ipconfig /flushdns.
- One public address offers roughly 64,000 ports. Port exhaustion bites when many flows target one destination, and the first fix is reducing connection demand, not adding addresses.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- Microsoft Learn. (n.d.). Troubleshoot DNS client. learn.microsoft.com
- Microsoft Learn. (n.d.). Troubleshoot problems on DHCP server. learn.microsoft.com
- R. Droms. (1997). RFC 2131: Dynamic Host Configuration Protocol. IETF / RFC Editor. rfc-editor.org
- Microsoft Learn. (n.d.). Event ID 4199 and Windows client can't get an IP address from the DHCP server. learn.microsoft.com
- T. Narten, E. Nordmark, W. Simpson, H. Soliman. (2007). RFC 4861: Neighbor Discovery for IP version 6 (IPv6). IETF. datatracker.ietf.org
- P. Mockapetris. (1987). RFC 1034: Domain names - concepts and facilities. IETF / RFC Editor. rfc-editor.org
- F. Audet, C. Jennings. (2007). RFC 4787: Network Address Translation (NAT) Behavioral Requirements for Unicast UDP. IETF / RFC Editor. rfc-editor.org
- Microsoft Learn. (n.d.). Troubleshoot Azure NAT Gateway connectivity. learn.microsoft.com
- Key terms
- DHCP relay agent
- A router or layer 3 switch function that receives a client's broadcast DHCP messages and forwards them as unicast to a DHCP server on another subnet, recording its own address in the giaddr field so the server can normally choose the matching scope.
- IP address exhaustion
- The state in which a DHCP scope or cloud subnet has no free addresses, so new clients cannot obtain one; IPv4 clients often fall back to a self-assigned 169.254.0.0/16 address.
- Rogue DHCP server
- An unauthorized DHCP server that answers clients with wrong addresses, gateways or DNS servers; DHCP snooping blocks it by allowing server messages only on trusted switch ports.
- Gratuitous ARP
- An ARP message about a host's own IP address, used to check whether the address is already taken or to announce a new IP-to-MAC mapping, for example after a failover.
- MAC flapping
- A switch repeatedly moving one MAC address table entry between two ports; a single address flapping between two edge ports usually means a duplicated MAC address.
- Router Advertisement
- An IPv6 Neighbor Discovery message in which a router announces itself, the link's prefixes, a router lifetime and the M and O flags; it is the only way IPv6 hosts learn a default gateway.
- RA Guard
- A switch feature that drops IPv6 router advertisements arriving on ports that do not face an authorized router, preventing rogue routers from redirecting hosts.
- Negative caching
- Keeping a DNS answer that a name does not exist for a period of time, so a record created later can still appear missing until the cached answer expires or is flushed.
- SNAT port exhaustion
- Running out of source ports on a NAT device's public addresses, usually toward one busy destination, so new outbound connections fail while existing ones continue.
- NAT table exhaustion
- Running out of entries in a NAT device's translation table, so no new flows can be translated for any user until entries expire or the limit is raised.
Troubleshooting Paths, Routing and Links
- Diagnose request timeouts, asymmetric routing and routing loops from traceroute, capture and log evidence, and choose a fix that targets the mechanism.
- Troubleshoot BGP sessions and IPsec tunnels in stages, naming the stage that failed before changing any setting.
- Separate physical layer disruptions from switch-port and service-port misconfigurations by reading interface counters and transceiver readings.
- Turn intermittent symptoms and outage scope into timestamped evidence that exposes a single point of failure.
Ticket 4471: half the sign-ins hang
Ticket 4471 arrives at 09:12 on a Tuesday. It is a fictional case built for this lesson, but each detail is a pattern you will meet at work. Staff in the Leeds office report that about half of their attempts to open the payroll application at 10.20.8.15 hang for roughly 20 seconds and then end in a browser timeout. Pressing refresh sometimes works. Staff who sign in from home through the remote-access VPN have no trouble. The application team changed nothing. The network team changed one thing on Monday night. It added a second site-to-site tunnel from the Leeds data center to the cloud virtual private cloud (VPC), through a second firewall, and the cloud side now spreads return traffic across both tunnels.
Before reading on, decide what you would test first and hold on to that guess. The lesson solves the ticket once the tools are in place. This one ticket touches four bullets of the objective: intermittent connectivity, request timeouts, asymmetric routing and Internet Protocol Security. The other five bullets (routing loops, BGP issues, physical layer disruptions, port misconfiguration and single point of failure) each get their own short problem.
Exam objectives: CompTIA CloudNetX CNX-001, objective 4.4, "Given a scenario, troubleshoot connectivity issues."[1] This lesson covers the path, routing and link bullets: intermittent connectivity, request timeouts, asymmetric routing, routing loops, Border Gateway Protocol (BGP) issues, Internet Protocol Security (IPSec) issues, physical layer disruptions, port misconfiguration and single point of failure. Lesson 25 covered the addressing and name-resolution bullets of 4.4. If you want to review routing basics first, the Atlas Network+ course covers them.
Reading a request timeout: what silence tells you
A request timeout means the client sent something and heard nothing useful back before its own timer ran out. That is not the same as an error. An error is a reply: a device on the path, or the server itself, answered and said no. A timeout means no reply arrived at all. It narrows the problem less than an error does, and it is the symptom most likely to send you looking in the wrong place.
Silence is common because of how the Internet Protocol (IP) is built. IP is a datagram service with no delivery promise. The router requirements standard, Request for Comments (RFC) 1812, says datagrams may reach the destination damaged, duplicated, out of order, or not at all.[2] The layers above IP are left to recover. A Transmission Control Protocol (TCP) connection starts with a three-way handshake, and its first packet is a SYN (synchronize). When a client sends a SYN and nothing comes back, it resends the SYN several times, waiting longer before each attempt, and then gives up. That retry schedule is why a failed connection takes tens of seconds to report, and why the exact wait varies between operating systems.
Start every timeout by asking what, if anything, came back. The table sorts the four results you will see.
| Result the client reports | What came back | What it proves | Where to look next |
|---|---|---|---|
| Connection refused | A TCP reset (RST) | The path works in both directions as far as the host, or a device answering for it; nothing accepted a connection on that port | The listening service and its port, or a firewall rule set to reject |
| Destination unreachable | An Internet Control Message Protocol (ICMP) error from a router or firewall | A device on the path had no route, or a rule that rejects with ICMP; the error's source address names that device | The routing table or access control list (ACL) of the device that sent the error |
| Time exceeded | An ICMP time-exceeded message | A packet's Time to Live (TTL) reached zero, which points to a loop or to a path longer than the starting TTL | Traceroute, looking for repeating hops |
| Timed out | Nothing | Something dropped the request or the reply without telling anyone | Silent firewall drops, the return path, the MTU, an overloaded server |
Here is how the difference looks in curl, a command-line tool for making web requests. The output is illustrative, and the exact wording varies by curl version and operating system.
$ curl -sS -o /dev/null https://payroll.example.com/
curl: (28) Failed to connect to payroll.example.com port 443 after 21004 ms: Timeout was reached
$ curl -sS -o /dev/null https://payroll.example.com:8443/
curl: (7) Failed to connect to payroll.example.com port 8443 after 4 ms: Couldn't connect to server
Read the timings as well as the words. Four milliseconds means a reply came back almost at once: something reached the host and was turned away. The path is fine, so the problem is the service or a reject rule. Twenty-one seconds means the client waited through all its retries and heard nothing, so the drop could be anywhere on the way out or on the way back.
One timeout pattern has its own name. Suppose the TCP handshake completes and small requests work, but a page with a large certificate or a file transfer stalls. Suspect a path MTU black hole. Every link has a maximum transmission unit (MTU), the largest packet it can carry without fragmenting it. Tunnels add headers, so the usable MTU inside an IPsec tunnel is smaller than the 1,500 bytes of ordinary Ethernet. A sender that marks its packets Don't Fragment depends on the router at the narrow point to send back an ICMP fragmentation-needed message (called Packet Too Big in IPv6), so that it can shrink its packets. That process is Path MTU Discovery. If a firewall filters those ICMP messages, the sender never learns the limit, and every full-size packet disappears without a trace. The IPsec architecture standard, RFC 4301, makes the same point from the other side: ignoring unauthenticated ICMP messages can degrade service, for example by failing to process path MTU messages.[3]
You can test for it with a ping that forbids fragmentation and sets the payload size. A 1,472-byte ICMP payload, plus 8 bytes of ICMP header, plus 20 bytes of IPv4 header, makes exactly 1,500 bytes.
Windows: ping -f -l 1472 10.20.8.15
Linux: ping -M do -s 1472 10.20.8.15
If 1,472 fails while 1,300 succeeds, step the size down until it passes. The largest payload that works, plus 28, is the path MTU. There are three fixes. You can permit the ICMP messages that Path MTU Discovery needs. You can clamp the TCP maximum segment size (MSS) on the tunnel interface, so that hosts never send segments too large for the tunnel. Or you can lower the interface MTU.
So what?: a timeout is the absence of evidence. Ask what came back and how quickly. When nothing came back, test the return path and large packets as carefully as you test the forward path.
Asymmetric routing: solving ticket 4471
Asymmetric routing means the packets of one conversation go out on one path and come back on another. By itself this is normal. Routing information exchanged by BGP supports only destination-based forwarding: a router picks the next hop using only the destination address in the packet's IP header.[4] Packets from Leeds to the cloud and packets from the cloud to Leeds have different destinations, so different routers make separate choices for each direction. Across the internet the two directions often differ, and nobody notices.
Asymmetry becomes a fault when a device has to see both halves of a conversation to do its job. A stateful firewall admits a reply only if its state table recorded the request. Network address translation (NAT) has to translate the reply using the mapping it built for the request. An intrusion prevention system (IPS) that sees only one direction cannot reassemble the session. Strict unicast reverse path forwarding (uRPF) is an anti-spoofing check that drops a packet when it arrives on an interface the router would not use to reach that packet's source. It throws away legitimate replies that come back on the other link.
Now work the ticket. The Leeds core switch sends all cloud-bound traffic to FW-A, because FW-A is its default route. The cloud VPN gateway has two equal routes back to Leeds, one through each tunnel, and uses Equal-cost multi-path routing (ECMP). ECMP hashes each flow's addresses and ports, then uses the result to choose which path the flow takes.
| Step | Packet | Path taken | What happens |
|---|---|---|---|
| 1 | SYN from 10.50.4.27 port 51344 to 10.20.8.15 port 443 | Core switch to FW-A, then tunnel A | FW-A records the new connection in its state table and forwards it |
| 2 | SYN-ACK from 10.20.8.15 back to the client | The cloud gateway's ECMP hash puts this flow on tunnel B | FW-B receives a SYN-ACK for a connection it never saw, and drops it as invalid |
| 3 | SYN retransmissions | Out through FW-A again | Every reply in this flow hashes to tunnel B, so FW-B drops each one |
| 4 | The client gives up | None | The browser reports a timeout after about 20 seconds |
The evidence on FW-B looks like this (fictional log lines):
2026-11-17T09:12:41Z FW-B deny tcp 10.20.8.15:443 -> 10.50.4.27:51344 flags=SA reason=no-session
2026-11-17T09:12:42Z FW-B deny tcp 10.20.8.15:443 -> 10.50.4.27:51344 flags=SA reason=no-session
The ECMP hash explains every odd detail of the ticket. Flows whose hash chooses tunnel A return through FW-A and work. That is about half of them. Refreshing the page opens a new connection with a new source port. The new port changes the hash, so the retry may land on tunnel A, and that is why refresh "sometimes works." Home users arrive through the remote-access gateway on a separate path, so they never reach FW-B. To prove the diagnosis, capture on both firewalls at once. The SYN appears only on FW-A, and the SYN-ACK appears only on FW-B.
There are three ways to fix it, and each has a cost.
- Make the path symmetric at the firewall. Make the cloud side prefer tunnel A for the Leeds prefixes. In BGP, one way is to lengthen the autonomous system (AS) path, the list of networks a route has crossed, on the routes Leeds advertises over tunnel B. Leeds does this by repeating its own AS number in those advertisements, which is called prepending. A route with a longer AS path loses, so tunnel B drops out of the cloud's ECMP set. This is simple, but tunnel B becomes a standby and its extra capacity sits idle until failover.
- Share state. Run FW-A and FW-B as one cluster that synchronizes connection state, so either member accepts the reply. Both tunnels stay active.
- Source NAT on each firewall. Each firewall translates Leeds clients to an address pool it owns, and each pool must be advertised or routed only over that firewall's own tunnel. Then the cloud can return traffic only to the firewall that built the mapping. If the cloud still had equal-cost routes to both pools over both tunnels, replies could still hash to the wrong firewall. This works, but the application now sees firewall addresses instead of client addresses, which affects its logs and allow lists.
Cloud documentation points to the same trap from another direction. Microsoft warns that overlapping prefixes on different VPN connections can make traffic use an unintended route.[5] Where several connections deliberately provide redundant paths to the same on-premises network, its design requires Border Gateway Protocol (BGP) and equal-cost multipath (ECMP) routing.[5] ECMP is exactly what created the asymmetry in ticket 4471, so a redundant design has to plan for stateful devices from the start.
Now change one input. Suppose FW-A and FW-B had been built from the start as an active-active cluster with state synchronization. The SYN-ACK arriving at FW-B now matches a state entry copied from FW-A, so it passes. The routing is exactly as asymmetric as before, and nothing breaks. If Leeds users still time out in that version of the ticket, asymmetry is no longer a suspect. The next suspect is the new tunnel itself: its MTU, its traffic selectors or its routes, all covered below.
So what?: asymmetric routing is a fault only where a stateful device sees one half of a flow. Prove it with captures or logs on both devices. Then either make the path symmetric at that device, or let the devices share state.
Routing loops: when TTL runs out
A second fictional ticket: users at a branch cannot reach the 192.0.2.0/24 server network, and the wide area network (WAN) link between routers R1 and R2 is suddenly running almost full even though traffic is light. A traceroute shows why. The router names in brackets are annotations added here, not part of the tool's output.
traceroute to 192.0.2.80, 30 hops max
1 10.60.1.1 1.2 ms
2 10.60.0.1 2.0 ms [R1]
3 10.60.0.2 2.9 ms [R2]
4 10.60.0.1 3.6 ms [R1]
5 10.60.0.2 4.4 ms [R2]
6 10.60.0.1 5.1 ms [R1]
...
29 10.60.0.2 23.1 ms [R2]
30 10.60.0.1 23.8 ms [R1]
The same two addresses take turns until the hop limit. That is a routing loop: R1 forwards packets for 192.0.2.80 to R2, and R2 sends them back. The Time to Live (TTL) field is what stops a packet from circling forever. RFC 1812 defines TTL as a field in the IP header that acts as a timer limiting the lifetime of a datagram, and notes that it is 8 bits long.[2] Every router lowers it by at least one. When it reaches zero, the router discards the packet and normally sends back an ICMP time-exceeded message. Traceroute uses this by sending probes with a TTL of 1, then 2, then 3, and so on. In a loop, each packet crosses the R1-R2 link many times before it dies, which is why that link fills up while users get nothing.
Next, find the cause. When several routes match a destination, a router uses longest match: RFC 1812 lists a consistent forwarding algorithm, "longest match", as part of classless routing.[2] The most specific prefix that contains the destination wins. Here are the relevant entries from both routers.
| Router | Route | Next hop | Status |
|---|---|---|---|
| R1 | 192.0.2.0/24 (static) | 10.60.0.2 (R2) | Installed |
| R1 | 0.0.0.0/0 | Internet service provider | Installed |
| R2 | 192.0.2.0/24 (learned over the data center link) | Data center router | Withdrawn: the data center link failed at 08:55 |
| R2 | 0.0.0.0/0 (static) | 10.60.0.1 (R1) | Installed |
Walk through it in order. While R2's data center link was up, R2 had a specific /24 route and forwarded correctly. When that link failed, the /24 disappeared from R2. The longest remaining match for 192.0.2.80 became R2's default route, which points back at R1. R1 still had its static /24 pointing at R2. Each route was reasonable on its own, and together they made the loop. Cloud path tools describe the same logic in their own terms. AWS Reachability Analyzer can report that a route can't be used because a more specific route matches.[6] It can also report that a route table has no applicable route to the destination.[6]
The fixes follow from the mechanism. Make R1's static route conditional, for example by tracking R2's path to the data center, or learn the prefix dynamically instead. On R2, add a discard route (often called a null route) for 192.0.2.0/24, configured with a worse preference than the learned route. While the learned route exists, it wins. When it disappears, the discard route takes over, so R2 drops those packets at once instead of following its default back to R1. Routers that advertise a summary route use the same technique for the summary.
Other common causes include redistributing routes between two routing protocols at two different points, so routes leak back to where they came from; mismatched static routes left behind after a migration; and brief micro-loops while routers converge after a change, which clear by themselves within seconds. Between autonomous systems, BGP prevents loops by carrying the list of ASes each route has crossed. RFC 4271 notes that this information is enough to build a graph of AS connectivity from which routing loops may be pruned.[4] In practice, a BGP router rejects any route whose AS path already contains its own AS number.
Do not confuse a routing loop with a switching loop. They have different evidence and different fixes.
| Feature | Routing loop (layer 3) | Switching loop (layer 2) |
|---|---|---|
| What circulates | IP packets for the affected prefixes | Ethernet frames, especially broadcasts |
| What stops it | TTL, one packet at a time | Nothing in the frame, because Ethernet has no TTL |
| Scope | Destinations covered by the looping route | Every device in the virtual local area network (VLAN), often the whole switched domain |
| Evidence | Repeating hops in traceroute, ICMP time exceeded | Broadcast storm, Media Access Control (MAC) addresses flapping between ports, high switch central processing unit (CPU) load |
| Prevention | Route design, discard routes, AS path checks | Spanning Tree Protocol (STP), Bridge Protocol Data Unit (BPDU) guard on edge ports |
So what?: alternating hops in a traceroute mean a routing loop. Check what each router in the pair has for the longest matching prefix. The broken assumption is usually a route that falls back to a default when a more specific route disappears.
BGP issues: session, prefixes, then path
A fictional cloud migration: the Leeds edge router should exchange routes with a cloud provider's VPN gateway over two IPsec tunnels. On day one, the cloud subnets do not appear in the Leeds routing table. BGP is easier to troubleshoot if you split the problem into three questions and answer them in order. Is the session up? Are the right prefixes being exchanged? Is the received route the one actually being used?
Some background first. The Border Gateway Protocol exchanges reachability information between autonomous systems. In the classic definition, an autonomous system (AS) is a set of routers under a single technical administration.[4] BGP messages are sent over TCP connections.[4] The well-known port for a BGP session is TCP 179. Routes are advertised between BGP speakers in UPDATE messages.[4] Because BGP runs over TCP, every TCP problem from earlier in this lesson can stop a session: a blocked port, a missing return route, or a firewall dropping replies.
A BGP session moves through a series of states. Knowing where it is stuck tells you which layer has failed.
| State | What it means | Usual causes if it stays here |
|---|---|---|
| Idle | Not trying to connect, or reset after an error | Neighbor shut down by an administrator, no route to the neighbor's address, or the session was torn down after an error and is waiting to retry |
| Connect | Waiting for the TCP connection to complete | Nothing has answered on TCP 179 yet, or the TCP segments are being discarded, as with an authentication password mismatch |
| Active | Trying to open TCP and failing; despite the name, the session is not up | Wrong neighbor address, TCP 179 blocked by an ACL or firewall, wrong source address for the session, an authentication password mismatch (the peer discards segments that fail the check, so the TCP connection never completes), or an external BGP (eBGP) peer more than one hop away without multihop configured |
| OpenSent and OpenConfirm | TCP is up; the peers have exchanged OPEN messages and are checking parameters | Wrong remote AS number or an unacceptable hold time; the session usually falls back to Idle |
| Established | The session is up and UPDATE messages can flow | The session is fine; if routes are missing, look at prefixes and policy first, then check that UPDATE messages can cross the path |
A summary from the Leeds router might look like this. The output is fictional and uses a common display format, in which the last column shows the state, or a count of received prefixes once the session is established.
Neighbor Remote AS Up/Down State/PfxRcd
10.255.10.1 64510 00:00:12 Active
10.255.11.1 64510 2d04h 12
Read it one row at a time. The second neighbor is established and has received 12 prefixes. The first is stuck in Active, so the TCP session to 10.255.10.1 is not completing. Check that the tunnel carrying it is up, that the neighbor address, AS number and any session password match the provider's configuration file, and that nothing blocks TCP 179. Give a new session a moment before you call it broken: AWS notes that a BGP peering may take approximately 30 seconds to become active.[7]
An established session can still carry the wrong routes. AWS's checklist for its VPN treats the tunnel as correctly configured only when the BGP peering is established, you are receiving a prefix, and you are advertising a prefix.[7] Those are three separate conditions. Prefixes go missing for four main reasons. An inbound or outbound filter (a prefix list or route map) denies them. A network statement does not exactly match a prefix in the local routing table, so nothing is advertised. A maximum-prefix limit was exceeded and the router shut the session, so it leaves Established until it is reset. Or the route arrived but its next hop is unreachable, so the router cannot use it. Filters and policy are the usual explanation for an established session with zero prefixes, but not the only one, as the next paragraph shows.
A flapping session has its own signature: it reaches Established, stays up for roughly one hold time, then resets with "hold timer expired" in the log, and repeats. Peers send keepalives at a fraction of the hold time. If no message arrives before the timer expires, the session is torn down. Keepalives go missing when a congested link drops them, when a busy router CPU fails to send them, or when a flapping physical link underneath interrupts the path. The MTU can also cause it. The small OPEN and KEEPALIVE messages fit through the tunnel. UPDATE messages can be much larger: the base standard allows messages up to 4,096 octets.[4] The first full exchange of routes therefore fills full-size TCP segments. Here is the chain of events when Path MTU Discovery is broken:
- The full-size segments are too big for the tunnel, and they are dropped silently.
- TCP keeps resending the same segments, and they keep being dropped.
- Keepalives are queued behind the lost segments in the same TCP stream, so the peer receives nothing.
- The peer's hold timer expires, the session resets, and the cycle starts again.
The clue is that each up period ends without the routes ever arriving, so the prefix count stays at zero even though no filter denies anything. The fix is the same as for any path MTU black hole: MSS clamping or working ICMP.
The third question covers routes that arrive and are valid, while traffic still uses a different exit. BGP compares candidate routes by their attributes, in a fixed order. Two attributes matter most here. Local preference is set inside your AS, and the higher value wins, so it controls which exit your outbound traffic uses. AS path length is shorter-wins, so prepending your own AS to the routes you advertise on one link makes other networks less likely to send inbound traffic over it. These are the levers you would use to make ticket 4471's return path symmetric.
Some BGP issues come from outside your network. In a route leak, another network re-advertises routes it should have kept to itself. In a prefix hijack, another AS originates your prefix, or a more specific part of it. Either way, traffic to your addresses from parts of the internet goes somewhere else or disappears. Defenders monitor which origin AS announces their prefixes, as seen from external route collectors. They filter what customers and peers may announce, set maximum-prefix limits, and use Resource Public Key Infrastructure (RPKI) route origin validation, which checks announcements against signed records of which AS may originate each prefix.
So what?: work through BGP in order. Is the session Established? Are the right prefixes being received and advertised? Is the received route the one being used? The state where a session gets stuck tells you which of those to fix.
IPsec issues: work the tunnel from the bottom up
The exam writes IPSec. The standards write IPsec, and RFC 4301 states that the spelling "IPsec" is preferred and that other capitalizations are deprecated.[3] Both mean Internet Protocol Security, a set of protocols that protect traffic at the IP layer. A site-to-site tunnel needs two negotiations to succeed. First, the peers build an Internet Key Exchange (IKE) security association (SA), often called phase 1. AWS describes this SA as required to exchange the keys used to set up the IPsec SA.[7] Second, they build the IPsec SA (phase 2, called a child SA in IKEv2), and AWS puts it plainly: an IPsec SA is the tunnel itself.[7] On the wire, IKE uses User Datagram Protocol (UDP) port 500 and moves to UDP port 4500 when it detects NAT between the peers (NAT traversal). Protected data travels as Encapsulating Security Payload (ESP), which is IP protocol 50, or inside UDP 4500 when NAT traversal is in use.
Troubleshoot in stages, from the bottom up. Each stage depends on the one below it, so a fault low in the stack produces symptoms everywhere above it.
| Stage | Question | Common failures | Where the evidence is |
|---|---|---|---|
| 1. Peer reachability | Can the two public addresses exchange UDP 500, UDP 4500 and ESP? | Wrong peer address configured; an upstream firewall blocking UDP 500, UDP 4500 or ESP | Capture on the outside interface; IKE logs showing resends with no reply |
| 2. IKE SA | Do the peers agree on IKE version, encryption, integrity, Diffie-Hellman group, lifetime and authentication? | Pre-shared key (PSK) mismatch, proposal mismatch, identity mismatch | IKE log: no proposal chosen, or authentication failed |
| 3. IPsec SA | Do the traffic selectors and phase 2 proposals match, including perfect forward secrecy (PFS)? | Different subnet definitions, PFS group mismatch, phase 2 lifetime mismatch | IKE log: traffic selectors unacceptable; IPsec SA count of zero |
| 4. Traffic through the tunnel | Do packets go in, get encrypted, and come out the other side? | No route into the tunnel, a filter on the gateway subnet, packets too large for the tunnel | Encrypt and decrypt counters; a ping to the far inside tunnel address |
| 5. Routing over the tunnel | Are the right prefixes exchanged? | BGP not Established, prefixes filtered, UPDATE messages lost to an MTU problem | BGP summary, as in the previous section |
The cloud providers' own checklists follow these stages. For stage 1, Microsoft says the peer address configured in Azure's Local Network Gateway object should match the on-premises device's address.[8] For stage 2, it says to compare the shared key on the on-premises VPN device with the one on the Azure side and make sure they match.[8] For stage 3, on policy-based gateways, the subnets have to match exactly between the Local Network Gateway and the on-premises definitions.[8] PFS also has to agree. The PFS group is the Diffie-Hellman group used for IPsec Quick Mode (Phase 2).[5] So if one side uses PFS group 14 and the other expects group 20, phase 1 comes up and phase 2 fails.
For stage 4, Microsoft advises checking for user-defined routes or Network Security Groups (NSGs) on the gateway subnet, removing them, and testing again.[8] AWS suggests pinging the far end's inside tunnel address from your customer gateway device to confirm that traffic is being encrypted and decrypted.[7] Be careful which address you ping. Microsoft notes that its VPN gateways do not reply to ICMP on their local address.[8] A failed ping to the gateway itself therefore proves nothing about the tunnel.
Here is a worked case with fictional log lines from the Leeds side.
2026-11-18T07:02:11Z ike peer=198.51.100.7 IKE_SA established (IKEv2, AES-256, SHA-256, DH group 20)
2026-11-18T07:02:11Z ike peer=198.51.100.7 CHILD_SA failed: TS_UNACCEPTABLE
proposed local 10.50.0.0/16 remote 10.20.0.0/16
2026-11-18T07:02:41Z ike peer=198.51.100.7 CHILD_SA failed: TS_UNACCEPTABLE
Stage 2 succeeded: the IKE SA is established, so the pre-shared key, the proposals and peer reachability are all fine. Stage 3 failed, and the failure names traffic selectors. The cloud side's configuration lists the Leeds network as 10.50.0.0/17, while Leeds proposes 10.50.0.0/16. The fix is to agree on one definition on both peers. Re-entering the pre-shared key would waste time, because the key has already worked.
Now change one input. The log is clean, and both SAs are up. The tunnel status shows this:
Tunnel Peer IKE SA IPsec SA Encrypted pkts Decrypted pkts
tun1 198.51.100.7 up up 18,442 0
Packets go out encrypted, but nothing comes back through the tunnel. Negotiation is no longer a suspect, because stages 2 and 3 both succeeded. The fault is now on the return side of stage 4. The far side may have no route back to 10.50.0.0/16 through this tunnel. A filter on the far side's gateway subnet may be dropping the traffic. Or replies may be leaving through a different tunnel, which is ticket 4471 again.
A tunnel can also be up on one side only. If one peer reboots, the other may keep sending ESP using an SA that no longer exists. Each ESP packet carries a Security Parameter Index (SPI) that identifies its SA. When an inbound packet's SPI matches no SA, RFC 4301 says the receiver must discard the traffic, and that this is an auditable event.[3] So look for "invalid SPI" messages in the receiver's log. Dead peer detection, or resetting the tunnel on both ends, clears the stale SA.
Intermittent tunnel drops have their own usual causes. Mismatched lifetimes can make the tunnel drop at each rekey. Microsoft also warns of a specific configuration trap: if the VPN device's internet-facing IP address is included in the Local network definition in Azure, you might experience sporadic disconnections.[8] Where traffic to specific prefixes drops intermittently, it advises comparing the address prefixes configured on each local network gateway for overlaps.[5]
So what?: name the stage that failed before you change anything. A failure in phase 1 points to keys, proposals or reachability. A failure in phase 2 points to selectors or PFS. A tunnel that is up but carries no replies points to routes and filters.
Physical layer disruptions: counters before theories
A third fictional ticket: a storage replication job between two floors keeps slowing down, and users on the fourth floor report web pages that sometimes stall. Nobody changed any configuration. Before you form a theory, read the interface counters on the switch port that serves the fourth floor's uplink. The output below is fictional.
TenGigabitEthernet1/1/2 is up, line protocol is up
Full-duplex, 10Gb/s, media type is 10GBase-SR
Last link flapped: 00:03:41 ago
Last clearing of counters: 01:00:00
48211907 packets input, 0 runts, 0 giants
23814 input errors, 23814 CRC, 0 frame, 0 overrun
51002144 packets output, 0 output errors, 0 collisions
7 interface resets
Three lines carry the diagnosis. First, the input errors equal the CRC errors. Those frames arrived corrupted and failed their cyclic redundancy check (CRC), the checksum carried in every Ethernet frame. The receiver discards them, and the TCP sessions inside have to retransmit, which users experience as stalls and the replication job as low throughput. Second, the link flapped less than four minutes ago. Third, it has reset seven times in an hour. Corruption plus flapping, with no collisions on a full-duplex link, points to the physical path into this port: the fiber, its connectors, or the transmitter at the far end.
Direction matters. The receiver counts CRC errors, so errors on this port's input describe the strand arriving here. Check the far end's input counters too. If they are clean, the problem is one strand or one transmitter, not the whole cable run.
Optical ports usually report digital optical monitoring (DOM) readings from the Small form-factor pluggable (SFP) transceiver. Optical power is given in dBm, decibels relative to one milliwatt, and a more negative number means less light. Compare each reading with the transceiver's alarm thresholds from its data sheet. To judge the strand arriving here, you need readings from both ends: this port's receive power and the far end's transmit power. All values below are fictional.
| Reading | Value | Alarm threshold (fictional data sheet) | Verdict |
|---|---|---|---|
| Far-end switch, transmit power toward this port | -2.1 dBm | Low alarm -7.3 dBm | Normal: the far transmitter is sending enough light |
| This port, receive power | -13.6 dBm | Low alarm -11.1 dBm | Below the alarm: too little light is arriving |
| This port, transmit power (the other strand) | -2.4 dBm | Low alarm -7.3 dBm | Normal, but it describes the outbound strand, not this fault |
| This port, temperature | 41 C | High alarm 75 C | Normal |
Read the first two rows together. The far end sends -2.1 dBm and this port receives -13.6 dBm, so about 11.5 dB of light is lost between them. That is far more than a short patched run should lose, and it pushes the receiver below its alarm. Likely causes are a dirty or damaged connector, a tight bend, a bad patch panel port, or a run longer than the optic supports. Do the cheap repairs first. Inspect both connectors with a fiber scope, clean them, reseat them, and swap the patch cord. Then test the run with a light meter or an optical time-domain reflectometer (OTDR), which shows where along the fiber the loss occurs. For copper, use a cable tester to check the wire map, length and crosstalk. Also look for runs that pass close to power cables, fluorescent lighting or motors, which induce electromagnetic interference (EMI).
Other physical disruptions include fiber cut during construction work, a Power over Ethernet (PoE) budget that runs out so that phones and access points reboot, transceivers failing from heat, and connectors loosened by vibration. A physical fault often shows up as a routing fault. Every link flap can reset a BGP or Open Shortest Path First (OSPF) neighbor and force the network to reconverge. When the symptom is a flapping routing adjacency, check the physical counters underneath it.
So what?: users rarely describe a physical fault as physical. They report slowness, stalls or routing flaps. Clear the counters, watch how fast the CRC and reset counts rise, and fix the light or the cable before you touch the configuration.
Port misconfiguration: the switch port and the service port
"Port" has two meanings, and the exam can use either. A switch port is a physical interface with settings: speed, duplex, VLAN mode, MTU and link aggregation membership. A service port is a TCP or UDP number that an application listens on, and that firewalls and security groups use to admit traffic. Both can be misconfigured, and they fail in different ways.
Start with the classic switch-port fault, a duplex mismatch. In a fictional ticket, a file server's switch port has been forced to 100 Mb/s full duplex, while the server's network interface card (NIC) is left on auto-negotiation. Auto-negotiation works only when both ends advertise their abilities. A forced port advertises nothing, so the auto side falls back to parallel detection. That can sense the speed but not the duplex, so it assumes half duplex. This mostly happens at 10 and 100 Mb/s, because 1000BASE-T requires auto-negotiation. The result is one end at full duplex and the other at half.
The symptoms explain themselves once you know the mechanism. The link is up, and pings work, because they are small and sparse. Large transfers crawl. The half-duplex side records late collisions: it detects the other side transmitting partway through its own frame, which should never happen on a correctly working link. The full-duplex side records CRC errors and runts, which are frames cut short when the half-duplex side stops and backs off. The fix is to configure both ends the same way, either both on auto-negotiation (preferred) or both forced to identical values. Then clear the counters and confirm that they stay at zero.
| Switch-port misconfiguration | Symptom | What to check |
|---|---|---|
| Speed or duplex mismatch | Works but slow; late collisions on one side, CRC errors and runts on the other | Negotiated speed and duplex at both ends |
| Access port in the wrong VLAN | The device gets an address from the wrong subnet, or none (Lesson 25) | The port's access VLAN |
| Trunk missing a VLAN from its allowed list | Devices in one VLAN cannot reach their gateway across this link; other VLANs work | The allowed VLAN list at both ends of the trunk |
| Native VLAN mismatch | Untagged traffic lands in different VLANs at each end; neighbor discovery protocols log warnings | The native VLAN at both ends |
| MTU mismatch (jumbo frames on one side only) | Small packets pass; large frames are dropped; storage or overlay traffic fails | The MTU on every hop, allowing for overlay headers such as Virtual Extensible LAN (VXLAN) |
| Link aggregation mismatch | One end runs Link Aggregation Control Protocol (LACP) while the other is static or not bundled; members fail to bundle, or a loop forms | The channel mode at both ends |
| Port shut down by port security or BPDU guard | The link goes down after a violation and stays down | The port status and the log message that gives the reason |
Service-port faults look different, and the first table in this lesson tells them apart. In another fictional case, an application moved to listen on 8443, but the firewall rule still admits only 443. A request to 8443 now meets a drop rule and times out. If the rule admits 8443 but the service is not running, the host sends a reset and the client reports "refused" within milliseconds. A load balancer whose health checks still probe 443 marks every target unhealthy, and users get errors even though each server is fine.
Cloud filters add one more trap: stateless rules. AWS states that inbound or outbound traffic for a subnet must be admitted by the network ACL for that subnet.[6] Network access control lists (NACLs) are stateless, so a rule admitting inbound 443 does nothing for the reply. The reply needs an outbound rule that admits the ephemeral ports clients use. Security groups are stateful and admit replies automatically. The symptom of a missing outbound NACL rule is a timeout: the SYN reaches the server, and the SYN-ACK is dropped at the subnet boundary. It is the stateless counterpart of ticket 4471.
So what?: first decide which kind of port the ticket is about. Switch-port faults show up in interface counters and VLAN tables. Service-port faults show up as refused or timed-out connections and in rule tables, and in a stateless filter both directions need a rule.
Intermittent connectivity: catching a fault that will not stay
Intermittent connectivity means a path works only some of the time. It is the hardest symptom in this objective, because the fault has usually gone by the time you look. The method is to turn the user's "it keeps dropping" into timestamps, and then line those timestamps up against every log that could explain them.
- Pin down the pattern. Who is affected: one user, one floor, one site or everyone? What fails: every application or one, every destination or certain prefixes? When does it happen, and how long does each episode last? What does "dropping" actually mean: timeouts, resets or slowness?
- Put a timestamped probe in place from at least two vantage points, for example a ping that prints a timestamp on each reply, or the synthetic monitoring from Lesson 20. Two vantage points tell you whether the fault is near the user or near the destination.
- Collect logs with synchronized clocks. Network Time Protocol (NTP) has to be working, or the correlation is meaningless. Gather interface up and down events, routing neighbor changes, IKE and IPsec rekeys, Dynamic Host Configuration Protocol (DHCP) lease renewals and firewall drops.
- Correlate, then test the correlation. Predict the next episode, or change one thing and see whether the episodes stop.
Cloud platforms keep the logs you need. Azure's VPN gateway diagnostic logs let you troubleshoot configuration activity, tunnel connectivity, IPsec logging and BGP route exchanges.[9] To link a disconnect to configuration activity, Microsoft suggests reviewing TunnelDiagnosticLog for tunnel state changes and GatewayDiagnosticLog for configuration events.[5] It adds a caution that applies to every network: a related Service Health notification gives context, but timing alone doesn't confirm the cause.[5] A coincidence becomes a cause only when you can predict the next episode, or stop the episodes by changing that one thing.
Check the change calendar as well. RFC 1812 observes that reloading a router for simple configuration changes can cause disruptions in routing.[2] Sometimes an "intermittent" outage lines up exactly with someone's maintenance work.
| Pattern | Suspect | Confirm with |
|---|---|---|
| About half of new connections fail, and a retry sometimes works | Per-flow load sharing (ECMP) where one path is broken or asymmetric | Captures on both paths; compare which flows fail |
| Drops at a fixed interval, such as every few hours | IPsec rekey with mismatched lifetimes or PFS settings; DHCP lease renewal | IKE logs at the drop times; lifetimes compared on both peers |
| Episodes last about one hold time and repeat | BGP session flapping from lost keepalives or an MTU problem | BGP log showing hold timer expired; up and down times |
| Failures rise with load or at certain times of day | Congestion, a duplex mismatch, NAT or port exhaustion (Lesson 25) | Interface use, error counters, NAT table use |
| Random episodes that coincide with link-down logs | Physical layer: connector, optic, cable or power | Flap count, CRC counters, DOM readings |
| Only some destination prefixes drop | Overlapping or conflicting routes | Route tables; on Azure, prefixes compared across connections |
So what?: you cannot troubleshoot an intermittent fault you only hear about. Make it leave timestamps, correlate them with synchronized logs, and accept a cause only when it predicts the next episode.
Single point of failure: when the outage has one shape
A single point of failure (SPOF) is any component whose failure alone stops a service. In design work you remove them (Lesson 5). In troubleshooting you meet them as an outage whose scope matches exactly one component: everything that depends on it fails together, and nothing else does.
A fictional Wednesday, 14:05: the Leeds and Bristol offices both lose access to the cloud payroll application. Both can still browse the internet, and both can still reach each other. To find the shared cause, list each component and mark which failing and working paths depend on it.
| Component | Leeds to cloud (failing) | Bristol to cloud (failing) | Internet from either site (working) | Leeds to Bristol (working) |
|---|---|---|---|---|
| Each site's local internet circuit | No | No | Yes | Yes |
| Leeds data center firewall cluster | Yes | Yes (Bristol reaches the cloud through Leeds) | No | Yes |
| Data center internet circuit carrying both cloud tunnels | Yes | Yes | No | No |
| Cloud VPN gateway | Yes | Yes | No | No |
Look for a component that every failing path uses and no working path uses. The firewall cluster drops out, because the working Leeds-to-Bristol path also crosses it. Two suspects remain: the data center circuit and the cloud gateway. In this case the circuit had failed. The two "redundant" cloud tunnels both ran over that one circuit, so the redundancy only ever existed in the tunnel configuration. Now change the input: if only Leeds had lost the cloud while Bristol kept it, the shared components would all drop out, and the suspect would be something only Leeds uses, such as its link into the data center.
Most SPOFs you find while troubleshooting are hidden ones:
- Two circuits from different carriers that share one conduit or one building entrance.
- A redundant firewall pair plugged into one power distribution unit (PDU).
- Two tunnels that terminate on one on-premises device, or ride one internet circuit.
- One NAT gateway serving workloads in several cloud availability zones.
- A redundant path that failed quietly, leaving the other path as a SPOF that nobody knows about.
The last one is the most common. AWS's VPN troubleshooting guidance ends by asking you to make sure that both tunnels are in this state.[7] The state it means is BGP established, with prefixes received and advertised. A second tunnel that has been down without an alarm turns a redundant design into a single path.
The response has two parts. First, restore service through a backup path or by failing over. Then record the SPOF, change the design, monitor standby paths as closely as primary ones, and test failover on a schedule so the next silent failure is caught before it matters.
Exam cues: what the stem says and where it points
| The question stem says | It points to | Do not confuse with |
|---|---|---|
| Some connections work, a retry sometimes works, after a second path was added | Asymmetric routing through stateful devices, often with ECMP | A duplicated IP address (Lesson 25), which affects one address rather than some flows |
| Traceroute shows the same two hops repeating | Routing loop | Switching loop: broadcast storm, MAC flapping, whole VLAN down |
| Connection timed out after many seconds | Silent drop: firewall, return path or MTU | Connection refused within milliseconds, which proves the path works |
| Small pings work, while large transfers or Transport Layer Security (TLS) handshakes hang over a tunnel | Path MTU black hole | Bandwidth congestion |
| BGP neighbor stuck in Active | TCP session not forming: address, TCP 179, route to the peer, session password | Established with zero prefixes, which usually means filters or policy, though an MTU black hole can also stop UPDATE messages |
| Session comes up, then hold timer expired, repeating | BGP flap: lost keepalives or MTU | Wrong AS number, which stops the session before Established |
| IKE SA up, no IPsec SA | Phase 2 mismatch: traffic selectors or PFS | Pre-shared key mismatch, which stops phase 1 |
| Tunnel up, encrypt counter rising, decrypt counter at zero | Return route or far-side filter | A negotiation failure |
| CRC errors and link flaps with no configuration change | Physical layer disruption | Duplex mismatch, which also adds late collisions on the half-duplex end |
| Late collisions on one end, CRC errors and runts on the other | Duplex mismatch (port misconfiguration) | A bad cable |
| One VLAN fails across a trunk while others work | Trunk allowed list or native VLAN | Wrong access VLAN on a single port |
| Everything behind one device or circuit fails together | Single point of failure | Intermittent connectivity |
Common misconceptions
- "Asymmetric routing is always a misconfiguration." Routing chooses each direction by destination, so asymmetry is routine on the internet. It breaks things only where a stateful device such as a firewall, NAT, an IPS or strict uRPF sees one half of a flow.
- "If I cannot ping the VPN gateway, the tunnel is down." Some cloud VPN gateways do not answer ICMP on their own address. Read the IKE and IPsec SA state, and test with traffic through the tunnel instead.
- "A BGP neighbor in Active state is working." Active means the router is trying to open the TCP session and failing. Only Established means the session is up.
- "A link that shows up has no physical problem." Links with rising CRC counts, low receive power and frequent resets still show up. The counters, not the link light, show the fault.
- "Timed out and refused mean the same thing." A refusal is a reply and proves the path works. A timeout is silence and could come from a drop anywhere, in either direction.
- "A second circuit or tunnel removes the single point of failure." It removes it only if the second path shares no conduit, device or power, and only if someone notices when it fails.
The short version
- A refused connection proves the path works; a timeout means a silent drop somewhere, forward or back. Milliseconds versus tens of seconds tells them apart.
- Over a tunnel, small packets passing while large ones vanish means a path MTU black hole. Test with Don't Fragment pings (a 1,472-byte payload makes a 1,500-byte IPv4 packet), and fix it by permitting ICMP or clamping the TCP MSS.
- Asymmetric routing breaks only stateful devices that see half a flow. Fix it by making the path symmetric at that device or by sharing state between devices.
- Alternating hops in traceroute and ICMP time exceeded mean a routing loop. The 8-bit TTL ends each looping packet; Ethernet has no TTL, so switching loops become broadcast storms instead.
- BGP runs over TCP port 179. Active means TCP is failing. Established with zero prefixes usually means filters or policy, but also check that UPDATE messages can cross the path. Repeated hold-timer expiry after Established suggests lost keepalives or an MTU problem.
- Troubleshoot IPsec in stages: peer reachability (UDP 500, UDP 4500, ESP), IKE SA (key, proposals), IPsec SA (traffic selectors, PFS), traffic (routes, filters), then routing.
- The receiver counts CRC errors, so they point at the inbound physical path; compare the far end's transmit power with this end's receive power. Late collisions on one end with CRC errors and runts on the other mean a duplex mismatch.
- Intermittent faults are solved with timestamped probes and synchronized logs. Timing alone does not confirm a cause; prediction does.
- An outage whose scope matches one component is a single point of failure. Redundant paths that share a conduit, device or power feed, or a standby path nobody monitors, are still SPOFs.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- F. Baker (Editor). (1995). Requirements for IP Version 4 Routers. IETF / RFC Editor. rfc-editor.org
- S. Kent, K. Seo. (2005). Security Architecture for the Internet Protocol. IETF / RFC Editor. rfc-editor.org
- Y. Rekhter, T. Li, S. Hares. (2006). A Border Gateway Protocol 4 (BGP-4). IETF / RFC Editor. rfc-editor.org
- Microsoft Learn. (n.d.). Troubleshooting: Azure Site-to-Site VPN disconnects intermittently. docs.microsoft.com
- Amazon Web Services. (n.d.). Reachability Analyzer explanation codes. docs.aws.amazon.com
- Amazon Web Services. (n.d.). Troubleshoot AWS Site-to-Site VPN connectivity when using Border Gateway Protocol. docs.aws.amazon.com
- Microsoft Learn. (n.d.). Troubleshooting: An Azure site-to-site VPN connection can't connect and stops working. learn.microsoft.com
- Microsoft Learn. (n.d.). Troubleshoot VPN Gateway. learn.microsoft.com
- Key terms
- Asymmetric routing
- A condition in which the forward and return packets of one conversation take different paths. It is normal in IP networks, and it becomes a fault only where a stateful device such as a firewall or a network address translation (NAT) device sees one direction.
- Routing loop
- A fault in which routers forward packets for a destination back and forth among themselves. Each packet circles until its Time to Live (TTL) reaches zero, and traceroute shows repeating hops.
- Time to Live (TTL)
- An 8-bit field in the IPv4 header that every router lowers by at least one. A packet whose TTL reaches zero is discarded, which limits how long a looping packet can survive.
- BGP Active state
- A Border Gateway Protocol neighbor state meaning the router is trying, and failing, to open the Transmission Control Protocol (TCP) session to its peer. It is not a working session; only Established is.
- IKE security association
- The phase 1 agreement between two Internet Protocol Security (IPsec) peers, built with Internet Key Exchange. It protects the exchange of keys used to create the IPsec security association that carries traffic.
- Traffic selectors
- The local and remote address ranges that an Internet Protocol Security (IPsec) security association protects. If the two peers' definitions differ, phase 2 fails even though phase 1 succeeds.
- Path MTU black hole
- A fault in which packets larger than a link's maximum transmission unit (MTU) are dropped, and the Internet Control Message Protocol (ICMP) messages that would tell the sender to shrink them are filtered. Small packets pass while large transfers hang.
- Duplex mismatch
- A switch-port misconfiguration in which one end runs full duplex and the other half duplex, usually because one end is forced and the other auto-negotiates. It shows as late collisions on one side and cyclic redundancy check (CRC) errors and runts on the other.
- Single point of failure
- Any component, such as a device, circuit, conduit or power feed, whose failure alone stops a service. An outage whose scope matches exactly one shared component reveals it.
Troubleshooting Network Performance
- Diagnose latency, packet loss and hairpinning from ping, traceroute and interface counters, and tell delay caused by distance from delay caused by queuing.
- Find and fix MTU faults, including Path MTU Discovery black holes, misconfigured jumbo frames and harmful fragmentation, by calculating path MTU and TCP MSS from test results.
- Locate the source of a broadcast storm, and recognize resource exhaustion from its fingerprint: new connections fail while existing ones keep working.
- Tell overutilization, bottlenecks and throttling apart from measurements, and resolve network scanning issues together with the scan's owner.
A week of slow tickets at a fictional clinic group
At 08:40 on a Monday, ticket 4471 reached the network team at Larkspur Health, a fictional clinic group that serves as the case for this lesson. It read: "The scheduling app takes four seconds to open a patient record at the Eastgate clinic. It used to be instant." Larkspur runs a head office with a small data center, twelve branch clinics joined by a Software-defined wide area network (SD-WAN), a storage network for its virtual machines (VMs), and workloads in two public clouds. Over five days the team works through seven complaints. Each one is a different item from the exam objective, and almost every one arrives in the same words: the network is slow.
Exam objectives: CompTIA CloudNetX CNX-001 objective 4.5, "Given a scenario, troubleshoot network performance issues."[1] The objective lists latency issues, packet loss, maximum transmission unit (MTU) issues including misconfigured jumbo frames and fragmentation, hairpinning, broadcast storms, resource exhaustion, bandwidth issues (overutilization, bottleneck and throttling) and network scanning issues.
"Slow" describes a feeling. It does not name a fault. The first move on every ticket is to turn it into numbers for one specific flow: from where, to where, how much delay, how much loss, how much throughput, and what normal looked like last week. The troubleshooting method from Lesson 22 still frames the work. This lesson adds fingerprints, so that a measurement points to one cause instead of ten. Four quantities do most of the work: latency (how long a packet takes to arrive), jitter (how much that time varies), packet loss (how many packets never arrive) and throughput (how much data per second actually gets through).
Monday: where Eastgate's four seconds came from
Latency is the time data takes to travel between two points. Ping and traceroute report round-trip time (RTT): the time out and back. Every millisecond of it comes from one of four places, and each place has a different cure.
| Component | Where it comes from | Typical size | What reduces it |
|---|---|---|---|
| Propagation delay | The signal crossing the distance; light in optical fiber covers roughly 200 km per millisecond | About 5 microseconds per km, so about 1 ms per 200 km one way | Only a shorter physical path |
| Serialization delay | Clocking a frame's bits onto the link: frame size in bits divided by the link rate | A 1,500-byte frame (12,000 bits) takes 12 microseconds at 1 Gbps and 1.2 ms at 10 Mbps | A faster link |
| Queuing delay | Waiting in a buffer behind other packets when an interface is busy | Near zero on an idle link; tens to hundreds of ms on a congested one | Less load, more capacity, or Quality of Service (QoS) priority for sensitive traffic |
| Processing delay | Forwarding lookups, firewall and intrusion prevention inspection, encryption, network address translation (NAT) | Microseconds in hardware; milliseconds in software or deep inspection | Faster devices, fewer inspection points, hardware offload |
Propagation sets the floor, so it is the first number to estimate. The cloud region that hosts the scheduling app is about 400 km from Eastgate by fiber. At 5 microseconds per kilometer that is 2 ms each way, or 4 ms round trip. Add a few milliseconds for processing on a lightly loaded path, and a healthy RTT should be under about 10 ms. The engineer on the ticket, whom we will call Dana, measured from an Eastgate workstation (fictional output):
$ ping -c 4 app.example.com
PING app.example.com (203.0.113.40) 56(84) bytes of data.
64 bytes from 203.0.113.40: icmp_seq=1 ttl=52 time=44.1 ms
64 bytes from 203.0.113.40: icmp_seq=2 ttl=52 time=47.2 ms
64 bytes from 203.0.113.40: icmp_seq=3 ttl=52 time=45.9 ms
64 bytes from 203.0.113.40: icmp_seq=4 ttl=52 time=49.0 ms
--- app.example.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 44.1/46.6/49.0/1.8 ms
An average of 46.6 ms is more than four times what the distance explains. Before chasing it, Dana asked a second question: why would 46 ms make a record take four seconds? The application team's trace answered it. To open one record, the client makes about 80 requests in sequence, and each waits for the previous reply. Sequential round trips multiply: 80 × 46.6 ms = 3.7 s, which is the "four seconds" the clinic reported. At a healthy 9 ms, the same 80 round trips take 0.72 s.
Worth holding on to: for a chatty application, the delay a user sees is roughly the number of sequential round trips times the RTT. A faster circuit does not help, because none of those four seconds is spent waiting for bandwidth.
Two more details matter in latency work. The first is jitter. The mdev value in the ping summary measures how much the samples vary. A steady 46 ms points to distance or a detour. A reading that swings between 20 and 200 ms points to queuing, because queues fill and drain. Voice and video suffer more from jitter than from a high average. The second detail is direction. An RTT adds two one-way delays, and they may be very different. The Internet Engineering Task Force (IETF) one-way loss metric, Request for Comments (RFC) 7680, notes that troubleshooting is easier if the congested direction of a Transmission Control Protocol (TCP) transfer can be identified.[2] When an RTT looks wrong, one-way measurements, or tests run from both ends, show which direction holds the extra time.
To find where the extra time was added, Dana ran a traceroute (fictional output):
$ traceroute -n app.example.com
1 192.0.2.1 1.2 ms 1.1 ms 1.3 ms
2 198.51.100.1 19.4 ms 19.8 ms 19.2 ms
3 198.51.100.9 21.0 ms 38.7 ms 24.5 ms
4 203.0.113.1 40.2 ms 44.9 ms 41.7 ms
5 203.0.113.40 45.8 ms 46.1 ms 47.0 ms
Hop 1 is Eastgate's own edge router. Hop 2 is the SD-WAN hub at head office, which is 900 km from Eastgate. Hop 3 is head office's internet firewall, and hop 4 is the cloud provider's edge, about 1,100 km beyond head office. Eastgate's traffic to a region only 400 km away was first travelling 900 km in the wrong direction. The total route of 2,000 km one way costs about 20 ms of round-trip propagation on its own, so the topology alone proves the detour.
The times at hop 3 vary more than the others: 21.0, 38.7 and 24.5 ms from the same device. On its own that proves little. A router can be slow to answer probes addressed to itself while it forwards other traffic quickly, and hops 4 and 5 do not show the same spread. Treat it as a hint that head office may have a queue, then check that hint against the device's own counters, which the packet loss section below does. The detour, meanwhile, has a name.
Hairpinning: traffic that goes the long way round
Hairpinning means traffic travels to a device or site and then turns back toward a destination it could have reached more directly, like a hairpin bend in a mountain road. An architect meets the word in three situations.
| Kind of hairpin | What happens | Performance cost | Fix when the detour is unwanted |
|---|---|---|---|
| Backhaul hairpin (also called tromboning) | Branch or remote-access VPN traffic bound for the internet or a cloud goes to a central site first, then out | Added distance; the central internet link carries the branch's load; the central firewall can become the bottleneck | Local internet breakout on the SD-WAN for trusted cloud applications, inspected by a nearby Secure Service Edge (SSE) point of presence; split tunneling for VPN users |
| NAT hairpin (also NAT loopback or NAT reflection) | An inside client reaches an inside server by its public address, so the firewall receives the packet on its inside interface, translates it, and sends it back out the same interface | Extra firewall load. If the firewall translates only the destination, the server replies straight to the client, which drops a reply from an address it never contacted | Split-horizon Domain Name System (DNS) that gives inside clients the server's private address |
| Cloud hairpin | Traffic between two cloud networks, or from a cloud subnet to the internet, is routed through a hub firewall or back to the on-premises data center | Added latency, data-transfer charges, and the throughput limits of the appliance in the middle | Direct peering or a cloud-native gateway, unless inspection is the reason for the route |
Not every hairpin is a mistake. Many designs send spoke-to-spoke traffic through a hub firewall on purpose, because inspection is the requirement. The troubleshooting question is whether the detour is intended, and whether its cost suits the application.
A cloud routing rule shows how an unintended hairpin can appear. Azure's NAT gateway troubleshooting guide states that any 0.0.0.0/0 route that force-tunnels traffic to a network virtual appliance (NVA), ExpressRoute or a VPN gateway takes priority over the NAT gateway.[3] The guide makes that point about lost outbound connectivity, not about hairpins. The hairpin follows from the rule: one forced-tunnel default route, added for inspection, can send every outbound packet from a cloud subnet across the wide area network (WAN) to the data center and back, without anyone having planned that path.
Larkspur's hairpin was a leftover. Years earlier, the SD-WAN policy sent all branch internet traffic to head office, because the scheduling app then ran in the head-office data center. When the app moved to the cloud, nobody revisited the policy.
Worth holding on to: if a traceroute to a nearby destination shows a distant site in the middle of the path, suspect hairpinning. Then ask whether the detour is a security requirement before you remove it.
Packet loss: reading the head-office firewall's counters
The hint at hop 3 still needed checking. Dana pulled the counters on the head-office firewall's internet-facing interface (fictional output in a generic format):
hq-fw1# show interface outside
outside is up, line protocol is up
Speed 1000 Mbps, full-duplex
5 minute input rate 212 Mbps, 31,402 packets/sec
5 minute output rate 941 Mbps, 98,117 packets/sec
0 input errors, 0 CRC, 0 giants, 0 runts
Total output drops: 48,211
Read it in order. An output rate of 941 Mbps on a 1,000 Mbps link is 94 percent utilization averaged over five minutes, so moments inside that window very likely reached 100 percent. Zero input errors and zero CRC (cyclic redundancy check) errors make a receive-side physical fault on this interface unlikely. They say nothing about the transmit direction or the far end: a fault there would show in the neighboring device's input counters. The 48,211 output drops are packets the firewall discarded because its outbound queue was full. This is packet loss caused by congestion, and it confirms what the hop 3 times only hinted at: a queue at head office. Most of that outbound load was branch clinics uploading medical images to a cloud archive, all of it hairpinned through head office. The two problems were feeding each other.
Loss sounds simple: a packet was sent and did not arrive. Measuring it is subtler. RFC 7680 counts a test packet as lost when it does not arrive, and also when it arrives later than a chosen threshold, which the RFC calls Tmax and which anyone reporting loss must state.[2] The RFC also warns that the measuring instrument can run short of resources itself, so a packet the network delivered on time can be dropped by the instrument and counted as lost.[2] In practice, an overloaded laptop running a loss test, or a probe whose timeout is shorter than a satellite link's RTT, can report loss the network never caused.
Once you trust the measurement, the counters tell you which kind of loss you have.
| Cause of loss | Counter or evidence | Pattern |
|---|---|---|
| Congestion | Output drops or queue drops on the egress interface | Rises with utilization; worst at the busy hour; disappears at night |
| Physical-layer fault | Input errors and CRC errors on the receiving interface | Present at any load; confined to one link; points to a cable, optic or dirty fiber |
| Duplex mismatch | Late collisions on the half-duplex end; CRC errors and runts on the full-duplex end | Light traffic looks fine; throughput collapses under load |
| Policing | Drop counters on a policer, or a provider's rate limit | Traffic above a fixed rate disappears; throughput hits a flat ceiling |
| Oversized frames | Giants or oversize counters; large pings fail while small ones succeed | Only big packets are lost, which makes it an MTU problem |
| Device resource exhaustion | No-buffer, overrun or ignored counters; high processor use | Loss tracks the device's load rather than the link's |
Loss hurts the two main kinds of traffic differently. TCP resends what is lost, and it treats loss as a sign of congestion, so it cuts its sending rate each time. A small loss rate on a long path can therefore cut a bulk transfer's throughput sharply while ping still looks healthy. User Datagram Protocol (UDP) media such as voice does not resend anything: a lost packet is a gap in the audio. One trap carries over from Lesson 24. If traceroute shows loss at a middle hop but none at the destination, that router is limiting how fast it answers probes aimed at itself. It is not dropping the traffic it forwards. Loss that begins at one hop and continues at every later hop is real.
Monday's fix dealt with both problems at once. Dana changed the SD-WAN application policy so branches send the scheduling app and the image archive straight to the internet, inspected by the SSE service. Then she verified the result. Eastgate's RTT fell to 9 ms, records opened in under a second, the head-office output rate dropped to about 610 Mbps, and the output-drop counter stopped climbing.
Tuesday: uploads that hang at zero percent
Tuesday's ticket came from the research team. Larkspur had just brought up a site-to-site Internet Protocol Security (IPsec) VPN to a partner laboratory. Users could log in to the partner's portal and browse it, but every file upload sat at 0 percent until it timed out. When small things work and big things hang, suspect an MTU fault first.
The Maximum transmission unit (MTU) is the largest packet, in bytes, that a link can carry in one piece. Standard Ethernet carries 1,500 bytes, which Amazon Web Services (AWS) documentation describes as the largest packet size supported over most of the internet.[4] A path's MTU is the smallest MTU of any link along it, and tunnels make it smaller. An IPsec tunnel wraps every packet in extra headers, so a 1,500-byte packet no longer fits inside a 1,500-byte link.
Hosts learn a path's MTU with Path MTU Discovery (PMTUD), described in RFC 1191 in 1990. A host using PMTUD sets the Don't Fragment (DF) bit on every packet it sends.[5] If a packet is too big for the next link, the router is not allowed to split it, so it drops it. It then sends back an Internet Control Message Protocol (ICMP) message, which tells the sender to use the lowest MTU on the path and resend.[4] Because routes change, a path MTU a host has learned can also go out of date and need rediscovering.
Stated that way, the weak point is clear. PMTUD only works if that ICMP message gets back to the sender. A firewall rule that blocks all ICMP "to be safe" blocks the message as well. The sender keeps sending large packets with DF set, routers keep dropping them, and nothing tells the sender why. Engineers call the result a PMTUD black hole. The TCP handshake succeeds because its packets are small, and small web pages load. The first full-size data packet vanishes, then each retransmission of it vanishes, and the upload hangs.
Dana tested from a Larkspur server toward the partner's file server using ping with DF set. On Linux, ping -M do -s SIZE sets DF and sends an ICMP payload of SIZE bytes. On Windows the equivalent is ping -f -l SIZE. Each ping packet is the payload plus 8 bytes of ICMP header plus 20 bytes of IPv4 header, so a 1,472-byte payload makes a 1,500-byte packet. AWS's own example of this test shows a 1,472-byte payload succeeding on a path whose MTU is 1,500.[6] Dana's results (fictional output):
$ ping -M do -s 1472 -c 2 198.51.100.20
PING 198.51.100.20 (198.51.100.20) 1472(1500) bytes of data.
--- 198.51.100.20 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1001ms
$ ping -M do -s 1400 -c 2 198.51.100.20
PING 198.51.100.20 (198.51.100.20) 1400(1428) bytes of data.
1408 bytes from 198.51.100.20: icmp_seq=1 ttl=58 time=12.3 ms
1408 bytes from 198.51.100.20: icmp_seq=2 ttl=58 time=12.1 ms
--- 198.51.100.20 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
$ ping -M do -s 1410 -c 2 198.51.100.20
2 packets transmitted, 2 received, 0% packet loss
$ ping -M do -s 1411 -c 2 198.51.100.20
2 packets transmitted, 0 received, 100% packet loss
- Find the largest payload that passes. 1,410 passes and 1,411 fails, so the boundary is exact.
- Convert it to a packet size. 1,410 + 8 + 20 = 1,438 bytes. The path MTU through the tunnel is 1,438.
- Work out what TCP should send. A TCP packet carries 20 bytes of IP header and 20 bytes of TCP header, so its data can be at most the MTU minus 40. RFC 1191 uses the same subtraction, writing the segment size as PMTU - 40.[5] The maximum segment size (MSS) is therefore 1,438 - 40 = 1,398 bytes.
- Notice what did not happen. The failing pings got no reply at all. On a working path, the router at the tight spot would have answered with an ICMP message saying fragmentation was needed. Silence means something between the two sites is dropping that message.
Now change one input. Suppose the 1,472-byte test had returned this line instead:
From 192.0.2.1 icmp_seq=1 Frag needed and DF set (mtu = 1438)
The ping still failed, but the conclusion is the opposite. The tunnel router is reporting the correct MTU, PMTUD works, and TCP would adjust by itself. If uploads still hung, MTU would no longer be the leading theory, and Dana would look at firewall policy or the application instead.
Dana's fix had two parts. Larkspur's firewall had a rule dropping all inbound ICMP. She replaced it with a rule that permits ICMP "destination unreachable, fragmentation needed" (type 3, code 4) on the tunnel path, together with its IPv6 equivalent, Packet Too Big. She also set the tunnel interface MTU to 1,438 and clamped the TCP MSS on the tunnel to 1,398. With the clamp, TCP connections start at the right size even if some other device on the path filters ICMP. Some people suggest clearing the DF bit instead. That swaps a black hole for fragmentation, which causes its own problems, as the section after next shows.
Worth holding on to: when small pings succeed and large transfers hang, suspect MTU until you have ruled it out. A DF-set ping that fails silently points to blocked ICMP and a PMTUD black hole. A DF-set ping that fails with a fragmentation-needed reply shows PMTUD working.
Tuesday afternoon: misconfigured jumbo frames on the storage network
A Jumbo frame is an Ethernet frame that carries more than the standard 1,500-byte payload, commonly 9,000 bytes. Bigger frames mean fewer frames, fewer headers and less per-packet processing for the same data. That suits storage traffic, such as Internet Small Computer Systems Interface (iSCSI) and Network File System (NFS), and it suits VM live migration. Cloud providers use jumbo frames inside their networks too: AWS states that all current-generation instance types in its Elastic Compute Cloud (EC2) support jumbo frames with a 9,001-byte MTU.[6]
On Tuesday afternoon, a switch in Larkspur's storage rack was replaced. Afterwards, VM migrations between two hypervisor hosts failed partway through and some datastore reads stalled, yet the hosts still pinged each other. Dana's checks (fictional output):
hv-host-07$ ip link show ens2f0
4: ens2f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP mode DEFAULT qlen 1000
hv-host-07$ ping -M do -s 8972 -c 2 192.0.2.57
2 packets transmitted, 0 received, 100% packet loss
hv-host-07$ ping -M do -s 1472 -c 2 192.0.2.57
2 packets transmitted, 2 received, 0% packet loss
stor-sw2# show interface Ethernet1/12 counters errors
Port Giants CRC Runts
Eth1/12 18,342 0 0
The test payload of 8,972 is 9,000 minus the 28 bytes of ICMP and IP headers, so it tests a full 9,000-byte packet. The host's interface says 9,000. The replacement switch, however, still had its default port MTU of 1,500, and its giants counter records each oversized frame it refused. The jumbo frame setting was misconfigured on one device in the path.
Why didn't PMTUD rescue this the way it could have rescued Tuesday morning's tunnel? A switch forwards at layer 2. It does not fragment, and it does not send ICMP messages. It simply discards the oversized frame and adds one to a counter. Both hosts believe the local network carries 9,000 bytes, because their own interfaces say so, and nothing on the path tells them otherwise. The fix is to set the same MTU on every host interface, physical switch port and virtual switch in the virtual local area network (VLAN), or to return all of them to 1,500. A switch port set larger than the hosts, such as 9,216, does no harm. A port set smaller than any host is a fault.
The cloud adds a second version of the mistake, because jumbo frames do not cross every boundary. AWS's internet gateway in a Virtual Private Cloud (VPC) forwards packets only up to 1,500 bytes.[4] The same documentation lists a 1,500-byte limit for traffic over VPN connections, and for traffic between AWS Regions unless a transit gateway is used.[4] Other paths do keep jumbo frames: AWS supports them for traffic between VPCs and on-premises networks over Direct Connect.[4] An instance set to 9,001 that sends through one of the 1,500-byte boundaries depends on PMTUD to work. AWS therefore suggests setting the MTU per route, or using separate network interfaces for internal and external traffic.
Fragmentation: what splitting packets costs
IP fragmentation is what happens when an IPv4 packet without DF set meets a link with a smaller MTU. The router splits the packet into fragments, and the destination puts them back together. AWS states the rule plainly: packets over the MTU limit are fragmented, or dropped if the Don't Fragment flag is set.[4] Fragmentation keeps data moving, but at a price.
- Loss multiplies. If any one fragment is lost, the whole original packet is useless and must be sent again. With 1 percent fragment loss and every packet split in two, about 2 percent of packets fail (1 - 0.99 × 0.99 = 0.0199).
- Work lands on busy devices. The receiver, and any firewall that must inspect the whole packet, holds fragments in memory until the set is complete. That costs processor time and memory, and it can turn into a resource exhaustion problem.
- Middleboxes lose sight of ports. Only the first fragment carries the TCP or UDP header. Later fragments carry no port numbers, so stateless filters and load balancers may mishandle them, and many security devices drop fragments by policy.
- Some services refuse fragments outright. Azure's NAT gateway does not support IP fragmentation, and its troubleshooting guide says connections that use fragmented packets fail.[3]
IPv6 takes the middle option away. IPv6 routers never fragment; only the sending host can. A path that blocks ICMPv6 Packet Too Big messages is therefore a black hole for every large packet, which is why blocking those messages is never a safe IPv6 hardening step. To confirm fragmentation, look in a packet capture for IPv4 packets with the more-fragments flag set or a non-zero fragment offset, or check the reassembly counts in a host's protocol statistics, such as the output of netstat -s.
Worth holding on to: the cure for MTU trouble is to send packets at the right size from the source: correct interface MTUs, working PMTUD, and MSS clamping on tunnels. Letting the network cut packets up is not the cure.
Wednesday: the second floor goes dark
At 10:15 on Wednesday, every workstation and desk phone on head office's second floor lost service at the same moment. Secure Shell (SSH) sessions to the floor's access switches slowed to a crawl and then timed out. This was a Broadcast storm: a flood of broadcast frames, and often multicast frames, big enough to saturate links and switch processors. The usual cause is a layer 2 loop. IP packets carry a time-to-live counter, but Ethernet frames carry none, so a broadcast frame caught in a loop is never thrown away. Each switch floods it out every port in the VLAN, the loop brings copies back, and every lap adds more copies. Within seconds the links are full of the same few frames. Media Access Control (MAC) address tables flap as one source address appears on different ports. Broadcasts such as Address Resolution Protocol (ARP) requests, which a switch's processor must also handle, swamp the control plane.
The Spanning Tree Protocol (STP) exists to prevent exactly this. Switches exchange Bridge Protocol Data Units (BPDUs) and block redundant ports. STP is not a guarantee, though. Cisco's troubleshooting guide for Catalyst 9000 switches says there are many scenarios in which spanning tree's loop prevention does not prevent a broadcast storm.[7] Its examples include these:
- A hub or similar device connected to the network unexpectedly can cause a broadcast storm.[7]
- Physical faults can create unidirectional links, which stop switches from reliably exchanging BPDUs. A port that should block can then start forwarding.[7]
- A loop's own load makes things worse. Interfaces on affected switches move to forwarding when the switch's congested control plane cannot process the BPDUs arriving on them.[7]
Cisco recommends a plain method over clever ones. On an affected switch, clear the interface counters, then look for interfaces with abnormally high input rates. For each one, consider the average packet size and the share of broadcast and multicast input: a small average size means a large volume of small packets, such as ARP or Dynamic Host Configuration Protocol (DHCP) broadcasts.[7] Follow the affected interfaces from switch to switch toward the source. Here is what Dana's colleague saw on access switch acc-2a, reached through its console port because SSH was unusable (fictional output, abbreviated):
acc-2a# show interfaces | include line protocol|Description|input rate|broadcasts
GigabitEthernet1/0/1 is up, line protocol is up (connected)
Description: uplink to dist-1
30 second input rate 402000000 bits/sec, 50200 packets/sec
Received 15220 broadcasts (9810 multicasts)
GigabitEthernet1/0/14 is up, line protocol is up (connected)
Description: exam room 2.14
30 second input rate 812000000 bits/sec, 1201000 packets/sec
Received 35874022 broadcasts (1204411 multicasts)
GigabitEthernet1/0/22 is up, line protocol is up (connected)
Description: nurse station
30 second input rate 2100000 bits/sec, 420 packets/sec
Received 88 broadcasts (61 multicasts)
Divide bits per second by packets per second to get the average packet size. The uplink carries 402,000,000 / 50,200 = 8,008 bits, about 1,000 bytes per packet, which looks like normal data traffic. Port 1/0/14 carries 812,000,000 / 1,201,000 = 676 bits, about 85 bytes per packet, at more than a million packets per second, and almost all of it is broadcast. The nurse-station port is quiet. Port 1/0/14 leads toward the loop. It fed a small unmanaged switch in exam room 2.14, where both ends of a loose patch cable had been plugged into the same desktop switch (a fictional but typical cause). The access port had no storm control configured, and no BPDU guard either.
The fastest cure is to shut the port. Once the loop is physically broken, the storm begins to subside straight away.[7] The guide also warns against a common habit: chasing STP topology change notifications (TCNs). Every switch hit by the flood can generate them, so the TCNs are often false positives that lead the engineer down the wrong path.[7] They point to victims, not to the source.
Prevention is a set of layered controls, and the exam room loop shows why each layer matters:
- Storm control drops broadcast or multicast traffic above a set threshold on a port, which keeps a loop from swamping the whole VLAN. It watches the traffic itself and does not depend on BPDUs, so it is the dependable catch for a loop on an unmanaged switch like the one in exam room 2.14.
- BPDU guard on access ports shuts a port that receives a BPDU, because a user's device should never send one. It helps when the looped device sends BPDUs or reflects the access switch's own BPDUs back. An unmanaged switch does not run STP itself, and whether it passes BPDUs through varies by product, so BPDU guard may never trigger on this kind of loop.
- Loop guard and unidirectional link detection protect against links that carry traffic in only one direction.
- Disabling unused ports, and network access control, limit what can be plugged in at all.
- Out-of-band management (Lesson 19) keeps a way in when the production network is unusable.
Worth holding on to: a whole segment failing at once, with very high input rates of small broadcast frames, means a layer 2 loop. Follow input rates to the source, shut the port, then configure storm control, backed by BPDU guard, so it cannot happen the same way again.
Thursday: claims that fail only at two o'clock
Larkspur's claims service runs on worker VMs in Azure. Each afternoon around 14:00, about 3 percent of the workers' calls to an insurance clearinghouse's application programming interface (API) failed with connection errors. Morning calls worked, and so did the workers' calls to every other service. Everything about that pattern suggested that something countable had run out, not that a pipe was full.
Resource exhaustion means a finite resource in a device or service has been used up: processor time, memory, buffers, table entries, ports or addresses. Its fingerprint differs from a full link. When bandwidth runs short, everything slows together. When a table fills, existing sessions usually keep working while new ones fail, often abruptly, and often only for the traffic that needs the exhausted resource.
| Resource | What runs out | Fingerprint | Where to look |
|---|---|---|---|
| Source network address translation (SNAT) ports | Public address and port combinations for outbound connections | New outbound connections to one busy destination fail | NAT gateway or firewall NAT metrics |
| Connection state or flow table | Per-connection entries in a firewall, load balancer or virtual network interface | New sessions refused; existing sessions continue | Session or flow counts against the platform limit |
| Processor and control plane | Central processing unit (CPU) time on a router, switch or firewall | Routing adjacencies drop, management is sluggish, latency spikes for traffic the CPU handles | CPU history and control-plane drop counters |
| Buffers and memory | Packet buffers and system memory | No-buffer and overrun drops, process crashes | Interface and memory statistics |
| DHCP scope | Available address leases | New devices fall back to self-assigned 169.254.x.x addresses | DHCP server scope use (Lesson 25) |
| MAC and ARP tables | Entries in a switch's MAC table or a router's neighbor cache | Unknown-unicast flooding and intermittent reachability | Table counts against capacity |
A NAT gateway translates many private source addresses to one public address. Every connection to a given destination address and port needs its own source port on that public address, and those ports are finite. Azure's guide gives the test: a failed-connection count greater than zero indicates SNAT port exhaustion or that the gateway's connection limit has been reached.[3] It also gives the capacity: 50,000 simultaneous connections per public IP address to a unique destination, and up to 2 million connections in total.[3]
Dana's metrics at 14:05 (fictional values):
| Metric | Value |
|---|---|
| Public IP addresses on the NAT gateway | 1 |
| Destination | 203.0.113.80, TCP port 443 |
| Peak SNAT connections to that destination | 61,700 |
| Failed connections, 14:00-14:30 | 1,940 |
| TCP idle timeout | 4 minutes (default) |
The reasoning takes three steps. First, 61,700 connections to one destination exceed the 50,000 that one public address can hold to that destination. Second, the failed-connection count is greater than zero, which confirms exhaustion. Third, the cause of the high count: the workers opened a new connection for every claim, and each idle connection held its port until the idle timer expired.
There were three fixes. Connection pooling reuses a fixed set of connections, which Azure notes keeps the number of SNAT ports in use bounded and predictable.[3] A second public address raises capacity to that destination to 100,000. The idle timeout should stay at its default, because a timer set higher than the 4-minute default holds flows longer and adds pressure on the port inventory.[3]
Now change one input. Keep the 61,700 connections, but spread them across 40 destinations. That is about 1,543 per destination, far below 50,000 each and far below the 2 million total, so nothing runs out. The same total causes failures only when the connections pile up on one destination. Exhaustion depends on how the resource is divided, not only on how much is used.
Cloud VMs have a similar limit of their own. Azure tracks connections as flows, publishes flow limits by VM size, and warns that above the recommended limit, connections may be dropped or perform poorly.[8] Firewall and proxy VMs reach these limits first, because they handle flows for many clients.
Worth holding on to: when new connections fail while existing ones survive, especially at peak and toward one destination, look for a counted resource that has run out (ports, sessions, flows, leases) before you look at bandwidth.
Friday: a replication job that misses its window
On Friday morning, the database team reported that nightly replication from a cloud database VM to head office's disaster recovery site had overrun its 3-hour window two nights in a row. Their first request was predictable: a bigger interconnect circuit.
Bandwidth is the capacity of a link, the rate it can carry in bits per second. Throughput is what a flow actually achieves. The objective names three different ways throughput can fall short. Each has a different fix, so naming the right one matters.
| Term | What it means | How it looks on a graph | Typical fix |
|---|---|---|---|
| Overutilization | Demand at or near a link's capacity for long periods | High utilization, output drops climbing, latency and jitter rising with load | QoS, moving or rescheduling traffic, more capacity |
| Bottleneck | One element on the path has less capacity than the rest, so the whole flow runs at its rate | The narrow element is at its limit while the links on either side have headroom | Find the narrowest element, then widen or bypass it |
| Throttling | A deliberate limit set by a provider, a policy or a service | Throughput or request rate flat at a round number, however idle the links are | Accept it, buy a higher tier, or design around it |
The evidence: 2 TB to copy each night. The 10 Gbps interconnect sat at about 10 percent utilization during the job. The job's throughput graph was a flat line at exactly 1,000 Mbps. A month earlier, a cost review had resized the VM from a size with 2,000 Mbps of expected network performance to a cheaper size with 1,000 Mbps (fictional sizes). Azure's documentation explains why that matters. A VM's bandwidth allowance is measured on egress (outbound) traffic from the VM.[8] The allowance applies to the VM as a whole, however many network interfaces it has.[8]
Work the arithmetic. 2 TB is 2 × 1012 bytes, or 16 × 1012 bits, which is 16,000,000 megabits. At 1,000 Mbps the copy takes 16,000 seconds, or 4 hours 27 minutes, so it misses the window. At the old 2,000 Mbps it took 8,000 seconds, or 2 hours 13 minutes, and fit. The flat line at a round number is throttling: a provider cap that has made the VM the bottleneck. The interconnect was never overutilized, so a bigger circuit would change nothing. Neither would a second network interface. The fixes are to return to the larger VM size, to compress or deduplicate the data, or to start the job earlier.
A second bottleneck appeared the same day, and this one had nothing to do with any link's capacity. An archive copy to a distant region with an 80 ms RTT ran at about 6.5 Mbps over paths that were gigabit everywhere. The sending appliance had TCP window scaling turned off, so its window was capped at 65,535 bytes. A TCP sender can have at most one window of unacknowledged data in flight per round trip, so throughput can be no more than the window divided by the RTT. That limit is the Bandwidth-delay product at work. Here, 65,535 bytes × 8 = 524,280 bits, and 524,280 / 0.080 s = 6.55 Mbps. To fill 1 Gbps at 80 ms, the window would need to be 1,000,000,000 × 0.080 / 8 = 10,000,000 bytes, about 10 MB. Enabling window scaling, or running parallel streams, widens this bottleneck. A bigger circuit cannot.
Overutilization was Monday's story: a link averaging 94 percent, with drops at the busy hour. One caution about measuring it: a five-minute average can hide microbursts, short spikes to 100 percent lasting milliseconds that overflow queues while the average looks comfortable. Rising output-drop counters, or graphs with shorter intervals, show what the average hides.
Throttling takes three common forms. The first is a provider cap, like the VM limit above. The second is traffic policy: Traffic shaping holds traffic above a rate in a buffer and sends it later, which smooths the flow but adds delay, while policing drops traffic above the rate, which adds loss and makes TCP throughput saw up and down. The third is API rate limiting. Azure's compute API throttles requests that exceed its limits, and callers receive a Hypertext Transfer Protocol (HTTP) 429 error.[9] It uses a Token bucket: each request uses up one token, and when the tokens run out, further requests are throttled.[9] For VM updates, Azure's example policy refills four tokens per minute into a bucket that holds 12.[9]
Apply that to Larkspur's automation from Lesson 21. On Friday, a script re-tagged one VM 20 times in a single minute. The first 12 requests used the full bucket and succeeded, and the other 8 returned HTTP 429. In the next minute, four new tokens allowed four more requests through. No packet was lost and no link was busy, so this was not a network fault. The fix is in the script: batch the changes, back off and retry with growing delays, and honor any Retry-After header the response carries.
Worth holding on to: a link that is full is overutilization. One element narrower than the rest is a bottleneck. A flat line at a round number while the links sit idle is throttling. Only the first is fixed by adding capacity to that link.
Friday night: when a vulnerability scan slows the network
At 22:00 on Friday, the security team's scheduled Vulnerability scanner began its weekly sweep of every internal subnet. By Saturday morning the network team had three tickets. The internal firewall's session table had peaked at 97 percent of capacity. Two label printers in the pharmacy had rebooted mid-scan. And the intrusion prevention system (IPS) had blocked the scanner's address halfway through, leaving the security team with an incomplete report. Network scanning issues come in both directions: scans that degrade the network, and networks that defeat the scan.
A scanner probes many addresses and ports quickly. Each probe that passes through a stateful firewall creates a session entry, so a fast scan across firewalled segments can fill the same state table that patient traffic needs. That is Thursday's resource exhaustion pattern, caused by a tool the organization runs on purpose.
| Problem | Why it happens | Mitigation |
|---|---|---|
| Firewall session or NAT tables fill during the scan | Every probe creates state; a sweep of large ranges creates many half-open entries | Place a scanner inside each segment instead of scanning through firewalls; lower the scan rate; use shorter timeouts for half-open sessions |
| Fragile devices hang or reboot | Printers, Internet of Things (IoT) devices and operational technology often have small, simple network stacks | Exclude them, or scan them gently in a separate approved window after testing |
| Links, logs and alert queues are swamped | Scan traffic plus the intrusion detection system (IDS) alerts and firewall logs it triggers | Schedule off-peak, limit the rate, and announce the scan to the operations and security teams through change management |
| The IPS blocks or rate-limits the scanner | A scan looks like reconnaissance, because that is what it is | Record the approved scanner and window; tune the IPS to alert on, rather than block, that address during that window, instead of switching inspection off |
| Firewalls and access control lists drop probes, so results are incomplete | Filtered hosts look closed or absent to an outside scanner | Use per-segment scanners and authenticated (credentialed) scans that log in and read configuration rather than probing every port |
| Scans time out over slow or distant links | Probe timeouts shorter than the path's RTT | Run the scanner near its targets; set timeouts to suit the path |
Larkspur agreed three changes with the security team: one scanner per data center zone instead of one central scanner, a lower scan rate, and a list of excluded fragile devices that are scanned separately. One caution applies to all of this. A scan from a host that nobody approved is a security event to investigate (Lesson 10), not a performance ticket to tune away.
Reading a scenario: exam cues
| The question stem says | Point to | Easily confused with |
|---|---|---|
| Steady high RTT, no loss, a distant site or hub in the traceroute | Hairpinning (backhaul) | Overutilization, which makes RTT vary rather than stay steady |
| Inside users reach an inside server by its public name and it fails or is slow | NAT hairpin; fix with split-horizon DNS | DNS outage |
| RTT swings widely, output drops climb at the busy hour, utilization above 90 percent | Overutilization causing queuing delay and congestion loss | Physical fault, which shows CRC errors at any load |
| CRC or input errors on one link regardless of load | Physical-layer packet loss | Congestion |
| Small pings and logins work; large transfers hang after the handshake; new tunnel | MTU issue; a PMTUD black hole if DF pings fail silently | Firewall blocking the application |
| Giants counter rising, storage VLAN, 9,000-byte host MTU | Misconfigured jumbo frames | PMTUD black hole, though no router or ICMP is involved |
| Fragmented packets fail through a NAT service or security device | Fragmentation; fix sizing at the source | SNAT exhaustion |
| Whole segment down at once, very high broadcast input, tiny average packet size | Broadcast storm from a layer 2 loop | STP TCNs, which are a symptom rather than the source |
| New connections fail at peak while existing ones work; failed SNAT connections greater than zero | Resource exhaustion (SNAT ports, sessions, flows) | Bandwidth shortage, which slows everything instead |
| Throughput flat at a round number while links have headroom; HTTP 429 | Throttling | Overutilization |
| One device, VM size or TCP window slower than the rest of the path | Bottleneck | Overutilization of the link |
| Weekly slowdown at the same hour, session table near full, one host probing many ports | Network scanning issue; coordinate with the scan owner | Attack, if the scanner is not approved |
Common misconceptions
- "More bandwidth fixes slowness." Eastgate's four seconds were 80 round trips over a detour, and the far-region archive copy was limited by its TCP window. Neither problem involved a full link, so neither improves with a bigger circuit.
- "If ping shows 0 percent loss and a low RTT, the path is fine." Default pings are small. A PMTUD black hole or a jumbo frame mismatch lets small packets through and drops large ones, so test with DF set at full size.
- "Odd times or loss at a middle traceroute hop show where the fault is." Routers rate-limit replies to probes aimed at themselves. Treat a middle-hop oddity as a hint, and confirm it with that device's counters or with loss that continues to the destination.
- "Jumbo frames always speed things up." They help only when every device in the path uses the same size. One 1,500-byte switch port silently drops them, and some cloud boundaries, such as an AWS internet gateway or VPN connection, cap packets at 1,500 bytes.
- "Spanning tree, with BPDU guard on the access ports, makes broadcast storms impossible." Hubs, unmanaged switches, unidirectional links and overloaded control planes can all leave a loop open, and BPDU guard only fires if a BPDU arrives. Storm control catches the flood itself.
- "Throttling is just another word for congestion." Throttling is a deliberate limit, shown by a flat ceiling while the links sit idle. Congestion is demand exceeding capacity, shown by full links and growing queues.
Where this leaves us
- Propagation in fiber costs about 1 ms per 200 km one way. An RTT far above that floor points to a detour or to queuing, and a steady excess points to the detour.
- For a chatty application, the delay a user sees is about the number of sequential round trips times the RTT, so cutting latency helps where added bandwidth does not.
- Hairpinning sends traffic through a distant site or device before it reaches a nearby destination. Local breakout, split-horizon DNS or direct cloud paths remove it when the detour is not a security requirement.
- Output drops that rise with utilization mean congestion loss. Input and CRC errors at any load mean a physical fault on the receive side. A middle traceroute hop's odd times or loss alone do not prove forwarding trouble.
- Path MTU = largest DF-set ICMP payload + 28 bytes on IPv4, and TCP MSS = path MTU - 40. A DF ping that fails silently means ICMP is blocked and PMTUD has a black hole.
- Switches drop oversized frames and count them as giants without sending ICMP, so a jumbo frame mismatch inside a VLAN has to be fixed by making every device's MTU consistent.
- Fragmentation multiplies loss and burdens middleboxes, some services such as Azure NAT gateway reject fragments, and IPv6 routers never fragment at all.
- Find a broadcast storm by clearing counters and following high input rates of small broadcast frames, not TCNs. Shut the looped port, then add storm control, which catches loops through unmanaged switches that BPDU guard can miss.
- New connections failing while old ones survive points to resource exhaustion. One public IP on an Azure NAT gateway supports 50,000 connections to a single destination, and a flat line at a round number while the links are idle points to throttling.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- G. Almes, S. Kalidindi, M. Zekauskas, A. Morton. (2016). A One-Way Loss Metric for IP Performance Metrics (IPPM) (RFC 7680). IETF / RFC Editor. rfc-editor.org
- Microsoft Learn. (n.d.). Troubleshoot Azure NAT Gateway connectivity. learn.microsoft.com
- Amazon Web Services. (n.d.). Network maximum transmission unit (MTU) for your EC2 instance. docs.aws.amazon.com
- J. Mogul, S. Deering. (1990). Path MTU Discovery (RFC 1191). IETF / RFC Editor. rfc-editor.org
- Amazon Web Services. (n.d.). Set the MTU for your Amazon EC2 instances. docs.aws.amazon.com
- Cisco. (n.d.). Troubleshoot Layer 2 Loops on Catalyst 9000 Series Switches. cisco.com
- Microsoft Learn. (n.d.). Virtual machine network bandwidth. learn.microsoft.com
- Microsoft Learn. (n.d.). Compute throttling limits. learn.microsoft.com
- Key terms
- Latency
- The time data takes to travel between two points, usually measured as round-trip time. It is made up of propagation, serialization, queuing and processing delay.
- Hairpinning
- Routing traffic to a device or site and then back toward a destination it could have reached more directly, for example branch internet traffic backhauled through head office, or a firewall translating and returning traffic on the interface it arrived on (NAT loopback).
- Path MTU Discovery (PMTUD)
- A technique in which a host sends packets with the Don't Fragment bit set and lowers its packet size when a router returns an ICMP message saying a packet was too big for the next link.
- PMTUD black hole
- A path on which the ICMP messages that Path MTU Discovery relies on are blocked, so large packets with Don't Fragment set are dropped without the sender learning why. Small traffic works while large transfers hang.
- Jumbo frame
- An Ethernet frame carrying more than the standard 1,500-byte payload, commonly 9,000 bytes. It works only when every interface and switch port on the layer 2 path accepts the larger size.
- IP fragmentation
- Splitting an IPv4 packet into smaller pieces so it can cross a link with a smaller MTU. It increases the effect of loss, burdens firewalls and receivers, and is rejected by some network services.
- Broadcast storm
- A flood of broadcast and multicast frames, usually caused by a layer 2 loop, that saturates links and switch processors. It happens because Ethernet frames have no time-to-live counter.
- SNAT port exhaustion
- A resource exhaustion condition in which a NAT device runs out of source ports on a public address for connections to a particular destination, so new outbound connections fail while existing ones continue.
- Bottleneck
- The element on a path with the least capacity, such as a link, an appliance, a VM bandwidth cap or a TCP window. It limits the throughput of the whole flow even when other links have headroom.
- Throttling
- A deliberate limit on traffic or request rate set by a provider, policy or service, such as a per-VM egress cap, a traffic shaper or policer, or an API rate limit that returns HTTP 429.
Troubleshooting Wi-Fi Performance
- Diagnose Wi-Fi faults from RSSI, noise, SNR and retry data measured in both directions, and explain why raising access point power often makes them worse.
- Distinguish signal interference, signal loss, signal degradation, low signal strength, channel overlap and incorrect channel width, and choose the fix each one needs.
- Explain how client roaming decisions, 802.11k and 802.11r, band steering, disassociation causes and capability mismatches produce sticky clients, slow roams, dropped links and incompatibility, and resolve each one.
Ticket 4471: full bars, frozen calls
Ticket 4471 was opened at 08:52 on a Tuesday at a fictional architecture firm. It reads: "Video calls freeze in the east studio, but my laptop shows full Wi-Fi bars." The help desk tried the obvious repair. They signed in to the wireless controller, found that the studio's access point (AP) was running at 14 dBm, and raised it to its maximum, 23 dBm. By Thursday there were six tickets instead of one. Four of them came from people in the corridor outside the studio who had never complained before.
That repair is the plausible wrong answer this lesson takes apart. It rests on three beliefs. The first is that the bars on a laptop describe the whole radio link. The second is that more transmit power always makes a link better. The third is that weak signal is the main thing that hurts Wi-Fi. Each belief fails for a reason you can measure. Each failure also matches a named item in the exam objective, so by the time ticket 4471 is closed you will have worked through all of them.
Exam objectives: CompTIA CloudNetX CNX-001 objective 4.6, "Given a scenario, troubleshoot Wi-Fi performance issues."[1] The objective names signal interference, signal loss, signal degradation, low signal strength, band steering issues, channel overlap, incorrect channel width, client disassociation, roaming issues (with sticky clients as the named example) and transmitter/receiver incompatibility.
The lesson assumes you know the basics of IEEE 802.11, the Wi-Fi standard from the Institute of Electrical and Electronics Engineers (IEEE), at the level of Network+, plus the design choices from the lesson on campus wireless components. Here the job is diagnosis. You are given symptoms and numbers, you name the fault, and then you pick a fix that does not create a new one.
The numbers every Wi-Fi diagnosis rests on
Radio power is measured in dBm, which means decibels relative to one milliwatt. 0 dBm is 1 mW. The scale is logarithmic. Every 3 dB roughly doubles or halves the power, and every 10 dB multiplies or divides it by ten. So 20 dBm is 100 mW and 10 dBm is 10 mW. Received Wi-Fi signals are tiny fractions of a milliwatt, so they are negative numbers. The number closer to zero is the stronger one: -50 dBm is 100 times stronger than -70 dBm, because the 20 dB gap is two factors of ten.
Five measurements do most of the diagnostic work. Learn the question each one answers.
| Measurement | What it is | Question it answers | Typical reading |
|---|---|---|---|
| Received signal strength indicator (RSSI) | The power a receiver measures from one transmitter, in dBm | How loud is the other end? | About -45 to -87 dBm in a working network, depending on design |
| Noise floor | Background radio energy on the channel that is not decodable Wi-Fi | How loud is everything else? | About -90 to -98 dBm in typical environments |
| Signal-to-noise ratio (SNR) | Signal minus noise, in dB | Can the receiver still tell the signal from the noise? | Above 20 dB is generally good |
| Effective isotropic radiated power (EIRP) | Transmit power minus cable loss plus antenna gain | How much power actually leaves the antenna? | Set by design and limited by regulation |
| Retry rate and data rate | Share of frames sent more than once; the rate the two radios are using | Is the link working, or merely present? | Rising retries and falling rates mean trouble |
The typical readings in that table come from SonicWall's wireless troubleshooting note. It gives a normal RSSI range of roughly -45 to -87 dBm, depending on power levels and design.[2] It puts typical noise readings between -90 and -98 dBm.[2] For planning, it says voice networks need a signal of -65 dBm or better and data networks need -80 dBm or better.[2] Its rule of thumb treats any SNR above 20 dB as good.[2] These are one vendor's rules of thumb. Your wireless local area network (WLAN) vendor's design guide and the application's own requirements take precedence.
A word on how tools label what they measure. Wi-Fi tools list each network by its Service set identifier (SSID), which is the network name, and each AP radio by its basic service set identifier (BSSID), which is the media access control (MAC) address of that one radio. One SSID is usually served by many BSSIDs across a building. Vendors also scale and display RSSI differently, and some tools do not show dBm at all. Fortinet's guide notes that the Windows command netsh wlan show networks mode=bssid reports signal as a percentage, not in dBm.[3] So compare readings taken with the same tool, in the same units, on the device that actually has the problem.
Work one SNR example through. A laptop at its desk reads a signal of -62 dBm and a noise floor of -90 dBm. SNR is signal minus noise: -62 - (-90). Subtracting a negative number is the same as adding it, so this is -62 + 90 = 28 dB. That is comfortably above the 20 dB rule of thumb.
Now change one input. Someone starts a microwave oven two metres away, and the noise floor on that 2.4 GHz channel rises to -75 dBm. The signal has not changed: it is still -62 dBm. The SNR is now -62 - (-75) = 13 dB. The laptop still shows full bars, because bars track signal strength, not noise. But the radios can no longer use the dense, fast encodings that need a clean channel. They drop to a slower modulation and coding scheme (MCS), the table of encodings each 802.11 generation defines, which runs from robust and slow to dense and fast. Frames that arrive corrupted are sent again, and every retry uses airtime that every other client on the channel was waiting for.
The core of it: strength and quality are separate measurements. RSSI says how loud the other end is; SNR says whether the receiver can still understand it. A ticket that says "full bars" has told you about only one of the two.
The first wrong turn: bars measure only the downlink
A Wi-Fi link is really two links. The bars on a laptop show the downlink, which is what the client hears from the AP. The AP must also hear the client, for every upload frame and every acknowledgement. Fortinet's FortiAP troubleshooting guide calls a mismatch between the two directions an asymmetric power issue. An AP can transmit at high power over a long distance, but a client may not transmit strongly enough for the AP to detect it.[3] The reason is physical. An enterprise AP draws mains power or Power over Ethernet (PoE). A phone runs on a small battery behind a small antenna and keeps its transmitter modest.
The fact that makes this easy to diagnose is that path loss, the decibels lost between two antennas, is the same in both directions over the same path. So if both ends have similar antenna gain, the difference between what the client hears and what the AP hears is simply the difference in their transmit powers. Here are the corridor numbers from ticket 4471. They use a fictional phone that transmits at 10 dBm, a measured path loss of 86 dB from a corridor desk to the studio AP, and a noise floor of -92 dBm. Antenna gains are left out to keep the arithmetic visible.
| Quantity at the corridor desk | Studio AP at 14 dBm | Studio AP at 23 dBm |
|---|---|---|
| Phone hears the AP (downlink RSSI) | 14 - 86 = -72 dBm | 23 - 86 = -63 dBm |
| AP hears the phone (uplink RSSI) | 10 - 86 = -76 dBm | 10 - 86 = -76 dBm |
| Downlink SNR | -72 - (-92) = 20 dB | -63 - (-92) = 29 dB |
| Uplink SNR | -76 - (-92) = 16 dB | -76 - (-92) = 16 dB |
| What the user sees | Fewer bars | More bars |
Read the table row by row. Raising the AP bought 9 dB on the downlink, which the phone did not need. It bought nothing at all on the uplink, which was the weak half of the link. The uplink still sits at an SNR of 16 dB, below the 20 dB rule of thumb. Worse, the extra downlink signal is exactly what stops the phone from leaving, as the roaming section shows.
Fortinet's guidance runs the opposite way from the help desk's instinct: match the AP's transmit power to the least powerful client you must serve.[3] It gives rough figures of about 10 dBm for iPhones and 14 dBm for most laptops.[3] Treat those as one vendor's approximations, not a specification for every model.
You can see asymmetry directly on most controllers, which report both what the client says it hears and what the AP hears from the client. Here is a fictional example for a phone joined to the SSID corp-example:
wlc-01# show client detail 00:00:5e:00:53:21 (fictional output)
Client MAC ............ 00:00:5e:00:53:21
SSID .................. corp-example
AP name ............... EAST-STUDIO-AP2
Band / channel ........ 5 GHz / 36, 160 MHz
AP transmit power ..... 23 dBm
Downlink RSSI ......... -63 dBm (reported by client)
Uplink RSSI ........... -76 dBm (measured at AP)
Noise floor ........... -92 dBm
Uplink data rate ...... 26 Mbps
Uplink retries ........ 27 percent
The signature is a 13 dB gap between the downlink and uplink lines, plus high retries on the uplink. Low signal strength in the ordinary sense shows both directions weak. Asymmetric power shows one direction healthy and the other starving. Keep the 160 MHz channel in that output in mind; it matters later.
The core of it: measure both directions before touching power. If the AP is already louder than its clients, turning it up only widens the gap.
Low signal strength, signal loss and signal degradation are three different findings
The objective lists these three separately, and CompTIA does not define them. In practice engineers use them for three different findings. Keeping them apart tells you which fix to reach for.
| Finding | What it means | How it shows in the data | Common causes | Usual fix |
|---|---|---|---|---|
| Low signal strength | The received level is below what the application needs | RSSI weak in the problem spot, usually in both directions, fading steadily with distance | Distance, an AP in the wrong place, a coverage gap, power set too low | Move or add an AP; adjust power within the cell plan |
| Signal loss | Decibels lost between transmitter and receiver | RSSI drops sharply across a wall, an obstacle or a cable run | Walls, glass, metal, water, people, a damaged antenna cable | Reposition the AP or antenna, repair cabling, design around obstacles |
| Signal degradation | The link gets worse in quality even if strength holds | Falling SNR, rising retries and falling data rate at a steady RSSI | Rising noise, interference, multipath reflections, an overloaded channel | Find and remove the noise source, change channel, reduce contention |
Signal loss follows predictable arithmetic. In open space, signal falls off with the square of distance, so each doubling of distance costs about 6 dB. That means much of the loss happens in the first few metres from the antenna, and the fade further out is gentle. Obstacles add their own fixed costs on top: a single concrete wall, a lift shaft or a row of metal shelving can cost more than many metres of open air. Higher frequencies also lose more energy passing through most building materials, which is why a 5 GHz or 6 GHz signal fades faster behind walls than a 2.4 GHz signal from the same AP.
Finding a coverage gap: the survey as an acceptance test
How do you tell low signal strength from signal loss at one spot? You walk it and measure. Fortinet calls a site survey the most thorough way to solve signal strength problems.[3] A planning survey starts from a floor plan drawn to scale with the wall and shelving materials marked, and predicts coverage. A validation survey walks the built floor and records readings point by point. For troubleshooting, the validation survey is what you need.
Take the readings with the device that has the problem, or the same model. Apple's roaming guide warns that antennas vary from model to model, so devices may perceive cell boundaries differently from what you expected.[4] A survey laptop with large antennas can report a healthy cell where a phone in a pocket is starving. Then judge each reading against the application's target, such as the -65 dBm voice and -80 dBm data levels from the SonicWall note. The target turns a number into a pass or a fail.
Here is a fictional worked example. A voice handset breaks up at desk 14 in a warehouse office. You walk from the AP toward the desk with the same handset model and record both directions.
| Point | Distance from AP | Between point and AP | Downlink RSSI | Uplink RSSI |
|---|---|---|---|---|
| P1 | 5 m | Open office | -55 dBm | -58 dBm |
| P2 | 10 m | Open office | -61 dBm | -64 dBm |
| P3 | 12 m | Open office, just before a concrete wall | -63 dBm | -66 dBm |
| P4 (desk 14) | 14 m | The concrete wall | -76 dBm | -79 dBm |
Step 1: compare with the target. Voice needs -65 dBm or better. P3 just passes on the downlink. P4 fails by 11 dB on the downlink and 14 dB on the uplink.
Step 2: ask what distance alone would predict. From P1 to P2 the distance doubles and the signal falls 6 dB, exactly as open space predicts. From P3 to P4 the distance grows only from 12 m to 14 m, which should cost little more than 1 dB. Instead the signal falls 13 dB. About 12 dB of that is the wall. This is signal loss at an obstacle, not a general coverage gap.
Step 3: choose the fix. Raising the AP from its current power to its maximum might buy 9 dB on the downlink, leaving it at about -67 dBm, still short. It does nothing for the uplink, which stays at -79 dBm. The fix that works is an AP on desk 14's side of the wall, or moving the existing AP so the path avoids the wall.
Now change one input. Suppose the readings had fallen steadily across open space with no step: -55 dBm at 5 m, -61 at 10 m, -67 at 20 m, -73 at 40 m. Every doubling costs about 6 dB, so distance explains everything. That is low signal strength from a coverage gap, and the fix is an AP nearer the gap, or moving the AP toward the middle of the area it must serve. Change a different input and the answer changes again. If the survey showed the downlink at -70 dBm but the uplink at -64 dBm, the client would be louder than the AP. Only then is raising AP power the right fix, because it brings the AP up toward its clients' level instead of past it.
The application matters too. If desk 14 held only a data scanner, -76 and -79 dBm would meet SonicWall's -80 dBm data target. Check SNR as well, though: at a -95 dBm noise floor the uplink SNR would be 16 dB, which is marginal. Strength targets and SNR are both acceptance tests, and a reading must pass both.
Loss can also hide inside the AP's own hardware. EIRP is the power that actually leaves the antenna. SonicWall writes its equation as transmit power minus cable loss plus antenna gain.[2] Work a fictional outdoor AP. The radio is set to 17 dBm, the cable and connectors to an external antenna lose 3 dB, and the antenna adds 6 dBi (decibels relative to an ideal antenna that radiates equally in all directions). EIRP is 17 - 3 + 6 = 20 dBm. Now suppose water gets into a connector and the cable loss rises to 9 dB. EIRP becomes 17 - 9 + 6 = 14 dBm. That is a 6 dB drop, which is a quarter of the power. The controller still shows the radio at 17 dBm, because the configuration has not changed. Only a measurement in the field, or a sudden ring of weak clients around one AP, reveals the fault.
Degradation is the finding people miss, because nothing obvious changes. Picture the lunchtime microwave from the SNR example, or a new lighting system whose drivers radiate noise. The RSSI graph is flat. Meanwhile the SNR graph dips, the retry graph climbs and the data-rate graph steps down as the radios fall to slower MCS values. Multipath does something similar. Signals that bounce off metal and glass reach the receiver several times, slightly delayed, and can partly cancel each other. Radios since 802.11n use multiple antennas to turn some reflections to advantage, but strong reflections still create small fading spots that move whenever a door or a person moves.
The core of it: a steady fade with distance means low signal strength. A sharp step past a particular obstacle or cable means signal loss. Strong but unreliable means degradation, and degradation sends you looking for noise and interference, not for more power.
Signal interference: who else is transmitting on your channel
Fortinet's guide gives the classic symptom: if the signal seems strong but drops from time to time, suspect frequency interference.[3] Interference is any other transmitter putting energy on the frequencies your radios use. It comes in two kinds, and they need different tools.
- Coherent interference comes from other Wi-Fi: another AP on the same channel, or a poorly planned design with too many APs that are too loud.[3] Your Wi-Fi tools can decode these transmitters, so an ordinary Wi-Fi scan shows them by SSID, by BSSID (the MAC address of each AP radio) and by channel.
- Non-coherent interference comes from transmitters that are not Wi-Fi, such as Bluetooth devices, microwave ovens, cordless phones and, in hospitals, x-ray machines.[3] Wireless video senders and some motion sensors belong on the same list. A Wi-Fi adapter cannot decode them, so a Wi-Fi scan shows only their side effect: a higher noise floor.
That difference decides the tool. A Wi-Fi scanner, or the controller's list of neighboring APs, will find a rogue or neighboring AP. Only a Spectrum analyzer shows a microwave oven's signature or a video sender parked on top of channel 11, because it measures raw radio energy across the band whether or not that energy is Wi-Fi. Fortinet recommends a site survey with spectrum analysis at several points in the building to locate interference sources.[3] As you walk toward the source the energy rises, and that is how you end up standing in front of the staff kitchen.
Timing is a clue worth writing in the ticket. Interference that tracks the clock (lunch, a shift change, a weekly alarm test) points to equipment that people switch on. Slowness that tracks occupancy points to Wi-Fi contention. Interference that never goes away points to something fixed, such as a neighboring tenant's AP or a permanently installed video link.
The fixes run from cheapest to most disruptive. First, change the AP's channel away from the source. Second, move dual-band clients to 5 GHz, away from the 2.4 GHz band that microwave ovens and Bluetooth share. Third, remove or relocate the offending device. Only then consider more APs. Raising transmit power is not on the list. It may lift the downlink SNR a little, but it does nothing for the uplink, and it turns your AP into a bigger coherent interferer for every neighbor on its channel.
Channel overlap: why the 2.4 GHz plan is 1, 6 and 11
In the 2.4 GHz band, channel numbers sit only 5 MHz apart, but each Wi-Fi transmission is about 20 MHz wide. Channel 1 therefore spills across channels 2, 3 and 4, and the first channel that clears it is 6. Fortinet notes that most deployments can set channels 1 to 11 but recommends using 1, 6 and 11.[3] Those three are the only set in that range that do not overlap.
Why does partial overlap hurt more than sharing a channel outright? Wi-Fi radios take turns using Carrier-sense multiple access with collision avoidance (CSMA/CA). Before transmitting, a radio listens. If it hears another Wi-Fi transmission, it decodes the header, learns how long that frame will last, and waits. On a shared channel this works. Capacity is split between the APs, which engineers call co-channel contention (often loosely called co-channel interference), but frames mostly arrive intact.
On a partially overlapping channel, the neighbor's energy arrives off-center. The radio cannot decode it, so unless that energy is very strong it does not wait. It sees a raised noise floor and transmits on top of the neighbor. The result is corrupted frames and retries on both networks. That is adjacent-channel interference, and it is what the exam means by channel overlap.
| Fictional AP | Plan A channel | Overlaps with | Plan B channel | Overlaps with |
|---|---|---|---|---|
| F3-AP1 | 1 | F3-AP2 | 1 | None |
| F3-AP2 | 3 | F3-AP1 and F3-AP3 | 6 | None |
| F3-AP3 | 6 | F3-AP2 | 11 | None |
Plan A is what you find when someone picks channels by hand, or when two neighbors choose independently. In Plan B, a fourth AP on the floor would have to reuse 1, 6 or 11, and that is expected. You separate same-channel APs by distance and sensible power levels, so each hears the other only faintly. The 5 GHz and 6 GHz bands hold many more 20 MHz channels, so overlap there usually comes from how wide the channels are. That is the next fault.
Incorrect channel width: when wider is slower
First, a naming note, because spec sheets and exam stems mix two systems. The IEEE standards carry letters, and the Wi-Fi Alliance markets generation numbers. Apple's roaming guide uses both side by side: Wi-Fi 7 is 802.11be and Wi-Fi 6 is 802.11ax.[4] Wi-Fi 5 is 802.11ac and Wi-Fi 4 is 802.11n.[4] This lesson gives the generation name with the letter where it helps.
| Generation name | IEEE standard | Bands |
|---|---|---|
| Wi-Fi 4 | 802.11n | 2.4 GHz and 5 GHz |
| Wi-Fi 5 | 802.11ac | 5 GHz |
| Wi-Fi 6 | 802.11ax | 2.4 GHz and 5 GHz |
| Wi-Fi 6E | 802.11ax extended into 6 GHz | 2.4, 5 and 6 GHz |
| Wi-Fi 7 | 802.11be | 2.4, 5 and 6 GHz |
Channel width is how much spectrum one transmission occupies. Starting with Wi-Fi 4, radios can bond neighboring 20 MHz channels into one wider channel. In 5 GHz, Wi-Fi 4 (802.11n) bonds two 20 MHz channels into a 40 MHz channel.[5] Wi-Fi 5 (802.11ac) bonds four into an 80 MHz channel.[5] Wi-Fi 5 also defined an optional 160 MHz width, which became common with Wi-Fi 6, and Wi-Fi 7 adds 320 MHz in the 6 GHz band. Apple's router guidance states the trade-off in one sentence: wider channels are faster, but more susceptible to interference and more likely to interfere with other devices.[6]
Two mechanisms sit behind that sentence. First, the AP's transmit power is spread across the whole channel while the receiver collects noise across all of it. Each time the width doubles, SNR falls by about 3 dB. Second, and more important in an enterprise, a fixed band holds fewer wide channels than narrow ones. Every bonded channel uses up several 20 MHz channels, so neighbors that could have had separate channels end up sharing.
Work the arithmetic with a round, fictional number. Suppose your regulatory domain and your policy on radar-shared channels leave you 24 usable 20 MHz channels in 5 GHz. Bonding divides that pool:
| Width | 20 MHz channels per bonded channel | Separate channels from a 24-channel pool |
|---|---|---|
| 20 MHz | 1 | 24 |
| 40 MHz | 2 | 12 |
| 80 MHz | 4 | 6 |
| 160 MHz | 8 | 3 |
Now place 36 APs on one open-plan floor, each able to hear about eight neighbors. At 160 MHz there are three channels for 36 APs, so every AP shares its channel with several neighbors it can hear. Each AP must wait its turn behind them, and the floor's real capacity collapses at busy times. A speed test beside an empty AP at 07:00 still looks spectacular. Drop to 40 MHz and there are twelve channels, so most APs can be placed where no audible neighbor shares their channel. Each transmission is slower at its peak, but far more transmissions happen at the same time across the floor.
Flip one input and the result flips. A home office, or an isolated meeting room with a single AP and no neighbors in range, has no one to share with. There, 80 or 160 MHz delivers real gains, because the peak rate of each transmission is all that matters when nobody else needs the channel.
2.4 GHz is the easy case. With only three non-overlapping 20 MHz channels, one 40 MHz channel covers most of the band and overlaps nearly everything around it. Apple recommends 20 MHz on 2.4 GHz to avoid performance and reliability problems near other Wi-Fi networks and 2.4 GHz devices such as Bluetooth.[6] An exam stem that mentions 40 MHz on 2.4 GHz is pointing at incorrect channel width.
The core of it: width trades capacity across the whole floor for peak speed at one AP. On a dense floor go narrow: 20 or 40 MHz in 5 GHz, and always 20 MHz in 2.4 GHz. In an isolated cell, go wide.
Client disassociation: reading why the link ended
Before a client can send data, it authenticates to an AP and then associates with it. Association gives the client a place in that AP's basic service set (BSS): the group of clients served by one AP radio, identified by that radio's BSSID. Disassociation ends that relationship. Either side can end it by sending a disassociation or deauthentication management frame, or the link can simply fail when too many frames go unanswered. The user sees the same thing in every case: the Wi-Fi icon blinks and the call drops. The controller log is where the cases separate.
(fictional controller log, 24-hour clock)
10:14:02 00:00:5e:00:53:21 EAST-STUDIO-AP2 disassociated: client roamed to CORRIDOR-AP1
10:31:47 00:00:5e:00:53:34 CORRIDOR-AP1 deauthenticated: idle timeout
10:52:10 00:00:5e:00:53:21 EAST-STUDIO-AP2 disassociated: max retries exceeded
10:52:11 00:00:5e:00:53:21 EAST-STUDIO-AP2 association rejected: minimum RSSI not met
11:05:33 00:00:5e:00:53:40 EAST-STUDIO-AP2 deauthenticated: 4-way handshake timeout
11:20:00 EAST-STUDIO-AP2 radio 5 GHz: radar detected on channel 52, moving to channel 149
| Log reason | Who ended it | What it means | Next step |
|---|---|---|---|
| Client roamed | Client | Normal: the client chose another AP | None, unless roams are slow or the client bounces between two equal APs |
| Idle timeout | AP | The client sent nothing for the configured idle period | Usually normal; check sleepy Internet of Things (IoT) devices that may need a longer timeout |
| Max retries exceeded | Link failure | The AP stopped hearing the client | Check uplink RSSI and SNR: asymmetric power, low signal or interference |
| Minimum RSSI not met | AP policy | A vendor feature refuses or removes clients below a signal floor | Check the threshold; set too high, it causes disconnect loops at cell edges |
| Handshake timeout or authentication failure | AP | The key handshake or IEEE 802.1X authentication did not complete | Check the passphrase, the Remote Authentication Dial-In User Service (RADIUS) server and the security mode |
| Radar detected | AP | On radar-shared 5 GHz channels the AP must stop using the affected frequencies | Expect clients to drop and rejoin; avoid those channels near radar or narrow the width |
Two points from that table deserve saying outright. First, a disconnect loop at the edge of a cell is a configuration fault, not a radio fault. The client associates, falls below a minimum-RSSI threshold, is pushed off, and immediately tries again. Second, the wide channel that hurt capacity in the previous section also causes extra disassociations. A 160 MHz channel starting at 36 spans channels 36 to 64. Channels 52 to 64 are ones where many regulators require Dynamic frequency selection (DFS), meaning the AP must listen for radar and stop transmitting on frequencies where it hears any. A radar pulse anywhere in the bonded channel therefore typically forces the AP to leave the channel, as in the log above. Some platforms instead fall back to a narrower width that avoids the affected part, so check how your vendor behaves. Either way, clients on that radio usually drop and rejoin.
When many clients are deauthenticated at once with no matching configuration change, there is one more possible cause: forged management frames. Older networks accepted deauthentication frames without checking where they came from. The defense is the protected management frames (PMF) feature from IEEE 802.11w-2009, which authenticates these frames so forged ones are ignored. Wi-Fi Protected Access 3 (WPA3) requires PMF, and its predecessor Wi-Fi Protected Access 2 (WPA2) only offers it as an option. A wireless intrusion detection feature on the controller can alert on unusual volumes of deauthentication frames.
Roaming issues and sticky clients
The most important fact about roaming is who decides. Apple's deployment guide puts it plainly: devices connected to a Wi-Fi network are responsible for maintaining their own 802.11 connection, and that includes deciding when to roam.[4] The controller can suggest, but the client's driver chooses. Each client has a roam trigger, a signal level below which it starts looking for a better AP. Apple illustrates its iPhone behavior with an example: when the phone crosses -70 dBm, it scans for roam targets.[4] Other vendors and models use other triggers, and, as the survey section noted, each model perceives cell boundaries through its own antennas. That is why you measure with the device that has the problem, not with your survey laptop.
A sticky client is one that stays associated with a distant AP while a much better AP is close by. Go back to ticket 4471 and run the numbers with the -70 dBm trigger. A phone starts a call in the studio, on the studio AP, and its user walks out to a corridor desk. At that desk the path loss is 86 dB to the studio AP and 64 dB to the corridor AP. Both APs started at 14 dBm.
| At the corridor desk | Studio AP at 14 dBm | Studio AP at 23 dBm |
|---|---|---|
| Phone hears the studio AP | 14 - 86 = -72 dBm | 23 - 86 = -63 dBm |
| Weaker than the -70 dBm trigger? | Yes, so the phone scans | No, so the phone never scans |
| Phone hears the corridor AP | 14 - 64 = -50 dBm | 14 - 64 = -50 dBm |
| Outcome | Roams to the corridor AP | Sticks to the studio AP |
| Studio AP hears the phone | No longer relevant after the roam | 10 - 86 = -76 dBm, uplink SNR 16 dB |
This is how the help desk produced four new tickets from the corridor. Raising the studio AP stretched its cell until corridor clients never crossed their roam trigger. They stayed on the studio AP with a weak uplink, sending at low data rates with many retries. A slow client holds the channel longer for every frame it sends, so the studio's own users lost airtime too. One change produced a weak uplink, sticky clients and a slower studio all at once.
The fix for sticky clients starts with cell size, not with forcing. Set AP power so neighboring cells overlap by a modest, planned margin, near client transmit levels, and the client's own trigger does the right thing. Controllers add tools on top. Vendor features that disassociate clients below a minimum signal force a decision, but set too high they cause the disconnect loops described earlier. Standards-based steering is gentler. IEEE 802.11v BSS transition management lets the AP suggest a better AP, which the client may accept or ignore.
Even a client that decides correctly can roam slowly, and slow roams are the other half of roaming issues. A roam has two costs: finding the next AP, and authenticating to it.
- Finding it: IEEE 802.11k. Radio resource measurement lets the AP give the client a neighbor report, a list of nearby APs on the same network and their channels, so the client scans only the likely channels. Without the report, Apple notes, the client has to scan every channel on each band, which can add several seconds to the roam.[4] Several seconds of silence on a voice call is a dropped call.
- Authenticating: IEEE 802.11r. Fast BSS Transition (FT) lets a client set up keys with the new AP without repeating the full authentication. It matters most with IEEE 802.1X, the standard in which each user or device proves its identity to a RADIUS server before it gets network access. A full 802.1X exchange through that server can take far longer than voice can tolerate.
The core of it: a client roams when its own trigger fires, so cell size controls stickiness. 802.11k shortens the search and 802.11r shortens the handshake, but neither helps a client that never decides to leave.
Band steering issues
Band steering is an AP or controller feature that nudges dual-band clients off the crowded 2.4 GHz band and onto 5 GHz or 6 GHz. It works only when the same SSID is offered on every band, because the client must see the bands as one network. Implementations vary by vendor. Many work by answering a dual-band client's probe requests promptly on 5 GHz while delaying or withholding answers on 2.4 GHz, so the client joins the faster band first. Standards-based steering uses 802.11v suggestions instead. The Wi-Fi Alliance's Agile Multiband certification defines an exchange of information through which the AP can guide a device to a recommended band, channel or AP.[7]
Band steering issues come in four common forms.
| Symptom | Cause | Fix |
|---|---|---|
| Clients at a cell edge get slower after steering is enabled | They were pushed to 5 GHz, which is much weaker than 2.4 GHz at that spot because higher frequencies fade faster through walls | Set a minimum 5 GHz signal for steering, or add 5 GHz coverage |
| A 2.4 GHz-only device is slow to join, or fails | The steering logic wrongly treats it as dual-band and delays its 2.4 GHz probes | Exempt the device, or put single-band IoT devices on their own SSID |
| Steering has no effect | Different SSIDs per band, or a client that ignores the hints | Use one SSID across bands; accept that the client still decides |
| Apple devices report limited compatibility on a 6 GHz network | The 6 GHz band has a different name from the 2.4 and 5 GHz bands | Use one SSID across all three bands |
The last row comes from Apple's documentation for Wi-Fi 6E and Wi-Fi 7 networks. It recommends that the router use a single network name across the 2.4, 5 and 6 GHz bands for best performance.[8] If the names differ, the device marks the network as having limited compatibility.[8]
Work the edge case through. A laptop in a far corner hears its AP's 2.4 GHz radio at -64 dBm and its 5 GHz radio at -79 dBm. The 5 GHz noise floor is -95 dBm and the 2.4 GHz noise floor is -90 dBm. Steering moves the laptop to 5 GHz, where its SNR is -79 - (-95) = 16 dB, and data rates fall. On 2.4 GHz its SNR would be -64 - (-90) = 26 dB. SNR is not the only factor, since 2.4 GHz may be busier, but in this corner a forced move to 5 GHz is the wrong move.
Now change one input. Add a second AP twelve metres closer, so the laptop hears 5 GHz at -62 dBm. Now 5 GHz offers an SNR of -62 - (-95) = 33 dB, on wider and cleaner channels, and steering is exactly right. Band steering is a policy, and it is only as good as the coverage under it.
Keep sticky clients and band steering issues apart. A sticky client stays on the wrong AP. A band steering issue puts the client on the wrong band of the right AP, or keeps it off the band it needs.
Transmitter/receiver incompatibility
A radio link runs at what both ends support, and no more. If the AP and the client disagree on band, standard, width, security or features, the link either falls back to the best mode they share or does not form at all. That is transmitter/receiver incompatibility. It is easy to mistake for weak signal, because the symptom looks similar: slow Wi-Fi, or no Wi-Fi, but only for some devices.
| Mismatch | Fictional example | Symptom | Fix |
|---|---|---|---|
| Band | A 2.4 GHz-only scanner and an SSID offered only on 5 GHz | The device cannot see the network | Offer the SSID on 2.4 GHz, or create a separate IoT SSID |
| Standard (radio mode) | A 5 GHz radio limited to Wi-Fi 6 (802.11ax); Wi-Fi 5 (802.11ac) laptops | Older clients cannot join | Enable all radio modes |
| Channel width | AP at 160 MHz; client supports 80 MHz at most | Client works at its own maximum, below the AP's advertised peak | Expected behavior; set expectations from the client's spec sheet |
| Spatial streams (parallel data streams sent from multiple antennas) | Four-stream AP; two-stream phone | Rates top out at what two streams allow | Expected behavior; plan capacity on client capability |
| Security | WPA3-Personal only; WPA2-only devices | Join fails with handshake errors | WPA2/WPA3 Transitional mode, or a separately protected legacy SSID |
| Roaming features | 802.11r enabled; a client model that mishandles FT | Some models fail to join or to roam | Mixed or adaptive FT modes; test each client model |
| Region | The client's regulatory settings do not allow an AP's channel | The client never sees that radio | Use channels permitted where clients operate |
Apple's recommended router settings show how a client vendor handles the security case. It describes a WPA2/WPA3 Transitional mode that uses WPA3 Personal with devices that support it and lets older devices use WPA2 Personal with the Advanced Encryption Standard (AES).[6] Radio modes follow the same logic: enable every 802.11 generation the AP offers, so each client connects with the fastest one it supports. Restricting a radio to Wi-Fi 6 only buys nothing for Wi-Fi 6 clients and locks out Wi-Fi 5 clients. Roaming features need the same care. Many vendors offer a mixed FT mode, in which clients that handle 802.11r use it while legacy clients join the same SSID without it.
The width and stream rows describe expected behavior, not faults, and that matters for diagnosis. A spec sheet lists an AP's peak rate with every capability switched on. A two-stream phone that supports 80 MHz will never reach the headline rate of a four-stream, 160 MHz AP, and no setting changes that. The real mistake is a ticket that compares those two numbers. Check the client's capability sheet before you chase a performance gap.
The core of it: when only some models misbehave, compare capabilities before you compare signal. Incompatibility is a property of the pair, so the same AP can be fine for one device and invisible to another.
Closing ticket 4471, and the cues exam stems use
Here is how the fictional ticket ended. Each change was made on its own, with a measurement afterward.
| Finding | Objective item | Change | Measured afterward |
|---|---|---|---|
| Studio AP raised to 23 dBm; corridor phones stuck to it | Roaming issues (sticky clients); weak uplink signal | Returned the studio AP to 14 dBm | Corridor phones roam at their desks; uplink retries fall |
| Studio AP and the next-door AP on the same 160 MHz channel | Incorrect channel width; co-channel contention | Set both to 40 MHz on separate channels | Busy-hour throughput up; peak rate down |
| Radar events on channel 52 moving the studio radio | Client disassociation | The new 40 MHz plan keeps the studio off radar-shared channels | No radar-driven drops in a week |
| Neighbor reports off; roams taking several seconds | Roaming issues | Enabled 802.11k on the SSID | No more reports of voice gaps while walking |
Notice what the order did. Undoing the power change first returned the network to the state of the original complaint, so every later finding could be judged against a known baseline. The original freezes turned out to be contention on an over-wide channel. That is a capacity fault, not a signal fault, which is why more power could never have fixed it.
A short sequence covers most Wi-Fi scenarios:
- Scope it: one client, one model, one area, or everyone? One model points to incompatibility. One area points to coverage, loss or interference. Everyone at certain times points to contention or interference.
- Measure both directions: downlink RSSI, uplink RSSI, noise, SNR, retries and data rate, on the affected device where possible.
- Read the channel plan: the channels, widths and transmit powers of the AP and the neighbors it can hear.
- Read the disconnect reasons in the controller log before guessing.
- If the signal is strong but unreliable, look for interference. Use a spectrum analyzer when the noise floor is high and no Wi-Fi source explains it.
- Change one setting, then measure again.
| Words in the question stem | Points to | Usual best fix |
|---|---|---|
| Strong signal, but drops at certain times of day; high noise floor | Non-coherent signal interference | Spectrum analysis, then change channel or remove the source |
| Nearby 2.4 GHz APs on channels such as 1, 3 and 6 | Channel overlap (adjacent-channel interference) | Re-plan to 1, 6 and 11 |
| Many APs heard on one channel; slow only when busy | Co-channel contention, often from wide channels or high power | Narrow the width, lower power, spread channels |
| 40 MHz on 2.4 GHz, or 160 MHz across a dense office | Incorrect channel width | 20 MHz on 2.4 GHz; 20 or 40 MHz in dense 5 GHz |
| Client shows strong signal; AP hears client weakly; uplink retries | Asymmetric power | Lower AP power toward client levels; add coverage |
| Weak in both directions, fading steadily with distance from any AP | Low signal strength | Move or add an AP |
| Signal falls sharply past a wall, shelving or a new antenna cable | Signal loss | Reposition the AP or antenna; repair the cabling |
| Same RSSI as last month, but SNR and data rates are down | Signal degradation | Find the new noise source or the new contention |
| Client stays on a distant AP while standing under a closer one | Sticky client (roaming issue) | Right-size cells; 802.11v; a careful minimum-RSSI setting |
| Several seconds of silence while walking between APs | Slow roaming | 802.11k neighbor reports and 802.11r Fast BSS Transition |
| Dual-band client pushed to 5 GHz at the edge and slower there | Band steering issue | Tune steering thresholds or add 5 GHz coverage |
| Only older or single-band models cannot join, or are slow | Transmitter/receiver incompatibility | Enable compatible radio modes; use transitional security |
| Log shows repeated deauthentication or disassociation | Client disassociation | Read the reason; fix the cause it names |
Three pairs cause most wrong answers. Interference versus low signal strength: interference leaves RSSI strong and wrecks SNR, while low signal makes RSSI weak. Co-channel versus adjacent-channel: sharing a channel splits airtime, while overlapping channels corrupt frames. Sticky client versus band steering issue: the wrong AP versus the wrong band.
Common misconceptions
- "Full bars means the Wi-Fi is fine." Bars show downlink signal strength only. The AP's view of the client, the noise floor and the retry rate are separate measurements, and any of them can be failing while the bars stay full.
- "Turning up AP power fixes weak Wi-Fi." When the AP is already louder than its clients, more power widens the asymmetry, stretches the cell so clients stick to it, and makes the AP a bigger interferer for every neighbor on its channel. Matching AP power to the weakest client usually helps more.
- "The access point decides when a client roams." The client's driver decides, based on its own signal trigger. The AP can suggest a move with 802.11v or force one with a minimum-signal policy, but it cannot make the client's roaming decision for it.
- "Wider channels are always faster." They raise the peak rate of one transmission. On a dense floor they cut the number of separate channels, so APs share airtime and total capacity falls.
- "Channels 1 and 3 interfere less than two APs sharing channel 1." Partial overlap is usually worse. Radios on the same channel decode each other and take turns, while overlapping energy cannot be decoded, so radios transmit over it and corrupt frames.
- "A Wi-Fi scanner shows all the interference." A Wi-Fi adapter decodes only Wi-Fi. Microwave ovens, video senders and similar sources appear only as a raised noise floor, and only a spectrum analyzer identifies them.
Putting it together
- Bars show downlink RSSI only. A working link also needs the AP to hear the client, so measure uplink RSSI, noise, SNR and retries on the affected device.
- SNR is signal minus noise: a -62 dBm signal over a -90 dBm noise floor gives 28 dB. A common rule of thumb treats SNR above 20 dB as good, and voice designs aim for a signal of -65 dBm or better.
- Raising AP power above client transmit levels widens asymmetry, stretches cells and creates sticky clients. Fortinet advises matching AP power to the least powerful client, roughly 10 dBm for iPhones and 14 dBm for most laptops.
- Survey with the affected device model and judge each reading against the application's target. A steady fade of about 6 dB per doubling of distance means low signal strength; a sharp step across one wall or cable means signal loss.
- Strong signal with periodic drops suggests interference. Coherent interference comes from other Wi-Fi and shows in a Wi-Fi scan; non-coherent interference from microwave ovens, Bluetooth or cordless phones shows only on a spectrum analyzer.
- In 2.4 GHz, use 20 MHz channels on 1, 6 and 11. Partially overlapping channels corrupt frames, while a shared channel only splits airtime.
- Bonding to 40, 80 or 160 MHz divides the number of separate channels by 2, 4 or 8. Dense floors need narrow channels; isolated cells can go wide.
- Clients decide when to roam (an iPhone scans after its signal crosses -70 dBm), so oversized cells make sticky clients. 802.11k neighbor reports speed up the search, and 802.11r Fast BSS Transition speeds up the re-authentication.
- A band steering issue puts a client on the wrong band, and incompatibility affects only some models and is fixed by enabling compatible modes such as WPA2/WPA3 Transitional. For any disassociation, read the reason in the controller log before changing anything, then change one setting at a time.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- SonicWall. (n.d.). Wireless: SNR, RSSI and Noise basics of wireless troubleshooting. sonicwall.com
- Fortinet Docs. (2020). Signal strength issues. docs.fortinet.com
- Apple Support. (n.d.). Wi-Fi roaming support in Apple devices. support.apple.com
- Apple Support. (n.d.). Wi-Fi network design and deployment guidance, Apple Platform Deployment. support.apple.com
- Apple Support. (n.d.). Recommended settings for Wi-Fi routers and access points. support.apple.com
- Wi-Fi Alliance. (n.d.). New features in Wi-Fi CERTIFIED Vantage improve performance in managed networks. wi-fi.org
- Apple Support. (n.d.). Use Wi-Fi 6E networks with Apple devices. support.apple.com
- Key terms
- RSSI
- Received signal strength indicator: the power a receiver measures from one specific transmitter, usually shown in dBm, where values closer to zero are stronger.
- SNR
- Signal-to-noise ratio: the received signal level minus the noise floor, in dB; it shows whether a receiver can separate the signal from background energy.
- Noise floor
- The level of background radio energy on a channel that is not decodable Wi-Fi, such as emissions from microwave ovens or cordless phones, measured in dBm.
- EIRP
- Effective isotropic radiated power: the power actually leaving an antenna, calculated as transmit power minus cable loss plus antenna gain.
- Asymmetric power
- A Wi-Fi fault in which the access point transmits much more strongly than its clients, so clients hear the AP well while the AP struggles to hear them.
- Adjacent-channel interference
- Corruption caused by transmitters on partially overlapping channels, such as 2.4 GHz channels 1 and 3, whose energy cannot be decoded and so is not deferred to.
- Sticky client
- A wireless client that stays associated with a distant access point even though a much stronger one is nearby, usually because its roam trigger has not been crossed.
- Band steering
- An access point or controller feature that encourages dual-band clients to use 5 GHz or 6 GHz instead of 2.4 GHz on a network name (SSID) offered across several bands.
- Neighbor report (802.11k)
- A list of nearby access points and their channels that an AP gives a client, so the client can scan only likely channels when it needs to roam.
- Fast BSS Transition (802.11r)
- A roaming feature that lets a client set up keys with a new access point without repeating full authentication, shortening roams for voice and video.
Troubleshooting Access and Security Issues
- Classify an access failure as a rule and policy fault, a denial of service, an authentication or authorization failure, or a certificate and TLS fault, using the evidence a scenario gives you.
- Trace a flow through stateful and stateless filters and through ordered rule lists to find a missing, misconfigured, shadowed or overly permissive rule.
- Tell volumetric DDoS, SYN floods and application-layer floods apart by what each one exhausts, and say where each must be mitigated.
- Diagnose certificate mismatch, expiry, revocation, trust, hash and TLS version failures, as well as password, group membership and shared-secret failures.
One complaint, five different faults
An Amazon Web Services (AWS) re:Post Knowledge Center article starts from a ticket most cloud engineers have seen. A service on an Amazon EC2 (Elastic Compute Cloud) instance will not answer. Yet inbound traffic to its port is allowed in both the security group and the network access control list (network ACL). The fault turns out to be in a rule nobody thought to read: the one for traffic on its way back out. You will work through that exact case below.
From the user's chair, very different faults produce the same sentence: "I can't get in." The cause might be a missing firewall rule or a flood of half-open Transmission Control Protocol (TCP) connections. It might be a user in the wrong group, a shared secret typed differently on two devices, or a certificate that expired at midnight. Each fault leaves a different kind of evidence, in a different log, owned by a different team. This objective tests whether you can read that evidence and name the fault family before you change anything.
Exam objectives: CompTIA CloudNetX CNX-001, objective 4.7: "Given a scenario, troubleshoot access and security issues."[1] The objective groups its bullets under five headings. Rule and policy issues: incorrect security group, missing rules, misconfigured rules, overly permissive rules, URL/web content filtering, geo-restriction and ACL issues. Denial of service (DoS) issues: DDoS (distributed denial of service) and SYN floods. Authentication and authorization failures: password issues, incorrect group membership and mismatched secrets. Certificate issues: mismatch, expired certificates, revoked certificates, trust issues, hash incompatibility and TLS (Transport Layer Security) issues. Last comes blocked or dropped traffic.
The table below compares the families. Read across a row to see how one family shows itself. Read down a column to see why the families are so easy to confuse.
| Family | What the user usually sees | Where the evidence lives | First question to ask |
|---|---|---|---|
| Rule and policy issues | A timeout or a block page, often for one port, path or site only | Firewall, security group and ACL logs, rule hit counters, cloud flow logs, proxy logs | Which rule matched this flow, and in which direction? |
| Denial of service | Slowness or an outage for many users at once, worst at the public edge | Traffic graphs against a baseline, connection and session tables, ISP (Internet Service Provider) or scrubbing provider alerts | Is the traffic volume or connection count abnormal, and where from? |
| Authentication failure | The login is rejected, the account locks, or a network device times out waiting for its authentication server | Identity provider sign-in logs, RADIUS (Remote Authentication Dial-In User Service) or TACACS+ (Terminal Access Controller Access Control System Plus) server logs, directory lockout events | Did the identity system receive the request, and why did it say no? |
| Authorization failure | The login succeeds, then "access denied", the wrong VLAN (Virtual Local Area Network), or a missing menu | Group membership, role assignments, token claims, policy decision logs | Which groups and roles did this session actually carry? |
| Certificate and TLS issues | A browser warning, a handshake failure, or an application that simply closes | Certificate fields and chain, the client's clock, revocation responses, offered TLS versions and cipher suites | Which handshake check failed: version, algorithm, trust, date, name or revocation? |
Bottom line: the user's complaint never tells you the fault family, but the location of the evidence does. Ask in order: do packets arrive and return, does the TLS session form, did the identity system accept the user, and was the accepted user allowed?
Blocked or dropped traffic: what the client's error is telling you
Start with the bullet that sits beneath all the others. A firewall, ACL or security group can block a packet in two ways. It can drop the packet silently, so the sender hears nothing. Or it can reject it, sending back a TCP reset or an Internet Control Message Protocol (ICMP) error, so the sender finds out at once. Security teams often prefer silent drops at the internet edge, because silence gives a scanner less to work with. The price is that, from the client's side, a silent drop looks exactly like a dead server or a broken route.
| What the client sees | What it usually means | Next check |
|---|---|---|
| "Connection refused": a TCP reset arrives almost immediately | Something answered. Usually the host has nothing listening on that port, or a device is set to reject rather than drop | Confirm the service is listening; look for a reject rule along the path |
| "Connection timed out": the client retransmits its SYN (synchronize) packet and gets nothing back | Something stayed silent: a deny rule, a missing route, or a stateless filter on the return path | Capture on both sides of each filtering device |
| ICMP destination unreachable, "communication administratively prohibited" (type 3, code 13) | A router or firewall rejected the packet and said so | Find which device sent the ICMP message and read its rule |
| TCP connects, then a TLS alert and the connection closes | The network path works; a TLS or certificate check failed | Move on to the certificate and TLS checks later in this lesson |
| HTTP 403 or a vendor block page | The request reached a proxy, web filter or WAF (Web Application Firewall) that read it and refused it | Read the filter's log for the matching rule or category |
A refusal tells you something answered. A timeout tells you something stayed silent, so your job becomes finding the point on the path where the packet, or its reply, disappeared.
The dependable way to find that point is to capture traffic on both sides of each filtering device, or to read each device's own logs. Here is a fictional pair of captures, shown as simple summaries, for a client that cannot reach an internal web application. In them, SYN is the client's opening synchronize packet and SYN-ACK is the server's synchronize-acknowledge reply, the second step of the TCP three-way handshake.
Fictional example: capture on the client 10.20.5.31
09:14:02.101 10.20.5.31:51544 > 10.30.2.40:443 SYN
09:14:03.103 10.20.5.31:51544 > 10.30.2.40:443 SYN (retransmission)
09:14:05.107 10.20.5.31:51544 > 10.30.2.40:443 SYN (retransmission)
Fictional example: capture on the server 10.30.2.40
09:14:02.104 10.20.5.31:51544 > 10.30.2.40:443 SYN
09:14:02.104 10.30.2.40:443 > 10.20.5.31:51544 SYN-ACK
09:14:03.106 10.20.5.31:51544 > 10.30.2.40:443 SYN (retransmission)
09:14:03.106 10.30.2.40:443 > 10.20.5.31:51544 SYN-ACK
09:14:05.110 10.20.5.31:51544 > 10.30.2.40:443 SYN (retransmission)
09:14:05.110 10.30.2.40:443 > 10.20.5.31:51544 SYN-ACK
Read the two captures together. Every SYN the client sends reaches the server, about 3 milliseconds later, so no inbound rule is blocking it. The server is not down either: it answers every SYN with a SYN-ACK. But no SYN-ACK ever reaches the client, so the drop is on the return path. Three causes fit that pattern:
- a stateless filter that allows the request but not the reply;
- a return route that points somewhere other than the way the request came;
- asymmetric routing that sends the reply through a different stateful firewall. That firewall never saw the SYN that opened the connection, so it treats the SYN-ACK as unsolicited and drops it.
Logs help only if the denying rule writes them. On many platforms, the implicit deny at the end of a rule list does not log by default. If a flow vanishes and no log mentions it, check the rule's hit counter, or add an explicit final deny with logging enabled. Either tells you whether this device is the one throwing the packets away. In AWS, VPC (Virtual Private Cloud) Flow Logs record accepted and rejected flows at each network interface. AWS points to them as the next step when the rules look right but connections still fail.[2]
Security groups and network ACLs: stateful versus stateless
Two cloud controls account for a large share of incorrect security group, missing rule and ACL tickets. They look alike in a console but behave very differently.
A stateful filter keeps a table of the connections it has allowed. When a reply comes back, the filter matches it to its table entry and lets it through, with no rule of its own needed. A stateless filter keeps no table. It judges every packet against its rules as if it had never seen the conversation, so replies need their own allow rule. AWS makes the point in two sentences. Security groups are stateful, so an inbound allow is enough to activate the connection.[2] Network ACLs are stateless, so you must allow both inbound and outbound traffic.[2]
| Property | AWS security group | Azure network security group (NSG) | AWS network ACL |
|---|---|---|---|
| Attached to | An instance's network interface | A subnet or a network interface | A subnet |
| State | Stateful | Stateful | Stateless |
| Rule actions | Allow only; anything not allowed is denied | Allow and deny, evaluated by priority number | Allow and deny, evaluated in rule-number order, lowest first, first match wins |
| Starting point | A new group allows all outbound traffic and no inbound traffic | Built-in default rules allow traffic within the virtual network and deny other inbound traffic | The VPC's default network ACL allows everything; a newly created custom network ACL denies everything until you add rules |
| Can name as a source | Address ranges or another security group | Address ranges, service tags or application security groups | Address ranges only |
AWS notes that network ACLs allow all inbound and outbound traffic by default.[2] That describes the default ACL created with each VPC. So when a network ACL causes a problem, someone has usually attached a custom, more restrictive one, and that is the list to read.
Worked example: the reply that never left the subnet
Here is the ticket from the start of the lesson, with fictional values. A web server at 10.0.1.20 in a public subnet serves HTTPS on TCP port 443. A client at 198.51.100.7 times out.
| Control | Direction | Rule | Protocol and port | Peer | Action |
|---|---|---|---|---|---|
| Security group sg-web | Inbound | (unordered) | TCP 443 | 0.0.0.0/0 | Allow |
| Network ACL acl-public | Inbound | 100 | TCP 443 | 0.0.0.0/0 | Allow |
| Network ACL acl-public | Inbound | * | All | 0.0.0.0/0 | Deny |
| Network ACL acl-public | Outbound | 100 | TCP 443 | 0.0.0.0/0 | Allow |
| Network ACL acl-public | Outbound | * | All | 0.0.0.0/0 | Deny |
Trace one connection step by step.
- The client opens a connection, and its operating system picks a random source port from the ephemeral range. AWS's guidance treats 1024-65535 as that range.[2] Individual operating systems use narrower ranges inside it, which is why the guidance covers the whole span. Say the client picks 51544. The SYN travels from 198.51.100.7:51544 to 10.0.1.20:443.
- Inbound network ACL rule 100 allows TCP 443 from anywhere, so the packet enters the subnet.
- The security group allows TCP 443 inbound and records the connection in its state table.
- The server replies from 10.0.1.20:443 to 198.51.100.7:51544. The security group recognizes the reply as part of a connection it allowed and passes it.
- The network ACL has no memory of the request, so it checks its outbound rules in order. Rule 100 allows traffic to destination port 443. This reply is going to destination port 51544, so rule 100 does not match. The final rule, *, denies it.
- The client never receives the SYN-ACK. It retransmits, then reports a timeout.
The fix is an outbound ACL rule, for example rule 110, allowing TCP to ports 1024-65535 toward the client addresses. Now look at what the existing outbound rule 100 was really for. It lets the server open its own HTTPS connections to the outside, to fetch software updates for example. Those connections have the same problem in mirror image: their replies come back to the server's ephemeral ports. So the inbound ACL also needs a rule for 1024-65535, or the server's updates will time out.
The flow logs for this connection show the pattern that gives a stateless block away. These two records are fictional, but they follow the default VPC Flow Logs field order: version, account, interface, source address, destination address, source port, destination port, protocol (6 means TCP), packets, bytes, start time, end time, action and log status.
2 111122223333 eni-0a1b2c3d4e5f60718 198.51.100.7 10.0.1.20 51544 443 6 4 240 1763715000 1763715060 ACCEPT OK
2 111122223333 eni-0a1b2c3d4e5f60718 10.0.1.20 198.51.100.7 443 51544 6 4 240 1763715000 1763715060 REJECT OK
The request was accepted and its reply rejected. A security group cannot produce that pair, because it never rejects the reply to a connection it accepted. Only a stateless control can. When you see ACCEPT on the way in and REJECT on the way out, go straight to the network ACL.
Second run: the same timeout, a different control
The team adds rule 110 and the site works. A week later, the server is replaced by a new instance built from a launch template, and users time out again. This time the flow log shows the inbound SYN itself marked REJECT, with no outbound record at all.
An inbound REJECT can come from either control, so check them one at a time. The network ACL's inbound rule 100 still allows TCP 443 from anywhere, which clears the ACL. That leaves the security group. The new instance's network interface carries sg-app-internal, a group copied from the template that allows TCP 443 only from 10.0.0.0/16, the internal address range. The rules in sg-web were never wrong. The instance was simply wearing the wrong group. That is the exam's incorrect security group: correct rules attached to the wrong resource, or a rule that names the wrong group as its source.
The second form is common in tiered designs. Suppose a database security group allows TCP 5432 (PostgreSQL) with sg-app as its source, meaning "any interface that carries sg-app". If a new application tier launches with sg-app-v2, every connection it makes to the database is rejected, even though no IP address changed. The fix is to attach the intended group or update the reference. Widening the database rule to a whole address range would also make the error go away, but it would turn a precise rule into an overly permissive one.
One more check before you blame rules at all: rules filter only traffic that has a path. AWS notes that accepting traffic from the internet also requires a route through an internet gateway.[2] Traffic arriving over a VPN (Virtual Private Network) or a dedicated circuit needs its own matching route. A missing route produces the same timeout, but with no REJECT in the flow log.
Bottom line: in a stateless filter, allowing a request says nothing about its reply. ACCEPT inbound with REJECT outbound points to a stateless ACL. A REJECT on the first packet with the ACL cleared points to the security group, and then the first question is whether the right group is attached.
Missing, misconfigured and overly permissive rules: order decides
Traditional ACLs on routers, switches and firewalls work like AWS network ACLs. They evaluate rules from the top, stop at the first match, and send anything that matches no rule to an implicit deny at the end. That one behavior explains most "the rule is right there, so why doesn't it work?" tickets. Here is a fictional ACL on the firewall that controls traffic entering the data center from the campus and from the remote-access VPN pool, with the hit counters the firewall reports.
| Seq | Action | Protocol | Source | Destination | Port | Hits |
|---|---|---|---|---|---|---|
| 10 | Deny | IP | 10.20.0.0/16 | 10.30.0.0/16 | Any | 48,211 |
| 20 | Permit | TCP | 10.20.5.0/24 | 10.30.2.40/32 | 443 | 0 |
| 30 | Permit | UDP | 10.0.0.0/8 | 10.30.1.53/32 | 53 | 912,334 |
| 40 | Permit | TCP | Any | Any | 3389 | 211 |
| (implicit) | Deny | All | Any | Any | Any | not logged |
The first ticket: users in the finance subnet, 10.20.5.0/24, cannot reach the reporting application at 10.30.2.40 on TCP 443. Rule 20 permits exactly that, yet its counter reads zero, and that zero is the clue. A permit that should be busy but never matches is being shadowed: an earlier, broader rule matches the same packets first. Rule 10 denies everything from 10.20.0.0/16 to 10.30.0.0/16, and finance's addresses fall inside both ranges. Rule 10 wins every time, so the firewall never reaches rule 20. Moving rule 20 above rule 10 fixes it. Recreating rule 20 does not.
The second ticket is intermittent. Most name lookups work, but lookups for a few DNSSEC (Domain Name System Security Extensions) signed domains fail. Rule 30 allows DNS (Domain Name System) only over UDP (User Datagram Protocol). When an answer is too large for UDP, the server marks the reply as truncated and the resolver retries over TCP port 53, which rule 30 does not cover. The rule exists, but it is incomplete. That is a misconfigured rule, and its symptom depends on the size of the answer, which is why it looks random.
The third finding comes from no ticket at all. Rule 40 lets any source reach any host on RDP (Remote Desktop Protocol, TCP 3389). Nothing is broken, and that is exactly the trouble with an overly permissive rule: it usually shows up as an audit or scan finding, not an outage. Notice what rule 40 does not do. Because rule 10 sits above it, campus RDP sessions to the data center still match rule 10 first and are denied; a permit cannot cancel a deny that is evaluated before it. What rule 40 does is open RDP to every data center host from every source rule 10 does not cover, such as the whole remote-access VPN pool. Had someone placed rule 40 above rule 10, it would also have overridden that deny for RDP, which is the other way a broad permit hurts: put above a deny, it silently cancels it. The repair follows the evidence. Read the logs for the 211 hits to learn who actually uses the rule, then replace it with a permit from the jump-host subnet alone.
| Bullet | What it is | How it shows up | Typical fix |
|---|---|---|---|
| Missing rule | No rule permits a flow the design needs | Timeout; the flow falls to the implicit deny, often with no log. Common gaps: return traffic through stateless filters, load balancer health-check ranges, outbound DNS, NTP (Network Time Protocol), certificate revocation list (CRL) and Online Certificate Status Protocol (OCSP) traffic, and IPv6 rules when only IPv4 was written | Add the narrowest rule that permits the flow |
| Misconfigured rule | A rule exists but does not match what was intended | Wrong order (shadowing), wrong direction or interface, wrong mask (/23 instead of /24), wrong protocol (TCP instead of UDP, or the reverse), stale object-group members | Correct the field or the position; confirm with the hit counter |
| Overly permissive rule | A rule permits more than the design needs | Audit or scan findings; "any" sources on management ports such as SSH (Secure Shell) and RDP; a temporary allow-any left behind after troubleshooting; a broad permit placed above a deny, which overrides it | Narrow it to the sources and ports seen in the logs; give temporary rules an expiry and a change record |
| ACL issues | The general family on routers, switches and stateless cloud ACLs | Any of the above, plus the stateless return-traffic trap | Read the list top down, as the device does |
| Incorrect security group | Correct rules on the wrong resource, or a reference to the wrong group | A new instance or tier fails while the old one worked | Attach or reference the intended group |
Two misconfigurations deserve a special warning because they fail quietly. A dual-stack client prefers IPv6 when it can, so an ACL written only for IPv4 blocks it even though the IPv4 rule looks perfect. And browsers increasingly use HTTP/3, which runs over UDP port 443. A filter that permits only TCP 443 still works, because browsers fall back to TCP, but you will see denied UDP 443 entries and slightly slower page loads.
Bottom line: read an ordered list the way the device reads it, top down until the first match. A busy rule with zero hits is shadowed, a broad permit above a deny cancels it, and a rule that "fixes everything" is probably too broad.
URL filtering and web categories: policy that reads the request
Address-and-port rules cannot tell a business website from a gambling site on the same cloud provider. That is the job of URL filtering and web content filtering. Microsoft's documentation for Azure Firewall Premium gives a clear model of how these features work and fail, and other vendors' secure web gateways behave much the same way.
The first distinction is between filtering on a name and filtering on a whole URL (Uniform Resource Locator). Filtering on the FQDN (fully qualified domain name) matches only the host name, such as www.example.com. Azure describes URL filtering as extending FQDN filtering to the entire URL, including the path.[3] For plain HTTP, the firewall can read the path directly. For HTTPS it cannot, because the path travels inside the encrypted session. Without decryption, the firewall sees only the host name the client announces in the TLS handshake, and Azure notes that without TLS inspection it cannot see data inside the TLS tunnel.[3] Azure requires TLS inspection to be enabled at the application rule level before URLs can filter HTTPS traffic.[3] So a rule that denies www.example.com/games/ but allows the rest of the site works for HTTP and silently fails for HTTPS until inspection is on.
Web categories add a second layer. They let you allow or deny whole groups of sites, such as social networking or gambling. Categories fail in predictable ways:
- A brand-new site is blocked. Azure files sites that have not been categorized yet, such as new websites, under Uncategorized.[4] A policy that denies Uncategorized blocks a supplier's portal registered last week.
- A site is in the wrong category. Azure lets administrators request a category change when they believe a name or URL belongs elsewhere.[3] The request takes time, so an exception is the short-term fix.
- An exception does not take effect. Azure builds exceptions as separate allow or deny rule collections with a higher priority than the category rule.[3] In Azure, a higher priority means a lower priority number, and lower numbers are evaluated first. Give the exception a larger priority number than the category deny, so that it is evaluated later, and the category deny still wins. That is the shadowing problem again, in a new console.
- Some traffic is never decrypted. Azure excludes certain traffic, such as employee health data, from TLS termination for privacy and compliance reasons.[3] Path-based rules cannot apply to those sites.
| Priority | Collection | Action | Match |
|---|---|---|---|
| 100 | Allow-Exceptions | Allow | supplier-portal.example.net |
| 200 | Deny-Categories | Deny | Categories: Gambling, Uncategorized |
| 300 | Allow-General | Allow | All other categories |
TLS inspection itself creates a family of tickets that look like certificate problems. To decrypt, the firewall ends the client's session and opens its own session to the server. Using a CA (certificate authority) certificate supplied by the customer, it generates a substitute certificate for each site and hands that to the client.[3] Every client must therefore trust that internal CA. A managed laptop that received the CA through policy works. A personal phone that never received it shows a warning for every HTTPS site. Applications that pin the certificate they expect will refuse the substitute outright and need to be put on a do-not-decrypt list.
Geo-restriction: rules keyed on where an address seems to be
Geo-restriction allows or blocks traffic according to the country the source IP address is believed to come from. A firewall, WAF, CDN (Content Delivery Network) or identity provider looks the address up in a geolocation database, then applies a rule such as "allow only addresses located in the United States and Canada." The mechanism explains every common failure, because the device judges the address, not the person.
- Travelers. A sales representative in Lisbon on hotel Wi-Fi presents a Portuguese address and is blocked by a North-America-only rule.
- Egress points. A user in Chicago whose traffic leaves through a VPN concentrator, a SASE (Secure Access Service Edge) point of presence or a cloud NAT (Network Address Translation) gateway in another country appears to come from that country.
- Stale or coarse data. Address blocks get reassigned, and mobile carriers may route customers through gateways far from where they are, so a lookup can be wrong.
To troubleshoot, find two facts in the enforcing device's log: the source address it actually saw, after any NAT or proxy, and the country its database assigned to that address. If both match the policy, the policy is working as written and the decision is a business one. The fixes are exceptions for known corporate egress ranges, routing travelers through a corporate access path, or updating the geolocation feed. Keep one limit in mind when designing with it. An attacker can rent a server or a proxy in an allowed country, so geo-restriction cuts noise rather than stopping a determined adversary.
Denial of service: DDoS, SYN floods and what each exhausts
CISA (the Cybersecurity and Infrastructure Security Agency) warns that DoS symptoms can resemble ordinary availability problems, such as a technical fault or an administrator doing maintenance.[5] So the first troubleshooting task is to decide whether you face an attack at all. A distributed denial-of-service attack is one where many machines work together against one target.[5] Those machines are usually a botnet of compromised devices. What matters for diagnosis is which resource the attack uses up, because that decides where you can stop it.
| Type | What runs out | Evidence you see | Where it must be stopped |
|---|---|---|---|
| Volumetric flood (UDP, ICMP, reflection and amplification) | Bandwidth on the link into your network | The inbound link pinned near capacity; very many source addresses; in reflection attacks, responses from one service port, such as UDP 53 | Upstream, at the ISP or a scrubbing service; your own firewall sits behind the already full link |
| SYN flood (state exhaustion) | Connection state: a server's queue of half-open connections, or a firewall's or load balancer's session table | Thousands of half-open connections; SYNs that never complete the handshake; the link may be far from full | At the stateful edge device or the server: SYN cookies, a SYN proxy, session limits, rate limits |
| Application-layer (layer 7) flood | CPU, database capacity, application threads | Normal-looking HTTP requests at high rates against costly pages such as login or search | At the WAF, CDN or application: per-client rate limits, challenges, caching |
CISA's DDoS quick guide groups ICMP, SYN and UDP floods as typical layer 3 and layer 4 volumetric attacks.[6] It describes layer 7 attacks as hard to detect because they resemble legitimate website traffic.[6] The table treats the SYN flood separately, as the exam's objective does, and the two views do not conflict. A very large SYN flood can fill a link like any other flood. For diagnosis, though, the deciding question is which resource ran out first: bandwidth or connection state. A SYN flood often fills state tables long before the link is busy, and that difference is why its fix differs from the fix for a bandwidth flood.
A SYN flood works against the TCP three-way handshake. A server that receives a SYN replies with a SYN-ACK, stores a half-open entry and waits for the final ACK. CISA describes the attack as excessive connection requests that never confirm the connection.[6] The SYNs usually carry forged source addresses, so the SYN-ACKs go to machines that never asked and the final ACK never comes. Each entry waits for its timeout, the queue fills, and real users' SYNs are turned away. Because the sources are forged, blocking the addresses in the SYN packets does not stop the flood and can block innocent hosts.
The standard defense removes the stored state. With SYN cookies, the server encodes the connection's details in the sequence number of its SYN-ACK and keeps nothing until a valid ACK comes back carrying that number. A SYN proxy on a firewall or load balancer does the same work on the server's behalf. CISA names SYN cookies among the protections a proxy can apply against this kind of attack.[6]
Reflection needs a separate warning. In a reflection attack, the attacker forges the victim's address on small requests to public servers, which then send larger replies to the victim. CISA, the FBI and MS-ISAC (the Multi-State Information Sharing and Analysis Center) remind defenders that reflection traffic typically comes from legitimate public servers.[7] Blocking those servers one by one is slow, and it may cut you off from services you need.
Worked example: two slow websites, one changed reading
A retailer's public site slows to a crawl at 11:00. The network team compares the current readings with the baseline it keeps, which is the first habit the joint DDoS guide recommends: analyze traffic regularly to establish normal patterns.[7]
| Measure | Baseline | Run A | Run B |
|---|---|---|---|
| Inbound utilization of the 10 Gbps internet link | 1.8 Gbps | 9.9 Gbps | 1.6 Gbps |
| Dominant inbound traffic | TCP 443 | UDP from source port 53, about 40,000 public sources | TCP SYN to port 443 |
| Half-open sessions on the load balancer | about 30 | about 30 | about 250,000, with the session table at its limit |
| Web server CPU | 25 percent | 10 percent | 8 percent |
Run A. The link is full, the traffic is DNS responses that nobody inside asked for, and the servers are idle. This is a volumetric reflection DDoS. Any filter you build on your own edge firewall acts after the congested link, so legitimate packets have already been lost by the time they reach it. The effective action is upstream. The joint guide advises activating DDoS mitigation services from your ISP or a specialist provider.[7] CISA describes such services as detecting abnormal flows and redirecting traffic away from your network so it can be filtered.[5] Meanwhile, collect evidence, including timestamps, addresses, packet captures and logs.[7]
Run B. Change one reading and the answer flips. The link sits below baseline and the servers are idle, but the load balancer's session table is full of half-open connections. This is a SYN flood exhausting state, not bandwidth, and calling the ISP first would be the wrong move. Enable SYN cookies or the SYN proxy on the load balancer, set per-source session and rate limits, and keep watching the half-open count. The joint guide lists rate limits and ACLs among the immediate filtering options.[7] On a Linux server, the command ss -tan state syn-recv lists connections stuck in the half-open state, which gives you the same evidence at the host.
Also check what an attack would not explain. A marketing email that sends a hundred thousand real customers to the site at once can fill a link too, but those clients complete their handshakes and request ordinary pages. CISA's view is that traffic monitoring and analysis is the best way to detect and identify a DoS attack,[5] and this comparison is that analysis in practice.
Bottom line: name the exhausted resource before choosing the fix. If bandwidth is gone, you need upstream help. If state is gone, you need SYN cookies, a SYN proxy and session limits. If the application is overloaded by normal-looking requests, you need WAF and rate-limiting controls.
Authentication and authorization failures: who you are versus what you may do
Authentication proves identity. Authorization decides what that proven identity may do. The exam groups them in one bullet, but their evidence is different. A web application that answers HTTP 401 is saying "I do not know who you are", while 403 means "I know who you are, and the answer is no." On a campus network, an authentication failure leaves the user unconnected or in a guest VLAN. An authorization failure connects the user, but to the wrong VLAN, or with the wrong ACL applied.
| Bullet | Which side | Typical evidence | Typical fix |
|---|---|---|---|
| Password issues | Authentication | Bad-password events, expired-password results, lockouts, failures only on one device or service | Find the source of the bad attempts; reset or update stored credentials; unlock only after the source is fixed |
| Incorrect group membership | Authorization | The login succeeds, but the policy decision log shows the user matched a different rule or role | Correct the membership, then make the user get a fresh token or session |
| Mismatched secrets | Authentication between devices or applications | A RADIUS or TACACS+ server that is "not responding" while it is running, IPsec (Internet Protocol Security) authentication failures, rejected API (Application Programming Interface) client calls | Set the same secret on both ends, ideally from a secrets manager |
Password issues. The classic case is an account that locks every half hour after a password change. The cause is almost never the user retyping a password. A phone's mail app, a mapped drive, a saved Wi-Fi profile, a scheduled task or a service account still holds the old password and keeps retrying it. The directory's lockout events, or the identity provider's sign-in log, name the source device or client application. Fix that device first, or the account locks again minutes after you unlock it. Other password causes include expired passwords, which some VPN clients cannot prompt the user to change, and a lag before a new password reaches a cloud directory that is synchronized from on-premises. Password policy design feeds these tickets too. NIST (the National Institute of Standards and Technology) observes that people struggle to memorize complex, arbitrary secrets, so they pick guessable ones.[8] It also reports that breach analyses show composition rules help less than once thought.[8]
Incorrect group membership. Most systems read group memberships once, at sign-in. A Kerberos ticket, a SAML (Security Assertion Markup Language) assertion or an OIDC (OpenID Connect) token records the groups the user held when it was issued. Add the user to a group and an existing session still carries the old list until it is renewed. That is why "I added her ten minutes ago and she still gets 403" is so common, and why a fresh sign-in fixes it. Other causes are nested groups that an application does not expand, a dynamic group rule that does not match the user's attributes, and provisioning delay before a SCIM (System for Cross-domain Identity Management) connector copies the change into a SaaS (Software as a Service) application. Always check membership as the deciding system saw it, in its own log or in the token's claims, not only in the directory console.
Mismatched secrets. Many trusts between devices and applications rest on a shared secret: the RADIUS secret between a switch or wireless controller and its server, the TACACS+ key, an IPsec PSK (Pre-shared Key), a routing protocol's authentication key, or an application's API client secret. These do not all fail the same way. For RADIUS, TACACS+, IPsec and routing-protocol keys, the secret itself never crosses the wire. Each side uses it to compute an integrity check, or to encrypt part of the message, and the other side repeats the calculation. When the two ends hold different values, the results never match, and the receiver often discards the message, so the sender sees a timeout rather than a clear error. An API client secret is different: the client presents it to the server, directly or to obtain a token, so a mismatch shows up as an explicit rejection of the credential, such as an invalid-client error or HTTP 401.
Worked example: the RADIUS server that is up but "not responding"
A new access switch is set up for 802.1X port authentication. No user on the floor can connect. These fictional logs are what the team finds.
Fictional example: switch log
Nov 21 08:02:11 sw-floor3 AUTH: RADIUS server 10.10.5.5:1812 not responding (3 retries)
Nov 21 08:02:11 sw-floor3 AUTH: marking 10.10.5.5 dead, trying 10.10.5.6
Nov 21 08:02:41 sw-floor3 AUTH: RADIUS server 10.10.5.6:1812 not responding (3 retries)
Fictional example: RADIUS server log on 10.10.5.5
Nov 21 08:02:05 radius1 Dropping request from client 10.10.0.2: Message-Authenticator check failed
Reason through it. The server log proves the requests arrive, so no ACL is blocking UDP 1812 and the route works. The server recognizes 10.10.0.2 as a client, so a client entry exists. It drops the packets because the integrity check, which is keyed with the shared secret, fails. Because the server drops rather than rejects, the switch hears nothing and reports a dead server. It even fails over to the second server, which has the same configuration and the same problem. Diagnosis: mismatched secrets. Re-enter the secret on the switch and test with one port. Depending on the server and the authentication method, a wrong secret can instead show up as rejects that look like wrong passwords, so a whole floor of "bad passwords" at once points to the same fault.
Now change one input. Suppose the server log instead reads Ignoring request from unknown client 10.10.9.2. The switch is sending its requests from its management loopback, 10.10.9.2, but the server knows the switch only as 10.10.0.2. The secret may be perfect. This is a missing client definition, which behaves like a missing rule. Fix it by registering the address the switch really uses, or by setting the switch's RADIUS source interface. The switch shows the same "not responding" message in both runs, so you can only tell the faults apart from the server's side.
Certificate issues: the checks a server certificate can fail
When a TLS client connects, it negotiates a protocol version and cipher suite and receives the server's certificate chain. It then runs a series of checks on the chain. Most certificate bullets in the objective are one of those checks failing. The fictional certificate below shows which field feeds which check.
| Field | Value | Check it feeds |
|---|---|---|
| Subject | CN=portal.example.com | Display only; modern browsers do not use it for name matching |
| Subject Alternative Name (SAN) | DNS:portal.example.com, DNS:www.portal.example.com | Name match |
| Issuer | CN=Example Issuing CA 2 | Chain building and trust |
| Not Before / Not After | 2026-11-20 00:00 UTC / 2027-02-18 23:59 UTC | Validity period |
| Signature algorithm | sha256WithRSAEncryption | Algorithm and hash acceptability |
| Authority Information Access | URLs for the issuer's certificate and the OCSP responder | Fetching a missing intermediate; revocation checking |
| CRL Distribution Points | URL of the issuer's certificate revocation list | Revocation checking |
| Bullet | What failed | Typical evidence | Typical fix |
|---|---|---|---|
| Mismatch | The name the client asked for is not in the SAN; or a load balancer or reverse proxy serves the wrong certificate; or the private key does not belong to the certificate being installed | Name-mismatch warning; the default certificate is served to clients that do not send SNI (Server Name Indication) | Reissue with the correct SAN entries, or bind the right certificate to the listener |
| Expired certificates | The current time is outside Not Before to Not After, either really or because the client's clock is wrong | Expired or not-yet-valid errors, often on many clients at once on one date, or on one device with a bad clock | Renew, ideally automatically with ACME (Automated Certificate Management Environment); fix NTP on the client |
| Revoked certificates | The CA has withdrawn the certificate, or the client cannot reach revocation information and its policy says fail | Revoked errors; slow handshakes or failures when OCSP or CRL URLs are blocked | Replace the certificate; allow outbound CRL and OCSP traffic |
| Trust issues | The chain does not lead to a root in the client's trust store | "Unable to get local issuer certificate"; warnings only on unmanaged devices; failures only behind TLS inspection | Serve the full chain; distribute the private or inspection CA to clients |
| Hash incompatibility | One side signs or hashes with an algorithm the other will not accept | Modern clients reject SHA-1 (Secure Hash Algorithm 1) signed certificates; legacy appliances fail against SHA-256 or ECDSA (Elliptic Curve Digital Signature Algorithm) certificates; IPsec or SSH negotiation finds no common integrity algorithm | Reissue with an algorithm both sides support; upgrade or isolate the legacy device |
| TLS issues | Client and server share no protocol version or cipher suite; or, in mutual TLS, the client certificate is missing or untrusted | A protocol_version or handshake_failure alert before any certificate is checked; a server-side rejection of the client's certificate | Align versions and suites; retire TLS 1.0 and 1.1, which the IETF (Internet Engineering Task Force) deprecated in 2021 |
Revocation has a subtlety the exam likes to probe. If a client cannot get current revocation information, because the OCSP responder and CRL location are unreachable, NIST notes that it will either end the connection or accept a certificate that might be revoked.[9] NIST leaves that choice to organizational policy.[9] So a firewall that blocks outbound OCSP can produce either symptom: hard failures under a strict policy, or slow handshakes that eventually succeed under a lenient one. NIST's 2019 revision of its TLS guidelines requires status information for TLS server certificates to be available through OCSP.[9] For CRLs there is no confidentiality argument for blocking access either: RFC 5280 states that certificates and CRLs need not be kept secret.[10]
Trust comes from the trust store. Browsers and operating systems ship with root certificates from CAs that meet published requirements. NIST describes the CA/Browser Forum's requirements for publicly trusted CAs as the condition for those CAs staying in browser trust stores.[9] A certificate from your own private CA is trusted only by devices you have given that CA's root. The same is true of a TLS inspection CA. Between the root and the server's certificate there is usually an intermediate CA, and the server is supposed to send it. The Authority Information Access extension tells a client where to find information about a certificate's issuer,[10] so some clients quietly fetch a missing intermediate and others do not. That is why a site can work in one browser and fail in a command-line tool or an older appliance.
Mismatch has a device-side form too. Any proxy, load balancer or WAF that terminates HTTPS must hold the site's certificate and its private key. CISA's quick guide makes this point about proxies.[6] When several sites share one listener, the device chooses a certificate by the SNI name in the client's handshake. A client that sends no SNI, or a listener with the wrong certificate bound, gets the default certificate and a name mismatch.
Worked example: one portal, two certificate failures
Users report that portal.example.com fails from a monitoring script but works in most browsers. The engineer checks it from a workstation with OpenSSL, sending the name in SNI just as a browser would.
$ openssl s_client -connect portal.example.com:443 -servername portal.example.com
(certificate chain and handshake details omitted)
Verify return code: 20 (unable to get local issuer certificate)
Code 20 means the client could not find the issuer of a certificate in the chain among the roots it trusts. The omitted chain section shows the server sent only its own certificate, at depth 0, with no intermediate. Browsers that fetch the intermediate through Authority Information Access paper over the fault, and the script does not. The fault is a trust issue caused by an incomplete chain, not a bad certificate. The fix is to install the full chain (the server certificate followed by Example Issuing CA 2) on the server or load balancer. Importing the intermediate onto every client would treat the symptom and leave the next tool to fail.
After the fix, s_client reports Verify return code: 0 (ok), yet the lobby kiosks still show an error: the certificate is not yet valid. Change of input, change of family. The new certificate's Not Before is 2026-11-20 00:00 UTC. The kiosks' clocks read 18 November because the kiosk VLAN's ACL has no rule for outbound NTP (UDP 123), so the clocks drifted after a power cut. The certificate is fine. A missing rule broke time, and broken time broke validation. Add the NTP rule, let the clocks correct, and the "certificate problem" disappears.
TLS issues and hash incompatibility: when negotiation fails first
Microsoft's Azure Firewall documentation sums up what TLS provides: privacy, integrity and authenticity between applications, using certificates.[3] Before a client checks a single certificate field, though, the two sides have to agree on how they will talk. The TLS handshake is a negotiation, and the exam's "TLS issues" and "hash incompatibility" bullets describe what happens when it finds no common ground. Here is the order of events, reduced to the parts that fail.
- Versions. The client's first message, the ClientHello, lists the TLS versions it will accept. The server picks the highest version both support and names it in its reply, the ServerHello. If the lists do not overlap, one side sends a protocol_version alert and closes the connection.
- Cipher suites. The ClientHello also lists cipher suites. A cipher suite is a named bundle of algorithms: how keys are agreed, how data is encrypted and which hash protects integrity. If the server accepts none of the client's suites, the handshake ends with a handshake_failure alert.
- Signature algorithms. The client lists, in its signature_algorithms extension, the signature and hash pairs it accepts, for example RSA or ECDSA with SHA-256. The server must sign its part of the handshake with one of those pairs, and the certificates it sends must be signed with algorithms the client is willing to verify.
- Certificate checks. Only then does the client test the name, dates, chain, trust and revocation, as in the previous sections.
- Client certificate, if required. In mutual TLS, the server also asks for the client's certificate and validates it the same way.
Hash incompatibility means one side relies on a hash algorithm, inside a signature or an integrity check, that the other side will not accept or does not implement. It fails in two directions. Too old: practical collision attacks against SHA-1 have been demonstrated, so current browsers and operating systems refuse certificates signed with it, and devices with certificates issued years ago suddenly fail. Too new: old firmware may not understand SHA-256, SHA-384 or ECDSA, so a freshly reissued certificate breaks a legacy client that worked yesterday. The idea reaches beyond TLS. Two IPsec peers whose proposals share no integrity algorithm fail with a "no proposal chosen" result, and an SSH client and server with no common message authentication code algorithm refuse to connect.
The stage at which the handshake stops separates these faults from trust or expiry faults. A version or cipher-suite failure ends with an alert straight after the hello messages, before any certificate is judged, so renewing or replacing the certificate changes nothing. A hash incompatibility on a certificate, like an expired or untrusted certificate, appears after the certificate arrives, but the client's error names a rejected or weak signature algorithm rather than a date or an unknown issuer.
Worked example: the building controller that broke twice
A desktop policy raises the minimum TLS version in staff browsers to TLS 1.2. The next morning, the facilities team cannot open the web interface of a building-management controller, bms.example.com. An engineer reproduces the failure from a workstation whose OpenSSL configuration follows the same policy, with openssl s_client -connect bms.example.com:443 -servername bms.example.com. The table summarizes what the handshake showed before and after the vendor's firmware update.
| Stage | Run 1: original firmware | Run 2: updated firmware |
|---|---|---|
| Versions the client offers | TLS 1.3, TLS 1.2 | TLS 1.3, TLS 1.2 |
| Versions the controller supports | TLS 1.0, TLS 1.1 | TLS 1.0, TLS 1.1, TLS 1.2 |
| Version agreed | None | TLS 1.2 |
| Cipher suite agreed | None | ECDHE-RSA-AES128-GCM-SHA256 |
| Certificate received | No | Yes: CN=bms.example.com, signature algorithm sha1WithRSAEncryption |
| Where it stopped | protocol_version alert straight after the hello messages | The client rejected the certificate's SHA-1 signature during verification |
Run 1. The client offered only TLS 1.3 and 1.2, and the controller spoke only TLS 1.0 and 1.1. No version overlapped, so the handshake ended with a protocol_version alert before any certificate was looked at. This is a TLS issue: a version mismatch. Renewing the certificate would change nothing, and lowering the minimum version for every browser would reopen old protocols across the company to rescue one device. The better options, in order: update the controller's firmware; if no update exists, place the controller on an isolated management network and publish it through a reverse proxy that speaks modern TLS to staff; as a last resort, a documented exception for that one host only.
Run 2. The vendor's update adds TLS 1.2. Now the versions overlap, a cipher suite is agreed and the certificate arrives, so negotiation succeeds. The failure has moved later. The controller still presents its factory certificate, signed with SHA-1, and the client refuses that signature. One input changed, and the family changed with it, from a TLS version mismatch to a hash incompatibility. The fix is to reissue the controller's certificate from the internal CA with a SHA-256 signature. Relaxing the clients' algorithm policy would repeat the mistake avoided in Run 1.
Mutual TLS adds one more place to fail. The server asks for a client certificate, so the client must hold one that chains to a CA the server trusts. NIST's authentication guidelines name client-authenticated TLS as one way to build a mutually authenticated channel.[8] NIST's TLS guidelines expect the server to work out which certificate policies a client certificate is trusted for, by validating its certification path.[9] The two common faults look like this in a fictional API gateway log.
Fictional example: API gateway TLS log
Nov 21 10:12:44 api-gw tls client=192.0.2.40 sni=api.example.com mtls=required client_cert=none result=reject
Nov 21 10:13:02 api-gw tls client=192.0.2.41 sni=api.example.com mtls=required client_cert="CN=sensor-17" issuer="CN=Old Device CA" result=reject reason=unknown_ca
The first client sent no certificate at all, often because the software looked in the wrong certificate store or the device's certificate expired and was never renewed. The second sent one, but from a CA missing from the gateway's trust store: a trust issue seen from the server's side. Neither is a mismatched secret, because no shared secret is involved; the fix is to enroll or renew the device certificate, or to add the issuing CA to the gateway's trust store if policy allows it.
Bottom line: treat a certificate or TLS error as a statement about which check failed, then test the inputs to that check. An alert before any certificate means versions or cipher suites. A rejected signature algorithm means hash incompatibility. For names, check the SAN and the SNI; for dates, the date fields and the client's clock; for revocation, CRL and OCSP reachability; for trust, the chain and the trust store, on whichever side is doing the validating.
Exam cues: what the stem says and where it points
| The question stem says | Points to | Commonly confused with |
|---|---|---|
| Inbound allowed in the security group and ACL, still times out; flow log shows outbound REJECT | Stateless network ACL missing an outbound ephemeral-port rule | Security group problem (security groups pass replies automatically) |
| A replacement instance or new tier fails; the old one worked; no addresses changed | Incorrect security group attached or referenced | Missing network ACL rule |
| The permit exists but its hit counter is zero | Misconfigured rule order: shadowed by an earlier rule | Missing rule |
| Everything works; an audit flags 0.0.0.0/0 on SSH or RDP | Overly permissive rule | Misconfigured rule |
| A block page for a site registered last week | Web category filtering: Uncategorized denied | Geo-restriction |
| A path-based block works on HTTP but not on HTTPS | URL filtering without TLS inspection | Missing firewall rule |
| Only travelers, or only users behind one VPN or SASE egress, are blocked | Geo-restriction acting on the observed source address | Incorrect group membership |
| Link saturated, thousands of sources, unsolicited UDP 53 replies | Volumetric reflection DDoS; mitigate upstream | SYN flood |
| Link normal, session table full of half-open connections | SYN flood; use SYN cookies, a SYN proxy and session limits | Volumetric DDoS |
| The login succeeds, then 403 or the wrong VLAN, right after a group change | Incorrect group membership or a stale token | Password issue |
| The account locks repeatedly after a password change | Password issue: a device retrying the old stored password | Brute-force attack |
| The device says its RADIUS server is not responding, while the server receives and drops the requests | Mismatched shared secret | ACL blocking UDP 1812 |
| Name-mismatch warning | Certificate mismatch: SAN, SNI, or the wrong certificate on the listener | Trust issue |
| "Unable to get local issuer", or warnings only on unmanaged devices | Trust issue: incomplete chain or an undistributed CA | Expired certificate |
| The handshake ends with a protocol version alert before any certificate is checked | TLS issue: no common version (or, with handshake_failure, no common cipher suite) | Expired or revoked certificate |
| Negotiation completes, then the client rejects a SHA-1 signed certificate | Hash incompatibility | Trust issue |
| A gateway that requires client certificates rejects a device that sends none | Mutual TLS client-certificate failure | Mismatched secrets |
Common misconceptions
- "If I allowed it inbound, the reply is allowed too." Only a stateful filter remembers the request. A stateless ACL judges the reply on its own and needs an outbound rule for the client's ephemeral ports.
- "A timeout means the server is down." A timeout means something stayed silent. Silent drops by firewalls and ACLs, missing routes and asymmetric return paths all look identical from the client, so capture on both sides before you blame the server.
- "I can stop a DDoS by blocking the source addresses on my firewall." A volumetric flood fills the link before your firewall ever sees it, reflection sources are legitimate public servers, and SYN flood sources are usually forged. The fix has to match the resource being exhausted, and for bandwidth that means upstream help.
- "Adding the user to the group fixes access straight away." Tokens and tickets carry the groups the user held when they were issued. The change takes effect at the next sign-in or token renewal, or after provisioning catches up.
- "A certificate error means the certificate is bad." Many certificate errors come from somewhere else: a client clock with no NTP, a server that omits the intermediate, an inspection CA missing from a trust store, or a firewall blocking OCSP. And a handshake that ends on a protocol version alert never reached the certificate at all.
- "A temporary allow-any rule is harmless while I troubleshoot." Temporary rules outlive the ticket, and a broad permit near the top of a list quietly cancels every deny below it. Give a diagnostic rule an expiry and remove it in the same change.
Pulling it together
- A connection refused means something answered with a reset. A timeout means something dropped the packet or its reply silently. Captures on both sides of a filter show which direction failed.
- Security groups and Azure NSGs are stateful, and AWS network ACLs are stateless. A flow log showing inbound ACCEPT and outbound REJECT means a stateless ACL is missing a rule for ephemeral ports 1024-65535.
- Ordered ACLs stop at the first match and end in an implicit deny, which often does not log. A needed permit with zero hits is shadowed by an earlier, broader rule, and a broad permit placed above a deny cancels it.
- An incorrect security group means correct rules attached to the wrong resource, or a rule that references the wrong group. An overly permissive rule usually appears as an audit finding, not an outage.
- URL path filtering on HTTPS requires TLS inspection, new sites fall into Uncategorized, and a category exception works only with a lower priority number than the category deny. Geo-restriction judges the source address seen after NAT, VPN or SASE egress, so travelers and remote egress points trigger it.
- Volumetric DDoS exhausts bandwidth and must be filtered upstream. A SYN flood exhausts connection state and is countered with SYN cookies, a SYN proxy and session limits. Layer 7 floods exhaust the application and need WAF controls and rate limits.
- HTTP 401 is an authentication failure and 403 an authorization failure. Repeated lockouts after a password change come from a device holding the old password, group changes apply only to new tokens or sessions, and a mismatched RADIUS secret usually makes the device report a server timeout.
- A TLS version or cipher-suite mismatch ends the handshake with a protocol_version or handshake_failure alert before any certificate is checked. Hash incompatibility rejects a signature algorithm such as SHA-1, or a newer one that legacy firmware cannot verify.
- The other certificate failures each have their own inputs: a name mismatch means the SAN and SNI; expiry, the dates and the client's clock; revocation, the reachability of OCSP and CRL; trust, the full chain and the trust store, including the server's store in mutual TLS.
Sources
- CompTIA. (2023). CompTIA CloudNetX CNX-001 certification exam: Exam objectives (Document version 5.0). lecbyo.files.cmp.optimizely.com
- AWS re:Post Knowledge Center. (n.d.). Resolve connection issues caused by security group or network ACL inbound rules. repost.aws
- Microsoft Learn. (n.d.). Azure Firewall Premium features. learn.microsoft.com
- Microsoft Learn. (n.d.). Azure Firewall web categories. learn.microsoft.com
- CISA. (n.d.). Understanding Denial-of-Service Attacks (ST04-015). cisa.gov
- CISA. (2020). DDoS Quick Guide. cisa.gov
- CISA, FBI, MS-ISAC. (2024). Understanding and Responding to Distributed Denial-of-Service Attacks. cisa.gov
- NIST. (2025). NIST SP 800-63B-4: Digital Identity Guidelines: Authentication and Authenticator Management. pages.nist.gov
- Kerry McKay, David Cooper. (2019). Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations (SP 800-52 Rev. 2). NIST. nvlpubs.nist.gov
- D. Cooper et al. (2008). RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. IETF. rfc-editor.org
- Key terms
- Stateful filtering
- Packet filtering that records allowed connections in a state table and automatically admits their replies; AWS security groups and Azure network security groups work this way.
- Stateless filtering
- Packet filtering that judges every packet against the rules with no memory of earlier packets, so request and reply each need their own allow rule; AWS network ACLs work this way.
- Ephemeral port
- The temporary source port a client operating system picks for an outgoing connection; replies return to it, so stateless filters must allow the ephemeral range (AWS guidance uses 1024-65535).
- Shadowed rule
- A rule in a first-match list that never takes effect because an earlier, broader rule matches the same traffic first; a zero hit counter on a rule that should be busy is the usual sign.
- SYN flood
- A denial-of-service attack that sends many TCP connection requests that never complete the handshake, filling a server's or firewall's table of half-open connections so legitimate users are refused.
- SYN cookie
- A defense against SYN floods in which the server encodes connection details in its SYN-ACK sequence number and stores no state until a valid final ACK returns.
- Subject Alternative Name
- The certificate extension listing the DNS names and addresses a certificate is valid for; modern clients match the requested host name against it, and a missing name causes a mismatch error.
- Certificate revocation checking
- A client's check, using a CRL or an OCSP responder, of whether the issuing CA has withdrawn a certificate before its expiry date; unreachable revocation sources cause either hard failure or acceptance, depending on policy.
- Hash incompatibility
- A failure in which one side signs or protects data with a hash algorithm the other side refuses or cannot process, such as a SHA-1 signed certificate rejected by a modern client, or a SHA-256 certificate an old appliance cannot verify.
- RADIUS shared secret
- A secret configured on both a network device and its RADIUS server and used to protect and integrity-check their messages without being sent itself; a mismatch makes the server discard or reject requests while the device reports a timeout.