7 - Network Devices
Lesson 7.1 Ethernet Switching
Overview
Ethernet switching is a core function in modern networking, enabling efficient and organized data transmission across local area networks (LANs). This sub-lesson explores how Ethernet evolved from early hub-based communication to sophisticated switching systems, the roles of Layer 2 and Layer 3 switches, VLAN segmentation, and associated protocols like STP and VTP. Understanding Ethernet switching is foundational to configuring and securing enterprise networks.
Key Terms / Concepts
Hub: Layer 1 device; broadcasts data to all ports; prone to collisions
Switch: Layer 2 device; sends data only to destination port; reduces collisions
Router: Layer 3 device; routes packets across networks and connects LANs to WANs
CSMA/CD: Carrier Sense Multiple Access with Collision Detection; original Ethernet method for managing collisions
MAC Table (CAM Table): Table used by switches to store MAC addresses and corresponding ports
VLAN: Virtual Local Area Network; logical segmentation within a physical switch
Trunk Port: Switch port that carries multiple VLANs using tagging
Access Port: Switch port assigned to a single VLAN
STP (Spanning Tree Protocol): Prevents Layer 2 loops
VTP (VLAN Trunking Protocol): Enables VLAN management across multiple switches
LACP (Link Aggregation Control Protocol): Combines multiple ports into one logical connection
Reflection Prompt
Think about a time when you connected multiple devices in a home or office network. What happened when too many devices used the network at once? How do switches improve performance and organization compared to simple hubs?
Detailed Concepts
Hubs, Switches, and Routers: A Comparison
Hubs are basic Layer 1 (Physical layer) devices that pass all incoming signals to every connected device. They do not inspect traffic or reduce congestion. Every device "hears" every transmission, increasing the chance of collisions on the network.
Switches operate at Layer 2 (Data Link layer) and forward frames only to the specific port associated with the destination MAC address. This significantly reduces network congestion and collisions by creating dedicated collision domains per port.
Routers operate at Layer 3 (Network layer), forwarding packets between different IP networks. They inspect the IP address in the packet and use routing tables to find the best next-hop route. Routers connect LANs to other LANs or the Internet.
Understanding Original Ethernet and CSMA/CD
Original Ethernet used coaxial cable in a physical bus topology—where one cable carried all signals and devices tapped in along its length. Examples include:
10Base2 (Thinnet): Max length ~200m
10Base5 (Thicknet): Max length ~500m
10BaseT introduced twisted-pair wiring and a physical star topology, though logically it still behaved like a bus. All transmissions went to all nodes, creating collision risks.
Carrier Sense Multiple Access with Collision Detection (CSMA/CD) was Ethernet’s original method of managing access:
A device listens for a clear line before transmitting.
If two devices transmit at once, a collision occurs.
Each device waits a random interval before retrying—this interval is based on the time needed to transmit a full frame (~52 microseconds).
As device count grows, collision chances increase, degrading performance.
Ethernet’s Evolution and Dominance
In the early days, Token Ring was a strong competitor. It was deterministic—only one device could transmit at a time, leading to predictable performance.
However, 100 Mbps Ethernet and the introduction of Ethernet switches gave Ethernet superior speed and scalability.
Today, Ethernet dominates networking and supports:
Speeds from 10 Mbps to 40 Gbps and beyond.
Media such as twisted pair (copper), coaxial cable, and fiber optics.
Use in both LANs and WANs (client-side of circuits).
Transmission Media
Copper: Common and cost-effective; includes:
Unshielded Twisted Pair (UTP): Used in most modern networks.
Shielded Twisted Pair (STP): Provides additional noise resistance.
Coaxial Cable: Used in legacy networks and cable internet.
Fiber Optic:
Single-mode fiber (SMF): Laser-driven, long distances.
Multi-mode fiber (MMF): LED-driven, shorter distances.
Wireless:
Radio and microwave used for wireless LANs and backhaul links.
Laser (free-space optics) used in niche, short-range line-of-sight links.
Ethernet Bridges and Switch MAC Tables
Bridges connect two Ethernet segments and make forwarding decisions based on MAC addresses.
A bridge learns MAC addresses by examining the source of each incoming frame and builds a MAC table (also called a CAM table).
If the destination MAC is in the table, the bridge forwards the frame to the correct port. If not, it floods it out all ports.
Switches are multi-port bridges and provide the same functionality with added speed, segmentation, and port density.
Unmanaged vs. Managed Switches
Unmanaged Switches:
Plug-and-play
Fixed configuration
Best for small/home networks
Managed Switches:
Configurable via CLI or web interface
Support VLANs, port security, SNMP monitoring, link aggregation, etc.
Essential for enterprise networks
Layer 2 vs. Layer 3 Switches
Layer 2 Switches:
Operate using MAC addresses and Ethernet frames.
Cannot route between networks or VLANs.
Layer 3 Switches:
Combine switching and routing functions.
Route traffic between VLANs.
Do not typically connect to WANs (limited Layer 3 capabilities).
Virtual LANs (VLANs)
VLANs logically segment a single switch into multiple virtual networks.
Each port on a switch can be assigned to a VLAN.
Traffic between VLANs must go through a Layer 3 device (router or Layer 3 switch).
IEEE 802.1Q is the standard for VLAN tagging on trunk ports.
Switch Ports: Access vs. Trunk
Access Port: Connects to end-user devices and carries traffic for only one VLAN.
Trunk Port: Connects switches/routers and carries multiple VLANs using VLAN tags.
Trunk ports are often high-bandwidth uplinks between core infrastructure devices.
Cable Types and Auto-MDIX
Legacy switches required crossover cables for device-to-device connections.
Modern switches support auto-MDIX, automatically adjusting pinouts as needed.
Ports can also be configured as mirror/span ports for traffic monitoring with a packet sniffer or intrusion detection system.
VLAN Trunking Protocol (VTP)
A Cisco protocol that allows switches to share VLAN information.
Useful in multi-switch environments but not secure by default.
Best practice: disable automatic trunking and secure VTP with passwords or use manual VLAN configuration.
Link Aggregation
Combines multiple physical ports into a single logical trunk.
Increases bandwidth and provides redundancy.
Managed using LACP (Link Aggregation Control Protocol) or Cisco’s EtherChannel.
Spanning Tree Protocol (STP)
Prevents Layer 2 loops, which can flood and crash a network.
Elects a root bridge and disables redundant paths until needed.
Variants like RSTP (Rapid STP) provide faster recovery.
STP is essential in any network with multiple switches and redundant links.
Simplified Summary
Hubs broadcast data everywhere; switches forward it intelligently.
VLANs separate traffic within a switch; trunk ports carry VLANs between switches.
Switches store MAC addresses to route frames effectively.
STP prevents network loops; VTP manages VLANs across switches.
Managed switches support configuration, VLANs, and security features.
Lesson 7.2 Securing Ethernet Switching
Overview
While Ethernet switching provides performance and scalability for enterprise networks, it also introduces vulnerabilities that can be exploited by attackers. This lesson focuses on common switch-based attacks and the security measures needed to detect and mitigate them. Students will gain a practical understanding of Layer 2 attack vectors such as MAC flooding, ARP spoofing, VLAN hopping, and STP manipulation, as well as the security configurations available in modern switches.
Key Terms / Concepts
MAC Flooding: Overwhelms switch MAC table to force broadcast behavior
ARP Spoofing: Redirects traffic by faking ARP responses
VLAN Hopping: Bypasses VLAN separation using double tagging or trunk emulation
STP Manipulation: Alters Spanning Tree to disrupt network paths
Port Security: Restricts switch port access based on MAC addresses
DHCP Snooping: Blocks rogue DHCP servers on the network
MACsec (802.1ae): Adds authentication and encryption at Layer 2
Flood Guard: Filters excessive or malicious broadcast traffic
Loop Protection: Prevents data loops using STP or similar logic
Reflection Prompt
Why is securing Layer 2 (switching) just as important as protecting higher-layer protocols? Consider the risks of allowing any device to plug into a switch port in a business environment.
Detailed Concepts
Common Switch Attacks
MAC Flooding:
The attacker sends numerous fake MAC addresses, overwhelming the MAC table.
Once full, the switch behaves like a hub and floods frames to all ports—useful for eavesdropping.ARP Spoofing:
An attacker sends falsified ARP replies to associate their MAC with the IP of another device, often the default gateway.
Enables traffic interception (man-in-the-middle attacks).VLAN Hopping:
Exploits misconfigured switch ports to simulate trunk behavior or use double tagging.
Can allow attackers to intercept traffic from other VLANs.STP Manipulation:
A rogue switch participates in Spanning Tree Protocol and attempts to become the root bridge, causing traffic reroutes or instability.
Defenses: BPDU Guard, Root Guard, manual bridge ID configuration.Double Tagging:
Attacker inserts two VLAN tags into a frame.
First switch removes the outer tag, second switch misinterprets the inner tag—bypassing VLAN boundaries.MAC Spoofing:
Changes MAC address to impersonate a trusted device or bypass port-based security controls.
Switch Security Features
Port Security:
Limits which MAC addresses can access a given port.
Can restrict to one device per port and define violation responses (shut down, restrict, protect).MAC Filtering:
Used on Ethernet and wireless networks to allow/block traffic based on MAC addresses.
Often used interchangeably with port security.DHCP Snooping:
Ensures only trusted DHCP servers can issue addresses.
Protects against rogue DHCP servers redirecting traffic or injecting bad configurations.
Advanced Protection Tools
Loop Protection:
STP automatically disables redundant paths to prevent loops.
However, manual misconfiguration can still cause loops—loop protection reinforces stability.Flood Guard:
Advanced switches can analyze traffic beyond Layer 2 to detect and block floods or abnormal patterns.
Helps block MAC flooding and broadcast storms.MACsec (802.1ae):
Adds authentication and encryption to Layer 2 Ethernet communication.
Secures protocols like ARP and DHCP from tampering or interception.
Port Security: Capabilities & Limitations
Port security is hardware/vendor specific.
Supports granular control (per-MAC, per-port device limits).
Cannot be enabled on:
Trunk ports
EtherChannel, LACP, or PaP ports
Port analyzers (mirror or span ports)
Simplified Summary
Switches are vulnerable to several attacks that can compromise network segmentation and traffic integrity.
Port security, MAC filtering, DHCP snooping, and loop prevention are vital tools for protecting Layer 2.
Advanced technologies like MACsec and Flood Guard provide additional security for large enterprise environments.
Lesson 7.3 Routers
Overview
Routers play a critical role in directing network traffic between different networks and across the internet. Operating at Layer 3 of the OSI model, routers use routing tables and protocols to determine the most efficient paths for packet delivery. This lesson explores router functionality, the structure and use of routing tables, and the operation of both interior and exterior routing protocols including RIP, OSPF, EIGRP, and BGP.
Key Terms / Concepts
Router: Layer 3 device that forwards packets between different networks
Routing Table: Database used to determine the best path for data delivery
Static Route: Manually configured route to a specific network
Dynamic Routing Protocol: Automates route discovery and updates
Convergence: The point at which all routers share a consistent view of the network
Interior Gateway Protocol (IGP): Used within an organization (e.g., RIP, OSPF, EIGRP)
Exterior Gateway Protocol (EGP): Used between organizations (e.g., BGP)
Autonomous System (AS): A collection of IP networks and routers under a common administration
Reflection Prompt
When your home router connects your devices to the internet, it uses a simple routing table. In a large enterprise, routers use dynamic protocols to manage traffic across dozens or hundreds of networks. What are the risks of using static routes versus dynamic routing protocols?
Detailed Concepts
Router Functions and Role in Networking
Routers operate at Layer 3 (Network layer) of the OSI model. Their primary function is to examine incoming packets, determine their destination IP address, consult a routing table, and forward the packets along the most appropriate path to their destination.
Routers serve several critical purposes:
Interconnect networks: Routers enable communication between different networks (e.g., between a LAN and the internet).
Route selection: They determine the optimal path based on cost metrics such as hop count, bandwidth, or delay.
Protocol translation: Routers can support various Layer 2 protocols on different interfaces and route between them.
Traffic segmentation: By placing devices on separate subnets, routers help isolate broadcast traffic and enhance performance.
Routing Tables and Routing Information Base (RIB)
The routing table, also known as the Routing Information Base (RIB), is a database maintained by the router to determine how and where to forward packets. It contains entries for:
Destination network address
Next-hop IP address
Outgoing interface
Route metric (cost)
Administrative distance (priority of the route source)
There are two ways routes can be added:
Static routing: Admin manually adds fixed paths to the routing table. Simple, but lacks fault tolerance.
Dynamic routing: Routers learn and update routes automatically using routing protocols. Offers flexibility, scalability, and self-healing.
Convergence is the process of all routers in a network agreeing on consistent routing information. Fast convergence is essential for minimizing downtime after a network change.
CISCO ROUTING TABLE
WINDOWS ROUTING TABLE
LINUX ROUTING TABLE
Routing Protocol Categories
Routing protocols fall into two main categories:
Interior Gateway Protocols (IGPs) – used within a single autonomous system (AS):
RIP: Distance-vector protocol; uses hop count.
EIGRP: Cisco’s hybrid protocol; uses bandwidth, delay, and other metrics.
OSPF: Link-state protocol; builds a full map of the network.
IS-IS: Similar to OSPF; often used by service providers.
Exterior Gateway Protocols (EGPs) – used between autonomous systems:
BGP: Used across the internet to exchange routing data between ISPs and large networks.
Routing Protocol Algorithms and Examples
Distance Vector Protocols (e.g., RIP)
Share full routing tables periodically with neighbors.
Determine route paths based on distance (e.g., hop count).
Prone to routing loops; mitigated with techniques like split horizon, hold-down timers, and route poisoning.
RIP is easy to configure but not suitable for large networks due to its 15-hop limit and slow convergence.
Link-State Protocols (e.g., OSPF)
Build a complete map of the network.
Use Dijkstra’s algorithm to compute shortest path trees.
Routers exchange Link-State Advertisements (LSAs) to share topology changes.
OSPF divides networks into areas, with Area 0 as the backbone.
Offers rapid convergence, VLSM, CIDR, and route summarization.
Hybrid Protocols (e.g., EIGRP)
Combines benefits of distance-vector and link-state.
Uses the Diffusing Update Algorithm (DUAL) to ensure loop-free routing.
Shares partial updates only when changes occur.
Suitable for large, Cisco-dominated networks.
Considers multiple metrics (bandwidth, delay, reliability, load) for route selection.
Path Vector Protocols (e.g., BGP)
Used for routing between autonomous systems.
Builds routing decisions based on AS path and policy preferences.
Uses eBGP for external AS communication and iBGP within an AS.
Provides policy control, redundancy, and scalability across the internet.
Supports very large routing tables and complex policies.
Autonomous Systems (AS)
An Autonomous System (AS) is a group of networks managed under a common policy and typically operated by a single organization (e.g., ISP, large enterprise).
Stub AS: Connects to one other AS; does not forward traffic.
Multi-homed AS: Connects to multiple ASes; does not forward transit traffic.
Transit AS: Connects to multiple ASes and forwards traffic between them.
Each AS is assigned a unique Autonomous System Number (ASN) used in BGP routing.
Simplified Summary
Routers are the traffic directors of the internet and enterprise networks.
They use routing tables to determine the best path for forwarding data.
Routing protocols like RIP, OSPF, EIGRP, and BGP automate route discovery and enable networks to scale and recover from changes.
Interior protocols handle internal traffic, while BGP manages external routing between large networks.
Lesson 7.4 Securing Routers
Overview
Routers are often the first and most critical devices in a network's perimeter. Their compromise can lead to significant data breaches, service outages, or full control over enterprise traffic. This lesson covers common router threats, strategies for protecting router configurations, and introduces high availability routing technologies like HSRP and GLBP. By implementing secure management practices and redundancy protocols, organizations can safeguard their routing infrastructure from attacks and maintain consistent network access.
Key Terms / Concepts
HSRP (Hot Standby Router Protocol): Cisco redundancy protocol that creates a virtual IP and MAC for gateway failover
GLBP (Gateway Load Balancing Protocol): Cisco protocol that enables active/active routing and load balancing
Routing Table Poisoning: Injecting false route entries to divert or drop traffic
DoS Attack: Overwhelming router resources to make them unresponsive
Brute Force Attack: Attempting login via repeated password guessing
Firmware Exploit: Exploiting software bugs in router firmware
Router Hardening: Securing router through updates, passwords, segmentation, and monitoring
Reflection Prompt
Imagine the impact if your organization’s internet-facing router were compromised. What damage could be done if attackers rerouted or intercepted your traffic—or simply shut the router down?
Detailed Concepts
Routing High Availability (HA)
Routers support alternate routes in routing tables automatically when dynamic routing protocols (like OSPF or EIGRP) are in use. But what happens when the router itself fails?
Hot Standby Router Protocol (HSRP)
HSRP is a Cisco protocol that enables gateway failover for end-user devices.
Multiple routers participate in an HSRP group that shares:
A virtual IP address (used as the default gateway for clients).
A virtual MAC address (so MAC tables don't need constant updating).
Only one router is active at a time; others are in standby.
If the active router fails, a standby router becomes active seamlessly.
HSRP messages are exchanged frequently to detect availability and ensure fast switchover.
Gateway Load Balancing Protocol (GLBP)
GLBP allows multiple routers to be active forwarders at once.
They share a virtual IP address (like HSRP) but use different MAC addresses.
Clients can send traffic to different routers, enabling load balancing as well as redundancy.
GLBP increases network efficiency and reduces the load on any single gateway router.
Router Attacks and Threat Vectors
Denial of Service (DoS)
Attackers flood a router with traffic to consume CPU and memory resources.
Routers may freeze, crash, or drop legitimate traffic, causing network downtime.
Often the first step in larger multi-vector attacks.
Packet Mistreating Attacks
Malformed or malicious packets are crafted to exploit vulnerabilities.
Could result in router misbehavior, crashing, or even packet inspection bypasses.
These are difficult to detect unless packet inspection or intrusion detection is in place.
Advanced Router Threats
Routing Table Poisoning
Attackers inject false route entries into a router using forged updates or exploits.
Can redirect traffic to malicious nodes (e.g., for data interception or blackholing).
Especially dangerous in dynamic routing environments without authentication.
Brute Force Attacks
Attackers repeatedly guess login credentials to access router interfaces.
Default credentials or poorly secured admin accounts are commonly exploited.
Once access is gained, configurations and routing can be altered.
Firmware Exploits
Older or unpatched router firmware may have vulnerabilities.
Attackers use these to gain privileged access or cause persistent disruption.
Common in devices not routinely updated (e.g., legacy routers in small offices).
Mitigation Strategies
Update Router Firmware regularly to fix known exploits and add security features.
Use Strong Passwords and change them frequently. Disable unused accounts.
Secure Management Interfaces:
Use SSH instead of Telnet.
Restrict access via access control lists (ACLs).
Network Segmentation:
Place routers on separate management VLANs.
Prevent general users from reaching the management plane.
Monitor Logs and Alerts:
Use Syslog, SNMP, or NetFlow to observe router activity.
Detect unusual login attempts, route changes, or bandwidth spikes.
Simplified Summary
Routers can be a single point of failure or compromise.
Implementing redundancy protocols like HSRP or GLBP ensures network uptime.
Router attacks range from DoS and brute force to routing table poisoning.
Hardening routers through firmware updates, strong credentials, encrypted management, and monitoring is essential for network security.
Lesson 7.5 Firewalls and Related Network Security Appliances
Overview
Firewalls and network security appliances are essential for protecting enterprise environments from external and internal threats. They monitor, filter, and control network traffic based on security policies and rules. This lesson explores traditional and next-generation firewalls, access control lists, proxy servers, load balancers, and unified threat management systems (UTMs), providing a layered approach to network defense.
Key Terms / Concepts
Firewall: Device that allows or blocks traffic based on predefined rules
Access Control List (ACL): Set of rules that permit or deny traffic
Stateful Firewall: Tracks ongoing connections to make smarter filtering decisions
Stateless Firewall: Inspects packets individually without context
Screened Subnet (DMZ): A network zone for public-facing services, isolated from the internal network
WAF (Web Application Firewall): Specialized firewall for application-layer traffic (e.g., HTTP/S)
NGFW (Next-Generation Firewall): Unified platform combining multiple security features
Proxy Server: Middleman that routes traffic between clients and servers
Load Balancer: Distributes traffic evenly across multiple resources
UTM (Unified Threat Management): All-in-one security platform for SMBs
Reflection Prompt
Think about how many different types of traffic move through an enterprise network each day. Why might a standard firewall not be enough to detect sophisticated threats? What added protections do next-gen solutions offer?
Detailed Concepts
Traditional Firewalls
Firewalls are specialized network security appliances that act as a barrier between trusted internal networks and untrusted external networks, such as the internet. They monitor, analyze, and control inbound and outbound traffic based on predefined rules. Firewalls typically operate at Layers 3 and 4 (Network and Transport layers) but may also offer application-layer filtering depending on their type.
Their fundamental function is to enforce access control policies, often expressed through Access Control Lists (ACLs). They allow or deny traffic based on source and destination IP addresses, ports, protocols, and, in more advanced models, by application, user identity, and content.
Firewalls follow the principle of least privilege, often employing an implicit deny rule—if traffic is not explicitly allowed, it is automatically blocked.
Access Control Lists (ACLs)
ACLs define rules that control packet flow through network interfaces. There are two types:
Standard ACLs: Permit or deny traffic based only on source IP addresses.
Extended ACLs: Offer more granular control by filtering based on source/destination IP, protocol type, and port numbers.
ACLs are applied:
Inbound: Traffic is filtered as it enters an interface.
Outbound: Traffic is filtered as it leaves an interface.
Example: A Cisco router may have ACLs like:
access-list 100 permit tcp 192.168.10.0 0.0.0.255 any eq 80
access-list 100 deny ip any any
This allows HTTP traffic from the 192.168.10.0 network and denies everything else.
pfSense, a free open-source firewall platform, uses GUI-based rules that mirror ACL functionality, allowing granular control over NAT, VLANs, VPNs, and filtering.
Firewall Appliance Categories
Hardware Firewalls:
Deployed at the network perimeter.
Often rack-mounted, designed to handle high throughput.
Provide centralized protection for multiple systems.
Examples: Cisco ASA, Fortinet FortiGate, Palo Alto NGFWs.
Software Firewalls:
Installed directly on endpoints or servers.
Protect the host device only.
Useful for enforcing device-level policy or personal firewalls (e.g., Windows Defender Firewall).
Cloud & Virtual Firewalls:
Deployed in cloud-native or hybrid cloud environments.
Scalable, API-driven, and integrate with services like AWS, Azure, or GCP.
Useful in dynamic environments where traditional appliances are impractical.
Stateless vs. Stateful Firewalls
Stateless Firewalls:
Evaluate each packet in isolation.
Fast and lightweight but can't track session state.
Vulnerable to spoofed or out-of-sequence packets.
Stateful Firewalls:
Track entire TCP/IP sessions.
Understand connection states (e.g., established, related).
Can automatically allow return traffic if a connection was initiated from inside the network.
Routed Firewalls:
Combine firewall functionality with IP routing capabilities.
Act as default gateways while enforcing security policies.
Can segment networks or connect VLANs securely.
Firewall Network Design Principles
Firewalls are strategically placed between:
Internal networks and the internet
Internal network zones with different trust levels
Screened Subnet / DMZ (Demilitarized Zone):
Hosts public-facing services like web, mail, DNS servers.
Separated from both the internal LAN and the external internet.
If compromised, the attacker does not gain access to internal systems.
Extranet:
A DMZ extension that allows access to trusted third parties.
Enforces controlled external access to sensitive resources without exposing the private network.
Application Layer Firewalls & WAFs
Traditional firewalls inspect Layers 3–4 traffic (IP, TCP/UDP), but Application Layer Firewalls (Layer 7) go deeper.
Web Application Firewalls (WAFs):
Filter and monitor HTTP/S traffic between clients and web servers.
Protect against attacks like:
SQL Injection
Cross-Site Scripting (XSS)
File Inclusion
Deployed as:
Host-based (integrated with app server)
Network-based (hardware appliance)
Cloud-based (e.g., AWS WAF)
Act as reverse proxies, inspecting incoming requests before passing them to web servers.
Web Filtering Appliances
Designed to manage user access to the web. These tools prevent access to malicious, inappropriate, or non-compliant content.
Core Features:
Content Filtering: Block categories like gambling, social media, or adult content.
Security Filtering: Identify and block phishing or malware sites.
Policy Control: Enforce different rules for users/groups based on roles.
Monitoring: Provide logs and dashboards for usage trends and violations.
Deployment Options:
Host-based: Installed on individual machines.
Network-based: Centralized filtering at the firewall/gateway.
Popular Tools:
Cisco Umbrella
Barracuda Web Security Gateway
WebTitan
Lightspeed Filter
Untangle NG Firewall
Load Balancers
Distribute incoming traffic across multiple servers to:
Maximize performance
Minimize overload
Ensure redundancy
Modes:
Active/Active: All nodes handle traffic simultaneously.
Active/Passive: One or more nodes remain on standby, ready to take over.
Used with firewalls, proxies, and application servers to improve availability.
Proxy Servers
Act as intermediaries between clients and external servers.
Forward Proxy:
Sits between users and the internet.
Used for anonymity, content control, caching.
Reverse Proxy:
Sits between the internet and internal servers.
Used for load balancing, encryption offloading, and DDoS protection.
Proxies can cache responses, reduce latency, and obscure internal infrastructure from outsiders.
Next-Generation Firewalls (NGFW) and Unified Threat Management (UTM)
These platforms integrate multiple security functions into a single appliance.
Typical NGFW Features:
Stateful inspection
Deep Packet Inspection (DPI): Inspects payloads, not just headers
Application Awareness: Control traffic by app (e.g., block BitTorrent)
IDS/IPS Integration
User identity and role-based filtering
VPN endpoint support
Cloud and IoT security support
UTM Systems:
Geared toward small to medium-sized businesses
Centralize firewall, web filtering, antivirus, VPN, and intrusion prevention
Often include both:
Proxy-based inspection (buffer and scan full data)
Flow-based inspection (inspect as packets flow in real time)
Advanced Threat Capabilities:
Sandboxing: Run suspicious files in isolated environments
Machine Learning: Detect zero-day attacks
Real-Time Analytics: Continuous monitoring and alerting
These platforms help simplify security management while offering defense-in-depth.
Simplified Summary
Firewalls are foundational to network security.
They can be hardware or software-based and offer either stateless or stateful inspection.
Modern networks benefit from advanced features found in NGFWs and UTMs, such as deep packet inspection and integrated threat protection.
Additional tools like WAFs, proxy servers, load balancers, and web filters expand the defense perimeter.
Lesson 7.6 Software Defined Networking
Overview
Software-Defined Networking (SDN) is a transformative approach to network architecture that separates the control logic from the underlying physical devices. By decoupling the control plane (decision-making) from the data plane (packet forwarding), SDN introduces flexibility, scalability, and centralized management to enterprise, cloud, and data center environments. This lesson explores the core components of SDN, its benefits, and the related concept of Software-Defined Wide Area Networking (SD-WAN)—a critical enhancement for optimizing traffic across distributed networks.
Key Terms / Concepts
SDN (Software-Defined Networking): Centralized, programmable approach to networking
Control Plane: Makes decisions about how traffic is managed
Data Plane: Executes packet forwarding based on control instructions
Application Plane: Interfaces with the control layer to express network needs
Southbound APIs: Protocols (e.g., OpenFlow) for communication between control and data planes
Northbound APIs: Interfaces that allow applications to interact with the control plane
SD-WAN: SDN applied to wide area networks for flexible, policy-driven routing
Reflection Prompt
Why might traditional hardware-based networking become inefficient in environments like cloud data centers or enterprise branches? How does centralizing control in SDN and SD-WAN improve efficiency, security, and performance?
Detailed Concepts
What is Software-Defined Networking (SDN)?
Software-Defined Networking (SDN) is a modern architectural approach that redefines how networks are designed, deployed, and managed. Traditionally, each network device—like a router or switch—contained both the control plane (decision-making logic) and the data plane (traffic forwarding). This distributed model made it difficult to manage large-scale networks, enforce consistent policies, or respond quickly to emerging threats.
SDN centralizes the control plane, placing it in a software-based controller, and separates it from the underlying hardware (data plane). This enables dynamic configuration, programmatic automation, and real-time optimization of network behavior.
Three Planes of SDN Architecture
SDN is typically described in terms of three logical layers or planes, each with a distinct role:
1. Application Plane (Application Layer)
The top layer, consisting of applications that define high-level network policies, such as security requirements, bandwidth needs, or service-level agreements (SLAs).
These applications do not interact with hardware directly; instead, they use APIs to communicate intentions to the controller.
For example, an application might:
Specify that VoIP traffic should have high priority.
Enforce zero-trust network access policies for specific users.
Northbound APIs (like RESTful APIs) allow this communication between the application layer and the control layer.
2. Control Plane (Control Layer)
The brain of the SDN architecture.
The SDN controller is the central element in this layer. It:
Maintains a global view of the network.
Manages routing decisions, traffic engineering, and policy enforcement.
Converts the abstract goals from the application layer into device-specific instructions for the data plane.
The control plane communicates with the data plane using Southbound APIs such as:
OpenFlow: The first and most widely adopted SDN protocol.
NETCONF, RESTCONF, gNMI: Other modern protocols for configuration and telemetry.
3. Data Plane (Infrastructure / Forwarding Layer)
The foundation of the SDN model, comprising the actual physical or virtual devices responsible for forwarding packets.
Devices like switches and routers in this layer:
Do not make forwarding decisions on their own.
Follow rules and instructions pushed by the controller via southbound APIs.
This separation allows devices to focus on performance and throughput, while the controller handles intelligence and policy.
Why SDN Matters: Key Benefits
Centralized Management:
All configurations and policies are defined in one place.
Easier to troubleshoot, audit, and update.
Automation & Agility:
Network resources can be provisioned automatically through code (Infrastructure as Code).
Dynamic adjustments can be made without touching individual devices.
Scalability:
New switches or routers can be added quickly, with configurations inherited from the SDN controller.
Security:
Unified policies (like micro-segmentation) can be enforced instantly across the network.
Enhanced visibility into flows allows for more proactive threat detection.
Traffic Optimization:
SDN enables smart routing decisions based on real-time bandwidth, latency, and application priority.
What is Software-Defined WAN (SD-WAN)?
SD-WAN applies SDN concepts to wide area networks, which traditionally relied on fixed, expensive connections like MPLS and lacked flexibility. SD-WAN:
Decouples control from the transport layer, enabling centralized control over distributed branch connections.
Is typically deployed as an overlay network that routes traffic across multiple WAN links (e.g., MPLS, LTE, broadband).
Core SD-WAN Features
Centralized Control Plane:
Manage branch-to-branch or branch-to-cloud connectivity from a central interface.
Apply security and routing policies from one location.
Policy-Based Routing:
Traffic is routed based on business needs (e.g., video conferencing prioritized over file backups).
Dynamic path selection based on real-time performance metrics.
Multi-Transport Support:
Seamless support for MPLS, LTE/5G, and broadband connections.
Ensures failover, load balancing, and cost-effective routing.
Integrated Security:
SD-WAN appliances often include:
Firewall capabilities
Encryption (IPSec VPNs)
Intrusion Detection/Prevention Systems (IDS/IPS)
Cloud access controls
Zero Touch Provisioning (ZTP):
New sites can be deployed rapidly by shipping preconfigured devices that connect to the controller and self-configure.
Use Cases for SDN and SD-WAN
Data Centers: Orchestrate virtual machines and containers with dynamic network assignments.
Campus Networks: Apply identity-based access and quality-of-service (QoS) rules.
Multi-Cloud Deployments: Automate connectivity between public and private cloud resources.
Remote Sites: Use SD-WAN to replace or augment MPLS links with cost-effective broadband while maintaining security.
Simplified Summary
SDN transforms networking by separating the logic of how packets should move (control plane) from the devices that move them (data plane).
Administrators gain visibility and control, automating complex tasks through software.
SD-WAN extends this flexibility to large networks, improving performance and reducing WAN costs while maintaining robust security.
Lesson 7.7 Zero Trust Architecture
Overview
Zero Trust Architecture (ZTA) is a security model built on the principle of “never trust, always verify.” Unlike traditional network security, which relies on the assumption that users or devices inside the network perimeter are inherently trustworthy, Zero Trust assumes that every request—regardless of origin—must be authenticated, authorized, and continuously validated.
This approach enhances security in modern environments where users, devices, and resources are spread across cloud services, mobile access points, and hybrid infrastructures.
Key Terms / Concepts
Zero Trust: Security model requiring strict identity verification for every person and device
Microsegmentation: Dividing networks into small zones for granular access control
Least Privilege Access: Users and applications get only the permissions they need
Continuous Validation: Session verification occurs continuously, not just at login
Policy Enforcement Point (PEP): Controls access based on decisions from the Policy Engine
Policy Decision Point (PDP): Evaluates requests and makes access decisions
Identity Provider (IdP): Service that authenticates and verifies user identity
Reflection Prompt
If an attacker gained access to your organization’s internal network, how much damage could they do? How would Zero Trust help contain or prevent that threat?
Detailed Concepts
Traditional Security vs. Zero Trust
Traditional security models rely on perimeter defenses (like firewalls or VPNs). Once inside, users often have broad access.
Zero Trust eliminates the idea of a trusted internal network. Every user, device, and system must prove its identity and legitimacy every time it attempts access, regardless of location.
Core Principles of Zero Trust
Verify Explicitly
Always authenticate and authorize based on all available data:User identity
Device health
Location
Time of access
Behavior patterns
Use Least Privilege Access
Give users only the minimum access necessary to perform their tasks.
Apply role-based access control (RBAC) or attribute-based access control (ABAC).Assume Breach
Design systems assuming an attacker is already inside.
Focus on limiting movement, isolating resources, and minimizing blast radius.
Zero Trust Components and Flow
Policy Engine (PE):
Evaluates requests using contextual data.
Makes allow/deny decisions based on identity, device posture, behavior, and environment.
Policy Enforcement Point (PEP):
Enforces access decisions at the network or application layer.
Examples: firewalls, proxies, software agents on endpoints.
Policy Administrator (PA):
Establishes connections and communicates decisions from the Policy Engine to the PEP.
Identity Provider (IdP):
Centralizes user authentication (e.g., Microsoft Entra, Okta).
Supports single sign-on (SSO), multi-factor authentication (MFA), and federation.
Zero Trust Technologies and Tactics
Multi-Factor Authentication (MFA): Requires two or more forms of verification.
Endpoint Detection & Response (EDR): Continuously monitors and responds to endpoint threats.
Device Posture Checks: Verifies OS patch levels, antivirus status, etc.
Network Microsegmentation:
Breaks the network into isolated segments.
Limits lateral movement by attackers.
Software-Defined Perimeters (SDP):
Conceals internal resources unless authentication is passed.
Applies principles of “dark networks” or “black cloud” infrastructure.
Security Information and Event Management (SIEM):
Aggregates and analyzes logs for real-time detection of threats and anomalies.
Use Cases for Zero Trust
Remote Work:
Apply secure access controls to users working from home or public networks.
Cloud & SaaS Environments:
Protect cloud-hosted applications that are accessible from anywhere.
BYOD (Bring Your Own Device):
Control access from personal devices based on compliance checks.
Insider Threat Mitigation:
Monitor access behavior, prevent unauthorized internal activity.
Simplified Summary
Zero Trust is a security model that requires all users and devices to prove their legitimacy every time they attempt access.
It assumes no user, network segment, or application should be trusted by default.
Technologies like MFA, identity-based access, microsegmentation, and behavior analytics make this possible, significantly reducing the risk of breaches.