首页 > 其他 > 详细

网络协议之FTP协议

时间:2019-05-23 00:53:57      阅读:168      评论:0      收藏:0      [点我收藏+]

FTP(File Transfer Protocol)

协议文档:RFC 959

 

1.1 FTP协议介绍

技术分享图片

FTP协议基于TCP/IP协议实现,处于应用层。

FTP协议为C/S架构,每一次FTP连接,命令和数据分别通过两个 端口进行通信。

FTP Server拥有命令端口21和数据传输端口20。

FTP Client发起命令,FTP Server被动响应,但是数据传输可以由任意一方发起。

FTP Client首先使用一个随机的端口,向FTP Server的命令端口(端口号20)告知自己的端口号,FTP Server向指定端口号发送应答消息。

 

1.2 FTP命令

ABOR - abort a file transfer

CWD - change working directory

DELE - delete a remote file

LIST - list remote files

MDTM - return the modifucation time of a file

MKD - make a remote directory

NLST - name list of remote directory

PASS - send password

PASV - enter passive mode

PORT - open a data port

PWD - print working directory

QUIT - terminate the connection

RETR - retrieve a remote file

RMD - remove a remote directory

RNFR - rename from

RNTO - rename to

SITE - site-specific commands

SIZE - return the size of a file

STOR - store a file on the remote host

TYPE - set transfer type

USER - send username

 

网络协议之FTP协议

原文:https://www.cnblogs.com/justin-y-lin/p/10909482.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!