Re: [ns] I neeh help for my script with MW-node patch

2007-03-19 Thread Laurent Paquereau


Elena,

What you are doing here is setting each interface on a different channel 
so no packet will be received.
If I understand correctly what you are trying to do, first create your 
two channels and then configure the interfaces on the correct channels. 
Another hint is to configure all the interfaces on one channel first and 
then all the interfaces on the other;  it makes it simpler to 
understand. Finally you do not need to use node-config and 
wireless-config each time if the configuration of two or more 
nodes/interfaces is identical (e.g. your 3 mobile nodes). Using loops in 
this case also simplifies the script.


Laurent Paquereau
Q2S Centre of Excellence, NTNU

Elena Putzolu wrote:

Hi ns-users,
I have installed in ns-2.30 patch MW-node, 
http://www.q2s.ntnu.no/~paquerea/ns.html
through my script, would purely like to simulate a net wireless, where 
presents of Access Point (2) and the mobile nodes(3). Access Point 
communicate between them through the standard 802.11a, while the mobile 
nodes only communicate cross Access Point with the standard 802.11b/gm. 
Therefore Access Point need 2 interfaces with different settings ( 
802.11a, 802.11b/g ) using pach and the commands I have found in the 
manual tried to set up all these elements in my script:


global val_
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy  ;# physical layer
set val_b(phy) Phy/WirelessPhy  ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type

set val_(ll) LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50   ;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr   ;# 
trace file
set val_(namtr)esercizi/out4.nam  ;# nam 
trace file

set val_(stopTime)   15


proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i  $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) $node_($i) reset
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128 ;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us

 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble

 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)

 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818

 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9

 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set 

[ns] IFQ RTR NW IFQ

2007-03-19 Thread antonis antoniou



Dear all,
can anyone clarify the difference for drop:

Nl RTR Nw IFQ and drop Nl IFQ
is urgent...

thanks



[ns] NOAH routing protocol problem URGENT

2007-03-19 Thread antonis antoniou


Dear all, 

i tried to use NOAH protocol but ns2 give me an error
http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/

ns[something about omitted due to lenght...]

Now i cannot work ns at all...

please is very urgent 

i use ns2.29, cygwin, win xp

thanks






[ns] setting node distance

2007-03-19 Thread paul yoong

Hi all,

I've been trying to set variable node distances using the command:

$node 0 set X_ 100.0

but when I calculate the round trip time it always comes back the same. Am I 
setting the distances incorrectly and if so can anyone tell me how to rectify 
it. 

Thanks in advance





___ 
All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html


Re: [ns] setting node distance

2007-03-19 Thread maruf

Hi

Try this syntax below:

$node_(0) set X_ 100.0
$node_(0) set Y_ 0.0
$node_(0) set Z_ 0.0

Good luck!

- Original Message -
From: paul yoong [EMAIL PROTECTED]
Date: Monday, March 19, 2007 4:42 am
Subject: [ns] setting node distance
To: ns-users@ISI.EDU


  Hi all,
  
  I've been trying to set variable node distances using the command:
  
  $node 0 set X_ 100.0
  
  but when I calculate the round trip time it always comes back the 
 same. Am I setting the distances incorrectly and if so can anyone tell 
 me how to rectify it. 
  
  Thanks in advance
  
  
  
  
   
  ___ 
  All New Yahoo! Mail – Tired of unwanted email come-ons? Let our 
 SpamGuard protect you.  



[ns] my script MW-node

2007-03-19 Thread Elena Putzolu

Hi Laurent,
Thank you very much for the answer, I have changed my script, but 
doesn't work.
According to you, because I from this type of mistake?

ns: new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o21 _o33: 
invalid command name Phy/WirelessPhy]
while executing
Phy/WirelessPhy] create _o37 
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new [WirelessModule set wireless_param_(phy)]
(procedure _o36 line 11)
(BiConnector/NetworkInterface2/FullStack/ init line 11)
invoked from within
_o36 init 0 _o21 _o33
(Class create line 1)
invoked from within
BiConnector/NetworkInterface2/FullStack/Wireless create _o36 0 _o21 _o33
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o21 _o33


My Script:
global val_
global val_a
global val_b
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy ;# physical layer
set val_b(phy) Phy/WirelessPhy   ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type
set val_(ll) LL;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr;# trace file
set val_(namtr)esercizi/out4.nam   ;# nam trace file
set val_(stopTime)   15

