开发者

Bursty packet traffic in Java

开发者 https://www.devze.com 2023-04-12 08:15 出处:网络
I have a requirement to simulate a network traffic which is Poiss开发者_C百科on and Bursty (Long or Heavy Tailed) inter arrival times. I could do the Poisson part as

I have a requirement to simulate a network traffic which is Poiss开发者_C百科on and Bursty (Long or Heavy Tailed) inter arrival times. I could do the Poisson part as

delay = - log(1 - rand.nextDouble()) * delay;

However, I am stuck with simulating the Bursty traffic simulation. Could someone hint/point me to the right web resource or code to achieve this? Thanks..


The easiest and safest thing might be to download a library that supports various types of long-tailed distributions, such as a Pareto distribution, and call that API's nextRandom method (or the equivalent).

0

精彩评论

暂无评论...
验证码 换一张
取 消