Computer Networks Essentials / Network Models

Functions of Each layer

πŸ—οΈ Quick Recall: OSI Model Layers

From top to bottom:

7️⃣ Application

6️⃣ Presentation

5️⃣ Session

4️⃣ Transport

3️⃣ Network

2️⃣ Data Link

1️⃣ Physical

🧠 Mnemonic:

All People Seem To Need Data Processing


πŸ” Layer 7: Application Layer

Provides network services directly to the user.

πŸ“Œ This is the layer where users interact with the network.

  • 🌐 Web access

  • πŸ“§ Email services

  • πŸ“‚ File transfer

  • πŸ§‘β€πŸ’» Remote login

  • HTTP / HTTPS

  • FTP

  • SMTP

  • DNS

Opening a website using a browser like Chrome.

πŸ“Œ Application layer provides network services to end users.


🎨 Layer 6: Presentation Layer

Ensures that data sent by the sender is understood by the receiver.

πŸ“Œ Acts as a translator πŸ—£οΈ.

  • πŸ”„ Data translation (format conversion)

  • πŸ” Encryption

  • πŸ”“ Decryption

  • πŸ“¦ Data compression

  • HTTPS encrypting data

  • ZIP file compression

πŸ“Œ Presentation layer handles data formatting, encryption, and compression.


πŸͺ’ Layer 5: Session Layer

Manages sessions (connections) between two devices.

πŸ“Œ Controls start, maintain, and end of communication.

  • Session establishment

  • Session maintenance

  • Session termination

  • Synchronization (checkpoints)

Zoom meeting session:

  • Join meeting

  • Stay connected

  • Leave meeting

πŸ“Œ Session layer establishes, manages, and terminates sessions.


🚚 Layer 4: Transport Layer

Ensures end-to-end delivery of data reliably and efficiently.

πŸ“Œ One of the most important layers.

  • βœ‚οΈ Segmentation & reassembly

  • ❌ Error control

  • 🚦 Flow control

  • πŸ”’ Port addressing

  • TCP (Reliable)

  • UDP (Fast)

Courier service delivering parcels safely to the correct address.

πŸ“Œ Transport layer ensures reliable end-to-end data delivery.


🌍 Layer 3: Network Layer

Handles routing and logical addressing.

πŸ“Œ Decides best path for data to travel.

  • IP addressing

  • Packet routing

  • Path selection

  • Packet forwarding

  • IP

  • ICMP

  • Routing protocols (RIP, OSPF)

Google Maps choosing the best route.

πŸ“Œ Network layer determines the best path for data delivery.


πŸ”€ Layer 2: Data Link Layer

Provides node-to-node delivery within the same network.

πŸ“Œ Ensures data reaches the correct physical device.

  • Framing

  • MAC addressing

  • Error detection

  • Flow control

  • Access control (MAC)

  • Switch

  • Bridge

Delivering a parcel to the correct house on a street.

πŸ“Œ Data Link layer ensures error-free transmission between adjacent nodes.


⚑ Layer 1: Physical Layer

Handles actual physical transmission of bits (0s and 1s).

πŸ“Œ Lowest layer of OSI model.

  • Bit transmission

  • Voltage levels

  • Cable specifications

  • Data rates

  • Physical topology

  • Cables

  • Hub

  • Repeater

  • NIC (physical aspect)

Roads that allow vehicles to move.

πŸ“Œ Physical layer transmits raw bits over a physical medium.


πŸ“Š Complete Summary Table

Layer

Name

Core Function

7

Application

User interaction

6

Presentation

Format & security

5

Session

Session control

4

Transport

Reliable delivery

3

Network

Routing

2

Data Link

MAC & framing

1

Physical

Bit transmission


⭐ One-Line Summary

πŸ”Ή Each OSI layer has a specific role, and together they enable smooth and reliable network communication.