set chan_a   [new $val_(channel)]
set chan_b   [new $val_(channel)]

proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i  $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) $node_($i) reset
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us
 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble
 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)
 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818
 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9
 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set 

Re: [ns] [NS-2] The most recent tcl-debug manual

2007-03-19 Thread Pedro Vale Estrela

 

Hi,

 

I've checked your installation manual. It looks great! 

 

Many thanks for the effort of contributing to the ns2 community
documentation; of course that I'll mention your work in my debugging pages!

 

Pedro Vale Estrela

 http://tagus.inesc-id.pt/~pestrela/ns2
http://tagus.inesc-id.pt/~pestrela/ns2

 

 

This semester I updated the tcl-debug installation manual.

..

This manual is written BOTH Linux and cygwin in mind.

This should work both for 2.30, 2.29, and 2.28.

The link is given below.

2.30

 
http://web.umr.edu/~tk424/CpE_EE401_1A_Spring_2007/Handouts/Programs/tclDeb
ugger/tcl-debug_installation_manual.pdf
http://web.umr.edu/~tk424/CpE_EE401_1A_Spring_2007/Handouts/Programs/tclDebu
gger/tcl-debug_installation_manual.pdf

For your convenience, I have included the same manual with previous
versions.

These links are included in the above manual.

2.29

 http://mailman.isi.edu/pipermail/ns-users/2006-January/053760.html
http://mailman.isi.edu/pipermail/ns-users/2006-January/053760.html

2.28

 http://mailman.isi.edu/pipermail/ns-users/2005-June/050495.html
http://mailman.isi.edu/pipermail/ns-users/2005-June/050495.html

 

Tae-Hyung Kim

Ph.D. candidate
Dept. of Electrical  Computer Engineering
University of Missouri, Rolla

Applied Computational Intelligence Laboratory
G11 Emerson Electric Co. Hall
1870 Miner Circle Rolla, MO 65409-0040

 



[ns] Modifying worm application to send data

2007-03-19 Thread Sam Plotkin

Hi, I'm trying to modify the worm application to simulate a hit list
worm. The addresses of vulnerable targets are known in advance and this
list is distributed to new hosts as they become infected. 

 

Firstly I'd like to know how vulnerable hosts are actually notified once
they are infected in the current worm model. In worm.cc the send_probe()
method seems to do this by calling 

 

  agent_-sendto((int)p_size_, (const char *)NULL, dst); 

 

at line 160. However in agent.cc sendto() is not implemented. Putting in
a few printf statements, sendto() doesn't even seem to get called. Is it
reimplemented somewhere else? How are vulnerable hosts notified that
they have been infected?

 

 

 

In order to distribute a hit list containing the addresses of vulnerable
hosts, it will be necessary to send actual data content. The Application
and Agent classes used by WormApp don't appear to support sending data
at present. 

 

In the Application class, the only argument for send() is the number of
bytes sent. The sendto() methods in the Agent class are either blank or
pass an error message saying they are not implemented. 

 

sendto() in class MessagePassingAgent appears to do what I want, sending
a data to another address. I have tried modifying app.h to use a
MessagePassingAgent instead of an Agent, however I'm getting the
following compiler errors

 

In file included from ./common/messpass.h:5,

 from apps/app.h:45,

 from apps/app.cc:38:

./tools/trafgen.h:82: error: invalid use of undefined type `struct
Application'

./common/agent.h:59: error: forward declaration of `struct Application'

