[ns] please read email emergency
Hi all Why changing CBR rate of node doesn't effect on energy consumption of nodes that use SMAC protocol for MAC layer?? For example in 5*5 grids with 25 nodes, node 1 is sender and node 25 is Sink . Please guide me Very Thanks in advanced I'm waiting for your reply -- Amin Irandoost
Re: [ns] OK CBR generator method
I have another idea, try to use a traffic scenario generator tools "cbrgen.tcl." that is located in the "~/ns-2.28/indep-utils/cmu-scen-gen" to generate your CBR traffic in a separte file. and link your file within your TCL scipt. I think this is a good technique, I used it befor. Beside that you can use AWK or Perl or bash scripts for extracting results form the simulated output file. So If want to want to test this way I will privide you some scripts and I will assist you. About proc I think there is some statement should written in you procedure block.. let me search about that. Regards. Mohammed AbuHajar - Original Message From: Nabila khedimi <[EMAIL PROTECTED]> To: Mohammed Abu Hajar <[EMAIL PROTECTED]>; ns-users@isi.edu Sent: Wednesday, November 21, 2007 8:48:28 PM Subject: RE: OK just to your knowledge, no problem arises for the exponnential traffic, the procedure works perfectly, can a cbr traffic simulated by a an exponential with 0 for idle time? Thanks for help > Date: Tue, 20 Nov 2007 10:08:51 -0800 > From: [EMAIL PROTECTED] > Subject: OK > To: [EMAIL PROTECTED] > > Dear Mis,Nabila > I will review this point and will return to you as sooner as possible,don't > worry about that. > > Regards > Mohammed AbuHajar > > - Original Message > From: Nabila khedimi > To: Mohammed Abu Hajar > Cc: NS_2 Mailing List > Sent: Tuesday, November 20, 2007 4:38:48 PM > Subject: RE: [ns] Traffic generation in a proc > > Hi, > I am still wondering about the no generation of a trafic when it is done by a > procedure although the same code made outside works, but when I put it in a > procedure it does not!!! anyone has an idea > nabila > > > Date: Mon, 19 Nov 2007 10:46:30 -0800 > From: [EMAIL PROTECTED] > Subject: Re: [ns] Traffic generation in a proc > To: [EMAIL PROTECTED] > CC: ns-users@isi.edu > > Hi ns user, > Try to wirte the cbr traffic without procedure to show it is correct or not. > Like > > # Traffic Source 1: Mobile node1->node3, flowid=1 > set udp1 [new Agent/UDP] > $ns_ attach-agent $node_(1) $udp1 > $udp1 set class_ 1 > $udp1 set fid_ 1 > set cbr1 [new Application/Traffic/CBR] > $cbr1 attach-agent $udp1 > $cbr1 set rate_ 20kb > $cbr1 set packetSize_ 512 > #$cbr1 set interval_ 0.2 > # Set loss monitor (to count bytes) at node 3 > set null1 [new Agent/Null] > $ns_ attach-agent $node_(8) $null1 > # Connect the CBR generator to the loss monitor > $ns_ connect $udp1 $null1 > > > Cheers, > Mohammed AbuHajar > > - Original Message > From: Nabila khedimi > To: ns-users@ISI.EDU > Sent: Monday, November 19, 2007 7:27:35 PM > Subject: [ns] Traffic generation in a proc > > > > Hi every one, > I wrote a tcl proc for the generation of a cbr trafic : > > proc generate_cbr_traffic {agent_src size rate start_time end_time} { > global ns puts "In generate cbr: $agent_src $size $rate $start_time > $end_time" set cbr_ [new Application/Traffic/CBR] $cbr_ set type_ CBR $cbr_ > set packetsize_ $size $cbr_ set rate_ $rate $cbr_ attach-agent $agent_src $ns > at $start_time "$cbr_ start" $ns at $end_time "$cbr_ stop"} > > I made the connection of the udp agents outside the procedure , when I call > the procedure, in the NAM environment no traffic was generated , > > > Thanks for your help > nabila > _ > Your smile counts. The more smiles you share, the more we donate. Join in. > www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline > > > > Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. > > Have fun while connecting on Messenger! Click here to learn more. > > > > Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it > now. _ R U Ready for Windows Live Messenger Beta 8.5? Try it today! http://entertainment.sympatico.msn.ca/WindowsLiveMessenger Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[ns] segmentation fault (2)
Hi All, After modifying aodv.cc and aodv.h and recompiling NS-2.30. When I run make install I got this error; linux-i3km:/usr/share/ns-2.30 # make install for d in /usr/local/man/man1; do \ if [ ! -d $d ]; then \ mkdir -p $d ;\ fi;\ done /usr/bin/install -c -m 755 ns /usr/local/bin /usr/bin/install -c -m 644 ns.1 /usr/local/man/man1 when I run NS I obtained a segmentation fault as follows; [EMAIL PROTECTED]:~/Documents/AODV/simulations> ns aodv-50.tcl num_nodes is set 50 INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Segmentation fault [EMAIL PROTECTED]:~/Documents/AODV/simulations> Does anyone know the reason for this or what might have caused the fault to occur. Thanks Regards Olakunle _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
Re: [ns] HOW [EMAIL PROTECTED] - a new/custom (routing) agent - Who knowssomething?
Claus, Great effort! Please, we need more volunteers for this effort, especially the users which are just starting NS2 (as documenting NS2 is an excellent way to learn it!) Regarding the agent creating, please check this info: http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html#_Toc128325750 "5: The above, but modifying the NS2 simulator yourself. When you are doing cutting edge research, that nobody did before, the only solution is to model your own additions to NS2. The first thing you should do is to locate a similar module that does something that you want to do also. perhaps another ad-hoc routing protocol, another QoS queue discipline, etc etc. Then you should clone the code, and change ALL names of variables, TCL bindings (*), C++ classes, packet headers, etc etc, to YOUR component name. When you do this you'll get a working component that you can start to SLOWLY modify to make YOUR algorithms and operations. If you do this way, instead of simply start coding from scratch, you'll be able to work with a working component, step by step, that you are able to validate every day. The alternative way, you spend months, or even more, before the component worked for the first time. Regarding packet sending, I've updated this page with agent->send() http://nsnam.isi.edu/nsnam/index.php/Sending_Packets - Also 1: I'm planning to revamp the mark greis NS2 tutorial, by retesting, and updating it. At first I'll do it in html; later I'll port it to the wiki. If anyone wants to help, please step in. Also 2: I've got a lot of useful info that should be ported to the wiki. Namely my debugging tutorials, http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html and for instance this web page: http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html Index: How to modify existing procedures from the standard TCL library (/tcl/lib/) without having to recompile NS2 at each step. 1 How to know values at run-time which are "easy" to store at configuration time. 2 How to trigger procedures in other modules at run-time. 3 How to call oTCL code from C++ counterpart an illustrated example. 3 How to known which Agents are implemented in NS2 / which protocols are implemented in NS2 5 What info options are available in otcl classes and objects?. 5 How to check the syntax of .tcl files. 7 How to get a trace of the oTcl procedures: 8 Which linux distro NOT to use: 8 And my beginners tips: http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html I'm severely time-limited at this very moment because my phd defense, but I can help others porting it. Pedro Estrela http://tagus.inesc-id.pt/~pestrela/ns2 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Claus Christmann > Sent: quarta-feira, 21 de Novembro de 2007 21:26 > To: ns users > Subject: [ns] HOW [EMAIL PROTECTED] - a new/custom (routing) agent - Who > knowssomething? > > > Hi List, > > I have been trying to get my own routing algorithm working in ns2 for > quite some time now and still haven't gotten as far as I hoped... > > I received a lot of support from the ns-users list so far, but still > need some more insight into ns2. In order to collect all that knowledge > out there and to make it easier to find/read/change/update, I started a > small effort on the ns2 wiki on > > *How to Write Your Own Agent* > http://nsnam.isi.edu/nsnam/index.php/Writing_an_Agent > > *How to Send Packets* > http://nsnam.isi.edu/nsnam/index.php/Sending_Packets > > *The OSI layers and ns2* > http://nsnam.isi.edu/nsnam/index.php/OSI_Reference_Model > > PLEASE, if YOU have ever struggled on one of these issues or maybe even > on the issue of writing your own _routing_agent_ , PLEASE go to the wiki > and write your knowledge down. (Or email me, then I will write it down) > > I am looking forward to tackle this big issue with the help off you all. > > *THANK YOU* > > Claus > > -- > Claus Christmann > Graduate Research Assistant > > Georgia Institute of Technology > 270 Ferst Drive > Atlanta, GA 30332-0150 > > http://uav.ae.gatech.edu
[ns] segmentation fault
Hi All, After modifying aodv.cc and aodv.h and recompiling NS-2.30. I obtained a segmentation fault as follows; [EMAIL PROTECTED]:~/Documents/AODV/simulations> ns aodv-50.tcl num_nodes is set 50 INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Segmentation fault [EMAIL PROTECTED]:~/Documents/AODV/simulations> Does anyone know the reason for this or what might have caused the fault to occur. Thanks Regards Olakunle _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
[ns] WSN research: open positions for PhD students at INESC-ID, Lisboa, Portugal
I'm forwarding this announcement open in my research institute Pedro Estrela - Dear all INESC-ID (http://www.inesc-id.pt) is offering 2 (TWO) temporary scholarships (12 months max) for PhD students who wish to join the institute's Wireless Sensor Networks research team. This scholarship is intended to support the student while he/she is not eligible to apply to the CMU/IST ECE PhD program (http://www.ist.utl.pt/en/html/cmu-pt/) and to respective full program scholarship offered by the portuguese government agency FCT (http://www.fct.mctes.pt/bolsas/cmu/). In case the candidate is not accepted into the CMU/IST program, he/she will have the possibility to apply to the regular ECE PhD program at IST (http://www.ist.utl.pt) and respective FCT scholarship. The temporary scholarship of 12 months, which might be extended and/or complemented depending on the student's activities in funded INESC-ID research projects. Candidates must be M.Sc. or graduated in a 5-year program (e.g., pre-Bologna European graduates). In order to apply to the temporary scholarship, candidates are required to send the following documents to Antonio Grilo ([EMAIL PROTECTED]): - CV (please indicate your experience with network modeling tools such as ns-2) - M.Sc. thesis (or equivalent) - Letter or motivation (please indicate the Wireless Sensor Network topics of interest) - Letters of Recommendation (if any) with respective contacts NOTE: As part of the selection process, candidates shall be asked to write a short review of one research paper (chosen by the juri) related with their preferred topics listed in the motivation letter. For more information, please send email to Antonio Grilo ([EMAIL PROTECTED]). Kind regards, Antonio Grilo (Assistant Professor at IST) (http://comp.ist.utl.pt/amg)
[ns] HOW [EMAIL PROTECTED] - a new/custom (routing) agent - Who knows something?
Hi List, I have been trying to get my own routing algorithm working in ns2 for quite some time now and still haven't gotten as far as I hoped... I received a lot of support from the ns-users list so far, but still need some more insight into ns2. In order to collect all that knowledge out there and to make it easier to find/read/change/update, I started a small effort on the ns2 wiki on *How to Write Your Own Agent* http://nsnam.isi.edu/nsnam/index.php/Writing_an_Agent *How to Send Packets* http://nsnam.isi.edu/nsnam/index.php/Sending_Packets *The OSI layers and ns2* http://nsnam.isi.edu/nsnam/index.php/OSI_Reference_Model PLEASE, if YOU have ever struggled on one of these issues or maybe even on the issue of writing your own _routing_agent_ , PLEASE go to the wiki and write your knowledge down. (Or email me, then I will write it down) I am looking forward to tackle this big issue with the help off you all. *THANK YOU* Claus -- Claus Christmann Graduate Research Assistant Georgia Institute of Technology 270 Ferst Drive Atlanta, GA 30332-0150 http://uav.ae.gatech.edu
[ns] why no body doesn't help me(please hellllllllllllllp me)
Hi all In wireless scenario that picture of this show at below Node 0 is sender and node 24 is receiver I want to use UDP agent for this nodes I use follow code for this purpose Please tell me is the following file correct and suitable? Why the CBR interval has not effect on time when the nodes' energy is finished? picture of nam file that show my topology is : http://rapidshare.com/files/70500344/Screenshot.png I'm waiting for your reply very thanks -- Amin Irandoost # == # Define options # == #set val(lifetime) 4000; set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy set opt(mac)Mac/SMAC set opt(ifq)Queue/DropTail/PriQueue set opt(ll) LL set opt(ant)Antenna/OmniAntenna set opt(x) 200.0 ;# X dimension of the topography set opt(y) 200.0 ;# Y dimension of the topography set opt(ifqlen) 50 ;# max packet in ifq set opt(seed) 0.0 set opt(tr) 2.tr ;# trace file set opt(nam)2.nam set opt(adhocRouting) AODV set opt(nn) 25 ;# how many nodes are simulated set opt(energymodel)EnergyModel set opt(stop) 4000.0;# simulation time set val(initialenergy) 300.0 set val(receivepower) 0.395 ;# Receiving Power set val(transmitpower) 0.660 ;# Transmitting Power set val(idlepower) 0.350 ;# Idle Power set val(sleeppower) 0.001 ;# sleep Power LL set bandwidth_ 20kb # = # unity gain, omni-directional antennas # set up the antennas to be centered in the node and 1.5 meters above it Antenna/OmniAntenna set X_ 0 Antenna/OmniAntenna set Y_ 0 Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 2.13643e-07 Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.281838 Phy/WirelessPhy set freq_ 9.14e+8 Phy/WirelessPhy set L_ 1.0 proc finish {} { global ns_ tracefd namtrace $ns_ flush-trace close $namtrace close $tracefd puts "\n running nam...\n" # exec nam 1.nam & exit 0 } # AMAC settings Mac/SMAC set syncFlag_ 1; # sleep wakeup cycles Mac/SMAC set dutyCycle_ 60 set ns_[new Simulator] $ns_ use-scheduler Heap $ns_ set WirelessNewTrace_ ON set topo[new Topography] set tracefd[open $opt(tr) w] set namtrace[open $opt(nam) w] $ns_ trace-all $tracefd $topo load_flatgrid $opt(x) $opt(y) $ns_ namtrace-all-wireless $namtrace 200.0 200.0 set cha [new $opt(chan)] # # Create god # create-god $opt(nn) $ns_ node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channel $cha \ -topoInstance $topo \ -WiredRouting OFF \ -energyModel $opt(energymodel) \ -idlePower $val(idlepower) \ -rxPower $val(receivepower) \ -txPower $val(transmitpower) \ -sleepPower $val(sleeppower) \ -initialEnergy $val(initialenergy) \ -agentTrace ON \ -routerTrace OFF \ -macTrace OFF set j 0 set k 0 for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0;# disable random motion if {$i%5==0} { set j [expr $j+20] if {$i!=0} { set k 0} } $node_($i) set X_ [set k [expr $k+20]] $node_($i) set Y_ $j $node_($i) set Z_ 0.0 } for { set j 0} { $j < $opt(nn)} {incr j} { $ns_ initial_node_pos $node_($j) 2 $node_($j) color blue $node_($j) log-energy } *for { set j 0} { $j < $opt(nn)} {incr j} { set udp_($j) [new Agent/UDP] $ns_ attach-agent $node_($j) $udp_($j) } set null_(0) [new Agent/Null] $ns_ attach-agent $node_([expr $opt(nn)-1]) $null_(0)* *set cbr [new Application/Traffic/CBR] $cbr set packetSize_ 50 $cbr set interval_ 3.0 $cbr attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 50.0 "$cbr star*t" # # Tell all the nodes when the simulation ends # for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop) "
Re: [ns] OK
just to your knowledge, no problem arises for the exponnential traffic, the procedure works perfectly, can a cbr traffic simulated by a an exponential with 0 for idle time? Thanks for help > Date: Tue, 20 Nov 2007 10:08:51 -0800 > From: [EMAIL PROTECTED] > Subject: OK > To: [EMAIL PROTECTED] > > Dear Mis,Nabila > I will review this point and will return to you as sooner as possible,don't > worry about that. > > Regards > Mohammed AbuHajar > > - Original Message > From: Nabila khedimi > To: Mohammed Abu Hajar > Cc: NS_2 Mailing List > Sent: Tuesday, November 20, 2007 4:38:48 PM > Subject: RE: [ns] Traffic generation in a proc > > Hi, > I am still wondering about the no generation of a trafic when it is done by a > procedure although the same code made outside works, but when I put it in a > procedure it does not!!! anyone has an idea > nabila > > > Date: Mon, 19 Nov 2007 10:46:30 -0800 > From: [EMAIL PROTECTED] > Subject: Re: [ns] Traffic generation in a proc > To: [EMAIL PROTECTED] > CC: ns-users@isi.edu > > Hi ns user, > Try to wirte the cbr traffic without procedure to show it is correct or not. > Like > > # Traffic Source 1: Mobile node1->node3, flowid=1 > set udp1 [new Agent/UDP] > $ns_ attach-agent $node_(1) $udp1 > $udp1 set class_ 1 > $udp1 set fid_ 1 > set cbr1 [new Application/Traffic/CBR] > $cbr1 attach-agent $udp1 > $cbr1 set rate_ 20kb > $cbr1 set packetSize_ 512 > #$cbr1 set interval_ 0.2 > # Set loss monitor (to count bytes) at node 3 > set null1 [new Agent/Null] > $ns_ attach-agent $node_(8) $null1 > # Connect the CBR generator to the loss monitor > $ns_ connect $udp1 $null1 > > > Cheers, > Mohammed AbuHajar > > - Original Message > From: Nabila khedimi > To: ns-users@ISI.EDU > Sent: Monday, November 19, 2007 7:27:35 PM > Subject: [ns] Traffic generation in a proc > > > > Hi every one, > I wrote a tcl proc for the generation of a cbr trafic : > > proc generate_cbr_traffic {agent_src size rate start_time end_time} { > global ns puts "In generate cbr: $agent_src $size $rate $start_time > $end_time" set cbr_ [new Application/Traffic/CBR] $cbr_ set type_ CBR $cbr_ > set packetsize_ $size $cbr_ set rate_ $rate $cbr_ attach-agent $agent_src $ns > at $start_time "$cbr_ start" $ns at $end_time "$cbr_ stop"} > > I made the connection of the udp agents outside the procedure , when I call > the procedure, in the NAM environment no traffic was generated , > > > Thanks for your help > nabila > _ > Your smile counts. The more smiles you share, the more we donate. Join in. > www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline > > > > Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. > > Have fun while connecting on Messenger! Click here to learn more. > > > > Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it > now. _ R U Ready for Windows Live Messenger Beta 8.5? Try it today! http://entertainment.sympatico.msn.ca/WindowsLiveMessenger
Re: [ns] About callback from C++ code to OTcl (Brian LIU)
Solved. You must use global variables to acces them inside the "doLETJOIN" instproc. Also, I recommend you to follow my tutorial, and learn how to simplify the code for debugging... for instance, the C++ part is only causing confusion on the debugging process. See below how I've done without depending on c++. When the Tcl code is ok, you should then start from tcl! Also, on C++ you should use as follows: Tcl::instance().evalf( "$app(%d) %d %d %d %d", src, src, des, master, object); -- set ns[new Simulator] global ns tcp app for {set j 0} {$j < 13} {incr j} { set tcp($j) [new Agent/TCP/SimpleTcp] #$ns attach-agent $node($j) $tcp($j);# DISABLED, as this test script do not creates the nodes } set app(0) [new Application/TcpApp $tcp(0) source 0] for {set k 1} {$k < 13} {incr k} { set app($k) [new Application/TcpApp $tcp($k) common $k] } proc doLETJOIN {src des master object} { global ns tcp app ;# this is essential !!! $ns at [$ns now] "$ns connect $tcp($src) $tcp($des)" $ns at [$ns now] "$tcp($src) listen" $ns at [$ns now] "$tcp($des) listen" $ns at [$ns now] "$app($src) connect $app($des)" $ns at [$ns now] "$$src letjoin $src $des $master" } proc my_test {} { global ns puts "inside test" doLETJOIN 0 1 0 4 } $ns at "1" "my_test" $ns run > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Brian Liu > Sent: quarta-feira, 21 de Novembro de 2007 1:35 > To: ns-users@ISI.EDU > Subject: [ns] About callback from C++ code to OTcl (Brian LIU) > > > > Emergency Help! > Hi, buddies > > This problem troubles me long times, please help me to tackle this. Thanks > a > lot. > > i use: > static char* catLETJOIN(const char* src, const char* des, const char* > master, const char* object) > { // $app(src) doLETJOIN src des master object > int len = strlen(src)*2 + strlen(des) + strlen(master) + > strlen(object) > + 21; > char* callback = new char[len]; > strcpy(callback, "$app("); > strcat(callback, src); > strcat(callback, ") doLETJOIN "); > strcat(callback, src); > strcat(callback, " "); > strcat(callback, des); > strcat(callback, " "); > strcat(callback, master); > strcat(callback, " "); > strcat(callback, object); > return callback; > } > > in one function, i callback to Otcl: > Tcl::instance().eval(catLETJOIN("0", "1", "0", "4")); > > In Otcl, i have this: > .. > .. > for {set j 0} {$j < 13} {incr j} { > set tcp($j) [new Agent/TCP/SimpleTcp] > $ns attach-agent $node($j) $tcp($j) > } > > set app(0) [new Application/TcpApp $tcp(0) source 0] > > for {set k 1} {$k < 13} {incr k} { > set app($k) [new Application/TcpApp $tcp($k) common $k] > } > > Application/TcpApp instproc doLETJOIN {src des master object} { > global ns > $ns at [$ns now] "$ns connect $tcp($src) $tcp($des)" > $ns at [$ns now] "$tcp($src) listen" > $ns at [$ns now] "$tcp($des) listen" > $ns at [$ns now] "$app($src) connect $app($des)" > $ns at [$ns now] "$$src letjoin $src $des $master" > } > > why the following error happen? > > ns: $app(0) doLETJOIN 0 1 0 4: can't read "tcp(0)": no such variable > while executing > "$ns at [$ns now] "$ns connect $tcp($src) $tcp($des)"" > (procedure "_o315" line 3) > (Application/TcpApp doLETJOIN line 3) > invoked from within > "$app(0) doLETJOIN 0 1 0 4" > > > help me, please. > > > Sincerely, > > Brian Liu > > Graduate School of Information,Production,Systems > WASEDA UNIVERSITY > > Hibikino 2-6-416, Wakamatsu-ku, > Kitakyushu-shi, Fukuoka, > JAPAN 808-0135 >
[ns] Function recv() of CBR
Dear all, in ns2-1b5 CBR_Agentdefine in cbr.h,cc. this agent has sendpkt() that it call target_->rece() same as below: = void CBR_Agent::sendpkt() { if (++seqno_ < maxpkts_) { Packet* p = allocpkt(); hdr_rtp* rh = (hdr_rtp*)p->access(off_rtp_); //this function return the header of packet rh->seqno() = seqno_; target_->recv(p); } else running_ = 0; } = my problem is : I dont know target_->recv(p); refers to which recv() of which agent of which file. please advice me about that. thanks for your help best regards Amin - Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
[ns] Fwd: how to calculate throuput
-- Forwarded message -- From: أحمد حموده <[EMAIL PROTECTED]> Date: Nov 21, 2007 2:51 PM Subject: how to calculate throuput To: ns-users@isi.edu dear all, I have already packet delivery ratio ,and control over head. but Ineed to calculate throuput ,probabilty of retransmition ,probabilty of loss, acsess time. can any one guideme how to calculate throuput,that by sending me referances ,equation,.or any information. thank you in advance
[ns] Is 802.15.4 the default protocol for mobilenodes in ns2?
Hello, i'm going to work with 2.31 version for simulating wireless scenario. I would like to know: - is 802.15.4 the default mac protocoll or should i configure some parameter to set it? - the cbr traffic generator has the parameter random_ that allows to add noise to the generating time interval, is this function enabled by setting it to 1? Thank you Daniele Manini
[ns] wfq scripts
Hello every body I am traying to implement wfq scripts in ns2.29 running on windows xp, i download the patch from the, of course the last version, i fllow the instructions that readme file has, an d apparently it is working. but when i run the example that is with the package it sends the follwing error (_o3 cmd line 1) invoked from within "_o3 cmd wfqclassifier-install _o16 _o19 _o82" 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 "_o3" line 2) (SplitObject unknown line 2) invoked from within "ns wfqclassifier-install $r $d $cl " (file "example.tcl line 75) can anybody tell me, wht si wrong with this?? Is it the patch installed correctly or i am making a mistake, because it should run after it is installed thanks _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/