|
|
|
|
|
|
|
|
|
|
|
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/




Wind Chimes and more... Passwords have a strange dual nature. The stronger and safer... Read More With the new technology used to transfer information to from... Read More Computers are available in different shapes, sizes and weights, due... Read More Understanding digital camera prices makes finding the best camera value... Read More Feeling overwhelmed in selecting a new TV? With all the... Read More First and foremost before I begin my ranting it is... Read More File permissions are one of the strengths that the Unix... Read More A friend told me: "My computer startup seems to be... Read More Up until the recent past, those who wanted to take... Read More Feeling overwhelmed in selecting a new TV? With all the... Read More In my humble opinion nothing makes a long trip easier... Read More Having two operating systems is not as difficult as many... Read More Nothing is worse than having to negotiate all kinds of... Read More When you think of a help desk, what do you... Read More Those small USB drives have so many names, pocket drives,... Read More Everywhere you look today people are listening to personal audio... Read More Since the DOS days, batch files have been one of... Read More The registry is where the computer stores information about the... Read More You probably heard of the new Firefox browser version 1.0... Read More Unless you place your faith in internal search engine software... Read More With renting methods such as online DVD rental and pay-per-view,... Read More When you turn on your computer, does it act like... Read More ComputersBusinesses and individuals alike have all grown to rely on... Read More I recently got an e-mail asking about virtual memory. The... Read More You will need the following:1. 1.44MB FDD (floppy)2. NVFLASH utility... Read More
Windchimes
for great gifts!
Passwords and the Human Factor
SmartCar Memory Stick for LapTop Transfer Data
Classification of Computers
Do Higher Digital Camera Prices Mean Better Cameras?
Help, I Need a New HDTV! (Part 1 of 5)
Computer Geeks and Garden Gnomes
Setting File Permissions On A Unix Server
Make Windows XP Run Faster!
Portable Technology: Getting to Know the Treo
Help, I Need a New HDTV! (Part 4 of 5)
Portable DVD Players - Things To Know
How To Have Two (Multiple) Copies Of Windows
Bluetooth Headphones For Your PDA
The Help Desk
USB Drives - What to Look For in a USB Device
Customize Your Portable Player with an MP3 Player Accessory
Compile .BAT Files into Native Windows Applications (.EXE)
Keeping the Windows Registry Operational
The Benefits of the New Firefox Browser
Put Order and Information into File Names
Is Online DVD Rental or Pay-Per-View the Best Way to Get Your Movies?
The Newbies Guide to Personal Computer Maintenance
Be Prepared in the Event Computer Disaster Strikes
Virtual Memory - What is It?
Flash Your nVidia Video Cards BIOS
Plasma and LCD TVs are the latest trend in home... Read More
Perhaps not yet, but the handwriting might be on the... Read More
I recently took a good look at what was keeping... Read More
File Transfer Protocol (FTP) is a protocol that is part... Read More
I would like to tell you about a magic home.... Read More
Do you know how many fonts are currently installed on... Read More
Do you use Windows standard uninstall feature? How do you... Read More
Cameras: still known for taking pictures but assumed as digital... Read More
Sometimes your PC will start acting strange for no apparent... Read More
Not so many years ago, homes across the country watched... Read More
1. Empty the Temp directory regularly. To do this, make... Read More
JVC developed and used a high-performance reflective film to produce... Read More
I have always been interested in computers, but in the... Read More
If you ask most people what frustrates them most about... Read More
For six years, my Samsung PC 13.8 inch SyncMaster conventional... Read More
Computer related terminology could sometimes be daunting to newcomers. These... Read More
Many computer users are worried about their computer's performance. After... Read More
Peoples' private information needs to stay private, even after it... Read More
Having two operating systems is not as difficult as many... Read More
Apache, MysQL and PHP for Windows could be a nice... Read More
How long do you think DVDs have around? 20 years?... Read More
Projectors have come a long way in the past few... Read More
When you turn on your computer, does it act like... Read More
Save money. Save 10-15% on utility bills per month. Work... Read More
You use Ctrl+Alt+Del to see what's running on your PC,... Read More
Personal Technology |