Skip to content

Instantly share code, notes, and snippets.

View ionosphere80's full-sized avatar

Matt Kassawara ionosphere80

View GitHub Profile
@ionosphere80
ionosphere80 / gist:05e02c7a753fad4b2964
Created January 26, 2016 00:18
MTU experiments with Open vSwitch - capture of ping with 8922 payload and DF=1, increasing VM tap interface MTU to 8950
Neutron private network VXLAN underlying interface, compute node end of overlay:
23:51:03.854079 00:1a:64:f1:e5:74 > 00:1a:64:f1:df:74, ethertype IPv4 (0x0800), length 9014: (tos 0x0, ttl 64, id 24926, offset 0, flags [DF], proto UDP (17), length 9000)
9.30.183.46.46263 > 9.30.183.47.4789: VXLAN, flags [I] (0x08), vni 144
fa:16:3e:34:67:40 > fa:16:3e:ea:22:3a, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 172.16.1.3: ICMP echo request, id 17174, seq 1, length 8930
23:51:03.854820 00:1a:64:f1:df:74 > 00:1a:64:f1:e5:74, ethertype IPv4 (0x0800), length 9014: (tos 0x0, ttl 64, id 33598, offset 0, flags [DF], proto UDP (17), length 9000)
9.30.183.47.46204 > 9.30.183.46.4789: VXLAN, flags [I] (0x08), vni 144
fa:16:3e:ea:22:3a > fa:16:3e:34:67:40, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 64, id 20224, offset 0, flags [none], proto ICMP (1), length 8950)
172.16.1.3 > 10.100.52.45: ICMP echo reply, id 17174, s
@ionosphere80
ionosphere80 / gist:dd9270aae23ad286d9cd
Last active January 26, 2016 00:18
MTU experiments with Open vSwitch - capture of ping with 8922 payload and DF=1, increasing qvb interface MTU to 8950
Neutron private network VXLAN underlying interface, compute node end of overlay:
23:49:59.680515 00:1a:64:f1:e5:74 > 00:1a:64:f1:df:74, ethertype IPv4 (0x0800), length 9014: (tos 0x0, ttl 64, id 19312, offset 0, flags [DF], proto UDP (17), length 9000)
9.30.183.46.46263 > 9.30.183.47.4789: VXLAN, flags [I] (0x08), vni 144
fa:16:3e:34:67:40 > fa:16:3e:ea:22:3a, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 172.16.1.3: ICMP echo request, id 17172, seq 1, length 8930
Security group bridge, Open vSwitch end of veth pair:
23:49:59.680939 fa:16:3e:34:67:40 > fa:16:3e:ea:22:3a, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
@ionosphere80
ionosphere80 / gist:0f0d4cf346ee81e43cbb
Created January 25, 2016 23:56
MTU experiments with Open vSwitch - capture of ping with 8922 payload and DF=1, increasing qvo interface MTU to 8950
Neutron private network VXLAN underlying interface, compute node end of overlay:
23:48:34.661091 00:1a:64:f1:e5:74 > 00:1a:64:f1:df:74, ethertype IPv4 (0x0800), length 9014: (tos 0x0, ttl 64, id 11714, offset 0, flags [DF], proto UDP (17), length 9000)
9.30.183.46.46263 > 9.30.183.47.4789: VXLAN, flags [I] (0x08), vni 144
fa:16:3e:34:67:40 > fa:16:3e:ea:22:3a, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 172.16.1.3: ICMP echo request, id 17171, seq 1, length 8930
Security group bridge, Open vSwitch end of veth pair:
23:48:34.661542 fa:16:3e:34:67:40 > fa:16:3e:ea:22:3a, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
@ionosphere80
ionosphere80 / gist:703925fbe4ae53e78445
Last active January 26, 2016 00:47
MTU experiments with Open vSwitch - capture of ping with 8922 payload and DF=1, increasing namespace interface MTUs
Router namespace, neutron public network router interface (gateway):
18:25:39.183952 00:1a:64:f1:e8:39 > fa:16:3e:70:09:54, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 10.100.52.102: ICMP echo request, id 4900, seq 1, length 8930
Router namespace, neutron private network router interface:
18:25:39.184003 fa:16:3e:34:67:40 > fa:16:3e:ea:22:3a, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 172.16.1.3: ICMP echo request, id 4900, seq 1, length 8930
@ionosphere80
ionosphere80 / gist:4e1389a34fd3a628b294
Last active January 26, 2016 00:46
MTU experiments with Open vSwitch - capture of ping with 8922 payload and DF=1
Neutron public network router interface (gateway), IPv4:
17:09:06.741464 00:1a:64:f1:e8:39 > fa:16:3e:70:09:54, ethertype IPv4 (0x0800), length 8964: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 10.100.52.102: ICMP echo request, id 4859, seq 1, length 8930
17:09:06.741542 fa:16:3e:70:09:54 > 00:1a:64:f1:e8:39, ethertype IPv4 (0x0800), length 590: (tos 0xc0, ttl 64, id 64195, offset 0, flags [none], proto ICMP (1), length 576)
10.100.52.102 > 10.100.52.45: ICMP 10.100.52.102 unreachable - need to frag (mtu 1500), length 556
(tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 8950)
10.100.52.45 > 10.100.52.102: ICMP echo request, id 4859, seq 1, length 8930
Neutron public network router interface (gateway), IPv6:
@ionosphere80
ionosphere80 / gist:5f309e7021a830246b66
Created January 25, 2016 22:33
MTU experiments with Open vSwitch - Typical ping
# ping -c 1 10.100.52.102
PING 10.100.52.102 (10.100.52.102) 56(84) bytes of data.
64 bytes from 10.100.52.102: icmp_seq=1 ttl=63 time=1.75 ms
--- 10.100.52.102 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.758/1.758/1.758/0.000 ms
# ping6 -c 1 fd00:100:52:1:f816:3eff:feea:223a
PING fd00:100:52:1:f816:3eff:feea:223a(fd00:100:52:1:f816:3eff:feea:223a) 56 data bytes
@ionosphere80
ionosphere80 / gist:23655bedd24730d22c89
Created January 25, 2016 22:31
MTU experiments with Open vSwitch - environment configuration
OpenStack bits...
# neutron net-show public
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | d81198b5-4a34-47cf-92e5-74adaf4cbe7f |
| mtu | 0 |
| name | public |
@ionosphere80
ionosphere80 / gist:85339b587bb9b2693b07
Created January 23, 2016 02:52
MTU experiments with Linux bridge - capture of ping with 8922/8902 payload and DF=1
# ping -c 1 -s 8922 -M do 10.100.52.104
PING 10.100.52.104 (10.100.52.104) 8922(8950) bytes of data.
8930 bytes from 10.100.52.104: icmp_seq=1 ttl=63 time=2.22 ms
--- 10.100.52.104 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.229/2.229/2.229/0.000 ms
# ping6 -c 1 -s 8902 -M do fd00:100:52:1:f816:3eff:fe46:acd3
PING fd00:100:52:1:f816:3eff:fe46:acd3(fd00:100:52:1:f816:3eff:fe46:acd3) 8902 data bytes
@ionosphere80
ionosphere80 / gist:ec83d0955c79b05ea381
Created January 23, 2016 02:22
MTU experiments using Linux bridge - capture of SSH hanging
Neutron public network router interface, bridge end of veth pair:
01:12:42.301951 00:1a:64:f1:e8:39 > fa:16:3e:2b:c1:fd, ethertype IPv4 (0x0800), length 66: (tos 0x0, ttl 64, id 9271, offset 0, flags [DF], proto TCP (6), length 52)
10.100.52.45.35745 > 10.100.52.104.22: Flags [.], cksum 0xe492 (correct), ack 443, win 219, options [nop,nop,TS val 22115912 ecr 612449], length 0
01:12:42.302257 00:1a:64:f1:e8:39 > fa:16:3e:2b:c1:fd, ethertype IPv4 (0x0800), length 2034: (tos 0x0, ttl 64, id 9272, offset 0, flags [DF], proto TCP (6), length 2020)
10.100.52.45.35745 > 10.100.52.104.22: Flags [P.], cksum 0xab78 (correct), seq 44:2012, ack 443, win 219, options [nop,nop,TS val 22115912 ecr 612449], length 1968
01:12:42.505665 00:1a:64:f1:e8:39 > fa:16:3e:2b:c1:fd, ethertype IPv4 (0x0800), length 338: (tos 0x0, ttl 64, id 9273, offset 0, flags [DF], proto TCP (6), length 324)
10.100.52.45.35745 > 10.100.52.104.22: Flags [P.], cksum 0xebe0 (correct), seq 2012:2284, ack 443, win 219, options [nop,nop,TS va
@ionosphere80
ionosphere80 / gist:a8d601a356ac6c6274cb
Created January 23, 2016 02:00
MTU experiments with Linux bridge - capture of typical ping
# ping -c 1 10.100.52.104
PING 10.100.52.104 (10.100.52.104) 56(84) bytes of data.
64 bytes from 10.100.52.104: icmp_seq=1 ttl=63 time=0.778 ms
--- 10.100.52.104 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.778/0.778/0.778/0.000 ms
Neutron public network router interface (gateway):