This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(stringr) | |
library(reshape2) | |
# | |
# Read in BBR data | |
# | |
fields <- c("ts", "rto", "srtt", "rttvar", "mss", "pmtu", "rcvmss", "advmss", "cwnd", "bytes_acked", "segs_out", "segs_in", "data_segs_out", "send", "lastrcv", "pacing_rate", "delivery_rate", "busy", "rwnd_limited", "unacked", "retrans_total", "lost", "sacked", "reordering", "rcv_space", "rcv_ssthresh", "notsent", "minrtt", "bbr_bw", "bbr_mrtt", "bbr_pacing_gain", "bbr_cwnd_gain") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dst=$1 | |
dstport=$2 | |
while [ 1 ]; do | |
ts=$(date +%s.%N) | |
line=$(ss -eipn dst "$dst:$dstport" | grep "bbr") | |
rto=$(echo $line | grep -oP '\brto:.*?(\s|$)' | awk -F '[:,]' '{print $2}' | tr -d ' ') | |
rttvals=$(echo $line | grep -oP '\brtt:.*?(\s|$)' | awk -F '[:/]' '{print $2","$3}' | tr -d ' ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get a list of all experiment interfaces, excluding loopback | |
ifs=$(netstat -i | tail -n+3 | grep -Ev "lo" | cut -d' ' -f1 | tr '\n' ' ') | |
# Turn off offloading of all kinds, if possible! | |
for i in $ifs; do | |
sudo ethtool -K $i gro off | |
sudo ethtool -K $i lro off | |
sudo ethtool -K $i gso off | |
sudo ethtool -K $i tso off | |
sudo ethtool -K $i ufo off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the distribution table for the experimental distribution. | |
-4854 -4824 -4794 -4764 -4734 -4725 -4715 -4705 | |
-4695 -4685 -4675 -4615 -4586 -4556 -4536 -4516 | |
-4496 -4488 -4480 -4471 -4463 -4454 -4446 -4437 | |
-4407 -4377 -4348 -4318 -4198 -4179 -4159 -4139 | |
-4080 -4020 -4000 -3980 -3960 -3941 -3921 -3901 | |
-3871 -3841 -3821 -3801 -3781 -3762 -3742 -3722 | |
-3662 -3603 -3583 -3563 -3543 -3534 -3524 -3514 | |
-3504 -3494 -3484 -3477 -3469 -3462 -3454 -3447 | |
-3439 -3432 -3424 -3418 -3412 -3406 -3400 -3394 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo modprobe tcp_bbr | |
sudo tc qdisc replace dev $(ip route get 10.0.3.1 | grep -oP "(?<=dev )[^ ]+") root fq pacing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:tour="http://www.protogeni.net/resources/rspec/ext/apt-tour/1" xmlns:jacks="http://www.protogeni.net/resources/rspec/ext/jacks/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" type="request"> | |
<node xmlns="http://www.geni.net/resources/rspec/3" client_id="R1"> | |
<icon xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" url="https://portal.geni.net/images/Xen-VM.svg"/> | |
<site xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" id="Site 1"/> | |
<sliver_type xmlns="http://www.geni.net/resources/rspec/3" name="emulab-xen"> | |
<disk_image xmlns="http://www.geni.net/resources/rspec/3" name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU16-64-STD"/> | |
</sliver_type> | |
<services xmlns="http://www.geni.net/resources/rspec/3"> | |
<execute xmlns="http://www.geni.net/reso |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
import time | |
import sys | |
# Use BCM pin numbering | |
GPIO.setmode(GPIO.BCM) | |
# Define pin numbers | |
TRIG = 14 | |
ECHO = 23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
import time | |
# GPIO pin to LCD pin mapping | |
LCD_RS = 7 | |
LCD_E = 8 | |
LCD_D4 = 25 | |
LCD_D5 = 24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
sudo git clone https://github.com/dtaht/sch_cake.git | |
cd sch_cake/ | |
sudo make | |
sudo make install | |
cd /tmp | |
sudo git clone https://github.com/dtaht/tc-adv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:tour="http://www.protogeni.net/resources/rspec/ext/apt-tour/1" xmlns:jacks="http://www.protogeni.net/resources/rspec/ext/jacks/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" type="request"> | |
<node xmlns="http://www.geni.net/resources/rspec/3" client_id="Client"> | |
<icon xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" url="https://portal.geni.net/images/VM-noTxt-centered.svg"/> | |
<site xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" id="Site 1"/> | |
<sliver_type xmlns="http://www.geni.net/resources/rspec/3" name="emulab-xen"> | |
<disk_image xmlns="http://www.geni.net/resources/rspec/3" name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU16-64-STD"/> | |
</sliver_type> | |
<services xmlns="http://www.geni.net/resources/rspec/3"/> | |
<interfa |