<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: naveen gadde</title>
    <description>The latest articles on DEV Community by naveen gadde (@naveen_krish_33).</description>
    <link>https://dev.to/naveen_krish_33</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4218367%2Ff57f6f7b-74d9-4dfd-bdd9-e40e6844ea4d.png</url>
      <title>DEV Community: naveen gadde</title>
      <link>https://dev.to/naveen_krish_33</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/naveen_krish_33"/>
    <language>en</language>
    <item>
      <title>The OSI Model</title>
      <dc:creator>naveen gadde</dc:creator>
      <pubDate>Sat, 31 Oct 2026 11:06:58 +0000</pubDate>
      <link>https://dev.to/naveen_krish_33/the-osi-model-3702</link>
      <guid>https://dev.to/naveen_krish_33/the-osi-model-3702</guid>
      <description>&lt;h1&gt;
  
  
  The OSI Model Explained: What Really Happens When You Open a Website?
&lt;/h1&gt;

&lt;p&gt;By Naveenkumar&lt;/p&gt;

&lt;p&gt;Have you ever wondered what happens behind the scenes when you open Google, watch a YouTube video, or send a WhatsApp message?&lt;/p&gt;

&lt;p&gt;You tap a button, wait a few seconds, and the information appears on your screen. It looks simple, right?&lt;/p&gt;

&lt;p&gt;But there is a lot happening behind the scenes.&lt;/p&gt;

&lt;p&gt;Your device needs to communicate with servers, send data across networks, identify destinations, and receive responses. Different networking technologies work together to make this communication possible.&lt;/p&gt;

&lt;p&gt;This is where the &lt;strong&gt;OSI Model&lt;/strong&gt; comes into the picture.&lt;/p&gt;

&lt;p&gt;The OSI Model breaks network communication into seven layers. Instead of looking at networking as one complicated process, we can understand it step by step.&lt;/p&gt;

&lt;p&gt;Let's explore these seven layers using simple explanations and real-world examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, What Exactly Is the OSI Model?
&lt;/h2&gt;

&lt;p&gt;OSI stands for &lt;strong&gt;Open Systems Interconnection&lt;/strong&gt;. It is a conceptual reference model developed by the International Organization for Standardization (ISO) to help explain how devices communicate over a network.&lt;/p&gt;

&lt;p&gt;Think of it like a delivery service. When you order something online, you place an order, the seller prepares the package, delivery services transport it, and finally you receive it.&lt;/p&gt;

&lt;p&gt;Network communication also involves different stages, and each OSI layer represents a particular responsibility.&lt;/p&gt;

&lt;p&gt;Here are the seven layers:&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Application Layer – Layer 7
&lt;/h2&gt;

&lt;p&gt;This is the layer closest to the user. It provides network-related services that application software can use, such as web access, email and file transfer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Provides network services to applications.&lt;/li&gt;
&lt;li&gt;Supports web browsing and email communication.&lt;/li&gt;
&lt;li&gt;Helps applications access network resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples / common technologies:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTTP – Used for web communication.&lt;/li&gt;
&lt;li&gt;HTTPS – Provides secure web communication using TLS.&lt;/li&gt;
&lt;li&gt;FTP – Used for file transfers.&lt;/li&gt;
&lt;li&gt;SMTP – Used for sending emails.&lt;/li&gt;
&lt;li&gt;DNS – Helps translate domain names into IP addresses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you open YouTube, your browser uses application protocols to request pages and other resources from its servers.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Presentation Layer – Layer 6
&lt;/h2&gt;

&lt;p&gt;This layer describes how data is represented so that the receiving system can interpret it. It is commonly associated with formatting, translation, compression and encryption.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data formatting and translation.&lt;/li&gt;
&lt;li&gt;Encryption and decryption in the OSI model.&lt;/li&gt;
&lt;li&gt;Compression and decompression.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples / common technologies:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JPEG and PNG image formats.&lt;/li&gt;
&lt;li&gt;UTF-8 character encoding.&lt;/li&gt;
&lt;li&gt;Compression and encryption mechanisms.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you share an image, the receiving application needs to understand its format so it can display it correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Session Layer – Layer 5
&lt;/h2&gt;

