The Wayback Machine - https://web.archive.org/web/20240710085509/https://www.geeksforgeeks.org/introduction-to-telnet/
Open In App

Introduction to TELNET

Last Updated : 24 Jun, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

TELNET stands for Teletype Network. It is a client/server application protocol that provides access to virtual terminals of remote systems on local area networks or the Internet. The local computer uses a telnet client program and the remote computers use a telnet server program. In this article, we will discuss every point about TELNET.

What is Telnet?

TELNET is a type of protocol that enables one computer to connect to the local computer. It is used as a standard TCP/IP protocol for virtual terminal service which is provided by ISO. The computer which starts the connection is known as the local computer. The computer which is being connected to i.e. which accepts the connection known as the remote computer. During telnet operation, whatever is being performed on the remote computer will be displayed by the local computer. Telnet operates on a client/server principle.

History of TELNET

The Telnet protocol originated in the late 1960s, it was created to provide remote terminal access and control over mainframes and minicomputers. Initially, it was designed to be a simple and secure method of connecting to a remote system. This protocol allowed users to access remote computers using a terminal or command-line interface. Over time, Telnet’s use has diminished due to security concerns, and alternatives like SSH are now preferred for secure remote management

Logging in TELNET

The logging process can be further categorized into two parts:

  • Local Login
  • Remote Login

1. Local Login

Whenever a user logs into its local system, it is known as local login. 

Local Login

Local Login

The Procedure of Local Login

  • Keystrokes are accepted by the terminal driver when the user types at the terminal.
  • Terminal Driver passes these characters to OS.
  • Now, OS validates the combination of characters and opens the required application.

2. Remote Login

Remote Login is a process in which users can log in to a remote site i.e. computer and use services that are available on the remote computer. With the help of remote login, a user is able to understand the result of transferring the result of processing from the remote computer to the local computer.

Remote Login

Remote Login in Logging

The Procedure of Remote Login

  • When the user types something on the local computer, the local operating system accepts the character.
  • The local computer does not interpret the characters, it will send them to the TELNET client.
  • TELNET client transforms these characters to a universal character set called Network Virtual Terminal (NVT) characters and it will pass them to the local TCP/IP protocol Stack.
  • Commands or text which are in the form of NVT, travel through the Internet and it will arrive at the TCP/IP stack at the remote computer.
  • Characters are then delivered to the operating system and later on passed to the TELNET server.
  • Then TELNET server changes those characters to characters that can be understandable by a remote computer.
  • The remote operating system receives characters from a pseudo-terminal driver, which is a piece of software that pretends that characters are coming from a terminal.
  • The operating system then passes the character to the appropriate application program.

Network Virtual Terminal(NVT)

NVT (Network Virtual Terminal) is a virtual terminal in TELNET that has a fundamental structure that is shared by many different types of real terminals. NVT (Network Virtual Terminal) was created to make communication viable between different types of terminals with different operating systems.

Network Virtual Terminal(NVT) in Telnet

Network Virtual Terminal(NVT) in Telnet

How TELNET Works?

  • Client-Server Interaction
    • The Telnet client initiates the connection by sending requests to the Telnet server.
    • Once the connection is established, the client can send commands to the server.
    • The server processes these commands and responds accordingly.
  • Character Flow
    • When the user types on the local computer, the local operating system accepts the characters.
    • The Telnet client transforms these characters into a universal character set called Network Virtual Terminal (NVT) characters.
    • These NVT characters travel through the Internet to the remote computer via the local TCP/IP protocol stack.
    • The remote Telnet server converts these characters into a format understandable by the remote computer.
    • The remote operating system receives the characters from a pseudo-terminal driver and passes them to the appropriate application program3.
  • Network Virtual Terminal (NVT)
    • NVT is a virtual terminal in Telnet that provides a common structure shared by different types of real terminals.
    • It ensures communication compatibility between various terminals with different operating systems.

TELNET Commands

Commands of Telnet are identified by a prefix character, Interpret As Command (IAC) with code 255. IAC is followed by command and option codes. The basic format of the command is as shown in the following figure : 

Telnet command format

TELNET Command Format

Following are some of the important TELNET commands: 

Character 
 
Decimal 
 
  Binary  
 
                  Meaning 
 
WILL 251 11111011 1. Offering to enable. 
2. Accepting a request to enable. 
 
WON’T 252 11111100 1. Rejecting a request to enable. 
2. Offering to disable. 
3. Accepting a request to disable. 
 
