FTP - File Transfer Protocol Explained

File Transfer Protocol (FTP) is a protocol that is part of the TCP/IP suite. It is the standard for transferring large amounts of data from server to server and from servers to clients. There is a very good chance that you have downloaded files from FTP sites many times, though it may have seemed you were only downloading from a website. FTP allows you to transfer files over a variety of hosts with different operating systems and file systems. There are so many FTP servers on the Internet, some are private with secure logon names, other ones are public with anonymous logins.

This paper will give a very brief outline of how the FTP Protocol functions and give the basic commands used during an FTP session. Keep in mind that these commands are generally automatic and are executed by either an FTP Client application, or done via your web browser. Though these methods are generally quicker than manually connecting to an FTP, it doesn't mean we should ignore the background behind how the technology works.

The FTP Protocol uses two connections to transfer a file. Each of these connections is quite a bit different, but work in conjunction with each other. The first connection is the Control Connection, which as the name implies controls the connection in regards to initiating the data streams and executing the commands. The second type of connection is the Data Connection, this connection is the actual connection that passes the files back and forth between the client and server.

Control Connection:
The control connection starts in a normal client / server manner. The client does an active open connection to port 21 of the FTP server to establish the control connection. The server is listening on port 21 for any active queries. Please keep in mind that though the primary FTP port is designated as porn 21, many servers, especially private ones are running on non-standard ports. The control connection as I mentioned early is the connection that allows you to pass commands between the client and server. Commands that must be sent are ones like LIST, STOR, and RETR. Once you enter a command on the control connection, you initiate the data connection.

Data Connection:
The data connection is spawned each time a file is moved between the client and server. The Control connection initiates the transfer with the PORT command, this tells the server to open an active connection to the clients passive port. The port command is typically the IP address followed by a 16 bit port number. The PORT command is issued in the following fashion:

PORT 24,82,116,92,4,150

That command should spawn a response of: 200 PORT Command Successful

After the PORT command has been initiated and is successful the next command in the data connection will be issued from the control connection. As I mentioned before this is typically a LIST, RERT or STOR. I will outline the basic FTP commands below for reference.

FTP Commands (Basic):
ABOR - Abort command and any data transfers
LIST - List the directory contents
PASS password - Used during authentication of login
USER username - Used during authentication of login
QUIT - Logoff / Quit session
RETR filename - Retrieve file from server STOR filename - Send a file to the server
SYST - Show System information
TYPE - Set the type of data, for instance ASCII
PORT - n1,n2,n3,n4,n5,n6 ( 1-4 = ip address, 5-6 port data)
HELP - Will give you additional available commands and more information

Reply Codes:
Reply codes are simply confirmations of things happening. One example of a reply code was went we got "200 PORT Command Successful" there are a handful of other reply codes, though generally the main ones are as follows.

125: Data Connection Open Start Transfer
200: Command OK
221: Goodbye / Terminate Connection
252: Write Error
331: Username OK, Enter Password
425: Can't Open Data Connection
500: Syntax Error on Command
501: Syntax Error on Arguments

Client Applications:
There are many different clients for FTP, and really it's up to personal taste in the end. A couple of the major ones are CuteFTP and FlashFXP. Personally I use FlashFXP when I'm in the Windows Environment. Just go to a freeware website or search on the search engines for a FTP Client and try a few out!

Summary of FTP:
The File Transfer Protocol is a wonderful and useful standard that has helped move data around the world safely and reliably for years. Everyone uses it from uploading their website to their web server, backing up their data to an off-site location, sharing their pictures with friends, or disseminating large data files for scientific research!

For even more information on the FTP, check out RFC 959.

Ken Dennis
http://KenDennis-RSS.homeip.net/

In The News:


Google News
Updated : Thu, 28 Aug 2008 18:25:07 GMT

Safina Rolls Into Third Round - New York Times


Sportinglife.com
Safina Rolls Into Third Round
New York Times - 1 hour ago
By Ray Krueger Dinara Safina, the sixth seed and picked by some to win the tournament, defeated Roberta Vinci, 6-4, 6-3, to advance to the third round of the US Open today at Ashe Stadium.
Silver Safina sails through (Extra) Monsters and Critics.com
Russia's Dinara Safina Advances to Third Round at US Open Bloomberg
BBC Sport - Reuters.uk - CBC.ca - Sportinglife.com
all 56 news articles

Publ.Date : Thu, 28 Aug 2008 17:21:49 GMT

Jersey beach closed after reports of medical waste find - Allentown Morning Call


Cape May County Herald
Jersey beach closed after reports of medical waste find
Allentown Morning Call - 51 minutes ago
Another beach in southern New Jersey has been closed today after receiving reports of more medical waste found on the beach -- this time in Ocean City.
Three Ocean City beaches closed due to medical waste Philadelphia Inquirer
Medical Waste Shuts Down Ocean City Beach CBS 3
6abc.com - MyFox Philadelphia - The Star-Ledger - NJ.com - NBC 10.com
all 100 news articles

Publ.Date : Thu, 28 Aug 2008 17:33:19 GMT

Coen brothers' spy comedy divides Venice critics - Reuters


guardian.co.uk
Coen brothers' spy comedy divides Venice critics
Reuters - 1 hour ago
By Mike Collett-White VENICE (Reuters) - The Coen brothers' latest film, the madcap comedy "Burn After Reading," has sharply divided the critics, unlike last year's acclaimed "No Country For Old Men" which won four Oscars including best picture.
Video: Clooney, Pitt 'Burn' Down Venice AssociatedPress
Pitt and Clooney at Venice debut BBC News
E! Online - Hollywood Reporter - /FILM - People Magazine
all 1,983 news articles

