9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bakul Shah <bakul+plan9@bitblocks.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Inducing artificial latency
Date: Wed, 16 Jun 2010 16:43:09 -0700	[thread overview]
Message-ID: <20100616234310.082625B76@mail.bitblocks.com> (raw)
In-Reply-To: Your message of "Wed, 16 Jun 2010 18:31:17 EDT." <e685bf7a4481aefc058bb73456d0c7ac@kw.quanstro.net>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]

On Wed, 16 Jun 2010 18:31:17 EDT erik quanstrom <quanstro@quanstro.net>  wrote:
> On Wed Jun 16 18:17:45 EDT 2010, nemo@lsub.org wrote:
> > On programs where I control the client and the server, I simulated
> > it by spawning a process that did sleep and then do the write.
> >
> > That is, you could send many things at once (i.e., same bandwidth)
> > but you could pretend the thing was delayed.
> > One tricky point was to be sure that sends were still in order, but that
> > was a non-issue in my case.
> >
> > Perhaps being able to trigger delays on ip for testing/measuring
> > with a ctl would be a lot better, in the line of what you've done.
>
> the ethernet, or shim ethernet, device seems like a better place for this.

Agreed.

[Thinking aloud...]
You'd need some plumbing in devether to demultiplex incoming
packets addressed to this device (assuming it has its own MAC
address).

Something like a tap device would allow you to simulate high
latency link, a level-2 bridge or whatever in usercode.

[BTW, is there a strong reason why devether.c is in 9/pc/ and
 not 9/port/?  vlan code can be factored out from various
 ether*.c to a similar portable file (if not devether.c)]

> ip is not the only protocol!  that's what loopback(3) does, but without
> the real network.  it would be good to plug loopback or similar into a real
> ethernet.  it's also worth looking at loopback's implementation strategy,

Or bridge(3).

> which allows for µs delays.  sleep is just too course-grained for my
> testing.
>
> dialing up random reordering would seem to me to be a feature at
> this level.

A user level simulator will make it easy to add random drops,
reordering, filtering, NAT, etc.



  parent reply	other threads:[~2010-06-16 23:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-15 21:29 John Floren
2010-06-15 21:39 ` Jorden M
2010-06-15 22:06   ` Enrique Soriano
2010-06-15 21:39 ` erik quanstrom
2010-06-15 21:53   ` David Leimbach
2010-06-15 21:59     ` erik quanstrom
2010-06-15 21:45 ` Devon H. O'Dell
2010-06-15 22:43   ` John Floren
2010-06-15 23:01     ` Devon H. O'Dell
2010-06-16 19:04   ` John Floren
2010-06-16 22:15     ` Francisco J Ballesteros
2010-06-16 22:31       ` erik quanstrom
2010-06-16 22:58         ` EBo
2010-06-16 23:43         ` Bakul Shah [this message]
2010-06-17  0:10           ` erik quanstrom
2010-06-17  2:02             ` Bakul Shah
2010-06-17  3:32               ` erik quanstrom
2010-06-15 21:58 ` Gorka Guardiola
2010-06-15 22:07   ` erik quanstrom
2010-06-15 22:14     ` Gorka Guardiola
2010-06-22 14:53       ` John Floren
2010-06-22 15:03         ` John Floren
2010-06-16  5:20 ` Skip Tavakkolian

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=20100616234310.082625B76@mail.bitblocks.com \
    --to=bakul+plan9@bitblocks.com \
    --cc=9fans@9fans.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).