<?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>Keyur &#187; network</title>
	<atom:link href="http://keyur.co.in/blog/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://keyur.co.in</link>
	<description>Just another blog...</description>
	<lastBuildDate>Sun, 28 Apr 2013 07:21:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Limit bandwidth usage with lftp</title>
		<link>http://keyur.co.in/blog/limit-bandwidth-usage-with-lftp/</link>
		<comments>http://keyur.co.in/blog/limit-bandwidth-usage-with-lftp/#comments</comments>
		<pubDate>Mon, 04 Jun 2012 06:35:36 +0000</pubDate>
		<dc:creator><![CDATA[Keyur]]></dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[lftp]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://keyur.co.in/?p=1</guid>
		<description><![CDATA[This post describes how you can limit the bandwidth usage during data transfer using lftp (File transfer program) For those who don&#8217;t know what lftp is, You can check it out over here : http://lftp.yar.ru/lftp-man.html For any data transfer between local &#8230; <a href="http://keyur.co.in/blog/limit-bandwidth-usage-with-lftp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>This post describes how you can limit the bandwidth usage during data transfer using lftp (File transfer program)</p>
<p>For those who don&#8217;t know what lftp is, You can check it out over here : <a href="http://lftp.yar.ru/lftp-man.html">http://lftp.yar.ru/lftp-man.html</a></p>
<p>For any data transfer between local servers (physically located at same location), one should make a practice to check with Network team whether both the server are connected to same switch or they are connected to two different switches. If they are connected between two different switches then make sure to rate limit the data transfer throughput during ftp. This is to ensure that bandwidth is not choked during data transfer and other Server/Applications do not suffer due to data transfer</p>
<p>Mostly every office has 1Gig network, If data transfer is done between servers connected to two different switches with uplink of 1G without bandwidth throttling then you may endup using entire bandwidth available resulting network issues and packet loss for other servers and applications.</p>
<p>To avoid this issue you should throttle bandwidth usage during data transfer. For Eg. You can throttle bandwidth usage to 40 Megabytes/Sec. To apply this limit using lftp follow below mentioned steps.</p>
<p>#<strong> vim /etc/lftp.conf</strong></p>
<p>Append a line as below :</p>
<p><strong>set <a>net:limit-total-rate</a> 41943040:0</strong></p>
<ul>
<li> This will limit the data transfer to 40 Megabytes/Sec. Of-course this has to be done before the transfer starts.</li>
<li>As you notice <strong>41943040:0</strong> . The value before &#8220;<strong>:</strong>&#8221; is for download. i.e., GET (Mirror in lftp) for pulling data from other server. If you have to push the data i.e., PUT (Mirror -R in lftp) then change it to <strong>0:</strong><strong>41943040</strong></li>
<li> If transfer is happening between two servers connected to same switch then no need to rate limit the transfer.</li>
</ul>
<p>Caution : Simultaneous ftp transfer on same servers should not be done. If you wanna do it anyways then adjust the above mentioned limits accordingly to distribute the load between two connections.</p>
]]></content:encoded>
			<wfw:commentRss>http://keyur.co.in/blog/limit-bandwidth-usage-with-lftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
