--- title: 服務器連接特定地區主機出現障礙 description: 定位問題後回報相關機房進行進一步問題排查 tags: 網路問題排查, network-troubleshooting, mtr lang: zh-tw image: https://i.imgur.com/tXNobFw.png --- # 服務器連接特定地區主機出現障礙 定位問題後回報相關機房進行進一步問題排查 [TOC] ## 操作流程 ### 使用 mtr 工具定位問題發生在本地機房側還是遠端機房側的網路 1. 取得本地機房主機的文字終端 2. 確保 MTR 工具有安裝(軟體包名稱:mtr) 3. 執行 `mtr --show-ips _遠端機房主機地址_` 命令進行路由節點的封包延遲與掉包測試(取樣量 50 以上) ``` My traceroute [v0.94] brlin-musicha-mz-530 (192.168.1.228) -> 104.104.104.104 2022-02-17T08:48:35+0800 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. gateway.1.168.192.in-addr.arpa (192.168.1.1) 0.0% 57 0.5 0.4 0.4 0.6 0.1 2. h254.s98.ts.hinet.net (168.95.98.254) 0.0% 57 9.4 7.8 2.4 13.0 2.8 3. tpdb-3331.hinet.net (168.95.82.22) 0.0% 57 2.4 3.5 2.4 6.6 0.7 4. tpdt-3032.hinet.net (220.128.4.106) 0.0% 57 2.6 2.8 1.8 3.7 0.5 5. r4101-s2.tp.hinet.net (220.128.14.97) 0.0% 57 3.6 3.3 1.7 24.2 3.2 6. r4001-s2.tp.hinet.net (220.128.31.1) 0.0% 57 2.8 2.6 1.7 6.4 0.9 7. pa-r31.us.hinet.net (202.39.91.77) 0.0% 57 139.1 140.0 138.6 151.0 1.9 8. pa-r41.us.hinet.net (202.39.84.46) 0.0% 57 139.8 139.3 138.6 140.5 0.5 9. et-0-0-2.GW12.PAO1.ALTER.NET (157.130.214.1) 0.0% 57 129.1 130.7 129.1 147.9 3.4 10. 0.ae1.GW2.BOS19.ALTER.NET (140.222.0.235) 0.0% 56 207.4 201.0 200.1 207.4 1.1 11. 204.148.173.22 (204.148.173.22) 0.0% 56 266.2 242.2 202.4 511.5 71.9 12. a104-104-104-104.deploy.static.akamaitechnologies.com (104.104.104.104) 0.0% 56 201.2 200.9 200.3 201.7 0.4 ``` * 如果系統沒有啟用 IPv6 會有錯誤訊息,使用 `2>/dev/null` Shell 的資料流重導向功能排除 * 按下 `p` 鍵可以暫停畫面輸出,方便截圖 1. 應可透過**封包延遲**與 **IP 地址的域名反解析**簡單分出本地機房側的網路跟遠端機房側的網路如下圖  ### 將問題反饋給對應的機房進行進一步排查 由於我方並沒有機房網路與機房的網路服務提供者(ISP)網路的權限,將問題反饋到對應機房請他們進行進一步的問題排查 ## 參考資料 * [MTR](https://www.bitwizard.nl/mtr/) MTR 的官方網站 * [MTR:Linux 網路診斷工具使用教學 - G. T. Wang](https://blog.gtwang.org/linux/mtr-linux-network-diagnostic-tool/) * [What is My Traceroute (MTR)? | Cloudflare](https://www.cloudflare.com/learning/network-layer/what-is-mtr/) --- 本作品為[《維運猿的共同筆記》](https://hackmd.io/@ops-notes-tw/home)的一部分 頁面連結:<https://hackmd.io/@ops-notes-tw/regional-access-troubleshooting> 授權條款:<https://hackmd.io/@ops-notes-tw/licensing> 參與協作視同將您的貢獻內容以相同的授權條款釋出
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up