telnet terminal network telnet is a general-purpose client-server application program telnet...

30
Telnet TErminaL NETwork TELNET is a general-purpose client-server application program TELNET enables the establishment of a connection to a remote system in such a way that the local terminal appears to be a terminal at the remote system.

Upload: sarah-richards

Post on 18-Jan-2018

225 views

Category:

Documents


0 download

DESCRIPTION

Local login

TRANSCRIPT

Page 1: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Telnet TErminaL NETwork TELNET is a general-purpose client-server

application program TELNET enables the establishment of a connection to

a remote system in such a way that the local terminal appears to be a terminal at the remote system.

Page 2: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Login Local Remote

Page 3: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Local login

Page 4: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Remote login

Page 5: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Network Virtual Terminal(NVT) Universal interface character set TELNET client translates characters (data or

commands) that come from the local terminal into NVT form and delivers them to the network.

TELNET server translates data and commands from NVT form into the form acceptable by the remote computer.

Page 6: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Concept of NVT

Page 7: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

NVT Character Set Data Characters Control Characters Both are 8 bit bytes

Page 8: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Data Characters Use NVT ASCII 7 lower order are same as US ASCII Higher order one is 0

Page 9: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Control Characters 8 bit character set with highest orders

bit set

Page 10: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Some NVT control characters

Page 11: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Embedding The same connection is used by TELNET for

sending both data and control characters. TELNET accomplishes this by embedding the control characters in the data stream.

Each sequence of control characters is preceded by a special control character called Interpret as control(IAC)

Page 12: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

An example of embedding

Page 13: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Options TELNET lets the client and server negotiate

options before or during the use of the service. Options are extra features available to a user

with a more sophisticated terminal.

Page 14: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote
Page 15: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Binary : This option allows the receiver to interpret every 8 bit character received as binary data except IAC

Echo : This options allows the server to echo data received from the client. This means every character sent by the client to the sender will be echoed back to the screen of the client terminal. Client terminal will not echo characters

Suppress go- ahead : suppresses go-ahead(GA) character

Page 16: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Status: to get status of the options being enabled at the server site.

Timing mark: allows one party to issue a timing mark that indicates all previously received data has been processed

Terminal Type: client to send its terminal type Terminal Speed: client to send its terminal

speed Line mode: enable to switch to line mode

Page 17: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Option Negotiation To use any of the options first requires option

negotiation between the client and the server. Four control characters are used for this purpose

Page 18: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote
Page 19: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Offer to enable an option

Page 20: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Request to enable an option

Page 21: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Offer to disable an option

Page 22: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Request to disable an option

Page 23: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Example 1: Echo option

Page 24: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Controlling the server Control characters can be used to control the remote

server.

Page 25: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Escape character When a user wants characters interpreted by

the client instead of the server, he can use an escape character, normally Ctrl+]

shown as ^]

Page 26: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Mode of Operation Most TELNET implementations operate in one

of three modes: 1) default mode2) character mode3) line mode

Page 27: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Default Mode In this mode echoing is done by the client Will not sent to the server until a whole line

is completed After sending client wait for the go-ahead

command from the server before accepting any more from clients

Operation is half duplex

Page 28: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Character mode Each character typed is sent by the

client to server Server echo the character TCP segments must send for each

character

Page 29: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

Line Mode Client send one line

Line editing is possible( echoing, character erasing , line erasing,)

Full duplex mode Will not wait for go-ahead

Page 30: Telnet  TErminaL NETwork  TELNET is a general-purpose client-server application program  TELNET enables the establishment of a connection to a remote

User interface The operating system (UNIX, for example)

defines an interface to TELNET with user-friendly commands. The interface is responsible for translating the user-friendly commands to the TELNET commands.