[ns] GTS Scheduler IEEE 802.15.4
Hi all, I m need to simulate IEEE 802.15.4 GTS Scheduler in NS2 to my research .. Any one have code for GTS scheduler ? Please send me any one had it .. Thanks in Advance Sekar -- View this message in context: http://www.nabble.com/GTS-Scheduler-IEEE-802.15.4-tp22134085p22134085.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] energy model for WSN
Hi all, Do you know please where can I find simple TCL using energy model for WSN? Thanks a lot.
[ns] [OLSR] OLSR Impl. for ns2.33
Dear ALL Can any one help me where i can find a stable implementation for OLSR routing protocol for ns2.33? Thanks Ghada
[ns] IP spoofing of DSR route errors
Hello, is it possible to send DSR Route Errors packets with source IP addresses of other nodes? What I want to do, is to send Route Errors from node X, but with source IP addresses of X's neighbors...It has to do with a University project, to modify DSR in order for nodes to relieve themselves when they reach a low level of energy, by forcing nodes which generate traffic to use other routes (possibly, luckily, which do not include the dying node). X will still be able to send/receive/forward traffic, but hopefully won't be stressed too much, if there are other routes to the intended destination, whose nodes might have more energy... Think of it like survival instinct, but the problem is that REERs are normally sent from neighbors of X, when they sense (through the lack of data-link ACKs) that the link Y->X is broken. If I'd simply shut down X for an amount of time of 0.1-0.3 sec., this would happen automatically, but I'd prefer to use a more "clean" approach, also because X should still be able to communicate for a while, just not too much, so it's better if it receive updates about the network topology, such as RERRs from other nodes, etc... Have you ever tried this approach? I'm asking this because I don't have much time left, so I'd prefer not to waste time into ways that will prove to be unfeasible... Thanks a lot
[ns] MLDesigner and ns-2 (with MIH module)
Hi! I recently discovered a GUI for ns-2, MLDesigner, but a have a doubt. I applied NIST mobility module (802.21) in ns-2... the MLDesigner will "detect" the agents and events present in the module (when design in the GUI)? Or only use the elements from ns-2 "native" version? Antonioli -- View this message in context: http://www.nabble.com/MLDesigner-and-ns-2-%28with-MIH-module%29-tp22153507p22153507.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] Scenario file takes too long to load for 200 nodes and 900seconds
Thanks Kavan, I removed all the god statements from the mobility file as my protocol doesnot use any of the forwarding optimal information and it solved the problem. The file loads so much faster. The only thing i wonder now is what if i wanted that optimality information? Is there a way to expedite the reading of all that god information in the script? Removal of god lines has the 0 as output in the Pf and Po fields of the output trace file. If you have any suggestions to keep the info intact i would like to try that out, because I know I might need that information later in my work. I think ns2 gurus can shed some light on this matter. So let me put the question out: Constant mobility with 200 nodes makes a lot of changes in the topology and hence a lot of god statements in the mobility file updating the optimal hop information for the affected nodes. I think the god statements are read as tcl script by the ns2 and is extremely slow in updating the internal information so is there a way to read that info in a matrix format because reading the god statements takes a hell lot of time? Thanks again. Vaqar Quoting kavan sheth : > Hi Vaqar, > if you are not using "god" object then you can modify setdest code > such that it remove all god entries. or at least what you can do is > remove god entries using grep command from your scenario file. > As far as I know, simulation with more nodes and simulation time > takes a lot of time but 30 hours looks too much to me. > Kavan > DA-IICT > > On 2/16/09, sava...@engmail.uwaterloo.ca > wrote: >> >> Hi, >> I am running my simulation for 200 nodes and 900 seconds. The mobility >> scenario has been generated using the >> /indep-utils/cmu-scen-gen/setdest/make-scen.csh file. The files >> generated are about 116MB to 132MB. Now my question is that while >> running the ns it seems to take eternity (till now 30 hours on AMD >> 2200 4GB) to load the scenario file, Is this normal or is there a way >> to avoid this delay. Any thought would be welcome. >> You all have a nice day. >> >> Vaqar >> >> >> >> >> >
[ns] LEACH sample simulation with mannasim and NS2.29
Hi, Have you a tcl sample to simulate LEACH under NS2.29 with mannasim? Thanks.
[ns] Default energy consumption in NS2
I'm not able to find the default values for mobile node's energy consumption (rxPower/txPower) in NS2...I've looked into ns-default.tcl, inside the C++ code, I even tried using 'find', but there's no value (apart from a 0 in the constructor of the C++ class EnergyModel). Do you know where I can find them, and what's their value? Thanks
[ns] Res: Fwd: dsr protocol in ns2
Hi, Pradeep. Try not to study the NS2 source code without understand the whole DSR algorithm. Good luck, ___ Helber Wagner da Silva MSc. Student in Applied Informatics University of Fortaleza - Ceará - Brazil URL: http://www.nr2.ufpr.br/~helber De: b pradeep Para: ns-users@ISI.EDU Enviadas: Domingo, 22 de Fevereiro de 2009 9:39:26 Assunto: [ns] Fwd: dsr protocol in ns2 -- Forwarded message -- From: b pradeep Date: Sun, Feb 22, 2009 at 6:04 PM Subject: dsr protocol in ns2 To: ns-users@isi.edu hello hi ns users. i'm new to this community. I'm doing a project on "distributed cache updating on dynamic source routing", an ieee paper. The main objective of the project is i need to understand the dsr protocol code and make modifications according to the paper. But the main hurdle before me is i'm unable to understand the dsr protocol in ns2.33. so could anyone suggest me a website/book which explains the dsr code in ns2.It's urgent Thanks in advance. pradeep btech final year cvr college of engineering hyderabad Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
[ns] explanation of .cc file of ns2
Hello all, can anybody explain me the aodv.cc and its it's related header files in details (i.e purpose of each and every class and function). Is there any documentation available that explains all c++ and headers files in ns2? Regards Dinesh
[ns] Geneartion of node movement
--- On Sun, 2/22/09, Bello Lawal wrote: From: Bello Lawal Subject: Geneartion of node movement To: ns-users@ISI.EDU Date: Sunday, February 22, 2009, 4:42 AM Pls. hw can i set a random node movement in ns-2 under windows vista. I will be very grateful if i can get a procedure of hw to do it. Cheers.
[ns] Fwd: dsr protocol in ns2
-- Forwarded message -- From: b pradeep Date: Sun, Feb 22, 2009 at 6:04 PM Subject: dsr protocol in ns2 To: ns-users@isi.edu hello hi ns users. i'm new to this community. I'm doing a project on "distributed cache updating on dynamic source routing", an ieee paper. The main objective of the project is i need to understand the dsr protocol code and make modifications according to the paper. But the main hurdle before me is i'm unable to understand the dsr protocol in ns2.33. so could anyone suggest me a website/book which explains the dsr code in ns2.It's urgent Thanks in advance. pradeep btech final year cvr college of engineering hyderabad
[ns] LEACH (how to calculate the level of energy of sensor node????)
Dear ns-users, I am working on LEACH protocol. How can I calculate the level of energy of sensor node? by formula? or ??? very appreciate any help Bold
[ns] Question about strange packet drop behavior when packet error rate bigger than 0.01
Hello everyone, I made a mistake for the last Email, the value of packet error rate should be 0.01. Here is a description of my question: I add the link-error module in a simple link from node0 to node1(ns2.28 and ns2.33 both have this problem): ftp->tcp->node->link->node->tcpsink when I set the error rate bigger than 0.01, the first tcp packet(I think is syn) alsways have error and is dropped, the next transmission happened after 6 sec. Here is the trace file: packet error rate: 0.01 0.1 0 0 1 0 t_seqno_ 1 0.14032 0 0 1 0 t_seqno_ 2 0.14032 0 0 1 0 t_seqno_ 3 0.18464 0 0 1 0 t_seqno_ 4 ... ... packet error rate: 0.02 0.1 0 0 1 0 t_seqno_ 1 6.1 0 0 1 0 t_seqno_ 0 6.1 0 0 1 0 t_seqno_ 1 6.14032 0 0 1 0 t_seqno_ 2 Does anyone know the reason for this strange behavior? My tcl script is: set n0 [$ns node] set n1 [$ns node] $ns duplex-link $n0 $n1 2Mb 20ms DropTail set em [new ErrorModel] $em set rate_ 0.2 $em unit pkt $em ranvar [new RandomVariable/Uniform] $em drop-target [new Agent/Null] $ns link-lossmodel $em $n0 $n1 set tcp [new Agent/TCP] $ns attach-agent $n0 $tcp set sink [new Agent/TCPSink] $ns attach-agent $n1 $sink $ns connect $tcp $sink $tcp set fid_ 1 #Open the t_seqno_ trace file $tcp trace t_seqno_ set trace_ch [open "trace.txt" w] $tcp attach $trace_ch ... ... $ns at 0.1 "$ftp start" $ns at 63.5 "$ftp stop" Thank you very much for your help. Best Regards, Tong Mao
[ns] reg error : ap lookup failed
I am trying to run infra.tcl that is present in the examples of ns2. (Location : /ns2.3/ns-2.33/tcl/ex/802.11/infra.tcl) I find a lot of errors among which one of them is : ap lookup failed. I am unable to figure out any mistakes in the code(it is an example, theres no mistake in the code, i would think) and how to get it running. Any help is greatly appreciated. Thank you. Karthik Following is the code, if someone is unable to locate it : #** set val(chan) Channel/WirelessChannel;#Channel Type set val(prop) Propagation/TwoRayGround ;# radio- propagation model set val(netif) Phy/WirelessPhy;# network interface type set val(mac)Mac/802_11 ;# MAC type set val(ifq)Queue/DropTail ;# interface queue type set val(ll) LL ;# link layer type set val(ant)Antenna/OmniAntenna;# antenna model set val(ifqlen) 50;# max packet in ifq set val(nn) 10 ;# number of mobilenodes set val(rp) DumbAgent ;# routing protocol set val(x) 600 set val(y) 600 Mac/802_11 set dataRate_ 11Mb #Phy/WirelessPhy set CSThresh_ 10.00e-12 #Phy/WirelessPhy set RXThresh_ 10.00e-11 #Phy/WirelessPhy set Pt_ 0.1 #Phy/WirelessPhy set Pt_ 7.214e-3 # Initialize Global Variables set ns_ [new Simulator] set tracefd [open infra.tr w] $ns_ trace-all $tracefd # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God create-god $val(nn) # Create channel set chan_1_ [new $val(chan)] $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace ON \ -channel $chan_1_ for {set i 0} {$i < [expr $val(nn)]} {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion set mac_($i) [$node_($i) getMac 0] $mac_($i) set RTSThreshold_ 3000 $node_($i) set X_ $i $node_($i) set Y_ 0 ;# Horizontal arrangement of nodes $node_($i) set Z_ 0.0 } #Set Node 0 and Node $val(nn) as the APs. Thus the APs are the ends of the horizontal line. Each STA receives different power levels. set AP_ADDR1 [$mac_(0) id] $mac_(0) ap $AP_ADDR1 set AP_ADDR2 [$mac_([expr $val(nn) - 1]) id] $mac_([expr $val(nn) - 1]) ap $AP_ADDR2 #$mac_([expr $val(nn) - 1]) set BeaconInterval_ 0.2 $mac_(1) ScanType ACTIVE for {set i 3} {$i < [expr $val(nn) - 1]} {incr i} { $mac_($i) ScanType PASSIVE ;#Passive } $ns_ at 1.0 "$mac_(2) ScanType ACTIVE" Application/Traffic/CBR set packetSize_ 1023 Application/Traffic/CBR set rate_ 256Kb for {set i 1} {$i < [expr $val(nn) - 1]} {incr i} { set udp1($i) [new Agent/UDP] $ns_ attach-agent $node_($i) $udp1($i) set cbr1($i) [new Application/Traffic/CBR] $cbr1($i) attach-agent $udp1($i) } set base0 [new Agent/Null] $ns_ attach-agent $node_(1) $base0 set base1 [new Agent/Null] $ns_ attach-agent $node_(8) $base1 $ns_ connect $udp1(4) $base0 $ns_ connect $udp1(5) $base1 $ns_ at 2.0 "$cbr1(4) start" $ns_ at 4.0 "$cbr1(5) start" $ns_ at 10.0 "$node_(4) setdest 300.0 1.0 30.0" $ns_ at 20.0 "stop" $ns_ at 20.0 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd exit 0 } puts "Starting Simulation..." $ns_ run #**