We just made a VBR application that randomly change rate or bursts depending on parameters set.
In order to use it in ns you have to follow:
- Include vbr_traffic.o in Makefile.in
- Preferrably set the default values in /home/user/Desktop/ns-allinone-2.35/ns-2.35/tcl/lib
- Run ./configure in your ns-allinone-2.35 directory
- Run make depend in ns-allinone-2.35
- Run make
Now your VBR is ready.
Default values in ns-default.tcl:
Application/Traffic/VBR set rate_ 448Kb ;# corresponds to interval of 3.75ms
Application/Traffic/VBR set rate_dev_ 0.25;
Application/Traffic/VBR set rate_time_ 2.0;
Application/Traffic/VBR set burst_time_ 1.0;
Application/Traffic/VBR set n_o_changes_ 10;
Application/Traffic/VBR set time_dev_ 0.5;
Application/Traffic/VBR set constant_ false;
Application/Traffic/VBR set maxrate_ 648Kb;
Application/Traffic/VBR set packetSize_ 210;
Application/Traffic/VBR set maxpkts_ 268435456; # 0x10000000
For vbr .cc file, Click here
For ns-default.tcl, Click here
VBR SYNTAX:
set vbr [new Application/Traffic/VBR]
$vbr set rate_ 448Kb
$vbr set rate_dev_ 0.25
$vbr set rate_time_ 2.0
$vbr set burst_time_ 1.0
$vbr set n_o_changes_ 10
$vbr set time_dev_ 0.5
$vbr set constant_ false
$vbr set maxrate_ 648Kb
$vbr set packetSize_ 210
$vbr set maxpkts_ 268435456
$vbr attach-agent $udp
Comments
Post a Comment