Pass-around Bakeoff

by: burt rosenberg
at: university of miami


AI generated 16 March 2025 by Gemini 2.0 Flash

Overview

On the Event Day, which is

Wednesday, March 19-th

have your server ready to be part of an in-class bakeoff. We will attempt to pass a packet around from each of the servers from each of the students in class.

Prepare by having your AWS ready with both the pass-around software and the SHTML webserver. We will simply redirect stdout to the netbounce-log.txt file.

Modify index.shmtl

Replace /var/www/ubuntu/index.shtml this index.shtml

Edit the file to include, where indicated,

The private IP will be automatically inserted into the webpage.

Optional: Use SSI Directive #echo var=SERVER_NAME to include the servername.

Modify passaround.c

Start and AWS instance and have it running,

Please get the Makefile-bakeoff file and add that to your passaround directory.

The run target of this makefile will pipe the stdout of passaround to the passaround log file,

    run: passaround
        cat /dev/null > $W
        @echo -n "ready to for the bake-off at time " >> $W
        date >> $W
        ./passaround -v -n 0 ${PORT} >> $W
thus be visible at http://_your_public_ip_address.

However you will need to flush the write buffers after each printf. Add the following code after every printf,

    fflush(NULL);

Also, make sure your SecurityGroup is open for both HTTP (port 80) and the bounce protocol (UDP 3333).

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Author: Burton Rosenberg
Created: 16 March 2025
Last Update: 16 March 2025