[ns] regarding ns2allinone installaion
hi while i am trying to install ns2allinone2.29 in RedHat 9, i got the error as {standard input}:697: Error: symbol `dy' is already defined {standard input}:703: Error: symbol `dx' is already defined {standard input}:750: Error: symbol `q' is already defined {standard input}:756: Error: symbol `p' is already defined {standard input}:762: Error: symbol `q' is already defined {standard input}:768: Error: symbol `q' is already defined make: *** [tk3d.o] Error 1 tk8.4.5 make failed! Exiting ... how can i overcome it? Sundaralakshmi - How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
[ns] a serious problem with energy
Hello ns users, Im traying to create a wireless network, and to plot energy consumption. I did not find any example in this domain on line. I start by tring to plot energy oconsuption for one node, but i have not the eppropriate result. Can you please check the problem with me. Here are my tcl et awk files. I will be gratefull. Are there any further examples which can help me? Thunks a lot p5.vert.ukl.yahoo.com uncompressed/chunked Mon Aug 21 06:34:03 GMT 2006 ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com
[ns] a serious problem with energy (files attached)
Hello ns users, Im traying to create a wireless network, and to plot energy consumption. I did not find any example in this domain on line. I start by tring to plot energy consuption for one node, but i have not the appropriate result.i mean, the plot doesn't seem to be energy consumption through the simulation time. Can you please check the problem with me. Here are my tcl et awk files. I will be gratefull. Are there any further examples which can help me? Thunks a lot p5.vert.ukl.yahoo.com uncompressed/chunked Mon Aug 21 07:34:01 GMT 2006 ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com
Re: [ns] Accessing object created in Tcl from C++
Hi Vijay, The problem described by you seems to be something very specific to your codei mean to the modifications you have doneso it is really not possible for me to tell you anything straightforward on the matter. I am sure if you take a deeper look into your code and try and understand what is it that a wireless node is expecting and I am not providing, you will definitely be able to work things out. Sorry and All the Best. - Prashant Vijay Ghorpade wrote: Hi Prashant, I have a problem with ns-2 When i make some change in the node class and compile the code it doesnot give any errors. The wired scripts also work. But when i try with wireless scripts it gives either segmentation fault or event UID not found error. Why it is so. Can you help me out Vijay On Fri, 18 Aug 2006 Prashant Batra wrote : Hi Shafiq, To access a variable declared in your TCL script, you can use the following method :- Tcl tcl = Tcl::instance(); tcl.lookup(char* s); The 'lookup()' function of Tcl class takes a pointer to the name of the variable in the TCL script and returns you a TclObject class object, which you can further typecast into your specific object type and use. - Prashant Shafiq Hashmi wrote: Hello all, Is it possible to access an object of Agent/RCAgent, created in Tcl, from another C++ class. Can anybody tell me ? Thanx Shafiq http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/[EMAIL PROTECTED]
[ns] error in multi_udpflows.tcl its urgent...
hi nsusers i have NS2.28 on my system and to work on ieee802.11e. so i downloaded the required module form http://www.tkn.tu-berlin.de/research/802.11e_ns2/ i did according to instruction given in README file. when i ran the multi_udpflows.tcl, i got the following errors ... num_nodes is set 5 wired node 0 created wired node 1 created wired node 2 created (_o56 cmd line 1) invoked from within _o56 cmd Prio 0 PF 2 invoked from within catch $self cmd $args ret invoked from within if [catch $self cmd $args ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o56 line 2) (SplitObject unknown line 2) invoked from within $ifq Prio 0 PF 2 (procedure priority line 4) invoked from within priority ifq (procedure _o45 line 91) (Node/MobileNode add-interface line 91) invoked from within $node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_ (procedure _o4 line 66) (Simulator create-wireless-node line 66) invoked from within _o4 create-wireless-node 1.0.0 (eval body line 1) invoked from within eval $self create-wireless-node $args (procedure _o4 line 14) (Simulator node line 14) invoked from within $ns node 1.0.0 invoked from within set BS(0) [$ns node 1.0.0] (file multi_udpflows.tcl line 92) can anyone solve it... thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] error in multi_udpflows.tcl its urgent...
Hi, the problem appears if the installation has not been 100 percent successful wrt the tcl files. Please check all settings described in README again, especially in Makefile.in, ns-lib.tcl, and ns-mac.tcl. BR, Sven On Aug 21, 2006, at 10:25 AM, mayank kanthali wrote: hi nsusers i have NS2.28 on my system and to work on ieee802.11e. so i downloaded the required module form http://www.tkn.tu-berlin.de/research/802.11e_ns2/ i did according to instruction given in README file. when i ran the multi_udpflows.tcl, i got the following errors ... num_nodes is set 5 wired node 0 created wired node 1 created wired node 2 created (_o56 cmd line 1) invoked from within _o56 cmd Prio 0 PF 2 invoked from within catch $self cmd $args ret invoked from within if [catch $self cmd $args ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error error when calling class $cls: $args $... (procedure _o56 line 2) (SplitObject unknown line 2) invoked from within $ifq Prio 0 PF 2 (procedure priority line 4) invoked from within priority ifq (procedure _o45 line 91) (Node/MobileNode add-interface line 91) invoked from within $node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_ (procedure _o4 line 66) (Simulator create-wireless-node line 66) invoked from within _o4 create-wireless-node 1.0.0 (eval body line 1) invoked from within eval $self create-wireless-node $args (procedure _o4 line 14) (Simulator node line 14) invoked from within $ns node 1.0.0 invoked from within set BS(0) [$ns node 1.0.0] (file multi_udpflows.tcl line 92) can anyone solve it... thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- Sven Wiethoelter, http://www.tkn.tu-berlin.de/~wiethoel Telecommunication Networks Group (TKN) / TU Berlin
[ns] I have a problem in simulation .... while the compilation is okay
Dear ns-users; I use ns-allinone-2.29 under cygwin/winXP. I faced the following problem after changing the MAC in ns2.29. during the simulation I got the follwoing Error: Scheduler: Event UID not valid! the code is here ( I made the changes just in the recv() function): void Mac::recv(Packet* p, Handler* h) { printf( \n Now you are in Mac layer); int i; int k; int r; int errcount; int recR; //===start=== BiLaL if (hdr_cmn::access(p)-direction() == hdr_cmn::UP) { if (hdr_mac::access(p)- ftype() == MF_FEC_R) { Red_= hdr_mac::access(p)-Red(); drop(p); printf( \n Redundancy is CHANGED); return; } if (hdr_cmn::access(p)-size()%framesize_ != 0) k=1; else k=0; k +=(hdr_cmn::access(p)-size()+ Red_)/framesize_ ; for (i=0;i= k; i++) { r=(rand()%100); if (r = p_) errcount++; } if (errcount Red_) { drop(p);//Packet::free(p); //discard the received packet printf(\n one packet has been lost); Packet *p = Packet::alloc(); hdr_cmn* ch = HDR_CMN(p); hdr_mac* mhr = HDR_MAC(p); mhr-ftype()=MF_FEC_R; ch-uid() = 0; ch-ptype() = PT_MAC; ch-iface() = -2; ch-error() = 0; ch-size()=64; ch-direction() = hdr_cmn::DOWN; // *** changing the Redundancy strategy mhr- Red()= errcount; callback_=h; mhr-set(MF_FEC_R, index_); state(MAC_SEND); printf(\n telling the sender by new R); sendDown(p); } else { // the Redundant Data must be removed hdr_mac* mhr = HDR_MAC(p); recR = mhr- Red(); hdr_cmn::access(p)-size()-= recR; //===END=== BiLaL sendUp(p); } return; } callback_ = h; hdr_mac* mh = HDR_MAC(p); mh-set(MF_DATA, index_); state(MAC_SEND); //===FEC (Redundancy) BiLaL printf(\n Here we adding the R to TCP packet); hdr_cmn* ch = HDR_CMN(p); ch-size() += Red_; // sendDown(p); the problem stop inside the sendDown() function and the problem as I told you first: Scheduler: Event UID not valid! I look forward to your help as soon as possible. thank you in advance Kind Regards
Re: [ns] How to save xgraph plots :-??
On 8/18/06, Aritra Das [EMAIL PROTECTED] wrote: HI can you help me how to use gnuplot. i have the trace file. now how to proceed with gnuplot. or is it like xgraph that you have to write a code in the tcl file. also, what are the formats in which i can save from gnuplot - please specify Aritra Hi, You can post-process your trace file with awk, then put your data in to a CSV file, then with online 1-2 lines you can plot it with gnuplot (specified commands could be found at gnuplot site, there're many many examples). Regards, -- Hai-Nam NGUYEN Elève 3A SLR, ENST Bretagne 2 rue de la Châtaigneraie 35576 Cesson Sévigné Site web: http://www.jcisio.com
Re: [ns] Help to learn tcl/ex/*.tcl
Be more specific on the errors you get. ggeorgak On Monday 21 August 2006 08:36, S.Thanga Prakash wrote: hi all, I am trying to execute example tcl scripts. But, i am getting errors on execution. how to start the execution of these examples? thanks in advance, regards, stp.
[ns] How EIFS Trigger on NS2 ?
Dear All, How EIFS trigger on Mac 802.11 ? I cant find how EIFS trigger in its implementation? Best Regards Hamid Reza __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] Access Agent List From C++
Is there a way to access the agent list from C++ ? (AND GET ACCESS TO A PARTICULAR ONE?) more explicit from AODV::sendRequest -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
[ns] CSMA/CA based on 802.15.4
Dear all, I want to simmulate Csma/ca used in 802.15.4, but I do not know how to start, I do not konw how to count the number of collision, when to start collision, I think collision can only start when more than two nodes send data to a node at the same time, another question is how I can change CW, BE and NB in source code .so that another question is how I know what I simulate is Csma/ca. Thank you for your reading and answering in advance. Wang 网 易 邮 箱 带 你 率 先 跨 入 3G 时 代 ! 3G 海 量 邮 箱 ,20 兆 超 大 附 件 ;网 络 记 事 本 + RSS + 大 容 量 网 盘 ,一 样 也 不 少
[ns] Diffusion trace format help needed
Hi everyone, I have been carrying out ns2 simulation using diffusion protocol for wireless sensors. I am get the following traces s 0.01000 _0_ AGT --- 30504276 diffusion 0 [0.00 0 0] --- [0:254 0:255 32 0] r 0.01000 _0_ RTR --- 30504276 diffusion 0 [0.00 0 0] --- [0:254 0:255 32 0] s 0.01000 _1_ AGT --- 503803425 diffusion 0 [0.00 0 0] --- [1:254 1:255 32 0] r 0.01000 _1_ RTR --- 503803425 diffusion 0 [0.00 0 0] --- [1:254 1:255 32 0] s 0.01000 _2_ AGT --- 1374534831 diffusion 0 [0.00 0 0] --- [2:254 2:255 32 0] r 0.01000 _2_ RTR --- 1374534831 diffusion 0 [0.00 0 0] --- [2:254 2:255 32 0] s 0.01000 _3_ AGT --- 1733080622 diffusion 0 [0.00 0 0] --- [3:254 3:255 32 0] r 0.01000 _3_ RTR --- 1733080622 diffusion 0 [0.00 0 0] --- [3:254 3:255 32 0] s 0.01000 _4_ AGT --- 1486717601 diffusion 0 [0.00 0 0] --- [4:254 4:255 32 0] r 0.01000 _4_ RTR --- 1486717601 diffusion 0 [0.00 0 0] --- [4:254 4:255 32 0] s 0.01000 _5_ AGT --- 1454595779 diffusion 0 [0.00 0 0] --- [5:254 5:255 32 0] r 0.01000 _5_ RTR --- 1454595779 diffusion 0 [0.00 0 0] --- [5:254 5:255 32 0] s 0.01000 _6_ AGT --- 402363792 diffusion 0 [0.00 0 0] --- [6:254 6:255 32 0] r 0.01000 _6_ RTR --- 402363792 diffusion 0 [0.00 0 0] --- [6:254 6:255 32 0] s 0.01000 _7_ AGT --- 23210729 diffusion 0 [0.00 0 0] --- [7:254 7:255 32 0] r 0.01000 _7_ RTR --- 23210729 diffusion 0 [0.00 0 0] --- [7:254 7:255 32 0] s 0.01000 _8_ AGT --- 1500389329 diffusion 0 [0.00 0 0] --- [8:254 8:255 32 0] r 0.01000 _8_ RTR --- 1500389329 diffusion 0 [0.00 0 0] --- [8:254 8:255 32 0] Diffusion 0 does it mean no data sent ? I am just confused because I have seen trace format like TCP 100 which means 100 bytes transferred. I want to calculate the packets send and packets received using diffusion protocol. I am getting the diffusion 0 at AGT layer. I would be grateful if you could give me some idea how to calculate the total data sent and total data recieved by a particular node. looking forward for your reply. Yours sincerly, Chitra Magar East China University of Science and Technology Shanghai China