How to control the bandwidth of a network?
BY Vyshnavi.J
3 years ago
0 comments comment

Network emulation is used for testing the performance of real applications over a virtual network. It is the act of introducing a device to a test network that alters packet flow in such a way as to mimic the behavior of a network. Netem is a network emulator tool provides functionality for testing protocols. It will emulate the network properties of wide-area networks.

Netem is already enabled in the kernel and a current version of iproute2. The netem kernel component is enabled under:

  1. Networking
  2. Networking Options
  3. QoS and/or fair queuing
  4. Network emulator

Iproute2 is a collection of utilities for controlling TCP/IP networking and traffic control in Linux. Netem is controlled by the command line tool 'tc' and it is part of the iproute2 package of tools.

Commands for network emulation:

Note: Here, I have used ethe1 for the interface in the examples below; you should use the name of your specific Ethernet card

  1. To add constant delay to every packet going out through a specific interface:
    $tc qdisc add dev ethe1 root netem delay 80ms
    A ping test to this host should show an increase of 80ms in the delay to replies.
  2. To add random variance
    $tc qdisc change dev ethe1 root netem delay 80ms 10ms
  3. The following command will add +/- 10 ms of jitter to the 80ms of delay:
    $tc qdisc add dev ethe1 root netem delay 80ms 10ms
  4. To turn off/delete the qdisc from a specific interface (in this case, ethe1):
    $tc qdisc del dev ethe1 root
  5. Typically, the delay in a network is not uniform. It is more common to use a normal distribution to describe the variation in delay. Netem can accept a non-uniform distribution:
    $tc qdisc change dev ethe1 root netem delay 100ms 20ms distribution normal

Please get in touch with us if any queries



on 04th April 2007 / by webmaster
Linux is the epitome of the FLOSS model. Technical Solution Linux installation Leave a reply Your email address will not be published. Required fields are marked * Dewey J. Corl (not verified) access_time 24 May 2020 - 18:59 Linux is not ready for the general public! (I am a Ubuntu user). For proof, 1. try to simply print labels on a Dymo label printer. It takes a LOT of work to get to the ease of label printing already available in Windows and Mac. 2. try syncing a modern Palm based PDA. Yes, jpilot and others will sync the main data, but pictures and midi files do not get transferred without a lot of extra setup. These are examples of applications that are not ready for the general public. Since an operating system only supports applications, Linux is not ready to be a common desktop for the general public. While we are waiting for the applications to catch up, keep up the good work!! Anoop John (not verified) access_time 24 May 2020 - 18:59 Dewey Yes you may be right. But these are not applications that a common man would use. A common man would use one of these applications - Internet browser, Chat Client, Email Client, Document Writer, Presentation Creator, Spreadsheet Editor, Movie Viewer, Music Player, CD/DVD Writer. Both examples you cited are more specific applications that only a small percentage of the whole population uses. It will take time before those hardware vendors identify the need from their perspective to address the Linux community. Krishnadas (not verified) access_time 24 May 2020 - 18:59 Dear Mr Anoop, Thank you very much for the free installation of LINUX done in my PC. I am getting immersed in the LINUX and seeing the versatility. To my surprise, I am able to read one of my old backup CD(wherein lot of my valuable file exist) done in DIRECT CD wizard (a custom cd writing software of Easy Cd creator in WIN98) which could not be read in XP. Installation of old version of easycd creator/direct cd program was not possible in XP. I thought that possible i lost all data. Very pleasant start! Srikanth N. S. (not verified) access_time 24 May 2020 - 18:59 Hi Anoop, My friend is thrilled with Ubuntu. One of his grouses with windows was that after OS installation, everything else is to be installed separately which is a real headache. WHereas if u install Linux, everything is installed as a package and he is thrilled to bits! Let linux installation spread in Trivandrum and your service in this direction is highly appreciated. Kepp up the good work Regards. PDA Freak (not verified) access_time 24 May 2020 - 18:59 Is it possible to install linux on a packardbell notebook ? Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.