Examples of the Application level of the OSI model One typically provides a service to the other Servers for hardware
file printer fax
Application
(pcs.cnu.edu) (137.155.10.2)
Common CLIENT-SERVERs
FTP for transferring files from one machine
to another WITHOUT having an account at both machines.
TELNET for providing remote commandline (shell) access when you have an account on both machines. TELNET also will provide other functionality as we will see later. Info services from ARCHIE, WAIS (Wide Area Information Servers), GOPHER, etc.
Application
Terminal
Display Keyboard
Mainframe
NO local processing per se. Only a conduit to the Mainframe.
Application
PC
Here the PC has the program instead of the mainframe! In previously graphic, terminal is a relay.
Remote terminal
Run program remotely Like a long cable to a keyboard at your house Hyperterminal on Windows 95/98 Typically requires a modem Only run command shell, not windows apps. What if you want a terminal access through the internet? Telnet is your answer
Telnet example
telnet cambria@pcs.cnu.edu SunOS 5.6 login: dgame Password:(.) Last login: Tue Jan 25 19:07:04 from cx81733-c.nwptn1 You have new mail. {dgame@cambria:~ } pwd /home/faculty1/dgame {dgame@cambria:~ }exit {dgame@cambria:~ }logout (back on the original machine)
Telnet Client
Internet
Telnet Server
Terminal
20 21
SP !
Display Chars
Telnet Client
Internet
Telnet Server
Unix Shell
(0-127 chars)
(0-255 chars) Telnet server
(holds 128-255)
Unix shell
Control
Telnet server
mkdirr(245)(OD)
Unix shell
(245) holds r
mkdir(OD)
Control
Data intended for the receiving program is passed through. The control character (245) tells the server to delete the previous character before passing the character to the shell.
General Interaction
Telnet:
Internet Telnet Client Appl or shell
Telnet Server
Most Often:
Internet Client Server
Another View!
Types ls.. gets directory USER Telnet Client Unix Shell Telnet Server
Additional layering
of application on top of standard applications such as telnet, ftp, etc.
ftp
ftp Server
Files
Telnet distinguishes data from commands by code value. Ftp distinguishes data from commands by channel.
FTP
A program for copying files from one machine to another Lets you do a FEW unix-type commands in the command-line version
FTP
connect request login CLIENT login request file send file logoff SERVER
Client to Server
Server to Client
Commands to use
Table 8.3 Not like a shell, but a few of the commands
cd close pwd lcd (change on the client side!) binary get put mget prompt
Archie
FTP provides a unix-look directory which you navigate, ls, and copy/send files If you have trouble managing your own account, how much trouble do you have locating information when the entire FTP world is your directory? Database server containing information on the contents of FTP sites around the world Being replaced with good WWW search engines which envelope ftp sites.
SMTP
SERVER mail.pcs.cnu.edu SMTP SERVER mail.uva.edu POP or IMAP
POP or IMAP
pine
Here a local server and remote server in addition to a remote and local client. For SMTP, the servers also function as clients depending on which server makes the request. See Figure 8.7
Receive
1 GetAnswer 2
Send
Process Answer
TIME
TIME