The Open Systems Interconnection (OSI) model is a vendor-neutral conceptual framework that standardizes how computing systems communicate across a network by dividing the communication stack into seven distinct layers. Before its introduction, proprietary networking architectures locked organizations into single-vendor ecosystems where equipment from competing manufacturers could not exchange data reliably. By isolating specific networking functions—from transmitting electrical signals over copper wire to rendering HTTP responses in software—into modular layers with well-defined interfaces, the OSI model established a universal language for protocol design, hardware interoperability, network troubleshooting, and defense-in-depth security.
Table of Contents
The Seven Layers of the OSI Model: Architecture, Protocols, and Hardware
The OSI architecture organizes networking tasks sequentially from the physical transmission medium at the bottom (Layer 1) to user-facing network services at the top (Layer 7). Engineers commonly group Layers 1 through 3 as media layers responsible for moving data hop-by-hop across physical links and routers, and Layers 4 through 7 as host layers responsible for accurate end-to-end delivery and application processing on endpoints.
Step 1: Layer 1 — Physical Layer
The Physical layer handles the transmission and reception of raw, unstructured bitstreams over a physical medium. It defines voltage levels, optical wavelengths, radio frequency (RF) modulation, pin layouts, cabling standards, and bit-rate timing.
– Example Standards and Specifications: IEEE 802.3 physical media variants (1000BASE-T, 10GBASE-SR), IEEE 802.11 PHY (Wi-Fi radio modulation), DSL, SONET/SDH, RS-232, Bluetooth PHY.
– Associated Hardware: Copper twisted-pair cabling (Cat6/Cat6a), single-mode and multimode fiber-optic cables, SFP/QSFP optical transceivers, network interface card (NIC) physical ports, signal repeaters, and legacy multiport hubs.
Step 2: Layer 2 — Data Link Layer
Building directly on raw bit transmission, the Data Link layer governs reliable node-to-node communication across a single local network segment (broadcast domain). It splits into two sublayers: Media Access Control (MAC), which assigns hardware addresses and controls access to shared media, and Logical Link Control (LLC), which manages link multiplexing and local flow control. Layer 2 also detects physical transmission corruption via cyclic redundancy checks (CRC).
– Example Protocols: Ethernet MAC (IEEE 802.3), Wi-Fi MAC (IEEE 802.11), VLAN tagging (IEEE 802.1Q), Spanning Tree Protocol (STP / IEEE 802.1D), Point-to-Point Protocol (PPP), LLDP, LACP, and Address Resolution Protocol (ARP, operating across the L2/L3 boundary on local links).
– Associated Hardware: Layer 2 Ethernet switches, network bridges, wireless access points (WAPs), and NIC MAC controllers.
Step 3: Layer 3 — Network Layer
Whereas Layer 2 moves traffic only between locally attached nodes, the Network layer enables inter-networking—routing traffic across multiple distinct networks from a source host to a destination host. It provides hierarchical logical addressing, path selection (routing), packet forwarding, and fragmentation when link size limits differ.
– Example Protocols: IPv4, IPv6, ICMP / ICMPv6, IPsec, OSPF, IS-IS, EIGRP, and IGMP (with BGP exchanging Layer 3 reachability prefixes).
– Associated Hardware: Routers and Layer 3 (multilayer) switches.
Step 4: Layer 4 — Transport Layer
Once Layer 3 delivers traffic between host machines, the Transport layer manages end-to-end communication between specific software processes running on those hosts. Using numerical port numbers, it multiplexes simultaneous conversations, segments large payloads, controls transmission pacing (flow control), and optionally guarantees ordered delivery and retransmission of lost data.
– Example Protocols: Transmission Control Protocol (TCP — connection-oriented and reliable), User Datagram Protocol (UDP — connectionless and low-overhead), QUIC (delivering encrypted transport mechanics over UDP), and SCTP.
– Associated Hardware and Appliances: Host OS networking kernels, Layer 4 load balancers, and stateful firewalls inspecting 5-tuple connection state.
Step 5: Layer 5 — Session Layer
The Session layer establishes, coordinates, checkpoints, and terminates persistent dialogues between communicating applications. It governs whether communication occurs in half-duplex or full-duplex mode and inserts synchronization checkpoints so long-running transfers can resume after a brief interruption without restarting from byte zero.
– Example Protocols and APIs: NetBIOS, Remote Procedure Call (RPC), Session Initiation Protocol (SIP), Server Message Block (SMB) session control, PPTP, and SOCKS.
– Associated Hardware and Appliances: Executed primarily in host operating systems, middleware libraries, and session-aware application gateways.
Step 6: Layer 6 — Presentation Layer
Acting as the network’s syntax translator, the Presentation layer converts data between internal application structures and standardized wire formats so systems with different data representations can understand each other. Its three core responsibilities are character encoding/serialization, data compression, and encryption/decryption.
– Example Standards and Protocols: TLS/SSL cryptographic framing, UTF-8, ASCII, ASN.1, JSON/Protocol Buffers serialization, GZIP compression, JPEG, and MPEG.
– Associated Hardware and Appliances: Dedicated TLS/SSL hardware offload cards, cryptographic accelerators, and OS runtime libraries.
Step 7: Layer 7 — Application Layer
The Application layer sits closest to the end user and provides standardized network protocols that software applications invoke to exchange meaningful messages. Importantly, Layer 7 defines the communication protocol (such as HTTP or SMTP), not the graphical desktop or mobile application itself (such as a web browser or email client).
– Example Protocols: HTTP/HTTPS, DNS, SSH, SMTP, IMAP, DHCP, FTP/SFTP, SNMP, and NTP.
– Associated Hardware and Appliances: Web Application Firewalls (WAFs), Layer 7 reverse proxies and load balancers, API gateways, Next-Generation Firewalls (NGFWs), and origin servers.
Key Takeaway: Each OSI layer isolates a distinct communication problem—physical signaling (L1), local link switching (L2), inter-network routing (L3), host-to-host delivery (L4), dialogue control (L5), data formatting/encryption (L6), and service protocols (L7)—allowing engineers to upgrade one layer’s technology (such as swapping copper Ethernet for Wi-Fi) without rewriting upper-layer applications.
How Data Flows Through the Stack: Encapsulation, Decapsulation, and PDUs
Understanding the seven layers statically is only half the picture; actual communication depends on encapsulation on the sending host and decapsulation on the receiving host. As outbound payload moves down the sender’s stack, each layer wraps the payload received from the layer above with its own control metadata, forming a layer-specific Protocol Data Unit (PDU).
Down the Sender’s Stack (Encapsulation)
- Layers 7–5 Generate Data: An application constructs a request (for example, an HTTP
GETmessage), Layer 6 encodes or encrypts the payload, and Layer 5 attaches any required session state. Across Layers 7, 6, and 5, this upper-layer PDU is collectively referred to as Data (or formally APDU, PPDU, and SPDU). - Layer 4 Creates a Segment or Datagram: The Transport layer slices large upper-layer Data into transmittable chunks and prepends a Layer 4 header containing source and destination port numbers, checksums, and—in the case of TCP—sequence numbers, acknowledgment numbers, and window sizes. The resulting PDU is a Segment (TCP) or Datagram (UDP).
- Layer 3 Creates a Packet: The Network layer encapsulates the Segment/Datagram by prepending a Layer 3 header containing source and destination logical IP addresses, a Time-to-Live (TTL) or Hop Limit counter, and a Protocol/Next Header field (
6for TCP,17for UDP) identifying which upper-layer module should process the payload upon arrival. This PDU is a Packet. - Layer 2 Creates a Frame (Header + Trailer): The Data Link layer wraps the Packet with both a Layer 2 header (containing the local source MAC address, next-hop destination MAC address, and an EtherType field such as
0x0800for IPv4) and a Layer 2 trailer called the Frame Check Sequence (FCS). Layer 2 is the only OSI layer that appends both a header and a trailer, using the FCS’s 32-bit CRC hash to detect bit corruption on the local link. This PDU is a Frame. - Layer 1 Transmits Bits: The Physical layer precedes the Frame with a synchronization preamble and converts the entire binary sequence into electrical, optical, or RF signals on the wire as Bits.
Across Intermediate Hops and Up the Receiver’s Stack (Decapsulation)
When a packet crosses multiple networks, intermediate routers perform partial decapsulation and re-encapsulation: a router receives Bits at Layer 1, validates and strips the incoming Layer 2 Frame header and FCS trailer, inspects the destination IP address and decrements the TTL at Layer 3, selects the outgoing interface, and wraps the Packet in a new Layer 2 Frame addressed to the next hop’s MAC address.
Once the signals arrive at the final destination host, full decapsulation proceeds upward from Layer 1 to Layer 7:
1. Layer 1 to Layer 2: The destination NIC reconstructs Bits into a Frame, verifies that the destination MAC matches its own hardware address (or a broadcast/multicast group), and recalculates the CRC against the FCS trailer. Intact frames have their L2 header and trailer stripped; corrupted frames are silently discarded.
2. Layer 3 to Layer 4: The OS network stack confirms the destination IP address, strips the Layer 3 header, and hands the Segment/Datagram to TCP or UDP. Layer 4 reorders out-of-sequence TCP segments, strips the Layer 4 header, and routes the payload stream to the socket bound to the destination port.
3. Layers 5 to 7: Session state is updated, TLS encryption or GZIP compression is reversed at Layer 6, and clean Data is delivered to the target application process at Layer 7.
Key Takeaway: Encapsulation wraps upper-layer payloads downward from Data → Segment/Datagram → Packet → Frame → Bits, allowing each layer on the receiver to read and strip only its peer layer’s header (and Layer 2’s FCS trailer) during decapsulation.
OSI Model vs. TCP/IP Model: Architectural Differences and Layer Mapping
While networking terminology revolves around the seven OSI layers, modern production networks—including the global internet—actually run the TCP/IP protocol suite. Comparing the two models clarifies how theoretical OSI boundaries align with both the original 4-layer TCP/IP model (defined in IETF RFC 1122) and the updated 5-layer TCP/IP model taught in modern computer networking curricula.
Layer Alignment Comparison Table
| OSI Layer # | 7-Layer OSI Reference Model | 5-Layer TCP/IP Model (Modern Hybrid) | 4-Layer TCP/IP Suite (RFC 1122) | Primary Scope |
|---|---|---|---|---|
| Layer 7 | Application | Application | Application | Network service protocols & APIs |
| Layer 6 | Presentation | Application | Application | Encoding, compression & encryption |
| Layer 5 | Session | Application | Application | Dialogue control & checkpoints |
| Layer 4 | Transport | Transport | Transport (Host-to-Host) | End-to-end ports, reliability & flow |
| Layer 3 | Network | Network (Internet) | Internet | Logical IP addressing & routing |
| Layer 2 | Data Link | Data Link | Link (Network Access) | MAC framing & local switching |
| Layer 1 | Physical | Physical | Link (Network Access) | Physical media & raw bit signaling |
Architectural and Practical Comparison Table
| Comparison Criterion | OSI Reference Model | TCP/IP Protocol Suite |
|---|---|---|
| Standardizing Body | ISO and ITU-T (formal international committees) | DARPA and IETF (open RFC engineering consensus) |
| Design Philosophy | Model-first: Architecture was specified before OSI protocols (such as CLNP and TP4) were widely built | Protocols-first: Reference model was written retrospectively to describe working ARPANET protocols |
| Upper-Layer Granularity | Strictly separates Session (L5), Presentation (L6), and Application (L7) concerns | Consolidates L5–L7 into a single Application layer, leaving session/encoding logic to individual protocols or libraries |
| Lower-Layer Granularity | Separates Data Link framing (L2) from Physical signaling (L1) | Original 4-layer RFC model treats L1–L2 as an opaque underlying Link interface so IP can run over any hardware |
| Layer Coupling | Strict vertical boundaries; layers communicate solely via formal service primitives | Pragmatic cross-layer optimizations permitted (for example, TCP/UDP pseudo-headers borrowing IP addresses for checksums) |
| Real-World Role Today | Universal conceptual taxonomy for engineering communication, hardware classification, and fault isolation | Operational protocol stack powering virtually all LAN, WAN, cloud, and internet traffic |
Why Both Frameworks Coexist
TCP/IP won practical adoption in the late 1980s and early 1990s because it shipped free inside BSD Unix, had years of operational hardening on ARPANET, and avoided the committee delays and complexity of competing OSI protocols. However, TCP/IP’s 4-layer model is too coarse at the bottom (lumping fiber cabling and Ethernet VLAN switching together under “Link”) and at the top (combining TLS encryption and HTTP routing under “Application”). Engineers therefore retain OSI numbering in daily practice—speaking of “Layer 2 switches,” “Layer 3 routing,” “Layer 4 firewalls,” and “Layer 7 load balancers”—even when every packet on the wire is pure TCP/IP.
Key Takeaway: TCP/IP provides the real-world protocols running on modern networks, while the 7-layer OSI model provides the granular vocabulary engineers use to design, classify, and discuss those networks.
Visualizing OSI Layers in Live Traffic with Wireshark
Seeing how theoretical OSI layers map onto TCP/IP headers becomes concrete when you inspect live traffic in Wireshark. Wireshark’s middle Packet Details pane lists encapsulated protocol dissectors from top to bottom—mirroring the OSI stack from Layer 1 upward to Layer 7.
- Step 1 — Capture Traffic and Apply a Display Filter: Start a capture on your active Ethernet or Wi-Fi interface, generate test traffic (such as
curl http://example.comorcurl https://example.com), and enter a display filter likehttp,tls, ordnsin the filter bar to isolate a complete request-response exchange. - Step 2 — Expand the
FrameNode (Maps to Layer 1 — Physical Metadata): Click a packet in the top list and expand the first line in the Packet Details pane (for example,Frame 42: 517 bytes on wire (4136 bits)). Because Wireshark captures via OS drivers (libpcaporNpcap) after the NIC hardware has already demodulated signals and stripped the physical preamble, raw voltages do not appear—instead, this node records physical-level capture metadata including interface ID, arrival timestamps, and wire byte counts. - Step 3 — Expand
Ethernet IIorIEEE 802.11(Maps to Layer 2 — Data Link): Expand the second tree item to view the 48-bitDestinationandSourceMAC addresses, any802.1Q Virtual LANtag, and theTypefield (such asIPv4 (0x0800)orIPv6 (0x86dd)). Note that most NICs validate and strip the 4-byte FCS trailer in hardware before passing frames to the OS, so the Layer 2 trailer typically appears only when using dedicated network taps or specialized NIC driver flags. - Step 4 — Expand
Internet Protocol Version 4orVersion 6(Maps to Layer 3 — Network): Open the IP dissector to inspect the header length, Differentiated Services Code Point (DSCP) QoS markings,Time to Live/Hop Limit,Protocolidentifier (TCP (6)orUDP (17)), and logical source and destination IP addresses. - Step 5 — Expand
Transmission Control ProtocolorUser Datagram Protocol(Maps to Layer 4 — Transport): Open the Transport dissector to inspect source and destination port numbers, relative/raw sequence and acknowledgment numbers, active TCP flags ([SYN],[SYN, ACK],[PSH, ACK],[FIN, ACK]), and calculated window sizes. - Step 6 — Expand
Transport Layer Securityand Application Dissectors (Maps to Layers 5–7): Below TCP or UDP, Wireshark displays upper-layer protocol dissectors: - Layers 5–6 in TLS Traffic: Expanding
Transport Layer Securityreveals session resumption IDs/tickets (Layer 5 dialogue continuity) alongsideClient Hello/Server Hellocipher suite negotiation andEncrypted Application Datarecords (Layer 6 cryptographic presentation). ConfiguringSSLKEYLOGFILEin Wireshark’s TLS preferences lets you decrypt these records on the fly. - Layer 7 Payload: In cleartext captures (
Hypertext Transfer Protocol,Domain Name System) or decrypted TLS sessions, the bottom dissector exposes Layer 7 verbs (GET / HTTP/1.1), response codes (200 OK), content-encoding headers (gzip, reflecting Layer 6 compression), and structured body data.
Key Takeaway: Wireshark’s Packet Details tree turns abstract encapsulation into an observable hierarchy, mapping each expandable header row directly from Layer 1 capture metadata through Layer 7 payloads.
How to Troubleshoot Network Issues Using the OSI Model
Once you recognize what healthy traffic looks like at each layer, you can use those same boundaries to isolate outages methodically instead of guessing at fixes. Because every upper layer depends on the layers beneath it—TCP cannot complete a handshake if Layer 3 routing is broken, and Layer 3 cannot route if a Layer 1 patch cable is unplugged—structured OSI troubleshooting narrows down root causes rapidly.
Step 1: Choose a Diagnostic Strategy
- Bottom-Up (Layer 1 → Layer 7): Start at physical cabling and link states, moving upward only after confirming each lower layer works. Best when a host or branch site suffers a total connectivity blackout.
- Top-Down (Layer 7 → Layer 1): Start at the failing application, URL, or certificate and work downward. Best when users can browse general websites normally, indicating Layers 1–3 are healthy, while a single internal application fails.
- Divide-and-Conquer (Middle-Out at Layer 3/4): Test IP reachability first with
pingortracerouteto cut the problem space in half immediately. Ifping <destination-IP>succeeds, Layers 1 through 3 are operational—focus upward on Layers 4–7 (firewalls, ports, DNS, TLS, application logs). Ifping <destination-IP>fails, focus downward on Layers 1–3.
Step 2: Execute Layer-by-Layer Verification Checks
- Diagnose Layer 1 (Physical): Verify port link/activity LEDs, reseat copper patch cords or fiber SFP transceivers, check Wi-Fi signal strength/interference, and inspect OS or switch interface counters (
ip -s linkon Linux,show interfaceson Cisco IOS). Look fordown/downstate, excessive CRC/FCS input errors, or duplex mismatches. - Diagnose Layer 2 (Data Link): Confirm the switchport is assigned to the correct access VLAN or that trunk ports permit the required VLAN IDs (
show vlan brief,show interfaces trunk). Check whether Spanning Tree or port-security (err-disabled) has blocked the port, and verify local MAC resolution (ip neighorarp -a) to ensure the default gateway’s MAC entry is populated rather thanINCOMPLETE. - Diagnose Layer 3 (Network): Validate the host’s IP address, subnet mask, and default gateway (
ip addr,ipconfig /all). Ping the local gateway first to confirm local subnet routing, then runtraceroute/tracertormtrto the remote IP to pinpoint which router hop drops packets or lacks a return route (ip route,show ip route). - Diagnose Layer 4 (Transport): Even with working Layer 3 routing, host firewalls, cloud security groups, or intermediate ACLs may block target TCP/UDP ports, or the remote daemon may not be listening. Test port reachability directly (
nc -zv <IP> 443,Test-NetConnection <IP> -Port 443) and check listening sockets on the server (ss -tulnp). - Diagnose Layers 5–7 (Session, Presentation, and Application): Verify DNS name resolution (
dig <hostname>ornslookup <hostname>) to rule out stale or misconfigured records when pinging by IP works but pinging by hostname fails. Inspect TLS certificate expiration, hostname SAN mismatches, and cipher negotiation (openssl s_client -connect host:443), then test the application request directly (curl -v https://host/health) to distinguish authentication/session timeouts (401/403) from backend crashes (500/502/503).
Key Takeaway: Using Divide-and-Conquer at Layer 3 (ping by IP) immediately tells you whether to investigate hardware, VLANs, and routing below Layer 3 or ports, DNS, TLS, and application services above it.
Cybersecurity Attacks and Defenses Mapped by OSI Layer
Adversaries exploit protocol assumptions at every level of the networking stack—from cutting physical fiber to flooding Layer 7 web APIs. Mapping threats to specific OSI layers enables security teams to build defense-in-depth architectures where independent controls reinforce one another.
- Layer 1 (Physical) — Wiretapping, Rogue Implants, and RF Jamming
- Attack Vectors: Optical fiber bending/splitting taps, inline hardware keyloggers or network taps, wireless spectrum jamming, and physical cable destruction.
- Security Controls: Badge-controlled MDF/IDF wiring closets, locked server racks, tamper-evident conduit, Wireless Intrusion Prevention Systems (WIPS), and IEEE 802.1AE (MACsec) point-to-point hardware encryption on links leaving secure zones.
- Layer 2 (Data Link) — ARP Spoofing, MAC Flooding, and VLAN Hopping
- Attack Vectors: Sending forged gratuitous ARP replies to poison local ARP caches for man-in-the-middle (MitM) interception; flooding a switch’s CAM table with bogus source MACs; crafting double-tagged 802.1Q frames to jump VLANs; and deploying rogue DHCP servers.
- Security Controls: DHCP Snooping, Dynamic ARP Inspection (DAI), switchport Port Security (limiting learned MAC counts), disabling dynamic trunking negotiation (DTP) while moving unused native VLANs off VLAN 1, and IEEE 802.1X Network Access Control (NAC).
- Layer 3 (Network) — IP Spoofing, Volumetric ICMP Floods, and BGP Hijacking
- Attack Vectors: Layer 3 DDoS attacks (ICMP echo/Smurf floods and IP packet fragmentation exhaustion), source IP spoofing to mask attacker origins, and unauthorized BGP prefix announcements redirecting internet traffic.
- Security Controls: Router Access Control Lists (ACLs), Unicast Reverse Path Forwarding (uRPF) and BCP 38 anti-spoofing filters, IPsec network-layer encryption, ICMP rate limiting, and RPKI (Resource Public Key Infrastructure) cryptographic route origin validation.
- Layer 4 (Transport) — TCP SYN Floods, UDP Amplification, and Port Scanning
- Attack Vectors: Layer 4 DDoS attacks exhausting server state tables with half-open
SYNsegments or saturating bandwidth via spoofed UDP reflection/amplification, alongside automatednmapreconnaissance scans. - Security Controls: Stateful firewalls, OS-level SYN cookies, dedicated Layer 4 DDoS scrubbing appliances, connection rate limiting, and strict default-deny security group rules exposing only required ports.
- Layer 5 (Session) — Session Hijacking, Fixation, and Replay Attacks
- Attack Vectors: Capturing, predicting, or replaying valid session tokens or RPC credentials to impersonate an authenticated user without knowing their password.
- Security Controls: Cryptographically random, high-entropy session identifiers rotated upon login, strict idle and absolute session timeouts, cryptographic nonces/timestamps preventing packet replay, and continuous token binding.
- Layer 6 (Presentation) — TLS Downgrade Attacks and Unsafe Deserialization
- Attack Vectors: Protocol downgrade/stripping exploits forcing clients onto weak or cleartext ciphers, malicious object deserialization payloads executing code during parsing, and Unicode/UTF-8 canonicalization bypasses.
- Security Controls: Enforcing TLS 1.3 (disabling SSL and TLS 1.0/1.1), HTTP Strict Transport Security (HSTS), mutual TLS (mTLS), strict input canonicalization, and schema-validated data parsers.
- Layer 7 (Application) — HTTP Floods, SQL Injection, XSS, and DNS Poisoning
- Attack Vectors: Application-layer (L7) DDoS floods mimicking legitimate browser HTTP/HTTPS traffic to exhaust CPU/database pools, OWASP Top 10 exploits (SQL injection, Cross-Site Scripting, SSRF), credential stuffing, and DNS cache poisoning.
- Security Controls: Web Application Firewalls (WAFs), Next-Generation Firewalls (NGFWs) with deep packet inspection, behavioral bot management and API rate limiting, DNSSEC, parameterized database queries, and zero-trust identity verification.
Key Takeaway: A traditional Layer 3/4 firewall cannot inspect an SQL injection payload inside an allowed HTTPS port 443 stream, just as a Layer 7 WAF cannot stop local Layer 2 ARP spoofing—effective network security requires controls aligned to every layer.
Official Standards Specification: ISO/IEC 7498-1 and ITU-T X.200
ISO/IEC 7498-1:1994 (Information technology — Open Systems Interconnection — Basic Reference Model: The Basic Model) is the formal international standard specifying the architecture, layering rules, and formal notation of the Open Systems Interconnection reference model. The specification was developed jointly by ISO/IEC JTC 1/SC 6 (Telecommunications and information exchange between systems) and the International Telecommunication Union Telecommunication Standardization Sector (ITU-T), which publishes the identical text as ITU-T Recommendation X.200 (07/1994).
Specification Metadata and Revision History
- Primary Identifiers: ISO/IEC 7498-1:1994 | ITU-T Recommendation X.200 (07/1994)
- First Edition: Published in 1984 as ISO 7498:1984 (and CCITT Recommendation X.200).
- Second Edition (Current): Published in 1994, integrating connectionless-mode transmission (previously issued separately as ISO 7498/AD 1) alongside refined formal terminology.
- Formal Architectural Notation: Within the standard, an arbitrary layer is denoted as the
(N)-layer, providing services to the(N+1)-layer above it and relying on services from the(N-1)-layer below it through rigorously defined(N)-Service Access Points ((N)-SAPs).
Complete Multipart Structure (ISO/IEC 7498 Series)
- Part 1 — ISO/IEC 7498-1:1994 (ITU-T Rec. X.200): The Basic Model — Establishes the criteria used to partition communication into seven layers, defines
(N)-entities,(N)-protocols, multiplexing, segmentation/reassembly, and connection-mode vs. connectionless-mode operation. - Part 2 — ISO 7498-2:1989 (ITU-T Rec. X.800): Security Architecture — Formally defines five core security service categories (authentication, access control, data confidentiality, data integrity, and non-repudiation), specific security mechanisms, and the exact OSI layers at which each service may be placed.
- Part 3 — ISO/IEC 7498-3:1997 (ITU-T Rec. X.650): Naming and Addressing — Defines hierarchical naming authorities, directory names,
(N)-addresses, and(N)-selectors used to bind entities across layer boundaries. - Part 4 — ISO/IEC 7498-4:1989 (ITU-T Rec. X.700): Management Framework — Specifies the systems management model and establishes the FCAPS management functional areas (Fault, Configuration, Accounting, Performance, and Security management).
Authoritative Document Access
- ITU-T Free Electronic Access: The full English, French, and Spanish PDF texts of ITU-T Recommendation X.200 (07/1994) are available free of charge directly from the official ITU-T X-Series catalog at
itu.int. - ISO/IEC JTC 1 Publicly Available Standards: ISO/IEC 7498-1:1994 is indexed on the ISO Online Browsing Platform (
iso.org) and included in the ISO/IEC JTC 1 Publicly Available Standards repository for electronic download.
Key Takeaway: When formal architectural citations or security compliance mappings are required, ISO/IEC 7498-1:1994 and ITU-T Recommendation X.200 serve as the identical, authoritative primary standards.
Printable Single-Page OSI Model Cheat Sheet
Copy the formatted reference block below into any text file or Markdown note, or print it directly in a 10pt monospace font (File → Print → Save as PDF) for a single-page study sheet covering all seven layers, PDUs, TCP/IP mappings, protocols, hardware, mnemonics, and port numbers.
+-------------------------------------------------------------------------------------+
| OPEN SYSTEMS INTERCONNECTION (OSI) MODEL -- REFERENCE SHEET |
+-----+--------------+------------+---------------------+-----------------------------+
| Lyr | OSI Layer | PDU | TCP/IP (4L / 5L) | Protocols, Ports & Hardware |
+-----+--------------+------------+---------------------+-----------------------------+
| 7 | Application | Data | Application / | HTTP(80), HTTPS(443), SSH |
| | | | Application | DNS(53), DHCP | WAF, L7 LB |
+-----+--------------+------------+---------------------+-----------------------------+
| 6 | Presentation | Data | Application / | TLS/SSL, UTF-8, ASCII, JSON |
| | | | Application | GZIP, JPEG | TLS Offloaders |
+-----+--------------+------------+---------------------+-----------------------------+
| 5 | Session | Data | Application / | NetBIOS, RPC, SIP(5060) |
| | | | Application | SOCKS(1080), SMB | Host OS |
+-----+--------------+------------+---------------------+-----------------------------+
| 4 | Transport | Segment / | Transport / | TCP, UDP, QUIC, SCTP |
| | | Datagram | Transport | Stateful FW, L4 Load Bal. |
+-----+--------------+------------+---------------------+-----------------------------+
| 3 | Network | Packet | Internet / | IPv4, IPv6, ICMP, IPsec |
| | | | Network | OSPF, BGP | Routers, L3 Sw. |
+-----+--------------+------------+---------------------+-----------------------------+
| 2 | Data Link | Frame | Network Access / | Ethernet(802.3), Wi-Fi, ARP |
| | | | Data Link | 802.1Q, STP | L2 Sw., NICs |
+-----+--------------+------------+---------------------+-----------------------------+
| 1 | Physical | Bits | Network Access / | 1000BASE-T, 10GBASE-SR, DSL |
| | | | Physical | Cables, Fiber, SFP, Hubs |
+-----+--------------+------------+---------------------+-----------------------------+
| MNEMONICS |
| Bottom-Up (L1 -> L7): Please Do Not Throw Sausage Pizza Away |
| Top-Down (L7 -> L1): All People Seem To Need Data Processing |
| QUICK PORT REFERENCE |
| 22 SSH | 25 SMTP | 53 DNS | 67/68 DHCP | 80 HTTP | 123 NTP | 179 BGP | 443 HTTPS |
+-------------------------------------------------------------------------------------+
Key Takeaway: Keeping layer numbers, PDUs, TCP/IP equivalents, and standard port numbers side-by-side speeds up packet analysis, firewall rule authoring, and certification review.
OSI Model Interview and Certification Exam FAQ
Certification exams like CompTIA Network+ and Cisco CCNA, along with technical network engineering interviews, rarely stop at asking candidates to recite the seven layers. Instead, they test protocol boundary nuances and real-world failure scenarios.
At which OSI layer do ARP, ICMP, and BGP operate?
These three protocols frequently appear in interviews because their purpose and encapsulation span traditional boundaries:
– ARP (Address Resolution Protocol) resolves a known Layer 3 IPv4 address to an unknown Layer 2 MAC address, but an ARP message is encapsulated directly inside an Ethernet frame (EtherType 0x0806) with no IP header and is never routed across subnets—placing its operational scope at Layer 2 (sometimes informally nicknamed “Layer 2.5”).
– ICMP (Internet Control Message Protocol) carries no user application data, yet it is encapsulated inside an IP packet (Protocol 1) to report Layer 3 reachability and routing errors, classifying it as a Layer 3 control protocol.
– BGP (Border Gateway Protocol) establishes neighbor sessions over TCP port 179 (relying on Layer 4 transport and Layer 7 application-style messaging mechanics), even though its function is exchanging prefixes to populate the Layer 3 routing table.
What distinguishes a Layer 2 switch, a Layer 3 switch, and a traditional router?
A Layer 2 switch forwards frames solely within local VLANs by inspecting hardware MAC addresses in dedicated ASICs, breaking up collision domains while keeping each VLAN as one broadcast domain. A Layer 3 (multilayer) switch adds hardware-accelerated IP packet routing between VLANs (using Switched Virtual Interfaces or routed ports) at wire speed inside the campus or data center LAN. A traditional router also routes packets at Layer 3, but is engineered for WAN edge connectivity, complex NAT, IPsec VPN encryption, deep hierarchical QoS queuing, and massive internet BGP tables rather than high-density local switching.
A workstation shows a solid green link LED and pings 127.0.0.1 successfully, but cannot ping its default gateway. Which layer is most likely failing?
Layer 2 (or a local Layer 3 subnet mismatch). A valid link light confirms Layer 1 electrical continuity, and pinging loopback (127.0.0.1) confirms the host OS’s internal TCP/IP stack is operational. Failing to reach the local default gateway on the same segment points first to a Layer 2 fault—such as the switchport sitting in the wrong access VLAN, Spanning Tree holding the port in a blocking/learning state, or Dynamic ARP Inspection dropping ARP frames—followed by an incorrect IP address or subnet mask configured on the host interface.
Small ping tests succeed over a site-to-site VPN tunnel, but HTTPS handshakes and large file downloads stall indefinitely. How does the OSI model explain this?
This classic scenario stems from an interaction between Layer 3 MTU fragmentation and Layer 4 TCP Maximum Segment Size (MSS). VPN encapsulation headers (such as IPsec + GRE) reduce the usable Layer 3 Maximum Transmission Unit (MTU) along the tunnel path. Small ICMP echo packets fit easily, so ping succeeds. However, full-sized Layer 4 TCP segments—including large TLS server certificate flights at Layer 6—exceed the reduced tunnel MTU. If the `Don












Comments