cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
25733
Views
8
Helpful
5
Replies

Telnet - TCP , UDP ports

grapevine
Level 1
Level 1

Unlike TCP connections, why can Telnet NOT be used to verify UDP connections?

Why does the below command fail to show as connected even if there is a connection?

C:\Users\ABC>telnet 10.0.0.1 169

2 Accepted Solutions

Accepted Solutions

Steve Fuller
Level 9
Level 9

Hi,

Telnet can't verify UDP connections simply because Telnet was only designed to use TCP as its underlying transport layer.

Take a read of the RFC 854, Telnet Protocol Specification that states:

A TELNET connection is a Transmission Control Protocol (TCP) connection used to transmit data with
interspersed TELNET control information.

Regards

View solution in original post

Richard Burts
Hall of Fame
Hall of Fame

Perhaps there is something in your question that I am not understanding. But it seems straightforward to me that telnet was designed as a communications protocol using TCP as its transport layer. There is no provision in the protocol design for using UDP as the transport for telnet.

 

HTH

 

Rick

HTH

Rick

View solution in original post

5 Replies 5

Steve Fuller
Level 9
Level 9

Hi,

Telnet can't verify UDP connections simply because Telnet was only designed to use TCP as its underlying transport layer.

Take a read of the RFC 854, Telnet Protocol Specification that states:

A TELNET connection is a Transmission Control Protocol (TCP) connection used to transmit data with
interspersed TELNET control information.

Regards

Richard Burts
Hall of Fame
Hall of Fame

Perhaps there is something in your question that I am not understanding. But it seems straightforward to me that telnet was designed as a communications protocol using TCP as its transport layer. There is no provision in the protocol design for using UDP as the transport for telnet.

 

HTH

 

Rick

HTH

Rick

You can use the tool Netcat (there are also Windows-versions available) to connect to UDP-servers. But a problem remains, the server needs some input that is understood. And that has to be simulated by you.

This input can also be generated by tools like Scapy, but that needs quite some learning to use it.

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Also understand TCP and UDP are two different protocols with different rules of usage.  The reason telnet often works with other non-telnet ports, is because TCP shares a common connection setup (the 3 way handshake).  Beyond that, some other TCP protocols will take text commands, so if you know what they are, you can also interact with such non-telnet protocols using telnet.

UDP, though, does not have a common setup, if fact, the protocol doesn't support the concept of having a session.  The latter, if needed, is provided by the application using UDP.

Thanks for the insight.

Review Cisco Networking for a $25 gift card