Interview Prep/Networking/Network Models, TCP, UDP & Ports

How does the TCP/IP model map to the OSI model?

BeginnerConceptNetwork Models, TCP, UDP & Ports
Answer

TCP/IP has four layers: Link (OSI 1–2), Internet (OSI 3), Transport (OSI 4) and Application (OSI 5–7). The Internet protocol suite is what is actually implemented; OSI is a teaching model.

Session and presentation concerns (TLS, encoding, session handling) live inside the application or its libraries in the real stack, which is why TLS is awkwardly "between" L4 and L7.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports