FTP stands for File Transfer Protocol. It is an application layer protocol which transfers files over a network. It uses TCP based service.
FTP works in two different modes:
1. Active FTP :
In the active mode, the client connects on a random port for incoming data connections from the server. Client again sends next port to FTP server which is acknowledged on command channel.
2. Passive FTP :
In the passive mode, the client uses the control connection to send a PASV signal to the server. FTP server sends back IP address and server port number.
Here are few differences between Active and Passive FTP:
|Active FTP||Passive FTP|
|In active FTP, client establishes the command channel and the server establishes the data channel.||In passive FTP, both the command channel and the data channel are established by the client.|
|Active FTP provides security to the FTP server.||Passive FTP does not provide security to the FTP server.|
|Active FTP may cause problems because of firewalls.||Passive FTP does not have connection issues from firewalls.|
|Active mode is not used as a default mode of a browser.||Passive mode is used as a default mode of a browser.|
|FTP client acknowledges on data channel.||FTP server acknowledges on data channel.|
|Client sends random port number to the server.||Client sends PASV command to the server.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between Active Attack and Passive Attack
- Difference between Active Matrix LCD and Passive Matrix LCD
- Difference between Active Transducer and Passive Transducer
- Active and Passive attacks in Information Security
- Difference between TELNET and FTP
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Difference between FTP and TFTP
- What are the differences between HTTP, FTP, and SMTP?
- File Transfer Protocol (FTP) in Application Layer
- FTP Full Form
- Difference between :focus and :active selector
- Gigabit Passive Optical Networks (GPON) Fundamentals
- Introduction of Active Directory Domain Services
- Active Directory PenTesting
- Difference and Similarities between PHP and C
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference between Stop and Wait protocol and Sliding Window protocol
- Similarities and Difference between Java and C++
- Difference between Yaacomo and and XAP
- Difference between VoIP and and POTS
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.