Re: [ns] Problem NOAH with wired cum wireless scenario

2007-03-06 Thread Naxo

Yes, maybe, sorry but I am new in ns2 and I don't understand some
things. In any case, there is something I can't explain myself. Topology is
like this:

mando == core == base unimovilsoldado(0) , with === -> wired
, and  -> wireless link

If I send paquets from mando to base, it works!, and if I send from base
to soldado(0), it works too, but if I send paquets from mando to soldado(0)
the error mentioned appears. Anyone could help me?. Thanks in advance!



- Original Message - 
From: "Sérgio Alexandre" <[EMAIL PROTECTED]>
To: "Naxo" <[EMAIL PROTECTED]>
Cc: 
Sent: Tuesday, March 06, 2007 1:55 PM
Subject: {Spam?} Re: [ns] Problem NOAH with wired cum wireless scenario


> That error means that you have no routing in some point. You are trying to
> send packets for a node that has no connection.
>
> Naxo wrote:
>> Hi all !,
>>
>> I have ns-2 2.30 and I've installed recently NOAH protocol. After
>> succesful test in wireless simple scenario, I add a couple of wired
>> nodes, resulting a topology of two wired nodes, one base station node,
>> and 4 wireless nodes (one of them acts as a repeater that connects the
>> rest of the wireless nodes and base-station node). Problem comes when I
>> send traffic form a wired node to a wireless one, appearing this error:
>>
>> --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
>> _o18: no target for slot -1
>> _o18 type: Classifier/Hash/Dest
>> content dump:
>> classifier _o18
>> 0 offset
>> 0 shift
>> 2147483647 mask
>> 1 slots
>> slot 1: _o152 (Classifier/Port)
>> -1 default
>> -- Finished standard no-slot{} default handler --
>>
>> I am using cygwin in its latest release, but I think there is no
>> problem with that. If anyone could help me, I ould be very pleased.
>> Thanks in advance!!
>> I enclose my whole script, if it helps:
>>
>>   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) 4 ;# number of mobilenodes
>>   set val(bs) 1 ;# number of base station nodes
>>   set val(wired) 2 ;# number of wired nodes
>>   set val(rp) NOAH ;# routing protocol
>>   set val(x) 3000
>>   set val(y) 3000
>>   set timefin 5.0
>>   set pi 3.141592654
>>   set incrfase [expr ($pi/($val(nn)-2))]
>>
>>   #
>> ==
>>   #
>> ==
>>   # Programa Principal
>>   #
>> ==
>>   #
>> ==
>>
>> #===
>>   # Inicializacion de las variables globales y trazas
>>
>> #===
>>   set ns_ [new Simulator]
>>   $ns_ use-newtrace
>>   set tracefd [open prueba.tr w]
>>   $ns_ trace-all $tracefd
>>   set tracenam [open prueba.nam w]
>>   $ns_ namtrace-all-wireless $tracenam $val(x) $val(y)
>>   set perdidos0 [open perdidos0.tr w]
>>   set recibidos0 [open recibidos0.tr w]
>>
>> #===
>>   # Declaracion de la topografia
>>
>> #===
>>   set topo [new Topography]
>>   $topo load_flatgrid $val(x) $val(y)
>>
>> #===
>>   # Creacion del objeto God
>>
>> #===
>>   set god_ [create-god [expr $val(nn)+$val(bs)]]
>>
>> #===
>>   # Creacion del canal
>>
>> #===
>>   set canal [new $val(chan)]
>>
>> #===
>> 

[ns] Problem NOAH with wired cum wireless scenario

2007-03-06 Thread Naxo

Hi all !,

I have ns-2 2.30 and I've installed recently NOAH protocol. After succesful 
test in wireless simple scenario, I add a couple of wired nodes, resulting a 
topology of two wired nodes, one base station node, and 4 wireless nodes (one 
of them acts as a repeater that connects the rest of the wireless nodes and 
base-station node). Problem comes when I send traffic form a wired node to a 
wireless one, appearing this error:

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o18: no target for slot -1
_o18 type: Classifier/Hash/Dest
content dump:
classifier _o18
0 offset
0 shift
2147483647 mask
1 slots
slot 1: _o152 (Classifier/Port)
-1 default
-- Finished standard no-slot{} default handler --

I am using cygwin in its latest release, but I think there is no problem 
with that. If anyone could help me, I ould be very pleased. Thanks in advance!! 

