Chapter 20 File Transfer Protocol (FTP) McGraw-Hill The

Chapter 20 File Transfer Protocol (FTP) McGraw-Hill The McGraw-Hill Companies, Inc., 2000 CONTENTS

CONNECTIONS COMMUNICATION COMMAND PROCESSING FILE TRANSFER

USER INTERFACE ANONYMOUS FTP McGraw-Hill The McGraw-Hill Companies, Inc., 2000 FTP uses the services of TCP. It needs two TCP connections. The well-known port 21 is used

for the control connection and the well-known port 20 for the data connection. McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Figure 20-1

FTP McGraw-Hill The McGraw-Hill Companies, Inc., 2000 20.1 Connections: The control connection McGraw-Hill

The McGraw-Hill Companies, Inc., 2000 The Data Connection Uses Servers well-known port 20 1. Client issues a passive open on an ephemeral port, say x. 2. Client uses PORT command to tell the server about the port number x. 3. Server issues an active open from port 20 to port x.

4. Server creates a child server/ephemeral port number to serve the client McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Creating the data connection

McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Figure 20-4 20.2 Communication Using the control connection McGraw-Hill

The McGraw-Hill Companies, Inc., 2000 NVT FTP McGraw-Hill FTP

The McGraw-Hill Companies, Inc., 2000 Format of NVT ASCII characters McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Format of NVT control characters

McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Figure 20-5 Using the data connection McGraw-Hill

The McGraw-Hill Companies, Inc., 2000 File Type ASCII or EBCDIC Nonprint TELNET Image

McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Data Structure File Structure Record Structure Page Structure McGraw-Hill

The McGraw-Hill Companies, Inc., 2000 Transmission Mode Stream mode Block mode Compressed mode McGraw-Hill The McGraw-Hill Companies, Inc., 2000

20.3 Command processing

Access Commands File Management Data Formatting Port defining File transfer Miscellaneous McGraw-Hill The McGraw-Hill Companies, Inc., 2000

20.4 File transfer McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Figure 20-8 McGraw-Hill

Example 1 The McGraw-Hill Companies, Inc., 2000 Figure 20-9 McGraw-Hill Example 2

The McGraw-Hill Companies, Inc., 2000 20.5 USER INTERFACE McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Solution % ftp challenger.atc.fhda.edu Connected to challenger.atc.fhda.edu 220 Server ready Name: forouzan Password: xxxxxxx ftp > ls /usr/user/report 200 OK McGraw-Hill

The McGraw-Hill Companies, Inc., 2000 Solution 150 Opening ASCII mode ........... 226 transfer complete ftp > close 221 Goodbye ftp > quit

McGraw-Hill The McGraw-Hill Companies, Inc., 2000 20.6 ANONYMOUS FTP McGraw-Hill

The McGraw-Hill Companies, Inc., 2000 Solution % ftp internic.net Connected to internic.net 220 Server ready Name: anonymous 331 Guest login OK, send guest as password Password: guest

ftp > pwd 257 / is current directory McGraw-Hill The McGraw-Hill Companies, Inc., 2000 Solution ftp > ls 200 OK 150 Opening ASCII mode

bin ftp> close 221 Goodbye ftp> quit McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Recently Viewed Presentations

  • 1572 Parliament passed a law which said that

    1572 Parliament passed a law which said that

    To travel all the way around the circumference of the world. Colony . An area ruled over by another country. Cult. A system of devotional worship directed towards a particular figure. Dearth. When food is so scarce and expensive that...
  • Base-10 Multiplication - Polk County School District

    Base-10 Multiplication - Polk County School District

    Multiplying 2-digit by 1-digit numbers with base-10 blocks. Carbs! Teachers have different nicknames for base-10blocks. This presentation uses waffles, fries and tater tots ... First, let's represent 23 with our base-10 notation. That's two tens and 3 ones. Or 2...
  • Quality of Care

    Quality of Care

    Determine when there is a need for re-evaluation. Total Quality Management (TQM) A way to continuously improve performance at every level of operation in every functional area of on organization using all available human and capital resources. Aim to reduce...
  • Global cumulative installed wind capacity has soared in the ...

    Global cumulative installed wind capacity has soared in the ...

    F7.1 Global cumulative installed wind capacity has soared in the past decade. World Development Report 2010. Source: Global Wind Energy Council 2009. Source: Global Wind Energy Council 2009.
  • Watson and the Shark - Kentucky Department of Education

    Watson and the Shark - Kentucky Department of Education

    Watson and the Shark ... Goodness Shark and Clouds above dark, murky Danger Chaos Clouds in the distance bright, glowing Hope What unity and variety is present? ... exciting scene in a faraway place and the past To convey the...
  • The Poetry Essay - Quia

    The Poetry Essay - Quia

    The Classic Essay Question: The Uni-Prompt. Read the following work carefully. Then, write a well-organized essay in which you discuss the manner in which the author/poet conveys ideas and meaning. Discuss the techniques the author/poet uses to make this passage/poem...
  • Challenges in measuring violence against Women

    Challenges in measuring violence against Women

    Challenges in measuring violence against women Dr Henrica A.F.M. (Henriette) Jansen ... There are activities for relaxation such as massage and breathing exercises and floral therapy * We found that the inexperienced women, who got the full training achieved a...
  • Splitting hives - West Plains Beekeepers Association

    Splitting hives - West Plains Beekeepers Association

    splitting hives. the why and how to. split the hive. the why. 1. to start a new hive. 2. swarm control. 3. ... remove 2 or 3 frames which have brood from the old hive and place in the new...