Skip to content

Instantly share code, notes, and snippets.

@makotom
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makotom/3a97061e6e08b842548a to your computer and use it in GitHub Desktop.
Save makotom/3a97061e6e08b842548a to your computer and use it in GitHub Desktop.
Flet's Osaka Congestion
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 3 columns, instead of 6. in line 2.
Started at,"Sun, 26 Oct 2014 18:24:00 +0900",
Ended at,"Sun, 26 Oct 2014 18:38:00 +0900",
PPP server,rtt min [ms],rtt avg [ms],rtt max [ms],rtt mdev [ms],50 M avr [Ops]
210.130.183.212,7.004,7.778,19.313,1.173,3712k
210.130.183.213,7.162,11.967,37.861,4.570,2096k
210.130.183.215,6.958,7.658,73.014,3.318,7254k
210.130.183.211,7.132,8.570,18.160,1.660,2680k
210.130.183.215,6.929,7.345,10.794,0.206,6269k
210.130.183.212,7.035,8.086,41.147,2.156,5395k
210.130.183.216,8.530,9.339,20.921,1.222,3088k
210.130.183.215,6.965,7.415,12.451,0.282,6344k
210.130.183.216,8.501,9.657,20.686,1.557,1913k
210.130.183.213,7.010,8.717,17.600,1.743,2958k
210.130.183.214,7.244,15.701,29.076,4.282,1115k
210.130.183.212,7.032,7.731,19.968,0.700,4904k
210.130.183.211,7.085,7.686,17.339,0.709,4420k
210.130.183.216,8.518,10.221,25.040,2.312,2809k
210.130.183.212,6.934,7.764,22.899,0.709,4438k
210.130.183.216,8.452,11.345,24.823,3.787,1641k
210.130.183.214,7.181,13.698,34.535,5.129,954k
210.130.183.211,7.062,7.972,20.018,0.883,3650k
210.130.183.215,6.988,7.438,14.263,0.376,7460k
210.130.183.212,7.008,10.159,23.498,3.150,3030k
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 3 columns, instead of 6. in line 2.
Started at,"Sun, 26 Oct 2014 18:42:00 +0900",
Ended at,"Sun, 26 Oct 2014 18:56:19 +0900",
PPP server,rtt min [ms],rtt avg [ms],rtt max [ms],rtt mdev [ms],50 M avr [Ops]
221.184.7.145,8.693,18.812,38.014,4.541,718k
125.206.156.11,8.407,8.763,16.116,0.314,7627k
221.184.7.170,7.020,7.565,16.306,0.639,8454k
221.184.7.168,6.914,7.393,11.682,0.278,8147k
221.184.7.171,7.029,7.635,14.744,0.462,4608k
219.160.5.165,6.972,7.564,10.948,0.417,6442k
221.184.7.166,7.032,7.708,19.240,0.694,4091k
219.160.5.178,7.010,7.346,10.897,0.203,8368k
221.184.7.173,6.954,7.396,15.892,0.345,8359k
60.37.32.205,8.395,8.767,15.793,0.376,7870k
221.184.7.175,7.049,7.410,16.020,0.336,6919k
125.206.156.15,8.391,8.940,62.031,2.400,8198k
125.206.156.7,6.955,7.362,10.201,0.224,7867k
125.206.156.12,8.411,9.867,19.038,1.817,3070k
60.37.32.207,8.442,8.898,17.226,0.421,5067k
221.184.7.138,8.401,9.108,17.205,0.732,5273k
125.206.156.8,6.954,7.510,39.200,1.567,7967k
221.184.7.166,7.036,8.013,17.766,1.422,4934k
60.37.32.208,8.360,8.780,16.708,0.354,7079k
219.160.5.175,8.433,8.907,17.288,0.472,4346k
#!/usr/bin/bash
dev=ppp0
peer=$(ip addr show $dev | grep peer | sed -e 's/^.*peer //' -e 's/\/32 scope.*$//')
echo $peer
ping -I $dev -c 1000 -f $peer | grep mdev
curl --interface $dev -o /dev/null http://v4.jp.makotom.net/random2.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment