dino.opij.ac

•

Changing my router’s MAC address made downloads 27 times faster

I'd been having problems with OpenTalk calls from home for a while. Somehow I ended up fixing it by changing the MAC address of my router.

A year or so ago, factor10 moved away from Google Workspace. Privacy was one reason, but we also wanted to rely less on Google and have more control over our tools.

We moved to Mailbox (which uses OpenTalk for video calls). It mostly worked well, until I started having trouble joining calls from home. The audio and video weren’t behaving, and I couldn’t tell whether the problem was OpenTalk, my browser, or something in my own setup.

I switched from Chrome to Firefox and dug into the WebRTC diagnostics. That didn’t make me any wiser. The calls were still bad, and I didn’t have any clue what was going on. I have a baby at home, so I didn’t have much uninterrupted time to investigate. I kept meaning to get back to it, then forgetting.

One day I was visiting a customer, and we had a call scheduled through OpenTalk. I joined from the customer’s network. I’d started to think my computer might be acting up, but lo and behold, the call worked great!

Maybe there was nothing wrong with my computer after all. After the call, I made a mental note to investigate when I got home.

It was slow from my connection, not everywhere

I needed a way to compare the connections, so I looked for a file OpenTalk loaded from Mailbox and used curl to download it. I ran that test from home, then repeated it with my computer connected through a mobile hotspot (Telenor). I also asked my colleagues to download the same file. They were on Bahnhof too, but got much higher speeds than I did.

I was measuring the download speed from Mailbox, not the maximum speed of my internet connection. Here is the curl command I used:

curl -4 -sS --compressed --connect-timeout 6 --max-time 30 \
  -o /dev/null \
  -w 'remote=%{remote_ip} status=%{http_code} http=%{http_version} ttfb=%{time_starttransfer}s total=%{time_total}s bytes=%{size_download} speed=%{speed_download}B/s\n' \
  https://meet.mailbox.org/assets/index-psQwxc8A.js
ConnectionDownload speed from Mailbox
My Bahnhof connection over Wi-Fi~2–4 Mbps
My Bahnhof connection over Ethernet~2.7 Mbps
My computer via Telenor hotspot~26.7 Mbps
Colleague 1, Bahnhof~55.3 Mbps
Colleague 2, Bahnhof~39.2 Mbps

I still wasn’t sure if Bahnhof was at fault. I hadn’t tested enough other destinations, but at least I could reproduce the problem at home.

The speed test results were all over the place. macOS networkQuality reported about 792 Mbps down, and my UniFi console reported speeds close to gigabit. Bredbandskollen (a Swedish speed test), on the other hand, gave me 56-92 Mbps down and 685-775 Mbps up against its Malmö server. I had a 1000/1000 Mbps subscription. Weird!

My first guess was the route

My traceroute went through 100.120.0.3 and 46.59.117.225. My colleagues took different routes. They met mine further along, near Mailbox.

I wondered if there was a routing, peering, or capacity problem on the path to Mailbox. I sent Bahnhof the results and asked them to help work out whether the problem was with the route or my router.

Their reply included a detail I hadn’t considered: my router had a public IPv4 address, but a computer connected directly to the fiber box would get an address from Bahnhof’s carrier-grade NAT (CGNAT) network. CGNAT lets an ISP share a smaller pool of public IPv4 addresses among many customers, so the address on my computer wouldn’t be a public address reachable directly from the internet.

A direct connection was much faster

I disconnected my original UniFi Dream Machine (UDM) - the white cylinder that looks a bit like a trash can - and connected my MacBook straight to the fiber termination point with a Satechi USB Ethernet adapter.

The MacBook got a CGNAT address. I downloaded the same file from Mailbox again, this time at 71.84 Mbps:

remote=80.241.60.122 status=200 http=2
ttfb=0.125679s total=0.444983s
bytes=3996053 speed=8980237B/s

Then I reconnected the UDM and tested over Ethernet. I got 2.66 Mbps:

remote=80.241.60.122 status=200 http=2
ttfb=0.160149s total=12.038573s
bytes=3996053 speed=331937B/s

The traceroutes differed in the first few hops. Directly connected, the traffic went through addresses in the 158.174.156.x range. Through the router, it went via 46.59.117.225. Further along, the routes converged.

Naturally, I started suspecting the UDM.

MAC address and public IP

A couple of months earlier, I’d asked Bahnhof for a public IPv4 address. They asked for the MAC address of my router. I gave them the one ending with :cd (which is obviously wrong).

InterfaceMAC address
LANxx:xx:xx:xx:xx:cd
WANxx:xx:xx:xx:xx:d1

Somehow, Bahnhof must’ve figured out that the :d1 was the correct one. To confirm that, I tested the two addresses on WAN:

  • xx:xx:xx:xx:xx:d1: the UDM had a public IP and the download was slow.
  • xx:xx:xx:xx:xx:cd: it got CGNAT instead, but the download was still slow: about 2.61 Mbps.

So the public IP didn’t explain the slowdown.

The change that worked

I wanted to see if I could reproduce the problem without the UDM, so I tried cloning its WAN MAC onto the Satechi adapter. macOS wouldn’t let me:

ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address

After a few failed attempts, I tried the reverse: I put the Satechi adapter’s MAC address on the UDM’s WAN interface.

I connected my MacBook to the UDM over Wi-Fi and ran the same download. As expected, the router got a CGNAT address. The result was about 70 Mbps:

remote=80.241.60.122 status=200 http=2
ttfb=0.146133s total=0.456705s
bytes=3996053 speed=8749746B/s

I switched back to the original MAC and then back to the Satechi MAC a few times to see if I could reproduce it.

I kept the UDM, computer, Wi-Fi, file, server, curl command, and the other router settings the same.

A: Satechi MAC address

RunDownload speed
170.40 Mbps
274.80 Mbps
376.00 Mbps
Average73.73 Mbps

B: Original UniFi WAN MAC address (ending with :d1)

RunDownload speed
13.40 Mbps
27.27 Mbps
32.58 Mbps
Average4.42 Mbps

A again: Satechi MAC address

RunDownload speed
171.14 Mbps
274.37 Mbps
374.46 Mbps
469.82 Mbps
Average72.45 Mbps

Switching back to the original MAC brought the problem back.

I also tested with Bredbandskollen while the Satechi MAC was cloned onto the UDM. Over Wi-Fi, I got 438 Mbps down, 673 Mbps up, and 7.75 ms latency. The router could clearly do more than 2.6 Mbps!

Where I’m at now

Time to first byte - the time until the server starts sending data - was similar in the fast and slow tests: around 125-164 ms. The slowdown happened during the download.

I still don’t understand why changing the MAC address makes such a difference.

The faster configuration uses the Satechi adapter’s MAC address, and the UDM now gets a CGNAT address instead of the public IPv4 address I had before. I’ve sent Bahnhof my findings and test results, but they haven’t responded yet.

For now, I’m keeping the Satechi MAC on my router. I’d rather have working video calls than a public IP.

I’ll update this if I hear back or find out more.


Updates

DateUpdate
2026-12-01Just after publishing this post, I found an interesting thread on SweClockers where a problem similar to mine was discussed. Unfortunately, the thread is in Swedish.
← Go back