[prev in list] [next in list] [prev in thread] [next in thread]
List: grinder-use
Subject: Re: [Grinder-use] BandwidthLimiter
From: Travis Bear <travis_bear () yahoo ! com>
Date: 2011-12-05 16:37:05
Message-ID: 1323103025.13329.YahooMailNeo () web114709 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
The HTTPPluginConnection object has a setBandwidthLimit method you can use to \
throttle bandwidth used by each of your connections:
http://grinder.sourceforge.net/g3/script-javadoc/net/grinder/plugin/http/HTTPPluginConnection.html#setBandwidthLimit%28int%29
-Travis
________________________________
From: Gary Mulder <gary.mulder@openbet.com>
To: grinder-use <grinder-use@lists.sourceforge.net>
Sent: Monday, December 5, 2011 7:31 AM
Subject: Re: [Grinder-use] BandwidthLimiter
Stefan,
Note that while bandwidth and latency are inversely related, your first request is \
for a high-latency connection, not necessarily a low bandwidth connection.
If you want to simulate high latency adding a PPP hop over ssh or similar is usually \
very effective:
Grinder -> PPP end point -> PPP over SSH -> PPP end point -> Application under test
See http://tldp.org/HOWTO/ppp-ssh/ for a HOWTO. It is not that complicated if you \
know Linux.
Generally I've found that doing bandwidth limiting at the switch level is more \
realistic, as clients and servers are not usually bandwidth limited. A good managed \
switch and a competent network admin should be able to set up QOS to rate-limit \
traffic to any given bandwidth.
Regards,
Gary
On 5 December 2011 15:08, Stefan Magnus Landrø <stefan.landro@gmail.com> wrote:
Hi there,
>
> I need to write a test with massive amounts of slow connections.
>
> I've looked at the docs and the source, but I'm not sure how it should be \
> implemented. Let's say I want to limit my bandwidth to something like 10 kbps - how \
> can I implement such behaviour in a BandwidthLimiter?
> Cheers,
>
> Stefan
>
> --
> BEKK Open
> http://open.bekk.no
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> grinder-use mailing list
> grinder-use@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[Attachment #5 (text/html)]
<html><body><div style="color:#000; background-color:#fff; font-family:arial, \
helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, \
sans-serif; font-size: 10pt; "><span>The HTTPPluginConnection object has a \
setBandwidthLimit method you can use to throttle bandwidth used by each of your \
connections:</span></div><div style="font-family: arial, helvetica, sans-serif; \
font-size: 10pt; "><span><br></span></div><div><span><span class="Apple-style-span" \
style="font-size: 14px;">http://grinder.sourceforge.net/g3/script-javadoc/net/grinder/ \
plugin/http/HTTPPluginConnection.html#setBandwidthLimit%28int%29</span><br></span></div><div><span><span \
class="Apple-style-span" style="font-size: \
14px;"><br></span></span></div><div><span><span class="Apple-style-span" \
style="font-size: 14px;">-Travis</span></span></div><div><span><span \
class="Apple-style-span" style="font-size: \
14px;"><br></span></span></div><div><span><span class="Apple-style-span" \
style="font-size: 14px;"><br></span></span></div><div style="font-family: arial, \
helvetica, sans-serif; font-size: 10pt; "><br></div> <div style="font-size: 10pt; \
font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; \
font-family: 'times new roman', 'new york', times, serif; "> <font size="2" \
face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Gary \
Mulder <gary.mulder@openbet.com><br> <b><span style="font-weight: \
bold;">To:</span></b> grinder-use <grinder-use@lists.sourceforge.net> <br> \
<b><span style="font-weight: bold;">Sent:</span></b> Monday, December 5, 2011 7:31 \
AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Grinder-use] \
BandwidthLimiter<br> </font> <br> <div \
id="yiv1068526603"><div>Stefan,</div><div><br></div><div>Note that while bandwidth \
and latency are inversely related, your first request is for a high-latency \
connection, not necessarily a low bandwidth \
connection.<br></div><div><br></div>If you want to simulate high latency adding a PPP \
hop over ssh or similar is usually very effective:<div> <br></div><div>Grinder -> \
PPP end point -> PPP over SSH -> PPP end point -> Application under \
test</div><div><br></div><div>See http://tldp.org/HOWTO/ppp-ssh/ for a \
HOWTO. It is not that complicated if you know Linux.</div> \
<div><br></div><div>Generally I've found that doing bandwidth limiting at the switch \
level is more realistic, as clients and servers are not usually bandwidth limited. A \
good managed switch and a competent network admin should be able to set up QOS to \
rate-limit traffic to any given bandwidth.</div> \
<div><br></div><div>Regards,</div><div>Gary<br><div><br></div><div><div \
class="yiv1068526603gmail_quote">On 5 December 2011 15:08, Stefan Magnus Landrø <span \
dir="ltr"><<a rel="nofollow" ymailto="mailto:stefan.landro@gmail.com" \
target="_blank" href="mailto:stefan.landro@gmail.com">stefan.landro@gmail.com</a>></span> \
wrote:<br> <blockquote class="yiv1068526603gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi there,<br><br>I need to write a \
test with massive amounts of slow connections.<br><br>I've looked at the docs and the \
source, but I'm not sure how it should be implemented. Let's say I want to limit my \
bandwidth to something like 10 kbps - how can I implement such behaviour in a \
BandwidthLimiter?<br>
<br>Cheers,<br><br>Stefan<span class="yiv1068526603HOEnZb"><font color="#888888"><br \
clear="all"><br>-- <br>BEKK Open<br>http://open.bekk.no<br><br> \
</font></span><br>------------------------------------------------------------------------------<br>
All the data continuously generated in your IT infrastructure<br>
contains a definitive record of customers, application performance,<br>
security threats, fraudulent activity, and more. Splunk takes this<br>
data and makes sense of it. IT sense. And common sense.<br>
http://p.sf.net/sfu/splunk-novd2d<br>_______________________________________________<br>
grinder-use mailing list<br>
<a rel="nofollow" ymailto="mailto:grinder-use@lists.sourceforge.net" target="_blank" \
href="mailto:grinder-use@lists.sourceforge.net">grinder-use@lists.sourceforge.net</a><br>
<a rel="nofollow" target="_blank" \
href="https://lists.sourceforge.net/lists/listinfo/grinder-use">https://lists.sourceforge.net/lists/listinfo/grinder-use</a><br>
<br></blockquote></div><br></div></div>
</div><br>------------------------------------------------------------------------------<br>All \
the data continuously generated in your IT infrastructure <br>contains a definitive \
record of customers, application performance, <br>security threats, fraudulent \
activity, and more. Splunk takes this <br>data and makes sense of it. IT sense. And \
common sense.<br><a href="http://p.sf.net/sfu/splunk-novd2d" \
target="_blank">http://p.sf.net/sfu/splunk-novd2d</a><br>_______________________________________________<br>grinder-use \
mailing list<br><a ymailto="mailto:grinder-use@lists.sourceforge.net" \
href="mailto:grinder-use@lists.sourceforge.net">grinder-use@lists.sourceforge.net</a><br><a \
href="https://lists.sourceforge.net/lists/listinfo/grinder-use" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/grinder-use</a><br><br><br> \
</div> </div> </div></body></html>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic