Readit News logoReadit News
CountVonGuetzli · a year ago
It would be really cool if it didn't just show the ping, but how much worse it is compared to the theoretical optimum (speed of light in fiber optic medium, which I believe is about 30% slower than c).

I raise this because I've been in multiple system architecture meetings where people were complaining about latency between data centers, only to later realize that it was pretty close to what is theoretically possible in the first place.

eitally · a year ago
I'm under the impression that within the hyperscalers (and probably the big colo/hosting firms, too), this is known. It's important to them, and customers, especially when a customer is trying to architect an HA or DR system and needs to ensure they don't inadvertently choose a region (or even a zone that isn't physically in the same place at other zones in the same region) that has "artificially" (can be for all kinds of legitimate reasons) latency from the primary zone.

This is not an uncommon scenario. My current employer specializes in SAP migrations to cloud and this is now a conversation we have with both AWS & GCP networking specialists when pricing & scoping projects... after having made incorrect assumptions and being bitten by unacceptable latency in the past.

nullindividual · a year ago
Doesn't look like this is a ping[0]! Which is good. Rather it is a socket stream connecting over tcp/443. Ping (ICMP) would be a poor metric.

[0] https://github.com/mda590/cloudping.co/blob/8918ee8d7e632765...

sulandor · a year ago
ping is synonymous with echo-request, which is largely transport agnostic.

but you're right

dopp0 · a year ago
why 443? are you assuming ssl here? serious question, I'm not sure. But if it is, wouldn't it be hard to disregard the weight of SSL in the metric?
nabla9 · a year ago
You would have to map out the cables to do that.

Light in fiber optic cable travels roughly 70% of the speed of light ~210,000 km/s Earth's circumferences is ~40,000 kilometers. Direct route from the other side of Earth to another would be roughly 100 milliseconds, round trip 200 ms.

Bluecobra · a year ago
It’s pretty trivial to do this, any big fiber company will provide you with Google Earth KMZ files (protected by NDA) when considering a purchase. This is absolutely necessary when designing a redundant network or if you want lower latency.
ls65536 · a year ago
Since light travels at 100% the speed of light in a vacuum (by definition), I have wondered if latency over far distances could be improved by sending the data through a constellation of satellites in low earth orbit instead. Though I suspect the set of tradeoffs here (much lower throughput, much higher cost, more jitter in the latency due to satellites constantly moving around relative to the terrestrial surface) probably wouldn't make this worth it for a slight decrease in latency for any use case.
not_kurt_godel · a year ago
Cable mapping would be nice but 100ms is a meaningfully long amount of time to make straight-line comparison worthwhile
londons_explore · a year ago
clicking around that map, I don't see any examples where the latency is a long way out of line with the distance.

Obviously it's theoretically possible to do ~40% better by using hollow fibers and as-the-crow-flies fiber routing, but few are willing to pay for that.

sebzim4500 · a year ago
The 'practical' way to beat fiber optics is to use either

(i) a series of overground direct microwave connections (often used by trading firms)

(ii) a series of laser links between low altitude satellites. This would be faster in principle for long distances, and presumably Starlink will eventually offer this service to people that are very latency sensitive

plantain · a year ago
AU <-> South Africa & South America is way less than distance.
bddicken · a year ago
Author here - Interesting. Someone on X also gave this idea to me. Any good resources for how to accurately compute this?
dgemm · a year ago
The theoretical best latency would be something like speed_of_light_in_fiber/great_circle_distance_between_regions, both of which are pretty easy to find. The first is a constant you can look up, and the second you can compute from coordinates of each region pair.
liveoneggs · a year ago
IIRC about 125 miles per ms

Dead Comment

alex_suzuki · a year ago
I have red-green color blindness, which makes it hard/impossible for me to distinguish between the <100ms and >200ms lines.

This affects about 8% of male population btw, maybe you can add a color-blind mode, very nice visualization otherwise!

blauditore · a year ago
As a quick workaround, you can set a CSS filter on the whole page: Either use dev tools to put a rule `filter: hue-rotate(60deg);` on the `body` element, or simply run `javascript:void(document.body.style.filter='hue-rotate(60deg)')` from the url bar.
alex_suzuki · a year ago
Nice hack, thank you! :-)
jeffhuys · a year ago
let i = 0; setInterval(() => document.body.style.filter=`hue-rotate(${i++}deg)`, 16);

Disco mode!

(better to use requestAnimationFrame but I'm lazy atm)

bddicken · a year ago
Author here - Thanks for the suggestion Alex. From your perspective, what are some of the best ways you've seen people solve for this in the past? If you have links, please share.
alex_suzuki · a year ago
Hi! Thanks for getting back to me, appreciate it. To be honest, I‘m not an expert at all in this topic. I‘d imagine choosing a colorblind-friendly palette (see: https://davidmathlogic.com/colorblind/ ) would be an easy fix. Alternatively, or in addition, you could use dotted/dashed/straight lines to visualize the latency buckets. Might make for an interesting effect?

Also it‘s common to hide this „colorblind mode“ behind a checkbox somewhere. So you don’t have to uglify your product. :-)

bobthepanda · a year ago
not op but this is one of the classic dataviz color palette pickers https://colorbrewer2.org/#type=sequential&scheme=BuGn&n=3

https://venngage.com/tools/accessible-color-palette-generato... also seems nifty

bjornsing · a year ago
I don’t see any lines at all. Just blue dots repeating the data centers. Very confusing.
RantyDave · a year ago
You have to click one of the data centres
spott · a year ago
Tap a blue dot.
kqr · a year ago
Click dots.
eknkc · a year ago
Do you have some kind of an accessibility tool for this? Maybe a whole screen filter that changes colors in a specific way so you can distinguish them?
alex_suzuki · a year ago
No I don't. It's actually not a big deal in day-to-day life. People often go "But how the hell can you drive if you can't distinguish red from green at the stoplight?"... in reality it's more nuanced. As another comment already mentioned, perception varies across even among colorblind people. I find it hard to distinguish R/G if the colors are not fully saturated or in low-light situation. Also the brain knows that "red is on top" and "green is at the bottom" at the stoplight and thereby improves the contrast for me. ;-)

My comment was meant to raise awareness of this issue with the author of the tool. Many video games, especially the ones with some kind of HUD, minimap, etc. these days have a color-blind mode.

saagarjha · a year ago
Color-blind man here. While I think it’s important to consider color blindness when choosing colors, it’s not actually 8% of men who would have trouble distinguishing the two colors. That number is somewhat lower. Perception of color varies even across colorblind people so just because someone says it works for them doesn’t mean it will work for someone else, and vice versa.
stogot · a year ago
This is such an easy thing to overlook for those of us that don’t. Red/green tends to be a default selection, perhaps because of traffic lights?

I started putting myself in the shoes of a family member who is in the 8% and now i spend more time trying to pick better color schemes

dredmorbius · a year ago
FWIW, anyone reading on a monochrome e-ink device will have similar issues.

Those are becoming somewhat more prevalent these days.

roundstars · a year ago
There are some chrome extensions for colorblind. It might be helpful to you. Please check it out.

Dead Comment

YetAnotherNick · a year ago
It's sad that this is the top comment for the post. Many people have stopped posting their crappy work online due to harsh comments like yours. There's no easy reply to your comment.

Maybe we should be less critical specially with "Make it fit for my workflow" type comment, and more so if it is built by some random guy in their free time, and not say a project which is asking money.

sealeck · a year ago
I think this an uncharitable take – the parent comment is just proposing an improvement that would really help them given their colour-blindness (they also say they like the visualisation). Personally I find part of the reason for putting things on the internet is to allow other people to use them and obtain their feedback.
philipwhiuk · a year ago
Maybe we should be building accessible UIs by default rather than treating an actual disability as a 'my workflow' problem.
patmorgan23 · a year ago
This was not a harsh criticism. Accessibility on the web is important, especially if you want people to actually engage with what you have published.

Color blindness is nothing new, there are freely available color blind friendly color plates. Pointing out to the author that they could make a small tweak to make their work more accessible is good feedback and should continue to be given.

alex_suzuki · a year ago
Sorry it came across that way, that was not my intent at all… it was meant as a simple suggestion for a potential low-hanging fruit improvement that would benefit people like me. Clearly you did not perceive it that way.
some_random · a year ago
I totally understand being frustrated about people demanding workflow changes or huge accessibility features, but this is literally just a color swap that can be done with a touch of CSS it's really not a big deal.
rsynnott · 10 months ago
Oh, calm down. Some people aren’t aware of this, someone pointed it out.

Deleted Comment

Vinnl · a year ago
The easy reply is "thanks, I learned something today!"
adamcharnock · a year ago
Random fact: I did some planning around this for a client a while ago. While measuring the AWS latencies I found I could get approximate latencies (within 10%) by measuring the rough undersea cable length (km) and dividing by 150.

While not overly surprising, it was very consistent.

Edit: I think it was actually 155

carlio · a year ago
That reminds me of the story of the 500 mile email (https://www.ibiblio.org/harris/500milemail.html)
MrLeap · a year ago
I read this yeaaaars ago. I'm about to re-read this, but before I do, I think this was the article that installed a little goblin in my brain that screams "TTS" in instances like this. I will edit this if the article confirms/denies this goblin.

EDIT: mostly, probably, sort of.

debuggerpk · a year ago
Funny story. He must thank the department of statistics for the quick turn around.
renatovico · a year ago
I think this is because of medium velocity of light

"Through LabVIEW the speed of light in the optical fiber is calculated to be ~ 2.054 x 108 m/s corresponding to a refractive index of n ≈ 1.4606 which is a typical value" https://web.phys.ksu.edu/posters/2009/juma-Adv-Lab-S09.pdf

kqr · a year ago
There's a surprising amount of real-world modelling that can be done to satisfactory precision with just multiplication and addition.
keepamovin · a year ago
This page is such a well executed interactive map. Really enjoyed it

Is the math-planation of your random fact basically

(thanks to https://news.ycombinator.com/user?id=Hikikomori for correcting the lightspeed in fibre medium from 3e5 to 2e5 !)

- lightspeed is 2e5 km/s ~ 2e2 km/ms, so/

- length (km) / 200 (km)/ms ~ K length (km) / 200 (km)/ms, so

- latency (ms) ~ K' length (km)

Where K is approximately 1.3 (K' is 1/155) and factors in things like:

- non straight line distance

- networking overhead / switching

- both ways / measurement error

Basically?

Hikikomori · a year ago
Speed of light in a medium like fiber is about 200 000km/s.
adamcharnock · a year ago
It is possible I was measuring latency in a single direction, rather than round-trip-time. My memory is a little hazy now.
ape4 · a year ago
Right, looking at the visualization most (all?) of the red lines are the longer ones - eg North America to South Africa.
michaelnoguera · a year ago
Interesting. If you click on one of the blue circles representing a data center, it shows latencies to the other data centers. This took me a second to figure out — maybe consider adding a note along the lines of “click to select a data center” on the site?
WaxProlix · a year ago
These aren't even data centers, but aggregates. They're regions, composed of many different bits of networking and compute in various levels of abstraction - dc, edge installation, whatever.

Within these regions there's a lot of variation from zone to zone, so the methodology matters.

bddicken · a year ago
Author here. This is great feedback, thanks.
hyperpape · a year ago
I appreciate the effort to collect the data, but I think the rotating globe is an idea that looks cool, but makes the visualization harder to use. If I click on us-east-1, there's a 229ms line to...somewhere that I can't see. Meanwhile, I can't see the latency between us-east-1 and us-east-2.

Perhaps if you selected a datacenter, and it switched to a 2-d projection with that datacenter at the center of the map, it would be better?

Or perhaps augment the visualization with a table?

jumploops · a year ago
Idea: select a data center by default (i.e. us-east-1) to make it more clear.

Bonus: select the nearest data center based on the user’s IP :)

Hikikomori · a year ago
AWS provides latency numbers between regions, AZ's and within an AZ in network manager. Useful to have as a latency baseline and to see if they have any issue.

https://docs.aws.amazon.com/network-manager/latest/infrastru...

chipdart · a year ago
> AWS provides latency numbers between regions, AZ's and within an AZ in network manager.

AWS also provides dashboards that shows what regions/services are down, and history tells us those are not to be trusted for precisely the same reasons.

Hikikomori · a year ago
Afaik it also requires someone to manually set it to be down on that page. Pretty sure that nobody is entering latency numbers manually every second, but maybe they have a team for that.
bane · a year ago
Cool visualization and concept. I do wish the colors were on a ramp instead of bucketed. The reason is that it makes 100ms look much worse than 99ms, but equal to 200ms. If you click on us-east-1, for example, the latency to the data centers in Western Europe look quite different with eu-central-1 and eu-south-1 looking completely different even though the latency is only around 9ms difference and eu-north-1 and ap-south-1 look the same even though there's about a 88ms difference!

There's some comments here also wondering about the best possible latency for speed of light vs what these measurements are. The problem with this is that c isn't the propagation velocity of information through fiber, it's some velocity well under c and depends on a number of different factors, many of which are unknowable, such as repeater latency and so on. In practice, the best theoretical value is no higher than 70% of c just measuring the velocity of light in a medium as c measures light in a vacuum.

bddicken · a year ago
Author here - The ramping is a really good idea. The current visualization makes a 90ms latency look "good" when in reality, thats totally unacceptable for many applications, especially for things where multiple round-trips need to happen to fulfill a request.
jedberg · a year ago
How did you choose which datacenters to include? For example, eu-south-2 (Spain) is missing.

The reason I know is because I worked on a project that required latency to be under 30ms between datacenters, and we had to use eu-west-1 (Ireland) and eu-south-2.

Turns out that latency is closer to 42ms, mainly because there are no undersea cables between Ireland and the continent (they only go to England, then they have to route across England to get to a cable to the content).

inkyoto · a year ago
> How did you choose which datacenters to include? For example, eu-south-2 (Spain) is missing.

At the bottom of the page it says: «Data scraped from CloudPing», with the CloudPing dataset linked through. If you click through to CloudPing, you won't find «eu-south-2» in the dataset.

bddicken · a year ago
Author here - I just used what was available on https://www.cloudping.co, which is certainly missing a few. The CloudPing GitHub repo has not had a code change in 4 years. Maybe a few new regions have popped up since it was last actively worked on.
treyfitty · a year ago
How do you know there aren't any cables between Ireland and the main European continent? I'm genuinely curious where this is published.
jedberg · a year ago
You can search google for [undersea cable map] but this one is the best:

https://www.submarinecablemap.com

This will show you everything connected to Ireland:

https://www.submarinecablemap.com/country/ireland

nixass · a year ago
There are good few DCs missing on that atlas
jbkkd · a year ago
Israel (il-central-1) is also missing.
bobnamob · a year ago
Yeah the new(ish) Melbourne region is missing too
JoshTriplett · a year ago
The data is really useful, and the globe is visually impressive, but it feels like it'd be more practically useful to have a flat world map that shows all the data centers at once and makes it easier to read the lines without them getting excessively close to each other.
Tempest1981 · a year ago
bustling-noose · a year ago
A 2D world may not give you the perception of how far some of these locations really are. I think an option to switch between the two would be better.
JoshTriplett · a year ago
Draw them as great circles. And in any case, yes, switching between the cool 3D projection and a "show everything at once" 2D map would work.
schnable · a year ago
The lines between points can be drawn to show curvature, like an airplane route map.
floodle · a year ago
Agreed! It looks cool, but it's not the best visualisation to actually read the data.
bddicken · a year ago
Author here - Cool and useful is a careful balancing act.
JoshTriplett · a year ago
Completely valid. The 3D globe is cool, it's just awkward to get the data out of.