[ns] bind variables NS
hi all; i am trying to bind variable from tcl but it doesn't work ... i add on the constructor of my class handover1 this lines: bind(cost_,cost_); bind(gain_,gain_); bind(maxrate_,maxrate_); and declare theses one in handover1.h : float cost_,gain_,maxrate_; but the problem is when i recompile NS2 with Make this error occure : hsntg/802_21/handover-1.cc:75: erreur: no matching function for call to ‘Handover1::bind(const char [6], float*)’ /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:177: note: candidats sont: void TclObject::bind(const char*, TracedInt*) /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:178: note: void TclObject::bind(const char*, TracedDouble*) /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:179: note: void TclObject::bind(const char*, double*) /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:182: note: void TclObject::bind(const char*, unsigned int*) /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:183: note: void TclObject::bind(const char*, int*) /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:185: note: void TclObject::bind(const char*, TclObject**) /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:188: note: void TclObject::bind(const char*, int64_t*) please what should i add because i respect what is said in the Man ..
[ns] using the variables
hi there is a variable nsaddr_t index in the aodv.h i suppose this soters the index of the node during its creation time. how can i use the variable in mac802_11.cc Neeraj Gupta Assistant Professor HOD, CSE IT Department Hindu College of Engineering Sonepat
[ns] Incorrect number of packets reported to be received by a Null agent
Hi ns2 users, I am trying to establish the ratio of received packets for a CBR traffic source. I've implemented a counter within the void Agent::recv(Packet* p, Handler*) method in agent.cc however I have come up against a problem. The counter appears to count all the packets irrespective of whether they are dropped or not. i.e. If the sending application sends 300 packets but 10 are dropped the counter within the recv method counts all 300, despite the fact the ns2 .tr shows that only 290 packets were delivered. I am wondering if anybody knows as to why this problem is occuring? Any help anyone can provide will be gratefully received, Best regards, Mark Culverhouse
[ns] Buffer TCP
Hi all , i want to simulate a buffer of 300 kbits for receiving TCP data , and palyback evry second 100 kbits. the buffer should be on a node ...and receive date from router for exemple...How to do that? best reagards
[ns] Debbuging NS-2
hi all, when i run my tcl script it shows me this error due to : this line : $ns at 0 [eval $iface0 set mac_(2)] disconnect-link ;#UMTS UE $ns at 9 [eval $iface0 set mac_(2)] connect-link ;#umts link the object is to put as default inface0 [0.0.2] umts UP otherwise this interface never gone up ... After run : At 9.00 MIPv6 Agent in 5.0.0 requests ND to send RS At 9.00 in 0.0.2 ND module send RS --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o111: no target for slot 1023 _o111 type: Classifier/Addr content dump: classifier _o111 0 offset 22 shift 1023 mask 0 slots -- Finished standard no-slot{} default handler -- thanx for your help !
[ns] How to Dump DV an LS routing tables
Hi, I'm trying to dump the DV and LS routing tables with the commands in the ns manual but it doesn't work. Thus somebody know other way to do it? Tank you José Lucas -- View this message in context: http://www.nabble.com/How-to-Dump-DV-an-LS-routing-tables-tp23638319p23638319.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] Error in creating new agent
Hi I am getting the following error [r...@localhost usman-practice]# ns abc.tcl 14 10 25 num_nodes is set 150 INITIALIZE THE LIST xListHead SORTING LISTS ...DONE! ns: _o2415 start-statdump: (_o2415 cmd line 1) invoked from within _o2415 cmd start-statdump 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 _o2415 line 2) (SplitObject unknown line 2) invoked from within _o2415 start-statdump As in the error above it is not accepting statdump. It gives similar errors on regbc etc. This shows all the procedures it has to take from the C++ file its not recognizing them. Now Can this be again a definition issue. Because I have defined the C++ files in Makefile.in Can anybody please help. Thanks Usman - On Tue, May 12, 2009 at 8:13 PM, Usman Amin usmanamin...@gmail.com wrote: Hi At the moment I am having the following error. [r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20 num_nodes is set 100 INITIALIZE THE LIST xListHead ns: _o1615 set-suicide: (_o1615 cmd line 1) invoked from within _o1615 cmd set-suicide 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 _o1615 line 2) (SplitObject unknown line 2) invoked from within _o1615 set-suicide [r...@localhost VanetCR]# Can anybody tell me why this invoked from within error comes?? --- On Thu, May 7, 2009 at 1:30 PM, Usman Amin usmanamin...@gmail.com wrote: Hi I added the following definitions in * ns-agent.tcl* Class Agent/VanetCR -superclass Agent Agent/VanetCR instproc init args { $self next $args } Agent/VanetCR set sport_ 0 Agent/VanetCR set dport_ 0 Now the following error is coming. *Error* [r...@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20 num_nodes is set 150 INITIALIZE THE LIST xListHead (_o2415 cmd line 1) invoked from within _o2415 cmd log-target _o10 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 _o2415 line 2) (SplitObject unknown line 2) invoked from within $p($i) log-target $RevTrace (for body line 5) invoked from within for {set i 0} {$i $opt(nn)} {incr i} { set p($i) [new Agent/VanetCR $i] $ns_ attach-agent $node($i) $p($i) # set the logtarget for every agent $... (file b_univ_twm_active_suicide_usman.tcl line 343) [r...@localhost VanetCR]# Can anybody help. Usman 313-424-0122 --- Hi I have NS2.33 running on FC9 in VMWARE. I have to create a new agent. I have made the following changes in the below listed files *Makefile* VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \ VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \ *ns-default.tcl* Agent/VanetCR set packetSize_ 1000;# for VANETCR added May 5th, 2009 Agent/VanetCR set jitterFactorRBC_ 0.0001 Agent/VanetCR set jitterFactorRev_ 0.0002 Agent/VanetCR set sig_delay_ 0.003255 Agent/VanetCR set verif_delay_ 0.00762 Agent/VanetCR set lastheard_interval_ 1 Agent/VanetCR set statinterval_ 0.01 *ns-packet.tcl* # Wireless: ARP # Address Resolution Protocol, network wireless stack GAF # Geographic Adaptive Delity, for ad-hoc networks LL # network wireless stack LRWPAN # zheng, wpan/p802_15_4mac.cc Mac # network wireless stack *VanetCR # Added for Vanet on May 5th, 2009* *packet.h* name_[PT_VANETCR]= VanetCR; //Added for VANETCR on May 5th, 2009 static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009 *After Modifications * I execute the following commands to recompile touch common/packet.cc make make clean configure *ERROR* [r...@localhost ns-2.33]# ns ns: [code omitted because of length] : invalid command name Agent/VanetCR while executing Agent/VanetCR set packetSize_ 1000 the strange thing is as soon as I make this change in ns-default.tcl. All other tcl files
[ns] can aodv send message to tcp or sctp?how to ?
hi ns-users I have been doing some cross layer design between aodv and sctp!when aodv receive route error message ,it then notice sctp!how can let aodv and sctp(or tcp)communicate with each other ?
[ns] DSR and OLSR with IPv6
Hi friends, I want to know if DSR and OLSR have been implemented with IPv6? If yes then I want to study their source code. Would anyone here please help me? Thanks