Re: [ns] help needed to downgrade GCC version
This is a problem with the gcc version. I had a lot of problems recently when I tried to install the NRL extensions with the ns 2.27 version. Downgrading gcc is not actually an easy task (as I discovered). Google up some gcc forums and follow steps provided there. I will look again for the link I used and let you know if I find it. Simple solution to the problem though - Use fedora 2. The whole sensor net extension and ns installation gets done without problems in 15 mins. Just a quick hack to your problem .. :) Zubair On 3/23/07, Martin Dario Pereyra [EMAIL PROTECTED] wrote: Hi all, I have a problem when installing old gcc version. I use ns-allinone-2.27 with NRLSensorSim extension (2.27 is the most recent version for this extension) in Fedora Core 6 with gcc 4.1. I have a patch for this version of ns to work with gcc 4.1 but for the extensions added doesn't work. So I want to install an alternate gcc compiler on my fedora (gcc 2.95) like a solution. This two packages: gcc-core-2.95.tar.gz gcc-g++-2.95.tar.gz i do gcc configure: /home/mpereyra/gcc/gcc-2.95/configure \ --prefix=/opt/gcc295 \ --program-suffix=295 \ --enable-languages=c,c++ \ --enable-shared --enable-threads=posix --disable-cheking \ --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions and when i do 'make' this is the error: /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: extra brace group at end of initializer /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: (near initialization for `object_mutex.__data') /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: warning: excess elements in struct initializer /home/mpereyra/gcc/gcc-2.95/gcc/frame.c:55: warning: (near initialization for `object_mutex.__data') make[1]: *** [libgcc2.a ] Error 1 make[1]: se sale del directorio `/home/mpereyra/gcc/build/gcc' make: *** [all-gcc] Error 2 (se sale del directorio means 'leaving directory') Another relevant information: [EMAIL PROTECTED] build]# uname -a Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] build]# rpm -q gcc gcc-4.1.1-30 I Think that some paremeters of gcc configure are not ok. What do you think? -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070
Re: [ns] about analysis of trace file
Marco's trace2stats is a nice tool for analyzing trace files to obtain info like throughput, average delay and jitter. You could download them from: http://www.tlc-networks.polito.it/fiore/index.html#downloads Zubair On 15 Mar 2007 16:25:20 -, harpreet [EMAIL PROTECTED] wrote: Hi all, I need to calculate the throughput of a link and draw other analysis graph. i have trace file. please tell command to have graphs of tracefile. Thanks in advance harpreet singh -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070
Re: [ns] need help for Make fail
Do a make clean, then make depend followed by make to be sure changes (and everything else) is being compiled. Zubair On 11/14/06, pooja Vyavahare [EMAIL PROTECTED] wrote: Hi, Thanks for the response But as you said that there is no problem and every thing will work fine but the things are not like that. Actually I made some changes in tcl/lib/ns-lib.tcl after that. But as the Make is terminating before compiling any *.tcl files the changes are not taken by the NS Thats why I think that this make problem is need to be consider If anyone knows the solution please respond as soon as possible . Thank You in advance, with regards, POOJA VYAVAHARE juan manuel gomez garcia [EMAIL PROTECTED] wrote: This message wants to say that everything is still equal, that there are not any change. In other words, 'make' dont make anything. Dont worry, all work fine. From: pooja Vyavahare To: ns ns Subject: [ns] need help for Make fail Date: Mon, 13 Nov 2006 15:24:06 + (GMT) Hi all, I am using NS-2.28 on fedora-2 ... I am using NS from long time and everything was working fine... Now recently I added some files in it...But these files are also building properly but when I run make command the following error is coming... epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb' I cant understand as I didnt change any of the above folders... Pleasse help me...Its URGENT... thanks in advance, regards, POOJA VYAVAHARE __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ _ Acepta el reto MSN Premium: Protección para tus hijos en internet. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_proteccioninfantil - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070
[ns] Changing node configurations for wireless networks.
Hi everyone, Could anyone help me out in adding an additional characteristic while configuring the node with its various characteristics like routing protocol etc. I need to add an additional parameter into the node configuration (as shown below) and need to know how to make the changes in c++. Or atleast could anyone enlighten me as to which files are handling the current node configurations. What i need to actually do is: \$ns_ node-config -addressType hierarchical -adhocRouting AODV -llType LL -macType Mac/802_11 \bs -ifqType Queue/DropTail/PriQueue -ifqLen 50 -antType Antenna/OmniAntenna -propType Propagation/TwoRayGround -phyType Phy/WirelessPhy -topologyInstance \$topo -channel Channel/WirelessChannel -agentTrace ON -routerTrace ON -macTrace OFF -movementTrace OFF -myParameter myValue // Need to add this to each node I configure I have found through the mailing list archives different techniques as to configure different nodes differently - for example a few nodes with AODV as rp or DSR etc .. or something similar. I want to add another parameter to the node configuration to ultimately declare nodes with both my configuration and some with the standard configuration. Any help in this regard will be appreciated. Thanks in advance, Zubair PS: I apologize if multiple copies are posted .. my connection started acting up at the wrong time. :) Thanks .. -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070
Re: [ns] Does ns2 support simultaneous processing ?
Hi Daniel, I reada your post below and it solved some queries on the nature of event processing being done by ns for me too. However, I have one question. How does ns handle scenarios like hidden/masked nodes etc? lets consider this following scenario: Nodes 1 and 2 have had a successful RTS-CTS exchange and are in the process of transferring Data packets. During this time, Node 3 moves into their transmission range and sends in an interfering packet which results in a collision at node 2. Now, according to your mail - the simulator should first be sequentially carrying out the entire packet exchange and update the trace file. After this, how does it take the effect of node 3 and ensure that a collision is reported?? This should take place sequentially after the packet exchange (according to wall-clock time) but the simulator clock should be stopped at the data transmission process itself right?? I know this is implemented correctly in ns, but am confused as to how they are doing it. It would be of great help if you could let me know your opinions. Thanks in advance. Zubair On 4/1/06, Daniel Mahrenholz [EMAIL PROTECTED] wrote: On Friday 31 March 2006 17:33, Saurabh Sinha wrote: I just wanted to know that whether ns2 supports threads or not? Like can more that 2 two stations transmit at the same time It will of gr8 help if some one can post a suggestion Yes and no - ns2 itself does not use threads. But the event-based processing model does not need threads to allow for concurrent threads of control. That means two station can perform actions at the same moment in time. The simulator will serialize them and compute them sequentially. An event-based simulation does not need to care about real-time (wall clock time), it has its own time base and so can compute as much events (happening) at the same time as you need. The simulation time will stand still during the processing of an event and will jump to the execution time of the next event that has to be processed. Hope this answers your question. Daniel. -- Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070
Re: [ns] Regarding CBR packet sending rate
The very fact that you are using CBR taffic means that the packets you are sending will be at a constant rate (in you case at an interval of .25 secs). Your second case defines bursty traffic - characteristics of TCP traffic where packets equal to the congestion window value are sent out at a time etc.. I do not think you can model bursty traffic with CBR. Zubair On 3/7/06, jeevesh sharma [EMAIL PROTECTED] wrote: HI friends, As we know CBR connection use an option type packet/sec to be sent. Is that means they are sent at regular interval. i.e. 4 packet/sec means it will send the packet at regular interval of .25 sec. But i think it is not the real world communication. Because one can send some packet for some time and then after waiting for some time it will send few more packet. I mean first at 2.230 sec , second at 2.234 sec. then at 2.35, 2.251, 2.90, 2.901, 2.902, 4.500, 4.503 sec. Is there any way to make it possible using CBR connection?. Or any other way to do it?. Any suggestion is welcome. jeevesh kumar - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. -- Mohammad Zubair Ahmad PhD Student, Computer Engineering University of Central Florida, Orlando, FL 32826 Cell:(407)-435-9070