All of lore.kernel.org
 help / color / mirror / Atom feed
* Flakeway recipe
@ 2020-05-19 10:58 Rich Brown
  2020-05-19 15:24 ` tincanteksup
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rich Brown @ 2020-05-19 10:58 UTC (permalink / raw)
  To: lartc

Folks,

I frequently want to create a flakey gateway ("flakeway") that disrupts network traffic for testing. It would:

- Drop a specified fraction of packets
- Delay packets
- Limit bandwidth
- etc.

Does anyone have a script that can be invoked/turned on and off for an experiment? Thanks.

Rich

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Flakeway recipe
  2020-05-19 10:58 Flakeway recipe Rich Brown
@ 2020-05-19 15:24 ` tincanteksup
  2020-05-19 15:54 ` Rich Brown
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tincanteksup @ 2020-05-19 15:24 UTC (permalink / raw)
  To: lartc

You could try https://github.com/coreemu/core

It will do what you want but possibly not the way you want it.



On 19/05/2020 11:58, Rich Brown wrote:
> Folks,
> 
> I frequently want to create a flakey gateway ("flakeway") that disrupts network traffic for testing. It would:
> 
> - Drop a specified fraction of packets
> - Delay packets
> - Limit bandwidth
> - etc.
> 
> Does anyone have a script that can be invoked/turned on and off for an experiment? Thanks.
> 
> Rich
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Flakeway recipe
  2020-05-19 10:58 Flakeway recipe Rich Brown
  2020-05-19 15:24 ` tincanteksup
@ 2020-05-19 15:54 ` Rich Brown
  2020-05-19 17:59 ` Jay Vosburgh
  2020-05-24  2:10 ` tincanteksup
  3 siblings, 0 replies; 5+ messages in thread
From: Rich Brown @ 2020-05-19 15:54 UTC (permalink / raw)
  To: lartc

On May 19, 2020, at 11:24 AM, tincanteksup <tincanteksup@gmail.com> wrote:
> 
> You could try https://github.com/coreemu/core
> 
> It will do what you want but possibly not the way you want it.

Ahah! This is a fascinating solution to the question I asked. (Thank you.) Unfortunately, the question I asked isn't what I really wanted. Let me start again.

I am looking for a script/set of scripts that will disrupt traffic as described below.

I envision it would contain a combination of tc + iptables commands to modify the parameters. Bonus points if it can run on an OpenWrt router (Linux kernel 4.14 or newer).

Thanks again.

> On 19/05/2020 11:58, Rich Brown wrote:
>> Folks,
>> I frequently want to create a flakey gateway ("flakeway") that disrupts network traffic for testing. It would:
>> - Drop a specified fraction of packets
>> - Delay packets
>> - Limit bandwidth
>> - etc.
>> Does anyone have a script that can be invoked/turned on and off for an experiment? Thanks.
>> Rich

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Flakeway recipe
  2020-05-19 10:58 Flakeway recipe Rich Brown
  2020-05-19 15:24 ` tincanteksup
  2020-05-19 15:54 ` Rich Brown
@ 2020-05-19 17:59 ` Jay Vosburgh
  2020-05-24  2:10 ` tincanteksup
  3 siblings, 0 replies; 5+ messages in thread
From: Jay Vosburgh @ 2020-05-19 17:59 UTC (permalink / raw)
  To: lartc

Rich Brown <richb.hanover@gmail.com> wrote:

>On May 19, 2020, at 11:24 AM, tincanteksup <tincanteksup@gmail.com> wrote:
>> 
>> You could try https://github.com/coreemu/core
>> 
>> It will do what you want but possibly not the way you want it.
>
>Ahah! This is a fascinating solution to the question I asked. (Thank you.) Unfortunately, the question I asked isn't what I really wanted. Let me start again.
>
>I am looking for a script/set of scripts that will disrupt traffic as described below.
>
>I envision it would contain a combination of tc + iptables commands to modify the parameters. Bonus points if it can run on an OpenWrt router (Linux kernel 4.14 or newer).

	I've used tc netem for this type of thing (packet loss, induced
delay, etc).  "man tc-netem" for the documentation, and the "deBloat"
[0] github repository has some complicated examples, and you can find
simpler ones via google.  The tc bits are all in the kernel, so as long
as your kernel has netem configured, it should be good to go, e.g.,

tc qdisc add dev ethX root netem delay 20ms

	for a simple 20ms delay, or

tc qdisc add dev ethX root netem loss gemodel 0.5% 10% 50% 0.01%

	for the Gilbert-Elliot model with probability-based loss bursts.

	-J

[0] https://github.com/dtaht/deBloat

>Thanks again.
>
>> On 19/05/2020 11:58, Rich Brown wrote:
>>> Folks,
>>> I frequently want to create a flakey gateway ("flakeway") that disrupts network traffic for testing. It would:
>>> - Drop a specified fraction of packets
>>> - Delay packets
>>> - Limit bandwidth
>>> - etc.
>>> Does anyone have a script that can be invoked/turned on and off for an experiment? Thanks.
>>> Rich
>

---
	-Jay Vosburgh, jay.vosburgh@canonical.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Flakeway recipe
  2020-05-19 10:58 Flakeway recipe Rich Brown
                   ` (2 preceding siblings ...)
  2020-05-19 17:59 ` Jay Vosburgh
@ 2020-05-24  2:10 ` tincanteksup
  3 siblings, 0 replies; 5+ messages in thread
From: tincanteksup @ 2020-05-24  2:10 UTC (permalink / raw)
  To: lartc

Hi Rich

On 19/05/2020 16:54, Rich Brown wrote:
> On May 19, 2020, at 11:24 AM, tincanteksup <tincanteksup@gmail.com> wrote:
>>
>> You could try https://github.com/coreemu/core
>>
>> It will do what you want but possibly not the way you want it.
> 
> Ahah! This is a fascinating solution to the question I asked. (Thank you.) Unfortunately, the question I asked isn't what I really wanted. Let me start again.
> 
> I am looking for a script/set of scripts that will disrupt traffic as described below.
> 
> I envision it would contain a combination of tc + iptables commands to modify the parameters. Bonus points if it can run on an OpenWrt router (Linux kernel 4.14 or newer).
> 
> Thanks again.
> 
>> On 19/05/2020 11:58, Rich Brown wrote:
>>> Folks,
>>> I frequently want to create a flakey gateway ("flakeway") that disrupts network traffic for testing. It would:
>>> - Drop a specified fraction of packets
>>> - Delay packets
>>> - Limit bandwidth
>>> - etc.
>>> Does anyone have a script that can be invoked/turned on and off for an experiment? Thanks.
>>> Rich
> 

FYI: coreemu does contain some reasonable examples of the scripts you 
are looking for.

What I like is, with some imagination, I can use them more-or-less anywhere.

And plug in my own too ;-)

A. N. Other Rich.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-24  2:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 10:58 Flakeway recipe Rich Brown
2020-05-19 15:24 ` tincanteksup
2020-05-19 15:54 ` Rich Brown
2020-05-19 17:59 ` Jay Vosburgh
2020-05-24  2:10 ` tincanteksup

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.