Posts

Showing posts from May, 2026

Switches & Routers

Image
  🌐 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 ...

OSI Model

 The OSI Model (Open Systems Interconnection Model) is a 7-layer networking framework that explains how data moves from one device to another over a network. It is not a physical system—it's a conceptual model used to understand and troubleshoot networking . OSI Model (7 Layers) 7️⃣ Application Layer 👉 Closest to the user Handles user-facing network services Examples: Web browsers Email clients Protocols: HTTP, HTTPS, FTP, SMTP 💡 Example: Opening a website like Google 6️⃣ Presentation Layer 👉 Translates data format Data conversion (encoding/decoding) Encryption & Decryption Compression 💡 Example: HTTPS encryption (SSL/TLS) 5️⃣ Session Layer 👉 Manages communication sessions Starts, maintains, ends sessions Keeps connection alive between systems 💡 Example: Login session in apps Video call connection 4️⃣ Transport Layer 👉 End-to-end delivery of data Splits data into segments Ensures reliability (error recovery, retransmiss...