hi,
I am new to FreeBSD. I am using Dummynet shaper. Can someone give me an idea how to squeeze and release bandwidth over time? For example: total experimentation time is 10 seconds. close bandwidth at 2 seconds and release after 4 seconds to 10 seconds. Any shell script with ipfw commands will do it?
I had an idea of an algorithm like this:
1. start script at time 't'.
2. create a pipe using ipfw from source to destination with a bandwith of 1Mbit/s.
3. after 2 seconds of script starting close bandwidth i.e, 0 bit/s.
4. restore the bandwidth after 4 seconds (back to 1Mbit/s).
5. after 10 seconds exit from the script.
Am I going in a right way? Or can anyone suggest a better algorithm than this?
Thanks in advance.
br,
boys21
I am new to FreeBSD. I am using Dummynet shaper. Can someone give me an idea how to squeeze and release bandwidth over time? For example: total experimentation time is 10 seconds. close bandwidth at 2 seconds and release after 4 seconds to 10 seconds. Any shell script with ipfw commands will do it?
I had an idea of an algorithm like this:
1. start script at time 't'.
2. create a pipe using ipfw from source to destination with a bandwith of 1Mbit/s.
3. after 2 seconds of script starting close bandwidth i.e, 0 bit/s.
4. restore the bandwidth after 4 seconds (back to 1Mbit/s).
5. after 10 seconds exit from the script.
Am I going in a right way? Or can anyone suggest a better algorithm than this?
Thanks in advance.
br,
boys21