Font size
WorksheetsFile Transfer Protocol (FTP)
Total questions: 14
Worksheet time: 9mins
Which use cases would you solve with FTP?
Sharing a 12GB medical data file 🚚
Exchanging some words with your friend in Japan 🇯🇵
Loading a website into your browser
Doing a backup of your 3391 cat pics
Which transport protocol uses FTP?
UDP
IP
TCP
WiFi
Which architectural pattern follows FTP?
Peer to peer
Client - server
Pub/sub
Master - slave
FTP has many similarities with SMTP because it was designed...
after SMTP
before SMTP
at the same time as SMTP
by the same guy
In the same way as SMTP, an FTP server...
Accepts commands in form of ASCII messages
Responds with a status code and phrase
Can act as a client an as a server
Adds random headers to its requests
Which kind of files can be sent over FTP?
Plain ASCII text files
UTF-8 text files
Binary files
Audio files
How many TCP connections does an FTP server handle?
Just one, for control
Just one, for data transfer
Two, one for control and one for data transfer
Three: one for control, one for data transfer and one more as a backup
Which kind of contents travel over the control connection?
ASCII commands
Status codes and phrases
Command results (e.g. the listing of a directory)
Streams of bytes
Which kind of contents travel over the data connection?
ASCII commands
Status codes and phrases
Command results (e.g. the listing of a directory)
Streams of bytes
When should we prefer the passive mode?
While behind a NAT
When we have limited bandwidth
While behind a firewall
If the server can not initiate the connection by itself
Which modes of operation support FTP?
Active
Passive
Hybrid
Standalone
If we want to execute a LIST command...
We can issue the command directly over the control connection
We have to wait for the server to be ready
We have to open a data connection with PORT or PASV commands
We must authenticate
We have just issued the command PORT 3431, what happens next?
The server opens a TCP socket to our port 3431
The server expects us to open a TCP socket to our port 3431
The server answers with a message "PORT 3432"
The server answers with a message "PORT 3430"
We have just issued the command PASV, server answered (192, 162, 1, 210, 4, 12), which connection shall be open?
192.162.1.210:1132
192.162.1.210:1036
201.162.1.189:1036
192.162.1.210:48
