Skip to content

Steps for Testbed

Suraj Singh edited this page Oct 14, 2019 · 9 revisions

Steps to test PI AQM

  1. Download Ubuntu Server 18.04, paste it in scripts folder

  2. Run scripts. (requires qemu) sudo apt-get install qemu sudo apt-get install netperf ./scripts ubuntu-18.04.1-live-server-amd64.iso

  3. While setting up the QEMU ubuntu server, set all usernames and passwords as "ubuntu" run sudo apt-get update and sudo apt-get upgrade after installation is done

sudo ./close

To build kernel:

  1. Commit your changes!
  2. make clean
  3. git clean --dffv
  4. cp config file from boot to linux
  5. update Kconfig
  6. make olddefconfig
  7. make menuconfig
  8. make prepare 9 make modules_prepare (requires libelf-dev, libelf-devel)
  9. make -j 8 m=net/sched
  10. make -j <no_of_cores>?

Now kernel image should be built. to install it onto the routers:
path_to_router = ../images/router

make INSTALL_MOD_PATH=path_to_router modules_install
make INSTALL_PATH=path_to_router/boot install

To open VM in QEMU, goto ../images and type:

sudo qemu-system-x86_64 -m 1G --enable-kvm -hda router.qcow2 

in VM:

cd /lib/modules/5.0.0+
sudo find . -name *.ko -exec strip --strip-unneeded {} +
sudo update-initramfs -c -k 5.0.0
sudo update-grub
sudo update-grub2
poweroff

To view statistics while the tests are running,

sudo ip netns exec peer-1 ssh [email protected]
watch -n 0.1 "tc -s qdisc show dev ifb-r1r2-0"

ROUGH WORK: make modules_install - standard instead: make INSTALL_MOD_PATH=<path to root (incl router)> modules_install

installs the kernel: make install make INSTALL_PATH=<path to root (incl router)>/boot install

NOTE

When installing iproute2 in the VM, run

sudo apt-get install --reinstall build-essential
sudo apt-get install bison
sudo apt-get install flex

before running the make command

Deleting qdisc: sudo tc qdisc del dev ifb-r1r2-0 root

Viewing printk: dmesg - print kernel ring buffer

Clone this wiki locally