🌐 OSI Model (Open Systems Interconnection)

📌 Overview

The OSI Model is a conceptual framework used to understand how data travels across a network. It breaks down network communication into 7 abstract layers.

Mnemonic: Please Do Not Throw Sausage Pizza Away
(Physical, Data Link, Network, Transport, Session, Presentation, Application)

Hindi Mnemonic: Andhra Pradesh Se Train Nayi Delhi Pahuchi
(Application, Presentation, Session, Transport, Network, Data Link, Physical)


1. The 7 Layers & Azure Mapping

LayerNameUnit of DataFunctionAzure Component
L7ApplicationDataEnd-user interface (HTTP, FTP, SMTP)Application Gateway, Front Door
L6PresentationDataEncryption, Compression (SSL/TLS)SSL Termination
L5SessionDataSession managementTCP Sessions
L4TransportSegmentReliability, Ports (TCP/UDP)Azure Load Balancer
L3NetworkPacketRouting, IP AddressingVirtual Network (VNET), NSG
L2Data LinkFrameMAC Addressing, SwitchingVirtual Switch (Managed by Azure)
L1PhysicalBitCables, Fiber, WirelessPhysical Data Center Hardware

2. Deep Dive: The 7 Layers Explained (Hinglish)

Layer 7: Application Layer (Sabse Top Layer)

Layer 6: Presentation Layer (Translator)

Layer 5: Session Layer (Manager)

Layer 4: Transport Layer (The Transporter)

Layer 3: Network Layer (The Router)

Layer 2: Data Link Layer (The Switch)

Layer 1: Physical Layer (Hardware)


L4 vs L7 Load Balancing


3. Architecture Diagram

     +-------------------------------+
     |     Layer 7 (Application)     |
     |                               |
     |   [ Web Browser / User ]      |
     |             |                 |
     |             v (HTTP Request)  |
     |                               |
     | [ Azure App Gateway / FD ]    |
     +-------------------------------+
                   |
                   | (Forward Request)
                   v
     +-------------------------------+
     |     Layer 4 (Transport)       |
     |                               |
     |   [ Azure Load Balancer ]     |
     |     (TCP/UDP Port 80/443)     |
     |                               |
     +-------------------------------+
                   |
                   | (Distribute TCP Stream)
                   v
     +-------------------------------+
     |     Layer 3 (Network)         |
     |                               |
     |   [ Virtual Network (VNET) ]  |
     |   (Private IP: 10.0.0.5)      |
     |             |                 |
     |             v (Route Packet)  |
     |                               |
     |     [ Virtual Machine ]       |
     +-------------------------------+

💡 Exam Tips for AZ-900