Explain FTP (File Transfer Protocol): Working, Types, Architecture and Uses
1. Introduction (परिचय)
Internet के माध्यम से एक Computer से दूसरे Computer में Data और Files Transfer करना Network Communication का एक महत्वपूर्ण हिस्सा है। जब किसी User को अपने Computer से किसी Remote Server पर Files Upload करनी होती हैं या Server से Files Download करनी होती हैं, तब इसके लिए विभिन्न Network Protocols का उपयोग किया जाता है।
इन्हीं महत्वपूर्ण Protocols में से एक FTP (File Transfer Protocol) है। FTP एक Standard Network Protocol है, जिसका उपयोग TCP/IP Network के माध्यम से एक Computer से दूसरे Computer में Files Transfer करने के लिए किया जाता है।
उदाहरण के लिए, जब कोई Website Developer अपने Local Computer से HTML, CSS, JavaScript और Image Files को Web Hosting Server पर Upload करता है, तब FTP का उपयोग किया जा सकता है।
इस लेख में FTP की Definition, Architecture, Working, Types, Commands, Advantages, Disadvantages और Applications को विस्तार से समझेंगे।
2. Definition of FTP (FTP की परिभाषा)
FTP (File Transfer Protocol) एक Standard Application Layer Protocol है, जिसका उपयोग TCP/IP Network पर दो Computers के बीच Files को Upload, Download और Manage करने के लिए किया जाता है।
FTP Client-Server Architecture पर कार्य करता है, जिसमें एक Computer FTP Client के रूप में और दूसरा Computer FTP Server के रूप में कार्य करता है।
FTP सामान्यतः TCP (Transmission Control Protocol) का उपयोग करता है, जो Reliable और Connection-Oriented Data Transmission प्रदान करता है।
3. FTP Architecture (FTP की संरचना)
FTP Client-Server Architecture पर आधारित होता है। इसमें मुख्य रूप से दो Systems होते हैं:
3.1 FTP Client
FTP Client वह Software या Application होता है, जिसकी सहायता से User FTP Server से Connect करता है।
FTP Client के माध्यम से User निम्नलिखित कार्य कर सकता है:
FTP Server से Connection स्थापित करना।
Username और Password के माध्यम से Login करना।
Server पर Files Upload करना।
Server से Files Download करना।
Files और Directories की List देखना।
Files को Rename और Delete करना।
Examples: FileZilla Client, WinSCP और Command-Line FTP Client।
3.2 FTP Server
FTP Server एक Remote Computer या Server Software होता है, जो FTP Protocol के माध्यम से Clients को File Transfer Services प्रदान करता है।
FTP Server के प्रमुख कार्य हैं:
Client की Connection Request स्वीकार करना।
User Authentication करना।
File Upload और Download की अनुमति देना।
Files और Directories को Manage करना।
Access Permissions को Control करना।
3.3 FTP Control Connection
Control Connection का उपयोग FTP Client और FTP Server के बीच Commands तथा Responses का आदान-प्रदान करने के लिए किया जाता है।
इसका सामान्यतः उपयोग TCP Port 21 के माध्यम से किया जाता है।
उदाहरण के लिए, जब Client Server को Login करने या किसी File की Directory List देखने का Command भेजता है, तब वह Control Connection के माध्यम से भेजा जाता है।
3.4 FTP Data Connection
Data Connection का उपयोग वास्तविक Data Transfer के लिए किया जाता है।
उदाहरण के लिए:
File Upload करना।
File Download करना।
Directory Listing प्राप्त करना।
FTP में Control Connection और Data Connection अलग-अलग होते हैं। यही इसकी Architecture की एक महत्वपूर्ण विशेषता है।
4. FTP Architecture Diagram