&lt;p&gt;This layer describes the establishment, coordination, maintenance and termination of communication sessions between applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Establishes and ends sessions.&lt;/li&gt;
&lt;li&gt;Helps manage ongoing communication.&lt;/li&gt;
&lt;li&gt;May provide synchronization or checkpoints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Think of an online meeting: participants need an ongoing communication session. The Session Layer is a conceptual way to discuss how such sessions are managed.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Transport Layer – Layer 4
&lt;/h2&gt;

&lt;p&gt;This layer provides communication between applications running on different devices. It can split data into smaller units and use port numbers to deliver it to the correct application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Segments data for transport.&lt;/li&gt;
&lt;li&gt;Uses port numbers to identify applications.&lt;/li&gt;
&lt;li&gt;Can provide reliability, ordering, flow control and retransmission, depending on the protocol.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples / common technologies:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TCP – Reliable, ordered byte-stream delivery.&lt;/li&gt;
&lt;li&gt;UDP – Connectionless datagram delivery without a guarantee of delivery or ordering.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;File downloads commonly use reliable transport. Real-time games or media applications may use UDP when low delay is important.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Network Layer – Layer 3
&lt;/h2&gt;

&lt;p&gt;This layer handles logical addressing and forwarding between different networks. It helps packets travel from a source network toward a destination network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses logical addresses such as IP addresses.&lt;/li&gt;
&lt;li&gt;Routes and forwards packets between networks.&lt;/li&gt;
&lt;li&gt;Helps select paths toward destinations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples / common technologies:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IPv4 and IPv6.&lt;/li&gt;
&lt;li&gt;ICMP – Used for network control and diagnostic messages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you send data to a server in another country, routers forward IP packets across interconnected networks toward the server's IP address.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Data Link Layer – Layer 2
&lt;/h2&gt;

&lt;p&gt;This layer organizes data into frames and supports delivery across a single local network link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creates and handles frames.&lt;/li&gt;
&lt;li&gt;Uses link-layer addresses, such as MAC addresses.&lt;/li&gt;
&lt;li&gt;Provides error detection and controls access to the medium, depending on the technology.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples / common technologies:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ethernet.&lt;/li&gt;
&lt;li&gt;Wi-Fi (IEEE 802.11).&lt;/li&gt;
&lt;li&gt;PPP.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When your laptop sends traffic through a Wi-Fi router, the local wireless link carries frames between the laptop and the access point.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Physical Layer – Layer 1
&lt;/h2&gt;

&lt;p&gt;This layer describes how raw bits (0s and 1s) are transmitted as signals over a medium.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does it do?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transmits raw bits.&lt;/li&gt;
&lt;li&gt;Defines signal characteristics.&lt;/li&gt;
&lt;li&gt;Covers media, connectors and physical interfaces.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples / common technologies:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copper Ethernet cables.&lt;/li&gt;
&lt;li&gt;Fiber-optic cables.&lt;/li&gt;
&lt;li&gt;Radio signals used by wireless networks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Real-world example:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When data travels over an Ethernet cable, electrical signaling carries the bits. Wi-Fi uses radio signals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Revision: Remember All Seven Layers
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Main responsibility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Application&lt;/td&gt;
&lt;td&gt;Network services for applications&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Presentation&lt;/td&gt;
&lt;td&gt;Data formatting and transformation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Session&lt;/td&gt;
&lt;td&gt;Session management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;End-to-end delivery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Network&lt;/td&gt;
&lt;td&gt;IP addressing and routing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Data Link&lt;/td&gt;
&lt;td&gt;Frames and MAC addressing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Physical&lt;/td&gt;
&lt;td&gt;Transmission of bits&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;A simple mnemonic:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All People Seem To Need Data Processing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Now Comes the Interesting Part: How Do All Seven Layers Work Together?
&lt;/h2&gt;

&lt;p&gt;Imagine opening your browser and entering &lt;a href="https://www.google.com" rel="noopener noreferrer"&gt;https://www.google.com&lt;/a&gt;. You press Enter, and the homepage appears.&lt;/p&gt;

