NetFlow的一些知识

NetFlow如何决定方向:

NetFlow Direction and it’s Value to Troubleshooting
https://www.plixer.com/blog/netflow-and-ipfix-2/netflow-direction-and-its-value-to-troubleshooting/

Strategies used that attempt to determine flow direction but, aren’t entirely reliable include:

  • Comparison of flow start times
  • Lowest source port = server
  • The relationship of A and B with other hosts on the network. A host with many connections to unique hosts ‘could’ be a server.
  • Byte volumes: the host with the lower sent octet delta count is the client. This can be very misleading.
  • Observation of TCP flags however, due to flow technologies aggregation methods, this strategy generally fails.
  • Examining TTL metrics (if exported) – doesn’t provide a definitive answer.
  • Consideration of how the flows were metered (I.e. ingress or egress) however, this is unreliable as some vendors only support egress. In other cases both are exported. Frankly, I never really understood why this was a good strategy. Perhaps someone could share their insight on this.

总结:基于硬件,比较准确。

官方文档:

IP Flow Information Export (IPFIX) Entities
http://www.iana.org/assignments/ipfix/ipfix.xhtml
Bidirectional Flow Export Using IP Flow Information Export (IPFIX)
https://tools.ietf.org/html/rfc5103

Wikipedia:
NetFlow
https://en.wikipedia.org/wiki/NetFlow

pcap转NetFlow以及时间戳问题
https://sourceforge.net/p/nfdump/mailman/message/23791576/

>>  $ nfcapd -p9995 -l ./netflow/
>>  $ softflowd -n 127.0.0.1:9995 -r dump.pcap

时间戳不太对。而且一个双向流会被拆分成两个。

nfcapd -f pcap #办不到

tshark读取pcap

tcpreplay,centos

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 看到这个征文的链接,想起早上刚刚读过的简友星满池的文章《豆角》,她的家乡是黑龙江,现在住在上海。十一长假,别人都忙...
    花香四季1阅读 4,239评论 28 20
  • 作者/不弄发型就闹心 啊啊啊啊啊啊好甜好甜 看完想谈恋爱了 【1】 【2】 【3】 【4】 【5】 【6】 【7】...
    什么东西wasssup阅读 2,361评论 0 0
  • 这些年风风雨雨的,道路也是崎岖。有你陪伴,再苦也不觉得累。而且爬上山顶后看到的风景是最美的。 你的善良温婉让我心暖...
    中通快递_5a11阅读 1,118评论 0 0
  • ** 广度优先搜索 ** 单点路径问题。给定一幅图和一个起点s,回答从s到给定目的地顶点v是否存在一条路径?如果有...
    sleepyjoker阅读 1,365评论 0 0