I'm not sure exactly how it works but there is documentation on what they're calling "Connection Cost".
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/w...
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/m...
https://msdn.microsoft.com/en-us/library/windows/apps/hh7503...