[ns] FW: creating an access point in IEEE 802.11p
From: chad...@hotmail.com To: ns-users@isi.edu Subject: creating an access point in IEEE 802.11p Date: Mon, 11 Apr 2011 06:49:22 + hi I'm working on ns2.34 under ubuntu8.10 and I'm trying to create a handover scenario using the IEEE802.11p I get an error invoked from within while I'm creating the access point. My TCL script is the following: #- #802.11p default parameters Phy/WirelessPhyExt set CSThresh_3.162e-12 ;#-85 dBm Wireless interface sensitivity (sensitivity defined in the standard) Phy/WirelessPhyExt set Pt_ 0.001 Phy/WirelessPhyExt set freq_5.9e+9 Phy/WirelessPhyExt set noise_floor_ 1.26e-13;#-99 dBm for 10MHz bandwidth Phy/WirelessPhyExt set L_ 1.0 ;#default radio circuit gain/loss Phy/WirelessPhyExt set PowerMonitorThresh_ 6.310e-14 ;#-102dBm power monitor sensitivity Phy/WirelessPhyExt set HeaderDuration_ 0.40;#40 us Phy/WirelessPhyExt set BasicModulationScheme_ 0 Phy/WirelessPhyExt set PreambleCaptureSwitch_ 1 Phy/WirelessPhyExt set DataCaptureSwitch_ 0 Phy/WirelessPhyExt set SINR_PreambleCapture_2.5118; ;# 4 dB Phy/WirelessPhyExt set SINR_DataCapture_100.0; ;# 10 dB Phy/WirelessPhyExt set trace_dist_ 1e6 ;# PHY trace until distance of 1 Mio. km (infinty) Phy/WirelessPhyExt set PHY_DBG_ 0 Mac/802_11Ext set CWMin_15 Mac/802_11Ext set CWMax_1023 Mac/802_11Ext set SlotTime_ 0.13 Mac/802_11Ext set SIFS_ 0.32 Mac/802_11Ext set ShortRetryLimit_ 7 Mac/802_11Ext set LongRetryLimit_ 4 Mac/802_11Ext set HeaderDuration_ 0.40 Mac/802_11Ext set SymbolDuration_ 0.08 Mac/802_11Ext set BasicModulationScheme_0 Mac/802_11Ext set use_802_11a_flag_ true Mac/802_11Ext set RTSThreshold_ 2346 Mac/802_11Ext set MAC_DBG 0 #= #configure RF model parameters Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 Propagation/Nakagami set use_nakagami_dist_ false Propagation/Nakagami set gamma0_ 2.0 Propagation/Nakagami set gamma1_ 2.0 Propagation/Nakagami set gamma2_ 2.0 Propagation/Nakagami set d0_gamma_ 200 Propagation/Nakagami set d1_gamma_ 500 Propagation/Nakagami set m0_ 1.0 Propagation/Nakagami set m1_ 1.0 Propagation/Nakagami set m2_ 1.0 Propagation/Nakagami set d0_m_ 80 Propagation/Nakagami set d1_m_ 200 #=== set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhyExt set val(mac)Mac/802_11Ext set val(ifq)Queue/DropTail/PriQueue set val(ll) LL set val(ant)Antenna/OmniAntenna set val(x) 1000 ;# X dimension of the topography set val(y) 1000 ;# Y dimension of the topography set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# how many nodes are simulated set val(rp) DumbAgent set val(stop) 150 ;# simulation time # = set ns [new Simulator] set tracefd [open trace.tr w] set namtrace [open out.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namtrace $val(x) $val(y) $ns namtrace-all $namtrace # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) #God (General Operations Director) is the object that is used to store global information about the state of the environment, network or nodes create-god $val(nn) # Create channel set chan_ [new $val(chan)] # nodes configuration $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 ON \ -phyTrace OFF #Create nodes for {set i 0} {$i $val(nn) } { incr i } { set node_($i) [$ns node] $node_($i) random-motion 0;# disable random motion set mac_($i) [$node_($i) getMac 0] } #Set node_(0) and node_(1) as the APs set AP_ADDR1 [$mac_(0) id] $mac_(0) ap $AP_ADDR1 $mac_(0)
Re: [ns] Ns-users Digest, Vol 88, Issue 10
Message1: Create God Command.. God (General Operations Director) is the object that is used to store global information about the state of the environment, network or nodes that an omniscent observer would have, but that should not be made known to any participant in the simulation. Currently, God object stores the total number of mobilenodes and a table of shortest number of hops required to reach from one node to another Muhammad Khalil Afzal From: ns-users-requ...@isi.edu ns-users-requ...@isi.edu To: ns-users@ISI.EDU Sent: Mon, April 11, 2011 3:00:24 AM Subject: Ns-users Digest, Vol 88, Issue 10 Send Ns-users mailing list submissions to ns-users@isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-requ...@isi.edu You can reach the person managing the list at ns-users-ow...@isi.edu When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. Create-god command (Ahmad) 2. clone aodv (zafer albayrak) 3. Drawing exponential graphs (rajeev joshi) 4. Problem installation of NS2.34 in UBUNTU (Zakia Khalfallah) 5. Re: -- Question? -- What is the algorithm for MIH Link Events on NIST package of NS2? -- (RamiHach) 6. Re: Drawing exponential graphs (mikes1313) 7. Algorithm in NS2 (Mohammed Alenezi) 8. ns2 wimax mesh networks (??? ?) 9. aw k scripts for udp/cbr AODV (mikes1313) 10. Re: aw k scripts for udp/cbr AODV (mikes1313) 11. Re: aw k scripts for udp/cbr AODV (??? ?) 12. Re: ns2 wimax mesh networks (??? ?) 13. Re: Fwd: [Help] About configure snoop protocol in wired-cum-wireless architecture (Narendran Thangarajan) 14. Fwd: Need help for simulating the algorithm (rajeev bharshetty) -- Message: 1 Date: Sat, 9 Apr 2011 23:01:20 -0700 (PDT) From: Ahmad arasem...@yahoo.com Subject: [ns] Create-god command To: ns-users@isi.edu Message-ID: 781436.54258...@web33103.mail.mud.yahoo.com Content-Type: text/plain; charset=us-ascii Hi all, I still don't understand why we need to use create-god. What determine the number I put? Can I just put more than the total number of nodes to be on the safe side. Thanks Ahmad -- Message: 2 Date: Sun, 10 Apr 2011 11:49:44 +0300 From: zafer albayrak zalbay...@gop.edu.tr Subject: [ns] clone aodv To: ns-users@isi.edu Message-ID: 20110410084917.m20...@gop.edu.tr Content-Type: text/plain; charset=iso-8859-9 hello i am trying to write my algorithim for manets. firstly i need to clone aodv alorithim and when i did it i hade some problems. do anyone know the best way to do it. thanks for in advange Zafer ALBAYRAK Head of Department Department of Computer Technology Niksar Technical Sciences Vocational School Gaziosmanpasa University 00-90-356 527 81 10 / 4512 --- End of Forwarded Message --- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Message: 3 Date: Sun, 10 Apr 2011 14:10:30 +0530 From: rajeev joshi rajeevbnmi...@gmail.com Subject: [ns] Drawing exponential graphs To: ns-users@isi.edu Message-ID: banlktikhe6gsy4rsj_cht+bgifaerbt...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hell, I simulated IEEE 802.15.4 and Got the throughput delay, and can I draw the exponential graphs in xgraph if yes please tell how otherwise please anyone tell any software that plots . Waiting for ur reply. -- Jeeva Rajeeva -- Message: 4 Date: Sun, 10 Apr 2011 15:13:10 +0100 From: Zakia Khalfallah zakia_khalfal...@hotmail.fr Subject: [ns] Problem installation of NS2.34 in UBUNTU To: NS user ns-users@isi.edu Message-ID: blu117-w136b77e4a163518b93c9619d...@phx.gbl Content-Type: text/plain; charset=iso-8859-1 Hi Friends, i try to install NS2.34 in UBUNTU it shows me this error : make: *** [tk3d.o] Erreur 1 tk8.4.18 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com; Some one has met the same problem and helps me please. Thank you -- Message: 5 Date: Sun, 10 Apr 2011 07:47:50 -0700 (PDT) From: RamiHach a_ra...@hotmail.com Subject: Re: [ns] -- Question? -- What is the algorithm for MIH Link Events on NIST package of NS2? -- To: ns-users@isi.edu Message-ID: 31337457.p...@talk.nabble.com Content-Type: text/plain; charset=us-ascii hi sadik did you find you information plz ? Sadik wrote: Hello everyone, I need your help immediately. I am looking at the link event algorithms on MIH on NIST pakcage of NS2. I could not find any documentation about this yet. I am reading codes but I am not good at C++ so I
Re: [ns] Drawing exponential graphs
Hi, These extracted from blog's Mohit : AWK scripts (.awk), which are used to extract the necessary information from trace files (.tr) are also useful to plot graphs using Xgraph (.xgr) utility of NS-2. However, the AWK scripts that are used to plot graphs differ from the AWK scripts that just print the values on the terminal. I will try to explain the difference between these two types of AWK scripts with the help of an example. Assume that we have designed a tcl script named “energy.tcl” which simulates a network for 100 seconds. We run this tcl script with the following command: *ns energy.tcl* After executing the tcl script we get a trace file (.tr) and a NAM file (.nam) i.e. “energy.tr” and “energy.nam”. Now we may have two scenarios as explained below: 1. We want the value of residual (remaining) energy of a node *at the end of the simulation*. (Here graph of Time v/s Residual energy is not required). 2. We want the value of residual (remaining) energy of a node *at each instance of time* i.e from beginning of the simulation to the end of the simulation. (Time v/s Residual energy graph is required to observe the decrease in the total energy of a node). For both of the above mentioned scenarios we need to design two different AWK scripts. However, the main logic to calculate the residual energy will remain the same. Only the way we print the values differs. Let *scen1.awk* be the awk file for first scenario and *scen2.awk* be the awk file for second scenario. scen1.awk should be designed such that when we run it by using the following command: *awk -f scen1.awk energy.tr* it should print the residual (remaining) energy of a node on the terminal. And scen2.awk should be designed such that when we run it by using the following command: *awk -f scen2.awk energy.trenergy.xgr* it should print two values in “energy.xgr”: time and residual (remaining) energy of a node. If you open “energy.xgr” you will notice that there are two columns created. In first column, values related to “time” are printed and in another column values related to “residual energy” are printed. The values in first column form X-axis of the graph and the values in second column form Y-axis of the graph (thus you get a graph of Time v/s Residual Energy). Give the following command to see the graph: *xgraph energy.xgr* Default background color of the graph is grey. If you want a graph with background color as white, give the following command: *xgraph energy.xgr -bg white Besides, you can plot graph by using gnuplot (search google gnuplot for more information). Hope it helps, regards. phathienhung. * 2011/4/11 兰天 lantian0...@163.com hi, I also work on the simulation of 802.15.4, I hope that we could discuss together Varrick At 2011-04-11 08:17:24,Mossy Mozila mossymb...@gmail.com wrote: Hie I'm also facing the same problem if it happens that someone helped you can you just post me the idea at mossymb...@gmail.com. Thanks in advance mikes1313 wrote: rajeev joshi-3 wrote: Hell, I simulated IEEE 802.15.4 and Got the throughput delay, and can I draw the exponential graphs in xgraph if yes please tell how otherwise please anyone tell any software that plots . Waiting for ur reply. -- Jeeva Rajeeva I am facing the same problem with Xgraph from what I now you can easily draw graphs through excel. Can you please provide me your awk scripts for throughput-delay because I am still facing problms with mine. THANKS MIKE -- View this message in context: http://old.nabble.com/Drawing-exponential-graphs-tp31362766p31366534.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] ./ validate in NS2
Hi friends, is the step of ./validate in the installation of NS2 necessary ? thanks ZAK
[ns] [bug] Segmentation causes by Scheduler::dispatch and Packet::copy
[Bug Report] - Category: Installation Failure Package: ns ns2.34 OS:Fedora 14 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= - Description: Hi everybody, Im trying to add CBRP to ns2.34. But when I run scripts to test it, if the session is more than 30 sessions (in case of 100 nodes), segmentation fault happens. I use GDB to trace the error and usually get one of 2 kinds of following errors: 1. Program received signal SIGSEGV, Segmentation fault. 0x081c2427 in Scheduler::dispatch(Event*, double) () #0 0x081c2427 in Scheduler::dispatch(Event*, double) () #1 0x081c2374 in Scheduler::run() () #2 0x081c2521 in Scheduler::command(int, char const* const*) () #3 0x083c4a1a in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #4 0x083c8412 in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=3, argv=0xbfffd920) at otcl.c:434 #5 0x083cee4e in TclInvokeStringCommand () #6 0x083d136b in TclEvalObjvInternal () #7 0x083fba3e in TclExecuteByteCode () #8 0x083ffbcd in TclCompEvalObj () #9 0x083fbf90 in TclExecuteByteCode () #10 0x083ffbcd in TclCompEvalObj () #11 0x0842a2ab in TclObjInterpProc () #12 0x0842a6e0 in TclProcInterpProc () #13 0x083c859a in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=2, argv=0xbfffe420) at otcl.c:477 2. Program received signal SIGSEGV, Segmentation fault. _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 4298while ((pp = catomic_compare_and_exchange_val_acq (fb, victim-fd, victim)) #0 _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 #1 0x0046a7a0 in __libc_malloc (bytes=16) at malloc.c:3660 #2 0x04e1a21a in operator new (sz=16) at ../../../../libstdc++-v3/libsupc++/new_op.cc:52 #3 0x081dcb74 in PacketData::copy() () #4 0x081d0b5c in Packet::copy() const () #5 0x082714fd in WirelessChannel::sendUp(Packet*, Phy*) () #6 0x08270c90 in Channel::recv(Packet*, Handler*) () #7 0x0829a0b8 in WirelessPhy::sendDown(Packet*) () #8 0x08299078 in Phy::recv(Packet*, Handler*) () #9 0x0827cff5 in Mac802_11::transmit(Packet*, double) () #10 0x08276844 in Mac802_11::check_pktTx() () #11 0x08275a0d in Mac802_11::backoffHandler() () #12 0x0829db58 in BackoffTimer::handle(Event*) () #13 0x081c2440 in Scheduler::dispatch(Event*, double) () #14 0x081c2374 in Scheduler::run() () #15 0x081c2521 in Scheduler::command(int, char const* const*) () #16 0x083c4bf6 in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #17 0x083c85e2 in OTclDispatch (cd=0x87f03d8, in=0x8625960, argc=3, argv=0xbfffd910) at otcl.c:434 .. I have tried to fix the errors but I havent succeeded until now. I hope you can give advices to me. Thanks you very much Best regards,
[ns] [bug] Segmentation causes by Scheduler::dispatch and Packet::copy
[Bug Report] - Category: Run Time - Segmentation Fault Package: ns ns2.34 OS:Fedora 14 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= - Description: Hi everybody, Im trying to add CBRP to ns2.34. But when I run scripts to test it, if the session is more than 30 sessions (in case of 100 nodes), segmentation fault happens. I use GDB to trace the error and usually get one of 2 kinds of following errors: 1. Program received signal SIGSEGV, Segmentation fault. 0x081c2427 in Scheduler::dispatch(Event*, double) () #0 0x081c2427 in Scheduler::dispatch(Event*, double) () #1 0x081c2374 in Scheduler::run() () #2 0x081c2521 in Scheduler::command(int, char const* const*) () #3 0x083c4a1a in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #4 0x083c8412 in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=3, argv=0xbfffd920) at otcl.c:434 #5 0x083cee4e in TclInvokeStringCommand () #6 0x083d136b in TclEvalObjvInternal () #7 0x083fba3e in TclExecuteByteCode () #8 0x083ffbcd in TclCompEvalObj () #9 0x083fbf90 in TclExecuteByteCode () #10 0x083ffbcd in TclCompEvalObj () #11 0x0842a2ab in TclObjInterpProc () #12 0x0842a6e0 in TclProcInterpProc () #13 0x083c859a in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=2, argv=0xbfffe420) at otcl.c:477 2. Program received signal SIGSEGV, Segmentation fault. _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 4298while ((pp = catomic_compare_and_exchange_val_acq (fb, victim-fd, victim)) #0 _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 #1 0x0046a7a0 in __libc_malloc (bytes=16) at malloc.c:3660 #2 0x04e1a21a in operator new (sz=16) at ../../../../libstdc++-v3/libsupc++/new_op.cc:52 #3 0x081dcb74 in PacketData::copy() () #4 0x081d0b5c in Packet::copy() const () #5 0x082714fd in WirelessChannel::sendUp(Packet*, Phy*) () #6 0x08270c90 in Channel::recv(Packet*, Handler*) () #7 0x0829a0b8 in WirelessPhy::sendDown(Packet*) () #8 0x08299078 in Phy::recv(Packet*, Handler*) () #9 0x0827cff5 in Mac802_11::transmit(Packet*, double) () #10 0x08276844 in Mac802_11::check_pktTx() () #11 0x08275a0d in Mac802_11::backoffHandler() () #12 0x0829db58 in BackoffTimer::handle(Event*) () #13 0x081c2440 in Scheduler::dispatch(Event*, double) () #14 0x081c2374 in Scheduler::run() () #15 0x081c2521 in Scheduler::command(int, char const* const*) () #16 0x083c4bf6 in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #17 0x083c85e2 in OTclDispatch (cd=0x87f03d8, in=0x8625960, argc=3, argv=0xbfffd910) at otcl.c:434 .. I have tried to fix the errors but I havent succeeded until now. I hope you can give advices to me. Thanks you very much Best regards,
Re: [ns] CBRP Help
Hi everybody, I’m trying to add CBRP to ns2.34. But when I run scripts to test it, if the session is more than 30 sessions (in case of 100 nodes), segmentation fault happens. I use GDB to trace the error and usually get one of 2 kinds of following errors: 1. Program received signal SIGSEGV, Segmentation fault. 0x081c2427 in Scheduler::dispatch(Event*, double) () #0 0x081c2427 in Scheduler::dispatch(Event*, double) () #1 0x081c2374 in Scheduler::run() () #2 0x081c2521 in Scheduler::command(int, char const* const*) () #3 0x083c4a1a in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #4 0x083c8412 in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=3, argv=0xbfffd920) at otcl.c:434 #5 0x083cee4e in TclInvokeStringCommand () #6 0x083d136b in TclEvalObjvInternal () #7 0x083fba3e in TclExecuteByteCode () #8 0x083ffbcd in TclCompEvalObj () #9 0x083fbf90 in TclExecuteByteCode () #10 0x083ffbcd in TclCompEvalObj () #11 0x0842a2ab in TclObjInterpProc () #12 0x0842a6e0 in TclProcInterpProc () #13 0x083c859a in OTclDispatch (cd=0x87f03e8, in=0x8625960, argc=2, argv=0xbfffe420) at otcl.c:477 2. Program received signal SIGSEGV, Segmentation fault. _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 4298while ((pp = catomic_compare_and_exchange_val_acq (fb, victim-fd, victim)) #0 _int_malloc (av=0x5863a0, bytes=16) at malloc.c:4298 #1 0x0046a7a0 in __libc_malloc (bytes=16) at malloc.c:3660 #2 0x04e1a21a in operator new (sz=16) at ../../../../libstdc++-v3/libsupc++/new_op.cc:52 #3 0x081dcb74 in PacketData::copy() () #4 0x081d0b5c in Packet::copy() const () #5 0x082714fd in WirelessChannel::sendUp(Packet*, Phy*) () #6 0x08270c90 in Channel::recv(Packet*, Handler*) () #7 0x0829a0b8 in WirelessPhy::sendDown(Packet*) () #8 0x08299078 in Phy::recv(Packet*, Handler*) () #9 0x0827cff5 in Mac802_11::transmit(Packet*, double) () #10 0x08276844 in Mac802_11::check_pktTx() () #11 0x08275a0d in Mac802_11::backoffHandler() () #12 0x0829db58 in BackoffTimer::handle(Event*) () #13 0x081c2440 in Scheduler::dispatch(Event*, double) () #14 0x081c2374 in Scheduler::run() () #15 0x081c2521 in Scheduler::command(int, char const* const*) () #16 0x083c4bf6 in TclClass::dispatch_cmd(void*, Tcl_Interp*, int, char const**) () #17 0x083c85e2 in OTclDispatch (cd=0x87f03d8, in=0x8625960, argc=3, argv=0xbfffd910) at otcl.c:434 ……….. I have tried to fix the errors but I haven’t succeeded until now. I hope you can give advices to me. Thanks you very much Best regards, -- View this message in context: http://old.nabble.com/CBRP-Help-tp12233092p31370243.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] creating an access point in IEEE802.11p
hi I'm working on ns2.34 under ubuntu8.10 and I'm trying to create a handover scenario using the IEEE802.11p I get an error invoked from within while I'm creating the access point. My TCL script is the following: #- #802.11p default parameters Phy/WirelessPhyExt set CSThresh_3.162e-12 ;#-85 dBm Wireless interface sensitivity (sensitivity defined in the standard) Phy/WirelessPhyExt set Pt_ 0.001 Phy/WirelessPhyExt set freq_5.9e+9 Phy/WirelessPhyExt set noise_floor_ 1.26e-13;#-99 dBm for 10MHz bandwidth Phy/WirelessPhyExt set L_ 1.0 ;#default radio circuit gain/loss Phy/WirelessPhyExt set PowerMonitorThresh_ 6.310e-14 ;#-102dBm power monitor sensitivity Phy/WirelessPhyExt set HeaderDuration_ 0.40;#40 us Phy/WirelessPhyExt set BasicModulationScheme_ 0 Phy/WirelessPhyExt set PreambleCaptureSwitch_ 1 Phy/WirelessPhyExt set DataCaptureSwitch_ 0 Phy/WirelessPhyExt set SINR_PreambleCapture_2.5118; ;# 4 dB Phy/WirelessPhyExt set SINR_DataCapture_100.0; ;# 10 dB Phy/WirelessPhyExt set trace_dist_ 1e6 ;# PHY trace until distance of 1 Mio. km (infinty) Phy/WirelessPhyExt set PHY_DBG_ 0 Mac/802_11Ext set CWMin_15 Mac/802_11Ext set CWMax_1023 Mac/802_11Ext set SlotTime_ 0.13 Mac/802_11Ext set SIFS_ 0.32 Mac/802_11Ext set ShortRetryLimit_ 7 Mac/802_11Ext set LongRetryLimit_ 4 Mac/802_11Ext set HeaderDuration_ 0.40 Mac/802_11Ext set SymbolDuration_ 0.08 Mac/802_11Ext set BasicModulationScheme_0 Mac/802_11Ext set use_802_11a_flag_ true Mac/802_11Ext set RTSThreshold_ 2346 Mac/802_11Ext set MAC_DBG 0 #= #configure RF model parameters Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 Propagation/Nakagami set use_nakagami_dist_ false Propagation/Nakagami set gamma0_ 2.0 Propagation/Nakagami set gamma1_ 2.0 Propagation/Nakagami set gamma2_ 2.0 Propagation/Nakagami set d0_gamma_ 200 Propagation/Nakagami set d1_gamma_ 500 Propagation/Nakagami set m0_ 1.0 Propagation/Nakagami set m1_ 1.0 Propagation/Nakagami set m2_ 1.0 Propagation/Nakagami set d0_m_ 80 Propagation/Nakagami set d1_m_ 200 #=== set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhyExt set val(mac)Mac/802_11Ext set val(ifq)Queue/DropTail/PriQueue set val(ll) LL set val(ant)Antenna/OmniAntenna set val(x) 1000 ;# X dimension of the topography set val(y) 1000 ;# Y dimension of the topography set val(ifqlen) 50 ;# max packet in ifq set val(nn) 3 ;# how many nodes are simulated set val(rp) DumbAgent set val(stop) 150 ;# simulation time # = set ns [new Simulator] set tracefd [open trace.tr w] set namtrace [open out.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namtrace $val(x) $val(y) $ns namtrace-all $namtrace # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) #God (General Operations Director) is the object that is used to store global information about the state of the environment, network or nodes create-god $val(nn) # Create channel set chan_ [new $val(chan)] # nodes configuration $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 ON \ -phyTrace OFF #Create nodes for {set i 0} {$i $val(nn) } { incr i } { set node_($i) [$ns node] $node_($i) random-motion 0;# disable random motion set mac_($i) [$node_($i) getMac 0] } #Set node_(0) and node_(1) as the APs set AP_ADDR1 [$mac_(0) id] $mac_(0) ap $AP_ADDR1 $mac_(0) ScanType PASSIVE set AP_ADDR2 [$mac_(1) id] $mac_(1) ap $AP_ADDR2 $mac_(1) ScanType PASSIVE #$ns at 4.0 $mac_(2) ScanType ACTIVE #
[ns] No Packet is exchanging usinng routing protocol Protoname.
Hello, I have been able to implement the Manet routing protocol (protoname) reading implementing a new manet routing protocol in NS2 . http://issuu.com/adioshun/docs/implementing_a_new_manet_unicast_routing_protocol_ I have got it to compile successfully but when i run a test simulation using it , i do not get any packets to be successfully transmitted. I printed out the routing table onto the trace file and noticed that the routing table is empty throughout the simulation. The same simulation file works fine when i use AODV or DSR for that matter. I am not sure why its not sending any packets. i did not get any errors when compiling protoname. I've sent an attachment of that tcl file with this mail. Please help me.I m a new user.please help.
Re: [ns] Change packet route in Nist MIH extension
I am working also with NIST module and have some problem can we collaborate on how to use NIST on TCL code ? please Pablo Gualda wrote: Hi, I have seen that some people have written about this with no answer, I am interested in changing the route dinamically in c++ code. I am trying to make changes in dsdv, In ns2.34 without Nist MIH extension, it works setting the next hop field in the common header, but with Nist, and multi interfaces, I cant do this (I Can but it doesn work like in the case without Nist MIH extension, It start sending packets to in a rare way). It icould be because Im not setting the correct route. In Nist MIH extension with multiinterface, the packets are sent between the interfaces? or I have to send packets to the multiface nodes too? Any help would be appreciated. Thanks in advance. Best Regards, Pablo. -- View this message in context: http://old.nabble.com/Change-packet-route-in-Nist-MIH-extension-tp31236084p31371525.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] MIH commands
I have the same question as you wrote below, did you find the answer please ? STAN, Mircea wrote: Hi all, I had a quick look on NIST implementation and I didn't figure out how you can send MIH commands. If some can give me a hand, it will be very appreciated. Regards, Mircea *DISCLAIMER* The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Orange Romania S.A. is neither liable for the proper, complete transmission of the information contained in this communication nor any delay in its receipt. *END OF DISCLAIMER* -- View this message in context: http://old.nabble.com/MIH-commands-tp22778463p31371543.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] AODV-DSDV-DSR
Hi, I have my AODV.tcl script running in order to compare AODV-DSDV-DSR the only change I have to make is to change the set val (rp) first for DSDV and then for DSR and leave the rest of the tcl code without any further change(as it was previously for AODV)? Thanks MIKES -- View this message in context: http://old.nabble.com/AODV-DSDV-DSR-tp31371949p31371949.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] help regarding ARQ
could any one please give me a suggestion about link layer ARQ or any website
Re: [ns] help regarding ARQ
could any one please help me how to use LL/Arq for wireless nodes any suggestion is appreciated From: amareswararao k amar_21cent...@yahoo.co.in To: ns-users@isi.edu ns-users@ISI.EDU Sent: Monday, 11 April 2011 10:22 PM Subject: [ns] help regarding ARQ
[ns] cbrp - error when calling class $cls: $args $...
Hi all, I am developping a cbrp code for ns2.34 and I thought that I did everything good when it compiled good, but when I try to use it I am facing the below error. If anybody has an idea about this error, please do reply because I have no much time left to do this!!! I have been trying to solve it but no matter what I do, I still get the exact same error. It is something that has to do when the nodes are being created and routing agents attached to them. I guessed to look at ns-lib.tcl but I tried a lot of things unsuccessfully. I would be most happy to share this protocol with you when it is finished. Thanks soo much, (_o18 cmd line 1) invoked from within _o18 cmd port-dmux _o27 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 _o18 line 2) (SplitObject unknown line 2) invoked from within $agent port-dmux $dmux_ (procedure _o15 line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within $self add-target-rtagent $agent $port (procedure _o15 line 28) (Node/MobileNode add-target line 28) invoked from within $self add-target $agent $port (procedure _o15 line 15) (Node attach line 15) invoked from within $node attach $ragent [Node set rtagent_port_] (procedure _o4 line 83) (Simulator create-wireless-node line 83) invoked from within _o4 create-wireless-node (eval body line 1) invoked from within eval $self create-wireless-node $args (procedure _o4 line 23) (Simulator node line 23) invoked from within $ns_ node (for body line 2) invoked from within for {set i 0} {$i = $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0;# disable random motion }
[ns] Packet transmission of smac
Hie Can anyone help me why my tcl script is not showing the packets movement but its showing nodes range and movement in the nam window. This is my tcl script. set opt(chan)Channel/WirelessChannel set opt(prop)Propagation/TwoRayGround set opt(netif)Phy/WirelessPhy #set opt(mac)Mac/802_11 ;# MAC type set opt(mac)Mac/SMAC ;# MAC type set opt(ifq)Queue/DropTail/PriQueue set opt(ll)LL set opt(ant)Antenna/OmniAntenna set opt(x)800;# X dimension of the topography set opt(y)800;# Y dimension of the topography set opt(ifqlen)50;# max packet in ifq set opt(nn) 2;# number of nodes set opt(seed)0.0 set opt(stop)700.0;# simulation time set opt(tr)try.tr ;# trace file set opt(nam)try.nam ;# animation file set opt(rp)DumbAgent ;# routing protocol script set opt(lm) off ;# log movement set opt(agent) Agent/DSDV set opt(energymodel)EnergyModel ; set opt(radiomodel)RadioModel ; set opt(initialenergy) 1000;# Initial energy in Joules Mac/SMAC set syncFlag_ 1 Mac/SMAC set dutyCycle_ 10 set ns_ [new Simulator] set prop[new $opt(prop)] # For model 'TwoRayGround' set dist(5m) 7.69113e-06 set dist(9m) 2.37381e-06 set dist(10m) 1.92278e-06 set dist(11m) 1.58908e-06 set dist(12m) 1.33527e-06 set dist(13m) 1.13774e-06 set dist(14m) 9.81011e-07 set dist(15m) 8.54570e-07 set dist(16m) 7.51087e-07 set dist(20m) 4.80696e-07 set dist(25m) 3.07645e-07 set dist(30m) 2.13643e-07 set dist(35m) 1.56962e-07 set dist(40m) 1.20174e-07 Phy/WirelessPhy set CSThresh_ $dist(15m) Phy/WirelessPhy set RXThresh_ $dist(15m) set topo[new Topography] $topo load_flatgrid $opt(x) $opt(y) #ns-random 1.0 # # Create god # set god_ [create-god $opt(nn)] #global node setting $ns_ node-config -adhocRouting DumbAgent \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -energyModel $opt(energymodel) \ -idlePower 1.0 \ -rxPower 1.0 \ -txPower 1.0 \ -sleepPower 0.001 \ -transitionPower 0.2 \ -transitionTime 0.005 \ -initialEnergy $opt(initialenergy) $ns_ set WirelessNewTrace_ ON set tracefd[open $opt(tr) w] $ns_ trace-all $tracefd set namtracefd[open $opt(nam) w] $ns_ namtrace-all-wireless $namtracefd 500 500 # Create the specified number of nodes [$opt(nn)] and attach them # to the channel. for {set i 0} {$i $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0;# disable random motion } for {set i 0} {$i $opt(nn)} {incr i} { # init agent set agent_($i) [new $opt(agent)] } for {set i 0} {$i $opt(nn)} {incr i} { # attach agent to node. $node_($i) attach $agent_($i) } $node_(0) set X_ 5.0 $node_(0) set Y_ 2.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 15.0 $node_(1) set Y_ 2.0 $node_(1) set Z_ 0.0 # Generation of movements $ns_ at 10.0 $node_(1) setdest 250.0 250.0 3.0 $ns_ at 15.0 $node_(0) setdest 45.0 285.0 5.0 $ns_ at 110.0 $node_(1) setdest 48.0 300.0 5.0 set udp_(0) [new Agent/UDP] $ns_ attach-agent $node_(0) $udp_(0) set null_(0) [new Agent/Null] $ns_ attach-agent $node_(1) $null_(0) set cbr_(0) [new Application/Traffic/CBR] $cbr_(0) set packetSize_ 512 $cbr_(0) set interval_ 0.05 $cbr_(0) set random_ 1 $cbr_(0) set maxpkts_ $cbr_(0) attach-agent $udp_(0) $ns_ connect $udp_(0) $null_(0) $ns_ at 40.00 $cbr_(0) start # nodes: 5, max conn: 8, send rate: 0.0, seed: 1.0 # # 1 connecting to 3 at time 80.557023746220864 # set tcp_(0) [$ns_ create-connection TCP $node_(0) TCPSink $node_(1) 0] $tcp_(0) set window_ 32 $tcp_(0) set packetSize_ 512 set ftp_(0) [$tcp_(0) attach-source FTP] $ns_ at 80.557023746220864 $ftp_(0) start # defines the node size in Network Animator for {set i 0} {$i $opt(nn)} {incr i} {
[ns] [NS-ANS] Re: help regarding ARQ
HI, If you are interested in implementing ARQ in NS2, please read http://www.ns2ultimate.com/post/1539258323/arq-module-program-update Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Apr 11, 2011, at 11:52 PM, amareswararao k wrote: could any one please give me a suggestion about link layer ARQ or any website
[ns] Need TCL code for xgraph for wpan_demo2.tcl
Hi, please reply me with the code for drawing xgraph for the following program. i have tried writing the function record{} but failed to make out0.tr file for calculating bandwidth. # wpan_demo2.tcl # # # == # Define options # == set val(chan) Channel/WirelessChannel;# Channel Type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy/802_15_4 set val(mac)Mac/802_15_4 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) 150;# max packet in ifq set val(nn) 7 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 50 set val(y) 50 set val(nam)wpan_demo2.nam set val(traffic)ftp;# cbr/poisson/ftp #read command line arguments proc getCmdArgu {argc argv} { global val for {set i 0} {$i $argc} {incr i} { set arg [lindex $argv $i] if {[string range $arg 0 0] != -} continue set name [string range $arg 1 end] set val($name) [lindex $argv [expr $i+1]] } } getCmdArgu $argc $argv set appTime17.0 ;# in seconds set appTime27.1 ;# in seconds set appTime37.2 ;# in seconds set appTime47.3 ;# in seconds set appTime57.4 ;# in seconds set appTime67.5 ;# in seconds set stopTime100 ;# in seconds # Initialize Global Variables set ns_ [new Simulator] set tracefd [open ./wpan_demo2.tr w] $ns_ trace-all $tracefd if { $val(nam) == wpan_demo2.nam } { set namtrace [open ./$val(nam) w] $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) } #open xgraph file... set f0 [open out0.tr w] proc record {} { global sink0 f0 #Get an instance of the simulator set ns [Simulator instance] #Set the time after which the procedure should be called again set time 0.5 #How many bytes have been received by the traffic sinks? set bw0 [$sink0 set bytes_] #Get the current time set now [$ns now] #Calculate the bandwidth (in MBit/s) and write it to the files puts $f0 $now [expr $bw0/$time*8/100] #Reset the bytes_ values on the traffic sinks $sink0 set bytes_ 0 #Re-schedule the procedure $ns at [expr $now+$time] record } $ns_ puts-nam-traceall {# nam4wpan #} ;# inform nam that this is a trace file for wpan (special handling needed) Mac/802_15_4 wpanCmd verbose on Mac/802_15_4 wpanNam namStatus on ;# default = off (should be turned on before other 'wpanNam' commands can work) #Mac/802_15_4 wpanNam ColFlashClr gold ;# default = gold # For model 'TwoRayGround' set dist(5m) 7.69113e-06 set dist(9m) 2.37381e-06 set dist(10m) 1.92278e-06 set dist(11m) 1.58908e-06 set dist(12m) 1.33527e-06 set dist(13m) 1.13774e-06 set dist(14m) 9.81011e-07 set dist(15m) 8.54570e-07 set dist(16m) 7.51087e-07 set dist(20m) 4.80696e-07 set dist(25m) 3.07645e-07 set dist(30m) 2.13643e-07 set dist(35m) 1.56962e-07 set dist(40m) 1.20174e-07 Phy/WirelessPhy set CSThresh_ $dist(15m) Phy/WirelessPhy set RXThresh_ $dist(15m) # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create God set god_ [create-god $val(nn)] set chan_1_ [new $val(chan)] # configure node $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 OFF \ #-energyModel EnergyModel \ #-initialEnergy 1 \ #-rxPower 0.3 \ #-txPower 0.3 \ -channel $chan_1_ for {set i 0} {$i $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } source ./wpan_demo2.scn $ns_ at 0.0 $node_(0) NodeLabel PAN Coor $ns_ at 0.0 $node_(0) sscs startPANCoord ;# startPANCoord txBeacon=1 BO=3 SO=3 $ns_ at 0.5 $node_(1) sscs startDevice 1 0;# startDevice isFFD=1 assoPermit=1 txBeacon=0 BO=3 SO=3 $ns_ at 1.5