<?php
require_once __DIR__ . '/../../config.php';
require_once __DIR__ . '/../../includes/functions.php';

$page_title   = 'The OSI Model – 7 Layers of Network Communication Explained';
$page_desc    = 'The OSI model explained: all 7 layers from physical transmission to application layer with practical examples on ipcheck.tools.';
$page_current = 'wissen';

require_once __DIR__ . '/../../en/header.php';
?>

<div class="hero">
  <div class="hero-label">Knowledge</div>
  <div class="hero-title">The OSI Model</div>
  <div class="hero-sub">7 layers of network communication – simply explained</div>
</div>

<div class="wrap">

  <div class="ad-slot"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-8287576653347400" data-ad-slot="2715725452" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div>

  <div class="card card-blue">
    <div class="card-title"><i class="ti ti-stack"></i> What is the OSI Model?</div>
    <p style="font-size:13px; color:var(--text3); line-height:1.7;">The <strong>OSI Model</strong> (Open Systems Interconnection Model) is a conceptual framework that standardizes network communication into <strong>7 layers</strong>. Each layer has specific responsibilities and communicates with the layers above and below it. The OSI model helps network engineers understand and troubleshoot complex network issues.</p>
  </div>

  <?php
  $layers = [
    [7, 'Application',   'var(--blue)',    'ti-world',        'HTTP, HTTPS, DNS, FTP, SMTP, SSH', 'The layer closest to the user. Provides network services to applications. This is where protocols like HTTP (web), SMTP (email) and DNS operate.'],
    [6, 'Presentation',  'var(--blue-dim)','ti-code',         'SSL/TLS, JPEG, MPEG, ASCII',        'Translates data between the application and network format. Handles encryption (SSL/TLS), compression and data format conversion.'],
    [5, 'Session',       'var(--purple)',  'ti-clock',        'NetBIOS, RPC, SQL sessions',        'Manages sessions (connections) between applications. Establishes, maintains and terminates communication sessions.'],
    [4, 'Transport',     'var(--purple-dim)','ti-arrows-exchange','TCP, UDP',                      'Provides end-to-end communication. TCP guarantees delivery; UDP is faster but unreliable. Handles segmentation and flow control.'],
    [3, 'Network',       'var(--green)',   'ti-network',      'IP, ICMP, OSPF, BGP',              'Routes packets between different networks using IP addresses. Routers operate at this layer.'],
    [2, 'Data Link',     'var(--orange)',  'ti-link',         'Ethernet, WiFi (802.11), MAC',     'Transfers data between adjacent nodes on the same network. Uses MAC addresses. Switches operate at this layer.'],
    [1, 'Physical',      'var(--red)',     'ti-plug',         'Cables, fiber, WiFi signals, hubs', 'The actual physical connection: cables, fiber optic, wireless signals. Transmits raw bits (0s and 1s).'],
  ];
  foreach ($layers as [$num, $name, $color, $icon, $protocols, $desc]):
  ?>
  <div class="card" style="border-left:3px solid <?= $color ?>;">
    <div class="card-title">
      <span style="background:<?= $color ?>; color:#000; border-radius:50%; width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; margin-right:8px; flex-shrink:0;"><?= $num ?></span>
      <i class="ti <?= $icon ?>" style="color:<?= $color ?>;"></i>
      Layer <?= $num ?> – <?= $name ?>
    </div>
    <p style="font-size:13px; color:var(--text3); line-height:1.7; margin-bottom:10px;"><?= $desc ?></p>
    <div class="data-row">
      <span class="dk">Protocols</span>
      <span class="dv mono" style="font-size:11px;"><?= $protocols ?></span>
    </div>
  </div>
  <?php endforeach; ?>

  <div class="card">
    <div class="card-title"><i class="ti ti-arrow-right"></i> Related tools</div>
    <div style="display:flex; gap:8px; flex-wrap:wrap;">
      <a href="/en/dns-lookup.php" class="btn btn-primary" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-search"></i> DNS Lookup (Layer 7)
      </a>
      <a href="/en/ssl-check.php" class="btn btn-ghost" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-lock"></i> SSL Check (Layer 6)
      </a>
      <a href="/en/ping.php" class="btn btn-ghost" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-activity"></i> Ping Test (Layer 3)
      </a>
    </div>
  </div>

  <div class="ad-slot"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-8287576653347400" data-ad-slot="2715725452" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div>

  <div class="tools-row">
    <a href="/en/knowledge/"     class="tool-btn"><i class="ti ti-book"></i><span>Knowledge</span></a>
    <a href="/en/dns-lookup.php" class="tool-btn"><i class="ti ti-search"></i><span>DNS Lookup</span></a>
    <a href="/en/ssl-check.php"  class="tool-btn"><i class="ti ti-lock"></i><span>SSL Check</span></a>
    <a href="/en/ping.php"       class="tool-btn"><i class="ti ti-activity"></i><span>Ping Test</span></a>
    <a href="/en/"               class="tool-btn"><i class="ti ti-home"></i><span>My IP</span></a>
  </div>

  <div class="seo-box">
    <h2>The OSI Model – understanding network layers</h2>
    <p>The OSI model divides network communication into 7 layers, each with specific responsibilities. Layer 1 (Physical) handles raw bit transmission; Layer 2 (Data Link) manages local network communication using MAC addresses; Layer 3 (Network) routes packets using IP addresses; Layer 4 (Transport) provides end-to-end communication with TCP or UDP; Layers 5-7 handle sessions, data formatting and application protocols. Understanding the OSI model is fundamental to network troubleshooting and design.</p>
  </div>

<?php require_once __DIR__ . '/../../en/footer.php'; ?>
