Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


how to generate load in mininet traffic??

asked 2015-06-04 05:43:27 -0700

Ashwini_Mhatre gravatar image

updated 2015-06-04 05:43:54 -0700

Hi all, for testing purpose ,I want to generate load in mininet simulated network,so that some packets gets drop. please let me know if anyone have any hint.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-04 08:12:35 -0700

Nuno gravatar image

Mininet has iperf tool. So you can open the terminal in the nodes you want using xterm command like 'xterm h1' to open terminal for node h1. then just use iperf normally. You can also in the mn terminal do iperf h1 h5 and it will do an iperf during 10 seconds between nodes h1 and h5. In order to the packets get dropped you need a flow rule dropping all packets or just the ones between the hosts you want to drop the packets. The flow rule has many combinations you can do to drop a packet, it may be using their ips, mac addresses and many other fields.

Regards, Nuno B.

edit flag offensive delete publish link more


Thanks Nuno...I want to drop packets due to load in network not by adding Flow rules. currently m setting bandwidth as 0.02 mb using TC --link bw parameter and then genrating traffic using iperf but still its not droping the packets..due to you have any hint regarding this???

Ashwini_Mhatre ( 2015-06-04 20:28:56 -0700 )edit

If you configure queues with a maximum rate it will drop packets if that queue is exceeded. You can create queues in specific and flows to match the parameters you need, associate them to each other. Then you can iperf and the bandwidth won't be higher than the maximum rate you defined on the queues

Nuno ( 2015-06-11 13:09:45 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-06-04 05:43:27 -0700

Seen: 383 times

Last updated: Jun 04 '15