Skip to contentSkip to conversation

Simulated latency

LARTC Morey ixipetl 3 participants 3 messages Sep 25, 2003 – Sep 28, 2003

lore
Share & tools
lore
#0 lore raw

This seems like it ought to be simple, but so far, no joy. I need to simulate latency in a network connection, e.g. a sattelite link, but can't figure out how to do that. I don't need to drop packets or otherwise limit rates, just introduce certain fixed amounts of latency.
I know about NIST Net, but would rather use iptables, ip, tc, etc. Any
ideas?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Have you looked into Ethloop? Information can be found on the HTB site:
http://luxik.cdi.cz/~devik/qos/ethloop/
I know it is primarily used for testing qdiscs. I'm not sure if it will simulate the latency, but it may be worth looking into.

Walt

----- Original Message -----
From: "Morey ixipetl" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, September 25, 2003 11:27 AM
Subject: [LARTC] Simulated latency

Quoted 9 lines

This seems like it ought to be simple, but so far, no joy. I need to simulate latency in a network connection, e.g. a sattelite link, but can't figure out how to do that. I don't need to drop packets or otherwise limit rates, just introduce certain fixed amounts of latency.
I know about NIST Net, but would rather use iptables, ip, tc, etc. Any
ideas?

Quoted 5 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

****************************************************************************
******************

Quoted 1 line

* This message has been scanned by CityNET's email scanner for viruses and

dangerous content *

Quoted 1 line

* and is believed to be clean. CityNET is proud to use MailScanner. For

more information *

Quoted 1 line

* concerning MailScanner, visit http://www.mailscanner.info

*

Quoted 1 line

****************************************************************************
******************

Quoted 1 line

**********************************************************************************************
* This message has been scanned by CityNET's email scanner for viruses and dangerous content *
* and is believed to be clean. CityNET is proud to use MailScanner. For more information *
* concerning MailScanner, visit http://www.mailscanner.info *
**********************************************************************************************

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Morey ixipetl

You could use the iptables QUEUE target. It allows you to "catch" packets in a user space program (e.g. perl), do stuff with it (or nothing: sleep) and then ACCEPT the packet (or DROP).

It's a pretty crude method, but it works.

----- Original Message -----
From: "Morey ixipetl" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, September 25, 2003 5:27 PM
Subject: [LARTC] Simulated latency

Quoted 6 lines

This seems like it ought to be simple, but so far, no joy. I need to simulate latency in a network connection, e.g. a sattelite link, but can't figure out how to do that. I don't need to drop packets or otherwise limit rates, just introduce certain fixed amounts of latency.
I know about NIST Net, but would rather use iptables, ip, tc, etc. Any
ideas?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/