OSI & TCP/IP Model Deep Reference — interactive guide covering all 7 OSI layers, TCP/IP mapping, protocols, port numbers, exploits, and modern technologies

OSI Model (ISO, 1984)
TCP/IP Model (DoD, 1974)
Key Protocols
Upper layers (app focus) Transport layer Network layer Lower layers (hardware focus) Click any layer for details →
FeatureOSI ModelTCP/IP Model
Full nameOpen Systems InterconnectionTransmission Control Protocol / Internet Protocol
Created byISO & CCITT (now ITU-T)DARPA / Vint Cerf & Bob Kahn
Year1984 (finalized)1974 (RFC 675), refined 1978–1983
PurposeUniversal reference/teaching model; vendor-neutral interoperability standardPractical protocol suite to interconnect ARPANET nodes; basis for the modern Internet
MotivationIBM's SNA, DEC's DECnet, and others were proprietary; ISO wanted a universal framework so any vendor's hardware could talk to any other'sUS DoD needed resilient, survivable communication that could reroute around damaged nodes; existing protocols were brittle
Layers7 (Physical, Data Link, Network, Transport, Session, Presentation, Application)4 (Network Access, Internet, Transport, Application)
Layer mappingStrict 1-to-1 separation of concernsOSI layers 5-6-7 collapsed into Application; layers 1-2 collapsed into Network Access
Data unit namesBits, Frames, Packets, Segments, Data, Data, DataFrames, Datagrams, Segments, Messages
Transport protocolsModel defines—doesn't specifyTCP (reliable) and UDP (unreliable/fast)
AdoptionReference model; actual OSI protocol stack rarely deployedDe facto standard; powers the entire Internet
StrengthsClear separation of concerns, excellent for teaching, vendor-neutralProven at Internet scale, simple, flexible
WeaknessesComplex, late to market, never widely implemented as actual protocolsNo clear separation of service/interface/protocol; security bolted on later
Session/PresentationExplicit separate layersApplication layer handles both (e.g., TLS ≈ Presentation, RPC ≈ Session)
Modern relevanceFoundation for network engineering education, troubleshooting frameworkThe running Internet—every device uses TCP/IP
OSI Layer Mnemonics — top to bottom (7→1)
Multiple memory aids — pick your favorite:
📚 Classic (polite)
All (Application)
People (Presentation)
Seem (Session)
To (Transport)
Need (Network)
Data (Data Link)
Processing (Physical)
🍕 Food version
Awesome (Application)
Pizza (Presentation)
Slices (Session)
Throughout (Transport)
New (Network)
Dimensions (Data Link)
Please (Physical)
Bottom to top (1→7): Please Do Not Throw Sausage Pizza Away
PDU Mnemonic — "Some People Fear Bacon" (top→bottom, L4→L1)
S
Segments
Transport Layer 4
TCP/UDP data units. Include source/dest port, sequence #, flags
P
Packets
Network Layer 3
IP datagrams. Add source/dest IP address, TTL, protocol field
F
Frames
Data Link Layer 2
Ethernet/Wi-Fi frames. Add MAC addresses, FCS/CRC checksum
B
Bits
Physical Layer 1
Raw 0s and 1s encoded as voltage, light, or radio waves on medium
OSI Layer Letters — A through P
PortProtocolServiceLayer
Modern technologies map to the OSI model even though they didn't exist when it was written. Understanding where they "live" helps with troubleshooting and security.