Skip to content

jonglezb/bird-bulk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bird bulk query tool

The goal of this tool is to help query the Bird routing daemon with a high volume of queries.

The library is written in Python 3 and uses a persistent connection to the local Unix socket to be efficient.

Benchmark

A simple benchmark that calls show route for 8.8.8.8 all many times and discards the replies received from Bird. The number of iterations is passed as argument:

python3 benchmark.py 100000

On a machine with a full BGP view (782642 routes), it takes around 6 seconds, which means a query rate of around 17k queries per second.

Query

Read IP addresses from stdin and print the IP itself plus route paths or list of errors. Pass the needed IP version as argument to select the right socket. Example usage:

echo 8.8.8.8 | python3 query.py v4
echo 2001:4860:4860::8888 | python3 query.py v6

About

Small tool to query the Bird routing daemon in bulk mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages