Emulab - Sharks - HOWTO

There are a large number of sharks available for use in Testbed experiments. Unfortunately, the sharks are greatly limited in their topology. Sharks can only be used in groups of up to 8, connected to each other via a 10Mb, no delay, no loss LAN, with a single link to the rest of the topology.

To use sharks in your experiment just set them up as normal nodes. Sharks must be in a LAN and there can be at most 8 sharks in any one LAN. Use tb-set-hardware to set them to type shark.

Example:

source tb_compat.tcl

set ns [new Simulator]

set s1 [$ns node]
set s2 [$ns node]
set s3 [$ns node]
set s4 [$ns node]
set n1 [$ns node]

tb-set-hardware $s1 shark
tb-set-hardware $s2 shark
tb-set-hardware $s3 shark
tb-set-hardware $s4 shark

set slan [$ns make-lan "$s1 $s2 $s3 $s4 $n1" 10Mb 0ms]

tb-set-ip-lan $s1 $slan 1.2.3.100
tb-set-ip-lan $s2 $slan 1.2.3.101

$ns run

[Emulab.Net Home]
[Utah Network Testbed] [Flux Research Group] [School of Computing] [University of Utah]

Testbed Operations (testbed-ops@flux.cs.utah.edu)
Last modified on Mar 14, 2001