two questions:1 relationship between dummynet and wireshark 2 how to add latency for each packet to be sent

Eugene Perevyazko john at dnepro.net
Fri Nov 26 10:16:19 UTC 2010


On Thu, Nov 25, 2010 at 03:31:16PM +0000, nangergong wrote:
> 
> 2 how to add latency for each packet to be sent
> 
>   I want to vary the delays(latencies) for different packets. So, is there a
> way to add latency for for each packet to be sent. For example, bind one
> pipe to one packet. Thank you!

If you need to add random delays you could try several pipes with different delay and "prob" option of ipfw.
Like
  add 1000 prob 0.2 pipe 1
  add 1010 prob 0.2 pipe 2
  add 1020 prob 0.1 pipe 3
etc...
Then you should take into account that with one_pass=1 probability for a 
packet to match 1010 in that case would be (1.0-0.2)*0.2 and 
to match 1020 (1.0-0.2)*(1.0-0.2)*0.1

-- 
Eugene Perevyazko


More information about the freebsd-ipfw mailing list