Hurricane Electric's IPv6 Tunnel Broker Forums

Tunnelbroker.net Specific Topics => Questions & Answers => Topic started by: Kyle Butt on May 17, 2023, 11:14:55 AM

Title: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: Kyle Butt on May 17, 2023, 11:14:55 AM
I have been seeing strange TCP behavior from sites served by Fastly over ipv6 from my tunnel endpoint.

The basic outline is that an HTTP connection starts, and then partway through the connection I receive a packet that is WAY out of order: in one example, sequence 38557:38842, for a connection where the last ack was the connection set up. Other times it is a similarly out of sequence packet right after the HTTP headers are returned. When the remote server comes back with the in-order response, the ipv6 flowlabel is different. Several sites that are served by Fastly are showing this behavior.

I tested the same site from 4 different VPS's that I have around the US, and didn't see the same behavior at any of them. They are in San Jose, CA; Los Angeles, CA; Kansas City, MO; and Jacksonville, FL.

In order to make sure nothing was fishy on my router, I had it capture the wrapped packets that are sent to or from that host.

I've attached a packet capture. Let me know if there's anything else that might help diagnose this.

I'm curious if other people at the Denver tunnel endpoint are seeing similar behavior.

Title: Re: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: esaym on May 21, 2023, 03:27:20 PM
Similar issue on tserv8.dal1. Annoying...
Title: Re: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: garman9000 on May 31, 2023, 04:41:39 PM
Same here in Ashburn... I disabled the tunnel for the time being as this has persisted for a few weeks now. I'm afraid bad actors are ruining this service for all of us :(
Title: Re: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: rdunkle84 on May 31, 2023, 07:32:16 PM
I see the same problem.  tserv28.waw1
Title: Re: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: bmhughes on June 03, 2023, 08:56:26 AM
From the troubleshooting I've done this has been a two stage issue. This is through the Lon1 tunnel endpoint but I've tried several and they all show the same issue, so it's a HE routing issue intially and now it appear there's a MTU issue somewhere.

1. When the problem initially occurred all traffic to fastly was being routed through Brazil this was resolved on the 18th May.

2. Whilst traffic is now correctly routing there must be an MTU mismatch somewhere along the traffic path, ICMP traffic is no issue but TCP traffic is getting dropped which really doesn't make TLS handshakes happy. I've enabled TCP MSS clamping on all traffic to Fastly (fortunately they only use 2x /32) to clamp down to 1300 which has 'fixed' the issue for me.

I'm going to do some more testing to see how big I can go before packets start dissapearing.
Title: Re: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: bmhughes on June 03, 2023, 09:11:53 AM
Circa 1370 bytes is about as high as I can get reliably.
Title: Re: Strange TCP behavior from Sites served by Fastly near Denver tunnel endpoint
Post by: Kyle Butt on June 09, 2023, 10:48:18 AM
I was able to fix it with a tweak to the MTU of the tunnel.

I set the tunnel to 1480, but more importantly, I set the ipv6 router advertisements to include the MTU. I suspect that the initial mss was derived from the MTU of my local link, and was causing problems with fastly. With the fastly routes having a smaller MTU, things go smoothly again.