Codacoda
Back to Academy

networking

OSI Model

The OSI (Open Systems Interconnection) model divides network communication into seven layers, each with a specific responsibility. Data flows down the stack on the sending side, getting encapsulated with headers at each layer, and flows back up on the receiving side through decapsulation. Understanding this model helps debug network issues by isolating which layer is causing a problem.

Use Cases

  • Diagnosing network issues by identifying which layer is failing
  • Understanding how protocols like HTTP, TCP, and Ethernet relate to each other
  • Designing network architectures with clear separation of concerns
  • Communicating with other engineers using a shared vocabulary for networking layers

Visualization

SETUPApplicationHTTP, FTP, SMTPPresentationEncryption, CompressionSessionSession ManagementTransportTCP, UDPNetworkIP, RoutingData LinkEthernet, MACPhysicalBits on Wire
Speed:1x
OSI Model — 7 layers that describe how data travels across a networkStep 1 / 8

Implementation

Output

Click "Run Code" to see output...