codingstuff.io
ExploreTutorialsProblemsCS Subjects
Get Started
ExploreTutorialsProblemsCS Subjects
Get Started
codingstuff.io

Master the art of building software through interactive tutorials, real-world problems, and guided projects.

Pune, Maharashtra, India

codingstuffmail@gmail.com

Product

  • Explore
  • Tutorials
  • Problems
  • CS Subjects

Company

  • About
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Sitemap

© 2026 codingstuff.io. All rights reserved.

Built with ❤️ for developers everywhere

/
/
All Subjects
🌐

Computer Networks

26 chapters

1Network Topologies & LAN/WAN2Network Devices (Hub, Switch, Router)3OSI Reference Model4OSI Model & TCP/IP Suite5TCP/IP Protocol Suite6Switching Techniques (Circuit, Packet)7Data Link: Framing & Error Detection8Error Correction (Hamming Code)9Flow Control (Stop-and-Wait, Sliding Window)10MAC: CSMA/CD & CSMA/CA11Network Layer & Routing12IP Addressing (IPv4, IPv6)13Subnetting & CIDR14Routing Algorithms (Distance Vector, Link State)15ARP, ICMP, and NAT16DHCP Protocol17Transport Layer Services18Transport Layer: UDP19Transport Layer: TCP & 3-Way Handshake20TCP Congestion Control21Application Layer: DNS & HTTP22Application Layer: SMTP & FTP23Socket Programming Basics24Wireless Networks & Wi-Fi Standards25VLANs & Spanning Tree Protocol26Network Security & Cryptography
SubjectsComputer Networks

OSI Reference Model

Updated 2026-04-27
3 min read

OSI Reference Model

To deal with the massive complexity of network communications, the network architecture is organized into layers. Each layer provides a specific service to the layer above it and relies on the services of the layer below it. This layered architecture allows hardware and software from vastly different vendors to communicate seamlessly.

The Open Systems Interconnection (OSI) model was developed by the International Organization for Standardization (ISO) in the late 1970s. It consists of 7 layers.


Layer 7: Application Layer

The application layer is the highest level. It provides the user interface and enables the user (human or software) to access the network. It provides services like email, remote file access, and web browsing. Protocols: HTTP, FTP, SMTP, DNS, SSH.

Layer 6: Presentation Layer

The presentation layer is concerned with the syntax and semantics of the information exchanged between two systems.

  • Translation: Converts data from a sender-dependent format into a common format, and then into the receiver-dependent format.
  • Encryption: Encrypts data for security before transmission and decrypts it upon arrival.
  • Compression: Reduces the number of bits to be transmitted, which is critical for multimedia like video and audio.

Layer 5: Session Layer

The session layer is the network dialog controller. It establishes, maintains, and synchronizes the interaction between communicating systems. It adds synchronization points (checkpoints) into a stream of data to allow recovery in case of a crash during a massive file transfer.

Layer 4: Transport Layer

The transport layer is responsible for process-to-process delivery of the entire message. While the network layer oversees end-to-end (computer-to-computer) delivery, it does not recognize individual applications. The transport layer uses Port Numbers to ensure the data reaches the correct application.

  • It is responsible for segmenting data, flow control, error control, and ensuring complete, in-order delivery. Protocols: TCP, UDP.

Layer 3: Network Layer

The network layer is responsible for the source-to-destination delivery of a packet, possibly across multiple networks (links).

  • If two systems are connected to the same link, there is usually no need for a network layer.
  • However, if the systems are attached to different networks with connecting devices (routers) between them, the network layer accomplishes Logical Addressing (IP addresses) and Routing. Protocols: IPv4, IPv6, ICMP, OSPF, BGP.

Layer 2: Data Link Layer

The data link layer transforms the physical layer (a raw transmission facility) into a reliable link. It makes the physical layer appear error-free to the upper layer.

  • It divides the stream of bits into manageable data units called Frames.
  • It provides Physical Addressing (MAC addresses) to identify devices on the local network.
  • It provides flow control and access control (CSMA/CD) for shared media. Protocols: Ethernet, Wi-Fi (802.11), PPP.

Layer 1: Physical Layer

The physical layer coordinates the functions required to carry a raw bit stream (0s and 1s) over a physical medium. It deals with the mechanical and electrical specifications of the interface and transmission medium.

  • Defines voltage levels, timing of voltage changes, physical data rates, maximum transmission distances, and physical connectors (RJ45). Media: Fiber Optics, Copper Twister Pair cables, Radio Waves.


PreviousNetwork Devices (Hub, Switch, Router)NextOSI Model & TCP/IP Suite

Recommended Gear

Network Devices (Hub, Switch, Router)OSI Model & TCP/IP Suite