From: "Burkhard Daniel" <burk@stg.com>
To: Andrew Morton <andrewm@uow.edu.au>
Cc: Andreas Schuldei <andreas@schuldei.org>, linux-kernel@vger.kernel.org
Subject: Re: artificial latency for a network interface
Date: Thu, 28 Jun 2001 23:29:38 -0500 (CDT) [thread overview]
Message-ID: <Pine.GSO.4.10.10106282327330.7836-100000@mcbain> (raw)
In-Reply-To: <3B3C0060.FBDB5F87@uow.edu.au>
I had a similiar problem once, and wrote a module that overwrote the
loopback net device. Since it's loopback, the kernel won't care about
headers.
Yeah, I know: Quick & Dirty.
I made the new loopback put its packets in a queue and then deliver them
after a (adjustable) delay.
If I can still find the source for this, I'll post it here.
Burk.
On Fri, 29 Jun 2001, Andrew Morton wrote:
> Andreas Schuldei wrote:
> >
> > to simulate a sattelite link, I need to add a latency to a
> > network connection.
> >
> > What is the easiest and best way to do that?
> >
> > I wanted to do that using two tun devices.
> > I had hoped to have a routing like this:
> >
> > <-> eth0 <-> tun0 <-> userspace, waiting queue <-> tun1 <-> eth1
>
> yes, that works very well. A userspace app sits on top of the
> tun/tap device and pulls out packets, delays them and reinjects
> them.
>
> The problem is routing: when you send the packet back to the
> kernel, it sends it straight back to you. You need to rewrite
> the headers, which is a pain.
>
> A simpler approach is to use policy routing - use the source
> and destination devices to override the IP addresses. Works
> well. The code is at
>
> http://www.uow.edu.au/~andrewm/packet-delay.tar.gz
>
> It has its own variable bandwidth management as well
> as variable latency. It's for simulating narrowband, high
> latency connections.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2001-06-29 4:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-28 22:39 Andreas Schuldei
2001-06-29 1:18 ` David McWherter
2001-06-29 4:13 ` Andrew Morton
2001-06-29 4:29 ` Burkhard Daniel [this message]
2001-06-29 10:00 ` Pekka Pietikainen
2001-06-29 17:14 ` Maksim Krasnyanskiy
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=Pine.GSO.4.10.10106282327330.7836-100000@mcbain \
--to=burk@stg.com \
--cc=andreas@schuldei.org \
--cc=andrewm@uow.edu.au \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®