TCP Transmission Control Protocol
TCP Transmission Control Protocol
Data
FIN
SN=X
ACK=X+1
...
FIN
SN=Y
ACK=Y+1
TCP TIME_WAIT
■ Once a TCP connection has been
terminated (the last ACK sent) there is
some unfinished business:
□ What if the ACK is lost? The last FIN will
be resent and it must be ACK’d.
□ What if there are lost or duplicated
segments that finally reach the destination
after a long delay?
■ TCP hangs out for a while (2 * Max.
Segment Life) to handle these
situations.
TCP Applications
Transmission Control Protocol (TCP) is widely
used in various real-world applications.
Web Browsing (HTTP):
Email (SMTP, IMAP, POP3):
Database Communication (MySQL,
PostgreSQL):
Network Printing (IPP):
Remote Access (SSH, Telnet):
Network Services (DNS, NTP):
SUMMARY
TCP provides a reliable, ordered, and error-
checked byte stream service between
applications running on hosts connected via an
IP network. It complements the Internet
Protocol (IP) and is essential for major internet
applications like the World Wide Web, email,
and file transfer
TCP is the backbone of many essential internet
services. Its widespread adoption makes it a
fundamental protocol in modern networking.