Results 1 to 5 of 5
Hi everybody!... I'm doing some simulations (using Iperf ) to obtain throughputs values of a link between two gigabit ethernet cards for different delays and different drop probability (using netem ...
- 03-22-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 3
Changing bandwidth during a simulation...
Hi everybody!... I'm doing some simulations (using Iperf) to obtain throughputs values of a link between two gigabit ethernet cards for different delays and different drop probability (using netem) .... Now I have to do a 3minute long simulation in which during the first minute the bandwidth is 1000Mbit/s, 500Mbit/s during the second minute and 1000Mbit/s during the third one....
Does anybody know how can i do this type simulation?
Thank you and sorry for my english....
- 03-23-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
There is the ethtool command which is supposed to be able to change the speed of an ethernet port. You can try that.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-23-2010 #3Just Joined!
- Join Date
- Mar 2010
- Posts
- 3
- 03-23-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
Well, run ethtool ethN where ethN is the ethernet device, such as eth0, and it will tell you what speeds the device actually supports which you can set with ethtool. In my case, the two ports on my system support 10/100/1000mbps in half or full duplex. I would expect that 500mbps would not be supported on any device since it is a non-standard ethernet speed. In that case, you might have to do some kernel mods to be able to arbitrarily throttle the apparent speed of the device. Good luck in that!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-31-2010 #5Just Joined!
- Join Date
- Mar 2010
- Posts
- 3
Simulate a 500Mbps link on a 1000Mbps one...
Hi! I need to simulate a 500Mbps link with a 100ms delay and a loss probability of 0.0001% on an ethernet link between two gigabit ethernet cards...
I tryed to use these commands:
# tc qdisc add dev lo root handle 1:0 netem delay 100ms loss 0.0001
# tc qdisc add dev lo parent 1:1 handle 10: tbf rate 500Mbit buffer XXXX limit YYYYY
But during some simulation throughputs are very low ( 190Kbps....210Kbps....) for different values of XXXX and YYYY.... (I don't want that the loss probability is caused by the buffer and the limit value but only by the loss probability setted on netem...)
What's the problem?
Does anybody know what commands should I use for my purpose?
Thanks.


Reply With Quote

