西工大考研重要-网络全ch8应用层第48-49ftp_第1页
西工大考研重要-网络全ch8应用层第48-49ftp_第2页
西工大考研重要-网络全ch8应用层第48-49ftp_第3页
西工大考研重要-网络全ch8应用层第48-49ftp_第4页
西工大考研重要-网络全ch8应用层第48-49ftp_第5页
免费预览已结束,剩余27页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

8应用层E-MAIL

2008–2009文件传输协议FTP简单文件传送协议引 的FTP服务器建立连接并登录后,才RFC959文档详细描述了FTPCUTEFTP,服务器软件:SERVER-U,WU-是控制连接,TCP端口为21,主要用于传输命令和参数;另一条是数据连接,TCP端口为20,主要用于传送数据。文件传输协议FTP简单文件传送协议FTP 计算 文件 FTPFTP使用TCP可靠 服务FTPFTP客户服务器方式FTP多个客户进程提供服务;FTP的服务器进程由两大部分组主进程的工 两个连控制连接在整个会话期间一直保持打开,FTP客实际用于传输文件的是“数据连接”。服务器端的控制进程在接收到FTP客户发送来的文件传输请求后就创建“数据传送进程”和“数据连接”,用FTPTCP控制控制用户控制控制

数据

服务两个不同的当客户进程向服务器进程发出建立连接请求时,要寻找连接服务器进程的端口(21),同时还要告诉服务器进程自己的另一个端码,用于建立数据传送连接。接着,服务器进程用自己传送数据的熟知端口(20)与客户进程所提供的端码建立数据传送连接。由于FTP使用了两个不同的端,所以数据连接与控制连接不会发生。在传输文件时还可以利用控制连接来传输命令(例如,FTPftpconnectedto220nicFTPserver(SunosP

e:uestloginok,sendidentas:loginok,accessrestrictions [[[01]用户要用FTP和 [ NIC上的主机)(7,1401)(4318226ASCIITransferlocal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTPftpconnectedto220nicFTPserver(Sunos[04]ame:loginok,sendidentas2tloginok,accessrestrictionscand[02]FTP[150ASCIIdataconnectionfor(7,1401)(4318226ASCIITransferlocal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTPftpconnectedto220nicFTPserver(SunosName:[07]

31Guestloginok,sendidentaspassword.ord:abc@tloginok,accessrestrictions[10]

dxt[1[03]从远地服务器返回的信息,220表示“服务就绪”[1(7,1401)(4318226ASCIITransferlocal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentas[08]

ssword:uestloginok,accessrestrictions[09]200

mand61.txt[04]FTP[表示 local:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:[09]

30Guestloginok,accessrestrictionscdDcommand

rfc1261.txtmandconnectionfor[05]331表示“用户名正确”local:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:230Guestloginok,accessrestrictions

p>cdCWDcommandrfc1261.txt

mmandconnectionfor1)(4318 guest作 FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:230Guestloginok,accessrestrictionsftp>cd250CWDcommand[12]

>getrfc1261.txtORTcommandIIdataconnectionfor27,1401)(4318 ansfer 完毕。3[[15]221FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:230Guestloginok,accessrestrictionsftp>cd[09250CWDcommandtp>getrfc1261.txtPORTcommand[12][13]

CIIdataconnectionfor2.27,1401)(4318ansferremote:rfc1261“ftp>”FTP

FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:230Guestloginok,accessrestrictionsftp>cd250CWDcommandftp>getrfc1261.txt200PORTcommand[13]

ASCIIdataconnectionfor36.12.27,1401)(4318IITransferinforemote:eceivedin15seconds(0.3[[[09]CWDFTP的标准命令,ChangeWorkingDirectory。[FTP 331

nok,sendidentasestloginok,accessrestrictions>cd250CWDcommandftp>getrfc1261.txt200PORTcommand150ASCIIdataconnectionfor(7,1401)(4318226ASCIITransfercomplete.local:nicinforemote:rfc1261.txt4488bytesreceivedin15seconds(0.3ftp>221FTP[11]PORTFTP建立数据连接。200表示“命令正确”Name:331f

ok,sendidentastloginok,accessrestrictionscd0CWDcommandftp>getrfc1261.txt200PORTcommand150ASCIIdataconnectionfor(7,1401)(4318226ASCIITransferlocal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTP[12]150表示“f

oginok,sendidentasstloginok,accessrestrictionscd CWDcommandftp>getrfc1261.txt200PORTcommand150ASCIIdataconnectionfor(7,1401)(4318226ASCIITransferlocal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTP[13]226是“释放数据连接”[09]

ginok,sendidentastloginok,accessrestrictionsdWDcommand>getrfc1261.txt00PORTcommand[12150ASCIIdataconnectionfor(7,1401)(4318226ASCIITransfercomplete. local:nicinforemote:rfc1261.txt 4488bytesreceivedin15seconds(0.3Kbytes/s).ftp>221FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:230Guestloginokaccessrestrictions[08][09]

c1261.txtcommandIIdataconnectionfor36.12.27,1401)(431826ASCIITransferlocal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221FTPftpconnectedto220nicFTPserver(SunosName:331Guestloginok,sendidentasPassword:230Guestloginokaccessrestrictions[08][09]

ftp>200

1261.txtommandIdataconnectionfor 6.12.27,1401)(4318 ASCIITransfercal:nicinforemote:4488bytesreceivedin15seconds(0.3ftp>221NFSNFS可使用户只 ANFS写数据的请求一起发送到远端计算机B的NFSNFS文件传输协议FTP简单文件传送协议(TrivialFileTransferTFTPUDPTFTP没有一个庞大 令集,没有列 的功 TFTPPDU512512 PDU文件块(block),每个块按序编号,从1开始。ASCIITFTP发完数据后在规定时间内收不到确认就要重发数据PDUPDUPDU;这样就可保证文件的传送不致因在一开始工作时;TFTP客户进程发送一个

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论