mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 16:34:32 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<p>Linux版本下载地址:http://code.google.com/p/iperf/downloads/list</p>
|
||||
<h3 id="安装iperf">安装iperf</h3>
|
||||
<p>对于windows版的iperf,直接将解压出来的iperf.exe和cygwin1.dll复制到%systemroot%目录即可,对于linux版的iperf,请使用如下命令安装:</p>
|
||||
<pre><code>gunzip -c iperf-<version>.tar.gz | tar -xvf -
|
||||
<pre><code class="language-bash">gunzip -c iperf-<version>.tar.gz | tar -xvf -
|
||||
cd iperf-<version>
|
||||
./configure
|
||||
make
|
||||
@@ -317,22 +317,22 @@ $ iperf -c <server address> -F <file-name>
|
||||
<p>带宽测试通常采用UDP模式,因为能测出极限带宽、时延抖动、丢包率。在进行测试时,首先以链路理论带宽作为数据发送速率进行测试,例如,从客户端到服务器之间的链路的理论带宽为100Mbps,先用<code>-b 100M</code>进行测试,然后根据测试结果(包括实际带宽,时延抖动和丢包率),再以实际带宽作为数据发送速率进行测试,会发现时延抖动和丢包率比第一次好很多,重复测试几次,就能得出稳定的实际带宽。</p>
|
||||
<p><strong>UDP模式</strong></p>
|
||||
<p>服务器端:</p>
|
||||
<pre><code>iperf -u -s</code></pre>
|
||||
<pre><code class="language-bash">iperf -u -s</code></pre>
|
||||
<p>客户端:</p>
|
||||
<pre><code>iperf -u -c 192.168.1.1 -b 100M -t 60</code></pre>
|
||||
<pre><code class="language-bash">iperf -u -c 192.168.1.1 -b 100M -t 60</code></pre>
|
||||
<p>在udp模式下,以100Mbps为数据发送速率,客户端到服务器192.168.1.1上传带宽测试,测试时间为60秒。</p>
|
||||
<pre><code>iperf -u -c 192.168.1.1 -b 5M -P 30 -t 60</code></pre>
|
||||
<pre><code class="language-bash">iperf -u -c 192.168.1.1 -b 5M -P 30 -t 60</code></pre>
|
||||
<p>客户端同时向服务器端发起30个连接线程,以5Mbps为数据发送速率。</p>
|
||||
<pre><code>iperf -u -c 192.168.1.1 -b 100M -d -t 60</code></pre>
|
||||
<pre><code class="language-bash">iperf -u -c 192.168.1.1 -b 100M -d -t 60</code></pre>
|
||||
<p>以100M为数据发送速率,进行上下行带宽测试。</p>
|
||||
<p><strong>TCP模式</strong></p>
|
||||
<p>服务器端:</p>
|
||||
<pre><code>iperf -s</code></pre>
|
||||
<pre><code class="language-bash">iperf -s</code></pre>
|
||||
<p>客户端:</p>
|
||||
<pre><code>iperf -c 192.168.1.1 -t 60</code></pre>
|
||||
<pre><code class="language-bash">iperf -c 192.168.1.1 -t 60</code></pre>
|
||||
<p>在tcp模式下,客户端到服务器192.168.1.1上传带宽测试,测试时间为60秒。</p>
|
||||
<pre><code>iperf -c 192.168.1.1 -P 30 -t 60</code></pre>
|
||||
<pre><code class="language-bash">iperf -c 192.168.1.1 -P 30 -t 60</code></pre>
|
||||
<p>客户端同时向服务器端发起30个连接线程。</p>
|
||||
<pre><code>iperf -c 192.168.1.1 -d -t 60</code></pre>
|
||||
<pre><code class="language-bash">iperf -c 192.168.1.1 -d -t 60</code></pre>
|
||||
<p>进行上下行带宽测试。</p>
|
||||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|
||||
|
||||
Reference in New Issue
Block a user