Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
FTPmayruninactiveorpassivemode,whichdetermineshowthedata
connectionisestablished.Inbothcases,theclientcreatesaTCPcontrol
connectionfromarandomunprivilegedportNtotheFTPserver
commandport21.Inactivemodes,theclientstartslisteningforincoming
dataconnectionsonportN+1fromtheserver(theclientsendstheFTP
commandPORTN+1toinformtheserveronwhichportitislistening).In
situationswheretheclientisbehindafirewallandunabletoaccept
incomingTCPconnections,passive modemaybeused.Inthismode,the
clientusesthecontrolconnectiontosendaPASVcommandtotheserver
andthenreceivesaserverIPaddressandserverportnumberfromthe
server,whichtheclientthenusestoopenadataconnectionfroman
arbitraryclientporttotheserverIPaddressandserverportnumber
received.BothmodeswereupdatedinSeptember1998tosupportIPv6.
Furtherchangeswereintroducedtothepassivemodeatthattime,
updatingittoextended passive mode
HOW FTP WORKS
How TFTP works?
TrivialFileTransferProtocol(TFTP)isasimplelightweightfiletransfer
protocol,usedfortransferringfilesoverthenetwork.Thisprotocolis
similartoFTPbutsupportsmuchlesserfeaturesandhencecomeswitha
smallerfootprint.
WhatTFTPprovides
Fasterfiletransfer,asitusesUDPasthetransportlayerprotocol
LesserCodesizeorfootprint
Asciiandbinarymodesoffiletransfer
WhatTFTPdoesnotprovide
doesnotprovideauthentication
doesnotsupportarichsetofuserinterfacecommands
The differences between FTP
and TFTP
FTPisconnectionoriented,whereasTFTPisnot.
TFTPuseserrorcheckingandflowcontrol,whereasTFTPdoesnot
causeerrorchecking.
FTPusesTCPastransportprotocol,whereasTFTPusesUDPas
transportprotocol.
AuthenticationismandatoryinFTP,whereasauthenticationisnotneeded
inTFTP.
Justgettingandputtingapplicationeffectivelyisthedesignconcernof
TFTP,whereasFTPprovidesmorecontrolanddataconnectionaspects.