What is the difference between TCP and HTTP?

What is the difference between TCP and HTTP?

Approach: Distinguish between transport and application layers.

TCP is a transport layer protocol used to establish a connection and ensure data delivery. HTTP is an application layer protocol built on top of TCP used for transferring web data.

Follow-up: Which layer does HTTP operate at in the OSI model?

Key concepts: layering, osi model.