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.|
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Difference between Active Attack and Passive Attack
- Difference between Active Matrix LCD and Passive Matrix LCD
- Active and Passive attacks in Information Security
- Difference between :focus and :active selector
- Introduction of Active Directory Domain Services
- Difference between ELT and ETL
- Difference between HLP and PCP
- Difference between LAN and WAN
- Difference between WCF and Web API
- Difference between PIP and PCP
- Difference between USB 2.0 and USB 3.0
- Difference between PIP and HLP
- Difference between CD-R and CD-RW
- Difference between LAN, MAN and WAN
- Web 1.0, Web 2.0 and Web 3.0 with their difference
- Difference between MP4 and MP3
- Difference between IoE and IoT
- Difference between RAM and ROM
- Difference between CRT and LCD
- Difference between SDN and NFV
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.