[ns] can any one mail me dmac code
hi - can i get code for dmac protocl iam working on developing energy efficient mac protocl for sensor n/w i need dmac for my project .
Re: [ns] Can code written in 'C' language be linked to NS2
Hi Sandeep! Sandeep [EMAIL PROTECTED] wrote: NS2 is written in C++, which is linked to otcl. But I got a work where I have to write a module in C and link it to existing ns2. Can code written in C be linked to otcl (or ns2)? If yes, is there any material or link explaining it. There are several ways to link C code against ns-2. You should have a look at Network Simulation Cradles (http://research.wand.net.nz/software/nsc.php), GEA (http://www-ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/gea/index.shtml), or my own work at http://www.inf.fu-berlin.de/inst/ag-tech/scatterweb_net/software/ns2.html. Regards, Georg -- Georg Wittenburg, M.Sc. Freie Universität Berlin http://www.inf.fu-berlin.de/inst/ag-tech/members/wittenburg.html
[ns] Trace RTO : Is this process correct ?
No, some things are missing, please see RTO patch here : http://maxunger.free.fr/spip/article.php3?id_article=39 Bye Max -- Max UNGER = N2NSOFT, 11 blvd Sebastopol 75001 Paris Tel : +33 1 4013 9553 http://www.n2nsoft.com/ http://maxunger.free.fr/
Re: [ns] UM-OLSR problem
Hi, Did you re-compile the simulator after applying the patch? You can find instructions here: http://masimum.inf.um.es/?Software:UM-OLSR:Installation Regards, fran On Sunday 03 September 2006 13:04, ns user wrote: dear ns users, i have installed the patch UM-OLSR to ns 2.29 to support the routing protocol OLSR. but it when using OLSR in a NS script it give an error. here the example used : 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/PriQueue;# 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(rp) OLSR set val(n) 4 ;# Nombre de Noeuds set val(simtime)50 set val(X) 3000 set val(Y) 1000 set val(dataRate) 2.0 set val(basicRate) 1.0 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 Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 ;# 550 m Phy/WirelessPhy set RXThresh_ 3.652e-10 ;# 250 m Phy/WirelessPhy set bandwidth_ 2e6 Phy/WirelessPhy set Pt_ 0.28183815 Phy/WirelessPhy set freq_ 914e+6 Phy/WirelessPhy set L_ 1.0 Phy/WirelessPhy set dataRate_ $val(dataRate)Mbps Phy/WirelessPhy set basicRate_ $val(basicRate)Mbps Mac/802_11 set RTSThreshold_3000;# Sans le mode RTS/CTS set ns [new Simulator] set topo [new Topography] $topo load_flatgrid $val(X) $val(Y) # Create God set god_ [create-god $val(n)] set chan [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) \ -channel $chan \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace OFF for {set i 0} {$i $val(n)} {incr i} { set node_($i) [$ns node] $node_($i) random-motion 0 $node_($i) set X_ [expr $i * 100] $node_($i) set Y_ 0 } and this is the error : (_o14 cmd line 1) invoked from within _o14 cmd addr 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 _o14 line 2) (SplitObject unknown line 2) invoked from within _o14 addr (eval body line 1) invoked from within eval $node addr $args (default arm line 2) invoked from within switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 $node start-dsr } AODV { set ragent [$self cre... (procedure _o3 line 11) (Simulator create-wireless-node line 11) invoked from within _o3 create-wireless-node (eval body line 1) invoked from within eval $self create-wireless-node $args (procedure _o3 line 23) (Simulator node line 23) invoked from within $ns node (for body line 2) invoked from within for {set i 0} {$i $val(n)} {incr i} { set node_($i) [$ns node] $node_($i) random-motion 0 $node_($i) set X_ [expr $i * 100] $node...
[ns] NS2.29 Patch to trace RTO
Hello everybody, As i was surprised it wasn't possible to trace RTO in NS2.29, i made a patch for it. You'll find it here : http://maxunger.free.fr/spip/article.php3?id_article=39 Hope it'll helps. Thank you to leave your comments Max -- Max UNGER = N2NSOFT, 11 blvd Sebastopol 75001 Paris Tel : +33 1 4013 9553 http://www.n2nsoft.com/ http://maxunger.free.fr/
Re: [ns] idle/sleep state
I'm also trying to do this, but I didn't find ou yet if it is possible... On 8/30/06, Alex Triffitt [EMAIL PROTECTED] wrote: I am wanting to put a node into a idle/sleeping state where it will not listen for transmitted packets and to all intense and purposes is not participating in the MANET i've created. Could someone possiblely tell me how this is done or point out where I can find out how to do this Kindest regardsAlex
Re: [ns] idle/sleep state
Hello Alex, I'm not sure if this is the best solution, but you can use the 'on' and 'off' commands in the mobile node to put it to sleep. Unfortunately these commands doesn't work.in NS2 off the box (as of version 2.29.3) To do so, you need comment out a call to a unexistent tcl function in the line 202 of ns-2.29/common/mobilenode.cc : // Remove this line. I didn't found this function anywhere!. // tcl.evalf(%s reset-state, str); After that, to put a node to sleep, mix the commands 'on' and 'off' in the scenery model, e.g: $ns_ at 3.0 $node_(0) off $ns_ at 10.0 $node_(0) on Also, the Energy Model must be enabled to use that, i.e, put above line in node configuration: -energyModel EnergyModel Best Regards, Julian p.s. How do I submit this patch to the NS2 tree? Alex Triffitt wrote: I am wanting to put a node into a idle/sleeping state where it will not listen for transmitted packets and to all intense and purposes is not participating in the MANET i've created. Could someone possiblely tell me how this is done or point out where I can find out how to do this Kindest regardsAlex
Re: [ns] idle/sleep state
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julian Monteiro Sent: segunda-feira, 4 de Setembro de 2006 15:40 To: Alex Triffitt Cc: ns-users@ISI.EDU Subject: Re: [ns] idle/sleep state Hello Alex, I'm not sure if this is the best solution, but you can use the 'on' and 'off' commands in the mobile node to put it to sleep. Unfortunately these commands doesn't work.in NS2 off the box (as of version 2.29.3) To do so, you need comment out a call to a unexistent tcl function in the line 202 of ns-2.29/common/mobilenode.cc : // Remove this line. I didn't found this function anywhere!. // tcl.evalf(%s reset-state, str); ns2 grep reset-state */*.cc this function is defined in diffusion/diffusion.cc , flodding.cc and omni-cast.cc After that, to put a node to sleep, mix the commands 'on' and 'off' in the scenery model, e.g: $ns_ at 3.0 $node_(0) off $ns_ at 10.0 $node_(0) on Also, the Energy Model must be enabled to use that, i.e, put above line in node configuration: -energyModel EnergyModel Best Regards, Julian p.s. How do I submit this patch to the NS2 tree? An excellent question indeed. Short answer: diff -C3 original file modified file idle.patch persons are able to apply your patch using cat idle.patch | patch longer answer: check step 7 of http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html if you have more questions please ask; however, please submit your patch only after you are sure what is that reset-state code about! Pedro Vale Estrela Alex Triffitt wrote: I am wanting to put a node into a idle/sleeping state where it will not listen for transmitted packets and to all intense and purposes is not participating in the MANET i've created. Could someone possiblely tell me how this is done or point out where I can find out how to do this Kindest regardsAlex
Re: [ns] idle/sleep state
I've misunderstood the results of that grep, I didn't realized that these strcmp were the functions... sorry. Now I see, the 'reset-state' command is only used in the directed diffusion protocol from C. Intanagonwiwat. So, if I'm not using diffusion I can remove that line, or implement a 'reset-state' in all protocols I want to simulate. ... but this is not the time for a patch. Best regards, Julian p.s. this is a very good page, thanks! : http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html Pedro Vale Estrela wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julian Monteiro Sent: segunda-feira, 4 de Setembro de 2006 15:40 To: Alex Triffitt Cc: ns-users@ISI.EDU Subject: Re: [ns] idle/sleep state Hello Alex, I'm not sure if this is the best solution, but you can use the 'on' and 'off' commands in the mobile node to put it to sleep. Unfortunately these commands doesn't work.in NS2 off the box (as of version 2.29.3) To do so, you need comment out a call to a unexistent tcl function in the line 202 of ns-2.29/common/mobilenode.cc : // Remove this line. I didn't found this function anywhere!. // tcl.evalf(%s reset-state, str); ns2 grep reset-state */*.cc this function is defined in diffusion/diffusion.cc , flodding.cc and omni-cast.cc After that, to put a node to sleep, mix the commands 'on' and 'off' in the scenery model, e.g: $ns_ at 3.0 $node_(0) off $ns_ at 10.0 $node_(0) on Also, the Energy Model must be enabled to use that, i.e, put above line in node configuration: -energyModel EnergyModel Best Regards, Julian p.s. How do I submit this patch to the NS2 tree? An excellent question indeed. Short answer: diff -C3 original file modified file idle.patch persons are able to apply your patch using cat idle.patch | patch longer answer: check step 7 of http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html if you have more questions please ask; however, please submit your patch only after you are sure what is that reset-state code about! Pedro Vale Estrela Alex Triffitt wrote: I am wanting to put a node into a idle/sleeping state where it will not listen for transmitted packets and to all intense and purposes is not participating in the MANET i've created. Could someone possiblely tell me how this is done or point out where I can find out how to do this Kindest regardsAlex
[ns] GPSR implementation for ns2
Hi every one, can any one provide me with a link that provides GPSR implementation for ns-2? Thanks Raghu.
[ns] multiple access points
hi, iam trying to simulate a scenario that involves multiple access points to cover a relatively large area, i want to use different technologies like 802.11a and 802.11g together. where to start??? can anybody please tell me where to start or where to find help regarding this... thanks... -- Imad Ajarmeh
[ns] about Leach implementation
hi, all. I can't find mac-sensor.h/cc and mac-sensor-timer.h/cc in the distributions what's the problem? Jean 2006-09-04
Re: [ns] GPSR implementation for ns2
Hello Raghu you can check this out: http://www.cn.uni-duesseldorf.de/staff/kiess/software/hls-ns2-patch Rgds. Mohadig Rousstia Raghu-kisore Neelisetti [EMAIL PROTECTED] wrote: Hi every one, can any one provide me with a link that provides GPSR implementation for ns-2? Thanks Raghu. - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. - Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.