CIDR cleanup
Job Snijders
job at ntt.net
Fri Oct 2 10:03:41 UTC 2020
On Thu, Oct 01, 2020 at 02:15:01PM -0300, Marcos Manoni wrote:
> Check https://github.com/job/aggregate6 (thank you, Job)
Marco Marzetti (PCCW) wrote an even faster compression tool!
https://github.com/lamehost/aggregate-prefixes
Both these python implementations are meant as replacements for ISC's
vintage 'aggregate' Unix utility, with the notable difference that they
also support IPv6.
Example:
job at bench ~$ pip3 install aggregate-prefix
job at bench ~$ wc -l dfz_ipv4
810607
job at bench ~$ cat dfz_ipv4 | time aggregate-prefixes - | wc -l
141645
1m40.17s real 1m37.39s user 0m01.60s system
Compressing the whole IPv4 DFZ prefix list takes only 100 seconds.
Kind regards,
Job
More information about the NANOG
mailing list