If you are new to the Testbed, simply click on the "Start Project" link on the Emulab Home Page. You will need to fill in the forms with your personal information and information about the project. Then click on the "Submit" button. Within a few days you will be contacted via email with an approval message. More information about starting projects can be found in Authorization Page.
If you already have an Emulab account, and wish to start a second project, first log into the Web Interface. Then select the "Start Project" link; all of the personal information will already be filled in. You will need to complete just the project information section.
If you are new to the Testbed, simply click on the "Join Project" link on the Emulab Home Page. You will need to fill in the form with your personal information, and provide the name of the project you are trying to join (typically, the Project Leader will have told you the name of the project). Then click on the "Submit" button, and wait for the project leader to approve you. When approved you will receive an email message saying so, and you can then log into the Testbed.
Once you have been approved to start (or join) your first project, you will be able to log into Emulab's user machine, users.emulab.net. We require that all Emulab users use ssh. For example, if your Emulab account name is "joe", then you would do:
ssh users.emulab.net -l joe
Your password starts out the same as the password you initially supplied to the Start (or Join) web page. The skeleton dot files that are provided to all new Emulab users will contain /usr/testbed/bin in the PATH setting. This directory holds a number of utilities and programs that some (but not all) Emulab users will need in order to conduct experiments.
Yes. You may join (and/or start) as many projects as you like, subject to Emulab administrative policies.
Yes. You can change your Emulab Web password and your Emulab login password (the password you use to log into users.emulab.net, as well as nodes in your experiments). To change your Web password, simply click on the "Update User Information" in the menu to your left, and then enter your new password in the location provided. To change your login password, use the unix passwd utility when logged into users.emulab.net.
Yes. To designate a TA, you must first create a project group. A project group is a lot like a unix group, and in fact unix groups is the mechanism used to protect members of one group from members of another group. When you create a group, you designate a group leader who is responsible for approving users who apply to join the group. Group leaders may also terminate experiments that have been created by members of the group. As Project Leader, you may also shift members of your project in and out of your project's groups as you like, and you are automatically a member of all groups within your project. As a convenience, all new projects are created with one new group, termed the default group. As its name implies, whenever the group is left unspecified in a form, it defaults to the project group (this allows you to create a project without any sub groups at all; new members join the default group, new experiments are created in the default group, etc.).
Project groups are created via the Project Information link at your left. Simply go to the project page in which you want to create a group, and look for the "Create New Group" link. More information on project groups is available via the Emulab Documentation page in the Groups Tutorial.
Yes, we have an extensive tutorial on using the Testbed.
You can ask for as many nodes as are currently available! You can click on the "Node Reservation Status" link at your left to see how many nodes are currently free. If you ask for more than are currently available, your experiment will be rejected (you will receive email noification shortly after you submit your NS file to the web interface).
We urge all new Emulab users to begin with a small 3-4 node experiment so that you will become familiar with NS syntax and the practical aspects of Emulab operation.
Yes. Project leaders get root access to all of the nodes in all of
the experiments that are running in their project. Project members
get root if their project leader grants them root access, when the
leader approves the group membership request.
Root privileges are granted via the
sudo command. The
this in more detail.
Yes. Each of the PCs has its own serial console line that you can interact with using the unix tip utility. To "tip" to "pc1" in your experiment, ssh into users.emulab.net, and then type tip pc1 at the unix prompt. You may then interact with the serial console.
The Sharks also have serial console lines, but because of the limited number of serial ports available on users.emulab.net, only one Shark, the last or "eighth", on each shelf has a console line attached. To tip to that shark, you would type tip shXX at the unix prompt, where "XX" is the shark shelf number. The shark shelf number is the first digit in the name. Using shark sh16-8 as an example, the shelf number is sixteen, and the number of the node on the shelf is eight.
Yes. Each of the PCs is independently power controlled. If your node becomes wedged, or otherwise unresponsive, you can use the node_reboot command, as discussed in the Emulab Tutorial.
The Sharks are also power controlled, but because of the limited number of power ports available, the entire shelf of 8 sharks is on a single controller. The node_reboot does its best to cleanly reboot individual sharks, but if a single shark is unresponsive, the entire shelf will be power cycled.
Each project has its own directory, rooted at /proj, which is available via NFS to all of the nodes in experiments running in that project. For example, when the "RON" project was created, a directory called /proj/RON was also created. This directory is owned by the project creator, and is in the unix group "RON." Its permission (mode) is 770; read/write/execute permitted by the project creator and by all of the members of the project RON, but protected against all access by people outside the RON project.
Project members are encouraged to store any files needed by their experiments in the corresponding /proj project directory.
Yes. All of the files in your home directory on /users, and all of the files in your project directory in /proj are filesaved. While we can restore lost files in an emergency, we encourage you to back up critical data on your own to avoid (possibly long) delays in conducting your experiments.
No! The nodes in your experiment are not filesaved. Any changes
you make to the local filesystems will be lost if the event of a
disk failure. We plan to provide a mechanism for experimenters to
create snapshots of their node state, but that is not done yet. In
the meantime, any files that must not be lost should be stored in
the project directory (/proj/
Swapping is when you (or us) temporarily swap your experiment out, releasing all of the nodes in the experiment. Your experiment is still resident in the Emulab database, and you can see its status in the web interface, but no nodes are allocated. Once an experiment is swapped out, you can swap it back in via the web interface by going to the Experiment Information page for your experiment, and clicking on the swapin option.
Be aware that we do not currently save any files that you may have placed on your nodes. When your experiment is swapped back in, you will likely get different nodes, and with fresh copies of the disk images. For that reason, you should not swap your experiment out unless you make arrangements to save and restore any state you need.
Please see the Hardware Overview page for a description and count of the computers that comprise the Testbed.
If you click on the "Node Reservation Status" link in the menu to your left, you will see a summary of the number of nodes (by type) that are currently available, followed by a listing of the reservation status of each individual node.
Yes! You can specify the delay, bandwidth, and packet loss rate between any two nodes in your topology. Bandwidth and delay are specified in the NS duplex-link statement, while packet loss rate is specified with the Emulab tb-set-link-loss extension to NS. You may also specify delay, bandwidth, and packet loss rate between nodes in a regular LAN.
Please see the Software Overview page for a description of the Operating Systems that can be run on each of the Testbed nodes.
When a choice of OS is available, you may specify which one you prefer for each node in the NS file using the Emulab tb-set-node-os extension to NS. When your experiment is configured, the appropriate disk image will be loaded on your nodes, and the selected operating system will boot up on each.
Yes! If have an RPM (or more than one) that is appropriate for loading on the OS you have selected, you can arrange to have them loaded automatically when your experiment is configured. The Emulab NS extension tb-set-node-rpms is used in the NS file to specify a list of RPMS to install. You may specify a different list for each node in the experiment. When the node first boots after the experiment is configured, each of the RPMs will be installed (but only RPMs that have not already been installed).
Yes! You can arrange to run a single program or script when your node boots. The script is run as the UID of the experiment creator, and is run after all other node configuration (including RPM installation) has completed. The exit status of the script (or program) is reported back and is made available for you to view in Experiment Information link in the menu at your left. The Emulab NS extension tb-set-node-startup is used in the NS file to specify the path of the script (or program) to run. You may specify a different program for each node in the experiment.
You can use command mentioned above (tb-set-node-startup) in your NS file to specify a simple script in your home directory that will do this. For instance, if I had a node called router, and wanted to turn on routing in it, I would add these two lines to my NS file:
tb-set-node-os $router FBSD-STD tb-set-node-startup $router /users/myname/router-startupThat would cause router to boot FreeBSD, and call my router-startup script, which should look like this:
#!/bin/sh /usr/site/bin/su1 sysctl -w net.inet.ip.forwarding=1 /usr/site/bin/su1 sysctl -w net.inet.ip.fastforwarding=1 exit 0That will make sure that routing gets turned on when my router node boots. Now say I have a client on one side of the router, and a server on the other side, and I want to establish a route from the client to the server through the router, and vice versa. I would add these lines to my NS file:
tb-set-node-startup $client /users/myname/clientroutecmd tb-set-node-startup $server /users/myname/serverroutecmdThis will have the client and the server each call a small script to set up routes. To add a route (on client) to interface 0 of the server through router, I would run a script called clientroutecmd that looks like this (for a node running FreeBSD):
#!/bin/sh sudo route add server-0 router exit 0Similarly, to add a route (on server) to interface 0 of the client through router, I would use this serverroutecmd script:
#!/bin/sh sudo route add client-0 router exit 0That should do it. We now will have a router node that really routes and forwards packets, and a client and a server that know how to talk to each other through a gateway router.
If your application requires synchronization to determine when all of the nodes in your experiment have started up and are ready to proceed, then you can use the Testbed's ready bits mechanism. The ready bits are really just a way of determining how many nodes have issued the ready command, and is returned to the application as a simple N of M string, where N is the number that have reported in, and M is the total number of nodes in the experiment. Applications can use this as a very simplistic form of barrier synchronization, albeit one that can be used just once and one that does not actually block!
Yes! You can run your own OS on any of the PCs (the Sharks do not support custom operating systems as this time, however you can run OSKit kernels on the PCs or the Sharks). Each of the PCs is partitioned so that the 4th DOS slice (about 6GB) is unused and available to be loaded with whatever OS you want to run. The only requirement is that your image contain a proper DOS boot record in the first sector (first sector of the 4th DOS slice) which can be invoked by the DOS Master Boot Record in the first sector of the disk. There are other minor requirements which are detailed in the Custom OS documentation page. The procedure for creating and installing your custom OS are also described in this document.
Yes. Emulab blocks all of the low numbered ports (ports below 1024), with the exception of port 22 (Secure Shell). This is for the protection of experimentors, as well as to ensure that an errant application cannot become the source of a Denial of Service attack to sites outside of Emulab. If your application requires external access to other low numbered ports, please contact us to make special arrangements.