So, bit of digging, StarLink's ASN is 14593 [1]. They show as having 302 V4 blocks and 59 V6 blocks of space [2]. Some of that space (well, most) looks to be GeoLocated in the US, but some show as other countries. Same with the V6 blocks [3]. My guess is that each V4 block is assigned to a given country or Geo Location, and same with a larger V6. Given they use CGNAT, they wont need as much V4 blocks to split out. If…
The Google IPs might be because SpaceX and Google have agreements where Starlink downlinks can use the network connectivity at Google data centers (and vice versa)?
Ask HN: How does Starlink work for IP address/ASN internationally?
21–30 of 67 posts
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#22Starlink says on their FAQ page[1] for the roaming model that if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. I think that's because they want every user to have a reasonable experience with all the websites out there that do geoIP lookups. It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by ad…
> It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by advertising each set of local IP's only at local POP's. They'd need multiple ASNs for each of these network islands then, though – is their network actually set up like that? > if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. That's an intere…
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#23Starlink says on their FAQ page[1] for the roaming model that if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. I think that's because they want every user to have a reasonable experience with all the websites out there that do geoIP lookups. It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by ad…
> It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by advertising each set of local IP's only at local POP's. They'd need multiple ASNs for each of these network islands then, though – is their network actually set up like that? > if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. That's an intere…
No they wouldn’t. They could connect to local transit/IXs in each region and just advertise the regional networks.
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#24+1, I came here out of curiosity to see what others have to say, but ended up learning something new about how roaming works.
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#25And avoiding local ISPs may be major reason to use Starlink!
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#26Starlink says on their FAQ page[1] for the roaming model that if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. I think that's because they want every user to have a reasonable experience with all the websites out there that do geoIP lookups. It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by ad…
> It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by advertising each set of local IP's only at local POP's. They'd need multiple ASNs for each of these network islands then, though – is their network actually set up like that? > if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. That's an intere…
GeoIP is a further complication not really related to the Internet. The DNS server in Houston can serve replies for packets coming from anywhere in the country; instead of looking at what network interface they arrived on, it looks in a database, decides 1.2.3.4 is in Oklahoma, and provides IP addresses for the Houston datacenter because of that. For Starlink to provide the best path in that case, it needs to understand what that database looks like; it's likely they populate it themselves in a protocol outside from any Internet machinery. (The most naive databases just look at the ASN of the source address, look at where the address of the ISP is, and decides that's the location of the IP address. But that is too naive to work, so nobody does that exactly.)
I would imagine that most of the CDNs / edge compute providers use some combination of these two data points to route traffic. I have never set anything like this up, so I'm not sure what the state of the art is. But, there are many tools that you can use, and none of them require having an extra ASN.
When I worked at an ISP we did some somewhat-sketchy management around this. The databases often have a flag for "is this address a cloud provider or a residential ISP subscriber?" We would see which of our IP ranges were considered residential (we had 0 residential customers), and then use them for IP transit subscribers that wanted to sell services like scraping Amazon or whatever. Amazon would check their database, say "oh this is just a virus-infected cable modem", and allow the traffic. If the reputation changed, we could just give the address to a transit customer that didn't want to do that kind of stuff. Just going to say, I played no part in this business decision; it existed when I arrived and existed when I left. Gotta pay back the investors somehow, I guess!
(At my next job I was on the other side of this; trying to combat free trial abuse. The databases were largely useless; what happens is that people at high-reputation ISPs get their servers hacked and the attacks end up launched from there. The big cloud providers were like 100% abuse traffic, probably because of free trials of CI systems and things like that. Ultimately, most traffic going through a US-based transit provider got "please contact sales to do a free trial". Actual residential ISPs like Comcast were totally fine; thanks Windows Update! Since it was the pandemic, everyone was working from home, and thus the business ISPs being gated behind "talk to sales" were not a big problem. Oh and BTW, I am certain that most of the abuse was from HN readers; it started the day after we mentioned our product here. That cat and mouse game was some of the most fun I've had at work!)
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#27Earlier quoted context omitted.
> It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by advertising each set of local IP's only at local POP's. They'd need multiple ASNs for each of these network islands then, though – is their network actually set up like that? > if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. That's an intere…
> They'd need multiple ASNs for each of these network islands then, though No they wouldn’t. They could connect to local transit/IXs in each region and just advertise the regional networks.
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#28Earlier quoted context omitted.
> It also gives them flexibility in the future to not act as a worldwide internet backbone for their own users traffic by advertising each set of local IP's only at local POP's. They'd need multiple ASNs for each of these network islands then, though – is their network actually set up like that? > if you roam too far, your connection will be briefly interrupted while they assign you a new IP address. That's an intere…
> They'd need multiple ASNs for each of these network islands then, though No they wouldn’t. They could connect to local transit/IXs in each region and just advertise the regional networks.
I then have 2.2.3.0/24 advertised out of Frankfurt with the same AS. Again I have transit. I can reach 1.1.1.1.
How does a packet from 2.2.2.1 reach 2.2.3.1 -— 2.2.3.0 won’t be advertised by the transit to me in NY as it thinks I’ve already got the route, after all it originated from my AS.
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#29Earlier quoted context omitted.
> They'd need multiple ASNs for each of these network islands then, though No they wouldn’t. They could connect to local transit/IXs in each region and just advertise the regional networks.
If I have AS22, advertising 2.2.2.0/24 out of NY, then I can reach 1.1.1.1, great I then have 2.2.3.0/24 advertised out of Frankfurt with the same AS. Again I have transit. I can reach 1.1.1.1. How does a packet from 2.2.2.1 reach 2.2.3.1 -— 2.2.3.0 won’t be advertised by the transit to me in NY as it thinks I’ve already got the route, after all it originated from my AS.
Re: Ask HN: How does Starlink work for IP address/ASN internationally?
#30Earlier quoted context omitted.
> They'd need multiple ASNs for each of these network islands then, though No they wouldn’t. They could connect to local transit/IXs in each region and just advertise the regional networks.
Oh, I thought it wasn't possible to announce multiple isolated networks on the same ASN without interconnecting them, since ASNs are the routing granularity of BGP?