How to specify the number of nodes I want without automatic optimization

8 views
Skip to first unread message

Dong Mo

unread,
May 9, 2013, 7:21:19 PM5/9/13
to emulab...@googlegroups.com
Hi all,

I am having a problem that system is doing automatic optimization based on my NS file

For example I have this setup

set ns [new Simulator]
source tb_compat.tcl

set sender1 [$ns node]
tb-set-hardware $sender1 d710

set sender2 [$ns node]
tb-set-hardware $sender2 d710

set receiver [$ns node]
tb-set-hardware $receiver d710


set lan0 [$ns make-lan "$sender1 $sender2 $receiver" 100Mb 10ms]



$ns rtproto Static

$ns run

What I wanted is to have three delay nodes but the system only gives me 2.

Even if I explicitly ask emulab to give me three delay nodes by using:

set ns [new Simulator]
source tb_compat.tcl

set bridge0 [$ns bridge]
set bridge2 [$ns bridge]
set bridge1 [$ns bridge]
tb-set-hardware $bridge0 d710
tb-set-hardware $bridge1 d710
tb-set-hardware $bridge2 d710

set sender1 [$ns node]
tb-set-hardware $sender1 d710

set sender2 [$ns node]
tb-set-hardware $sender2 d710

set receiver [$ns node]
tb-set-hardware $receiver d710


set link0 [$ns duplex-link $sender1 $bridge0 100M 10ms DropTail]
set link1 [$ns duplex-link $sender2 $bridge1 100M 10ms DropTail]
set link2 [$ns duplex-link $receiver $bridge2 100M 10ms DropTail]

set lan0 [$ns make-lan "$bridge0 $bridge1 $bridge2" 100Mb 0ms]



$ns rtproto Static

$ns run

What I can get is still 2 delay nodes

Is there any way to turn off this feature?
Thanks
-Mo

Mike Hibler

unread,
May 9, 2013, 7:46:50 PM5/9/13
to emulab...@googlegroups.com
You should be able to put:

tb-set-delay-capacity 1

in your NS file. But *please* only do this if you are having a problem with
the default, as it will (obviously) use twice as many machines and reduce
the chances that your topology will swap in.
> --
> You received this message because you are subscribed to the Google Groups "emulab-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emulab-users...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages