Buffl

Day 3 OSI Mpdel & TCP/IP Suite

as
by abdullah S.

🎯 KEY POINTS BY LAYER


OSI MODEL LAYERS (Top to Bottom)

Layer 7 - Application

  • Closest to end user

  • Interacts with software applications

  • Protocols: HTTP, HTTPS, FTP, SMTP, DNS

  • Functions: Identifying communication partners, synchronizing communication

  • Who uses it: Application developers

Layer 6 - Presentation

  • Translates data between application and network formats

  • Functions: Encryption/decryption, compression, format translation

  • Example: Converting JPEG to network-transmittable format

Layer 5 - Session

  • Controls dialogues (sessions) between hosts

  • Functions: Establishes, manages, and terminates connections

  • Example: Managing connection between web browser and YouTube server

Layer 4 - Transport

  • PDU: Segment

  • Segments and reassembles data

  • Provides host-to-host communication

  • Protocols: TCP, UDP

  • Breaks large data into smaller segments

  • Header added: L4 header

Layer 3 - Network

  • PDU: Packet

  • Provides connectivity between different networks

  • Logical addressing: IP addresses

  • Path selection between source and destination

  • Devices: Routers operate here

  • Header added: L3 header (added to segment)

Layer 2 - Data Link

  • PDU: Frame

  • Provides node-to-node connectivity

  • Defines data formatting for physical transmission

  • Detects and possibly corrects Physical Layer errors

  • Physical addressing: MAC addresses (separate from Layer 3)

  • Devices: Switches operate here

  • Headers/Trailers added: L2 header + L2 trailer

Layer 1 - Physical

  • PDU: Bit

  • Defines physical characteristics of transmission medium

  • Specifications: Voltage levels, maximum distances, connectors, cable specs

  • Converts digital bits to electrical or radio signals

  • Example: Cable types, pin layouts, RJ-45 connectors



⚠️ COMMON EXAM PITFALLS


Pitfall #1: Confusing Interaction Types

  • ❌ Wrong: Thinking a web browser talking to a web server is adjacent-layer interaction

  • βœ… Correct: This is same-layer interaction (both at Layer 7)

  • Tip: Adjacent = different layers SAME device; Same-layer = same layer DIFFERENT devices

Pitfall #2: PDU Identification

  • ❌ Wrong: Counting headers incorrectly for PDU identification

  • βœ… Correct:

    • 1 header (L4) = Segment

    • 2 headers (L4+L3) = Packet

    • 3 headers + 1 trailer (L4+L3+L2+trailer) = Frame

  • Tip: Count the layers involved in encapsulation

Pitfall #3: TCP/IP vs OSI Mapping

  • ❌ Wrong: Thinking TCP/IP Link layer = only OSI Data Link layer

  • βœ… Correct: TCP/IP Link = OSI Data Link + Physical (both layers)

  • Tip: TCP/IP combines the bottom two OSI layers

Pitfall #4: Layer Responsibilities

  • ❌ Wrong: Thinking Layer 3 provides host-to-host communication

  • βœ… Correct: Layer 4 (Transport) provides host-to-host; Layer 3 provides network-to-network

  • Tip: Layer 3 = logical addressing and routing; Layer 4 = reliable delivery

Pitfall #5: Network Engineer Focus

  • ❌ Wrong: Thinking network engineers work with all 7 layers equally

  • βœ… Correct: Network engineers focus on Layers 1-4 (especially 2-3)

  • Tip: Top 3 layers (5-7) are for application developers

Pitfall #6: Encapsulation Direction

  • ❌ Wrong: Confusing encapsulation with de-encapsulation

  • βœ… Correct:

    • Encapsulation = Adding headers going DOWN (Layer 7β†’1)

    • De-encapsulation = Removing headers going UP (Layer 1β†’7)


Author

abdullah S.

Information

Last changed