1 / 6

Wireshark- 解析 HTTP 封 包 (3)

Wireshark- 解析 HTTP 封 包 (3). Computer Network Lab5. Retrieving Long Documents. 解說:我們想觀察當我們下載一個較大的 HTML file 會發生什麼情形,請執行下列步驟: 1. 打開 web 瀏覽器,且必須先清除你瀏覽器的 cache 紀錄,做法如前所述。 2. 打開 Wireshark 開始抓取封包。 3. 打開你的瀏覽器在網址的地方輸入: http://gaia.cs.umass.edu/ethereal-labs/HTTP-ethereal-file3.html

Télécharger la présentation

Wireshark- 解析 HTTP 封 包 (3)

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. Wireshark-解析HTTP封包(3) Computer Network Lab5

  2. Retrieving Long Documents 解說:我們想觀察當我們下載一個較大的HTML file會發生什麼情形,請執行下列步驟: 1. 打開web瀏覽器,且必須先清除你瀏覽器的cache紀錄,做法如前所述。 2. 打開Wireshark開始抓取封包。 3. 打開你的瀏覽器在網址的地方輸入: http://gaia.cs.umass.edu/ethereal-labs/HTTP-ethereal-file3.html 你的瀏覽器會出現THE BILL OF RIGHTS這篇文章的網頁。 4. 停止Wireshark封包的攔截,且在Filter這個欄位輸入“HTTP”,這樣就會只留下HTTP的訊息顯示在packet-listing視窗中。

  3. Homework 1. 你的瀏覽器送出幾個HTTP GET request? 2.Server回傳的檔案總共需要使用幾個TCP segment送回? 3. 對於瀏覽器送出的GET request,server回傳的status code是什麼? 4. 有無任何封包的HTTP status lines,說明它是由TCP所造成的連續傳送(有無看到Continuation字樣)?

  4. HTTP Authentication 最後我們將嘗試瀏覽有password保護的網站,並檢查交換了哪些HTTP訊息。 1.打開web瀏覽器,且必須先清除你瀏覽器的cache紀錄。 2.打開Wireshark開始抓取封包。 3.打開你的瀏覽器在網址的地方輸入 http://gaia.cs.umass.edu/ethereal-labs/protected_pages/HTTP-ethereal-file5.html 會出現一個需要輸入帳號密碼的彈跳式視窗,使用者帳號是 “eth-students”,密碼是“network”輸入後會看到成功登入的訊息 停止Wireshark封包的攔截,且在Filter這個欄位輸入“HTTP”,這樣就會只留下HTTP的訊息顯示在packet-listing視窗中。 (Note: 如果你無法實際連上網路抓取封包,你可以觀察http5 檔案來回答下列的問題) 。

  5. Homework 5. 對於第一個HTTP GET訊息,server回應什麼樣的status code? 6.當你的瀏覽器再次送出HTTP GET訊息時, 有無新增什麼欄位?內容為何?

  6. Homework Doc檔上,須說明:  1. 封面(班級、學號、姓名)檔名範例:Hw5_99703008_黃麒瑋2. 上列投影片的6個問題、答案和找到答案的截圖貼上 3.心得 • p.s.請將問題、答案和圖示排版清楚,以便助教批改。 • 若有問題請e-mail 給助教.

More Related