[ns] compilation problem.
Hi all, I have encountered an issue while researching a new broadcast algorithm that i have implemented. My protocol makes use of two files. A .h and a .cc file. Inside the header file i define a constant as follows. #define CONSTANT value1 When i first compiled my code it seemed to work fine with no problems at all. There was a point where i had to change this CONSTANT to have a different value. So o changed value1 with value2. I tried to recompile ns using make and make install. For some reason the output of the compilation seemed not to be similar to a normal successful compilation. Although the end result seemed to be successful. More specifically, i got exactly the same output as if i have compiled ns after having made no changes at all. It seemed very strange so i tried to debug my code. I found out that even if i have changed CONSTANT from value1 to value2 when i run the program, CONSTANT equals with the old value1, as if i have never changed it or compiled it. Do you have any ideas why this is happening? Do you think this is an ns bug??? I have resolved this issue by declaring a variable inside the .cc file as follows. int constant = value2 I recompiled and it worked fine. But normally this should not be the case and i should be able use constants in the header file and change them as appropriate. Best Regards Dimitris
[ns] Multi-interface support howto, by Ramon Aguero---really need help!!!
Hello, I am trying to modify NS-2.29 to support multiple interface according to Adding Multiple Interface Support in NS-2 by Ramon Aguero, http://personales.unican.es/aguerocr. For routing agent, I choose AODV like some people. I encountered some problems and really need help. 1.I have two questions about Listing 5.5 in the tutorial. (1)cmnh doesn't exist and I wonder whether we should change cmnh to hdr according to listing 4.6. (2) Where should I declare the variable Iface? Should I declare it in aodv.h like declaring nIfaces, targetlist[MAX_IF] and ifqueuelist[MAX_IF] in aodv.h? 2. In Changes on the Route Table part, Ramon mentioned that a new variable interface must be added to the route entry definition. But I am not clear that in which file the route entry definition exists. Is the file aodv.h or aodv_rtable.h in aodv folder or rttable.h in routing.h folder? And in order to change the route table, how many files or classes need to be modified in total? Coul! d you give me some details to do this? It is very urgent, please help me!!! Any help and advice would be very appreciated. Thank you. Tina 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息! _ 多个邮箱同步管理,live mail客户端万人抢用中 http://get.live.cn/product/mail.html
[ns] Multi-interface support howto, by Ramon Aguero---really need help!!!
Hello, I am trying to modify NS-2.29 to support multiple interface according to Adding Multiple Interface Support in NS-2 by Ramon Aguero, http://personales.unican.es/aguerocr. For routing agent, I choose AODV like some people. I encountered some problems and really need help. 1.I have two questions about Listing 5.5 in the tutorial. (1)cmnh doesn't exist and I wonder whether we should change cmnh to hdr according to listing 4.6. (2) Where should I declare the variable Iface? Should I declare it in aodv.h like declaring nIfaces, targetlist[MAX_IF] and ifqueuelist[MAX_IF] in aodv.h? 2. In Changes on the Route Table part, Ramon mentioned that a new variable interface must be added to the route entry definition. But I am not clear that in which file the route entry definition exists. Is the file aodv.h or aodv_rtable.h in aodv folder or rttable.h in routing.h folder? And in order to change the route table, how many files or classes need to be modified in total? Coul! d you give me some details to do this? It is very urgent, please help me!!! Any help and advice would be very appreciated. Thank you. Tina _ 用手机MSN聊天写邮件看空间,无限沟通,分享精彩! http://mobile.msn.com.cn/
[ns] Two mobilde nodes with different MAC/802_11 attributes?
Hello everyone,I'm simulating a wireless (802.11) ad hoc system with 3 mobile nodes.Is there any way that I could change the attributes (e.g. the MAC) of each of the nodes separately.For example, to increase the timeout value of one node and decrease it on the other one.I appreciate your kind suggestions.Thanks,Bahman _ http://clk.atdmt.com/UKM/go/msnnkmgl001009ukm/direct/01/
[ns] How to create another 802_11 MAC layer?
Hi again, I have another question. How can I create another 802_11/MAC layer, which is exactly the same as the original one, but with a different name. Regards, Bahman. _ http://clk.atdmt.com/UKM/go/msnnkmgl001002ukm/direct/01/
Re: [ns] setdest not working (neeraj gupta)
Hi, I believe you are making a mistake in the notation for speed. The new format is like the following: ./setdest -n -p -M -t -x -y M- for speed Mayank On Sun, Jun 8, 2008 at 8:00 PM, [EMAIL PROTECTED] wrote: Send Ns-users mailing list submissions to ns-users@isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. ns-allinone-2.30 and 2.33 installation problems in linux (crystal_maple) 2. setdest not working (neeraj gupta) 3. A question reg TDMA MAC in ns2 (Sarvesh Kumar) -- Message: 1 Date: Sat, 7 Jun 2008 22:48:08 -0700 (PDT) From: crystal_maple [EMAIL PROTECTED] Subject: [ns] ns-allinone-2.30 and 2.33 installation problems in linux To: ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Dear all, I have some problems when I installed ns2 in linux, I use redhat, and the kernel version is 2.4.21-20.EL, the gcc version is gcc-3.2.3 it shows: /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c: In function `TkDebugBorder': /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1388: `borderPtr' undeclared (first use in this function) /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1391: invalid operands to binary * /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1391: syntax error before ')' token /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1394: request for member `borderTable' in something not a structure or union /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1394: request for member `borderTable' in something not a structure or union /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1396: syntax error before ')' token /usr/include/sys/stat.h: At top level: /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:1134: storage size of `shiftTable' isn't known /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:31: warning: `BorderInit' declared `static' but never defined /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:36: warning: `Intersect' declared `static' but never defined /usr/ns/ns-allinone-2.30/tk8.4.13/generic/tk3d.c:39: warning: `ShiftLine' declared `static' but never defined {standard input}: Assembler messages: {standard input}:702: Error: symbol `dy' is already defined {standard input}:708: Error: symbol `dx' is already defined {standard input}:755: Error: symbol `q' is already defined {standard input}:761: Error: symbol `p' is already defined {standard input}:767: Error: symbol `q' is already defined {standard input}:773: Error: symbol `q' is already defined make: *** [tk3d.o] Error 1 tk8.4.13 make failed! Exiting ... The similar problem occurred when I installed ns-allinone-2.33. Can anybody help me? Thanks very much. -- View this message in context: http://www.nabble.com/ns-allinone-2.30-and-2.33-installation-problems-in-linux-tp17688498p17688498.html Sent from the ns-users mailing list archive at Nabble.com. -- Message: 2 Date: 8 Jun 2008 13:31:10 - From: neeraj gupta [EMAIL PROTECTED] Subject: [ns] setdest not working To: ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 ? hi all i am trying to genetrate the senario file using setdest but it is giving the error that asset(speed !=0) not meet. can you tell me the problem Neeraj Gupta Assistant Professor HOD, CSE IT Department Hindu College of Engineering Sonepat -- Message: 3 Date: Sun, 8 Jun 2008 19:40:26 +0100 (BST) From: Sarvesh Kumar [EMAIL PROTECTED] Subject: [ns] A question reg TDMA MAC in ns2 To: ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Hello, I was trying to use the TDMA as my MAC.I set the slot_packet_len_ to 500 bytes.Using this value it calculated the slot duration as 2ms. I used UDP/CBR and my CBR packet size was 1000 bytes and I was sending at 8Kbps.So my packetsize is greater than the slot_packet_len_ but it is transmitted in one slot.How is that possible? What is the relationship between my packetsize and the slot_packet_len_? I appreciate your replies. Thanks, Sarvesh Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/ -- ___ Ns-users mailing list Ns-users@isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 54, Issue 8 *** -- Regards Mayank Aggarwal
[ns] Help with Radio states of 802.15.4 implementation (Ankur Garg)
Hi!, I am working on the 802.15.4. I am tweaking up things to implement a new protocol. Can any body tell me why a transition of radio state TX_ON to RX_ON is not done immediately. this has been done using a turn _around_state with a delay of turn_around and two times a confirmation goes: 1. from this plme_set_trx_state_confirmation with state as p_SUCCESS 2. when the TRXhandler is called it confirms the state as TX_ON/RX_ON. Is this because of RFC of 802.15.4 or just done for simulation or a limitation of radio that it takes a turnaorund time for switching. I am also posting here the code section from file wpan/phy802_15_4.cc -- CODE - { t_status = p_SUCCESS; if (((state == p_RX_ON)(trx_state == p_TX_ON)) ||((state == p_TX_ON)(trx_state == p_RX_ON))) { trx_state_turnaround = state; delay = true; } else trx_state = state; } //we need to delay aTurnaroundTime symbols if Tx2Rx or Rx2Tx if (delay) { trx_state = p_TRX_OFF;//should be disabled immediately (further transmission/reception will not succeed) TRXH.start(aTurnaroundTime/getRate('s')); } else mac-PLME_SET_TRX_STATE_confirm(t_status);