Comments (5)
Thx. I fix it.
from nfdump.
Hi @phaag - Do you mean you have fixed it, or are you going to fix it ?
from nfdump.
After looking into the pcap, I can tell, that this is not an nfcapd issue, but a CISCO issue.
What is it all about:
The data exported is IPFIX. IPFIX has a lot of elements. I can refer to the IANA site http://www.iana.org/assignments/ipfix/ipfix.xhtml
Many of these elements are identical to netflow v9, but it has a lot of additions.
Many IPFIX exporters export the timestamps with the elements 152, 153:
152 flowStartMilliseconds
dateTimeMilliseconds The absolute timestamp of the first packet of this Flow. milliseconds
153 flowEndMilliseconds
dateTimeMilliseconds The absolute timestamp of the last packet of this Flow. milliseconds
In your stream of the IOS-XR 6.0, the start and end timestamps are announced with the elements 21, 22. 21 and 22 are the default elements in many v9 exporters. The difference to 152, 153 is, that 21,22 are relative time stamps - relative to the boot time of the device. In v9 the boot time is announced by the exporter in the header of a data record for all flows in that record. IPFIX has different header data structures and no sysup time in the header.
The IPFIX RFC says:
21 flowEndSysUpTime unsigned32
The relative timestamp of the last packet of this Flow. It indicates the number of milliseconds since the last (re-)initialization of the IPFIX Device (sysUpTime). sysUpTime can be calculated from systemInitTimeMilliseconds.
22 flowStartSysUpTime unsigned32
The relative timestamp of the first packet of this Flow. It indicates the number of milliseconds since the last (re-)initialization of the IPFIX Device (sysUpTime). sysUpTime can be calculated from systemInitTimeMilliseconds.
For both elements: sysUpTime can be calculated from systemInitTimeMilliseconds
systemInitTimeMilliseconds is element 160:
160 systemInitTimeMilliseconds dateTimeMilliseconds
The absolute timestamp of the last (re-)initialization of the IPFIX Device.
However, none of the templates in your pcap contains the element 160. Therefore, it is not possible to calculate the timestamps for start and end of the flow.
In order to fix that, CISCO needs to fix their templates to add either element 160, or switch to elements 152, 153 which is most common for many IPFIX exporters.
Up to now, nfcapd does not decode element 160, so if CISCO decides to go that way, please let me know, then I can add that. If they switch to 152, 153 it works out of the box.
from nfdump.
Thank you, that is very valuable information that I'll send along to Cisco.
from nfdump.
Not an nfdump issue.
from nfdump.
Related Issues (20)
- invalid source as HOT 7
- Nfdump collects flows but nfsen profiles doesn't work for Juniper router HOT 14
- nfdump export to csv HOT 1
- Invalid values (bps, pps) in `pipe` output format for statistic mode. HOT 1
- Invalid statistic values for bidirectional elements. HOT 3
- Installation error - missing ZSTD_CLEVEL_DEFAULT. HOT 3
- Src AS / dst AS filters not working as expected HOT 1
- question: can nfcapd ignore some id's ? HOT 1
- nfcapd - fails to start "initialize bookkeeper failed." HOT 3
- nfdump - maxworkers seg fault HOT 4
- Fatal error making v1.7.3 from source HOT 8
- zstd compression added but usage messages not updated HOT 1
- Increase Number of Threads HOT 1
- Can't finish ./configure with --enable-nfprofile error: can not link librrd on FreeBSD 13.2 HOT 3
- Cached file is not readable after upgrade to 1.7.3 HOT 1
- Default IPv6 route (::/0) does not filter interfaces. HOT 2
- Allow using external lz4 library HOT 7
- query all routers for specific time bucket HOT 6
- nfdump -M aborting on missing time buckets HOT 3
- cannot compile `nfpcapd` in 1.7.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfdump.