Switches & Routers
🌐 Switch vs Router 🔀 Switch (Layer 2 – Data Link Layer) A switch connects devices within the same network (LAN) . 🧠 What it does: Connects computers, printers, servers in one network Uses MAC address to forward data Sends data only to the correct device (not everyone) 📦 Example: In an office: PC1 → PC2 Laptop → Printer All inside the same building network ⚙️ Key Points: Works inside LAN Faster than router (for local traffic) Uses MAC address table Operates mainly at OSI Layer 2 🧩 Think of it like: 👉 “A smart office manager who delivers messages to the correct desk” 🌍 Router (Layer 3 – Network Layer) A router connects different networks together (LAN ↔ Internet) . 🧠 What it does: Connects your home network to the internet Routes data between different networks Uses IP address Finds best path for data 📦 Example: Your phone → YouTube server (Google) Home network → Internet → YouTube ⚙️ Key Points: Works between networks ...