From: "Joe Clark" <joeclark@iastate.edu>
To: netfilter@lists.netfilter.org
Subject: Simulated Packet Delays
Date: Thu, 24 Jun 2004 18:33:38 -0500 (CDT) [thread overview]
Message-ID: <38331824510441751@webmail.iastate.edu> (raw)
Hi. For a research project, I need to find a way to simulate long delays (ie,
simulating 70ms or so of delay over a typically-1ms delay LAN). From what I've
seen online, the Netfilter mechanism seems to be the best way to do this. There
are some Linux packet filtering facilities available with little or no work
(qdisc, tc, etc), but none seem to do the delay that I'm seeking.
So, from my web search, I would need to write a simple kernel module that would
NF_QUEUE all outgoing packets on a link, and then in user space read the packet
info in, set up a delay-based queuing mechanism, and then dequeue the packets
after the delay and reinject them (NF_ACCEPT via an ioctl?).
Is that the best method? I saw something about libipq, which has to do with how
to use the NF_QUEUE framework in userspace. I also saw a reference that said I
could create a /dev/... device for reading in netfilter queued packets. Which
is the preferred or current way to do it?
Thanks for any help you can provide.
- Joe Clark
next reply other threads:[~2004-06-24 23:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 23:33 Joe Clark [this message]
2004-06-25 6:48 ` Simulated Packet Delays oumer
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=38331824510441751@webmail.iastate.edu \
--to=joeclark@iastate.edu \
--cc=netfilter@lists.netfilter.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.