---
description: OSI model tutorial covers the topics like OSI model definition, characteristics, history, physical, data link, transport, network, and session layer with examples.
title: OSI Model Layers and Protocols in Computer Network
image: https://www.guru99.com/images/layers-of-osi-model-1.png
---

 

[Skip to content](#main) 

**⚡ Smart Summary**

OSI Model Layers and Protocols define how network communication is conceptually structured into seven layers — Physical, Data Link, Network, Transport, Session, Presentation, and Application. Each layer owns specific responsibilities and protocols and serves only the layer above and below it.

* 📚 **Memorise the seven layers:** Physical, Data Link, Network, Transport, Session, Presentation, and Application — from cable to user app.
* 🔗 **Group lower and upper layers:** Lower layers (1–4) move bits and packets; upper layers (5–7) handle session, format, and application semantics.
* 🧾 **Match protocols to layers:** IP and ICMP at L3, TCP and UDP at L4, HTTP and SMTP at L7 — knowing the layer reveals the right tool.
* 🆚 **Compare with TCP/IP:** OSI has seven layers and a strict reference, while TCP/IP collapses them into four practical layers used on the modern Internet.
* 🤖 **Use AI to debug stacks:** AI assistants explain Wireshark captures by layer, highlight which OSI layer a failure sits in, and suggest the right diagnostic command.

[ Read More ](javascript:void%280%29;) 

![7 Layers of the OSI Model](https://www.guru99.com/images/layers-of-osi-model-1.png)

## What is the OSI Model?

The **OSI (Open Systems Interconnection) Model** is a conceptual reference model that describes how data moves between systems on a network. It divides communication into seven abstract layers, each with a clearly defined responsibility and a specific set of protocols. The model is not implemented exactly as drawn on real networks — TCP/IP is the protocol stack actually deployed — but the OSI layers remain the standard vocabulary engineers use to reason about network problems.

## Characteristics of the OSI Model

* A layer is created only where a distinct level of abstraction is needed.
* Each layer’s function is chosen so it aligns with an internationally standardised protocol.
* Layers should be numerous enough to separate concerns but few enough to avoid runaway complexity.
* Each layer relies on the layer immediately below it for primitive services and exposes services to the layer immediately above.
* A change inside one layer should not require changes in the layers above or below it.

## Why Use the OSI Model?

* Provides a shared vocabulary for understanding communication across a network.
* Makes troubleshooting easier by separating functions into independent network layers.
* Helps engineers absorb new technologies by mapping them onto familiar layers.
* Lets you compare functional relationships across different protocol stacks.

## History of the OSI Model

* **Late 1970s** — the ISO began a programme to define general networking standards.
* **1973** — an experimental packet-switched system in the UK highlighted the need for higher-level protocols.
* **1983** — the OSI model was first published as a detailed interface specification.
* **1984** — ISO formally adopted the OSI architecture as an international standard (ISO 7498).

## The 7 Layers of the OSI Model

The OSI Model is a layered reference architecture in which each layer performs a specific function. The seven layers work together to deliver data from sender to receiver.

* **Upper layers (Application, Presentation, Session):** deal with application semantics and run primarily in software.
* **Lower layers (Transport, Network, Data Link, Physical):** deal with data transport, packetisation, framing, and the physical medium. Data Link and Physical also include hardware.

The seven layers, top to bottom, are:

1. Application
2. Presentation
3. Session
4. Transport
5. Network
6. Data Link
7. Physical

[](https://www.guru99.com/images/1/092119%5F0729%5FLayersofOSI1.png)

_Network layers diagram._

## Physical Layer

The **Physical layer** defines the electrical, mechanical, and physical specifications of the data connection. It carries raw bits over a transmission medium and is unconcerned with protocols or higher-layer semantics. PRI (Primary Rate Interface) is one telecommunications example that operates at this layer — learn more in the [PRI tutorial](https://www.guru99.com/what-is-pri.html).

Examples of Physical-layer hardware include network adapters, Ethernet cabling, repeaters, and networking hubs.

### RELATED ARTICLES

* [11 Best FREE Network Monitoring Tools & Software (2026) ](https://www.guru99.com/network-monitoring-tools.html "11 Best FREE Network Monitoring Tools & Software (2026)")
* [Router vs Switch – Difference Between Them ](https://www.guru99.com/router-vs-switch-difference.html "Router vs Switch – Difference Between Them")
* [7 BEST WiFi Sniffer App (2026) ](https://www.guru99.com/best-wifi-packet-sniffer.html "7 BEST WiFi Sniffer App (2026)")
* [Top 30 VLSI Interview Questions and Answers (2026) ](https://www.guru99.com/vlsi-interview-questions.html "Top 30 VLSI Interview Questions and Answers (2026)")

## Data Link Layer

The **Data Link layer** detects and corrects errors that can occur on the Physical layer and manages the protocol that establishes and terminates a link between two directly connected devices. It frames raw bits into structured frames and handles physical (MAC) addressing.

Data Link is split into two sublayers:

1. **Media Access Control (MAC):** controls how devices gain access to the shared medium and how they transmit data.
2. **Logical Link Control (LLC):** identifies and encapsulates network-layer protocols and detects errors.

### Important functions of the Data Link layer

* Framing: splits Network-layer data into frames.
* Adds a header containing the physical (MAC) address of source and destination.
* Provides hop-to-hop delivery of frames between adjacent devices.
* Detects errors and re-requests damaged or lost frames.
* Offers a mechanism to traverse independent networks that are linked together.

## Network Layer

The **Network layer** provides the functional and procedural means of transferring variable-length data sequences between hosts located on different networks. It handles logical addressing (IP), routing, and packet forwarding.

Network-layer delivery is not inherently reliable — that guarantee is the Transport layer’s job. Layer-management protocols at this layer include:

1. Routing protocols (OSPF, BGP, RIP).
2. Multicast group management (IGMP).
3. Network-layer address assignment (DHCP).

## Transport Layer

The **Transport layer** builds on the Network layer to provide end-to-end data transport between processes on source and destination machines. It maintains quality-of-service properties such as ordering, reliability, and flow control.

The Transport layer divides upper-layer messages into segments, numbers them, and reassembles them at the receiver. It guarantees error-free, in-sequence delivery when used with reliable protocols like TCP, or accepts loss in exchange for speed when used with UDP.

### Important functions of the Transport layer

* Segments the message received from the Session layer and numbers each segment.
* Delivers each segment to the correct process on the destination machine using ports.
* Ensures the entire message arrives without error, retransmitting when necessary.
* Manages flow control so a fast sender does not overwhelm a slow receiver.

## Session Layer

The **Session layer** controls the dialogues (sessions) between two computers. It establishes, manages, and terminates logical connections, handles authentication where required, and supports both full-duplex and half-duplex dialogues. It is most often implemented in environments that use remote procedure calls.

### Important functions of the Session layer

* Establishes, maintains, and ends a session between two systems.
* Enables both systems to enter into a controlled dialogue.
* Adds checkpoints to a data stream so a session can resume after an interruption.

## Presentation Layer

The **Presentation layer** defines the format in which data is exchanged between two communicating entities and handles compression and encryption. It is sometimes called the _syntax layer_.

### Functions of the Presentation layer

* Character-set translation (for example, ASCII to EBCDIC).
* Data compression to reduce bits on the wire.
* Data encryption — for example, TLS to protect payload integrity and confidentiality.
* Provides format support for services such as email and file transfer.

## Application Layer

The **Application layer** is the layer closest to the end user and the only one that interacts directly with applications. It does not contain the applications themselves — instead it exposes the network services that applications use.

### Functions of the Application layer

* Identifies communication partners, determines resource availability, and synchronises communication.
* Lets users log on to a remote host.
* Provides email services and directory access.
* Offers distributed-database access for global information about objects and services.

## Interaction Between OSI Model Layers

Information sent from one computer application to another flows down through the OSI layers on the sender, across the wire, and back up through the layers on the receiver.

* Each layer communicates with the layer above it, the layer below it, and the corresponding peer layer on the remote system.
* In the diagram below, the Data Link layer of the first system communicates with the Network and Physical layers on the same host and with the Data Link layer of the remote system.

[](https://www.guru99.com/images/1/092119%5F0729%5FLayersofOSI2.png)

## Protocols Supported at Each OSI Layer

| Layer   | Name         | Common Protocols                                           |
| ------- | ------------ | ---------------------------------------------------------- |
| Layer 7 | Application  | SMTP, HTTP, HTTPS, FTP, POP3, SNMP, DNS                    |
| Layer 6 | Presentation | MPEG, ASCII, SSL, TLS                                      |
| Layer 5 | Session      | NetBIOS, SAP, RPC                                          |
| Layer 4 | Transport    | TCP, UDP, SCTP                                             |
| Layer 3 | Network      | IPv4, IPv6, ICMP, IPsec, ARP, MPLS                         |
| Layer 2 | Data Link    | Ethernet, PPP, Frame Relay, ATM, HDLC                      |
| Layer 1 | Physical     | RS-232, 100BaseTX, ISDN, IEEE 802.11 (physical signalling) |

## Differences Between OSI and TCP/IP

[](https://www.guru99.com/images/1/092119%5F0729%5FLayersofOSI3.png)

| OSI Model                                                                 | TCP/IP Model                                                                                                                       |
| ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Provides a clear distinction between interfaces, services, and protocols. | Does not draw a strict line between services, interfaces, and protocols.                                                           |
| Has seven layers.                                                         | Has four layers (Application, Transport, Internet, Network Access).                                                                |
| Uses a dedicated Network layer for routing.                               | Uses a single Internet layer that combines routing and addressing.                                                                 |
| Has separate Physical and Data Link layers.                               | Combines the Physical and Data Link layers into one Network Access layer.                                                          |
| Transport layer is connection-oriented.                                   | The [TCP/IP](https://www.guru99.com/tcp-ip-model.html) Transport layer is both connection-oriented (TCP) and connectionless (UDP). |
| Minimum OSI header size is around 5 bytes.                                | Minimum TCP/IP header size is 20 bytes.                                                                                            |

## Advantages of the OSI Model

* Standardises routers, switches, and other hardware around well-defined layer boundaries.
* Reduces complexity and standardises interfaces.
* Facilitates modular engineering — vendors can innovate inside one layer without breaking others.
* Guarantees interoperable technology across vendors.
* Accelerates the evolution of network protocols.
* Provides support for both connection-oriented and connectionless services.
* Remains the standard reference model in computer networking education.
* Offers flexibility to adapt to many types of protocols.

## Disadvantages of the OSI Model

* Fitting real-world protocols into OSI layers can be tedious.
* It is a reference model only — it does not define specific protocols.
* Some services are duplicated across layers (for example, error checking at Transport and Data Link).
* Layers cannot run in parallel — each one waits for the previous layer’s output.

## FAQs

⚡ Who created the OSI model?

The ISO (International Organization for Standardization) developed the OSI model in the late 1970s and formally adopted it in 1984 as ISO 7498\. It remains the canonical reference architecture for teaching networking.

🚀 What is the difference between OSI and TCP/IP?

OSI is a seven-layer reference model. TCP/IP is the four-layer protocol stack actually used on the Internet, where Physical and Data Link are merged into Network Access and Session/Presentation are folded into Application.

💡 At which OSI layer does HTTP operate?

HTTP operates at the Application layer (Layer 7). It rides on top of TCP at the Transport layer (Layer 4), which itself runs over IP at the Network layer (Layer 3).

🔒 Is a firewall an OSI layer 3 or layer 7 device?

Both. Stateless packet filters work at Layer 3/4 by inspecting IP addresses and TCP/UDP ports. Application firewalls (WAFs) and proxies inspect at Layer 7 by understanding HTTP, DNS, or other protocols.

📐 What is a good mnemonic to remember the OSI layers?

“Please Do Not Throw Sausage Pizza Away” — Physical, Data Link, Network, Transport, Session, Presentation, Application — bottom to top. Reverse it for top-to-bottom recall.

⏱️ At which layer does a switch operate?

Standard switches operate at Layer 2 (Data Link) and forward frames by MAC address. Layer 3 switches add routing capabilities and forward packets by IP address, blending switching and routing in one device.

🤖 How can AI help me learn the OSI model?

AI assistants annotate Wireshark captures layer by layer, generate practice quizzes mapped to specific layers, and explain real-world incidents (DNS failure, TLS handshake error) in terms of the OSI layer responsible.

✍️ Can AI diagnose which OSI layer a network problem belongs to?

Yes. Given a symptom such as “site loads slowly only on Wi-Fi”, AI tools map it to the most likely layer (Physical or Data Link), suggest commands (ping, traceroute, iperf), and explain how to confirm the root cause.

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter]() Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/layers-of-osi-model-1.png","url":"https://www.guru99.com/images/layers-of-osi-model-1.png","width":"700","height":"250","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/layers-of-osi-model.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/networking","name":"Networking"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/layers-of-osi-model.html","name":"OSI Model Layers and Protocols in Computer Network"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/layers-of-osi-model.html#webpage","url":"https://www.guru99.com/layers-of-osi-model.html","name":"OSI Model Layers and Protocols in Computer Network","dateModified":"2026-06-12T15:31:16+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/layers-of-osi-model-1.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/layers-of-osi-model.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/bryce","name":"Bryce Leo","description":"I'm Bryce Leo, an IT Specialist with expertise in network administration and cybersecurity, committed to enhancing IT infrastructure.","url":"https://www.guru99.com/author/bryce","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/bryce-leo-author.png","url":"https://www.guru99.com/images/bryce-leo-author.png","caption":"Bryce Leo","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"@type":"Article","headline":"OSI Model Layers and Protocols in Computer Network","description":"OSI model tutorial covers the topics like OSI model definition, characteristics, history, physical, data link, transport, network, and session layer with examples.","keywords":"network, hacking","author":{"@id":"https://www.guru99.com/author/bryce","name":"Bryce Leo"},"copyrightYear":"2026","name":"OSI Model Layers and Protocols in Computer Network","articleSection":"Networking","subjectOf":[{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Who created the OSI model?","acceptedAnswer":{"@type":"Answer","text":"The ISO (International Organization for Standardization) developed the OSI model in the late 1970s and formally adopted it in 1984 as ISO 7498. It remains the canonical reference architecture for teaching networking."}},{"@type":"Question","name":"What is the difference between OSI and TCP/IP?","acceptedAnswer":{"@type":"Answer","text":"OSI is a seven-layer reference model. TCP/IP is the four-layer protocol stack actually used on the Internet, where Physical and Data Link are merged into Network Access and Session/Presentation are folded into Application."}},{"@type":"Question","name":"At which OSI layer does HTTP operate?","acceptedAnswer":{"@type":"Answer","text":"HTTP operates at the Application layer (Layer 7). It rides on top of TCP at the Transport layer (Layer 4), which itself runs over IP at the Network layer (Layer 3)."}},{"@type":"Question","name":"Is a firewall an OSI layer 3 or layer 7 device?","acceptedAnswer":{"@type":"Answer","text":"Both. Stateless packet filters work at Layer 3/4 by inspecting IP addresses and TCP/UDP ports. Application firewalls (WAFs) and proxies inspect at Layer 7 by understanding HTTP, DNS, or other protocols."}},{"@type":"Question","name":"What is a good mnemonic to remember the OSI layers?","acceptedAnswer":{"@type":"Answer","text":"'Please Do Not Throw Sausage Pizza Away' \u2014 Physical, Data Link, Network, Transport, Session, Presentation, Application \u2014 bottom to top. Reverse it for top-to-bottom recall."}},{"@type":"Question","name":"At which layer does a switch operate?","acceptedAnswer":{"@type":"Answer","text":"Standard switches operate at Layer 2 (Data Link) and forward frames by MAC address. Layer 3 switches add routing capabilities and forward packets by IP address, blending switching and routing in one device."}},{"@type":"Question","name":"How can AI help me learn the OSI model?","acceptedAnswer":{"@type":"Answer","text":"AI assistants annotate Wireshark captures layer by layer, generate practice quizzes mapped to specific layers, and explain real-world incidents (DNS failure, TLS handshake error) in terms of the OSI layer responsible."}},{"@type":"Question","name":"Can AI diagnose which OSI layer a network problem belongs to?","acceptedAnswer":{"@type":"Answer","text":"Yes. Given a symptom such as 'site loads slowly only on Wi-Fi', AI tools map it to the most likely layer (Physical or Data Link), suggest commands (ping, traceroute, iperf), and explain how to confirm the root cause."}}]}],"@id":"https://www.guru99.com/layers-of-osi-model.html#schema-1112959","isPartOf":{"@id":"https://www.guru99.com/layers-of-osi-model.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"image":{"@id":"https://www.guru99.com/images/layers-of-osi-model-1.png"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/layers-of-osi-model.html#webpage"}}]}
```
