Internet Applications: File Transfer Protocol (FTP)
Data transfer before Internet <ul><li>Magnetic media like tapes and disks: </li></ul><ul><ul><li>An application transferre...
The Internet can be used to transfer data <ul><li>Benefits: </li></ul><ul><ul><li>Efficient: Internet is designed for send...
File Transfer Protocol (FTP) <ul><li>A general-purpose protocol that can be used to copy an arbitrary file from one comput...
Issues in designing FTP <ul><ul><li>Must transfer an arbitrary file (size, name,..) </li></ul></ul><ul><ul><li>Must accomm...
FTP Commands <ul><li>FTP is an interactive protocol: it responds to each command a user enters; signals when it is ready t...
Transfer Modes <ul><li>FTP defines two types of transfer: textual  and binary; </li></ul><ul><li>Textual: is used for text...
Connections, authorizations and file permissions <ul><li>The remote system has to verify that the user is authorized to ac...
A browser can use FTP  <ul><li>A WWW browser can be used to FTP  instead of a dedicated  interface; </li></ul><ul><li>A br...
FTP uses the client-server paradigm: <ul><ul><li>Local application (or browser) is the client </li></ul></ul><ul><ul><li>R...
Upcoming SlideShare
Loading in …5
×

This presentation uploaded by me makesame for software testing tools used for testing web and desctop applicatons on network this is slides share

1,042 views
954 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,042
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
44
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

This presentation uploaded by me makesame for software testing tools used for testing web and desctop applicatons on network this is slides share

  1. 1. Internet Applications: File Transfer Protocol (FTP)
  2. 2. Data transfer before Internet <ul><li>Magnetic media like tapes and disks: </li></ul><ul><ul><li>An application transferred data on magnetic media </li></ul></ul><ul><ul><li>The medium was physically moved from one computer to another; </li></ul></ul><ul><ul><li>Drawback: SLOW </li></ul></ul><ul><li>Fax: </li></ul><ul><ul><li>Use the telephone lines; </li></ul></ul><ul><ul><li>A fax machine consists of a printer, a scanner, a dial-up modem, and a dedicated computer; </li></ul></ul><ul><ul><li>Drawbacks: requires a dedicated machine and a fax transmission is as expensive as a phone conversation. </li></ul></ul>
  3. 3. The Internet can be used to transfer data <ul><li>Benefits: </li></ul><ul><ul><li>Efficient: Internet is designed for sending digital data; </li></ul></ul><ul><ul><li>Less expensive than fax: Internet access is billed a flat rate; </li></ul></ul><ul><ul><li>Can transfer more types of data than fax, including audio and video. </li></ul></ul>
  4. 4. File Transfer Protocol (FTP) <ul><li>A general-purpose protocol that can be used to copy an arbitrary file from one computer to another; </li></ul><ul><li>one of the oldest network application---predates TCP and IP; </li></ul><ul><li>Later versions were built on top of TCP/IP; </li></ul><ul><li>Among the most heavily used applications: </li></ul><ul><ul><li>FTP generated as much as 1/3 of the traffic on the Internet </li></ul></ul><ul><ul><li>Was exceeded only by WWW (in 1995). </li></ul></ul>
  5. 5. Issues in designing FTP <ul><ul><li>Must transfer an arbitrary file (size, name,..) </li></ul></ul><ul><ul><li>Must accommodate multiple file types; </li></ul></ul><ul><ul><li>Must connect heterogeneous computers. May have to deal with different: </li></ul></ul><ul><ul><ul><li>Data encodings; </li></ul></ul></ul><ul><ul><ul><li>File names; </li></ul></ul></ul><ul><ul><ul><li>File protections; </li></ul></ul></ul>
  6. 6. FTP Commands <ul><li>FTP is an interactive protocol: it responds to each command a user enters; signals when it is ready to execute another command; </li></ul><ul><li>Examples of FTP commands: </li></ul><ul><ul><li>Open---connect to a remote computer; </li></ul></ul><ul><ul><li>Get---retrieve a file from the remote computer; </li></ul></ul><ul><ul><li>Put---sends a file to the remote computer; </li></ul></ul><ul><ul><li>Bye---terminate the connection and leave FTP. </li></ul></ul>
  7. 7. Transfer Modes <ul><li>FTP defines two types of transfer: textual and binary; </li></ul><ul><li>Textual: is used for text files; </li></ul><ul><ul><li>most text files are encoded in ASCII or EBCDIC </li></ul></ul><ul><ul><li>ftp can translate from the local to remote character set when transferring a file; </li></ul></ul><ul><li>Binary: used for all other files (audio, image, numbers, …) </li></ul><ul><ul><li>Files are copied exactly; </li></ul></ul><ul><ul><li>The resulting copy might be meaningless because FTP does not convert values to the local representation; </li></ul></ul>
  8. 8. Connections, authorizations and file permissions <ul><li>The remote system has to verify that the user is authorized to access files: </li></ul><ul><ul><li>The user has to provide a login name and a password; </li></ul></ul><ul><ul><li>If the user is authorized he/she may start transferring files; </li></ul></ul><ul><li>What if the user does not have an account? </li></ul><ul><ul><li>System administrator can configure FTP to support anonymous FTP; </li></ul></ul><ul><ul><li>Login name anonymous and password guest (or e-mail address) allows a user access to public files. </li></ul></ul>
  9. 9. A browser can use FTP <ul><li>A WWW browser can be used to FTP instead of a dedicated interface; </li></ul><ul><li>A browser uses FTP as the transfer protocol, when the URL starts with ftp (instead of http) </li></ul><ul><li>EX: </li></ul><ul><ul><li>ftp://ftp.acunix.albany.edu/as7656/temp --- instructs the browser to get file “as7656/temp” from machine ftp.acunix.edu </li></ul></ul><ul><ul><li>ftp://ftp.acunix.edu/as7656 --- displays all files in the directory “as7656” </li></ul></ul>
  10. 10. FTP uses the client-server paradigm: <ul><ul><li>Local application (or browser) is the client </li></ul></ul><ul><ul><li>Remote FTP program is the server; </li></ul></ul><ul><ul><li>The FTP server authorizes the connection, locates the file, and uses TCP to send it. </li></ul></ul>

×