Local Area Network (LAN) – Components, Topologies & Design
1. What Is a LAN?
A Local Area Network (LAN) is a network that connects computers, servers, printers, and other devices within a limited geographical area — typically a single building, floor, or campus. Devices on a LAN communicate directly using Layer 2 (MAC addressing) without needing to route through external infrastructure, which is why LANs deliver very high speeds and very low latency compared to wide area connections.
Typical small office LAN:
Internet
│
┌──┴──────┐
│ Router │ ← connects LAN to internet (Layer 3 gateway)
└──┬──────┘
│
┌──┴────────────┐
│ Switch │ ← interconnects all devices at Layer 2
└──┬──┬──┬──┬──┘
│ │ │ │
PC PC Printer Server
Add wireless:
Switch ──── AP ──── laptops, phones (Wi-Fi clients)
LANs are characterised by:
- Geographic scope: Single building, floor, or campus — typically up to a few hundred metres over copper, or kilometres with fibre
- Ownership: Privately owned and managed by a single organisation or individual — no carrier involvement
- Speed: 100 Mbps (Fast Ethernet) to 10 Gbps (10GBASE-T) over copper; up to 100 Gbps over fibre backbone links
- Latency: Sub-millisecond — devices are physically close and communicate without WAN hops
- Broadcast domain: All devices on the same LAN (without VLANs) receive each other's broadcast frames
Related pages: Access and Trunk Ports | CAM Table / MAC Address Table | Ethernet Cable Standards | VLANs | Spanning Tree Protocol | OSI Model | WAN Technologies | How DHCP Works
2. LAN vs WAN vs MAN — Network Type Comparison
| Type | Full Name | Geographic Scope | Typical Speed | Ownership | Example |
|---|---|---|---|---|---|
| LAN | Local Area Network | Room, building, campus | 1–10 Gbps (copper); up to 100 Gbps (fibre) | Private (single org) | Office network, home network, school computer lab |
| MAN | Metropolitan Area Network | City or metro area | 100 Mbps – 10 Gbps | Often ISP or utility | City government network, university campus spanning multiple buildings km apart |
| WAN | Wide Area Network | Country, continent, global | Variable — 1 Mbps to 100 Gbps | Carrier/ISP leased | Internet, MPLS connecting branch offices, leased lines |
| PAN | Personal Area Network | ~10 metres around a person | 1–3 Mbps (Bluetooth) | Personal device | Bluetooth headset to phone, smartwatch to laptop |
3. LAN Components
| Component | OSI Layer | Role in the LAN | Key Characteristic | Example |
|---|---|---|---|---|
| Hub | Layer 1 (Physical) | Repeats incoming signal out all other ports — all devices share one collision domain | Half-duplex; collisions are common; obsolete in modern networks | Legacy 10BASE-T hub; still appears in CCNA labs to illustrate collision domains. See: Hub Overview |
| Switch | Layer 2 (Data Link) | Forwards frames to the correct port based on destination MAC address (learned in CAM table); each port is its own collision domain | Full-duplex; eliminates collisions; creates one broadcast domain per VLAN; central device of modern LANs | Cisco Catalyst 2960, 3750, 9200. See: Frame Forwarding |
| Router | Layer 3 (Network) | Connects the LAN to other networks (internet, WAN, other LAN subnets); routes packets between subnets; acts as default gateway | Separates broadcast domains; performs NAT for internet access; each interface = separate broadcast domain | Cisco ISR 1100/4000 series; home broadband router |
| Access Point (AP) | Layer 1–2 | Bridges wireless clients onto the wired LAN; Wi-Fi clients connect to the AP which connects to a switch port | 802.11 standard (a/b/g/n/ac/ax); provides wireless extension of the LAN; can be standalone or controller-managed | Cisco Aironet, Meraki MR, Ubiquiti UniFi |
| Multilayer Switch (MLS) | Layer 2–3 | Switches at Layer 2 AND routes between VLANs at Layer 3 in hardware — combines switch and router functionality | Used at distribution/core layers; performs inter-VLAN routing without needing a dedicated router (router-on-a-stick alternative) | Cisco Catalyst 3560, 3850, 9300 |
| End Devices | Layer 3–7 | Generate and consume data — the reason the LAN exists | PCs, laptops, IP phones, printers, servers, IoT devices, IP cameras | Windows workstation, file server, VoIP phone |
4. LAN Topologies
A topology describes how devices are physically connected or how data logically flows. Modern LANs almost universally use a physical star topology, but understanding all topology types is required for CCNA.
Star Topology
PC1 ─────────┐ PC2 ──────── Switch ──── PC3 PC4 ─────────┘ All devices connect to a central switch. Failure of one link affects only that device. Failure of the switch affects ALL devices.
- Pros: Easy to add/remove devices; single link failure affects only one device; easy troubleshooting; full-duplex operation on each link
- Cons: Single point of failure at the central switch; requires more cable than bus topology
- Modern status: Universal standard — every modern LAN uses this topology
Bus Topology
PC1 ──┬── PC2 ──┬── PC3 ──┬── PC4
│ │ │
terminators on each end required
All devices share one cable backbone.
- Pros: Simple and inexpensive; minimal cable required
- Cons: Any cable break takes down the entire network; half-duplex only; collisions; difficult to troubleshoot; does not scale
- Modern status: Obsolete — used in legacy 10BASE2 coaxial networks; Ethernet's logical data flow is still described as a "logical bus" even though the physical layout is now star
Ring Topology
PC1 ──▶── PC2 ▲ │ │ ▼ PC4 ──◀── PC3 Token passes around the ring; only the holder transmits.
- Pros: No collisions (token-passing); predictable performance
- Cons: One device failure can disrupt the ring; complex; slow troubleshooting
- Modern status: Largely obsolete (Token Ring, FDDI); still seen in some industrial and metropolitan fibre rings (SONET/SDH)
Mesh Topology
Full Mesh (every device connected to every other): PC1 ─────── PC2 │ ╲ ╱ │ │ ╲ ╱ │ │ PC3── │ │ ╱ ╲ │ │ ╱ ╲ │ PC4 ─────── PC5 Partial Mesh: some (not all) redundant links — common in WAN/core routing
- Pros: Highest redundancy — multiple paths; failure of any single link does not disrupt connectivity
- Cons: Very expensive; complex configuration; n(n-1)/2 links needed for full mesh
- Modern status: Full mesh impractical for large LANs; partial mesh used in core/distribution layer switch interconnects and WAN routing
Physical vs Logical Topology
| Type | Definition | Example |
|---|---|---|
| Physical topology | How cables and devices are actually physically connected | Star — all cables run to a central switch |
| Logical topology | How data logically flows through the network | Ethernet uses a logical bus — every device on the same segment can theoretically "hear" every transmission (CSMA/CD was designed for this); despite physical star cabling |
5. Ethernet — The Dominant LAN Technology
Ethernet (IEEE 802.3) is the Layer 2 protocol used in virtually all modern wired LANs. It defines how frames are structured, how devices share the medium (CSMA/CD — now largely irrelevant with full-duplex switches), and the physical standards for different cable types and speeds.
Ethernet Frame Structure
Ethernet II Frame: ┌──────────┬────────────┬──────┬──────────────────────┬─────┐ │ Dest MAC │ Source MAC │ Type │ Payload (46–1500 bytes)│ FCS │ │ 6 bytes │ 6 bytes │2 bytes│ │4 bytes│ └──────────┴────────────┴──────┴──────────────────────┴─────┘ Destination MAC: Where the frame should go (unicast, multicast, or broadcast FF:FF:FF:FF:FF:FF) Source MAC: Who sent the frame EtherType: What's in the payload (0x0800 = IPv4, 0x0806 = ARP, 0x86DD = IPv6, 0x8100 = 802.1Q VLAN) Payload: The data (IP packet for most traffic) FCS: Frame Check Sequence — CRC-32 error detection; receiver discards corrupted frames
Ethernet Speed Standards
| Standard | Speed | IEEE | Cable Required | Max Distance | Common Use |
|---|---|---|---|---|---|
| Fast Ethernet | 100 Mbps | 802.3u | Cat5 or better | 100 m | Legacy end devices; still used for basic IoT sensors |
| Gigabit Ethernet | 1 Gbps | 802.3ab | Cat5e or better | 100 m | Standard desktop/server connections; access layer uplinks |
| 10 Gigabit | 10 Gbps | 802.3an | Cat6a (100 m) or Cat6 (55 m) | 100 m (Cat6a) | Switch uplinks; server connections; backbone links |
| 25/40/100 Gbps | 25–100 Gbps | 802.3cc/bq/bm | Fibre or Cat8 (short runs) | Up to 10+ km (fibre) | Data-centre spine/leaf, inter-switch backbone |
CSMA/CD — Why Switches Made It Obsolete
CSMA/CD (Carrier Sense Multiple Access with Collision Detection) was the access control mechanism for early Ethernet. Devices listened before transmitting, but collisions still occurred when two devices started simultaneously. After detecting a collision, both backed off for a random time and retried.
Modern full-duplex switched Ethernet eliminates CSMA/CD entirely: each switch port has a dedicated collision-free, full-duplex link. CSMA/CD is only relevant in legacy half-duplex scenarios (hubs) and is still tested on CCNA exams as a historical concept.
6. Collision Domains vs Broadcast Domains
Two of the most important Layer 2 concepts for LAN design are collision domains and broadcast domains. Every CCNA candidate must be able to count these from any network diagram.
| Concept | Definition | Broken by | Hub | Switch | Router |
|---|---|---|---|---|---|
| Collision Domain | Group of devices that share the same network segment and can interfere with each other's transmissions | Switches and routers (each port = new collision domain) | One collision domain for ALL ports | One collision domain per port (eliminates collisions) | One collision domain per interface |
| Broadcast Domain | Group of devices that receive each other's broadcast frames (dest MAC = FF:FF:FF:FF:FF:FF) | Routers and VLANs only (switches forward broadcasts) | One broadcast domain for ALL ports | One broadcast domain for ALL ports (unless VLANs configured) | One broadcast domain per interface (each interface = new broadcast domain) |
Network: Hub ──── Switch ──── Router ──── Switch ──── Hub
(3 PCs) (4 PCs) (3 PCs) (2 PCs)
Collision domains:
- Left hub: 1 (all 3 PCs share one)
- Switch left: 4 (one per port)
- Router: counts as 1 per interface
- Switch right: 3 (one per port)
- Right hub: 1 (all 2 PCs share one)
Total collision domains = 1 + 4 + 1 + 1 + 3 + 1 = 11
Broadcast domains:
- Everything left of router: 1
- Everything right of router: 1
Total broadcast domains = 2
(VLANs would further divide these)
7. ARP — Address Resolution Protocol
ARP (Address Resolution Protocol) is the mechanism that allows a device to discover the MAC address of another device on the same LAN when it only knows its IP address. Every IP packet requires both a source and destination MAC address at Layer 2 — ARP is how the destination MAC is found. See: ARP & arp -a Command
PC1 (192.168.1.10) wants to send a packet to PC2 (192.168.1.20). PC1 knows the IP but not the MAC of PC2. Step 1 — ARP Request (broadcast): PC1 sends: "Who has 192.168.1.20? Tell 192.168.1.10" Destination MAC: FF:FF:FF:FF:FF:FF (broadcast — ALL devices receive this) Source MAC: PC1's MAC (AA:BB:CC:11:22:33) Step 2 — ARP Reply (unicast): PC2 responds: "192.168.1.20 is at DD:EE:FF:44:55:66" Destination MAC: AA:BB:CC:11:22:33 (sent directly to PC1 only) Step 3 — PC1 caches the result: ARP cache entry: 192.168.1.20 → DD:EE:FF:44:55:66 (TTL ~2 minutes) PC1 can now send frames directly to PC2's MAC without ARP-ing again
8. Spanning Tree Protocol (STP)
STP (IEEE 802.1D) prevents broadcast storms and frame duplication by automatically detecting and blocking redundant Layer 2 paths in a switched network. Without STP, loops in a switched network cause frames to circulate indefinitely — quickly consuming all bandwidth and crashing the network within seconds. See: Spanning Tree Protocol | PortFast & BPDU Guard Lab
Without STP — a loop:
┌──────────┐ ┌──────────┐
│ Switch A │────────│ Switch B │
└──────────┘ └──────────┘
│ │
└───────────────────┘ ← redundant link creates a loop!
PC sends broadcast → Switch A floods to Switch B via both paths
Switch B receives broadcast twice → floods back on both paths
Frames multiply exponentially → broadcast storm → network down
With STP — one port blocked:
┌──────────┐ ┌──────────┐
│ Switch A │────────│ Switch B │
└──────────┘ └──────────┘
│ │
└─ ─ ─[BLOCKED]─ ─ ─┘ ← STP blocks one port logically
If the active path fails → STP unblocks the redundant path → failover
STP Port States
| STP State | Forwards Frames? | Learns MACs? | Duration |
|---|---|---|---|
| Blocking | No | No | 20 seconds (max age) |
| Listening | No | No | 15 seconds |
| Learning | No | Yes | 15 seconds |
| Forwarding | Yes | Yes | Normal operation |
| Disabled | No | No | Admin shutdown |
spanning-tree mode rapid-pvst.
9. VLANs — Virtual Local Area Networks
A VLAN (Virtual LAN) logically divides a single physical switch (or group of switches) into multiple independent broadcast domains. Devices in different VLANs cannot communicate at Layer 2 — communication between VLANs requires Layer 3 routing (a router or multilayer switch). See: VLANs Overview | Inter-VLAN Routing
Physical switch with 3 VLANs: ┌────────────────────────────────────────┐ │ Switch │ │ Port 1,2,3 │ Port 4,5,6 │ Port 7,8│ │ VLAN 10 │ VLAN 20 │ VLAN 30 │ │ (Sales) │ (Finance) │ (IT) │ └────────────────────────────────────────┘ VLAN 10 devices can only communicate with other VLAN 10 devices at L2 VLAN 20 devices cannot receive broadcasts from VLAN 10 Inter-VLAN traffic (Sales → Finance) must go through a router/L3 switch
VLAN Benefits
| Benefit | Explanation | Example |
|---|---|---|
| Security | Finance and HR cannot receive broadcasts from the general employee VLAN; reduces attack surface for lateral movement | HR payroll servers on VLAN 30 — inaccessible from VLAN 10 student devices |
| Broadcast containment | Smaller broadcast domains = fewer devices receive each broadcast = less wasted bandwidth | ARP broadcasts from 500 sales PCs don't reach 200 engineering PCs on a different VLAN |
| Flexibility | VLAN membership is configured in software — a device can be moved to a different VLAN without changing physical cabling | New employee in Finance gets assigned to VLAN 20 by reconfiguring their switch port |
| QoS (Quality of Service) | VoIP phones can be placed in a dedicated Voice VLAN with higher priority treatment | VLAN 100 for IP phones — traffic prioritised over regular data VLANs |
10. Three-Tier Hierarchical LAN Design
Cisco's three-tier hierarchical model is the standard architecture for designing scalable, resilient enterprise LANs. Each layer has a specific role, and devices are chosen to match those roles.
┌─────────────────────────────────────────────────────────────────┐
│ CORE LAYER │
│ High-speed backbone; fast packet forwarding only │
│ Cisco Catalyst 9500/6800; 10/40/100 Gbps; no user devices │
└──────────────────────┬──────────────────────────────────────────┘
│ (redundant uplinks)
┌──────────────────────┴──────────────────────────────────────────┐
│ DISTRIBUTION LAYER │
│ Policy enforcement; inter-VLAN routing; ACLs; QoS; STP root │
│ Multilayer switches (Cisco 9300); aggregates access switches │
└────────────┬─────────────────────────────────┬──────────────────┘
│ │
┌────────────┴──────────┐ ┌──────────┴────────────────┐
│ ACCESS LAYER │ │ ACCESS LAYER │
│ Connects end devices │ │ Connects end devices │
│ Port security; PoE │ │ Port security; PoE │
│ Cisco 2960/9200 │ │ Cisco 2960/9200 │
│ PCs, phones, APs │ │ PCs, phones, APs │
└───────────────────────┘ └───────────────────────────┘
| Layer | Primary Function | Key Features | Design Rule |
|---|---|---|---|
| Core | High-speed backbone — routes traffic between distribution blocks as fast as possible | Maximum throughput; minimal latency; redundant links; no user connections; no policies | Never apply access lists, QoS, or other processing at the core — it must forward at line rate |
| Distribution | Policy enforcement between core and access; inter-VLAN routing; aggregation point | Multilayer switching; routing (OSPF/EIGRP); ACLs; QoS; HSRP/VRRP for gateway redundancy; STP root bridge | Every access switch uplinks to two distribution switches for redundancy; distribution switches are the Layer 3 boundary for each access block |
| Access | Connect end-user devices to the network | 802.1Q access/trunk ports; PortFast; BPDU Guard; port security; PoE; VLAN assignment | Access layer = Layer 2 only (no routing); VLAN assignment happens here; 802.1X port authentication for device security |
11. LAN Security Mechanisms
| Mechanism | What It Does | Configuration Summary |
|---|---|---|
| Port Security | Limits which MAC addresses can connect to a switch port — blocks or shuts down ports where unauthorised devices connect | switchport port-security maximum 1switchport port-security violation shutdownswitchport port-securitySee: Port Security |
| 802.1X Port Authentication | Requires devices to authenticate (via RADIUS) before the switch allows any traffic through the port | Requires RADIUS server; supplicant software on client;
dot1x pae authenticator on switch port.
See: 802.1X Overview |
| VLAN Segmentation | Isolates groups of devices — even if one VLAN is compromised, attacker cannot reach other VLANs without traversing the Layer 3 boundary (firewall/router) | Assign sensitive servers to dedicated VLANs; control inter-VLAN routing with ACLs |
| DHCP Snooping | Prevents rogue DHCP servers on untrusted ports from handing out malicious IP configuration to clients | ip dhcp snoopingip dhcp snooping vlan 10Trust only uplink ports |
| Dynamic ARP Inspection (DAI) | Validates ARP packets against the DHCP snooping binding table to prevent ARP spoofing / ARP poisoning attacks | ip arp inspection vlan 10Works in conjunction with DHCP snooping |
| BPDU Guard | Disables a switch port if a BPDU (STP packet) is received on an access port — prevents rogue switches from joining the STP topology | spanning-tree portfast bpduguard defaultApplied on access ports (PortFast ports) |
12. LAN Performance Factors
| Factor | Definition | Impact | How to Measure / Improve |
|---|---|---|---|
| Bandwidth | Maximum theoretical capacity of a link (e.g., 1 Gbps) | Sets the ceiling for data transfer — actual performance is always less | Check interface speed with show interfaces;
upgrade link speed or add EtherChannel |
| Throughput | Actual data successfully delivered per unit time | What users actually experience — affected by errors, retransmissions, overhead, and congestion | Measure with iperf3; improve by reducing errors and congestion |
| Latency | Time for a packet to travel from source to destination (round-trip time) | Critical for real-time applications — VoIP requires <150 ms one-way; high latency causes voice/video degradation | Measure with ping; LAN latency should be
<1 ms; WAN latency varies |
| Jitter | Variation in latency between consecutive packets | Most damaging for real-time traffic (VoIP, video) — causes choppy audio even if average latency is acceptable | Measure with jitter tools; implement QoS to prioritise real-time traffic |
| Packet Loss | Percentage of packets that never arrive | TCP retransmits (slowing throughput); UDP applications (VoIP, video) simply lose data | Check interface error counters (show interfaces
— input errors, CRC, output drops); identify and fix bad
cables or congested links |
13. Common LAN Issues and Troubleshooting
| Issue | Cause | Symptoms | Diagnostic & Fix |
|---|---|---|---|
| Broadcast storm | Layer 2 loop — frames circulate endlessly; STP not running or disabled | Network suddenly unusable; all links show 100% utilisation; switches may crash or restart | Verify STP is running (show spanning-tree);
check for BPDU Guard violations; check physical loops;
enable RSTP for faster recovery |
| Duplex mismatch | One end auto-negotiates to half-duplex while the other is forced full-duplex | High CRC errors and late collisions on the interface; poor throughput (10–100× below expected) | show interfaces — look for input errors,
CRC, late collisions; fix by setting both ends to same
duplex and speed, or both to auto |
| IP address conflict | Two devices assigned the same IP address (static misconfiguration or DHCP scope exhaustion) | Intermittent connectivity; OS warnings "IP address conflict detected"; one or both devices drop off network | arp -a to check duplicate MACs for same IP;
review DHCP pool and exclude statically assigned addresses;
fix static assignments |
| Switch port error-disabled | Port security violation, BPDU Guard trigger, or excessive errors caused the port to shut down automatically | Device cannot connect; show interfaces shows
"err-disabled" |
show interfaces status; identify cause;
shutdown then no shutdown to
re-enable after fixing root cause |
| VLAN mismatch | Device assigned to wrong VLAN, or trunk link missing the required VLAN | Devices in the same physical area cannot ping each other; DHCP fails for affected devices | show vlan brief — verify port VLAN assignment;
show interfaces trunk — verify VLANs allowed
on trunk; correct access or trunk port configuration |
| Cable fault | Damaged cable, bad connector, or bent/crushed cable causing signal degradation | Interface shows up/down intermittently; high CRC errors; speed negotiation instability | Replace cable; use cable tester or TDR to identify fault location; check connector crimp quality |
14. Key Points & Exam Tips
- A LAN connects devices within a limited area (building/campus); privately owned; high speed (1–10 Gbps typical); sub-millisecond latency.
- Hub = Layer 1, one collision domain for all ports, obsolete. Switch = Layer 2, one collision domain per port, one broadcast domain per VLAN. Router = Layer 3, one broadcast domain per interface.
- Every switch port is its own collision domain. Routers and VLANs break broadcast domains — switches alone do not.
- Topology: Star = all cables to central switch (modern standard). Bus = shared backbone (obsolete). Ring = token-passing loop (largely obsolete). Mesh = redundant interconnects (partial mesh at core/distribution).
- Physical star + logical bus = modern Ethernet. Data appears to flow on a shared bus (CSMA/CD heritage) even though wired as star.
- Ethernet frame: Dest MAC | Src MAC | EtherType | Payload (46–1500 bytes) | FCS. Broadcast MAC = FF:FF:FF:FF:FF:FF.
- ARP resolves IP → MAC within a broadcast domain. For remote subnets, devices ARP for the default gateway's MAC — not the remote host's MAC.
- STP (802.1D) prevents broadcast storms from Layer 2 loops by blocking redundant ports. RSTP (802.1w) converges in 1–2 seconds vs 30–50 for STP.
- VLANs logically segment the LAN into multiple broadcast domains. Inter-VLAN routing requires Layer 3 (router-on-a-stick or multilayer switch).
- Three-tier design: Core = fast backbone, no policies. Distribution = routing, ACLs, QoS. Access = end devices, port security, PoE.
- LAN security: Port security (MAC limits), 802.1X (authentication before access), DHCP snooping (no rogue DHCP), DAI (no ARP spoofing), BPDU Guard (no rogue switches).
- Performance: Bandwidth (capacity) ≠ Throughput (actual). Latency and jitter
critical for VoIP. Packet loss measured with
pingand interface error counters.
Related pages: Access and Trunk Ports | CAM Table / MAC Address Table | Ethernet Cable Standards | VLANs | Spanning Tree Protocol | OSI Model | WAN Technologies | How DHCP Works