29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
|
|
||
|
<h1 align="center">
|
||
|
sgp-internet-ping
|
||
|
</h1>
|
||
|
|
||
|
<p align="center">
|
||
|
A quick analysis of internet latency form Singapore to the rest of the world.
|
||
|
</p>
|
||
|
|
||
|
## Scanning the internet
|
||
|
|
||
|
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.
|
||
|
|
||
|
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:
|
||
|
|
||
|
```
|
||
|
masscan -c scan.conf
|
||
|
```
|
||
|
|
||
|
This produces the output file `scan.bin`.
|
||
|
|
||
|
## 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.
|
||
|
|
||
|
```
|
||
|
|
||
|
```
|