./tools/trafgen.h:82: warning: `class TrafficGenerator' has virtual
functions but non-virtual destructor

make: *** [apps/app.o] Error 1

 

 

Does using a MessagePassingAgent seem like a reasonable way to achieve
this or is there a better way? If this is a reasonable approach, can
someone offer any help with the errors above. Any help would be greatly
appreciated.

 

Thanks,

Sam Plotkin



[ns] help about routing agent need!!

2007-03-19 Thread wenping zhang

I was practising ns2 with the direction of http://140.116.72.80/~smallko/ns2/ns2

There is an .tcl file from it about Examples for CBR traffic transmission over 
DCF-based and EDCF-based wireless networks.

In the file,the adhocrouting protocol is NOAH.

when run this file,the terminal tells: wrong routing agent!

And there isn't NOAH directory in the rout directory of ns2.x.

So i have no idea about how this go wrong.


Any help will be appreciated!




wenping zhang

07.03.19

Re: [ns] my script MW-node

2007-03-19 Thread Laurent Paquereau

If I run exactly your script (only removing $eilastlevelSecondo which is 
undefined) with ns-2.30-allinone and the latest version of the patch 
(20070301) I do not get such an error. The message indicates an error 
when you create the first wireless interface on node_AP(0). It is as if 
you had written new Phy/WirelessPhy]. Maybe you modified 
ns-wireless.tcl? Does the mwnode test pass?

Note also that the way you have written your script all the interfaces 
have the same configuration val_b(phy/mac). For example,
$val_b(mac) set SlotTime_ ... and $val_a(mac) set SlotTime_ modify the 
same static tcl variable because val_a(...) and val_b(...) are equal. 
You do not actually need these variables but you need to change the 
static variables at the right place (create the interfaces with one 
configuration and then change it before you create the interfaces with a 
different mac/phy configuration.
Note that all this is not related to the MW-Node in particular.

Laurent Paquereau
Q2S Centre of Excellence, NTNU

Elena Putzolu wrote:
 Hi Laurent,
 Thank you very much for the answer, I have changed my script, but 
 doesn't work.
 According to you, because I from this type of mistake?
 
 ns: new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o21 _o33: 
 invalid command name Phy/WirelessPhy]
 while executing
 Phy/WirelessPhy] create _o37 
 invoked from within
 catch $className create $o $args msg
 invoked from within
 if [catch $className create $o $args msg] {
 if [string match __FAILED_SHADOW_OBJECT_ $msg] {
 delete $o
 return 
 }
 global errorInfo
 error class $...
 (procedure new line 3)
 invoked from within
 new [WirelessModule set wireless_param_(phy)]
 (procedure _o36 line 11)
 (BiConnector/NetworkInterface2/FullStack/ init line 11)
 invoked from within
 _o36 init 0 _o21 _o33
 (Class create line 1)
 invoked from within
 BiConnector/NetworkInterface2/FullStack/Wireless create _o36 0 _o21 _o33
 invoked from within
 catch $className create $o $args msg
 invoked from within
 if [catch $className create $o $args msg] {
 if [string match __FAILED_SHADOW_OBJECT_ $msg] {
 delete $o
 return 
 }
 global errorInfo
 error class $...
 (procedure new line 3)
 invoked from within
 new BiConnector/NetworkInterface2/FullStack/Wireless 0 _o21 _o33
 
 
 My Script:
 global val_
 global val_a
 global val_b
 set val_(channel)Channel/Wireless;# channel
 set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model
 
 set val_a(phy) Phy/WirelessPhy ;# physical layer
 set val_b(phy) Phy/WirelessPhy   ;# physical layer
 
 set val_a(mac) Mac/802_11   ;# mac layer
 set val_b(mac) Mac/802_11   ;# mac layer
 
 set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
 queue type
 set val_(ll) LL;# link layer type
 set val_(antenna) Antenna/OmniAntenna  ;# antenna model
 set val_(ifqlen) 50;# max packet in ifq
 
 set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing
 
 set val_(x)150
 set val_(y)150
 set val_(tr)   esercizi/out4.tr;# trace file
 set val_(namtr)esercizi/out4.nam   ;# nam trace file
 set val_(stopTime)   15
 
 set chan_a   [new $val_(channel)]
 set chan_b   [new $val_(channel)]
 
 proc init {} {
 global val_ tracefd_ namfd_ ns_
 set ns_ [new Simulator]
 set tracefd_ [open ./$val_(tr) w]
 $ns_ trace-all $tracefd_
 set namfd_ [open ./$val_(namtr) w]
 $ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
 }
 
 proc finish {} {
 global val_ tracefd_ namfd_ ns_ node_
 for {set i 0} {$i  $val_(nMn) } {incr i} {
 $ns_ at $val_(stopTime) $node_($i) reset
 }
 $ns_ flush-trace
 close $tracefd_
 close $namfd_
 exit 0
 }
 
 global ns_
 
 init
 
 
  $val_a(mac) set SlotTime_  0.50;# 50us
  $val_a(mac) set SIFS_  0.28;# 28us
  $val_a(mac) set PreambleLength_0   ;# no preamble_
  $val_a(mac) set PLCPHeaderLength_  128;# 128 bits
  $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
  $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
  $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps
 
 ###802.11b/g
 
  $val_b(mac) set SlotTime_  0.20;# 20us
  $val_b(mac) set SIFS_  0.10;# 10us
  $val_b(mac) set PreambleLength_144 ;# 144 bits 
 preamble
  $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
  $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
  $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
 54Mbps(802.11g)
  

Re: [ns] Question about wireless testing ?

2007-03-19 Thread Marco Fiore


The output is correct. It's just some control messages
ns-2 gives at 
the beginning and end of simulation.
If you see NS EXITING... 
everything went fine and
you can find the results in your tracefile :)

bye,

Marco

Original Message
From: [EMAIL PROTECTED]
Date: Mar 17, 2007 5:31 PM
To: ns-users@ISI.EDU
Subj: [ns] 
Question about wireless testing ?


Hi,
I've a question about NS-
2.30:
When I run some example about wireless (or wireless sensor) like 
: diffusion (in ns-2.30\tcl\ex or ns-2.30\tcl\ex\diffusion...)...I 
received the same result like this :
  num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-
mitf.tcl
INITIALIZE THE LIST xListHead

Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - 
Calc highestAntennaZ_ and distCST_
  highestAntennaZ_ = 1.5,  
distCST_ = 550.0
SORTING LISTS ...DONE!
NS 
EXITING...
  I don't know this is right or wrong ?If wrong,can you 
help me to correct it ...?
Thanks so much...!



 
-
Be a PS3 game guru.
Get your game 
face on with the latest PS3 news and previews at Yahoo! Games.





[ns] Scheduler crash with simultaneous events

2007-03-19 Thread ns2car

 Hello all,

I'm having this problem with an ns2 simulation. I have several wireless
nodes running, which send packets by invoking:

Scheduler::instance().schedule(target_, packet, delay)

The problem is that I'm getting segmentation fault crashes on the
schedule call, when called for transmitting data packets. If I make the
delay value change between invocations, I get much less crashes.

Any help would be greatly appreciated!

Thanks,
Carmen.


[ns] Error in script of wireless simulation

2007-03-19 Thread super.ismiti

Hi all,

I'm trying to do a simulation wireless in ns-2.
The script of my simulation is together of this e-mail.
When I try to execute this script (ns scriptname.tcl), an error is showed:

num_nodes is set 2
Warning: Please use -channel as show in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
wrong # args: should be proc name args body
  while executing
proc stop{} {
   global ns_ tracefd
   $ns_ flush-trace
   close $tracefd
}
(file wireless1.tcl line 98)


Could somebody tell me what's wrong in my code. This code I got from a
tutorial in web:
http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html

Thanks in advance,
Ricardo.


Re: [ns] Error in script of wireless simulation

2007-03-19 Thread maruf

Hi there,

Okay you should put a gap between stop and {}, you have written them together. 
The correct statement should be ' proc stop {} { '. Gaps are very important in 
NS scripting language.

maruf

- Original Message -
From: super.ismiti [EMAIL PROTECTED]
Date: Monday, March 19, 2007 1:06 pm
Subject: [ns] Error in script of wireless simulation
To: ns-users@ISI.EDU


  Hi all,
  
  I'm trying to do a simulation wireless in ns-2.
  The script of my simulation is together of this e-mail.
  When I try to execute this script (ns scriptname.tcl), an error is showed:
  
  num_nodes is set 2
  Warning: Please use -channel as show in tcl/ex/wireless-mitf.tcl
  INITIALIZE THE LIST xListHead
  wrong # args: should be proc name args body
while executing
  proc stop{} {
 global ns_ tracefd
 $ns_ flush-trace
 close $tracefd
  }
  (file wireless1.tcl line 98)
  
  
  Could somebody tell me what's wrong in my code. This code I got from 
 a
  tutorial in web:
  
  
  Thanks in advance,
  Ricardo. 



[ns] ping round trip time

2007-03-19 Thread paul yoong

Hi all,

Just wanted to find out if this is the correct procedure to work out round trip 
time using a ping

#Define a 'recv' function for the class 'Agent/Ping'
Agent/Ping instproc recv {from rtt} {
$self instvar node_
puts node [$node_ id] received ping answer from \
$from with round-trip-time $rtt ms.
}

Thanks





___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html


[ns] Compiling MOR (Multipath On-demand Routing) protocol

2007-03-19 Thread fokumdt

I am trying to compile  MOR (Multipath On-demand Routing protocol) under
ns-2.30 on the following version of Linux:
2.6.19-1.2911.6.5.fc6 #1 SMP Sun Mar 4 15:47:41 EST 2007 i686 athlon i386
GNU/Linux

However, I get the following error messages:
podr/podrPacket.h: In function ?unsigned char* pkt_push(pkt_t*, int)?:
podr/podrPacket.h:138: error: invalid lvalue in assignment
podr/podrPacket.h: In function ?unsigned char* pkt_pull(pkt_t*, int)?:
podr/podrPacket.h:163: error: invalid lvalue in assignment
podr/podrAgent.cc: In member function ?void podrPacketHeader::recvAdjust()?:
podr/podrAgent.cc:146: error: invalid lvalue in assignment
podr/podrAgent.cc:147: error: invalid lvalue in assignment

The offending lines of code are:
podr/podrPacket.h:138: (uint8_t *) pkt-data -= len;
podr/podrPacket.h:163: return (uint8_t *) pkt-data += len;
podr/podrAgent.cc:146: (uint8_t *) data -= (uint8_t *) head;
podr/podrAgent.cc:147: (uint8_t *) tail -= (uint8_t *) head;

You can get podrPacket.h and podrAgent.cc from
http://www.ittc.ku.edu/~fokumdt/podrPacket.h and
http://www.ittc.ku.edu/~fokumdt/podrAgent.cc

MOR may be downloaded from
http://red2.ics.hawaii.edu/~shuc/podr/ns-2.30-podr-20061031.tar.gz

Thanks in advance for any help.
Daniel



[ns] Getting this problem while installing ns-2.1b8a.Please help me

2007-03-19 Thread taraka praveen

Hi sir,

I have to install ns-2.1b8a for using the pathc PCF
operation.I downloaded the patch from 

http://www.sm.luth.se/~dugdale/index/software.shtml

I have to install ns-2.1b8a for using above
patch.Whlile installing i am getting this following
problem.

/pushback-queue.o pushback/pushback.o parentnode.o
basetrace.o simulator.o  gen/version.o gen/ns_tcl.o
gen/ptypes.o  win32.o
-L/home/ns-allinone-2.1b8a/tclcl-1.0b11 -ltclcl
-L/home/ns-allinone-2.1b8a/otcl-1.0a7 -lotcl
-L/home/ns-allinone-2.1b8a/lib -ltk8.3
-L/home/ns-allinone-2.1b8a/lib -ltcl8.3
-L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm
/home/ns-allinone-2.1b8a/lib/libtcl8.3.a(tclUnixPipe.o)(.text+0xe2):
In function `TclpCreateTempFile':
: the use of `tmpnam' is dangerous, better use
`mkstemp'
simulator.o(.text+0x735): In function
`Simulator::populate_hier_classifiers()':
: undefined reference to
`RouteLogic::elements_in_level(int*, int)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for
problems

