If you have ever studied for a networking certification or tried to troubleshoot a stubborn web page that refuses to load, you have probably run into the question: which three application layer protocols use TCP? The standard answer is HTTP (Hypertext Transfer Protocol), FTP (File Transfer Protocol), and SMTP (Simple Mail Transfer Protocol). These three form the backbone of web browsing, file movement, and email delivery, and each one depends on TCP's guarantee of reliable, ordered, error-checked delivery to function correctly. Below, we unpack exactly how each protocol works, why TCP was chosen over UDP, and what happens when that reliability breaks down Easy to understand, harder to ignore. And it works..
Why the Transport Layer Choice Matters
Before naming protocols, it helps to understand the decision they are all making. The application layer defines what data means — a web page request, a file transfer command, an email message. The transport layer defines how that data gets there. TCP and UDP are the two dominant options, and they represent opposite philosophies.
- TCP (Transmission Control Protocol) is connection-oriented. It performs a handshake, numbers every segment, acknowledges receipt, retransmits anything lost, and reorders data that arrives out of sequence. The cost is overhead and latency.
- UDP (User Datagram Protocol) is connectionless. It fires packets and forgets. The benefit is speed and low overhead; the cost is that nothing is guaranteed.
Any protocol whose correctness depends on receiving every single byte, in the right order has essentially no choice. That is precisely the profile of HTTP, FTP, and SMTP That's the whole idea..
The Three Application Layer Protocols That Use TCP
1. HTTP — Hypertext Transfer Protocol
HTTP is the language browsers and web servers speak. It is the most widely deployed application layer protocol on the planet, and it runs on TCP port 80 by default, or TCP port 443 when wrapped in TLS to become HTTPS Worth knowing..
Easier said than done, but still worth knowing.
HTTP is a textbook case for TCP because a web page is not one message — it is dozens or hundreds of interdependent resources. Consider what happens when you open a news site:
- The browser requests the HTML document.
- It parses that document and discovers references to stylesheets, scripts, images, and fonts.
- It requests each of those resources, often in parallel across multiple connections.
If even one byte of the HTML is missing or scrambled, the parser may fail to build the page structure at all. TCP's sequence numbers and acknowledgments ensure the browser receives a byte-for-byte identical copy of what the server sent Not complicated — just consistent..
A practical detail worth knowing: HTTP/1.1 and HTTP/2 both run over TCP. Still, hTTP/1. 1 opens up to six parallel connections per origin and suffers from head-of-line blocking, where one stalled response delays everything behind it. HTTP/2 multiplexes many streams over a single TCP connection, which helps — but because TCP itself is still ordered, a single lost packet can still stall all streams. So HTTP/3 abandons TCP entirely and runs over QUIC, which is built on UDP. This is the most common source of confusion when people answer this question, so keep the version number in mind Which is the point..
2. FTP — File Transfer Protocol
FTP is one of the oldest application layer protocols still in active use, dating back to 1971. It uses TCP port 21 for its control channel and TCP port 20 for data transfers in active mode.
FTP is arguably the purest illustration of why TCP exists. When you transfer a multi-gigabyte disk image, a single corrupted byte can render the entire file useless. There is no clever error recovery at the application layer — FTP simply trusts the transport layer to deliver an exact copy That alone is useful..
FTP's design is unusual in that it maintains two separate TCP connections:
- The control connection carries commands like
USER,PASS,LIST,RETR, andSTOR, plus numeric reply codes such as200or550. - The data connection carries the actual file contents or directory listings, opened fresh for each transfer and closed afterward.
In active mode, the server initiates the data connection from port 20 to a client-specified port. In practice, in passive mode, the client initiates both connections, which is why passive mode is far friendlier to firewalls and NAT. FTP's plaintext credentials are also why FTPS (FTP over TLS) and SFTP (which actually runs over SSH) largely replaced it for anything sensitive Less friction, more output..
3. SMTP — Simple Mail Transfer Protocol
SMTP handles the sending of email between mail servers and from clients to their submission server. It runs on TCP port 25 between mail transfer agents, TCP port 587 for message submission, and sometimes TCP port 465 for implicit TLS Still holds up..
SMTP is a text-based, line-oriented protocol with a conversational rhythm. A typical session looks like this:
- Client connects and receives a
220greeting banner. - Client sends
EHLOand the server advertises its capabilities. - Client sends
MAIL FROM:<sender@example.com>. - Client sends
RCPT TO:<recipient@example.com>. - Client sends
DATA, followed by the message headers and body, terminated by a line containing only a period. - Server responds with
250 OKand the connection closes.
Every one of those steps depends on ordered, reliable exchange. Think about it: if the DATA command's terminating dot is lost, the receiving server will wait indefinitely or time out. On top of that, if a byte of the message body is dropped, the recipient receives a corrupted email. TCP's retransmission machinery is what makes this simple, human-readable protocol dependable. It is also worth noting that SMTP only pushes mail; retrieving it is the job of POP3 and IMAP, which also use TCP Still holds up..
Why These Protocols Cannot Use UDP
The pattern across all three is identical: the data has no independent value if it arrives incomplete or out of order.
- A web page missing its CSS is unreadable.
- A file missing a byte is corrupt.
- An email missing a line is broken.
UDP would force each of these protocols to reinvent reliability from scratch — adding sequence numbers, acknowledgments, and retransmission logic at the application layer. That work has already been done once, correctly, in TCP. There is also a secondary benefit: TCP's flow control (via the sliding window) prevents a fast sender from overwhelming a slow receiver, and congestion control prevents the network itself from collapsing under load The details matter here. Simple as that..