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/
Related News
Tech Mahindra’s future, sans BT - Livemint
Tech Mahindra’s future, sans BTLivemint, India -4 hours agoHere are some figures: on 23 June 2006, personal loans constituted 27.33% of total non-food credit outstanding, while credit to the infrastructure sector ... |
TECH BLOG One Less Windows User - LinuxInsider.com
TECH BLOG One Less Windows UserLinuxInsider.com, CA -12 hours agoBy Jason Z. Cohen After nearly five years, I needed to update my personal computer. My old Dell Inspiron has long since been rendered quaint by advances in ... |
Security With Advanced Technology and PepperBall Technologies ... - CNNMoney.com
Here, there, everywhere . . . where am I? - Atlanta Journal Constitution
Here, there, everywhere . . . where am I?Atlanta Journal Constitution, USA -9 hours agoMy thoughts are increasingly disjointed as I wind down my final few days covering Tech as there are a lot of loose ends to tie up professionally, etc., ... |
Tech Weekly: Windows 7 and location based services - guardian.co.uk
Jews aim to use tech tactics to counter anti-Obama 'rumor mill' - Ha'aretz
N-Power announces Tech Pragati scholarships - Economic Times
N-Power announces Tech Pragati scholarshipsEconomic Times, India -8 hours agoScholarships upto 50% of the course fees will be awarded to meritorious students on the basis of their performance in an aptitude test and a personal... |
Personal Tech: iPhone just got smarter - Salt Lake Tribune
Personal Tech: iPhone just got smarterSalt Lake Tribune, United States -Aug 19, 2008By Vince Horiuchi "Crash Kart,"a Mario Kart-like driving game, is shown running on Apple's new iPhone 3G. With all the hoopla over the iPhone 3G and its new ... |
McCain Outlines Technology Policy - Broadcasting & Cable
McCain Outlines Technology PolicyBroadcasting & Cable, NY -8 hours agoThe tech policy section of the site also suggests McCain will favor personal responsibility and technological fixes for controlling content. ... |
Personal Tech: ABCs of online security - Salt Lake Tribune
Personal Tech: ABCs of online securitySalt Lake Tribune, United States -Aug 12, 2008Boulder, Colorado - More than 18 million college students will head back to school this fall and nearly every one of them owns a personal computer. ... |
|
|
 |
 |
 |
RELATED ARTICLES
Best PC Pocket GPS
Stop Getting Lost
Linux Power Tools - Great Tools to Make System Administration Easy
World War II - Germany decided to attack Poland.
Poland had many great warriors. They all prepared to fight the Germans.
They were all ready with the best armor, the best and well trained
horses, and ofcourse the best weapons , swords , spears .... And
the Pols were brave and were ready to give their lives for their
country. Sadly they did just that... give their lives. The Germans
had tanks... It is very important to have the right weapons when one
goes for a war.
Emulation Manual - A Complete Guide on How to Change Your Windows XP to Mac OS X
Introduction
Consumer Electronic Information: The Basics of the DLP Projector
Projectors have come a long way in the past few decades.
The desktop fossils that were once used to show home movies
or classroom filmstrips are a thing of the past. With
today's technology, you can now experience a projected
movie that emulates a full-blown theater flick, without the
time, effort and hassle of standing in line at the local
cinema.
Simple Overview Of Computer
Computer is an electronic machine work on the instructions of human being. In other words you have to input data to get your required output. Sure it has its own intelligence which is hidden from a user, that help in accurate and speedy calculations.
More Cool Web Tricks
If you ask most people what frustrates them most about the Internet, many of them will tell you "It's the little things!"
How to Set Up Simple File Sharing WinXP
The first step is: Start > My Documents
What Exactly are Screensavers? - part I
After reading this good article you will know some important information about screensavers and their history. You will find out how screensavers are different from other applications and what advantages you'll have if you use them. If you have a laptop or a notebook you can also find useful things.
Palm PC critique
I met an entrepreneur who hole heartedly disagree with an article in Advertising Age by Bradley Johnson that Palm Pilot can keep their market share through brand name. We discussed RIMM Research in Motion and my stock in that company and I defended the wireless venue, but he went into a tirade, luckily I used a digital recorder and got most of it; basically here is his critique:
Wordpress Plugins
Maybe you always wanted a feature that hasn't been available in the latest release of Wordpress. What you can do is either install a 3rd party plugin or write your own custom code to extend the features of Wordpress.
Looking For an MP3 Player?
If you don't have an mp3 player, and even if you do, you should check out all the new stuff that's going on. I'm hoping this article will give you some idea of what kind of mp3 player you want and some tips on what to look for in an mp3 player.
4 Computer Money-saving Tips
Tip #1 -- Rebates:
A rebate is not always a bargain. Computers with rebates are often close to being discontinued. You may pick up a good deal or purchase technology that's about to become yesterday's news. What's more, stores will often package computers with a bunch of free items to make it look like you're getting more value. Chances are the extras are either poor quality or items you're unlikely to use. Also, they're counting on you to not redeem your rebate, a very common occurrence.
Help, I Need a New HDTV! (Part 4 of 5)
Feeling overwhelmed in selecting a new TV? With all the choices these days, you may feel like, "Where do I start?!"
How To Become A True CCNA
I've worked my way from the CCNA to the CCIE, and along the way I've conducted job interviews and casual conversations with dozens of CCNAs and CCNA candidates. Believe me, people who "sneak by" the CCNA exam by braindumps, memorization, and never touching a router or switch are QUICKLY found out in job interviews and on the job.
Internet Explorer Shortcuts for Mouse-o-phobes
If you're like me, you occasionally find the ubiquitous mouse inconvenient. Here are keyboard shortcuts for Microsoft's Internet Explorer (I.E.), the default browser for most personal computers in the business environment.
A Beginners Guide to Avoiding Viruses
"Aaaaaahhhhhh! I've been invaded by a virus!" Getting a virus means getting sick and no one in their right mind wants to be ill. Well, now that computers have become our close friends, it's a shock to learn that foreign bodies too can invade them with malicious intent. No, your computer doesn't get a runny nose or diarrhea. This is a sickness that stops your friend from functioning properly, sick in bed, incapacitated.
Use Your Computer For Your Entertainment Needs
By using your computer today you can find a lot of different music and movie programs. From downloading music and movies directly from the internet to buying subscriptions, joining clubs, and even renting, all from the comfort of your home.
5 Minute Guide to Video Editing for Beginners
Getting started with video editing is very simple you only need a few items and you can be producing quality movies at home that you will be able to enjoy for many years to come. Maybe even produce a hit Hollywood movie.
Faster Browsing Tips
IF WE say that it was mainly because of the Windows operating system that a Computer could become a personal computer it would not be an exaggeration. The revolution is still on. Windows is far beyond what a common man presently knows and uses.
Why Build Your Own Computer System
Have you ever thought about building your own computer system? Maybe you've heard friends talking about doing this sort of thing, but you were never sure what was involved. This article attempts to answer two questions. First, why would you want to build your own computer system? Secondly, how hard is it to do this?
|