DO 253 11111101` 1. Approving a request to enable. 
2. Requesting to enable. 
 
DON’T 254 11111110 1. Disapproving a request to enable. 
2. Approving an offer to disable. 
3. Requesting to disable. 
 

Following are some common options used with the telnet: 

Code    
 
          Option 
 
                                            Meaning 
 
0 Binary It interprets as 8-bit binary transmission.
1 Echo It will echo the data that is received on one side to the other side.
3 Suppress go ahead It will suppress go ahead signal after data.
5 Status It will request the status of TELNET.
6 Timing mark It defines the timing marks.
8 Line width It specifies the line width.
9 Page size It specifies the number of lines on a page.
24 Terminal type It set the terminal type.
32 Terminal speed It set the terminal speed.
34 Line mode It will change to the line mode.

Uses of TELNET

  • Remote Administration and Management
  • Network Diagnostics
  • Understanding Command-Line Interfaces
  • Accessing Bulletin Board Systems (BBS)
  • Automation and Scripting

Advantages of TELNET

  • It provides remote access to someone’s computer system.
  • Telnet allows the user for more access with fewer problems in data transmission.
  • Telnet saves a lot of time.
  • The oldest system can be connected to a newer system with telnet having different operating systems.

Disadvantages of TELNET

  • As it is somehow complex, it becomes difficult to beginners in understanding.
  • Data is sent here in form of plain text, that’s why it is not so secured.
  • Some capabilities are disabled because of not proper interlinking of the remote and local devices.

Modes of Operation

  • Default Mode: If no other modes are invoked then this mode is used. Echoing is performed in this mode by the client. In this mode, the user types a character and the client echoes the character on the screen but it does not send it until the whole line is completed.
  • Character Mode: Each character typed in this mode is sent by the client to the server. A server in this type of mode normally echoes characters back to be displayed on the client’s screen.
  • Line Mode:  Line editing like echoing, character erasing, etc. is done from the client side. The client will send the whole line to the server.

Conclusion

Telnet is a client/server application protocol that allows remote access to virtual terminals via local area networks or the internet. Telnet’s use has decreased due to security concerns, with protocols such as SSH chosen for safe remote management. Telnet is still useful for remote administration, network diagnostics, instructional purposes, and interacting with legacy systems.

Frequently Asked Questions on TELNET – FAQs

What is Telnet used for?

Terminal programs typically use TELNET to allow you to log into a remote host.

Is Telnet TCP or UDP?

A TELNET connection is a Transmission Control Protocol (TCP).

Is Telnet secure?

Telnet is inherently insecure. Credential information (usernames and passwords) supplied over telnet is not encrypted and hence vulnerable to identity theft.

Which layer is Telnet?

TELNET is an application layer protocol of OSI Model.



Similar Reads

Difference between SSH and Telnet
If you have been using a linux distro for a quite long time now and you are not a newbie at Linux anymore then you might have come across the terms like SSH and telnet. They are pretty similar when it comes to facility they provide but did SSH come into play when Telnet already existed? SSH or Secure SHell SSH or Secure SHell is now only major prot
5 min read
TELNET and SSH in Cisco devices
We can take access to a cisco router or switch either through a console cable or taking remote access through well known protocols Telnet or ssh (Secure Shell). Telnet and ssh are both application layer protocols used to take remote access and manage a device. 1. Telnet: As stated, Telnet is an application layer protocol which uses TCP port number
4 min read
TELNET and SSH on Adaptive Security Appliance (ASA)
Prerequisite - Adaptive security appliance (ASA) A user can take management access of a device through a console or remote access by using telnet or SSH. In the same way, ASA (Adaptive Security Appliance) CLI access can take through a console or by using Telnet or SSH and GUI access can be taken through (ASDM-a tool). 1. Telnet on ASA: Telnet is an
7 min read
Difference between TELNET and FTP
TELNET (TELecommunication NETwork) and FTP (File Transfer Protocol) both are the application layer protocol. They are connection oriented protocols as they create a connection between remote host and a server. TELNET This software links personal computer to a network server and converts data into the plain text. Basically, it is used for remote log
2 min read
How to Disable Telnet on Cisco Switches and Routers?
A computer network is a group of devices connected to each other using a transmission method such as cables etc. These devices can be computers, printers, scanners, fax machines, etc. The purpose of having a computer network is to send and receive data. stored on other devices over the network. These devices are called nodes. Telnet is a network pr
4 min read
Calling Web Service Using Curl With Telnet Connection
Prerequisite: Telnet, Curl Terminal Network as the name suggests is an application layer protocol used to connect with hosts (remote machines) over a TCP/IP network. It is based on a client-server architecture where the telnet client makes a connection with the telnet server and once the connection has been established the client (your computer) ac
3 min read
Introduction of Internetworking
Internetworking is combined of 2 words, inter and networking which implies an association between totally different nodes or segments. This connection area unit is established through intercessor devices akin to routers or gateway. The first term for associate degree internetwork was catenet. This interconnection is often among or between public, p
8 min read
Introduction of Virtual Router Redundancy Protocol (VRRP) and its configuration
VRRP is an open standard protocol, which is used to provide redundancy in a network. It is a network layer protocol (protocol number-112). The number of routers (group members) in a group acts as a virtual logical router which will be the default gateway of all the local hosts. If one router goes down, one of the other group members can take place
4 min read
Introduction to Crypto-terminologies
Cryptography is an important aspect when we deal with network security. 'Crypto' means secret or hidden. Cryptography is the science of secret writing with the intention of keeping the data secret. Cryptanalysis, on the other hand, is the science or sometimes the art of breaking cryptosystems. Both terms are a subset of what is called Cryptology. C
4 min read
Introduction to Sniffers
Introduction: A sniffer, also known as a packet analyzer or network analyzer, is a tool used to capture and analyze network traffic. It is a software or hardware tool that intercepts and records data packets transmitted between computers or devices on a network. Packet sniffers are commonly used for network troubleshooting, security analysis, and n
3 min read
Article Tags :