I'm going to search: host geo-positioning by IP address in the global Internet using the Binance crypto exchange as an example


The article discusses the methods of mapping network interfaces by IP address using the Binance crypto exchange API service as an example. Geo-positioning is based on distance-time models for converting round-trip time (RTT) to a distance and determining the approximate location of the network interface.


It is very important for modern electronic services to know about the geographical location of customers for the "fine" settings of their marketing processes. Different techniques of users' location are widely used, based on binding to mobile base stations and Wi-Fi access points . However, there are a number of other tasks for the solution of which it is necessary to know the geolocation not of the user himself, but of the server and its network interface. Services such as MaxMind (the undisputed industry leader) are widely known to the public (you can also read here), but on the whole, there is little open-source material on the technological issues of the global host location by its IP address. In this article, we will talk about some solutions in this subject area and share the results of our research.


Follow the details under cat.


Why know the server geolocation?


: , , . , , . , . , Binance Bitfinex Bitcoin (BTC) . , BTC . , - . .


( ) ( ) . , , , . , , .


– .



, DNS . , 2001 . Constraint-based geolocation (CBG), (RTT) echo-request ICMP ( landmarks ) . , 2/3 , RTT ICMP- landmark- . landmark-, . 100 . CBG :



CBG


- CBG , . «» . , RTT, – landmark- , . CBG IP-: Shortest ping, Topology-based geolocation (TBG), Octant, Street-level geolocation (SLG). , ( ). , , RTT. . , IP- - .


landmark- , MaxMind . IP- /24 (IPv4) . RIPE NCC . Atlas – RIPE NCC, 10 000 ( 2020 ) . - .


?


IP- . . , , . , , . , .


- . 42 VPS- - , - , ICMP echo request, RIPE.Atlas, DNS. , . , constraint-based .


MSK-IX. ( looking glass, DNS, , .). .


– Binance, . .


Binance


Binance 2017 , 2019 53 %. . , , - , ( ). . - . , .


1. Binance API- api.binance.com. . DNS :


( )DNS- api.binance.com
ZA ()143.204.17.150, 99.86.226.172, 143.204.57.198
IN ()13.227.140.169, 13.35.134.176, 13.32.35.177, 54.182.7.113, 13.33.169.165, 99.86.31.175
GB ()13.35.244.184, 13.33.51.166, 13.224.242.171, 143.204.197.178, 52.84.143.112
CN ()69.63.178.13, 31.13.81.17, 69.171.235.64, 13.226.125.168, 13.224.196.172, 74.86.151.162, 13.224.153.172
KR ( )54.192.70.140, 52.85.195.217, 99.86.177.172, 13.226.125.168, 13.225.20.170
JP ()13.35.100.178, 13.225.179.170, 13.33.11.37
US ()99.84.240.113, 216.137.45.112, 99.84.125.184, 13.249.117.184, 99.84.169.185, 52.85.83.113, 13.226.15.171, 13.224.213.171, 13.225.57.171

, Binance CDN- (content distribution network). Amazon, . CDN- Name- Amazon CNAME d3h36i1mno13q3.cloudfront.net DNS. , DNS- 25 . , IP- AS16509 AMAZON 02. IP- PTR-, Amazon:


server-143-204-17-150.jnb50.r.cloudfront.net,
server-13-227-140-169.bom50.r.cloudfront.net,
server-13-35-100-178.lax3.r.cloudfront.net-
server-99-84-240-113.ord50.r.cloudfront.net-

IP- Amazon AWS.


Binance CDN- : ( , ), / -, Amazon. API- Binance IP- , DNS. RIPE NCC «Binance» – .


API- . , , API- . CDN API- , API .


1:


  1. api.binance.com CDN Amazon.
  2. API- , CND, .
  3. Binance, , , -.

2. API- Binance. , IP- . RTT . , . .


CDN HTTP(S)- . API- CDN- RTT echo-request ICMP , RTT CDN- API- Binance:




. CND-, CND-, API- Binance. , , Shortest ping .


API- 400 . - Binance - . Binance API-. .


3. API- Binance


. – , . IP, , , API- Binance. IP . MaxMind CSV , Latitude, Longitude Accuracy_radius . , IP- , BGP. BGP- RIPEstat Data API.


, RIPE NCC BGP (IX-Internet Exchange), . BGP 5 . , , .


IP, , : 1 130 496 IPv4. :


  1. DNS PTR , - «Binance». , API-.
  2. Binance API- Test connectivity GET /api/v3/ping ( API Binance) . , CDN Amazon. : . IP- .

API- Binance, -, «» . - -, . . Binance Amazon.


4. API- Binance


: , . RTT . . , , ICMP echo-request. HTTPS. ( ) , - . , . 50 . API-, , API- 80 .



- . TCP-, . , .


IP- . . ? , .




Raccoon Security – «» , , , .


All Articles