
本文以Binance加密交换API服务为例,讨论通过IP地址映射网络接口的方法。地理位置基于距离时间模型,用于将往返时间(RTT)转换为距离并确定网络接口的大致位置。
对于现代电子服务而言,了解客户的地理位置对于其营销过程的“精细”设置非常重要。基于绑定到移动基站和Wi-Fi接入点,广泛使用了不同的用户定位技术。但是,对于该解决方案,还有许多其他任务,有必要不知道用户本人的地理位置,而是服务器及其网络接口的地理位置。 MaxMind(无可争议的行业领导者)等服务已为公众所熟知(您也可以在这里阅读),但总体而言,有关其IP地址的有关全球主机位置的技术问题的开源材料很少。在本文中,我们将讨论该领域的一些解决方案,并分享我们的研究结果。
遵循cat下的详细信息。
为什么知道服务器的地理位置?
: , , . , , . , . , 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 :
, Binance CDN- (content distribution network). Amazon, . CDN- Name- Amazon CNAME d3h36i1mno13q3.cloudfront.net DNS. , DNS- 25 . , IP- AS16509 AMAZON 02. IP- PTR-, Amazon:
IP- Amazon AWS.
Binance CDN- : ( , ), / -, Amazon. API- Binance IP- , DNS. RIPE NCC «Binance» – .
API- . , , API- . CDN API- , API .
1:
- api.binance.com CDN Amazon.
- API- , CND, .
- 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. :
- DNS PTR , - «Binance». , API-.
- 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- . . ? , .
- GPS
- Web-
- - MSK-IX
- Constraint-Based Geolocation of Internet Hosts, Bamba Gueye, Artur Ziviani, Mark Crovella, Serge Fdida
- Revisiting Constraint Based Geo Location: Improving Accuracy through Removal of Outliers, Sameer Qazi and Muhammad Kadri
- A landmark calibration-based IP geolocation approach, Jingning Chen, Fenlin Liu1, Xiangyang Luo, Fan Zhao and Guang Zhu1
- Towards IP Geolocation Using Delay and Topology Measurements, Ethan Katz-Bassett, John P. John, Arvind Krishnamurthy, David Wetherall, Thomas Anderson, Yatin Chawathe
- An investigation of geographic mapping techniques for internet hosts, V. Padmanabhan and L. Subramanian, in ACM SIGCOMM Computer Communication Review, vol. 31. ACM, 2001, pp. 173–185
- RIPE NCC Atlas network
- Review of Different IP Geolocation Methods and Concepts Jayaprabha Bendale, Prof. J. Ratanaraj Kumar G.S.Moze College of Engineering, Balewadi, Pune-45. University Of Pune, Pune, India
- B. Wong, I. Stoyanov, E.G. Sirer, Octant: a comprehensive framework for the geolocation of Internet hosts, proceedings of USENIX NSDI conference, 2007, pp. 23–36
- Y. Wang, D. Burgener, M. Flores, A. Kuzmanovic, C. Huang, Towards street-level client-independent IP geolocation, proceedings of the 8th USENIX conference on networked systems design and implementation, 2011, pp. 27–36
- Detect Online Fraud and Locate Online Visitors
- AWS docs
- GeoIP2 City and Country CSV Databases
- RIPEstat Data API
- RIS Raw Data
- binance-official-api-docs

Raccoon Security – «» , , , .