Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Apr 2015 11:50:48 +0100 (BST)
From:      William Waites <wwaites@tardis.ed.ac.uk>
To:        freebsd-net@freebsd.org
Subject:   ng_netgraph and BGP
Message-ID:  <20150401.115048.1362042954044146751.wwaites@tardis.ed.ac.uk>

next in thread | raw e-mail | index | archive | help
----Security_Multipart(Wed_Apr__1_11_50_48_2015_924)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I run a small network composed of even smaller networks each
encapsulated in an autonomous system. I'd like to do traffic
accounting using netflow aggregated by ASN. My border routers run
FreeBSD and BIRD.

Right now, and this is mentioned in ng_netflow(4), we do not fill in
the source and destination ASN because there is no information to get
this from the routing daemon's RIB. Probably if we come up with such a
way it should be generic so it could be used by Quagga, BIRD or
OpenBGPD.

I've done a little bit of thinking about how this could be done, and
come up with two main strategies:

  1. A new kind of netgraph node inserted before ng_netflow knows how
     to query the routing daemon and decorates the packet with the
     result, which ng_netflow then puts into the flow packet if
     present. This entails either a copy (tee) or putting the lookup
     in the data path which may be suboptimal.

  2. A new hook added to the ng_netflow node that allows it to query
     the routing daemon through a different new kind of netgraph
     node. This is probably better but may be slightly more
     complicated to implement.

Is anyone working on this or has given this though? I wasn't able to
find much by searching the list archives. It may be that I will soon
have some students that I can set on this task but would not like to
unnecessarily duplicate effort.

Cheers,
-w

--
William Waites <wwaites@tardis.ed.ac.uk>  |  School of Informatics
   http://tardis.ed.ac.uk/~wwaites/       | University of Edinburgh
       http://www.hubs.net.uk/            |      HUBS AS60241

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

----Security_Multipart(Wed_Apr__1_11_50_48_2015_924)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQIcBAABCgAGBQJVG82IAAoJEHhNnKzjwx5/QhMP/iH7OkNPjQZ64n/GLYXzACGK
VTWUfhjWk2GWvY7xmdMqc/djHxrbilGvhHtCyjRyN/n4Ji+nLNi8wo3Y3ESItlit
3txRqnrBXNQWvV64ag6c+8o9XYY+ZpJTo2wGzAUpGxXreco8c8pAzvDUXGkSbI9d
fUBn9jdkuM1ETm6AKtvOTqFkMxVihj6ZbX9WD+8YD9LvaG492aMMRQ/ukvMvowHg
zdGenrLARHcvJ5EHTgFgzc1ULzVIrmjB3nThWNaEtvs9o62ttLxrxbdpkhIMYV9e
zZ38c1g1CVbTyd8iiv+AcoTlMm0BkbR9qxI1ExcRqBHQJxliKbxR5AQ4wXUtzmk6
/YGiV74npR6HeTHu5oN9emu0frLas0Y4QzWozzFeKH8lxxKE0DhOYy/k6Hld53de
bfhwlwNMwE7r7OiCWJS7nAUbx67EHKiEnNIOXRlpnvB5pVszteBHmKuuMB+ZJG8b
bUHfrfIyFJai5smyOLYZB3QTCdxKmRU7cqycvQzEBK9P4TVM8ZsHQpqyjVVQCiYv
sXktOZnwBHCZ2HdLvXs9gqAZq6NJJTtT8ixltUxLLjszXv4gMoX4dp1ai1+IvOUC
/vYh2qshy33bihXBFcsZ4DTmoq0UZatxG6tzAewxWSUQoIJZ2LsQw7PzbB1ddiqj
cOoYs7vsmkYfzYrKf4nh
=Zx1v
-----END PGP SIGNATURE-----

----Security_Multipart(Wed_Apr__1_11_50_48_2015_924)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150401.115048.1362042954044146751.wwaites>