Skip to content

Instantly share code, notes, and snippets.

View ionosphere80's full-sized avatar

Matt Kassawara ionosphere80

View GitHub Profile
@ionosphere80
ionosphere80 / gist:a3725066386d8ca4c6d7
Last active January 25, 2016 16:28
MTU experiments with Linux bridge - environment configuration
OpenStack bits:
# neutron net-show public
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 9a6f7baa-7ab9-4008-be66-c56ae5ef9e05 |
| mtu | 0 |
| name | public |
@ionosphere80
ionosphere80 / gist:43ff558e077acfa92cfc
Created January 18, 2016 02:50
MTU experiments - capture of ping with 1373 payload and DF=1 after moving MTU mismatch
# ping -c 1 -s 1373 -M do 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1373(1401) bytes of data.
From 10.4.31.102 icmp_seq=1 Frag needed and DF set (mtu = 1400)
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Neutron public network router interface (gateway):
20:53:46.626324 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 1415: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 1401)
@ionosphere80
ionosphere80 / gist:fd5e29d387d009611704
Created January 18, 2016 02:47
MTU experiments - capture of ping with 1372 payload and DF=1 after moving MTU mismatch
# ping -c 1 -s 1372 -M do 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1372(1400) bytes of data.
1380 bytes from 10.4.31.102: icmp_seq=1 ttl=63 time=3.35 ms
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.352/3.352/3.352/0.000 ms
Neutron public network router interface (gateway):
@ionosphere80
ionosphere80 / gist:53b14343cd23a620b0ef
Created January 18, 2016 02:43
MTU experiments - capture of ping with 1377 payload and DF=0
# ping -c 1 -s 1377 -M dont 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1377(1405) bytes of data.
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Neutron public network router interface (gateway):
20:46:34.848926 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 1419: (tos 0x0, ttl 64, id 14653, offset 0, flags [none], proto ICMP (1), length 1405)
10.4.31.1 > 10.4.31.102: ICMP echo request, id 8421, seq 1, length 1385
@ionosphere80
ionosphere80 / gist:13ebcf1b67c1286012f7
Created January 18, 2016 02:41
MTU experiments - capture of ping with 1373 payload and DF=0
# ping -c 1 -s 1373 -M dont 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1373(1401) bytes of data.
1381 bytes from 10.4.31.102: icmp_seq=1 ttl=63 time=4.29 ms
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.293/4.293/4.293/0.000 ms
Neutron public network router interface (gateway):
@ionosphere80
ionosphere80 / gist:dd2e3e24f3e94c4801a8
Created January 18, 2016 02:38
MTU experiments - capture of ping with 1377 payload and DF=1
# ping -c 1 -s 1377 -M do 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1377(1405) bytes of data.
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Neutron public network router interface (gateway):
20:32:31.178648 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 1419: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 1405)
10.4.31.1 > 10.4.31.102: ICMP echo request, id 6425, seq 1, length 1385
@ionosphere80
ionosphere80 / gist:8a7aa01db29679fbad22
Last active January 18, 2016 02:39
MTU experiments - capture of ping with 1373 payload and DF=1
# ping -c 1 -s 1373 -M do 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1373(1401) bytes of data.
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Neutron public network router interface (gateway):
20:29:16.506797 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 1415: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 1401)
10.4.31.1 > 10.4.31.102: ICMP echo request, id 5967, seq 1, length 1381
@ionosphere80
ionosphere80 / gist:89cc8e21060e8988e46c
Created January 18, 2016 02:31
MTU experiments - capture of ping with 1372 payload and DF=1
# ping -c 1 -s 1372 -M do 10.4.31.102
PING 10.4.31.102 (10.4.31.102) 1372(1400) bytes of data.
1380 bytes from 10.4.31.102: icmp_seq=1 ttl=63 time=4.44 ms
--- 10.4.31.102 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.441/4.441/4.441/0.000 ms
Neutron public network router interface (gateway):
@ionosphere80
ionosphere80 / gist:9eb0e2c0b3e780de9afc
Created January 18, 2016 02:28
MTU experiments - capture of SSH hanging
Neutron public network router interface (gateway):
20:11:55.545914 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 64, id 54057, offset 0, flags [DF], proto TCP (6), length 52)
10.4.31.1.44847 > 10.4.31.102.22: Flags [.], cksum 0xf98f (correct), ack 443, win 229, options [nop,nop,TS val 1509307390 ecr 336181], length 0
20:11:55.546716 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 1464: (tos 0x0, ttl 64, id 54058, offset 0, flags [DF], proto TCP (6), length 1450)
10.4.31.1.44847 > 10.4.31.102.22: Flags [.], cksum 0x3e6b (correct), seq 44:1442, ack 443, win 229, options [nop,nop,TS val 1509307390 ecr 336181], length 1398
20:11:55.546720 7e:27:12:8e:ab:89 > fa:16:3e:1b:0d:d3, ethertype IPv4 (0x0800), length 636: (tos 0x0, ttl 64, id 54059, offset 0, flags [DF], proto TCP (6), length 622)
10.4.31.1.44847 > 10.4.31.102.22: Flags [P.], cksum 0x5060 (correct), seq 1442:2012, ack 443, win 229, options [nop,nop,TS val 1509307390 ecr 336181]
@ionosphere80
ionosphere80 / gist:8ccd736bf3dda05a01a0
Created January 18, 2016 02:26
MTU experiments - SSH hanging
# ssh cirros@10.4.31.102
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.4.31.102 [10.4.31.102] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1