0
votes

I have to generate a periodic stream of packets with period Ta, burst rate Rb with burst duration of Tb. For example every 50ms I want to generate packets of size 5Mb for a duration of 10ms. What are the parameters I should manipulate to achieve this. I'm new to ns2 so, so far I know of: set packet_size_ and set rate_ But how do I include the burst duration? Are there any configurable parameters I'm missing?

1
Where is the code? - Chris311
Welcome to SO. Please have a look at the tour. You may also want to check What topics can I ask about, and How to ask a good question, and The perfect question, and how to create a Minimal, Complete and Verifiable example. Post the code you have tried and the errors you have received. Be as specific as possible as it will lead to better answers. - José Luis

1 Answers

2
votes

By default, I don't think you can do such thing in ns2. You have to change application file such as CBR.cc manually to support it.