All of lore.kernel.org
 help / color / mirror / Atom feed
* Simulated Packet Delays
@ 2004-06-24 23:33 Joe Clark
  2004-06-25  6:48 ` oumer
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Clark @ 2004-06-24 23:33 UTC (permalink / raw)
  To: netfilter

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




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

end of thread, other threads:[~2004-06-25  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 23:33 Simulated Packet Delays Joe Clark
2004-06-25  6:48 ` oumer

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.