Simulating Network Latency?
ixmo asks: "I've just come around an interesting problem: to simulate low-bandwidth network links without buying expensive WAN simulators, I can connect two old Cisco routers back to back with serial cables, and control the bandwidth via the 'clock rate' IOS command, but how can I simulate network latency? Is there some OS tool or patch (for Linux/OpenBSD) that allows for tuning of network delay? Any hints?"
This may be the oddest use for this yet- but any large file would work >200MB. Set up your Serial port for a slow connection, say 110 baud, then start an ftp transfer in the background of SP2 from one machine to the other. That ought to simulate latency errors just fine.
SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
Go type 'southern hemisphere monitors' into Google.
Vintage computer games and RPG books available. Email me if you're interested.
I have found kill -s SIGSTOP and kill -s SIGCONT on the server process useful for simulating a temporary network congestion / single packet-drop on a TCP connection.
My thesis (which I am only just starting) deals with networking, and one major part of it is in simulating different network conditions.
;)
I was planning to write my own wrapper around the standard socket operations which will add things like latency, unreliability etc etc (for testing the robustness of a protocol).
However I am looking forward to seeing some of the answers here as maybe I wont have to do as much work as I previously thought
What also may work is lowering the granularity of the timer in the kernel,
ie HERTZ=1
Buttsex.