BMP Adj-RIB-Out post-policy support
Maria Matejka
maria.matejka at nic.cz
Wed Jan 14 15:22:47 CET 2026
Dear Matthieu,
thank you for your patch!
On Wed, Jan 14, 2026 at 07:50:29AM +0000, Matthieu Gouel via Bird-users wrote:
> Currently, the (preliminary) BMP protocol implementation in BIRD does not support ADJ-RIB-Out monitoring. Only ADJ-RIB-In pre- and post-policy are supported at the moment.
>
> I have implemented support for ADJ-RIB-Out post-policy monitoring, which is relatively straightforward to add. The proposed implementation is available here:
>
> https://github.com/CZ-NIC/bird/compare/master...matthieugouel:bird:bmp-adj-rib-out
>
> I have not implemented ADJ-RIB-Out pre-policy yet, as this would require more intrusive changes related to export tables.
I suspect that you don't export from the `out_table` actually, you are
using the main table instead if I read your patch correctly.
Also, your commit is missing documentation in `doc/bird.sgml`, as well
as supported RFC in `proto/bmp/bmp.c` header.
You should also check mergability of your patch with the thread-next
branch, as if I remember correctly, the out_table is implemented there
completely differently.
Last but not least, I would love to see a commit on top of
https://gitlab.nic.cz/labs/bird-tools/ in the `netlab` folder as
an automatic test suite. David Petera (cc) is currently working on BMP
tests for other scenarios, and it might be worth consulting this topic
with him.
> I would be interested to know whether this is something you would
> consider merging. More generally, is there interest in extending BMP
> support in BIRD with additional features? I know that BMP is still
> marked as preliminary and not production-ready, but it is a protocol I
> personally rely on quite heavily.
BMP should be production-worthy and we do consider merging BMP
extensions.
Please note, however, that BGP export is a very hot path and one should
very much think about what is being done there, performance-wise. That
deserves at least a warning in the documentation, so that somebody
doesn't unknowingly turn their router into a traffic generator.
More specifically, the BMP implementation still severely lacks update
merging, and there have been some very serious thoughts about merging
the BMP TX with BGP TX data structures (which would do the update
merging). With that, I would suggest informing us about your plans
beforehand, so that we can plan around accordingly.
Have a nice day!
Maria
--
Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20260114/e87f67ab/attachment.htm>
More information about the Bird-users
mailing list