Date: Fri, 26 Nov 2010 11:39:13 +0200 From: Eugene Perevyazko <john@dnepro.net> To: freebsd-ipfw@freebsd.org Subject: Re: two questions:1 relationship between dummynet and wireshark 2 how to add latency for each packet to be sent Message-ID: <20101126093913.GA68982@traktor.dnepro.net> In-Reply-To: <AANLkTi=xPLG4JuJaRxdiRZra%2BYbfkQB5Sn%2B%2B2QAsAnes@mail.gmail.com> References: <AANLkTi=xPLG4JuJaRxdiRZra%2BYbfkQB5Sn%2B%2B2QAsAnes@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101126093913.GA68982>