Insertion steps of VBR into NS2.34
Hi, this is khan. I am facing problem while inserting VBR code into NS2.34 of ubuntu version10.10 OS
I have done the simulation according to your steps from the the site http://www.isi.edu/nsnam/archive/ns-.../msg05051.html but i was unable to configure that completely it showing like as follows by using command sudo ./configure. i got the following erro as shown below config.status: creating indep-utils/webtrace-conv/ucb/ > Makefile > config.status: creating indep-utils/webtrace-conv/dec/Makefile > config.status: creating indep-utils/webtrace-conv/nlanr/Makefile > config.status: creating indep-utils/webtrace-conv/epa/Makefile > config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile > config.status: creating autoconf.h > config.status: autoconf.h is unchanged error....... > sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ sudo make > make: *** No rule to make target `tools/VBR_traffic.o', needed by `ns'. > Stop. > sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ could you please help me how to sort out this problem |
Welcome to LQ.
Quote:
So where did you place the 'VBR_traffic.cc' file ? The code is ten years old and is meant for ns-2.1.xx : It may not work at all. .. |
Insertion of VBR into NS2.34
I placed vbr.traffic.cc in ns-allinone-2.34/ns-2.34/tools.
Can you please tell me new version steps. And I am using Ubuntu 10.10 OS then what I have to do please tell me Steps for to insert. Its really urgent to me. thank you |
Quote:
..... Not vbr_traffic.o 2) If the file name is 'VBR_traffic.cc', the Makefile must say tools/VBR_traffic.o I.e. the file names must match, it is either lower case or upper case, both. VBR is not the same as vbr : In Linux those are totally different names : Looks like you have two typos. ( vbr.traffic is not vbr_traffic ) .. |
Good news : The file compiles perfectly in ns-2.34 : g++-4.4.1 was used.
Name = vbr_traffic.cc Line 183 in the Makefile : tools/vbr_traffic.o\ |
how do i create VBR_traffic.cc
Please can you tell me how do I create VBR-traffic.cc and VBR_traffic.o
please help me the steps |
1 Attachment(s)
Quote:
The two words vbr_traffic.cc, vbr_traffic.o must be equal. No mix up with "small letters" / "big letters", a hyphen / no hyphen. The code for vbr_traffic.cc is here http://www.isi.edu/nsnam/archive/ns-.../msg05051.html → → ns-2.34/tools/vbr_traffic.cc : Rename the attachment to vbr_traffic.cc, and use it. Line 183 in the Makefile : tools/vbr_traffic.o\ Save ns-allinone-2.34/ns-2.34/ns to a new name (ns234), and delete ns. Run make : a new ns is created. ( ns-dtn.) .. |
Insertion of VBR code into ns-allionone-2.34
tools/vbr_traffic.o\ I saved file in ns-allinone-2.34/ns-2.34/makefilet then I saved vbr_traffic.cc in ns-allinone-2.34/ns-2.34/tools, then try to save ns as ns234.But I was unable to do that. Actually I dont know how to do. I am totally new to this.
Before that I want to tell you one thing I have installed ns-allinone-2.34 according to below site in that I used cc= gcc-4.3 in ns-allinone-2.34/otcl-1.13/makefile. http://getch.wordpress.com/2010/10/2...n-ubuntu10-10/ but my gcc version is 4.4.5. please can you clear my doubts. thanks for help |
'cd ns-allinone-2.34/ns-2.34/ && mv ns ns234 && make'
It may be a good idea to use g++-4.3 for the 'make' : Makefile, line 36 : CC = gcc-4.3 Makefile, line 37 : CPP = g++-4.3 |
Insertion steps of VBR into NS2.34
After doing all the above steps which told I got the following error. it showing autoconf.h unchanged . please can u help me
sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes No .configure file found in current directory Continuing with default options... checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ANSI C header files... (cached) yes checking for string.h... (cached) yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that g++ can handle -O2... no checking if C++ libraries work without any namespace... no checking if C++ libraries work with namespace std... yes checking if STL works without any namespace... no checking if STL works with namespace std... yes checking should use STL... yes checking for tcl.h... -I../include checking for tclInt.h... -I../include checking for libtcl8.4... -L../lib -ltcl8.4 checking for init.tcl... ../lib/tcl8.4 checking for http.tcl... ../lib/tcl8.4/http1.0 checking Tcl http.tcl library... yes checking for tclsh8.4.18... no checking for tclsh8.4... ../bin/tclsh8.4 checking for tk.h... -I../include checking for libtk8.4... -L../lib -ltk8.4 checking for tk.tcl... ../lib/tk8.4 checking for otcl.h... -I../otcl checking for libotcl1.13... -L../otcl -lotcl checking for tclcl.h... -I../tclcl-1.19 checking for libtclcl... -L../tclcl-1.19 -ltclcl checking for tcl2c++... ../tclcl-1.19 checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... yes checking for XShmAttach in -lXext... yes checking for libtcldbg... no checking dmalloc... not requested with --with-dmalloc checking for perl... /usr/bin checking for ANSI C header files... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fenv.h usability... yes checking fenv.h presence... yes checking for fenv.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking for main in -lm... yes checking for bcopy... yes checking for bzero... yes checking for fesetprecision... no checking for feenableexcept... yes checking for getrusage... yes checking for sbrk... yes checking for snprintf... yes checking return type of random... long checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for u_int8_t... yes checking for u_int16_t... yes checking for u_int32_t... yes checking for u_char... yes checking for u_int... yes checking for strtoq... yes checking for strtoll... yes checking size of long... 8 checking for strtol... yes checking for __int64_t... no checking for long long... yes checking for int64_t... yes checking which kind of 64-bit int to use... int64_t checking system version (for dynamic loading)... Linux-2.6.35-27-generic checking for dlopen in -ldl... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for ns library name... libns.so checking for struct ether_header... found checking for struct ether_addr... found checking for addr2ascii... no checking for Linux compliant tcphdr... found checking for BSD compliant tcphdr... not found checking for socklen_t... yes checking for main in -lpcap... no checking to make nse... no Explicitly disabling static compilation checking for dlopen in -ldl... (cached) yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating tcl/lib/ns-autoconf.tcl config.status: creating indep-utils/webtrace-conv/ucb/Makefile config.status: creating indep-utils/webtrace-conv/dec/Makefile config.status: creating indep-utils/webtrace-conv/nlanr/Makefile config.status: creating indep-utils/webtrace-conv/epa/Makefile config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile config.status: creating autoconf.h config.status: autoconf.h is unchanged |
Insertion steps of VBR into NS2.34
1 Attachment(s)
When hI was try to make then i got the follwoing and I am sending make file in attachment. please have look at that file
sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ make g++-4.3 -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/sadaq/ns-allinone-2.34/tclcl-1.19 -I/home/sadaq/ns-allinone-2.34/otcl -I/home/sadaq/ns-allinone-2.34/include -I/home/sadaq/ns-allinone-2.34/include -I/home/sadaq/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o gen/ns_tcl.o gen/ns_tcl.cc make: g++-4.3: Command not found make: *** [gen/ns_tcl.o] Error 127 sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34$ |
Quote:
|
If you haven't got g++-4.3 , I guess you will have to install it ?
sudo apt-get install g++-4.3 |
VBR generation
I have done all the above step. and I installed g++-4.3 also.
then i configured then i got same autoconf.h uncganged and VBR not created like CBR as folllows sadaq@ubuntu:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ls cbrgen.tcl README setdest. did you understand my problem or not please ........... help me thanks |
Quote:
.. You will create ns-2.34/tools/vbr_traffic.o , which is linked into the binary ns. Quote:
Some objects in indep-utils/ are not created on a 64bits Ubuntu 10.10. Doesn't matter, unless you want to use these files, but you can do : In 1) indep-utils/webtrace-conv/dec/Makefile : CC = g++-3.3 2) indep-utils/webtrace-conv/epa/Makefile : CC = g++-3.3 3) indep-utils/webtrace-conv/nlanr/Makefile : CC = g++-3.3 4) indep-utils/webtrace-conv/ucb/Makefile : CC = g++-3.3 .. |
vbr dealy and problem
Hi
Sorry to tell you that I still have problem in simulation of vbr. Because when I was trying to create the traffic with vbr it was not working properly. because rate was took as rate=0.0.and the delay was more than 100. And It was working fine with cbr. I want to ask one thin that the in above message said addition of indep-utils/webtrace-conv/dec/Makefile : CC = g++-3.3 but while insertion of vbr I used in ns-2.34 of make file cc=gcc-4.3 and ccx= g++-4.3. So it make any difference to that files. Because g++-3.3 is lower version than g++-4.3. I am doing my project on vbr and tcp traffic with 100 nodes with DSR Please help its really urgent to me....... Thanks in advance with regards Khan |
# 16, @ khan1354.
I don't remember why I wrote g++-3.3 in post #15. g++-4.3 should do OK in ns-2.34. And : It really doesn't matter. AFAIK. As long as it gets compiled, and you have the binary : dec-tr-stat ( ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec/dec-tr-stat ). .. |
vbr dealy
but I am still getting problem in vbr. because insertion of vbr tcp also effected. As I said you traffic generation of cbr is workking fine and it taking data rate perfectly. but in vbr and tcp its not. Can you please check this site once
http://www.linuxquestions.org/questi...2-34-a-868010/ in the last posting you written about this. if you needed I will send traffic generated files and if you needed I will you send traffic generated files of cbr and vbr. one thing one I want to tell you I used the path for generating cbr, vbr , tcp as follows cd ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen - ns234 cbrgen.tcl -type vbr -nn 20 -seed 1.0 -mc 10 -rate 4.0 > kk please help me its really urgent to me thanks in advance with regards khan |
how to create vbr traffic model
Hi
This is really urgent to me please tell me how to create vbr traffic model like other cbr and tcp. I created vbr under --indeputils/cmu-scen-gen$ ns234 cbrgen.tcl -type vbr -nn 100 -seed 1.0 -mc 50 rate 4.0 but I run the similation every time time getting high dealy Please tell me the proceedure to generate vbr traffic model. this is really urgent to me I am doinng projhect on this. please help me any one if somebody knows please tell me thanking you with regards khan |
Google .. ns2 generate vbr traffic model ..
http://www.google.com/webhp#hl=en&su...2d9d5433c41066 > 119,000 hits. Example, with code ( "myexample.tcl" ) http://ns2homeworkforbeginner.blogspot.com/ .. |
vbr traffic generation under smu-scen-gen
I am generating 100 nodes wireless scenario in adhoc networks with DSR. So my question is to how to to generate vbr traffic.
for this I used the this path ns-2.34/indep-utils/cmu-scen-gen$ ns234 cbrgen.tcl -type vbr -nn 100 -seed 1.0 -mc 20 -rate 4.0 So i want to know that can I use this command or not and I want to know that how can we increase the bandwidth and burst size. Please help me it really urgent any one |
1 Attachment(s)
# 21, @khan1354.
ns234 cbrgen.tcl -type vbr -nn 100 -seed 1.0 -mc 20 -rate 4.0 Looks OK here. See the attachment. Quote:
.. |
All times are GMT -5. The time now is 07:39 AM. |