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/
![]() Google News Updated : Thu, 28 Aug 2008 18:25:07 GMT Safina Rolls Into Third Round - New York Times
New York Times - 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) Russia's Dinara Safina Advances to Third Round at US Open Publ.Date : Thu, 28 Aug 2008 17:21:49 GMT Jersey beach closed after reports of medical waste find - Allentown Morning Call
Allentown Morning Call - 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 Medical Waste Shuts Down Ocean City Beach Publ.Date : Thu, 28 Aug 2008 17:33:19 GMT Coen brothers' spy comedy divides Venice critics - Reuters
Reuters - 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 Pitt and Clooney at Venice debut Publ.Date : Thu, 28 Aug 2008 16:55:11 GMT Quest for a Thriller To Make You Think - Washington Post
Washington Post - By Ellen McCarthy That Steve Martin -- the "Wild and Crazy" guy from "The Jerk" and "Father of the Bride. New Movies Review: 'Traitor' (Don Cheadle) Publ.Date : Thu, 28 Aug 2008 14:47:20 GMT Veoh Safe Harbor ruling could help YouTube in Viacom battle - Ars Technica
Ars Technica - 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 Judge: Veoh's Transcoding Is Not Piracy Publ.Date : Thu, 28 Aug 2008 16:31:30 GMT Russia trifles with genocide - Christian Science Monitor
Christian Science Monitor - 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 Georgia urges OSCE to deal with Georgian-Russian conflict Publ.Date : Thu, 28 Aug 2008 17:42:07 GMT Number of uninsured Americans drops - Bizjournals.com
Bizjournals.com - 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 Number Of Americans Without Health Insurance Drops Publ.Date : Thu, 28 Aug 2008 17:01:29 GMT RSS Software |
PARLOT::Ebooks, Scripts,
Websites, and more... Cookies, not the kind that Mom makes, but the computer... Read More There are soooo many choices. With all the styles and... Read More Confused by EDTV vs HDTV? We don't blame you. The... Read More You have your television and home theater receiver; you just... Read More Webmasters usually sit at their computers much longer in a... Read More Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More Getting started with video editing is very simple you only... Read More Spyware is the software that collects information about your online... Read More OK, so you caught a computer virus and your system... Read More The battle is heating up for market share, home movie... Read More I've worked my way from the CCNA to the CCIE,... Read More Feeling overwhelmed in selecting a new TV? With all the... Read More ComputersBusinesses and individuals alike have all grown to rely on... Read More How long do you think DVDs have around? 20 years?... Read More Surf the 'Net for about 10 minutes and chances rate... Read More MMC and SDFlash memory is available in so many formats... Read More I am going to assume that you are running windows... Read More File Transfer Protocol (FTP) is a protocol that is part... Read More With their solid-state technology, compact size, and abundant memory, portable... Read More Feeling overwhelmed in selecting a new TV? With all the... Read More A friend told me: "My computer startup seems to be... Read More IntroOne of the big advantages of PCs over earlier types... Read More Freezing is also known as crashing or hanging. It's frustrating.... Read More By using your computer today you can find a lot... Read More Simone is exasperated. She has to work on her university... Read More
Adsense
websites
COOKIES - What Are They!!
Cut Through the Hype and Make the Right Digital Camera Comparisons
EDTV vs HDTV
How to Place Home Theater Speakers
Healthy Webmasters Choose Ergonomic Computer Products
Learn the Lost Art of Touch Typing
5 Minute Guide to Video Editing for Beginners
How To Recognize The Telltale Signs Of Spyware
Computer Viruses are Bad Luck
Can Movie Theatres Compete with Home HD TV in the Future?
How To Become A True CCNA
Help, I Need a New HDTV! (Part 4 of 5)
Be Prepared in the Event Computer Disaster Strikes
A Peek Into the Near Future of Electronics Technology
What Does That Error Message Really Mean?
Flash Memory, Part I: MMC and SD
If You are the Only User on Your Windows XP Computer, Do You Think One User Account Is Enough?
FTP - File Transfer Protocol Explained
The Advantages of Portable MP3 Players
Help, I Need a New HDTV! (Part 5 of 5)
Make Windows XP Run Faster!
Upgrading Your PC for Non-experts
Freezing - Time To Warm Up Your PC
Use Your Computer For Your Entertainment Needs
Basic Diagnosis Guidelines for Your PC
Have you ever thought about building your own computer system?... Read More
The technological horizon has always got something new to offer,... Read More
Time is money. And when you constantly have to divide... Read More
How can you compare mp3 players to be sure you're... Read More
On 21 August 2003 Symantec Security Response upgraded the W32.SOBIG.F... Read More
Here are some tips on how to use screensavers:First of... Read More
Flow Text Around a GraphicQuestion: I have inserted a photo... Read More
About mail-mergingMail-merging is the process of merging variable data and... Read More
Heading off on vacation soon?Then perhaps you're tempted to take... Read More
Tech support tells me to type 'regedt32' as opposed to... Read More
"Automated Testing" is automating the manual testing process currently in... Read More
For those seeking to buy their first flat panel TV... Read More
I have always been interested in computers, but in the... Read More
Projectors have come a long way in the past few... Read More
It seems like fast never quite rates fast enough.No matter... Read More
Simone is exasperated. She has to work on her university... Read More
If you're a computer expert, you'll probably already know about... Read More
We all enjoy our favorite screensavers but in the same... Read More
Stimulus thru Caffiene or Visual Input?It appears that the Mobi... Read More
Feeling overwhelmed in selecting a new TV? With all the... Read More
Computers are supposed to speed up our productivity?to help us... Read More
Upgrading your processor will always speed up your computer, but... Read More
CCNA FAQQ. What exams do I have to take to... Read More
JPEG, GIFF/JIFF, BMP, and TIFF are the most commonly used... Read More
All over the world, people carry with them walkmans and... Read More
Personal Technology |