Please help me.

Please suggest me any website to overcome this error.

Thanking you sir,
Regards,
Tarakapraveen



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] Reliability for mobile ad hoc network

2007-03-19 Thread RC Loh

Hi,
 
I will like to evaluate the reliability of the multipath links in the mobile ad 
hoc networks (MANET) using NS-2. Any one has any idea? Any hint is appreciated. 
 
Thanks in advance.
 
Rdgs,
Paul




Real people. Real questions. Real answers. Share what you know.






__ 
Meet your soulmate! 
Yahoo! Asia presents Meetic - where millions of singles gather 
http://asia.yahoo.com/meetic 


[ns] Time Synchronization in sensor network

2007-03-19 Thread Hyung Gun Lim

hi all!

i am studying abut time synchronization in wireless sensor network!

these days. i'm trying to make a source code TPSN and RBS in NS-2.

TPSN is introduced in the paper of Time-sync Protocol for sensor
Networks,2003

RBS is introduced in the paper of fine-grained time synchonization using
reference broadcasts,2002

but, it's not easy to me , because this is my first time using NS-2.

so, i need your help!

Does anyone have source code about TPSN and RBS

ll look forward to your reply.


[ns] implementation of point to point protocol (ppp) in ns-2

2007-03-19 Thread uyhaw ihda

hi everybody
  i want to make simulation of point to point protocol (ppp) with ns-2, 
and my question is, did ns-2 already support/have the implementation of 
ppp? if not, where i can get it?
   
  thanks for the attention

 Send instant messages to your online friends http://uk.messenger.yahoo.com