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

Routing problem [CORRECT]



Hi,

1) I used gt-itm to generate a topology. The topology in my script is just a 
part of it. The problem is that the way from node 66 to 65 isn't the same 
way from 65 to 66. Anybody knows why ? the two ways have different 
end-to-end delays.

2) Also, I didn't receive any email from the mailing list since Sunday on 
the two subscribed emails, is that normal?

3) Still having problems with the search tool on Ns site "Htdig", ti was 
working fine Sunday, but since yesterday I have a "document contains no 
data" error.

thanks in advance,
Abdelhamid JOUMDANE

Here after is the script :
set SIMULATION_TIME 3.0

set ns [new Simulator]


proc finish {} {
    global ns
    $ns flush-trace
    exit 0
}

$ns trace-all [open out.tr w]
$ns namtrace-all [open out.nam w]

for {set i 60} {$i < 69} {incr i} {
    set n($i) [$ns node]
}


# Load topology file and generate it
$ns duplex-link $n(60) $n(62) 10M 90ms  DropTail
$ns duplex-link $n(60) $n(65) 10M 170ms DropTail
$ns duplex-link $n(60) $n(67) 10M 340ms DropTail
$ns duplex-link $n(60) $n(68) 10M 130ms DropTail
$ns duplex-link $n(61) $n(63) 10M 100ms DropTail
$ns duplex-link $n(61) $n(64) 10M 40ms  DropTail
$ns duplex-link $n(61) $n(66) 10M 170ms DropTail
$ns duplex-link $n(61) $n(67) 10M 370ms DropTail
$ns duplex-link $n(62) $n(63) 10M 100ms DropTail
$ns duplex-link $n(62) $n(66) 10M 210ms DropTail
$ns duplex-link $n(62) $n(68) 10M 150ms DropTail
$ns duplex-link $n(63) $n(67) 10M 340ms DropTail
$ns duplex-link $n(65) $n(67) 10M 170ms DropTail


# Define source agents and sinks
    set recv(66) [new Agent/Null]
    set recv(65) [new Agent/Null]

    $ns attach-agent $n(66) $recv(66)
    $ns attach-agent $n(65) $recv(65)

    set cbr(66) [new Agent/CBR]
    set cbr(65) [new Agent/CBR]
    $cbr(66) set packetSize_ 500
    $cbr(66) set interval_ 0.05
    $cbr(65) set packetSize_ 500
    $cbr(65) set interval_ 0.05

    $ns attach-agent $n(66) $cbr(66)
    $ns attach-agent $n(65) $cbr(65)

# Connect agents
    $ns connect $cbr(65) $recv(66)
    $ns connect $cbr(66) $recv(65)

# Color for the two nodes

    $n(66) color "red"
    $n(65) color "red"


$ns at 0.5 "$cbr(66) start"
$ns at 0.5 "$cbr(65) start"

$ns at 2.5 "$cbr(66) stop"
$ns at 2.5 "$cbr(65) stop"


$ns at $SIMULATION_TIME "finish"

$ns run

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com