News for hackers. Stuff that matters.
Re:Cloudflare servers don't own IPs now, so how do they conn... by xg15 on Friday November 25, 2022 @11:32AM (#33743989)
You mean, it's just luck?
Re:Cloudflare servers don't own IPs now, so how do they conn... by Brian_K_White on Friday November 25, 2022 @12:06PM (#33744455)
right? also seems like load should or at least could be changing all the time. geo or hops proximity is really the only things that decide a route? not load also?

But although I would be surprised if load were not also part of the route picker, I would also be surprised if the routers didn't have some association or state tracking to actively ensure related packets get the same route.

But I guess this is saying exactly that, that it's relying on luck and happenstance.

It may be doing the job well enough that not enough people complain, but I wouldn't be proud of it myself.

Re:Cloudflare servers don't own IPs now, so how do they conn... by remram on Friday November 25, 2022 @02:03PM (#33745681)
Anycast is implemented by BGP and doesn't take load into account in any way. You will reach the closest location announcing that address (well, prefix).
Re:Cloudflare servers don't own IPs now, so how do they conn... by ignoramous on Friday November 25, 2022 @03:15PM (#33746303)
TFA claims that Anycast is an advantage when dealing with DDoS because it helps spread the load? A regional DDoS (where it consistently hits a small set of DCs) is not a common scenario, I guess?
Re:Cloudflare servers don't own IPs now, so how do they conn... by csande17 on Friday November 25, 2022 @05:19PM (#33747422)
Basically yes. Large-scale DDoS attacks rely on compromising random servers and devices, either directly with malware or indirectly with reflection attacks. Those hosts aren't all going to be located in the same place.

An attacker could choose to only compromise devices located near a particular data center, but that would really reduce the amount of traffic they could generate, and also other data centers would stay online and serve requests from users in other places.

Re:Cloudflare servers don't own IPs now, so how do they conn... by richieartoul on Friday November 25, 2022 @02:52PM (#33746109)
Why shouldn’t they be proud of a massive system like Cloudflare that works extremely well? As a commentor below described, it’s not luck or happenstance, it’s a natural consequence of how BGP works. Seems pretty elegant to me.
Re:Cloudflare servers don't own IPs now, so how do they conn... by toast0 on Friday November 25, 2022 @05:28PM (#33747511)
Your intuition is more or less all wrong here, sorry.

Most routers with multiple viable paths pass was too much traffic to do state tracking of individual flows. Most typically, the default metric is BGP path length, for a given prefix, send packets through the route that has the most specific prefix, if there's a tie, use the route that transits the fewest networks to get there, if there's still a tie, use the route that has been up the longest (which maybe counts as state tracking). Routing like this doesn't take into account any sort of load metric, although people managing the routers might do traffic engineering to try to avoid overloaded routes (but it's difficult to see what's overloaded a few hops beyond your own router).

For the most part, an anycast operation is going to work best if all sites can handle all the forseable load, because it's easy to move all the traffic, but it's not easy to only move some. Everything you can do to try to move some traffic is likely to either not be effective or move too much.