<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>diablero&#039;s homepage &#187; измерение скорости</title>
	<atom:link href="https://diablero.ru/tag/%d0%b8%d0%b7%d0%bc%d0%b5%d1%80%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d0%ba%d0%be%d1%80%d0%be%d1%81%d1%82%d0%b8/feed/" rel="self" type="application/rss+xml" />
	<link>https://diablero.ru</link>
	<description>Через тернии к звездам</description>
	<lastBuildDate>Wed, 27 Aug 2014 00:38:59 +0000</lastBuildDate>
	<language>ru-RU</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0</generator>
	<item>
		<title>измеряем скорость соединения</title>
		<link>https://diablero.ru/iperf/</link>
		<comments>https://diablero.ru/iperf/#comments</comments>
		<pubDate>Sun, 14 Apr 2013 20:47:14 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[iperf]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[измерение скорости]]></category>

		<guid isPermaLink="false">http://diablero.ru/?p=16</guid>
		<description><![CDATA[Иногда появляется необходимость померить скорость соединения вашего сервера с интернетом или другим сервером. Я рассмотрю как с помощью утилиты iperf померить скорость соединения между двумя серверами. Итак нам потребуется сама утилита iperf на обоих машинах: sudo apt-get install iperf Напомню, что я по прежнему использую debian squeeze. После того, как iperf был установлен на подопытных [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Иногда появляется необходимость померить скорость соединения вашего сервера с интернетом или другим сервером. Я рассмотрю как с помощью утилиты <strong>iperf</strong> померить скорость соединения между двумя серверами.</p>
<p>Итак нам потребуется сама утилита <strong>iperf</strong> на обоих машинах:</p>
<pre>sudo apt-get install iperf</pre>
<p>Напомню, что я по прежнему использую debian squeeze.</p>
<p>После того, как <strong>iperf</strong> был установлен на подопытных серверах нам потребуется настроить правила firewall, у меня это делается простым добавлением:<span id="more-16"></span></p>
<pre>iptables -A INPUT -p TCP -s 0/0 --dport 5001 -j allowed</pre>
<p>Поясню, данное правило надо применить на одном из серверов, к которому будет осуществляться подключение, порт 5001, это порт по умолчанию для программы <strong>iperf</strong>.</p>
<p>Теперь на сервере (там, где применили правило firewall) запускаем программу с ключом:</p>
<pre>iperf -s</pre>
<p>А на клиенте:</p>
<pre>iperf -c x.x.x.x</pre>
<p>Где x.x.x.x адрес сервера.</p>
<p>Результат, например, будет таким:<br />
На сервере</p>
<pre>------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local x.x.x.x port 5001 connected with y.y.y.y port 36905
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.3 sec 23.5 MBytes 19.1 Mbits/sec</pre>
<p>На клиенте</p>
<pre>------------------------------------------------------------
Client connecting to x.x.x.x, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local y.y.y.y port 36905 connected with x.x.x.x port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 23.5 MBytes 19.6 Mbits/sec</pre>
<p>В отчете работы программы все очень наглядно, <strong>iperf</strong> говорит, что передал 23,5 MBytes со скоростью 19,6 Mbits/sec.</p>
<p>Посмотрим какие еще параметры может принимать <strong>iperf</strong></p>
<pre>iperf -h</pre>
<pre>Usage: iperf [-s|-c host] [options]
 iperf [-h|--help] [-v|--version]</pre>
<pre>Client/Server:
 -f, --format [kmKM]  в каком формате выводить отчет, Kbits, Mbits, KBytes, MBytes
 -i, --interval # seconds between periodic bandwidth reports
 -l, --len #[KM] length of buffer to read or write (default 8 KB)
 -m, --print_mss print TCP maximum segment size (MTU - TCP/IP header)
 -o, --output &lt;filename&gt; output the report or error message to this specified file
 -p, --port # server port to listen on/connect to
 -u, --udp use UDP rather than TCP
 -w, --window #[KM] TCP window size (socket buffer size)
 -B, --bind &lt;host&gt; bind to &lt;host&gt;, an interface or multicast address
 -C, --compatibility for use with older versions does not sent extra msgs
 -M, --mss # set TCP maximum segment size (MTU - 40 bytes)
 -N, --nodelay set TCP no delay, disabling Nagle's Algorithm
 -V, --IPv6Version Set the domain to IPv6</pre>
<pre>Server specific:
 -s, --server run in server mode
 -U, --single_udp run in single threaded UDP mode
 -D, --daemon run the server as a daemon</pre>
<pre>Client specific:
 -b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec
 (default 1 Mbit/sec, implies -u)
 -c, --client &lt;host&gt; run in client mode, connecting to &lt;host&gt;
 -d, --dualtest Do a bidirectional test simultaneously
 -n, --num #[KM] number of bytes to transmit (instead of -t)
 -r, --tradeoff Do a bidirectional test individually
 -t, --time # time in seconds to transmit for (default 10 secs)
 -F, --fileinput &lt;name&gt; input the data to be transmitted from a file
 -I, --stdin input the data to be transmitted from stdin
 -L, --listenport # port to recieve bidirectional tests back on
 -P, --parallel # number of parallel client threads to run
 -T, --ttl # time-to-live, for multicast (default 1)
 -Z, --linux-congestion &lt;algo&gt; set TCP congestion control algorithm (Linux only)</pre>
<pre>Miscellaneous:
 -x, --reportexclude [CDMSV] exclude C(connection) D(data) M(multicast) S(settings) V(server) reports
 -y, --reportstyle C report as a Comma-Separated Values
 -h, --help print this message and quit
 -v, --version print version information and quit</pre>
<pre>[KM] Indicates options that support a K or M suffix for kilo- or mega-</pre>
<pre>The TCP window size option can be set by the environment variable
TCP_WINDOW_SIZE. Most other options can be set by an environment variable
IPERF_&lt;long option name&gt;, such as IPERF_BANDWIDTH.</pre>
<pre>Report bugs to &lt;iperf-users@lists.sourceforge.net&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>https://diablero.ru/iperf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
