[ns] how to start $cbr1 from classifier.cc

2009-03-31 Thread muralikrishna g

hi to all..

here i have to start the traffic on a condition from classifier.cc recv
function as shows below.. the time also i cant expect...


void Classifier::recv(Packet* p, Handler*h)
{
  if ((node-id==_o27)  (ready==1))
   {
  if the condition satisfies i have to start the traffic; but for the
command in tcl ($ns at time  $cbr1 start )
  here i don't know the time.. i have to start traffic if the condition
satisfies. and stop the traffic after 200milliseconds
  }


please help me regarding this...


[ns] How to change transmission power of a specific node in the middle of simulation run time or in protocol?

2009-03-31 Thread Mahshid Rahnama

Hi all,

I am try to change transmission power of each node according to some
parameters in my protocl,
How can I set and adjust a node transmission power in simualtion run time?

I know threshold -m propagation-model [other-options] distance
 and Phy/WirelessPhy set RXThresh_ value
 
 But I think it just work when creating a node,
but What should I do to change transmission power of for example
mobilenode(4) after 5 seconds ?

Thanks for any help,
--Mah


[ns] IEEE 802.15.4 non-beacon star topology

2009-03-31 Thread Φανή

Hello everyone,
I am trying to implement a star topology using MAC/PHY 802.15.4 in non-enabled 
beacon mode. I am using wpan_demo2.tcl and trying to do some changes to the 
original. To set the beacon mode of I have done the following:
 
$ns_ at 0.0 $node_(0) NodeLabel PAN Coor
$ns_ at 0.0 $node_(0) sscs startPANCoord 0 3 3 ;# startPANCoord txBeacon=0 
BO=3 SO=3
$ns_ at 0.5 $node_(1) sscs startDevice 0 1 0 ;# startDevice isFFD=1 
assoPermit=1 txBeacon=0 BO=3 SO=3
$ns_ at 1.5 $node_(2) sscs startDevice 0 1 0
$ns_ at 2.5 $node_(3) sscs startDevice 0 1 0
$ns_ at 3.5 $node_(4) sscs startDevice 0 1 0
$ns_ at 4.5 $node_(5) sscs startDevice 0 1 0
$ns_ at 5.5 $node_(6) sscs startDevice 0 1 0
 
In the trace file i get the following (just a part of the file of course):
s 0.00256 _0_ MAC --- 0 CM7 8 [0  0 0] 
r 0.003008033 _3_ MAC --- 0 CM7 8 [0  0 0] 
r 0.003008033 _1_ MAC --- 0 CM7 8 [0  0 0] 
r 0.003008033 _4_ MAC --- 0 CM7 8 [0  0 0] 
r 0.003008033 _6_ MAC --- 0 CM7 8 [0  0 0] 
r 0.003008033 _2_ MAC --- 0 CM7 8 [0  0 0] 
r 0.003008033 _5_ MAC --- 0 CM7 8 [0  0 0] 
s 0.14176 _0_ MAC --- 0 CM7 8 [0  0 0] 
s 0.28192 _0_ MAC --- 0 CM7 8 [0  0 0] 
s 0.50064 _1_ MAC --- 0 CM7 8 [0  1 0] 
r 0.501088033 _2_ MAC --- 0 CM7 8 [0  1 0] 
r 0.501088033 _0_ MAC --- 0 CM7 8 [0  1 0] 
r 0.501088033 _6_ MAC --- 0 CM7 8 [0  1 0] 
s 0.501408033 _0_ MAC --- 0 BCN 11 [0 1 0 0] 
 
Meaning that all the nodes are sending and receiving beacon requests (CM7) and 
node 0 sends beacons (BCN) but no other node recieves them.  What am I doing 
wrong? I don't want any node to be sending beacons or beacon requests! Your 
help would mean a lot to me cause this is giving me a terrible headache!
 
Thanks in advance!!!


  
___ 
Χρησιμοποιείτε Yahoo!; 
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 


[ns] udp protocol

2009-03-31 Thread neha goel

Hi everyone.
Can anyone tell me how to send data from one node to
another on a udp connection set between two nodes. More specifically i have
created five linear nodes. say 0-1-2-3-4. I want to send udp traffic from (
2 to 0) and and then  from (2 to 0 and 2 to 4). Also tell me how to find the
throughput in either case??
I would really appreciate the help..


[ns] Problems with loss of Mobile IP packets

2009-03-31 Thread Zhang Wen Zhi

I'm using ns2-2.26 the topology is below: two wired nodes, one HA and
three wireless nodes

 ..--..
..:''  '':..
  '''.
 |MANET  running   |
  ..olsr  .'
'':..  +---+ /
   ''---+--|HA|/
  ++
   \
 ++---+++-++
 |wired |   |wired|
 |node1|---| node 0 |
 +---++   ++---+
We are running NRLOLSR v7.1 and mobile ip in this scenario

the wired nodes and nodes in manet could  transfer CBR, and the cbr
and control message of nrlolsr are normal.

The problem is :
when the control messages of Mobile IP is generated and send to
Routing layer, the TTL of the control message is decreased to 1, thus
couldn't be delivered.

the trace file is below:
s 3.555880716 _3_ AGT  --- 90 udp 52 [0 0 0 0] --- [4194305:0 -1:0 32 0]
r 3.555880716 _3_ RTR  --- 90 udp 52 [0 0 0 0] --- [4194305:0 -1:0 32 0]
f 3.555880716 _3_ RTR  --- 90 udp 72 [0 0 0 0] --- [4194305:0 -1:0 1 0]
r 3.557533187 _2_ RTR  --- 90 udp 72 [0  1 800] ---
[4194305:0 -1:0 1 0]
D 3.557533187 _2_ RTR  TTL 90 udp 72 [0  1 800] ---
[4194305:0 -1:0 0 0]
r 3.557533383 _4_ RTR  --- 90 udp 72 [0  1 800] ---
[4194305:0 -1:0 1 0]
D 3.557533383 _4_ RTR  TTL 90 udp 72 [0  1 800] ---
[4194305:0 -1:0 0 0]
s 3.588122671 _5_ AGT  --- 91 udp 52 [0 0 0 0] --- [4194307:0 -1:0 32 0]
r 3.588122671 _5_ RTR  --- 91 udp 52 [0 0 0 0] --- [4194307:0 -1:0 32 0]
f 3.588122671 _5_ RTR  --- 91 udp 72 [0 0 0 0] --- [4194307:0 -1:0 1 0]
s 3.588708238 _3_ AGT  --- 92 udp 44 [0 0 0 0] --- [4194305:698
-1:698 255 0]
r 3.588708238 _3_ RTR  --- 92 udp 44 [0 0 0 0] --- [4194305:698
-1:698 255 0]
f 3.588708238 _3_ RTR  --- 92 ProtolibManetKernel 64 [0 0 0 0] ---
[4194305:698 -1:698 1 0]
r 3.589595040 _4_ RTR  --- 91 udp 72 [0  3 800] ---
[4194307:0 -1:0 1 0]
D 3.589595040 _4_ RTR  TTL 91 udp 72 [0  3 800] ---
[4194307:0 -1:0 0 0]
r 3.589595263 _2_ RTR  --- 91 udp 72 [0  3 800] ---
[4194307:0 -1:0 1 0]
D 3.589595263 _2_ RTR  TTL 91 udp 72 [0  3 800] ---
[4194307:0 -1:0 0 0]


Here is the tcl script, could anyone give tips on how to solve this??
the DSDV and AODV could run very well with mobile IP.

# ==
# Define options
# ==
set opt(namfile) out.nam
set opt(tracefile)   out.tr
set opt(x)   500;#x dimension of the
set opt(y)   500;
set opt(wirelessNodes)   3;  #mobile nodes
set opt(wiredNodes)  2;  #hosts and routers
set  gatewayNodes1;  #gateways
set val(stop)60.0;   #simulation time
set val(start-src)   0
set val(stop-src)60.0
set val(chan)   Channel/WirelessChannel;# channel type
set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
set val(netif)  Phy/WirelessPhy;# network interface
set val(mac)Mac/802_11 ;# MAC type
set val(ifq)Queue/DropTail/PriQueue;# interface queue
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) 3 ;# number of
set val(rp) ProtolibManetKernel ;# routing protocol
# ==
#---
#Initialize Global Variables
#---
#create a simulator object
set ns [new Simulator]
$ns color 0 Brown
#
#Define The Hierachial Topology Structure
#
$ns node-config -addressType hierarchical
#Nbr of domains
AddrParams set domain_num_ 2
#Nbr of clusters (=subdomains) in each domain
lappend clusterNbr 2 1
# API fuction
AddrParams set cluster_num_ $clusterNbr
#Nbr of nodes in each cluster
lappend eilastlevel 1 1 4
AddrParams set nodes_num_ $eilastlevel
#create trace objects for ns and nam
#$ns use-newtrace
set nstrace [open $opt(tracefile) w]
$ns trace-all $nstrace
set namtrace [open $opt(namfile) w]
$ns namtrace-all-wireless $namtrace $opt(x) $opt(y)
#create a topology object and define topology (500mx500m)
set topo [new Topography]
$topo load_flatgrid $opt(x) $opt(y)
#create God (General Operations Director)
create-god [expr $opt(wirelessNodes)+$gatewayNodes]
#create wired nodes
set temp {0.0.0 0.1.0}
for {set i 0} {$i  $opt(wiredNodes)} {incr i} {
set host($i) [$ns node [lindex $temp $i]]
}

Re: [ns] TCL code for WiFi simulation

2009-03-31 Thread qute rose







Hi!
I am a new user of NS2. I want to simulate the Wifi scenario and want to 
analyze the performance of WiFi on increase in number of nodes. The nodes are 
sending data like VoIP and video-conferencing. i want TCL code for this 
scenario. How will i analyze the trace file using AWK?

Thanks!



  


[ns] periodic update of DSDV

2009-03-31 Thread Nebiat

Hi everybody

Is there any logical implication for the default value of DSDV routing protocol
periodic routing update to be 15 seconds?

Thanks in advance
Nebiat F.


  


[ns] Error in executing infra.tcl file

2009-03-31 Thread qute rose

I have included the following code in infra.tcl file
set nf [open out.nam w]
$nf namtrace-all $nf

I also made necessary changes in the stop(Finish) procedure

but when i run the simulation, i got the eeor message. Plz check the attached 
screenshot for the error message. Anyone plz tell me the reason for this error 
and also how to fix this error. 


  


[ns] Error in executing infra.tcl file

2009-03-31 Thread qute rose







I have included the following code in infra.tcl file
set nf [open out.nam w]
$nf namtrace-all $nf

I also made necessary changes in the stop(Finish) procedure

but when i run the simulation, i got the eeor message. Plz check the attached 
screenshot for the error message. Anyone plz tell me the reason for this error 
and also how to fix this error. 



  

[ns] Measure utilization of access point transmission buffer

2009-03-31 Thread Amr Ramadan


Dear All

I need to know how can i measure the utilization of access point transmission 
buffer ,as i am simulating voip in wireless lan 802.11 and i need to measure 
the utilization of the access point transmission buffer and included in the 
mail the tcl script i use it.

BR

[ns] Measure utilization of access point transmission buffer

2009-03-31 Thread Amr Ramadan


Dear All

I need to know how can i measure the utilization of access point transmission 
buffer ,as i am simulating voip in wireless lan 802.11 and i need to measure 
the utilization of the access point transmission buffer and included in the 
mail the tcl script i use it.

BR

[ns] [released] Ns-2.33 compiled with Antnet implemented

2009-03-31 Thread Richardson Lima

Dears,

Currently many researchers are sending me emails reporting problems in the
implementation antnet,so I am put the tarball
ns2.33_and_AntNet1.0_compiled.tar.gz ,this package contains the Ns-2.33
compiled with Antnet implemented, the link for download is
http://antnet.wordpress.com , the space on the FTP server was provided by Li
Amoos.
Amoos Lin is Ph.D candidate on Department of Electronic Engineering in
National Taiwan University of Science and Technology,Taiwan.

To solve some problems in the implementation I am writing a second version
of the manual for implementation of antnet in ns-2.33, I report some
‘tricks’.

Hope that I have helped.

Regards,

-- 
-- 
---
Richardson Lima
http://antnet.wordpress.com
http://securityfusion.sourceforge.net
(Security Fusion intrusion detection system)

Position:  Security System Administrator
Location:  Networking and Telecommuncations Research Group
Federal University of Pernambuco
Informatics Center, Brazil

P.O. Box: 7851, ZIP: 50732-970
Phone: +55-81-2126-8954 Fax:+55-81-2126-8955
Gsm Mobile: +55 81 88725173


Este e-mail é confidencial e de uso exclusivo do destinatário. Seu conteúdo
não deve ser revelado a terceiros. Caso você não seja o destinatário, por
favor notifique o remetente e elimine esta mensagem imediatamente. Alerto
que esta mensagem transitou por rede pública de comunicação, estando,
portanto, sujeita aos riscos inerentes a essa forma de comunicação.

This e-mail is private and confidential, and of exclusive use of the
addressee only. Its contents should not be revealed to third parties. If you
are not the intended addressee, please notify the sender and promptly delete
this message. It should be advised that this correspondence has been
transmitted through a public communication channel, being, therefore,
subject to the inherent risks of such kind of communication.


Re: [ns] Measure utilization of access point transmission buffer

2009-03-31 Thread Amr Ramadan

Dear All

I need to know how can i measure the utilization of access point transmission 
buffer ,as i am simulating voip in wireless lan 802.11 and i need to measure 
the utilization of the access point transmission buffer and included in the 
mail the tcl script i use it.

# vim: syntax=tcl

#

 

##

#   CONFIGURATION OF PARAMETERS  #

##

 

#

# Simulation environment

#

set opt(run)0 ;# replic ID

set opt(duration)   100.0 ;# run duration, in seconds

set opt(warm)   0   ;# run duration, in seconds

set opt(out)out ;# statistics output file

set opt(debug)  ;# debug configuration file,  = no debug

set opt(startdebug) 100.0 ;# start time of debug output

 

# VoIP modules parameters

 

set opt(aggregate) 1

set opt(tagrand)   uniform

set opt(tagmean)0.130

set opt(tagvar) 0.01

set opt(tagper) 0

set opt(decoder)   optimal

#set opt(codec)GSM.AMR ;# G.711, G.723.1, G.729A, GSM.EFR, GSM.AMR, 

set opt(codec) G.711 ;# G.711, G.723.1, G.729A, GSM.EFR, GSM.AMR, 

 

# static decoder parameters

set opt(static-buffer)  20

set opt(static-delay)   0.08

global opt

 

set opt(chan)   Channel/WirelessChannel

set opt(prop)   Propagation/TwoRayGround

set opt(netif)  Phy/WirelessPhy

set opt(mac)Mac/802_11

set opt(ifq)Queue/DropTail/PriQueue

set opt(ll) LL

set opt(ant)Antenna/OmniAntenna

set opt(x) 670   

set opt(y)  670   

set opt(ifqlen) 50  

set opt(tr)  wired-and-wireless2.tr

set opt(namtr)   wired-and-wireless2.nam

set opt(nn) 120   

set opt(rp)DSDV 

set opt(cp) 

set opt(sc) ../mobility/scene/scen-3-test   

set opt(stop)   120  

set num_bs_nodes 1

 

 

##

#   DEFINITION OF PROCEDURES #

##

 

#

# parse command-line options_ and store values into the $opt(.) hash

#

proc getopt {argc argv} {

global opt

 

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 opt($name) [lindex $argv [expr $i+1]]

}

}

 

#

# print out options

#

proc printopt { } {

global opt

 

foreach x [lsort [array names opt]] {

puts $x = $opt($x)

}

}

 

#

# die function

#

proc die { x } {

puts $x

exit 1

}

 

#

# alive function

#

proc alive { } {

global ns_ opt

 

if { [$ns_ now] != 0 } {

puts -nonewline \

 [format elapsed %.0f s (remaining %.0f s) completed %.f%% \

 [$ns_ now] \

 [expr $opt(duration) - [$ns_ now]] \

 [expr 100 * [$ns_ now] / $opt(duration)]]

if { [$ns_ now] = $opt(warm) } {

puts  stat collection ON

} else {

puts 

}

}

$ns_ at [expr [$ns_ now] + $opt(duration) / 10.0] alive

}

 

#

# collect statistics at the end of the simulation

#

proc finish {} {

global ns_ simtime

 

# print statistics to output file

$ns_ stat print

 

# print out the simulation time

set simtime [expr [clock seconds] - $simtime]

puts run duration: $simtime s

 

exit 0

}

 

#

# initialize simulation

#

proc init {} {

global opt defaultRNG ns_ simtime

set t 1

set f [expr $opt(nn) + $t]  

set ns_   [new Simulator]

# set up for hierarchical routing

 $ns_ node-config -addressType hierarchical

 AddrParams set domain_num_ 1  

 lappend cluster_num 1

 AddrParams set cluster_num_ $cluster_num

 lappend eilastlevel $f

 AddrParams set nodes_num_ $eilastlevel 

#  set tracefd  [open $opt(tr) w]

#  $ns_ trace-all $tracefd

  set namtracefd [open $opt(namtr) w]

  $ns_ namtrace-all $namtracefd

set num_bs_nodes 1

 

 

 

  set topo   [new Topography]

  $topo load_flatgrid $opt(x) $opt(y)

  # god needs to know the number of all wireless interfaces

  create-god [expr $opt(nn) + $num_bs_nodes]

 

  

  $ns_ node-config -adhocRouting $opt(rp) \

 -llType $opt(ll) \

 -macType $opt(mac) \

 -ifqType $opt(ifq) \

 -ifqLen $opt(ifqlen) \

 -antType 

Re: [ns] Measure utilization of access point transmission buffer

2009-03-31 Thread Amr Ramadan

Dear All

I need to know how can i measure the utilization of access point transmission 
buffer ,as i am simulating voip in wireless lan 802.11 and i need to measure 
the utilization of the access point transmission buffer and included in the 
mail the tcl script i use it.

# vim: syntax=tcl

#

 

##

#   CONFIGURATION OF PARAMETERS  #

##

 

#

# Simulation environment

#

set opt(run)0 ;# replic ID

set opt(duration)   100.0 ;# run duration, in seconds

set opt(warm)   0   ;# run duration, in seconds

set opt(out)out ;# statistics output file

set opt(debug)  ;# debug configuration file,  = no debug

set opt(startdebug) 100.0 ;# start time of debug output

 

# VoIP modules parameters

 

set opt(aggregate) 1

set opt(tagrand)   uniform

set opt(tagmean)0.130

set opt(tagvar) 0.01

set opt(tagper) 0

set opt(decoder)   optimal

#set opt(codec)GSM.AMR ;# G.711, G.723.1, G.729A, GSM.EFR, GSM.AMR, 

set opt(codec) G.711 ;# G.711, G.723.1, G.729A, GSM.EFR, GSM.AMR, 

 

# static decoder parameters

set opt(static-buffer)  20

set opt(static-delay)   0.08

global opt

 

set opt(chan)   Channel/WirelessChannel

set opt(prop)   Propagation/TwoRayGround

set opt(netif)  Phy/WirelessPhy

set opt(mac)Mac/802_11

set opt(ifq)Queue/DropTail/PriQueue

set opt(ll) LL

set opt(ant)Antenna/OmniAntenna

set opt(x) 670   

set opt(y)  670   

set opt(ifqlen) 50  

set opt(tr)  wired-and-wireless2.tr

set opt(namtr)   wired-and-wireless2.nam

set opt(nn) 120   

set opt(rp)DSDV 

set opt(cp) 

set opt(sc) ../mobility/scene/scen-3-test   

set opt(stop)   120  

set num_bs_nodes 1

 

 

##

#   DEFINITION OF PROCEDURES #

##

 

#

# parse command-line options_ and store values into the $opt(.) hash

#

proc getopt {argc argv} {

global opt

 

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 opt($name) [lindex $argv [expr $i+1]]

}

}

 

#

# print out options

#

proc printopt { } {

global opt

 

foreach x [lsort [array names opt]] {

puts $x = $opt($x)

}

}

 

#

# die function

#

proc die { x } {

puts $x

exit 1

}

 

#

# alive function

#

proc alive { } {

global ns_ opt

 

if { [$ns_ now] != 0 } {

puts -nonewline \

 [format elapsed %.0f s (remaining %.0f s) completed %.f%% \

 [$ns_ now] \

 [expr $opt(duration) - [$ns_ now]] \

 [expr 100 * [$ns_ now] / $opt(duration)]]

if { [$ns_ now] = $opt(warm) } {

puts  stat collection ON

} else {

puts 

}

}

$ns_ at [expr [$ns_ now] + $opt(duration) / 10.0] alive

}

 

#

# collect statistics at the end of the simulation

#

proc finish {} {

global ns_ simtime

 

# print statistics to output file

$ns_ stat print

 

# print out the simulation time

set simtime [expr [clock seconds] - $simtime]

puts run duration: $simtime s

 

exit 0

}

 

#

# initialize simulation

#

proc init {} {

global opt defaultRNG ns_ simtime

set t 1

set f [expr $opt(nn) + $t]  

set ns_   [new Simulator]

# set up for hierarchical routing

 $ns_ node-config -addressType hierarchical

 AddrParams set domain_num_ 1  

 lappend cluster_num 1

 AddrParams set cluster_num_ $cluster_num

 lappend eilastlevel $f

 AddrParams set nodes_num_ $eilastlevel 

#  set tracefd  [open $opt(tr) w]

#  $ns_ trace-all $tracefd

  set namtracefd [open $opt(namtr) w]

  $ns_ namtrace-all $namtracefd

set num_bs_nodes 1

 

 

 

  set topo   [new Topography]

  $topo load_flatgrid $opt(x) $opt(y)

  # god needs to know the number of all wireless interfaces

  create-god [expr $opt(nn) + $num_bs_nodes]

 

  

  $ns_ node-config -adhocRouting $opt(rp) \

 -llType $opt(ll) \

 -macType $opt(mac) \

 -ifqType $opt(ifq) \

 -ifqLen $opt(ifqlen) \

 -antType 

[ns] Topology control protocols in WSN

2009-03-31 Thread Dalton Cézane

Hi...
Does can anyone give me some links where I find code examples of topology
control protocols in Wireless Sensor Network implemented with the NS-2?

Thanks in advance!

[ ]`s

-- 
===
Dalton Cézane - Voip UFCG: 1075-2005
Mestrando em Ciência da Computação
Bacharel em Ciência da Computação
Universidade Federal de Campina Grande - UFCG


Re: [ns] understanding trace file

2009-03-31 Thread Karthik Talloju

Thank you very much.
I was not convinced that the page you pointed me to on the  
documentation was what i was looking for. so, i kept searching until  
just now, i stumbled upon a link which said 'x' means end of  
transmission and is generated just after the last bit of a frame has  
been transmitted. And it turns out that trace file has these lines  
only if we use
$sim node-config -eotTrace   ON

I wanted to let you know. Thanks again for the help.

Karthik

On Mar 27, 2009, at 12:34 PM, Bello Lawal wrote:

 Find atttached and look at page 158.

 Thanks

 --- On Fri, 3/27/09, Karthik Talloju karthiktall...@gmail.com wrote:

 From: Karthik Talloju karthiktall...@gmail.com
 Subject: Re: [ns] understanding trace file
 To: Bello Lawal lawalimor...@yahoo.com
 Cc: ns-users@isi.edu
 Date: Friday, March 27, 2009, 6:01 AM

 Hi, thanks for the reply. I have been searching for it in the ns  
 documentation with no success. I had mailed so if anyone else might  
 have have encountered the same results, they could help me. Can you  
 tell me in C++ file should I look for the definitions ?

 On Mar 27, 2009, at 6:57 AM, Bello Lawal wrote:

 Hello,

 Pls refer to ns documentation 2009
 it expalin all the field parameters.

 cheers


 --- On Thu, 3/26/09, Karthik Talloju karthiktall...@gmail.com  
 wrote:

 From: Karthik Talloju karthiktall...@gmail.com
 Subject: [ns] understanding trace file
 To: ns-users@ISI.EDU
 Date: Thursday, March 26, 2009, 5:00 PM


 could anyone tell me what does 'x' in the 1st field of the following
 entry in the trace file mean ?

 x -t 0.037347876 -Hs 0 -Hd -1 -Ni 0 -Nx 404.92 -Ny 144.94 -Nz 0.00 - 
 Ne
 -1.00 -Nl MAC -Nw --- -Ma 0 -Md  -Ms 0 -Mt 800 -Is  
 0.255 -
 Id -1.255 -It message -Il 84 -If 0 -Ii 0 -Iv 32


 I found that it is usually one of: send(s), drop(d), receive(r) ,
 forward(f). but couldnt find any entry for 'x'

 Thanks,
 Karthik




 ns_doc.pdf



Re: [ns] How to change transmission power of a specific node in the

2009-03-31 Thread simayeji

middle of simulation run time or in protocol?
MIME-Version: 1.0
Content-Type: multipart/alternative; 
boundary==_Part_15188_18936526.1238548965795
X-Originating-IP: [202.120.185.196]
X-Priority: 3
X-Mailer: Coremail Webmail Server Version XT2_snapshot build
 090319(6914.2271.2266) Copyright (c) 2002-2009 www.mailtech.cn 163com

--=_Part_15188_18936526.1238548965795
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

you can do the following: 1.$ns at 5 [$node_(4) set netif_(0)] set RXThres=
h_  2.$ns at 5 [$node_(4) set mac_(0)] netif [$node_(4) set netif_(0)=
] or combine the two commands into one, to set the transmission power to a=
 node during the simulation.


=E5=9C=A82009-03-31=EF=BC=8CMahshid Rahnama mahshid.rahn...@gmail.com =
=E5=86=99=E9=81=93=EF=BC=9A


Hi all,

I am try to change transmission power of each node according to some
parameters in my protocl,
How can I set and adjust a node transmission power in simualtion run time?

I know threshold -m propagation-model [other-options] distance
 and Phy/WirelessPhy set RXThresh_ value
 
 But I think it just work when creating a node,
but What should I do to change transmission power of for example
mobilenode(4) after 5 seconds ?

Thanks for any help,
--Mah


--=_Part_15188_18936526.1238548965795
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

you can do the following:
1.$ns at 5 [$node_(4) set netif_(0)] set RXThresh_ 
2.$ns at 5 [$node_(4) set mac_(0)] netif [$node_(4) set netif_(0)]
or combine the two commands into one, to set the transmission power to a no=
de during the simulation.brbrbr=E5=9C=A82009-03-31=EF=BC=8CMahshid R=
ahnama lt;mahshid.rahn...@gmail.comgt; =E5=86=99=E9=81=93=EF=BC=9Abr =
BLOCKQUOTE id=3DisReplyContent style=3DPADDING-LEFT: 1ex; MARGIN: 0px 0p=
x 0px 0.8ex; BORDER-LEFT: #ccc 1px solidPRE
Hi all,

I am try to change transmission power of each node according to some
parameters in my protocl,
How can I set and adjust a node transmission power in simualtion run time?

I know threshold -m lt;propagation-modelgt; [other-options] distance
 and Phy/WirelessPhy set RXThresh_ lt;valuegt;
 
 But I think it just work when creating a node,
but What should I do to change transmission power of for example
mobilenode(4) after 5 seconds ?

Thanks for any help,
--Mah

/PRE/BLOCKQUOTEbr!-- footer --brspan title=3Dneteasefooter/h=
r/
a href=3Dhttp://email.163.com;=E7=BD=91=E6=98=93=E9=82=AE=E7=AE=B1=EF=BC=
=8C=E4=B8=AD=E5=9B=BD=E7=AC=AC=E4=B8=80=E5=A4=A7=E7=94=B5=E5=AD=90=E9=82=AE=
=E4=BB=B6=E6=9C=8D=E5=8A=A1=E5=95=86/a
/span
--=_Part_15188_18936526.1238548965795--



[ns] who can send me a copy of mwnode-ex.tcl?

2009-03-31 Thread simayeji


hi all,
Nowadays i am working on the mw node extension to ns2.33. but i found that 
the example file
 tcl\ex\mwnode-ex.tcl is not included in the 2.33 patch. So if anyone have 
that file, plz send 
me a copy. Thanks very much.

[ns] distributed channel assignment in ns2 from mahendran

2009-03-31 Thread Mahendran
















can anyone help me in running the  code distributed channel assignment 
algorithm by hyacinth available at software downloads section  of website 
http://www.ecsl.cs.sunysb.edu/multichannel/

can u help me in running centralized algorithm code also.

whether ns2.1b9a version can be successfully installed in windows using 
cygwin...

Help me.Waiting for ur reply.

Thanking u

C.Mahendran








Add more friends to your messenger and enjoy! Invite them now.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


[ns] TCL code for WiFi simulation

2009-03-31 Thread qute rose



Hi!
I want to simulate the Wifi scenario and want to analyze the performance of 
WiFi on increase in number of nodes. The nodes are sending data using VoIP. i 
want TCL code for this scenario. How will i analyze the trace file using AWK?
 
Thanks!