Both are layered models that describe how network communication is organized: each layer handles one concern and talks only to the layers directly above and below it. The OSI model is a 7-layer conceptual reference; the TCP/IP model is the 4-layer model the real internet actually runs on. They map onto each other:
OSI (7 layers, conceptual) TCP/IP (4 layers, practical) Examples
┌──────────────────────────┐ ┌──────────────────────────┐
│ 7 Application │ │ │
│ 6 Presentation ─┼──────▶ │ Application │ HTTP, DNS, TLS
│ 5 Session ─┘ │ │
├──────────────────────────┤ ├──────────────────────────┤
│ 4 Transport │──────▶ │ Transport │ TCP, UDP
├──────────────────────────┤ ├──────────────────────────┤
│ 3 Network │──────▶ │ Internet │ IP, ICMP
├──────────────────────────┤ ├──────────────────────────┤
│ 2 Data Link ─┼──────▶ │ Link (Network Access) │ Ethernet, Wi-Fi,
│ 1 Physical ─┘ │ │ ARP, cables
└──────────────────────────┘ └──────────────────────────┘
