Skip to content

Instantly share code, notes, and snippets.

@ioc32
ioc32 / ip6.addressing.sample.dot
Created June 4, 2012 18:04
IPv6 sample addressing plan Graphviz visualization
digraph unix {
node [color=lightblue2, style=filled];
"AS64496?\n2001:db8::/32";
"DC1?\n2001:db8:0TTT::/36";
"DC2?\n2001:db8:4TTT::/36";
"AS64496?\n2001:db8::/32" -> "DC1?\n2001:db8:0TTT::/36"
"AS64496?\n2001:db8::/32" -> "DC2?\n2001:db8:4TTT::/36"
"DC1?\n2001:db8:0TTT::/36" -> "INFRA?\n2001:db8:0:TXXX::/48\n2001:db8:0::/48";
"DC1?\n2001:db8:0TTT::/36" -> "VIP1?\n2001:db8:100::/46";
@ioc32
ioc32 / gist:3125931
Created July 16, 2012 23:53
RIPE NCC RPKI Validator output
sh-3.2# bin/rpki-validator
01:47:20,428 INFO Config file does not exist: File '/Users/ioc/Downloads/rpki-validator-app-2.3/data/configuration.json' does not exist
01:47:20,513 INFO Loading trust anchors...
01:47:20,941 INFO RTR server listening on 0.0.0.0/0.0.0.0:8282
01:47:21,146 INFO Welcome to the RIPE NCC RPKI Validator, now available on port 8080. Hit CTRL+C to terminate.
01:47:22,769 INFO Loaded trust anchor RIPE NCC RPKI Root from location rsync://rpki.ripe.net/ta/ripe-ncc-ta.cer, starting validation
01:47:22,807 INFO Prefetching 'rsync://rpki.ripe.net/repository/'
01:47:22,837 INFO Loaded trust anchor ARIN Test Lab from location rsync://rpki-pilot.arin.net:10873/certrepo/e8/29afd2-319c-428f-b6b0-3528a7d24dcd/1/4789Xt9H2ltHuAXdrQ6GWXWH2Ao.cer, starting validation
01:47:22,839 INFO Prefetching 'rsync://rpki-pilot.arin.net:10873/certrepo/'
01:47:23,249 INFO Retrieved 11106 entries from http://www.ris.ripe.net/dumps/riswhoisdump.IPv6.gz, last modified at 2012-07-16T20:06:01.000+02:00
@ioc32
ioc32 / movistar.ftth
Created September 5, 2012 16:22
Movistar ADSL -> FTTH
traceroute: Warning: www.youtube.com has multiple addresses; using 74.125.230.195
traceroute to youtube-ui.l.google.com (74.125.230.195), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 1.579 ms 1.091 ms 1.693 ms
2 102.red-80-58-67.staticip.rima-tde.net (80.58.67.102) 34.998 ms 34.394 ms 34.758 ms
3 41.red-80-58-94.staticip.rima-tde.net (80.58.94.41) 36.494 ms 39.971 ms 40.851 ms
4 69.red-80-58-76.staticip.rima-tde.net (80.58.76.69) 40.696 ms 39.163 ms 40.413 ms
5 so-5-0-0-0-grtmadde2.red.telefonica-wholesale.net (84.16.9.165) 36.353 ms 38.121 ms 36.496 ms
6 xe2-1-0-0-grtpartv1.red.telefonica-wholesale.net (84.16.15.182) 55.857 ms 55.744 ms 56.242 ms
7 google-xe-3-1-0-0-grtpartv1.red.telefonica-wholesale.net (84.16.6.98) 90.017 ms
google-xe-9-0-0-0-grtpartv1.red.telefonica-wholesale.net (84.16.6.106) 87.663 ms
@ioc32
ioc32 / gist:3639620
Created September 5, 2012 16:41
AS3352 -> AS51678
$ sudo ping -c100 -i 0.5 134.255.188.5
<snip>
64 bytes from 134.255.188.5: icmp_seq=97 ttl=244 time=16.074 ms
64 bytes from 134.255.188.5: icmp_seq=98 ttl=244 time=18.865 ms
64 bytes from 134.255.188.5: icmp_seq=99 ttl=244 time=18.922 ms
--- 134.255.188.5 ping statistics ---
100 packets transmitted, 100 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 15.682/18.924/66.744/5.073 ms
@ioc32
ioc32 / gist:3776405
Created September 24, 2012 15:01
ping6 -c30 -i2 -Ien1 ff02::1
PING6(56=40+8+8 bytes) fe80::ba8d:12ff:fe2b:6c38%en1 --> ff02::1
16 bytes from fe80::ba8d:12ff:fe2b:6c38%en1, icmp_seq=0 hlim=64 time=0.294 ms
16 bytes from fe80::20c:29ff:fea2:26ac%en1, icmp_seq=0 hlim=64 time=3.753 ms
16 bytes from fe80::c63d:c7ff:fe9a:c23f%en1, icmp_seq=0 hlim=64 time=4.234 ms
16 bytes from fe80::21e:c2ff:fe0b:2ec7%en1, icmp_seq=0 hlim=64 time=4.295 ms
16 bytes from fe80::21e:c2ff:fe0a:6c6d%en1, icmp_seq=0 hlim=64 time=4.335 ms
16 bytes from fe80::21b:63ff:fe91:f557%en1, icmp_seq=0 hlim=64 time=4.372 ms
16 bytes from fe80::21b:63ff:feaf:9477%en1, icmp_seq=0 hlim=64 time=4.408 ms
16 bytes from fe80::21b:b1ff:fe04:bfcc%en1, icmp_seq=0 hlim=64 time=4.848 ms
16 bytes from fe80::21e:52ff:fe76:bbe%en1, icmp_seq=0 hlim=64 time=4.900 ms
@ioc32
ioc32 / gist:4336220
Created December 19, 2012 12:03
ordns.he.net
root@inigo:/home/ioc# traceroute6 -AI 2001:470:20::2
traceroute to 2001:470:20::2 (2001:470:20::2), 30 hops max, 80 byte packets
1 2a02:2810:0:406::46 (2a02:2810:0:406::46) [AS6750] 9.331 ms 9.313 ms *
2 2a02:2810:0:406::1 (2a02:2810:0:406::1) [AS6750] 1.934 ms 2.298 ms 2.653 ms
3 2a02:2810:0:2::1 (2a02:2810:0:2::1) [AS6750] 0.939 ms 0.952 ms 0.950 ms
4 2001:1620:1000::179 (2001:1620:1000::179) [AS13030] 1.317 ms 1.324 ms 1.321 ms
5 * * *
6 * * *
7 * * *
8 * * *
ioc@inigo:~$ dig -4 @127.0.0.1 +nssearch msn.com
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns3.msft.net in 47 ms.
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns5.msft.net in 180 ms.
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns2.msft.net in 186 ms.
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns1.msft.net in 198 ms.
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns4.msft.net in 431 ms.
ioc@inigo:~$ dig -6 @::1 +nssearch msn.com
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns5.msft.net in 109 ms.
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns2.msft.net in 123 ms.
SOA ns1.msft.net. msnhst.microsoft.com. 2012122601 1800 900 2419200 900 from server ns1.msft.net in 173 ms.
traceroute to ns3.msft.net (213.199.180.53), 30 hops max, 60 byte packets
1 red406.c3-1.solucionesdinamicas.net (31.24.120.2) [AS6750] 3.165 ms 3.371 ms 3.551 ms
2 10.128.0.9 (10.128.0.9) [AS65534] 0.434 ms 0.409 ms 0.408 ms
3 r1mad1.core.init7.net (77.109.135.49) [AS13030] 0.480 ms 0.574 ms 0.664 ms
4 r1mad3.core.init7.net (77.109.140.242) [AS13030] 1.542 ms 1.568 ms 1.618 ms
5 r1vie1.core.init7.net (77.109.140.246) [AS13030] 42.837 ms 43.159 ms 43.161 ms
6 vix1.ntwk.msn.net (193.203.0.165) [AS1120] 36.108 ms 36.061 ms 36.060 ms
7 207.46.45.242 (207.46.45.242) [AS8075] 45.293 ms 45.244 ms 45.152 ms
8 xe-3-1-0-0.fra-96cbe-1a.ntwk.msn.net (207.46.42.12) [AS8075/AS8068] 43.513 ms 42.950 ms 42.982 ms
9 ge-6-0-0-0.ams-64cb-1a.ntwk.msn.net (207.46.42.39) [AS8075/AS8068] 56.937 ms 47.190 ms 47.154 ms
@ioc32
ioc32 / gist:4682088
Created January 31, 2013 10:51
l.root-servers id.server, traceroute
dtc@inigo:~$ dig -4 @l.root-servers.net ch txt id.server
; <<>> DiG 9.7.3 <<>> -4 @l.root-servers.net ch txt id.server
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13547
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
@ioc32
ioc32 / mptcpmeasurements
Created April 20, 2013 19:26
Multipath TCP deployability test results
http://multipath-tcp.org/pmwiki.php?n=Users.AboutMeasures
Script started on Sat Apr 20 13:48:04 2013
bash-3.2$ /usr/local/bin/mptcpmeasures start
[infos] download ok, launching script...
[global] Downloading the latest version
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 280M 100 280M 0 0 1140k 0 0:04:11 0:04:11 --:--:-- 1527k
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%