tcl script for VBR traffic
how to write tcl script for VBR traffic
|
Is this the correct code for generating VBR Traffic
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 I have got this code from http://ns2blogger.blogspot.in/2014/0...tation-in.html I am using NS-2.35 Version |
← ref. #3.
http://ns2blogger.blogspot.in/2014/0...tation-in.html .. is incomplete. Seems based on http://code.google.com/p/txsys/sourc...ate%253Dclosed → $ svn checkout http://txsys.googlecode.com/svn/trunk/ txsys-read-only → txsys-read-only/ubiquitous/ns2/src/{ .., .., vbr_traffic.cc }, txsys-read-only/ubiquitous/ns2/vbr/ \ { cbr-sim.tcl, vbr-expo.tcl, vbr-normal.tcl, vbr.plot, vbr-uniform.tcl }. Quote:
- |
Is VBR Traffic and Exponential traffic same?
what are Makefile.in & vbr_traffic.o? Where can we get them? How to Include vbr_traffic.o in Makefile.in? |
← ref. #3.
Quote:
`vbr_traffic.o´ is an object file. → Is the compiled result from vbr_traffic.cc → And is linked together with ~400 other objects, into one file : ns. Please do : $ svn checkout http://txsys.googlecode.com/svn/trunk/ txsys-read-only ... to get ( also ) .... txsys-read-only/ubiquitous/ns2/{ Makefile.in, src/vbr_traffic.cc } Quote:
https://www.google.com/webhp?hl=all&...l=en&q=ns2+vbr - |
How to include vbr_traffic.cc in Makefile.in
|
← ref. #7.
» include vbr_traffic.cc in Makefile.in « : Read the link in your post #3 : "" 1. Include vbr_traffic.o in Makefile.in "". I.e. files.cc are not mentioned in a Makefile*. The objects to be created are. Makefile.in is a text file. Easy to read. Or use 'grep' : Code:
$ cd txsys-read-only/ubiquitous/ns2/ Which you can see in your Editor, when opening Makefile.in for reading. .... So nothing to add ! vbr_traffic.o is already present. - |
the Makefile in my NS-2.35 has a little difference in code when compared to the Makefile in http://txsys.googlecode.com/svn/trun...s2/Makefile.in. Should I repalce the original with this new one?
|
← ref. #9.
Quote:
<TAB>tools/expoo.o tools/cbr_traffic.o tools/vbr_traffic.o \ ... and make sure that vbr_traffic.cc is in tools/. And then run ./install in the top directory ns-allinone-2.35/. - |
what is "Run make depend in ns-allinone-2.35"?How is this done?
|
← ref. #11.
All commands are done from the script ns-allinone-2.35/install : That's the command $ ./install "install" is a text file, see the ns-2.35 section, lines 531-553, if you are using the 2011 version ns-allinone-2.35.tar.gz . If it's the updated version, 2014 : Then the lines 578-587. Conclusion : The way to run 'make' is $ ./install Besides that, ./configure && make clean && make doesn't work in ns-2.35. That was for the earlier ns2 versions. Also : Saved some time when just running 'make'. Old slow computer could use ~15 minutes for ./install. Not an issue with a modern computer. 'make depend' is done automatically in the right way with ./install, which runs 'make' in ns-2.35/. A manual 'make depend' has never been attempted. Somebody wrote 'make depend' many years ago. And all the young students just repeat it in their texts. → → Don't believe everything you read on the Internet. - |
My Makefile is:
# # Copyright (c) 1991,1993 The Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the Computer Systems # Engineering Group at Lawrence Berkeley Laboratory. # 4. Neither the name of the University nor of the Laboratory may be used # to endorse or promote products derived from this software without # specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @(#) $Header: /cvsroot/nsnam/nam-1/Makefile.in,v 1.54 2011/11/02 16:31:26 tom_henderson Exp $ # Code:
# Top level hierarchy Where should I include tools/vbr_traffic.o\? |
1 Attachment(s)
Ihave run the command ./install
But I am getting some error Ihave attached the screenshot of the error Please suggest the solution |
← ref. post #13.
Not Makefile, but 204 random lines from the Makefile.in . The valid Makefile.in, ns-2.35 has 625 lines. * Code like post #13 must be in CODE tags. You can see how code tags look like in post #8. Please edit post #13 to code tags, or delete the most .. . http://www.linuxquestions.org/questi....php?do=bbcode . http://www.linuxquestions.org/questi...gs-4175464257/ I.e. it's the ` # ´ button in the 'Advanced Editor'. Editing : The 'Edit' button → → "Go Advanced". .. Or you can type [/code] at code end, and [code] at code text start. ← post #14 : You have missing "ns2 prerequisites". Which OS are you using ? Name and version, please. Prerequsites, Ubuntu : $ sudo apt-get install \ g++ g++-4.4 automake patch make libtool libxmu-dev xgraph Fedora, CentOS : # yum install gcc-c++ autoconf automake patch make libtool libXmu-devel - |
All times are GMT -5. The time now is 11:11 AM. |