&lt;p&gt;What happens between pressing Enter and seeing the page?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1 – Application Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your browser prepares an HTTP request to access the website. HTTPS protects this communication using TLS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2 – Presentation Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The OSI model describes data formatting and encryption at this layer. TLS provides encryption in modern HTTPS communication, although its real-world placement does not map exactly to the OSI Presentation Layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3 – Session Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The OSI model uses this layer to describe how communication sessions are established and managed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4 – Transport Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTTP/1.1 and HTTP/2 commonly use TCP. HTTPS over TCP commonly uses destination port 443. HTTP/3 is different: it uses QUIC over UDP.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5 – Network Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;IP addressing and routing help packets travel from your device toward the website's server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6 – Data Link Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your device transfers frames across its local network link, such as the connection between your laptop and Wi-Fi router.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7 – Physical Layer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bits travel as signals through Wi-Fi radio waves, Ethernet cables or fiber-optic connections.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2mkqtl6qlqqwnc7v4d99.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2mkqtl6qlqqwnc7v4d99.png" alt=" " width="800" height="808"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens next?
&lt;/h3&gt;

&lt;p&gt;The server receives and processes the request, then sends a response back. Your browser receives the response and displays the website.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaway:&lt;/strong&gt; Opening a website involves application communication, transport, IP routing, local-link delivery and physical signaling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Should a Full Stack Developer Learn the OSI Model?
&lt;/h2&gt;

&lt;p&gt;You might be wondering: "I'm learning MERN Stack. Why should I spend time understanding networking?"&lt;/p&gt;

&lt;p&gt;As a developer, you will work with React applications communicating with backend APIs, Node.js and Express servers, HTTP requests and responses, HTTPS connections, IP addresses and ports.&lt;/p&gt;

&lt;p&gt;Here is how networking knowledge helps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Application layer:&lt;/strong&gt; Understand HTTP methods, status codes and API communication.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transport layer:&lt;/strong&gt; Understand TCP versus UDP, ports and connection behaviour.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network layer:&lt;/strong&gt; Understand IP addresses, routing and connectivity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Link and Physical layers:&lt;/strong&gt; Understand local Wi-Fi, Ethernet and signal issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This foundation can help you understand how a browser communicates with a Node.js/Express API and where to begin investigating a connectivity problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;At first, networking might look like a complicated process involving many devices, protocols and connections. But the OSI Model makes it easier to understand by dividing communication into seven layers.&lt;/p&gt;

&lt;p&gt;Each layer has a specific responsibility, and together they help explain how data moves between devices. Although modern Internet protocols do not always map perfectly to the seven OSI layers, the model remains a useful learning and troubleshooting tool.&lt;/p&gt;

&lt;p&gt;The next time you open a website, send a message or watch a video, remember that several networking processes are working behind the scenes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding these layers is one small step toward becoming a better software developer.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  References and Further Reading
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;IBM – What Is the OSI Model?&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.ibm.com/think/topics/osi-model" rel="noopener noreferrer"&gt;https://www.ibm.com/think/topics/osi-model&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cisco Press – Network Communication Models&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.ciscopress.com/articles/article.asp?p=3131360&amp;amp;seqNum=6" rel="noopener noreferrer"&gt;https://www.ciscopress.com/articles/article.asp?p=3131360&amp;amp;seqNum=6&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cloudflare – Network Layers&lt;br&gt;&lt;br&gt;
&lt;a href="https://developers.cloudflare.com/fundamentals/reference/network-layers/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/fundamentals/reference/network-layers/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Microsoft Learn – Windows Network Architecture and the OSI Model&lt;br&gt;&lt;br&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/network/windows-network-architecture-and-the-osi-model" rel="noopener noreferrer"&gt;https://learn.microsoft.com/en-us/windows-hardware/drivers/network/windows-network-architecture-and-the-osi-model&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Oracle – OSI Reference Model&lt;br&gt;&lt;br&gt;
&lt;a href="https://docs.oracle.com/cd/E19120-01/open.solaris/819-3000/ipov-8/index.html" rel="noopener noreferrer"&gt;https://docs.oracle.com/cd/E19120-01/open.solaris/819-3000/ipov-8/index.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;IETF RFC 9114 – HTTP/3&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.rfc-editor.org/rfc/rfc9114" rel="noopener noreferrer"&gt;https://www.rfc-editor.org/rfc/rfc9114&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;IETF RFC 9000 – QUIC&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.rfc-editor.org/rfc/rfc9000" rel="noopener noreferrer"&gt;https://www.rfc-editor.org/rfc/rfc9000&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thanks for reading! If this article helped you understand the OSI Model, share your thoughts or questions in the comments.&lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>networking</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
