[ns] UCBT (Univ of Cincinati Bluetooth) and ns-2.31,
Hi, JUst realized that I was referring to the wrong package name. The package name is UCBT and not UBCT!! If anyone has experience with installing UCBT and ns-2.31 (or installing UCBT with ns already installed), please read this e-mail and send me your comments. I have ns-2.31 installed using the ns-allinone package. I did some work on the 802.11 models and am getting some results. Now I want to run a simulation with both 802.11 and BT nodes. It looks like UCBT is the best ns2 BT package. Is that correct? If yes, I would really appreciate it if someone who has installed UBCT on top of an existing ns-2 installation can look at this e-mail and advice me on what is wrong. STEPS I DID: I downloaded the ucbt...*tgz package from the Univ CIncinati website. After I untarred it, I did a cd to the ucbtXXX dir and did a ./install-bt. This failed stating that ns2 is already installed. It asked me to start with a new ns-allinone*** package. I did not want to do this. So, I did the following. I added all the .cc files in the ubctXXX directory to the OBJ_CC list in the Makefile and the ubctXXX directory to the INCLUDES list. In addition, I added HDR_BT(), HDR_SCO() etc. functions to common/packet.h to solve some errors. However, when I do a make depend and then a make I am getting the following error which I don't know how to fix. The errors are: ucbt-0.9.9.2a/bnep.cc: In member function `void BNEP::piconet_sched()': ucbt-0.9.9.2a/bnep.cc:349: warning: cast from pointer to integer of different size ucbt-0.9.9.2a/bnep.cc: In member function `void BNEP::make_connections()': ucbt-0.9.9.2a/bnep.cc:379: error: `MIN' was not declared in this scope ucbt-0.9.9.2a/bnep.cc:379: warning: unused variable 'MIN' Can someone me advice me on what the problem is? Thanks, Arvind
Re: [ns] re te ad hoc
Check out the tcl script in the directory ns_2.XX/tcl/test/test-suite-wireless-lan-ap1.tcl. This gives an example of how to run an experiment with TCP flows over WLAN. Then work backwards from there to modify it your situation. Arvind On Dec 21, 2007 12:20 PM, dotto [EMAIL PROTECTED] wrote: hi ,i want to build a wireless network to show fairness tcp behavior in wilan?do you have materials or adverticements?thanks a lot dotto -- View this message in context: http://www.nabble.com/rete-ad-hoc-tp14460088p14460088.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] re te ad hoc
Check out the tcl script in the directory ns_2.XX/tcl/test/test-suite-wireless-lan-ap1.tcl. This gives an example of how to run an experiment with TCP flows over WLAN. Then work backwards from there to modify it your situation. Arvind On Dec 21, 2007 12:20 PM, dotto [EMAIL PROTECTED] wrote: hi ,i want to build a wireless network to show fairness tcp behavior in wilan?do you have materials or adverticements?thanks a lot dotto -- View this message in context: http://www.nabble.com/rete-ad-hoc-tp14460088p14460088.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] concept of applying a patch
Hi, I apologize for posting this again, but I have not been able to obtain any information in the ns-users archives or on the web. I am not able to understand this concept of applying a patch to ns-2. When I click on a hyperlink that advertises a patch, all I see is a bunch of C code. I am guessing I have store this code in the ns-2 directory and do something with it. But I have not seen any documentation on how to do this. This might be fairly routine to seasoned ns-users, but I am new to ns-2. Hence, any help in pointing me in the right direction will be greatly appreciated. Thanks, Arvind
[ns] problems with UBCT ns2 Bluetooth package
Hi, I have ns-2.31 installed using the ns-allinone package. I did some work on the 802.11 models and am getting some results. Now I want to run a simulation with both 802.11 and BT nodes. It looks like UBCT is the best ns2 BT package. Is that correct? If yes, I would really appreciate it if someone who has installed UBCT on top of an existing ns-2 installation can look at this e-mail and advice me on what is wrong. STEPS I DID: I downloaded the ubct...*tgz package from the Univ CIncinati website. After I untarred it, I did a cd to the ubctXXX dir and did a ./install-bt. This failed stating that ns2 is already installed. It asked me to start with a new ns-allinone*** package. I did not want to do this. So, I did the following. I added all the .cc files in the ubctXXX directory to the OBJ_CC list in the Makefile and the ubctXXX directory to the INCLUDES list. In addition, I added HDR_BT(), HDR_SCO() etc. functions to common/packet.h to solve some errors. However, when I do a make depend and then a make I am getting the following error which I don't know how to fix. The errors are: ucbt-0.9.9.2a/bnep.cc: In member function `void BNEP::piconet_sched()': ucbt-0.9.9.2a/bnep.cc:349: warning: cast from pointer to integer of different size ucbt-0.9.9.2a/bnep.cc: In member function `void BNEP::make_connections()': ucbt-0.9.9.2a/bnep.cc:379: error: `MIN' was not declared in this scope ucbt-0.9.9.2a/bnep.cc:379: warning: unused variable 'MIN' Can someone me advice me on what the problem is? Thanks, Arvind
Re: [ns] command to create mac_802-11.o in Makefile
Thanks a lot for your replies Rennie and Matthias. This is really helpful. Arvind On Dec 19, 2007 7:48 PM, Rennie deGraaf [EMAIL PROTECTED] wrote: On Dec 18, 2007 8:55 PM, Arvind Swaminathan [EMAIL PROTECTED] wrote: In the Makefile only the objects are listed. I don't see the rules for creating the objects. For instance, I would like to know the place where the compile command to create mac-802-11.o is located (since I want to add a -Ddegub flag to the cc command). There isn't an explicit rule to make mac-802_11.o. The makefile falls back on the implicit rule to build a .o file from a .cc file, which is .cc.o: @rm -f $@ $(CPP) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cc If you want to set that macro for all files in ns, you should do is to add -Ddegub to DEFINE in Makefile.in, re-run configure, and then make, or better yet, just run CFLAGS=-Ddegub make That will set the CFLAGS variable in your system environment before running make, which will incorporate its value into the CFLAGS string that it uses. If you only want to set that macro on the one file, add a rule to Makefile.in similar to the following: mac/mac-802_11.o: mac/mac-802_11.cc @rm -f $@ $(CC) -c $(CFLAGS) -Ddegub $(INCLUDES) -o $@ $*.cc Then, re-run configure and make. Rennie deGraaf
Re: [ns] Implementing access point in ns2
They are only now releasing a patch to use the ns2 code in infrastructure mode. Check U wasington's Funlab website for details. It is still being tested before formal release. Arvind On Dec 20, 2007 5:01 AM, yuva chitra [EMAIL PROTECTED] wrote: hi, I am doing my project in the field of VoIP on wireless networks. Can anyone help me with the information of how to implement an access point in ns2. It would be really helpful for me to carry on with my work.. Thanks in advance
[ns] using patches
Hi everybody, There seem to be several patches to the 802.11 code (802.11e support, link adapation+Fading channel, infratsructure mode etc.). Will these eventually be added to the main release? Until then, can someone point me to a resource that expalins the meaning of patch and on how to combine work done in multiple patches? For example, if I want the 802.11 model to have all the 3 features above, how do I do it? Thanks, Arvind
Re: [ns] nam: command not found
Hi Jonathan, I am using a Linux machine. How do I check the bit length? Arvind On Dec 18, 2007 1:29 AM, Jonathan Guerin [EMAIL PROTECTED] wrote: Do you have a 64-bit OS installed? What version of the ns-allinone are you trying to install? On Dec 18, 2007 5:25 PM, Arvind Swaminathan [EMAIL PROTECTED] wrote: Hi everybody, Thanks for the e-mails. ./make is not working. make is giving me the following error. I would appreciate any advice on fixing this. /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make: *** [nam] Error 1 Arvind On Dec 18, 2007 1:19 AM, Jonathan Guerin [EMAIL PROTECTED] wrote: You will need to go into the nam directory and then type: ./configure then make depend then make clean If you see any error messages, that will be why nam isn't working. On Dec 18, 2007 5:02 PM, Arvind Swaminathan [EMAIL PROTECTED] wrote: Hi, Thanks for your replies. I was able to find the nam directory but not the nam executable. These are the only files with the word nam in it in that directory. None of them are executable. -rw-r--r-- 1 a0866510 drp 23537 Feb 23 1998 nam.1 -rw-r--r-- 1 a0866510 drp 1022 Nov 7 1998 nam.h -rw-r--r-- 1 a0866510 drp 21814 Jun 16 1997 nam.tcl.tk -rw-r--r-- 1 a0866510 drp 14646 Jul 12 2002 nam_stream.cc -rw-r--r-- 1 a0866510 drp 4181 May 14 2001 nam_stream.h -rw-rw-r-- 1 a0866510 drp 36416 Dec 5 12:10 nam_stream.o Could some of you check to see if you have an executable called nam in your directories? If yes, where is it? Thanks, Arvind On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique [EMAIL PROTECTED] wrote: the all in one pack contains nam. it is located at ns/bin/nam -Atiur --- Arvind Swaminathan [EMAIL PROTECTED] wrote: Hi, Do I have to install nam separately? Or does the ns-allinone install install nam also? When I type in nam from any directory, I always get a nam: command not found error. I would appreciate any help in this matter. Thanks, Arvind Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Jonathan Guerin [EMAIL PROTECTED] -- Jonathan Guerin [EMAIL PROTECTED]
[ns] nam: command not found
Hi, Do I have to install nam separately? Or does the ns-allinone install install nam also? When I type in nam from any directory, I always get a nam: command not found error. I would appreciate any help in this matter. Thanks, Arvind
Re: [ns] nam: command not found
Hi, Thanks for your replies. I was able to find the nam directory but not the nam executable. These are the only files with the word nam in it in that directory. None of them are executable. -rw-r--r-- 1 a0866510 drp 23537 Feb 23 1998 nam.1 -rw-r--r-- 1 a0866510 drp 1022 Nov 7 1998 nam.h -rw-r--r-- 1 a0866510 drp 21814 Jun 16 1997 nam.tcl.tk -rw-r--r-- 1 a0866510 drp 14646 Jul 12 2002 nam_stream.cc -rw-r--r-- 1 a0866510 drp 4181 May 14 2001 nam_stream.h -rw-rw-r-- 1 a0866510 drp 36416 Dec 5 12:10 nam_stream.o Could some of you check to see if you have an executable called nam in your directories? If yes, where is it? Thanks, Arvind On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique [EMAIL PROTECTED] wrote: the all in one pack contains nam. it is located at ns/bin/nam -Atiur --- Arvind Swaminathan [EMAIL PROTECTED] wrote: Hi, Do I have to install nam separately? Or does the ns-allinone install install nam also? When I type in nam from any directory, I always get a nam: command not found error. I would appreciate any help in this matter. Thanks, Arvind Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [ns] nam: command not found
Hi everybody, Thanks for the e-mails. ./make is not working. make is giving me the following error. I would appreciate any advice on fixing this. /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make: *** [nam] Error 1 Arvind On Dec 18, 2007 1:19 AM, Jonathan Guerin [EMAIL PROTECTED] wrote: You will need to go into the nam directory and then type: ./configure then make depend then make clean If you see any error messages, that will be why nam isn't working. On Dec 18, 2007 5:02 PM, Arvind Swaminathan [EMAIL PROTECTED] wrote: Hi, Thanks for your replies. I was able to find the nam directory but not the nam executable. These are the only files with the word nam in it in that directory. None of them are executable. -rw-r--r-- 1 a0866510 drp 23537 Feb 23 1998 nam.1 -rw-r--r-- 1 a0866510 drp 1022 Nov 7 1998 nam.h -rw-r--r-- 1 a0866510 drp 21814 Jun 16 1997 nam.tcl.tk -rw-r--r-- 1 a0866510 drp 14646 Jul 12 2002 nam_stream.cc -rw-r--r-- 1 a0866510 drp 4181 May 14 2001 nam_stream.h -rw-rw-r-- 1 a0866510 drp 36416 Dec 5 12:10 nam_stream.o Could some of you check to see if you have an executable called nam in your directories? If yes, where is it? Thanks, Arvind On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique [EMAIL PROTECTED] wrote: the all in one pack contains nam. it is located at ns/bin/nam -Atiur --- Arvind Swaminathan [EMAIL PROTECTED] wrote: Hi, Do I have to install nam separately? Or does the ns-allinone install install nam also? When I type in nam from any directory, I always get a nam: command not found error. I would appreciate any help in this matter. Thanks, Arvind Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Jonathan Guerin [EMAIL PROTECTED]
[ns] Question about TcpAgent() constructor
Hi Everybody, I am new to C++. I would really appreciate it if someone could explain what the following definition of the TcpAgent constructor means. I think the first part TcpAgent::TcpAgent() means that we are defining the TcpAgent member function in the TcpAgent class. But what does the comma separated list : Agent(), t_seqno_() , mean TcpAgent::TcpAgent() : Agent(PT_TCP), t_seqno_(0), t_rtt_(0), t_srtt_(0), t_rttvar_(0), t_backoff_(0), ts_peer_(0), ts_echo_(0), tss(NULL), tss_size_(100), rtx_timer_(this), delsnd_timer_(this), burstsnd_timer_(this), dupacks_(0), curseq_(0), highest_ack_(0), cwnd_(0), ssthresh_(0), maxseq_(0), count_(0), rtt_active_(0), rtt_seq_(-1), rtt_ts_(0.0), lastreset_(0.0), closed_(0), use_rtt_(0), first_decrease_(1), fcnt_(0), nrexmit_(0), restart_bugfix_(1), cong_action_(0), ecn_burst_(0), ecn_backoff_(0), ect_(0), qs_requested_(0), qs_approved_(0), qs_window_(0), qs_cwnd_(0), frto_(0) Thanks, Arvind
[ns] installation problems.
Hi, I am trying to install ns-2 on Windows XP. I installed cygwin. Then I did a tar xvf on the ns-allinone-2.31 package. Following this I did a ./install in the ns-allinone-2.31 directory, but this fails. The final warning message is given below. Other warnings that were received during the ./install (but were ignored) are given below this. I would really appreciate it if one of you could let me know what the problem is. Thanks, Arvind FINAL WARNING: * Build tcl8.4.14 configure: warning: Settings/a0866510/nsDir: invalid host type configure: error: can only configure for one host and one target at a time tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. OTHER WARNINGS: 1. ctangle.w:75: warning:conflicting types for strlen 2. common.w:1409: warning: conflicting types for strlen 3. ln: target `cweave.exe' is not a directory 4. ln: target `ctangle.exe' is not a directory 5. /bin/sh: ctangle: command not found make: *** [gb_io.c] Error 127 Unable to create sgb library, but it's optional, so continuing... 6. configure: warning: Settings/a0866510/nsDir: invalid host type configure: error: can only configure for one host and one target at a time tcl8.3.2 configuration failed! Exiting ...