Merge lp:~hloeung/ubuntu-repository-cache/ipv4-over-ipv6 into lp:ubuntu-repository-cache

Proposed by Haw Loeung
Status: Work in progress
Proposed branch: lp:~hloeung/ubuntu-repository-cache/ipv4-over-ipv6
Merge into: lp:ubuntu-repository-cache
Diff against target: 12 lines (+3/-0)
1 file modified
templates/squid-deb-proxy/squid-deb-proxy.conf (+3/-0)
To merge this branch: bzr merge lp:~hloeung/ubuntu-repository-cache/ipv4-over-ipv6
Reviewer Review Type Date Requested Status
Canonical IS Reviewers Pending
Ubuntu Repository Cache Charmers Pending
Review via email: mp+399958@code.launchpad.net

Commit message

Prefer IPv4 over IPv6 for requests to the main Ubuntu Archive servers/backends

This is to further try reduce short outages due to varied network conditions.

To post a comment you must log in.
Revision history for this message
Canonical IS Mergebot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Haw Loeung (hloeung) wrote :

See Ben's finding where there appears to be network related issues between an AWS region and us - https://pastebin.canonical.com/p/GB5rKBJjsm/

Also from a unit within that same region. IPv4:

| [hloeung@aerodent ~]$ ping -c 5 54.251.159.151
| PING 54.251.159.151 (54.251.159.151) 56(84) bytes of data.
| 64 bytes from 54.251.159.151: icmp_seq=1 ttl=49 time=153 ms
| 64 bytes from 54.251.159.151: icmp_seq=2 ttl=49 time=153 ms
| 64 bytes from 54.251.159.151: icmp_seq=3 ttl=49 time=153 ms
| 64 bytes from 54.251.159.151: icmp_seq=4 ttl=49 time=153 ms
| 64 bytes from 54.251.159.151: icmp_seq=5 ttl=49 time=153 ms
|
| --- 54.251.159.151 ping statistics ---
| 5 packets transmitted, 5 received, 0% packet loss, time 4000ms
| rtt min/avg/max/mdev = 153.173/153.239/153.318/0.354 ms

Now IPv6:

| [hloeung@aerodent ~]$ ping6 -c 5 2406:da18:395:c800:5609:e9e4:9c2d:c153
| PING 2406:da18:395:c800:5609:e9e4:9c2d:c153(2406:da18:395:c800:5609:e9e4:9c2d:c153) 56 data bytes
| 64 bytes from 2406:da18:395:c800:5609:e9e4:9c2d:c153: icmp_seq=1 ttl=240 time=174 ms
| 64 bytes from 2406:da18:395:c800:5609:e9e4:9c2d:c153: icmp_seq=2 ttl=240 time=171 ms
| 64 bytes from 2406:da18:395:c800:5609:e9e4:9c2d:c153: icmp_seq=3 ttl=240 time=171 ms
| 64 bytes from 2406:da18:395:c800:5609:e9e4:9c2d:c153: icmp_seq=4 ttl=240 time=172 ms
| 64 bytes from 2406:da18:395:c800:5609:e9e4:9c2d:c153: icmp_seq=5 ttl=240 time=174 ms
|
| --- 2406:da18:395:c800:5609:e9e4:9c2d:c153 ping statistics ---
| 5 packets transmitted, 5 received, 0% packet loss, time 4004ms
| rtt min/avg/max/mdev = 171.435/172.981/174.714/1.454 ms

That's ~20ms lower via IPv4.

Unmerged revisions

334. By Haw Loeung

Prefer IPv4 over IPv6 for requests to the main Ubuntu Archive servers/backends

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/squid-deb-proxy/squid-deb-proxy.conf'
2--- templates/squid-deb-proxy/squid-deb-proxy.conf 2021-03-02 22:24:19 +0000
3+++ templates/squid-deb-proxy/squid-deb-proxy.conf 2021-03-22 03:39:23 +0000
4@@ -55,6 +55,9 @@
5
6 collapsed_forwarding on
7
8+# prefer IPv4 over IPv6 as IPv6 still seems to be second-class citizen.
9+dns_v4_first on
10+
11 # pid
12 pid_filename /var/run/squid-deb-proxy.pid
13

Subscribers

People subscribed via source and target branches