Publ.Date : Thu, 28 Aug 2008 16:55:11 GMT

Quest for a Thriller To Make You Think - Washington Post


Boston Globe
Quest for a Thriller To Make You Think
Washington Post - 3 hours ago
By Ellen McCarthy That Steve Martin -- the "Wild and Crazy" guy from "The Jerk" and "Father of the Bride.
New Movies RedOrbit
Review: 'Traitor' (Don Cheadle) Daily Camera
The Plain Dealer - cleveland.com - Explore Howard County - San Jose Mercury News - ACED Magazine
all 328 news articles

Publ.Date : Thu, 28 Aug 2008 14:47:20 GMT

Veoh Safe Harbor ruling could help YouTube in Viacom battle - Ars Technica


Ars Technica
Veoh Safe Harbor ruling could help YouTube in Viacom battle
Ars Technica - 1 hour ago
By Nate Anderson | Published: August 28, 2008 - 11:25AM CT Do user-generated content (UGC) companies like YouTube and Veoh qualify for "safe harbor" protection under the DMCA, or can they be held financially liable for not cracking down harder on ...
Judge grants Veoh DMCA safe harbor in copyright suit BetaNews
Judge: Veoh's Transcoding Is Not Piracy PC Magazine
Wired News - Slashdot - TechSpot - Multichannel News
all 66 news articles

Publ.Date : Thu, 28 Aug 2008 16:31:30 GMT

Russia trifles with genocide - Christian Science Monitor


ABC News
Russia trifles with genocide
Christian Science Monitor - 43 minutes ago
Of Russia's many excuses for invading Georgia, its claim of preventing genocide has set back a new idea in human history. In 2005, the UN said the international community must intervene in countries suffering mass atrocities - putting mercy before ...
Video: The Georgian crisis france24english
Georgia urges OSCE to deal with Georgian-Russian conflict Xinhua
International Herald Tribune - Voice of America - The Associated Press - Reuters AlertNet
all 5,630 news articles

Publ.Date : Thu, 28 Aug 2008 17:42:07 GMT

Number of uninsured Americans drops - Bizjournals.com


The Money Times
Number of uninsured Americans drops
Bizjournals.com - 1 hour ago
The number of Americans without health insurance has dropped for the first time in several years, according to new figures released by the US Census Bureau.
WellPoint spent $890000 on lobbying in 2Q Forbes
Number Of Americans Without Health Insurance Drops eFluxMedia
InjuryBoard.com - Renal Business Today - TPM - CBS News
all 335 news articles

Publ.Date : Thu, 28 Aug 2008 17:01:29 GMT

Affiliate Data Feeds
RSS Software


PARLOT::Ebooks, Scripts, Websites, and more...

Adsense websites

COOKIES - What Are They!!

Cookies, not the kind that Mom makes, but the computer... Read More

Cut Through the Hype and Make the Right Digital Camera Comparisons

There are soooo many choices. With all the styles and... Read More

EDTV vs HDTV

Confused by EDTV vs HDTV? We don't blame you. The... Read More

How to Place Home Theater Speakers

You have your television and home theater receiver; you just... Read More

Healthy Webmasters Choose Ergonomic Computer Products

Webmasters usually sit at their computers much longer in a... Read More

Learn the Lost Art of Touch Typing

Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More

5 Minute Guide to Video Editing for Beginners

Getting started with video editing is very simple you only... Read More

How To Recognize The Telltale Signs Of Spyware

Spyware is the software that collects information about your online... Read More

Computer Viruses are Bad Luck

OK, so you caught a computer virus and your system... Read More

Can Movie Theatres Compete with Home HD TV in the Future?

The battle is heating up for market share, home movie... Read More

How To Become A True CCNA

I've worked my way from the CCNA to the CCIE,... Read More

Help, I Need a New HDTV! (Part 4 of 5)

Feeling overwhelmed in selecting a new TV? With all the... Read More

Be Prepared in the Event Computer Disaster Strikes

ComputersBusinesses and individuals alike have all grown to rely on... Read More

A Peek Into the Near Future of Electronics Technology

How long do you think DVDs have around? 20 years?... Read More

What Does That Error Message Really Mean?

Surf the 'Net for about 10 minutes and chances rate... Read More

Flash Memory, Part I: MMC and SD

MMC and SDFlash memory is available in so many formats... Read More

If You are the Only User on Your Windows XP Computer, Do You Think One User Account Is Enough?

I am going to assume that you are running windows... Read More

FTP - File Transfer Protocol Explained

File Transfer Protocol (FTP) is a protocol that is part... Read More

The Advantages of Portable MP3 Players

With their solid-state technology, compact size, and abundant memory, portable... Read More

Help, I Need a New HDTV! (Part 5 of 5)

Feeling overwhelmed in selecting a new TV? With all the... Read More

Make Windows XP Run Faster!

A friend told me: "My computer startup seems to be... Read More

Upgrading Your PC for Non-experts

IntroOne of the big advantages of PCs over earlier types... Read More

Freezing - Time To Warm Up Your PC

Freezing is also known as crashing or hanging. It's frustrating.... Read More

Use Your Computer For Your Entertainment Needs

By using your computer today you can find a lot... Read More

Basic Diagnosis Guidelines for Your PC

Simone is exasperated. She has to work on her university... Read More