I enclose my whole script, if it helps:

  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) 4 ;# number of mobilenodes
  set val(bs) 1 ;# number of base station nodes
  set val(wired) 2 ;# number of wired nodes
  set val(rp) NOAH ;# routing protocol
  set val(x) 3000
  set val(y) 3000
  set timefin 5.0
  set pi 3.141592654
  set incrfase [expr ($pi/($val(nn)-2))]

  # ==
  # ==
  # Programa Principal
  # ==
  # ==
  #===
  # Inicializacion de las variables globales y trazas
  #===
  set ns_ [new Simulator]
  $ns_ use-newtrace
  set tracefd [open prueba.tr w]
  $ns_ trace-all $tracefd
  set tracenam [open prueba.nam w]
  $ns_ namtrace-all-wireless $tracenam $val(x) $val(y)
  set perdidos0 [open perdidos0.tr w]
  set recibidos0 [open recibidos0.tr w]
  #===
  # Declaracion de la topografia
  #===
  set topo [new Topography]
  $topo load_flatgrid $val(x) $val(y)
  #===
  # Creacion del objeto God
  #===
  set god_ [create-god [expr $val(nn)+$val(bs)]]
  #===
  # Creacion del canal
  #===
  set canal [new $val(chan)]
  #===
  # Configuracion y creacion de nodos
  #===
  # Definimos los nodos cableados (puesto de mando y core network)
  set mando [$ns_ node]
  $mando set X_ 0
  $mando set Y_ 1500
  $mando set Z_ 0
  set core [$ns_ node]
  $core set X_ 50
  $core set Y_ 1500
  $core set Z_ 0
  $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 \
  -wiredRouting ON \
  -agentTrace ON \
  -routerTrace ON \
  -macTrace OFF \
  -movementTrace OFF \
  -channel $canal
  # Definimos los parametros de la antena para el puesto avanzado, 
  # asi como su cobertura (2.933km), potencia...
  Antenna/OmniAntenna set X_ 0
  Antenna/OmniAntenna set Y_ 0
  Antenna/OmniAntenna set Z_ 8
  Antenna/OmniAntenna set Gt_ 21
  Antenna/OmniAntenna set Gr_ 21
  Phy/WirelessPhy set CPThresh_ 10.0
  Phy/WirelessPhy set CSThresh_ 8.40163e-21
  Phy/WirelessPhy set Pt_ 0.281838
  Phy/WirelessPhy set freq_ 2.4e+9 
  Phy/WirelessPhy set L_ 1.0
  Phy/WirelessPhy set RXThresh_ 8.40163e-18
  $ns_ node-config -antType $val(ant) \
  -phyType $val(netif) 
  set base [$ns_ node]
  $base random-motion 0
  $base set X_ 100
  $base set Y_ 1500
  $base set Z_ 0
  $ns_ initial_node_pos $base 10

  # Definimos los parametros de la antena para la unidad movil, 
  # asi como su cobertura (1.466km), potencia...
  Antenna/OmniAntenna set X_ 0
  Antenna/OmniAntenna set Y_ 0
  Antenna/OmniAntenna set Z_ 4
  Antenna/OmniAntenna set Gt_ 9.5
  Antenna/OmniAntenna set Gr_ 9.5
  Phy/WirelessPhy set CPThresh_ 10.0
  Ph

Re: [ns] Creating Relay Station

2007-02-27 Thread Naxo


I'm with the same problem, using RTP and AODV or DSDV. If anyone could help
us!!, and I need it for my final project :-S 
-- 
View this message in context: 
http://www.nabble.com/Creating-Relay-Station-tf3290784.html#a9156884
Sent from the ns-users mailing list archive at Nabble.com.



[ns] HELP: Base Station routing??

2006-11-06 Thread Naxo


 Hi everybody,

 Does anyone know where is the piece of code that choose between
wired/wireless interface for routing packets in base stations??. I am
working with DSDV, and I want base station sends a packet through its
wireless domain although packet destination is from another domain. My
topology is like:
 BS0 - wired - BS1 - wireless - BS2 - wired - BS3
  And the problem becomes when BS1 (1.0.0) tries to send to BS3 (2.0.0),
because as its wireless domain is different from  packet destination domain,
it sends it through its wired link to BS0, and then it sends back to BS1...
making an infinite loop.

  I haver searched in dsdv/dsdv.cc, but it seems that when base station
sends packets through wired links, it does not use this code. Any suggestion
will be thankful. Thanks! 
-- 
View this message in context: 
http://www.nabble.com/HELP%3A-Base-Station-routing---tf2581706.html#a7196763
Sent from the ns-users mailing list archive at Nabble.com.



[ns] How to add a route in DSDV??

2006-10-30 Thread Naxo


Hi, I am a new new user of NS2 and I am trying to simulate a wireless
scenario using DSDV. My NS-2 is 2.29 version, and I want to know if it is
possible to add static routes in some mobile-nodes. This would be one
solution to my previous question here ["Problem with wired/wireless links"]
I think.

Thanks!  
-- 
View this message in context: 
http://www.nabble.com/How-to-add-a-route-in-DSDV---tf2538384.html#a7071892
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Problem with wired/wireless links in NS-2 2.29

2006-10-26 Thread Naxo


Hi!!

  I am trying to run this topology in ns-2 2.29:

BS0 (0.0.0)   BS3 (2.0.0)   
 | |- - -  wireless link
 | |-  wired link
 | |BS Base Station Node
BS1- - - - - -BS2
   (1.0.0)(1.0.1)


  So, the problem is that, running DSDV, when BS0 sends packets to BS3 and
viceversa, I think 
when BS1 (or BS2) see that receiver domain does not belong to its wireless
domain, it returns
packets through wired link... generating a forever loop
(BS0->BS1->BS0->BS1...) till timeout is
reached.

  If anyone could help me I'll be gratefull. Best regards.
-- 
View this message in context: 
http://www.nabble.com/Problem-with-wired-wireless-links-in-NS-2-2.29-tf2517232.html#a7021021
Sent from the ns-users mailing list archive at Nabble.com.