askvity

Is telnet TCP or UDP?

Published in Telnet Protocols 1 min read

Telnet uses TCP (Transmission Control Protocol). According to the reference, a TELNET connection is a TCP connection designed for transmitting data along with TELNET control information.

TCP vs UDP: A Brief Overview

While Telnet specifically uses TCP, understanding the difference between TCP and UDP is crucial.

Feature TCP UDP
Connection Connection-oriented Connectionless
Reliability Reliable (guaranteed delivery) Unreliable (no guaranteed delivery)
Ordering Ordered delivery Unordered delivery
Use Cases Web browsing, email, file transfer Streaming, online gaming, DNS

Telnet and TCP: Why TCP?

Telnet requires a reliable connection because it involves sending commands and receiving responses. The correct order and guaranteed delivery of data are essential for proper functionality. TCP ensures this reliability.

  • Reliability: TCP confirms that data packets reach their destination in the correct sequence, crucial for command execution in Telnet.
  • Connection-Oriented: A TCP connection establishes a dedicated channel between the client and server, ensuring smooth communication.

In summary:

Telnet relies on the robust and reliable connection provided by TCP for transmitting commands and data.

Related Articles