Hi All, Our website moved to a new URL. Please bookmark the new link: https://ns2bloggers.blogspot.com/

Friday 25 April 2014

VARIABLE BIT RATE [VBR] IMPLEMENTATION IN NS2

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:

  1. Include vbr_traffic.o in Makefile.in 
  2. Preferrably set the default values in /home/user/Desktop/ns-allinone-2.35/ns-2.35/tcl/lib 
  3. Run ./configure in your ns-allinone-2.35 directory 
  4. Run make depend in ns-allinone-2.35
  5. 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


For more mail to ns2blogger@gmail.com




4 comments :

  1. make: *** No rule to make target `vbr_traffic.o', needed by `ns'. Stop.

    i am getting these error after make

    ReplyDelete
  2. this means vbr_traffic.cc is missing
    place it in ns-allinone-2.35/ns-2.35/tools/vbr_traffic.cc

    ReplyDelete
  3. How make vbr_traffic.o file

    ReplyDelete