/ _ \ \_\(_)/_/ _//"\\_ more on JOHLEM.net / \ 0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0 ========================================== OSI MODEL CHEATSHEET ========================================== The OSI (Open Systems Interconnection) Model is a framework for standardizing network communication. It has **7 layers**, each with distinct functions that enable devices to interoperate. ========================================== OSI MODEL - LAYERS OVERVIEW ========================================== | Layer | Name | Key Function | |-------|---------------|-----------------------------------| | 7 | Application | User interfaces, data interaction| | 6 | Presentation | Data translation and encryption | | 5 | Session | Connection mgmt (start, stop) | | 4 | Transport | Reliable/fast data transmission | | 3 | Network | Routing, addressing (IP) | | 2 | Data Link | Physical addressing (MAC) | | 1 | Physical | Hardware, signals, binary data | ========================================== LAYER-BY-LAYER EXPLANATION + DETAILS ========================================== ------------------------------------------ Layer 1: PHYSICAL ------------------------------------------ - **Definition:** Deals with physical hardware components. - **Examples:** Ethernet cables, switches, binary data. - **Key Terms:** - **Binary:** Data as 0s and 1s. - **Ethernet Cables:** Connect physical devices. - **Purpose:** Transmits raw bits (1s/0s) over a medium. ------------------------------------------ Layer 2: DATA LINK ------------------------------------------ - **Definition:** Ensures reliable data transfer between nodes. - **Examples:** MAC addresses, switches. - **Key Terms:** - **MAC Address:** Unique ID burned into NICs. - **NIC (Network Interface Card):** Device enabling network access. - **Protocols:** ARP (Address Resolution Protocol). - **Purpose:** Adds physical addressing (MAC), resolves IP to MAC. ------------------------------------------ Layer 3: NETWORK ------------------------------------------ - **Definition:** Handles routing and IP addressing. - **Examples:** Routers, IP protocols. - **Key Terms:** - **Routing:** Determines best path for data. - **IP Address:** Logical address (e.g., 192.168.1.1). - **Protocols:** OSPF (Open Shortest Path First), RIP, ICMP. - **Purpose:** Routes data packets across networks. ------------------------------------------ Layer 4: TRANSPORT ------------------------------------------ - **Definition:** Manages data delivery (reliable/unreliable). - **Examples:** TCP, UDP. - **Key Terms:** - **TCP:** Reliable, error-checked transmission. - **UDP:** Fast, no guarantee of delivery. - **Purpose:** Segments data, ensures reliable or fast delivery. ------------------------------------------ Layer 5: SESSION ------------------------------------------ - **Definition:** Manages sessions between devices. - **Examples:** Checkpoints for recovery, session closing. - **Key Terms:** - **Session:** Connection established between devices. - **Checkpoints:** Savepoints for incomplete transmissions. - **Purpose:** Establishes, manages, and terminates sessions. ------------------------------------------ Layer 6: PRESENTATION ------------------------------------------ - **Definition:** Translates and formats data for applications. - **Examples:** Encryption (HTTPS), data formatting. - **Key Terms:** - **Translator:** Standardizes data for interoperability. - **Encryption:** Protects data (e.g., HTTPS). - **Purpose:** Ensures data is readable and secure. ------------------------------------------ Layer 7: APPLICATION ------------------------------------------ - **Definition:** Closest to the user, interacts with software. - **Examples:** Email clients, browsers, DNS, DHCP. - **Key Terms:** - **GUI (Graphical User Interface):** User-facing software. - **DNS (Domain Name System):** Resolves domain names to IPs. - **DHCP:** Assigns IP addresses dynamically using UDP. - **Purpose:** Provides tools and protocols for user interaction. ========================================== COMMON PROTOCOLS & OSI LAYERS ========================================== | Protocol | Layer | Function | TCP/UDP | |----------|--------|-------------------------------|---------| | ARP | 2 | Resolves IP to MAC address | N/A | | DHCP | 7 | Assigns dynamic IP addresses | UDP | | HTTP | 7 | Web browsing | TCP | | HTTPS | 7 | Secure web browsing | TCP | | DNS | 7 | Resolves domain names to IPs | TCP/UDP | | FTP | 7 | File transfers | TCP | | SSH | 7 | Secure remote login | TCP | | SMTP | 7 | Email sending | TCP | | POP3 | 7 | Email retrieval | TCP | | IMAP | 7 | Email synchronization | TCP | | SNMP | 7 | Network device monitoring | UDP | | Telnet | 7 | Unsecure remote login | TCP | | RIP | 3 | Routing | UDP | | OSPF | 3 | Routing | N/A | | ICMP | 3 | Diagnostics (e.g., ping) | N/A | | BGP | 3 | Routing protocol for Internet | TCP | | TFTP | 7 | Simple file transfer | UDP | ========================================== KEY TERMS & CONCEPTS ========================================== - **Encapsulation:** Adding headers at each layer for processing. - **Routing:** Finding the best path for packets. - **IP Address:** Logical device identifier (e.g., 192.168.1.100). - **MAC Address:** Physical device identifier, unique per NIC. - **DNS:** Resolves human-readable domain names to IPs. - **DHCP:** Dynamically assigns IP configurations. - **ARP:** Resolves IP addresses to physical MAC addresses. ========================================== TCP vs UDP (Layer 4) ========================================== | Feature | TCP | UDP | |--------------------|-------------------|-----------------| | Reliability | Yes | No | | Speed | Slower | Faster | | Example Use Cases | Email, file share | Video streaming | | Connection Type | Continuous | Connectionless | ========================================== CONCLUSION ========================================== The OSI model provides a structured way to understand and design networks. Each layer focuses on a specific task, from hardware signals (Layer 1) to user interactions (Layer 7). Mastering these layers and their associated protocols is essential for networking professionals!