[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] VBR traffic
i want to generate variable bit rate traffic, given peak to mean ratio.
Is there anyway to do it in TCL without meddling with C++?
I looked up files ns/cbr_traffic.cc and ns/trafgen.cc. i was trying to
send 'n' (n is dependent on the peak to mean ratio as follows :
if peak to mean ratio is P and mean is A, then Pr{n=1} = 1 -1/P
and Pr{n=P*A +1 - P} = 1/P) fixed size packets per interval in one burst.
but the problem is, this is dealt with in the function timeout() in
ns/trafgen.cc. In that, the packets are sent one at a time with the packet
interarrival time clearly set. How do i send the packets in one burst
without messing with the code in ns/trafgen.cc?
any suggestions/ideas will be greatly appreciated.....
Thanks.
-Srinivasan
********************************************************************************
Srinivasan Jagannathan Graduate Student, Computer Science, UC Santa Barbara
email: [email protected], [email protected]
snail-mail: 6739 El Colegio Rd, #221, Goleta CA 93117
********************************************************************************