1. Networking foundations
Start with the layered model: each layer solves a narrower problem and hands a service to the layer above it.
OSI model: a troubleshooting lens
What each device principally decides
| Device | Primary decision | Key state |
|---|---|---|
| Repeater / hub | Regenerate or repeat bits | Little/no forwarding intelligence |
| Layer-2 switch | Which local port should receive this Ethernet frame? | MAC/CAM table, VLAN membership |
| Router | Which next hop best reaches this destination IP network? | Routing table / forwarding information base |
| Firewall | Does policy permit this flow or packet? | Rules, state table, application/security context |
| Load balancer | Which backend should receive this service request? | Pool health, policy, session state |
| SIEM | Do multiple events collectively indicate a security-relevant pattern? | Normalized events, rules, baselines, threat context |
2. Major protocol atlas
Filter by name, layer, or security role. Ports shown are conventional defaults, not guarantees.
3. Encapsulation laboratory
Watch application data acquire transport, IP, and Ethernet information before transmission.
Build the protocol data unit
Headers answer different questions
| Header / field | Question answered |
|---|---|
| Ethernet destination MAC | Which interface on this local L2 segment should accept the frame? |
| IP destination | Which logical host/network is the packet trying to reach? |
| TCP/UDP destination port | Which transport endpoint/service should receive the payload? |
| TCP sequence/ACK | Which bytes have been sent and acknowledged? |
| Ethernet FCS | Was the received frame corrupted at the link layer? |
4. Ethernet, switching, VLANs, and local delivery
A switch learns source MAC addresses and forwards based on destination MAC addresses within a VLAN.
MAC-learning switch simulator
Learned MAC/CAM table
| MAC | Port | Status |
|---|---|---|
| No entries learned yet. | ||
VLAN mental model
A VLAN partitions a Layer-2 switching domain. Devices in different VLANs require a Layer-3 function—router or multilayer switch—to communicate, subject to policy.
5. IP addressing, subnetting, and routing
IP provides logical addressing. Routing uses the most-specific matching route, not the first route that merely “looks close.”
IPv4 subnet calculator
| Network | — |
|---|---|
| Subnet mask | — |
| Broadcast | — |
| Usable host range | — |
| Addresses / conventional usable hosts | — |
Longest-prefix routing simulator
| Destination | Next hop/interface |
|---|---|
| 10.10.20.0/24 | G0/2 → Lab subnet |
| 10.10.0.0/16 | G0/1 → Campus core |
| 10.0.0.0/8 | G0/0 → Enterprise WAN |
| 0.0.0.0/0 | WAN → ISP default |
Static routing is administrator-defined. OSPF is an interior gateway protocol commonly used within an autonomous system. BGP exchanges reachability and policy between autonomous systems and is foundational to Internet interdomain routing.
6. Core network services and transport behavior
Most real transactions require several supporting protocols before the application request can even begin.
DHCP DORA animation
For conventional IPv4 DHCP, a new client may progress through Discover → Offer → Request → Acknowledge.
DNS resolution walk-through
TCP connection state
TCP is connection-oriented and reliable. Its three-way handshake establishes bidirectional sequence-number context before application data is exchanged.
TCP, UDP, and QUIC
| Property | TCP | UDP | QUIC |
|---|---|---|---|
| Connection semantics | Connection-oriented byte stream | Datagram-oriented | Secure multiplexed transport over UDP |
| Reliability | Built in | Application decides | Built in at QUIC layer |
| Ordering | Ordered byte stream | No inherent ordering | Per-stream handling avoids some TCP head-of-line effects |
| Security | TLS layered above for common secure use | Not inherent | TLS 1.3 integrated into QUIC design |
7. Secure communications: TLS, PKI, SSH, and VPNs
Different security technologies protect different layers and scopes. “Encrypted” is not a complete architecture description.
TLS 1.3 conceptual handshake
VPN tunnel visualizer
A VPN creates a protected logical path across an untrusted or less-trusted network. IPsec commonly protects at the IP layer; TLS-based VPNs protect selected application/transport exchanges depending on design.
| Use case | Typical pattern | What is protected |
|---|---|---|
| Site-to-site | Gateway ↔ gateway | Traffic between protected networks |
| Remote access | User endpoint ↔ VPN gateway | Selected or all client traffic by policy |
| Host-to-host | Endpoint ↔ endpoint | Traffic between specific systems |
IPsec / IKE
IPsec can provide confidentiality, integrity, authentication, and anti-replay services at the IP layer. IKE negotiates security associations and keying material.
SSH
Secure Shell protects remote interactive sessions and supports secure channels such as port forwarding and SFTP. Host-key verification is central to resisting impersonation.
mTLS
Mutual TLS authenticates both sides with certificates. It is common in service-to-service environments where both client and server identities must be cryptographically established.
8. Firewalls, NAT, segmentation, and policy
Evaluate traffic as a policy engine would: source context, destination context, protocol, port, direction, connection state, and sometimes application identity.
Firewall rule simulator
User LAN
POLICY
Server zone
Policy used by simulator
| # | Source | Service | Action |
|---|---|---|---|
| 1 | Admin | TCP/22 | Allow |
| 2 | User LAN | TCP/443 | Allow |
| 3 | Guest | UDP/53 | Allow |
| 4 | Any | ICMP | Allow for lab |
| 5 | Any | Any | Deny |
NAT/PAT rewrites addressing and/or ports. NAT is not itself a complete security policy, although some deployments combine address translation with stateful filtering.
9. Network monitoring, telemetry, IDS/IPS, and SIEM
Security monitoring depends on useful telemetry, reliable time, normalization, correlation, context, and investigative judgment.
1 · Telemetry
Firewall, DNS, DHCP, VPN, endpoint, authentication, NetFlow/IPFIX, IDS/IPS, cloud, identity.
2 · Normalize & enrich
Common fields, timestamps, asset identity, user identity, geolocation, threat intelligence.
3 · Correlate & investigate
Rules, baselines, analytics, alerts, timelines, case management, response.
SIEM correlation lab
Generate a small synthetic event stream and let the teaching correlator identify defensive patterns.
Correlation result
| Telemetry | Useful question |
|---|---|
| DNS | Which hosts requested this domain, and how often? |
| Firewall | Was the flow allowed, denied, reset, or translated? |
| VPN | Which identity authenticated, from where, and for how long? |
| NetFlow/IPFIX | Who talked to whom, on what ports, for how long, and how much? |
| IDS/IPS | Which signature/behavior fired, and what packet/flow context supports it? |
10. Troubleshooting methodology and tools
Start with symptoms, scope, and recent change. Test from lower layers upward without assuming the first error message identifies the root cause.
Command study bench
| Question | Windows | Linux/macOS |
|---|---|---|
| Address/interface state? | ipconfig /all | ip addr / ip link |
| Reachability / latency? | ping | ping |
| Path? | tracert | traceroute |
| DNS? | nslookup | dig / host |
| Neighbors? | arp -a | ip neigh |
| Connections/listeners? | netstat / Get-NetTCPConnection | ss |
| Routes? | route print | ip route |
| Packet capture? | Wireshark / pktmon | tcpdump / Wireshark |
Troubleshooting scenario generator
11. Guided student laboratories
These labs use the simulators above. Check each lab when complete; progress is stored only in this browser.
Encapsulation and the OSI model
- Run the encapsulation animation with HTTP-like data.
- Identify which layer adds source/destination ports.
- Identify which header changes hop-by-hop across routers.
- Explain why the OSI model remains useful even when real implementations do not map perfectly to seven discrete modules.
Switch learning and unknown unicast
- Clear the MAC table.
- Send A→B. Observe what the switch can learn from the source.
- Send B→A. Compare behavior after both addresses are known.
- Explain flooding versus forwarding and why the switch learns from source MAC, not destination MAC.
IPv4 subnetting
- Calculate 192.168.10.77/24.
- Repeat with /27 and /30.
- Determine how the network boundary and available address space change.
- Explain why subnetting matters for broadcast domains, routing aggregation, security zoning, and address management.
Longest-prefix routing
- Look up 10.10.20.45, then 10.10.99.2, then 10.44.8.8, then 8.8.8.8.
- Record the matching route for each.
- Explain why the default route does not win when a more-specific route exists.
DNS and DHCP dependencies
- Step through DORA.
- Step through recursive DNS resolution.
- Describe what changes when DNS answers from cache.
- Explain how DHCP can supply DNS-server and default-gateway information to a client.
TCP versus UDP
- Animate the TCP handshake.
- Contrast TCP reliability and ordering with UDP datagrams.
- Give two applications where low latency or application-controlled recovery may make UDP appropriate.
- Explain why “UDP is faster” is an oversimplification.
TLS and VPN scope
- Animate TLS 1.3.
- Run the VPN visualizer.
- Compare TLS connection protection with an IPsec site-to-site tunnel.
- Explain server certificate validation and what mTLS changes.
Firewall policy reasoning
- Test User LAN→TCP/443.
- Test Guest→TCP/443.
- Test Admin→TCP/22.
- Explain first-match/default-deny policy logic and why source zone is security-relevant.
SIEM correlation
- Generate all four event sets.
- For each alert, identify the minimum telemetry needed to support the conclusion.
- Explain the difference between a suspicious pattern and proof of compromise.
- List two enrichment sources that would help an analyst triage the event.
Capstone: design a secure small-campus network
- Create at least three VLANs: users, servers, and management.
- Place a firewall between trust zones and document four explicit rules.
- Choose routing, DNS, DHCP, secure administration, and remote-access approaches.
- Identify at least five log/telemetry sources to send to a SIEM.
- Explain where TLS, VPN, network segmentation, and least privilege complement rather than replace one another.
Lab progress
12. Study guide
Use these as review prompts rather than memorizing isolated numbers without context.
Addressing
- MAC: local Layer-2 identity
- IPv4: 32-bit logical address
- IPv6: 128-bit logical address
- Prefix length: network boundary
- Default gateway: next hop for off-subnet traffic
Ports worth recognizing
- 22 SSH
- 25 SMTP
- 53 DNS
- 67/68 DHCPv4
- 80 HTTP
- 123 NTP
- 161/162 SNMP
- 389 LDAP
- 443 HTTPS
- 445 SMB
- 636 LDAPS
- 3389 RDP
Switching
- Learn source MAC on ingress
- Forward known unicast to one port
- Flood unknown unicast/broadcast within VLAN
- VLAN = separate L2 broadcast domain
- STP mitigates loops
Routing
- Choose most-specific route
- Default = 0.0.0.0/0 or ::/0
- TTL/Hop Limit prevents endless circulation
- OSPF: interior routing
- BGP: interdomain reachability/policy
Security
- TLS: secure application connection
- IPsec: IP-layer protection
- VPN: protected logical path
- Firewall: policy enforcement
- IDS: detects; IPS can block inline
- SIEM: centralizes/correlates events
Troubleshooting order
- Define symptom and scope
- Check link/interface state
- Check address, prefix, gateway
- Check local/remote reachability
- Check DNS/service
- Check policy and logs
- Capture packets when ambiguity remains
Protocol comparison: ARP versus IPv6 Neighbor Discovery
ARP resolves IPv4 addresses to link-layer addresses on local Ethernet-like networks. IPv6 does not use ARP; Neighbor Discovery uses ICMPv6 messages for functions including address resolution, router discovery, neighbor reachability, and related local-link tasks.
Why NAT is not the same as a firewall
NAT changes addressing and sometimes ports. A firewall makes explicit allow/deny decisions based on security policy and may track connection state, identity, application, or content. Many devices perform both functions, which is why the concepts are often conflated.
Why encryption does not eliminate network monitoring
Encryption protects content, but defenders can still use endpoints, authentication events, DNS telemetry, certificate metadata, flow records, timing, volume, destination identity, and permitted inspection points. Monitoring architecture shifts rather than disappearing.
13. Twenty-question knowledge check
Questions mix recall with reasoning. The grader reports score and topics to review.
14. References and further reading
Primary standards and high-value technical references for deeper study.
- RFC 8200 — Internet Protocol, Version 6 (IPv6)
- RFC 9293 — Transmission Control Protocol (TCP)
- RFC 768 — User Datagram Protocol (UDP)
- RFC 8446 — TLS 1.3
- RFC 9000 — QUIC
- RFC 1034 — DNS Concepts and Facilities
- RFC 1035 — DNS Implementation and Specification
- RFC 2131 — DHCP
- RFC 826 — ARP
- RFC 4861 — IPv6 Neighbor Discovery
- RFC 791 — Original IPv4 specification
- RFC 4632 — CIDR
- RFC 2328 — OSPF Version 2
- RFC 4271 — BGP-4
- RFC 4301 — IPsec Security Architecture
- RFC 7296 — IKEv2
- RFC 4251 — SSH Protocol Architecture
- RFC 9110 — HTTP Semantics
- RFC 9114 — HTTP/3
- NIST SP 800-52 Rev. 2 — TLS Guidelines
- NIST SP 800-77 Rev. 1 — Guide to IPsec VPNs
- NIST SP 800-41 Rev. 1 — Firewalls and Firewall Policy
- NIST SP 800-207 — Zero Trust Architecture
- NIST SP 800-61 Rev. 2 — Computer Security Incident Handling Guide
- Wireshark Documentation
- IANA Service Name and Port Number Registry
- IANA Protocol Numbers
- IANA addressing / registry resources
- MITRE technical publications search
- MITRE ATT&CK
- CISA Cyber Threats and Advisories
- CISA Zero Trust Maturity Model
- IETF Datatracker
- IEEE 802 LAN/MAN Standards Committee