Open In App
Related Articles

Introduction to TELNET

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Pre-Requisite: Types of Network Protocol

TELNET stands for Teletype Network. It 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. The local computer uses a telnet client program and the remote computers use a telnet server program. 

Logging

The logging process can be further categorized into two parts:

  1. Local Login
  2. 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

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

 

Following are some of the important TELNET commands: 

Character 
 
Decimal 
 
  Binary  
 
                  Meaning 
 
WILL251111110111. Offering to enable. 
2. Accepting a request to enable. 
 
WON’T252111111001. Rejecting a request to enable. 
2. Offering to disable. 
3. Accepting a request to disable. 
 
DO25311111101`1. Approving a request to enable. 
2. Requesting to enable. 
 
DON’T254111111101. 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 
 
0BinaryIt interprets as 8-bit binary transmission.
1EchoIt will echo the data that is received on one side to the other side.
3Suppress go aheadIt will suppress go ahead signal after data.
5StatusIt will request the status of TELNET.
6Timing markIt defines the timing marks.
8Line widthIt specifies the line width.
9Page sizeIt specifies the number of lines on a page.
24Terminal typeIt set the terminal type.
32Terminal speedIt set the terminal speed.
34Line modeIt will change to the line mode.

Advantages of Telnet

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

Disadvantages of Telnet

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

Modes of Operation

Most telnet implementations operate in one of the following three modes: 

  1. Default mode
  2. Character mode
  3. Line mode

1. 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.

2. 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.

3. 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.



Last Updated : 24 Mar, 2023
Like Article
Save Article
Share your thoughts in the comments
Similar Reads