Web Ping: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
m (Text replacement - ": Image:Owl icon.jpg " to "{{Tips}} ")
 
(2 intermediate revisions by the same user not shown)
Line 79: Line 79:
* [http://www.labnol.org/internet/blogging/test-website-blocked-in-china-or-accessible/3262/ How to Check If Your Website Is Blocked In China or Not]
* [http://www.labnol.org/internet/blogging/test-website-blocked-in-china-or-accessible/3262/ How to Check If Your Website Is Blocked In China or Not]


: [[Image:Owl icon.jpg]] 了解什麼是[http://zh.wikipedia.org/wiki/%E9%87%91%E7%9B%BE%E5%B7%A5%E7%A8%8B 中國的防火長城(GFW, Great Firewall of China)]?
{{Tips}} 了解什麼是[http://zh.wikipedia.org/wiki/%E9%87%91%E7%9B%BE%E5%B7%A5%E7%A8%8B 中國的防火長城(GFW, Great Firewall of China)]?


==== 使用國外 VPN 服務測試網路連線 ====
==== 使用國外 VPN 服務測試網路連線 ====
Line 89: Line 89:


=== 分析網頁連線下載速度 ===
=== 分析網頁連線下載速度 ===
* {{Gd}} [http://developer.yahoo.com/yslow/ Yahoo! YSlow] + [http://www.getfirebug.com/ Firebug] for {{Fx}}: [http://www.getfirebug.com/net.html Firebug and Network Monitoring] (說明: [http://briian.com/?p=5526 Firebug 幫網頁稱重量、測速度,抓出拖慢網站的元兇!  【重灌狂人】])操作方式: 按{{kbd | key=F12}} 啟動Firebug, 然後切換到「網路」標籤
分析網頁連線下載速度,並提供網站開發者建議的服務或軟體
: http://farm3.static.flickr.com/2083/1776124036_800ff3441d_o.jpg
[[Optimize webpage speed]]
: Image hosted by [http://www.flickr.com/photos/planetoid/1776124036/ Flickr]
 
* [http://www.fiddler2.com/fiddler2/ Fiddler Web Debugger - A free web debugging tool]
: http://farm6.static.flickr.com/5213/5457161299_6410ae7c01.jpg
: Image hosted by [http://www.flickr.com/photos/planetoid/5457161299/in/photostream/ flickr]
 
* [http://www.httpwatch.com/ HttpWatch: An HTTP Viewer and HTTP Sniffer] for {{IE}} 6 & 7 & {{Fx}}
** 介紹: [http://steachs.com/archives/1450 網頁診斷工具【HttpWatch Basic Edition】即時分析網頁瀏覽數據 for IE、Firefox]
 
* [https://addons.mozilla.org/en-US/firefox/addon/httpfox/ HttpFox][http://code.google.com/p/httpfox/]  An HTTP analyzer addon for {{Fx}}
 
* [http://tools.pingdom.com/fpt/ Pingdom Tools]([http://www.flickr.com/photos/planetoid/5096188393/ 圖例]): (a)測試網頁各元件載入時間(Full page test),圖形化呈現載入時間長短,藉此觀察網頁效能、 (b)以及從Pingdom Tools網站到目標網站的連線檢查(Ping、trace route)
 
* [http://webwait.com/ WebWait - Benchmark Your Website] 網頁下載計時器
 
* [http://www.websiteoptimization.com/ Web Site Optimization: Speed Up Your Site website opion web speed optimize web site performance company] --> Web Page Analyzer
 
* [https://chrome.google.com/extensions/detail/ognampngfcbddbfemdapefohjiobgbdl Speed Tracer (by Google)] for {{Chrome}}
 
* [http://www.webpagetest.org/ WebPagetest - Website Performance and Optimization Test]
 
* [https://www.giftofspeed.com/ Test & Optimize Website Speed - GiftOfSpeed] 可以選擇從荷蘭、美國、英國、新加坡、德國其中一處連線測試。測試結果包含不同網頁元件下載所需時間。{{access | date = 2016-07-28}}


==== Monitor HTTP request ====
=== Monitor HTTP request ===
追蹤瀏覽器提出的網站網址要求(ex: URL of AJAX JSON)
追蹤瀏覽器提出的網站網址要求(ex: URL of AJAX JSON)
* [http://www.fiddler2.com/fiddler2/ Fiddler Web Debugger - A free web debugging tool] for {{Win}}
* [http://www.fiddler2.com/fiddler2/ Fiddler Web Debugger - A free web debugging tool] for {{Win}}
Line 120: Line 98:
* [http://www.httpwatch.com/ HttpWatch 8.5: Seamless HTTP monitoring for IE and Firefox] for {{IE}} & {{Fx}}
* [http://www.httpwatch.com/ HttpWatch 8.5: Seamless HTTP monitoring for IE and Firefox] for {{IE}} & {{Fx}}
* {{Chrome}} 工具 -> 開發人員工具 -> Network
* {{Chrome}} 工具 -> 開發人員工具 -> Network
==== 分析網頁連線下載速度,並提供網站開發者建議的服務或軟體 ====
[[Optimize webpage speed]]


=== 觀察HTTP response status code(HTTP回應狀態代碼) ===
=== 觀察HTTP response status code(HTTP回應狀態代碼) ===
Line 175: Line 150:


== 無法網路連線 ==
== 無法網路連線 ==
To distinguish which section met trouble
# ping local IP
# ping local IP
# ping Gateway
# ping Gateway
# check DNS...
# check DNS...
# (optional) ping the IP of external website (有些機器會關閉ICMP ECHO,讓我們無法Ping到它)
# ping the remote IP of external website<ref>[https://www.wkb.idv.tw/moodle/mod/page/view.php?id=10467&lang=zh_tw IPv6_2017: IPv6連線互測-ping]</ref> (有些機器會關閉ICMP ECHO,讓我們無法Ping到它)
distinguish which section met trouble
#* {{Win}} keyin {{kbd | key=<nowiki>ping <IPv4></nowiki>}} e.g. {{kbd | key=<nowiki>ping 8.8.8.8</nowiki>}} (8.8.8.8 is the IP of [https://developers.google.com/speed/public-dns/docs/using?hl=zh-tw Google Public DNS])
#* {{Win}} keyin {{kbd | key=<nowiki>ping -6 <IPv6></nowiki>}} e.g. {{kbd | key=<nowiki>ping -6 2001:4860:4860::8888</nowiki>}}


== 無法連線到網路的測試步驟 ==
== 無法連線到網路的測試步驟 ==

Latest revision as of 20:22, 8 January 2025

Test connectivity for the web service: 網站監測與網站連線測試,當網站臨時無法連線時,可以檢查是否是個別 ISP 或 網路環境造成的網路連線問題。 (Back to Network problem)

網站連線測試[edit]

網站連線測試[edit]

同時從世界各處測試網站連線 手動執行監測[edit]

可以檢查是否是個別 ISP / 網路環境造成的網路連線問題: 如果只有你不能連線,世界其他人都可以連線,請更換網路連線 IP ,例如更改無線網路重新連線網站。

  • Alertra Web Site Monitoring
    • (1)從世界13處(含中國上海、香港)進行連線速度測試 check from different citys: Los Angeles USA, Detroit USA, Frankfurt GERMANY and London UK. 。
    • (2) 免費版未提供 2014-02-25 可查看網頁回應:輸入網頁網址,然後點選 Response -> View Extended Data (Headers, content and more) 可以看到網頁內容,不過中文內容會亂碼。 另外提供 View Packet Capture (.cap file in pcap/Wireshark format)
  • WebSitePulse -> 1. Free Website Test: Test from (1)Seattle, WA (2)Munich, Germany (3)Brisbane, Australia 2. 選擇 Web Page Test,可概略呈現地網頁元素下載的所需時間
  • just ping: Free online ping from 50 locations worldwide(includes China) Icon_exclaim.gif 如果網站關閉 ICMP 回應,會導致測試結果顯示為「Packets lost (100%)」,但是其實網站是可以連線的。[Last visited: 2013-05-13]

同時從世界各處測試網站連線 固定頻率自動執行監測[edit]

  • Good.gif Uptime Robot 免費與付費版均有。主要從美國伺服器連線測試[1]。免費版監控週期 5 分鐘、共 50 個監控規則的限制。 [Last visited: 2022-07-14]
  • Alertra Web Site Monitoring
    • (1)從世界13處(含中國上海、香港)進行連線速度測試 check from different citys: Los Angeles USA, Detroit USA, Frankfurt GERMANY and London UK. 。
    • (2) 免費版未提供 2014-02-25 可查看網頁回應:輸入網頁網址,然後點選 Response -> View Extended Data (Headers, content and more) 可以看到網頁內容,不過中文內容會亂碼。 另外提供 View Packet Capture (.cap file in pcap/Wireshark format)
  • pulsetic 免費與付費版均有。免費版監控週期 5 分鐘。無法設定要從世界哪一處進行連線測試。[Last visited: 2022-04-08]
  • WebSitePulse -> 1. Free Website Test: Test from (1)Seattle, WA (2)Munich, Germany (3)Brisbane, Australia 2. 選擇 Web Page Test,可概略呈現地網頁元素下載的所需時間
  • Uptime Doctor 免費與付費版均有。自北美、歐洲、亞洲等地方測試。 [Last visited: 2017-05-31]

檢查網站是否被中國的防火長城(GFW, Great Firewall of China)封鎖[edit]

相關文章

  了解什麼是中國的防火長城(GFW, Great Firewall of China)

使用國外 VPN 服務測試網路連線[edit]

其他[edit]

  • CloudPing.info "... estimate the latency from your browser to each Amazon Web Services region." Cited from official website.

分析網頁連線下載速度[edit]

分析網頁連線下載速度,並提供網站開發者建議的服務或軟體 Optimize webpage speed

Monitor HTTP request[edit]

追蹤瀏覽器提出的網站網址要求(ex: URL of AJAX JSON)

觀察HTTP response status code(HTTP回應狀態代碼)[edit]

瀏覽網頁時,可以觀察該網頁或網頁內元件(例如嵌入圖檔或聲音)的HTTP response status code(HTTP回應狀態代碼)[5],例如404代表沒有該檔案。

  • Mozilla Firefox Firefox browser_firefox.png 內建的工具 -> 網頁開發者 -> 網頁主控台。快速鍵: Ctrl+Shift+k
    • filter: available
    • example as follows:
[23:14:47.836] GET https://www.google.com/ [HTTP/1.1 200 OK 10763ms]
[23:14:59.707] GET https://www.google.com/ig/cp/get?hl=zh-TW&gl=&authuser=0&bundleJs=0 [HTTP/1.1 304 Not Modified 1593ms]
  • Firebug for Firefox browser_firefox.png : 切換到「網路」標籤。快速鍵: F12
  • Google Chrome   內建的工具 -> 開發人員工具 -> 切換到「network」標籤。快速鍵: Ctrl+Shift+i
  • Live HTTP Headers for Firefox browser_firefox.png
  • curl on Linux   or macOS icon_os_mac.png e.g. curl -v -o /dev/null https://www.slideshare.net [6]

DNS 檢查[edit]

websites

other web ping: fifi(ping, tracert... tools.), lookup

tools

反查IP或網域[edit]

Domain Categorization[edit]

偵測使用的 CDN[edit]

偵測使用的 CDN (內容傳遞網路, Content Delivery Network或Content Distribution Network)

references

無法網路連線[edit]

To distinguish which section met trouble

  1. ping local IP
  2. ping Gateway
  3. check DNS...
  4. ping the remote IP of external website[7] (有些機器會關閉ICMP ECHO,讓我們無法Ping到它)
    • Win   keyin ping <IPv4> e.g. ping 8.8.8.8 (8.8.8.8 is the IP of Google Public DNS)
    • Win   keyin ping -6 <IPv6> e.g. ping -6 2001:4860:4860::8888

無法連線到網路的測試步驟[edit]

  • 檢查網站服務 for Linux  
    • /etc/init.d/httpd status
    • /etc/init.d/mysqld status
  • 檢查本機端網站網頁是否能讀取
    • lynx 127.0.0.1
  • 檢查網站伺服器log
  • 從瀏覽器直接瀏覽網站網址
    • 透過命令列模擬瀏覽器瀏覽網站 e.g. curl -v -o /dev/null https://www.slideshare.net

網路連線發生不穩[edit]

如何看出哪一段線路慢了?

  • Windows: 開始 -> 執行 -> 輸入cmd (進入"命令提示字元")
  • (會顯示C:\某資料夾>)
請在閃爍游標處輸入 tracert web.domain.com (web.domain.com 改成想檢查的網站網址)
就可以看出是哪一段慢了,大家先作這個動作會有助於解決問題及增加回覆的速度喔

或者

請在閃爍游標處輸入 tracert web.domain.com > c:\result.txt
  • 當出現第二次C:\某資料夾> (如果網路連線不穩定, 會花費相當多時間)
代表已經將連線過程紀錄成功在 c:\result.txt
  • 請將這個文字檔寄給合適的網路管理員


參考資料

類似工具[edit]

GeoIP服務[edit]

Blog[edit]


伺服器主機資訊或採用的技術[edit]

伺服器主機資訊或採用的技術,例如網站伺服器、 Javascript 框架、網頁框架、網頁字型 (web fonts)、程式語言等


20398159845_e4d74885dd_n.jpg
(image hosted by flickr)
  • Netcraft - Search Web by Domain 可查詢伺服器主機的OS、IP及上線時間(uptime)、採用的技術等資訊。
    • 使用方式: (1) 線上輸入網址查詢、或 (2) 直接使用 bookmarklet
      javascript:location%20=%20'http://toolbar.netcraft.com/site_report?url='+escape(location);%20void%200
    • 介紹:
    • 查詢結果: e.g. Site report for techcrunch.com

伺服器主機上線時間(uptime)[edit]

伺服器啟用 HTTP 壓縮 (HTTP Compression)[edit]

檢查伺服器是否啟用 HTTP 壓縮 的服務

Benchmark

  • HTTP Archive 從 Alexa 取得前 100萬名的網站網址清單,分析其網頁載入時間、使用的JS、圖片、字型所需載入檔案大小。[Last visited: 2016-04-24]

伺服器啟用 HTTP/2[edit]

檢查伺服器是否啟用 HTTP/2

SSL Server Test[edit]

定期檢查 SSL 憑證的線上服務

SSL 憑證測試線上掃描服務

SSL 憑證測試掃描工具


追蹤網站內容更新或變化[edit]

追蹤網站內容更新的線上服務

References[edit]

further reading


Web site design and development process