From: Jay Vosburgh <jay.vosburgh@canonical.com>
To: lartc@vger.kernel.org
Subject: Re: Flakeway recipe
Date: Tue, 19 May 2020 17:59:05 +0000 [thread overview]
Message-ID: <27647.1589911145@famine> (raw)
In-Reply-To: <8466BBB3-E648-4F5D-B8B0-1DD39CE60221@gmail.com>
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
next prev parent reply other threads:[~2020-05-19 17:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-05-24 2:10 ` tincanteksup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27647.1589911145@famine \
--to=jay.vosburgh@canonical.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.