Community discussions

MikroTik App
 
mauricioisp
Member Candidate
Member Candidate
Topic Author
Posts: 148
Joined: Wed Feb 06, 2013 2:48 am

How to measure traffic to an ASN?

Thu Sep 12, 2013 5:34 am

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,
 
User avatar
nz_monkey
Forum Guru
Forum Guru
Posts: 2095
Joined: Mon Jan 14, 2008 1:53 pm
Location: Over the Rainbow
Contact:

Re: How to measure traffic to an ASN?

Thu Sep 12, 2013 11:41 am

nfacct is what you need
 
User avatar
Bergante
Member Candidate
Member Candidate
Posts: 144
Joined: Tue Feb 28, 2012 12:27 pm
Location: Bilbao, Spain

Re: How to measure traffic to an ASN?

Thu Sep 12, 2013 1:27 pm

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).
 
User avatar
Hammy
Forum Veteran
Forum Veteran
Posts: 776
Joined: Fri May 28, 2004 5:53 pm
Location: DeKalb, IL
Contact:

Re: How to measure traffic to an ASN?

Fri Feb 13, 2015 3:59 am

Will those tools work, though, with Mikrotik flows as they don't include the ASN?
 
joegoldman
Forum Veteran
Forum Veteran
Posts: 766
Joined: Mon May 27, 2013 2:05 am

Re: How to measure traffic to an ASN?

Sat Feb 14, 2015 4:12 am

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.
 
User avatar
nz_monkey
Forum Guru
Forum Guru
Posts: 2095
Joined: Mon Jan 14, 2008 1:53 pm
Location: Over the Rainbow
Contact:

Re: How to measure traffic to an ASN?

Sat Feb 14, 2015 11:08 am

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.
 
wpeople
Member
Member
Posts: 378
Joined: Sat May 26, 2007 6:36 pm

Re: How to measure traffic to an ASN?

Sat Feb 14, 2015 9:32 pm

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.
 
User avatar
Hammy
Forum Veteran
Forum Veteran
Posts: 776
Joined: Fri May 28, 2004 5:53 pm
Location: DeKalb, IL
Contact:

Re: How to measure traffic to an ASN?

Sun Feb 15, 2015 4:48 pm

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.
 
wpeople
Member
Member
Posts: 378
Joined: Sat May 26, 2007 6:36 pm

Re: How to measure traffic to an ASN?

Mon Feb 16, 2015 10:58 am

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?
 
User avatar
Hammy
Forum Veteran
Forum Veteran
Posts: 776
Joined: Fri May 28, 2004 5:53 pm
Location: DeKalb, IL
Contact:

Tue Jun 02, 2015 4:54 pm

Also, can we have S-Flow?
 
hendranata
just joined
Posts: 13
Joined: Mon May 03, 2021 5:16 am

Re: How to measure traffic to an ASN?

Mon May 03, 2021 5:18 am

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
 
User avatar
fairiz
just joined
Posts: 1
Joined: Tue Dec 04, 2018 7:22 pm

Re: How to measure traffic to an ASN?

Fri May 14, 2021 9:40 am

I use ntopng to capture stats via IPFIX from my CCR.

Screenshot 2021-05-14 142624.png
2.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
Hammy
Forum Veteran
Forum Veteran
Posts: 776
Joined: Fri May 28, 2004 5:53 pm
Location: DeKalb, IL
Contact:

Re: How to measure traffic to an ASN?

Sat May 15, 2021 5:21 pm

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?

Who is online

Users browsing this forum: No registered users and 9 guests