Skip to content

Instantly share code, notes, and snippets.

@ffund
Last active August 3, 2016 21:50
Show Gist options
  • Save ffund/074930c28f141fe8f9140f2a1c795707 to your computer and use it in GitHub Desktop.
Save ffund/074930c28f141fe8f9140f2a1c795707 to your computer and use it in GitHub Desktop.
Script for reproducing the results of "Which Adaptation Logic? An Objective and Subjective Performance Evaluation of HTTP-based Adaptive Media Streaming Systems" http://arxiv.org/abs/1606.00341
iface=$(route -n | grep 10.10.1. | awk '{print $8}')
tc qdisc del dev "$iface" root
echo "Startup sleep"
sleep 5
tc qdisc add dev "$iface" root handle 1:0 tbf rate 750kbit buffer 7500 latency 70ms
tc qdisc add dev "$iface" parent 1:0 handle 10: netem delay 80ms
echo "switch 750"
sleep 60
tc qdisc change dev "$iface" root handle 1:0 tbf rate 350kbit buffer 3500 latency 70ms
echo "switch 350"
sleep 90
tc qdisc change dev "$iface" root handle 1:0 tbf rate 2500kbit buffer 25000 latency 70ms
echo "switch 2500"
sleep 120
tc qdisc change dev "$iface" root handle 1:0 tbf rate 500kbit buffer 5000 latency 70ms
echo "switch 500"
sleep 90
tc qdisc change dev "$iface" root handle 1:0 tbf rate 700kbit buffer 7000 latency 70ms
echo "switch 700"
sleep 30
tc qdisc change dev "$iface" root handle 1:0 tbf rate 1500kbit buffer 15000 latency 70ms
echo "switch 1500"
sleep 30
tc qdisc change dev eth0 "$iface" handle 1:0 tbf rate buffer 25000 latency 70ms
echo "switch 2500"
sleep 30
tc qdisc change dev eth0 "$iface" handle 1:0 tbf rate buffer 35000 latency 70ms
echo "switch 3500"
sleep 30
tc qdisc change dev eth0 "$iface" handle 1:0 tbf rate buffer 20000 latency 70ms
echo "switch 2000"
sleep 30
tc qdisc change dev eth0 "$iface" handle 1:0 tbf rate buffer 10000 latency 70ms
echo "switch 1000"
sleep 30
tc qdisc change dev eth0 "$iface" handle 1:0 tbf rate buffer 5000 latency 70ms
echo "switch 500"
sleep 220
echo "end script"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment