ack numbers from reverse packets
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/osascript | |
# helper function for command parameters | |
on stringSplit(str, delimiters) | |
# save delimiters to restore old settings | |
set oldDelimiters to AppleScript's text item delimiters | |
# set delimiters to delimiter to be used | |
set AppleScript's text item delimiters to delimiters | |
# create the array | |
set splitedArray to every text item of str |
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 | |
> mtr.log | |
for (( ; ; )) | |
do | |
mtr $1 -u -r >> mtr.log | |
done | |
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/env python | |
# coding=utf8 | |
# modified from https://github.com/SwordYork/NetworkTool/blob/master/WPA-PSK/TKIP/psk.py | |
# alternatively, you can refer https://github.com/lomorage/pi-gen/blob/lomorage/stage2/02-net-tweaks/files/wifi_switch.sh#L12 | |
# and use wpa_passphrase, and then replace ssid with hex binary of the SSID | |
import hmac | |
import hashlib |
-
uncomment the “deb-src” lines in /etc/apt/sources.list.
-
install packages and source
sudo apt update
sudo apt-get build-dep linux linux-image-$(uname -r)
sudo apt-get install libncurses-dev flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf
sudo apt-get install git
sudo apt-get source linux-image-$(uname -r)
on OSX:
- backup whole disk
# check micro sd card disk
$ diskutil list
# copy whole disk, /dev/disk2 is the sd card devcie, the size is 16G

use a cubic function to replace the linear window growth to improve performance in high BDP network, also achieved RTT fairness.
tcp-cubic is succssor of tcp-bic, tcp-bic use binary search to find the avialble bandwidth when congestion happens, and MAY enter an lieaner increasing state (Additive Increase)if it dropped too low, if it passed the maximum window, it goes into max probing state and will do the reverse and grow slowly initially and switch to additive increase if it can't find new maximum window nearby.
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
$ uname -a | |
Linux pi3 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux | |
$ zgrep "* firmware as of" /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | head -1 | | |
awk '{ print $5 }' | |
d4f5315cfac4e | |
On the build host fetch the equivalent R-PI firmware. | |
$ mkdir -p /embedded/raspbian/build/ |
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
''' | |
server, direction, bitrate, case, buftune, frto_response, tcp_abc | |
HZ, uplink, 15, 150 ms, 0, 0, 0 | |
HZ, uplink, 22.1, 150 ms, 0, 0, 0 | |
HZ, uplink, 20.6, 150 ms, 0, 0, 0 | |
HZ, uplink, 11.5, 150 ms, 0, 0, 0 | |
HZ, uplink, 9.83, 150 ms, 0, 0, 0 | |
HZ, uplink, 7.8, 150 ms, 0, 0, 0 | |
HZ, uplink, 14.4, 150 ms, 0, 0, 0 | |
HZ, uplink, 12.7, 150 ms, 0, 0, 0 |