[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] problems with difinitions for wireless transmission routes




Hi,

I am student and I'm using NS to create an Ad Hoc environment and send some
packages from a node to other. I had used the following code to create the
agents:

set udp_ [new Agent/UDP]
$simulacao attach-agent $nodo(1) $udp_
set null_ [new Agent/Null]
$simulacao attach-agent $nodo(6) $null_
set cbr_ [new Application/Traffic/CBR]
$cbr_ set packetSize_ 1024
$cbr_ set interval_ 0.1
$cbr_ set random_ 1
$cbr_ set maxpkts_ 10000
$cbr_ attach-agent $udp_
$simulacao connect $udp_ $null_
$simulacao at 0.01 "$cbr_ start"

The nodes were "suposely" far from each other, and the code that generate
positions follows:

$god set-dist 0 1 1
$god set-dist 1 2 1
$god set-dist 2 3 1
$god set-dist 3 4 1
$god set-dist 4 5 1
$god set-dist 5 6 1
$god set-dist 6 7 1
$god set-dist 7 8 1
$god set-dist 8 9 1
$god set-dist 9 0 1
$god set-dist 1 6 5
$nodo(9) set Z_ 0.0
$nodo(9) set Y_ 700.0
$nodo(9) set X_ 340.0
$nodo(8) set Z_ 0.0
$nodo(8) set Y_ 500.0
$nodo(8) set X_ 400.0
$nodo(7) set Z_ 0.0
$nodo(7) set Y_ 360.0
$nodo(7) set X_ 600.0
$nodo(6) set Z_ 0.0
$nodo(6) set Y_ 360.0
$nodo(6) set X_ 800.0
$nodo(5) set Z_ 0.0
$nodo(5) set Y_ 500.0
$nodo(5) set X_ 1000.0
$nodo(4) set Z_ 0.0
$nodo(4) set Y_ 700.0
$nodo(4) set X_ 1060.0
$nodo(3) set Z_ 0.0
$nodo(3) set Y_ 900.0
$nodo(3) set X_ 1000.0
$nodo(2) set Z_ 0.0
$nodo(2) set Y_ 1040.0
$nodo(2) set X_ 800.0
$nodo(1) set Z_ 0.0
$nodo(1) set Y_ 1040.0
$nodo(1) set X_ 600.0
$nodo(0) set Z_ 0.0
$nodo(0) set Y_ 900.0
$nodo(0) set X_ 400.0

Whith those positions, the topology resembles an 'ring'. But, not even
reducing the transmission power from each node I can't make the packages to
pass the obvious route: nodo1->nodo2->nodo3->nodo4->nodo5->nodo6. the
transmission is going directly from the nodo1 to nodo6, without pass through
the other nodes. If anyone have a solution, please send us a reply, or an
indication of some place that we could find an answer for this. Attached I
send the files that provide the Ad Hoc environment and ring topology, and
the traffic configuration and generation of agents.

Atenciosamente,

Fausto Andrade dos Santos J�nior
Bolsista PCT - Motorola
Universidade Federal de Santa Catarina

anel.cnx

Anel.scn

Anel.tcl