[Ilugc] Tools for simulating network issues

  • From: benignbala@xxxxxxxxx (Balachandran Sivakumar)
  • Date: Mon, 25 Jun 2012 10:21:43 +0530

Hi Suraj,

On Mon, Jun 25, 2012 at 10:15 AM, Suraj Kumar <suraj at careergear.in> wrote:

Hi,

I'm looking for ways to simulate network issues. Specifically, the
following scenarios:

IP
?- packet loss
TCP
?- connection establishment takes time
?- connection established, but server application is slow / unresponsive
?- piled up connections / running out of sockets


        I guess the tc tool would be of use to you. You can do
something like this:

# tc qdisc add dev eth0 root netem delay 100ms

for adding a 100ms delay to all packets. It can be deleted later. tc
lets us do a lot of things. This was just an example. A wrapper script
over tc should be able to do the job.

The end goal is to expose learners to these problems and be able to show
how tools like netstat or collectd's graphs will behave upon each scenario.


        Nice way to teach :) Hope colleges do something like this. Thanks


-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda

Mail: benignbala at gmail.com
Blog: http://benignbala.wordpress.com/

Other related posts: