1 / 11

FTP 基本原理

FTP 基本原理. 甚麼是 FTP. 一種電腦之間溝通 0 既 “語言” (Protocol). 其他例如 HTTP, NNTP 等都係 “語言” 之一. FTP: xxxxx. FTP: xxxxx. FTP: xxxxx. 甚麼是 IP. IP 就好似日常生活 0 既 “地址” . 例如 : 彌敦道 123 號 係 “連接” 另一部電腦必需 0 既資料 ( TCP/IP ). 甚麼是 Port. 正如 “單位”

marli
Download Presentation

FTP 基本原理

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. FTP 基本原理

  2. 甚麼是 FTP 一種電腦之間溝通0既 “語言” (Protocol). 其他例如 HTTP, NNTP 等都係 “語言” 之一. FTP: xxxxx FTP: xxxxx FTP: xxxxx

  3. 甚麼是 IP IP 就好似日常生活0既 “地址”. 例如 : 彌敦道 123 號 係 “連接” 另一部電腦必需0既資料 ( TCP/IP )

  4. 甚麼是 Port 正如 “單位” TCP/IP 之中 , 每一個 IP 都有六萬幾個 Port. 因為電腦之間溝通靠 IP 係唔足夠, 仲要指定 Port 例如 : 彌敦道 123 號 1 樓 1 號 就係 IP + Port 組成

  5. 常見 Ports 呢 D 只係預設值, 可以任你改 (要通知對方) FTP : 21 HTTP : 80 NNTP : 119 SMTP : 25 POP : 110 仲有好多, 有興趣可以自己搵下

  6. FTP 運作 FTP 之中 (其實多數 protocol 都係) 一部機係 Server 一部機係 Client “Server” 係一部 install 0左 “FTP Server Program” 0既電腦 “Server Program” 做0既工作就係 “等” 等有人連接到 Port 21 (預設) FTP Client 先係 “主動” 連接0既 Program

  7. Client Server 情況一 Listen port 21 (等) 呢個 IP , port , 有冇人 ? FTP client program Port 21 FTP server program 有 我係 “XXX”, password “YYY” OK , 成功登入 下頁續

  8. Client Server 情況一 有咩 files ? FTP client program FTP server program 有 x,y,z ….. 咁多 files and folder 我想要 abc.zip (假設已存在) Send file 再見 一個簡單0既 “交易” 完成 , 實際運作會複雜好多

  9. Client Server 情況二 冇 software listen 原因好多 Eg. Firewall, ISP blocked, Router…. 呢個 IP , port , 有冇人 ? FTP client program 等 …….. 沒有回應 , Close connection

  10. Client Server Router 情況三 FTP server program listen port 21 呢個 IP , port , 有冇人 ? FTP client program 一般0黎講, 由於 Router 個 port 21 冇 software listen, Client 係會 Timeout (冇回應) 所以要入 Router setting, 設定成 : “當收到 port 21 0既 data, Forward 去 “XXX” (某部機)”

  11. 其他 由於只係簡單理論 , 以下 Topic 唔會提及 : Passive and Port Mode FXP 個別 Software 設定 Multi-Thread 由於要簡單, 好多地方簡化0左 如果有錯處, 請通知 raymondlhw@sinaman.com, 多謝

More Related