[ns] change the CBR bit rate

Pedro Vale Estrela pedro.estrela at gmail.com
Wed Aug 30 05:47:53 PDT 2006


You just:

a) get a pointer to the generator and modify its rate_ variable;
b) modify it in TCL as normal, and call this code with tcl.eval("...")


as explained here:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667333



If you find this useful, please contribute to the ns2 wiki with the solution

Pedro Vale Estrela


> -----Original Message-----
> From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf
> Of Albalas F (AT)
> Sent: terça-feira, 29 de Agosto de 2006 22:48
> To: ns-users at ISI.EDU
> Subject: [ns] change the CBR bit rate
> 
> 
> Hi all,
> 
> 
> 
> How can I change (increase or decrease ) the Traffic bit rate during the
> simulation, I mean at the c++ programme.
> 
> 
> 
> Thanks
> 
> Firas
> 
> 




More information about the Ns-users mailing list