Re: [ns] help
dear all, somebody kindly help me to add the new protocol PING given in the tutorial. problem faced is : after creating ping.h ping.cc and nessary changes when given make at prompt, it says no destinations. Send instant messages to your online friends http://in.messenger.yahoo.com brbr Stay connected with your friends even when away from PC. Link: http://in.mobile.yahoo.com/new/messenger/
[ns] simple-wireless.tcl is not running on ns2.28
Dear friend, please help me to run wireless scripts on ns2 . i am typing the following command: ns simple-wireless.tcl the error messafe that i am getting is as follows: num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file ../mobility/scene/cbr-3-test: no such file or directory while executing source.orig ../mobility/scene/cbr-3-test (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $val(cp) (file wireless1.tcl line 121) what is this? please help
[ns] termination of transmission
Hi! I want to terminate the transmission after finishing sending some quantity of data . In my tcl program termination of transmission like: $ns at 4.5 $ns detach-agent $n0 $tcp ; $ns detach-agent $n2 $sink $ns at 5.0 finish Naturally program finishes at every 4.5 second. However i want to terminate the transmission , rexample after 10 Mb data transmission. What can I do for it. I'm waiting your respond . Regards. Erhan _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[ns] termination of transmission
Hi! I want to terminate the transmission after finishing sending some quantity of data . In my tcl program termination of transmission like: $ns at 4.5 $ns detach-agent $n0 $tcp ; $ns detach-agent $n2 $sink $ns at 5.0 finish Naturally program finishes at every 4.5 second. However i want to terminate the transmission , rexample after 10 Mb data transmission. What can I do for it. I'm waiting your respond . Regards. Erhan _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
[ns] jitter in a new MANET routing protocol
Hello everybody! I'm working with ns-2.29 on Mandriva 2006 and i'm working on a new protocol implementation, following the tutorial Implementing a New Manet Unicast Routing Protocol in NS2 by Francisco Ros and Pedro Ruiz. At the paragraph 4.3.5 it shows the implementation of send_protoname_pkt() function and it shows how to send a packet introducing some jitter. My question is: why do they introduce jitter? Is it absolutely necessary? Could the packet be sent without jitter and how? I know that jitter is the variation in time between packets ariving. isn't it more efficient to send packets at a constant interval? Please someone explain this to me, it is VERY IMPORTANT. Thank you in advance! Regards, Alexandra Alexandra Cioroianu __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] simple-wireless.tcl is not running on ns2.28
Search for the /mobility/scene direcotories in your NS2 tree, and put the example alosnside it, eg: Snenario files in /ns2/tcl/ex/mobility/scene Put the script in /ns2/tcl/ex/mydir/ Pedro Vale Estrela -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Srirupa Dasgupta Sent: quarta-feira, 14 de Junho de 2006 8:23 To: ns-users@ISI.EDU Subject: [ns] simple-wireless.tcl is not running on ns2.28 Dear friend, please help me to run wireless scripts on ns2 . i am typing the following command: ns simple-wireless.tcl the error messafe that i am getting is as follows: num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file ../mobility/scene/cbr-3-test: no such file or directory while executing source.orig ../mobility/scene/cbr-3-test (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $val(cp) (file wireless1.tcl line 121) what is this? please help
[ns] Problem with emulation
Hi list! I'm having some problems using the emulation examples. I try to use ns-2 as a forwarder: real host A send a ping to real host B, passing through the simulator, C. After adding the correct route to A and B to use C as a gateway, I use this script (because the one with ns-2 doesn't work at all) # Inside the simulator # # node(5) # / \ # / \ # node(2) node(1) set ns [new Simulator] $ns use-scheduler RealTime set f [open out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf # Create the nodes set n1 [$ns node]; #reading from real network set n2 [$ns node]; #writing to the real network set n5 [$ns node]; #nothing important # Configure the entry node set bpf1 [new Network/Pcap/Live]; # Create the bpf set dev1 [$bpf1 open readonly eth0]; # Open the device $bpf1 filter icmp and host 192.168.0.3;# put the filter set tap1 [new Agent/Tap]; # Create the Tap Agent $tap1 network $bpf1; # Connect bpf to Tap Agent $ns attach-agent $n1 $tap1; # Attach Tap Agent to the node(1) # Configure the exit node set ipnet [new Network/IP]; # Create a Network agent $ipnet open writeonly set tap2 [new Agent/Tap]; # Create a Tap Agent $tap2 network $ipnet; # Connect network agent to tap agent $ns attach-agent $n2 $tap2; # Attach agent to the node. # Connect the agents. $ns simplex-connect $tap1 $tap2 #Just for debug puts tap1: $tap1 puts tap2: $tap2 puts Node1: $n1 puts Node2: $n2 puts Node5: $n5 puts bpf1: $bpf1 puts ipnet: $ipnet # Setup connections between the nodes $ns simplex-link $n1 $n2 10Mb 5ms DropTail $ns simplex-link $n5 $n2 10Mb 5ms DropTail $ns at 10 finish proc finish {} { global ns f nf $ns flush-trace close $f close $nf exit 0 } $ns run If I run this script, the packets are forwarded, but the simulator begins to create a very big traffic of dup packet: ... TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) TapAgent(_o24): sent packet (sz: 60) 4.835407: Tap(_o21): recvpkt, cc:60 4.835407: Tap(_o21): recvpkt, writing to target: _o13 4.835578: Tap(_o21): recvpkt, cc:60 4.835578: Tap(_o21): recvpkt, writing to target: _o13 4.835698: Tap(_o21): recvpkt, cc:60 4.835698: Tap(_o21): recvpkt, writing to target: _o13 4.835807: Tap(_o21): recvpkt, cc:60 4.835807: Tap(_o21): recvpkt, writing to target: _o13 4.835976: Tap(_o21): recvpkt, cc:60 4.835976: Tap(_o21): recvpkt, writing to target: _o13 4.836086: Tap(_o21): recvpkt, cc:60 ... I really don't understand why. And if I use IPTap for the 2 tap I get: IPTapAgent(_o21): sendpkt called while in read-only mode! 0.770541: IPTapAgent(_o21): recvpkt, cc:1 Thank you very much for any idea/suggestion/tip. Paolo Carpo P.S. Sorry for the poor english
Re: [ns] Clearing a queue at a node in ns-2
But this doesn't work. Uptarget_ gives me an NsObject instead of a LL object... try casting it to an c++ LL object. Mind that this will only be a quick fix to see if it works - its terrible programming ! Pedro Vale Estrela -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 9 de Junho de 2006 23:33 To: Pedro Vale Estrela Cc: ns-users@ISI.EDU Subject: RE: [ns] Clearing a queue at a node in ns-2 Whoah, that is too complicated for me. I don't know ns-2 very well. What do you mean by: make a pointer to the ITF -- doesn't it have a pointer (uptarget_)? According to the diagram on pg 145 I should do uptarget_ -downtarget_- reset() since uptarget will take me to the LL, downtarget will take me to the IFq, and reset will reset the queue for that node. But this doesn't work. Uptarget_ gives me an NsObject instead of a LL object... On Fri, 9 Jun 2006, Pedro Vale Estrela wrote: Yes, http://www.isi.edu/nsnam/ns/doc/ns_doc.pdf pag 145, - at your C++ MAC module, make a pointer to the ITF; - either search the C++ NODE methods for getting the pointer reference you need (you want the reverse of the downtarget_ on the ITF; for making this, search the code that sets the downtarget_ variable in C++ in the ITF; (tip: use DDD, put a breakpoint somewhere in mobilenode.cc) in that moment, set something like: downtarget_-my_ITF_ = this; - then at the appropriate time, call reset() of it. my_ITF-reset(); Of course that this is not good C++ Object-Orientation practices, but use it to simply try your ideia; if it works nice, then make the same thing with provte variables and public set/get methods. You can also perform the same trick by: Calling TCL / searching the ITF object you want based on the current MAC object / call reset of it. The benefit is that you can fine tune this method without recompiling NS2 each time. If this works, please put this on the NS2 WIKI! Pedro Vale Estrela Hi ns, I'd like to clear a node's queue from the mac-layer in my simulation after I've received a certain packet. Can I call a PacketQueue function like reset() from the mac layer? If not, how would I clear the queue? Thanks! Kathy