3 ms·
Here’s one example: In the IPv4 Internet, there are about 830,000 prefixes (network addresses) announced, and the number is growing [1]. Routers at ISPs and so
by wsh 7y ago
Here’s one example:
In the IPv4 Internet, there are about 830,000 prefixes (network addresses) announced, and the number is growing [1]. Routers at ISPs and sophisticated customers maintain full (“default-free”) routing tables with at least one entry for each prefix.
These tables are used for packet forwarding decisions, so lookups have to be fast. Traditionally, a radix tree is used, but some routers use other data structures or specialized hardware.
[1] https://www.cidr-report.org/as2.0/ https://www.cidr-report.org/as2.0/
- ignoramous 7y ago> Traditionally, a radix tree is used... Here's an excellent write-up on radix-trees usage by the Linux kernel for IP routing: https://vincent.bernat.ch/en/blog/2017-ipv4-route-lookup-linux https://vincent.bernat.ch/en/blog/2017-ipv4-route-lookup-lin... Also see: https://news.ycombinator.com/item?id=22467251 https://news.ycombinator.com/item?id=22467251