1 / 12

資管三C網路建構實習課

資管三C網路建構實習課. 網路基本概念 FTP 3/11. FTP 介紹. FTP(File Transfer Potocol) 兩端電腦在交換資料檔案時,所使用的通訊協定 Control Channel 用以傳送指令 LIST 、 PASV 、 CWD…etc. Data Channel 用來傳送檔案資料. FTP 傳輸模式. Passive mode Client Sends the PASV command to Server

danyl
Télécharger la présentation

資管三C網路建構實習課

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 資管三C網路建構實習課 網路基本概念 FTP 3/11

  2. FTP介紹 • FTP(File Transfer Potocol) • 兩端電腦在交換資料檔案時,所使用的通訊協定 • Control Channel • 用以傳送指令 • LIST、PASV、CWD…etc. • Data Channel • 用來傳送檔案資料

  3. FTP傳輸模式 • Passive mode • Client Sends the PASV command to Server • Server open a port for the data connection and return the address of that port. • Server listens on that port and the client connects to it. • Active mode • Client Sends the PORT command to server • Client listens on a port and sends that address to the remote server, who connects back to it.

  4. 使用者 進行連線(建立Control Channel) FTP伺服器 設定被動傳輸模式(下達 PSAV Command) • Server 開啟一個 Port • 利用 Control Channel 通知 Client 開哪個Port 進行連線(建立 Data Channel) 由 Server 傳送檔案資料到 Client FTP傳輸模式 – Passive mode

  5. 使用者 進行連線(建立Control Channel) FTP伺服器 設定主動傳輸模式(下達 PORT Command) • Client 開啟一個 Port • 利用 Control Channel 通知 Server 開哪個Port 進行連線(建立 Data Channel) 由 Server 傳送檔案資料到 Client FTP傳輸模式 – Active mode

  6. Opening the control connection

  7. Creating the data connection

  8. FTP設定模式 • Microsoft Windows 環境 • Leapftp • Sites -> Site Manager -> 選一個站台 -> Advanced • 將 Use PASV mode 打勾 • CuteFTP • 檔案 -> 設定 -> Firewall • 勾選PASV模式 • UNIX環境 • ftp 指令 • passive 指令

  9. FTP指令模式操作方式 • Microsoft / UNIX • ftp • cd切換目錄 • lcd切換本地端目錄 • ls查詢目前工作路徑/某個目錄底下有什麼東西 • bi / ascii設定檔案傳送的格式;bi表示以二進位方式,ascii表示以純文字檔方式 • prompt是否開啟互動

  10. FTP指令模式操作方式 (Continue) • get / mget下載檔案;get只下載單一檔案,mget下載多個檔案 • put / mput上傳檔案;put只上傳單一檔案,mput上傳多個檔案 • hash是否顯示上下傳進度 • mkdir建立新的目錄 • rmdir移除一個目錄 • delete刪除檔案

  11. FTP設定模式 DEMO

  12. FTP 作業 • 1.FTP 的傳輸模式分成 Passive mode 及 Active mode,請說明這兩種模式在使用上的缺點及優點。 • 2.請簡單介紹eMule與BT(BitTorrent)此兩種軟體的運作原理。

More Related