FTP Architecture में Client और Server के बीच दो प्रकार के Connections होते हैं:
Control Connection: Commands और Responses के आदान-प्रदान के लिए उपयोग होता है।
Data Connection: Files और Directory Listing Transfer करने के लिए उपयोग होता है।
Control Connection सामान्यतः Port 21 पर स्थापित होता है। Data Connection Active और Passive Mode के अनुसार अलग-अलग तरीके से स्थापित किया जाता है।
5. Working of FTP (FTP कैसे कार्य करता है?)
FTP की Working को समझने के लिए यह जानना आवश्यक है कि FTP Client और FTP Server किस प्रकार एक-दूसरे के साथ Communication करते हैं।
FTP निम्नलिखित Steps में कार्य करता है:
Step 1: Establishing Connection
सबसे पहले User अपने Computer पर FTP Client Software Open करता है और FTP Server का IP Address या Hostname Enter करता है।
इसके बाद Client, Server के TCP Port 21 पर Control Connection स्थापित करता है।
Step 2: User Authentication
Connection स्थापित होने के बाद FTP Server Client से Login Credentials मांग सकता है।
User सामान्यतः Username और Password Enter करता है।
Server Credentials Verify करके User को Access प्रदान करता है या Login Request Reject कर देता है।
ध्यान दें कि कुछ FTP Servers Anonymous Access भी प्रदान करते हैं, जिसमें विशेष Guest Account के माध्यम से Login किया जा सकता है।
Step 3: Sending FTP Commands
Login सफल होने के बाद Client FTP Server को Commands भेजता है।
इन Commands की सहायता से User विभिन्न Operations कर सकता है, जैसे:
Directory बदलना।
Files की List देखना।
File Upload करना।
File Download करना।
File Delete करना।
Step 4: Establishing Data Connection
जब किसी File को Transfer करना होता है, तब FTP Client और Server के बीच Data Connection स्थापित किया जाता है।
यह Connection Active Mode या Passive Mode के अनुसार बनाया जाता है।
Step 5: File Transfer
Data Connection स्थापित होने के बाद वास्तविक File Transfer शुरू होता है।
यदि Client Server पर File भेजता है, तो इसे Uploading कहते हैं।
यदि Client Server से File प्राप्त करता है, तो इसे Downloading कहते हैं।
Step 6: Closing Connection
File Transfer पूरा होने के बाद Data Connection बंद कर दिया जाता है।
जब User FTP Session समाप्त करता है, तब Control Connection भी बंद कर दिया जाता है।
इस प्रकार FTP के माध्यम से Files का Transfer पूरा होता है।
6. Types of FTP Connection Modes
FTP मुख्य रूप से दो Connection Modes में कार्य करता है:
6.1 Active FTP Mode
Active Mode में FTP Client पहले Server के साथ Control Connection स्थापित करता है।
इसके बाद Client Server को बताता है कि वह किस Port पर Data Connection प्राप्त करेगा।
Server अपने Data Port (परंपरागत रूप से TCP Port 20) से Client के बताए गए Port पर Data Connection Initiate करता है।
Working:
Client Server के Port 21 पर Control Connection बनाता है।
Client अपना Data Port Server को बताता है।
Server अपने Port 20 से Client के Data Port पर Connection स्थापित करता है।
इसके बाद File Transfer शुरू होता है।

6.2 Passive FTP Mode
Passive Mode में Data Connection भी Client द्वारा Initiate किया जाता है।
इसमें Server Client को एक Data Port Number प्रदान करता है। इसके बाद Client उस Port पर नया Connection स्थापित करता है।
Working:
Client Server के Port 21 पर Control Connection बनाता है।
Client Passive Mode के लिए Request भेजता है।
Server एक Data Port Number प्रदान करता है।
Client Server के बताए गए Port पर Data Connection स्थापित करता है।
File Transfer शुरू होता है।

7. FTP Commands (FTP के महत्वपूर्ण Commands)
FTP Command | Description |
|---|---|
USER | Username भेजने के लिए |
PASS | Password भेजने के लिए |
LIST | Files और Directories की List देखने के लिए |
PWD | Current Working Directory देखने के लिए |
CWD | Directory बदलने के लिए |
RETR | Server से File Download करने के लिए |
STOR | Server पर File Upload करने के लिए |
DELE | File Delete करने के लिए |
MKD | नई Directory बनाने के लिए |
RMD | Directory Remove करने के लिए |
QUIT | FTP Session समाप्त करने के लिए |
इन Commands की सहायता से FTP Client Server पर Files और Directories को Manage कर सकता है।
8. Types of FTP (FTP के प्रकार)
FTP से संबंधित प्रमुख प्रकार और सेवाएँ निम्नलिखित हैं:
8.1 Standard FTP
Standard FTP में File Transfer और Login के लिए TCP Connection का उपयोग किया जाता है।
इसमें Authentication और Data Transfer सामान्य FTP Protocol के अनुसार होते हैं। पारंपरिक FTP में Username, Password और Data Encryption के बिना Transfer हो सकते हैं।
8.2 Anonymous FTP
Anonymous FTP एक ऐसी सुविधा है, जिसमें User को व्यक्तिगत Username और Password के बिना Server से Public Files Download करने की अनुमति मिलती है।
इसमें सामान्यतः anonymous Username का उपयोग किया जाता है।
इसका उपयोग Public Software Repositories और Public File Archives में किया जा सकता है।
8.3 FTPS (FTP Secure)
FTPS, FTP का Secure Version है, जिसमें SSL/TLS Encryption का उपयोग करके Control Connection और Data Connection को सुरक्षित किया जाता है।
इससे Network पर भेजे जाने वाले Credentials और Data की Confidentiality सुरक्षित रखने में सहायता मिलती है।
8.4 SFTP (SSH File Transfer Protocol)
SFTP का पूरा नाम SSH File Transfer Protocol है।
यह SSH (Secure Shell) पर आधारित एक अलग File Transfer Protocol है। इसका उपयोग Secure तरीके से Files Upload और Download करने के लिए किया जाता है।
SFTP सामान्यतः TCP Port 22 का उपयोग करता है।
Important: FTPS और SFTP दोनों Secure File Transfer के लिए उपयोग होते हैं, लेकिन दोनों एक ही Protocol नहीं हैं।
9. Advantages of FTP (FTP के लाभ)
FTP के प्रमुख लाभ निम्नलिखित हैं:
1. File Transfer: FTP के माध्यम से एक Computer से दूसरे Computer में आसानी से Files Transfer की जा सकती हैं।
2. Large File Support: FTP का उपयोग बड़ी Files Transfer करने के लिए भी किया जा सकता है।
3. Reliable Transmission: TCP के उपयोग के कारण Data Transmission में Reliability प्राप्त होती है।
4. File Management: FTP के माध्यम से Files और Directories को Upload, Download, Rename और Delete किया जा सकता है, यदि उचित Permissions उपलब्ध हों।
5. Multiple File Transfer: FTP Client Software की सहायता से एक से अधिक Files Transfer की जा सकती हैं।
6. Cross-Platform Support: FTP विभिन्न Operating Systems जैसे Windows, Linux और macOS पर उपलब्ध है।
10. Disadvantages of FTP (FTP की सीमाएँ)
FTP के कुछ प्रमुख नुकसान निम्नलिखित हैं:
1. Lack of Encryption: Traditional FTP में Username, Password और Data सामान्यतः Plain Text में Transfer होते हैं।
2. Security Risk: Encryption न होने के कारण Network Traffic को Intercept करके Credentials और Data प्राप्त किए जा सकते हैं।
3. Firewall Issues: Active और Passive Modes में Data Connections के कारण Firewall Configuration की आवश्यकता हो सकती है।
4. Configuration Complexity: कुछ परिस्थितियों में FTP Server और Firewall को Configure करना जटिल हो सकता है।
5. Not Suitable for Sensitive Data: सामान्य FTP का उपयोग Confidential या Sensitive Information Transfer करने के लिए सुरक्षित विकल्प नहीं है।
11. Applications of FTP (FTP के उपयोग)
FTP का उपयोग विभिन्न क्षेत्रों में किया जाता है:
Website Development: Website की HTML, CSS, JavaScript और Image Files को Web Hosting Server पर Upload करने के लिए।
File Sharing: एक Computer से दूसरे Computer में Files Share करने के लिए।
Software Distribution: Software और अन्य Public Files को Download करने की सुविधा प्रदान करने के लिए।
Server Management: Remote Server पर Files और Directories को Manage करने के लिए।
Data Backup: Files को Remote Server पर Store करने के लिए, जहाँ उपयुक्त Security और Backup व्यवस्था उपलब्ध हो।
Educational Institutions: Educational Resources और Study Materials को Share करने के लिए।
