《计算机网络与因特网》课件第四章文件传输与远程文件访问.pptVIP

  • 1
  • 0
  • 约2.97千字
  • 约 36页
  • 2021-06-22 发布于上海
  • 举报

《计算机网络与因特网》课件第四章文件传输与远程文件访问.ppt

《计算机网络与因特网》课件第四章文件传输与远程文件访问 Data Connection (2) The client sends this port number to the server using the PORT command. Data Connection (3) The server receives the port number and issues an active open using the well-known port 20 and the receive ephemeral port number. Active open by server Communication is achieved through commands and responses. FTP uses the NVT ASCII character set Communication over Control Connection The client must define the type of file to be transferred,the structure of the data,and the transmission mode. Communication over Data Connection Heterogeneity problem ASCII file: this is the default format for transferring text files. Each character is encoded using NVT ASCII. The sender transforms the file form its own representation into NVT ASCII characters and the receiver transforms the NVT ASCII characters to its own representation. File Type (1) EBCDIC file: EBCDIC: Extended Binary-Coded Decimal Interchange Code 扩充的二—十进制交换码. if one or both ends of the connection use EBCDIC encoding,the file can be transferred using EBCDIC encoding. File Type (2) Image file: this is the default format for transferring binary files. the file is sent as continuous streams of bits without any interpretation or encoding. This is mostly used to transfer binary files such as compiled programs. File Type (3) File structure(default): it is a continuous stream of bytes. Record structure: the file is divided into records.this can be used only by with text files. Page structure: the file is divided into pages, with each page having a page number and a page header.the pages can be stored or accessed randomly or sequentially. Data Structure Stream mode: this is the default mode. Data are delivered from FTP to TCP as a continuous stream of bytes. Block mode: data can be delivered from FTP to TCP in blocks.each block is preceded by a 3-byte header. Compressed mode: if the file is big,the data can be compre

文档评论(0)

1亿VIP精品文档

相关文档