[ns] Help to understanding results (ad hoc network)

2008-06-11 Thread Claudia Medeiros

Hello,
   
  I need help to understanding the following situation:
   
  An ad hoc network with 60 nodes, where nodes 58 and 59 are static and 
opposite, in the extreme of scenario (right and left). 58 establich a TCP 
connection with node 59, while the other nodes are moving between them with a 
speed near 0m/s (almost static too). Time of simulation is 900s and I used 
802.11b, 11Mbps bandwidth and range 160m. My objective is calculate throughput 
and goodput for this TCP connection, including other similar scenarios.
   
  My problem is I have obtained ridiculous 9.8 kbps throughput I don't know 
what is happening, where I made a mistake when a execute NAM, I almost 
can't see any transmission of packets... could someone help me? Thanks!
  This is my tcl script:
   
  #
  # Scenario: DSR / TCP Vegas / Speed~0m/s
  # ==
  # 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)   CMUPriQueue;# 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) 60   ; # number 
of mobilenodes
  set val(rp) DSR  ;# routing 
protocol
  set val(x)   1200 ;# X 
dimension of topography  
  set val(y)600  ;# Y 
dimension of topography
  set val(stop)   900 ;# time of 
simulation end
  set val(start)   90.0;# Warm-Up   
  set val(sizePacket)512  ;# Size of TCP 
packet
  # ==
  #Configuration for Orinoco 802.11b 11Mbps PC card with -160m range
   ==
  Phy/WirelessPhy set Pt_ 0.031622777
  Phy/WirelessPhy set bandwidth_ 11Mb
  Mac/802_11 set dataRate_ 11Mb
  Mac/802_11 set basicRate_ 1Mb 
  Phy/WirelessPhy set freq_ 2.472e9
  Phy/WirelessPhy set CPThresh_ 10.0
  Phy/WirelessPhy set CSThresh_ 5.011872e-12
  Phy/WirelessPhy set L_ 1.0 
  Phy/WirelessPhy set RXThresh_ 1.15126e-10 ;# 160m range
  # ==
  # Main Program
  ==
  # Initialize Global Variables
  #
  set ns_ [new Simulator]
  set tracefile [open out.tr w]
  set namtrace [open out.nam w]
  #
  $ns_ trace-all $tracefile
  $ns_ namtrace-all-wireless $namtrace $val(x) $val(y)
  #
  # Set up topography object
  #
  set topo   [new Topography]
  $topo load_flatgrid $val(x) $val(y)
  #
  # Create God
  #
  create-god $val(nn)
  #
  # 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 OFF \
  -movementTrace OFF 

  for {set i 0} {$i  $val(nn) } {incr i} {
  set node_($i) [$ns_ node]
  $node_($i) random-motion 0  ;# disable 
random motion
  }
  #
  # Definicao das coordenadas dos nos estaticos node_(58) e node_(59)
  #
  $node_(58) set X_ 0.0
  $node_(58) set Y_ 300.0
  $node_(58) set Z_ 0.0
  #
  $node_(59) set X_ 1200.0
  $node_(59) set Y_ 300.0
  $node_(59) set Z_ 0.0
  #
  # Determinacao das coordenadas iniciais e geracao de movimentos para os 
mobilenodes;
  # Movimentos gerados pelo arquivo cenario01.ns_movements do BonnMotion
  #
  $node_(0) set X_ 645.4216080191918
  $node_(0) set Y_ 428.070689547934
  $ns_ at 0.0 $node_(0) setdest 

[ns] Rv: PLEASE: ... help with compilation

2008-06-11 Thread Douglas Restrepo



- Mensaje reenviado 
De: Douglas Restrepo [EMAIL PROTECTED]
Para: ns ns-users@isi.edu
Enviado: miércoles, 11 de junio, 2008 19:16:08
Asunto: PLEASE: ... help with compilation

Dear all.

I am trying to compile my code but always get this error.

###
num_nodes is set 101

(_o14 cmd line 1)
invoked from within
_o14 cmd addr
invoked from within
catch $self cmd $args ret
invoked from within
if [catch $self cmd $args ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error error when calling class $cls: $args $...
(procedure _o14 line 2)
(SplitObject unknown line 2)
invoked from within
_o14 addr
(eval body line 1)
invoked from within
eval $node addr $args
(default arm line 2)
invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
(procedure _o3 line 11)
(Simulator create-wireless-node line 11)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns_ node
(for body line 2)
invoked from within
for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0  ;# disable random motion
}
(file simulacion.tcl line 129)
###

this is the code what i have in the line 129

# Node creation
129: for {set i 0} {$i  $val(nn) } {incr i} {
130:set node_($i) [$ns_ node]
131:$node_($i) random-motion 0;# disable random motion
132: }


this always refer to me at the line 129, but i don't know why?

Somebody has idea about this kind of error?


i hope yours can help me.

Thankyou



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



[ns] estimate the network conditions !

2008-06-11 Thread levy david

 Hello,

I need to do the following :
a node send a packet iff he estimate that his network conditions is good
(the node want to minimize the probability of packet loss), by good
conditions i mean no congestion, no collisions ...

my questions ;
1- among the following conditions which ones i should use and how (in ns2)
-awareness of the current queue size,
-packet statistics at the routing layer (received, forwarded, dropped),
-frame statistics at the link layer (received, retransmitted, dropped),
-current random backoff timer,
-and number of collisions,
2- how to combine them to make a final decision
3- is there any others conditions ?


I appreciate your replies.

Thanks,
LEVY David.


[ns] Effect of Propagation delay and Transmission delay in interference calculation

2008-06-11 Thread Sanket Joshi

Hi,

Current wireless extensions in ns2 consider Propagation delay ( calculated
at the Net-If layer, that depends on the propagation medium ) as well as the
transmission delay ( calculated at the MAC layer, that depends on the link
bandwidth and the packet size).

I am trying to incorporate interference in the physical layer, for which I
will need to consider the packet overlap between the current and the
interfering packet. I wanted to know which of these delays ( or rather how
these delays ) are used in calculating the packet overlap. Also, in general
how these two delays effect the interference calculation in real wireless
scenario.

Thanks,
Sanket


[ns] Help with Loss Monitor

2008-06-11 Thread Nereyda Castro Gutiérrez

Hi everyone!

I`m trying to simulate a topology with two flows (CBR and FTP) and get the
metrics of QoS like packet losses, delay, jitter, bandwidth. To do so I need
help with Loss Monitor, I don´t know if I have to attach the Loss Monitor
only to the node where I want to monitor or to the source too. If I attach
the loss monitor to both, Do I need a different source??

Does the Loss Monitor only gives bytes? or it gives another variables wich I
can use to monitor for example QoS metrics.

As an alternative, would be better that I use flow monitors?

I already attach the monitor but in the trace files I get only zeros as a
result. I don´t know why.

Could anybody help with this? I ´ll apreciate that

--


[ns] HELP! how to modify gnutella for multicasting

2008-06-11 Thread Ng Lai Kwan Melissa

Hi

 

May I know how to modify gnutella/peer-agent.cc and
tlc/lib/ns.gnutella.tcl to do multicasting? How to modify codes in
smpboot.ns.tcl?  Any guideline for me? 

 

Thanks.

 

Regards,

Melissa