tb-set-hardware $nodea pcvwa
tb-set-hardware $nodea pcplab
tb-fix-node $nodea ron10
At present there are a fixed number of virtual nodes per wide-area
node. If there are no free virtual nodes on the physical node you
have choosen, the experiment will fail to map.
set v0 [$ns node]
set v1 [$ns node]
tb-set-hardware $v0 pcvwa
tb-set-hardware $v1 pcvwa
set l0 [$ns duplex-link $v0 $v1 10Mb 45ms DropTail]
If you use this method, an optional overlay network can be
created for you so that you can treat your wide-area nodes just
like local nodes with respect to network interfaces. However,
this only works on the FreeBSD based pcvwa nodes. The PlanetLab
nodes do not support overlay networks. For example:
tb-set-usewatunnels 1
In the above example, IP addresses 10.1.1.1 and 10.1.1.2 will be
assigned to ends of the link, and an overlay will be created
between the physical nodes so that things like "ping 10.1.1.2"
will work normally. Or, you can elect to ignore the overlays we
have created for you and use the IP addresses of the physical
nodes. You can also create a link between a wide-area node and a
local node; an overlay link will be established for this
connections as well. Note that overlays are currently implemented
using the
vtun package (UDP mode, no
compression, no encryption).
Session
option when your experiment uses
wide-area nodes, we do support the Static
and
Manual
options, although we strongly recommend that
you use the Static
option so that system sets up all
the routes for you. Routing is discussed in more detail in the
Emulab
Tutorial.
set v0 [$ns node]
set n0 [$ns node]
tb-set-hardware $v0 pcvwa
Then you will be assigned one local node and one wide-area node.
If you want to establish network connections between these two nodes,
then you should use these names (which are mailed to you when the
experiment has completed setting up).
ping v0.wa.testbed.emulab.net
ping n0.wa.testbed.emulab.net