Test robustness of your networked applications using netem


Networked applications need to handle a bad network. Bad networing conditions such as high latency, dropped packets, packet corruption, delayed packets, out-of-order packets etc can play havoc with your networking code. Luckily Linux provides a kernel level tool than you can use to simulate such conditions, called netem.

You can create two networks and use a linux box to bridge these two networks. Then just configure netem appropriately to simulate bad networking conditions between these two networks.

You can enable netem module under Networking support, Networking options, QoS and/or fair queueing

QoS and/or fair queuing

netem

You’ll need the tc utility from iproute2 package to configure netem. If you’re building an embedded Linux system with Buildroot, you can enable that package under Target packages, Networking applications

iproute2

2 thoughts on “Test robustness of your networked applications using netem

  1. hi, im planning to do my final year project based on simulation done in netem. Can you forward me any progams written in netem and also is there any way to check the syntax in netem.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s