1
0
Fork 0
sgp-internet-ping/README.md

33 lines
1.1 KiB
Markdown
Raw Normal View History

2018-03-20 00:06:41 +08:00
<h1 align="center">
sgp-internet-ping
</h1>
<p align="center">
2018-03-20 00:24:15 +08:00
A quick analysis of Internet latency from Singapore to the rest of the world.
2018-03-20 00:06:41 +08:00
</p>
2018-03-20 00:24:15 +08:00
<p align="center">
2018-03-20 00:25:36 +08:00
<img src="poster.png" alt="poster">
2018-03-20 00:24:15 +08:00
</p>
## Scanning the Internet
2018-03-20 00:06:41 +08:00
2018-03-20 00:24:15 +08:00
To scan the IPv4 Internet, I used the tool [`masscan`](https://github.com/robertdavidgraham/masscan) by security researcher Robert Graham. He has extensively made use of `masscan` in the security research he does. It provides latency measurements up to the millisecond.
2018-03-20 00:06:41 +08:00
2018-03-20 00:24:15 +08:00
I wrote a configuration file to run `masscan` on the entire Internet with the included exclusion list, and scan the top 5 open ports according to [speedguide.net](https://www.speedguide.net/ports_common.php). It is stored as `scan.conf`. I started the scan with:
2018-03-20 00:06:41 +08:00
```
masscan -c scan.conf
```
2018-03-21 14:26:00 +08:00
This produces the output file `scan.bin`.
2018-03-20 00:06:41 +08:00
## Categorising readings by country
To associate an IP address with a country, a geolocation lookup database must be used. I used two sources of geolocation databases; Maxmind's GeoLite2, and Webnet77's IPToCountry; to test the accuracy of either database.
```
```