Page 1 of 1

Measure aggregate ipv4 vs ipv6 volume through router

Posted: Sun Jun 16, 2019 7:42 pm
by alex_rhys-hurn
Hi Everyone,

I would like to measure and graph the volume of ipv4 and ipv6 traffic through the router.

I would even like a command something like:
/interface monitor-traffic aggregate type=ipv6
and
/interface monitor-traffic aggregate type=ipv4

Can anybody give me some hints to achieve this?

All the best,

Alex

Re: Measure aggregate ipv4 vs ipv6 volume through router

Posted: Mon Jun 17, 2019 1:52 am
by pe1chl
It is not possible within the router at the moment.
When you want to write something yourself, you can use a firewall rule to count the traffic and use a program on another computer that retrieves the counters of the firewall rule and graphs it.
Unfortunately firewall counters are not readable via SNMP so you need to use API, which means writing a dedicated program using one of the available API libraries.

Re: Measure aggregate ipv4 vs ipv6 volume through router

Posted: Mon Jun 17, 2019 2:16 am
by Paternot
There is one way, but it's quite cumbersome: Use one interface to Ipv4 traffic, and another one for IPv6. The easiest way is to give only IPv4 address to one, and only IPv6 address to another.

You will use two router ports for each link and two switches ports for each link. Now You have two independent interfaces, and can easily use SNMP to monitor them.

It isn't pretty - but gets the job done.