什麼是 1GBps 連接埠速度?

什麼是 1GBps 連接埠速度?

我有一個關於在我的情況下測量伺服器下載速度的方法的問題。基本上我在 Namecheap 有一個專用伺服器,並且購買了 1GBps 連接埠速度。 (不是為了打廣告)。但當我跑步時,speedtest-cli我的速度從未超過 300 Mbits/s。但我在論壇上看到人們的 ip 達到了 900 Mbits/s。伺服器speedtest-cli距離僅 45 公里。

我和他們討論了這個問題,他們說測量下載速度的最佳方法是使用iperf.他們得到了這些結果:

------------------------------------------------------------
Client connecting to 199.188.200.101, TCP port 5001
TCP window size: 23.5 KByte (default)
------------------------------------------------------------
[ 11] local port 47152 connected with 199.188.200.101 port 5001
[ 4] local port 47143 connected with 199.188.200.101 port 5001
[ 12] local port 47151 connected with 199.188.200.101 port 5001
[ 5] local port 47145 connected with 199.188.200.101 port 5001
[ 8] local port 47148 connected with 199.188.200.101 port 5001
[ 10] local port 47150 connected with 199.188.200.101 port 5001
[ 9] local port 47149 connected with 199.188.200.101 port 5001
[ 7] local port 47146 connected with 199.188.200.101 port 5001
[ 6] local port 47147 connected with 199.188.200.101 port 5001
[ 3] local port 47144 connected with 199.188.200.101 port 5001
[ ID] Interval Transfer Bandwidth
[ 6] 0.0-10.0 sec 92.4 MBytes 77.4 Mbits/sec
[ 4] 0.0-10.0 sec 35.6 MBytes 29.8 Mbits/sec
[ 9] 0.0-10.0 sec 242 MBytes 202 Mbits/sec
[ 3] 0.0-10.0 sec 68.0 MBytes 56.9 Mbits/sec
[ 12] 0.0-10.0 sec 59.4 MBytes 49.6 Mbits/sec
[ 5] 0.0-10.0 sec 95.1 MBytes 79.5 Mbits/sec
[ 8] 0.0-10.1 sec 110 MBytes 91.9 Mbits/sec
[ 10] 0.0-10.1 sec 85.8 MBytes 71.5 Mbits/sec
[ 11] 0.0-10.1 sec 86.1 MBytes 71.7 Mbits/sec
[ 7] 0.0-10.1 sec 60.2 MBytes 50.1 Mbits/sec
[SUM] 0.0-10.1 sec 934 MBytes 777 Mbits/sec

但事實是,當人們下載東西時,他們從來不會打開多個連接埠來完成它。為什麼我的伺服器在同一測試中與其他伺服器不符。似乎有些不對勁。誰能告訴我他們提供的數據是否證明我的伺服器是 1GBps?還是我被騙了?

更新:

我的結果

root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (******)...
Selecting best server based on ping...
Hosted by KanOkla Networks (Caldwell, KS) [120.08 km]: 29.723 ms
Testing download speed........................................
Download: 306.43 Mbits/s
Testing upload speed..................................................
Upload: 34.66 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (***)...
Selecting best server based on ping...
Hosted by IdeaTek Systems (Buhler, KS) [69.02 km]: 8.663 ms
Testing download speed........................................
Download: 160.10 Mbits/s
Testing upload speed..................................................
Upload: 37.91 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (***)...
Selecting best server based on ping...
Hosted by Sumner Communications (Wellington, KS) [88.77 km]: 23.047 ms
Testing download speed........................................
Download: 27.94 Mbits/s
Testing upload speed..................................................
Upload: 21.71 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by KsFiberNet (Wichita, KS) [45.26 km]: 29.723 ms
Testing download speed........................................
Download: 131.05 Mbits/s
Testing upload speed..................................................
Upload: 31.58 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by IdeaTek Systems (Buhler, KS) [69.02 km]: 8.98 ms
Testing download speed........................................
Download: 277.10 Mbits/s
Testing upload speed..................................................
Upload: 37.58 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
python speedtest-cliRetrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by IdeaTek Systems (Buhler, KS) [69.02 km]: 8.98 ms
Testing download speed........................................
Download: 138.62 Mbits/s
Testing upload speed..................................................
Upload: 37.42 Mbits/s
root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by IdeaTek Systems (Buhler, KS) [69.02 km]: 8.901 ms
Testing download speed........................................
Download: 137.41 Mbits/s
Testing upload speed..................................................
Upload: 36.51 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by Sumner Communications (Wellington, KS) [88.77 km]: 8.265 ms
Testing download speed........................................
Download: 32.07 Mbits/s
Testing upload speed..................................................
Upload: 20.07 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by IdeaTek Systems (Buhler, KS) [69.02 km]: 8.583 ms
Testing download speed........................................
Download: 179.43 Mbits/s
Testing upload speed..................................................
Upload: 33.49 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by KanOkla Networks (Caldwell, KS) [120.08 km]: 8.98 ms
Testing download speed........................................
Download: 127.67 Mbits/s
Testing upload speed..................................................
Upload: 24.39 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by Sumner Communications (Wellington, KS) [88.77 km]: 30.279 ms
Testing download speed........................................
Download: 30.61 Mbits/s
Testing upload speed..................................................
Upload: 20.45 Mbits/s



root@NC-PH-0471-11:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Namecheap (*****)...
Selecting best server based on ping...
Hosted by KsFiberNet (Wichita, KS) [45.26 km]: 8.663 ms
Testing download speed........................................
Download: 130.36 Mbits/s
Testing upload speed..................................................
Upload: 28.73 Mbits/s

答案1

您購買了一台具有千兆乙太網路連接埠的機器。這意味著該點的頻寬為 1 Gbps。這是理論極限合併的所有進出伺服器的流量的頻寬。

您觀察到的 300mbps 至少證明該機器具有 1gbps 乙太網路連接;因為下一個最高連結速度(假設有線乙太網路)是 100mbps,您已經超過了。除此之外,它沒有說太多。

您發布了他們的結果,但沒有發布您的;您是否也嘗試過多個速度測試伺服器 ID?而且,這可能是一件愚蠢的事情,但請確保您正在從伺服器執行 speedtest-cli,而不是無意中從本機電腦執行它。

您提到 speedtest-cli 根據 ping 時間選擇伺服器。Ping 時間表示延遲,而不是頻寬。速度測試伺服器和您的伺服器之間的頻寬小於完整的 1gbps 並不是不合理的。您可能希望有多個速度測試伺服器同時進行頻寬檢查,然後將它們全部添加在一起;這就是他們進行的測試所做的。

請記住,您的 1gbps 連接埠速度主要幫助多個使用者同時使用您的網站,而不會互相影響,因為單一使用者不太可能獲得與您的伺服器的 1gbps 持續連線。對單一伺服器進行速度測試並不是適合這項工作的工具。

順便說一句,如果您的伺服器運行的是 Linux,您可以直接驗證乙太網路鏈路速度。首先ifconfig查看介面名稱(通常是 eth0 或類似名稱),然後用於ethtool顯示有關介面的信息,其中包括硬體連結速度。

相關內容