Frames & Packets

Also available in 40 other languages

Here is the requested information presented clearly:


OSI Model Layers (Top to Bottom)

The Open Systems Interconnection (OSI) model is a conceptual framework used to describe how networking functions should interact. It divides the complex process of network communication into seven distinct, manageable layers.

Layer Number Layer Name Function / Role Protocols / Examples PDU (Data Unit)
7 Application Provides the interface for network applications to access network services. It deals with end-user applications. HTTP, FTP, SMTP, POP3, SNMP Data
6 Presentation Responsible for data translation, compression, and encryption/decryption. Ensures that data sent from the application layer of one system is readable by the application layer of another. JPEG, MPEG, SSL/TLS (Encryption/Decryption) Data
5 Session Establishes, manages, and terminates the connection (session) between two applications. It handles synchronization and dialogue control. NetBIOS, SIP Data
4 Transport Provides reliable and transparent end-to-end data transfer between processes running on different hosts. It segments data and handles flow control. TCP (Reliable, Connection-Oriented), UDP (Fast, Connectionless) Segment (TCP) / Datagram (UDP)
3 Network Determines the best path (routing) for data across different networks (inter-networking). It handles logical addressing (IP addressing). IP, ICMP, OSPF, BGP Packet
2 Data Link Provides reliable transfer of data across a single physical link (hop-to-hop). It handles physical addressing (MAC addressing) and error detection. Ethernet, PPP, Switches Frame
1 Physical Deals with the physical transmission of raw bits over the communication medium (cable, radio waves). It defines electrical specifications. Copper wire, Fiber optics, Hubs, Repeaters Bits

Key Explanations:

  • Data Unit (PDU): The name of the unit of data at that specific layer.
  • Scope:
    • L1-L2: Focus on the physical link (local network segment).
    • L3: Focus on moving data across multiple networks (internet routing).
    • L4: Focus on end-to-end reliability between the source and destination hosts.
    • L5-L7: Focus on the application interaction and presentation of data.

Summary of Functionality Flow

When you send data (e.g., opening a webpage):

  1. Application (L7): Your web browser generates the request (HTTP).
  2. Presentation (L6): The data might be encrypted (TLS/SSL) for security.
  3. Session (L5): A formal connection is established with the server.
  4. Transport (L4): The data is broken into segments, and TCP ensures every segment arrives correctly.
  5. Network (L3): Each segment is wrapped in an IP packet, containing the source and destination IP addresses, and the router figures out the best path.
  6. Data Link (L2): The packet is wrapped in an Ethernet frame, containing the MAC addresses of the next immediate hop (the next router or device).
  7. Physical (L1): The frame is converted into electrical signals (bits) and sent across the wire.

When the data reaches the destination, the process reverses, with each layer peeling off the header added by the layer above it.