[opensource-dev] CDN

2018-03-23 Thread Nicky Perian
What is the procedure for determining which CDN node is use for viewer 
instance. Then, how do you determine which assets are present on that CDN and 
not present in the viewer?

___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] CDN

2018-03-23 Thread Henri Beauchamp
On Fri, 23 Mar 2018 14:51:30 -0500, Nicky Perian wrote:

> What is the procedure for determining which CDN node is use for viewer
> instance.

CDN server IPs are served by your DNS, the latter being updated with the
closest CDN server. I.e. if you live in one country and use a DNS hosted
in another, you get the IP of the CDN server of that other country instead
of yours...
The assumption is that people are likely to use a DNS close to their home
(usually, they use their ISP's DNS).

E.g. for me (in France) with my ISP's DNS:
# nslookup maps-cdn.agni.lindenlab.com
maps-cdn.agni.lindenlab.com canonical name = secondlife.edgesuite.net.
secondlife.edgesuite.netcanonical name = a336.d.akamai.net.
Name:   a336.d.akamai.net
Address: 88.221.83.50
.../...

# whois 88.221.83.50
inetnum:88.221.83.0 - 88.221.83.255
netname:AKAMAI-PA
descr:  Akamai Technologies
country:EU (actually, 88.221.83.0/8 is in France)
.../...

Now, via dnscrypt (with a DNS in Canada):

# nslookup maps-cdn.agni.lindenlab.com
maps-cdn.agni.lindenlab.com canonical name = secondlife.edgesuite.net.
secondlife.edgesuite.netcanonical name = a336.d.akamai.net.
Name:   a336.d.akamai.net
Address: 23.15.4.17
.../...

# whois 23.15.4.17
NetRange:   23.0.0.0 - 23.15.255.255
CIDR:   23.0.0.0/12
NetName:AKAMAI
.../...
Country:US

> Then, how do you determine which assets are present on that CDN and not
> present in the viewer?

Not sure what you mean, here... The viewer requests an asset to the CDN
server and if the asset is already cached in the latter, it is immediately
transfered to the viewer, else the CDN server asks to the upstream server
for that asset, caches it and transfers it to the viewer.

Henri.

___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges


Re: [opensource-dev] CDN

2018-03-23 Thread Oz Linden (Scott Lawrence)

On 2018-03-23 15:51 , Nicky Perian wrote:

What is the procedure for determining which CDN node is use for viewer 
instance. Then, how do you determine which assets are present on that CDN and 
not present in the viewer?
You just use the url base as supplied by the asset capabilities. There 
is DNS magic that routes you to the nearest/best CDN node.


I don't understand the second question you look in your cache and if 
you don't find it, you ask for it.


--
OZ LINDEN | Senior Director, Second Life Engineering
email or hangouts: o...@lindenlab.com  | Real 
Life: Scott Lawrence

LINDEN LAB | Create Virtual Experiences 
___
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges