Page 1 of 1

How to measure traffic to an ASN?

Posted: Thu Sep 12, 2013 5:34 am
by mauricioisp
Hi,
I'm trying to get a peering agreement with a local Content provider, but I need to measure the traffic from my ASN to their ASN. What method or program do you use to measure ASN to ASN traffic?

Thanks,

Re: How to measure traffic to an ASN?

Posted: Thu Sep 12, 2013 11:41 am
by nz_monkey
nfacct is what you need

Re: How to measure traffic to an ASN?

Posted: Thu Sep 12, 2013 1:27 pm
by Bergante
Hi,
I'm trying to get a peering agreement with a local Content provider, but I need to measure the traffic from my ASN to their ASN. What method or program do you use to measure ASN to ASN traffic?
For that purpose (and many others!) Netflow is your friend.

Try nfsen (nfsen.sourceforge.net).

Re: How to measure traffic to an ASN?

Posted: Fri Feb 13, 2015 3:59 am
by Hammy
Will those tools work, though, with Mikrotik flows as they don't include the ASN?

Re: How to measure traffic to an ASN?

Posted: Sat Feb 14, 2015 4:12 am
by joegoldman
Traffic-Flow version is the difference, higher version of traffic flow standard will provide more information, its also depending on having your netflow collector set to save that information when received as well.

Re: How to measure traffic to an ASN?

Posted: Sat Feb 14, 2015 11:08 am
by nz_monkey
Traffic-Flow version is the difference, higher version of traffic flow standard will provide more information, its also depending on having your netflow collector set to save that information when received as well.
Unfortunately RouterOS does not include ASN information in Netflow no matter what version.

With any luck we might see this in RouterOS v7.

If you want it email support@mikrotik.com and let them know. The more people that ask for it the more likely we get it.

Re: How to measure traffic to an ASN?

Posted: Sat Feb 14, 2015 9:32 pm
by wpeople
with 'offline CDR meditation' you can do a daily measurement with traffic flow.
Log the traffic, list the prefixes on your and their side, calculate the SUM for those prefixes.
I think, a script what running daily can do this job withing 5 minutes.

Another possiblity to manually extend the logged traffic flow with the ASNs fetched from Maxmind (or yours) hash table.

Re: How to measure traffic to an ASN?

Posted: Sun Feb 15, 2015 4:48 pm
by Hammy
with 'offline CDR meditation' you can do a daily measurement with traffic flow.
Log the traffic, list the prefixes on your and their side, calculate the SUM for those prefixes.
I think, a script what running daily can do this job withing 5 minutes.

Another possiblity to manually extend the logged traffic flow with the ASNs fetched from Maxmind (or yours) hash table.
What were you trying to accomplish there that can't just be done with NetFlow into a standard NetFlow collector, aside from the ASN business? IPs -> ASNs that aren't collected from your ASN's perspective can be worthless. There are many situations where this data is different or not complete.

Re: How to measure traffic to an ASN?

Posted: Mon Feb 16, 2015 10:58 am
by wpeople
I agree, that those information is not 100% accurate, since not following it, if the routing changes.
However until your NetFlow source not include the ASN, IMHO the most accurate to export your routing table periodically (daily or hourly) and do the prefix/asn assignment based on that period.

Or you have better idea?

Posted: Tue Jun 02, 2015 4:54 pm
by Hammy
Also, can we have S-Flow?

Re: How to measure traffic to an ASN?

Posted: Mon May 03, 2021 5:18 am
by hendranata
so do we have any solution in this case?
using scheduler or whatever?

i can see there is a feature: "nfasnupd"
https://metacpan.org/pod/Net::NfDump

it might help to convert empty AS number and replace with the correct one..

nfcapd -x "nfasnupd %d/%f"

but i still dont know how do we modify script of nfdump and nfsen

Re: How to measure traffic to an ASN?

Posted: Fri May 14, 2021 9:40 am
by fairiz
I use ntopng to capture stats via IPFIX from my CCR.

Screenshot 2021-05-14 142624.png
2.png

Re: How to measure traffic to an ASN?

Posted: Sat May 15, 2021 5:21 pm
by Hammy
I use ntopng to capture stats via IPFIX from my CCR.


Screenshot 2021-05-14 142624.png
2.png
How is NTOPNG filling in the known-missing ASN information?