[ns] -k option in nam

2008-01-17 Thread Olpp, Dieter

 Can anyone tell me what the -k: initial socket port number option in
 nam 1.11 is for? I cannot find any documentation about this option.
 Can nam read trace commands via sockets? This would be very convenient
 as the feature to read trace commands for real-time applications via
 streams, like cat wireless.nam | nam -, does not work with me for
 the precompiled binaries for Windows, neither under native Windows XP
 nor under Cygwin 1.5.25!
 
 Regards,
 Dieter


Re: [ns] ns-2 simulation

2008-01-17 Thread Samer Bali

Hi Suthapuch,

 

Yes , if DYMO is installed with ns-2, you can use my software with it.
However, you should make some changes regarding packet size at routing
level. First you should find the size of the packet in trace file. For
example, I found that when I set packet size in tcl file to 1024 bytes,
rpktsize will be 1084 bytes at routing level in case of OLSR and AODV, and
1064 for DSR. So you need to change spktsize and rpktsize in gen_pl.tcl
file to consider DYMO. Namely you should modify the following lines which
are found in three locations in the file gen_pl.tcl:

 set spktsize 1064

 if {$routing == AODV || $routing == OLSR} {

 set rpktsize 1084

 } else {

 set rpktsize 1064

 }

 

Hope this helps.

 

From: suthapuch purnaveja [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 16. Januar 2008 10:44
To: [EMAIL PROTECTED]
Subject: ns-2 simulation

 

January 16, 2008

 

Dear Mr. Samer Bali

 

I am from Thailand. I am studying master degree at KMUTT. I have
been interested in ad hoc network and DYMO routing protocol. I would measure
routing overhead and  packet delivery ratio for my project. I would like to
ask you that your modules can be used with DYMO and if it is available,
could you explain how to used it. I will appreciate much for your kindness.
Finally, I apologize you at taking your time and your effort on my poor
english skill. And thank you much.





 

Best Regards

Suthapuch Purnaveja

 

  _  

Never miss a thing. Make Yahoo
http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs  your homepage.




[ns] Fault Tolerance in WSN

2008-01-17 Thread cool


Hi,

Can any one help me out regarding the simulation of fault tolerance in WSN
under Zigbee environment?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Fault-Tolerance-in-WSN-tp14876797p14876797.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] MIMO in ns-2.31

2008-01-17 Thread Azim

Hello Ns-Users,

If there is anyone who implemented MIMO in ns-2.31 ?
Or if anyone have some information, please let me know.

Regards
Azim


[ns] Reliability and SCTP aware application

2008-01-17 Thread ashfiquac


Hi,

I am working with SCTP aware application. I think there is some bug in
there because if I send the packets with reliability level set to 0;
then it also gets retransmitted whereas it should not be retransmitted.
Has anyone faced the same problem or does anyone has any suggestion?

I highly appreciated any suugestions.

Regards,
Ashfiqua



[ns] communication range

2008-01-17 Thread neeraj gupta

  

hi all

  i read it ns_mannual that threshold.cc can be used to calculate the receving 
threshold in the network interface. my question is how to compile the program 
using gcc or make.

neeraj


[ns] can some one help me how to make change on the following code to run TORA

2008-01-17 Thread dhaya nithi

the code is shown below...




puts * ***
puts The Program Shows the Operation 
puts The Specfications of the Program are
  X-Maximum-200  Y-Maximum-200(Grid Size)
  Number of Nodes are:50
  Pause Time : 2s
  Max speed :10m/s
  Simulation Time:100s
  Packet Size : 1024 bytes
  Transfer Rate : 4 pkts/s
  Output Trace File:project1.tr
  Output Nam File:project1.nam

# ==
# Define options
# ==
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(nn) 50  ;# number of mobilenodes

set val(rp) TORA  ;# routing protocol

# ==

set AgentTraceON
set RouterTraceON
set MacTraceOFF

LL set mindelay_50us
LL set delay_25us
LL set bandwidth_0;# not used

Agent/Null set sport_0
Agent/Null set dport_0

Agent/CBR set sport_0
Agent/CBR set dport_0

Agent/TCPSink set sport_0
Agent/TCPSink set dport_0

Agent/TCP set sport_0
Agent/TCP set dport_0
Agent/TCP set packetSize_1460

Queue/DropTail/PriQueue set Prefer_Routing_Protocols1

# unity gain, omni-directional antennas
# set up the antennas to be centered in the node and 1.5 meters above it
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

# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 9.8214e-09
Phy/WirelessPhy set Rb_ 2*1e6
Phy/WirelessPhy set Pt_ 0.036
Phy/WirelessPhy set freq_ 914e+6
Phy/WirelessPhy set L_ 1.0

# =

# ==
# Main Program
# ==


#
# Initialize Global Variables
#
set ns_[new Simulator]
set tracefd [open project1.tr w]
$ns_ trace-all $tracefd
set namfd [open project1.nam w]
$ns_ namtrace-all-wireless $namfd 200 200

# set up topography object
set topo   [new Topography]

$topo load_flatgrid 200 200

#
# Create God
#
set god_ [create-god $val(nn)]
#
#Create Channel
#
set chan_1_ [new $val(chan)]

#
#  Create the specified number of mobilenodes [$val(nn)] and attach them
#  to the channel.
#  Here two nodes are created : node(0) and node(1)

# 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) \
 #-channelType $val(chan) \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace ON \
 -movementTrace ON \
 -channel $chan_1_\
 -energyModel EnergyModel \
 -initialEnergy 1.5 \
 -txPower 0.036 \
 -rxPower 0.009

for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;# disable random motion
}

source scen-50-2-10-100-200-200

set udp [new Agent/UDP]
set sink [new Agent/Null]
$ns_ attach-agent $node_(0) $udp
$ns_ attach-agent $node_(18) $sink
$ns_ connect $udp $sink
set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
$cbr set packetSize_ 1024
$cbr set rate_ 0.032768Mb
$cbr set random_ false
$ns_ at 1.0 $cbr start

for {set i 0} {$i  $val(nn)} {incr i} {


# 20 defines the node size in nam, must adjust it according to your
scenario
# The function must be called after mobility model is defined


$ns_ initial_node_pos $node_($i) 10
}


#
# Tell nodes when the simulation ends
#
for {set i 0} {$i  $val(nn) } {incr i} {
$ns_ at 100.0 $node_($i) reset;
}

$ns_ at 99.5 $cbr stop
$ns_ at 100.0 stop
$ns_ at 100.001 puts \NS EXITING...\ ; $ns_ halt
proc stop {} {
global ns_ tracefd namfd
$ns_ 

[ns] can some one help me how to create scenario file in ns2.31

2008-01-17 Thread dhaya nithi

please send me how to set path to create scenario file varying
speed,pausetime,nodes

-- 
Regards,
dhayanithi.