CDN location issue

Hi,

The 70% of the traffic of my site is from an specific country in the South of South America.
The origin server is in Miami, US.

However my pages are served from servers in San Francisco Califonia;

  • 172.67.162.253
  • 104.21.49.124
    Is there a workaround to have the site delivered from a near place?

Example of tracert;

 6    39 ms    23 ms    27 ms  192.168.88.186
  7    40 ms    20 ms    12 ms  192.168.88.129
  8    15 ms    27 ms    19 ms  192.168.88.165
  9    14 ms    28 ms    16 ms  172.30.13.1
 10    24 ms    37 ms    20 ms  192.168.92.13
 11    51 ms    26 ms    16 ms  192.168.92.5
 12    20 ms    22 ms    40 ms  201.222.59.137
 13    20 ms    20 ms    19 ms  host134.181-15-194.telecom.net.ar [181.15.194.134]
 14    24 ms    16 ms    54 ms  host61.181-88-175.telecom.net.ar [181.88.175.61]
 15    30 ms    31 ms    36 ms  host166.181-89-3.telecom.net.ar [181.89.3.166]
 16     *        *        *     Tiempo de espera agotado para esta solicitud.
 17    49 ms    53 ms     *     host234.181-96-113.telecom.net.ar [181.96.113.234]
 18    54 ms    91 ms    41 ms  ae13.baires3.bai.seabone.net [195.22.220.56]
 19   155 ms   157 ms   168 ms  ae0.miami14.mia.seabone.net [89.221.41.1]
 20   195 ms   220 ms   204 ms  cloudflare.miami14.mia.seabone.net [89.221.41.149]
 21   166 ms   160 ms   189 ms  172.70.52.2
 22   156 ms   162 ms   162 ms  104.21.49.124

How are you determining that? If you use Whois on any Cloudflare address they will return the address of a Cloudflare office (their HQ is in San Francisco). Cloudflare use the same addresses in all of their POPs, and use Anycast routing to get the request sent to the closest POP. You can identify which POP served a given request by looking at the cf-ray header. The last three characters are the POP that served the request. You can find a list of all the POPs and the airport codes on cloudflarestatus.com

Routing does not always return the physically closest POP, and sometimes your ISP will send the requests to a POP that is further away. (Cloudflare will also prioritise paid plans if a POP is is experiencing heavy load)

1 Like

Thanks for your valuable help,
It’s unlikely that Cloudways implement changes in server logs.

However I find the

curl -svo /dev/null http://www.example.com/

In the result I see the following

< Server: cloudflare
< CF-RAY: 6c11b86c6fcb127f-MIA

That refers to MIA which is Miami.
According to this, the site is delivered from the East coast of the US.

This is still an issue

Maybe but there are dozens of Cloudflare servers near traffic locations, so it’s weird.

Should I ask for Cloudflare support?

Give this test a try:
https://cloudflare-test.judge.sh/

Thanks Sdayman

surdelsur.com

MIA

MIAMI INTERNATIONAL AIRPORT

IPV4

HTTP/2

FIRST PING:
 932

SECOND PING:
174

There is not explanation on the page
It happens because is a free plan?
The sites in the free plan are served from MIA and EZE.

Network latency should not go over 150 ms. This is the latency in one direction meaning the round trip time (RTT) would be 300 ms.

The ping time is ok?
Thanks

Is Cloudflare compatible with other CDN?

It sounds like your domain isn’t the only one affected by your ISP’s routing. About how many are going to MIA, and how many to EZE?

thanks for your answer:

MIA 5/7
EZE 2/7

I still think it’s an ISP routing issue. You might start looking at the IP addresses of those seven sites to see if there is any link between IP address and Colo.

How do the ping times compare?

This is an example:

MIA:

FIRST PING:

884

SECOND PING:

180

EZE

FIRST PING:

431

SECOND PING:

103

Second ping is much closer, but first ping isn’t so great. Here’s more info on how routing works:

I checked the list of the sites:
1.None of them is meant for traffic from South America,
2.They are sites in English, and one for Italian traffic.
3.The 2 sites that have EZE are one in english .com and the other for italian traffic domain.it
4.They are all from San Francisco California IP except one that is from Amsterdam.

Trace From the same IP:

CLOUDFLARE
https://www.cloudflare.com/cdn-cgi/trace

fl=246f13
h=www.cloudflare.com
ip=myIP
ts=1640117883.479
visit_scheme=https
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
colo=EZE
http=http/2
loc=AR
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off

MY SITE
https://mysite.com/cdn-cgi/trace

fl=368f62
h=surdelsur.com
ip=myIP
ts=1640118174.97
visit_scheme=https
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
colo=MIA
http=http/2
loc=AR
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off

I am using Ezoic CDN too.

I want to try what happens if I dont have Cloudflare.
If I gray the Clouds, to pause Cloudflare:
That means that the request will be directly to Ezoic servers, and Ezoic servers will deliver the pages?
OR
I am only avoiding Cloudflare caching?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.