OVS下的sFlow 测试
sflow概述
sFlow是Sampled Flow的简称,是一种用于监控数据网络上交换机或者路由器流量转发状况的技术。
sFlow系统包含一个嵌入在设备中的sFlow Agent和远端的sFlow Collector
- sFlow Agent 内嵌于网络设备中,在sFlow系统中收集流量统计数据发送到Collector端供分析
- sFlow Collector 通常由专门服务器充当,在sFlow系统中收集各Agent的采样数据并以图表形式加以汇总
原理什么的 暂时 也不去了解了。什么消息类型格式什么的。。。采用UDP封装,缺省目的端口号为端口6343 也就是sFlow Agent 会将收集的流量统计信息 发往安装sFlow Collector 主机的6343 端口。
sFlow Collector 工具
sFlow Agent 内嵌于网络设备中,不用特别的设置。
sFlow Collector 工具倒是需要自己找。因为要将收集的数据制表制图什么的,当然,厉害的大神 自己根据端口收集的数据 自己制表制图 也是可以的。
总之,按个人理解 sFlow Collector是一个 数据分析工具,,,把从6343端口收到的数据进行分析 然后制成可视化的 图表的工具。
从网上 看到的 几个 工具
- SolarWinds sFlow Collector and Analyzer(免费试用)
- Paessler PRTG Network Monitor(免费试用)
- inMon sFlowTrend
- ManageEngine NetFlow Analyzer
- ntopng and nProbe
- Plixer Scrutinizer
嗯,各有特点。。。本实验当然用免费的 inMon sFlowTrend。可以顺便测试一下同是inMon 产品的 sFlow-RT。
- inMon sFlowTrend sFlowTrend 是免费的,图形按的网络和服务器监控功能。使用sFlow标准,提供全面用户和应用的网络带宽使用情况。
sFlowTrend™ is a free, graphical network and server monitoring tool. sFlowTrend makes use of the popular sFlow® standard to generate real-time displays of the top users and applications making use of network bandwidth. sFlowTrend also uses the extensions to the sFlow standard for monitoring physical and virtual server performance, to link network, server, and application performance and provide an end-end view of networked system performance. sFlowTrend accepts sFlow data from at most five switches or hosts and stores one hour of data in memory. sFlowTrend-Pro does not limit the number of switches or hosts that can be monitored and stores historical data to disk. - SFlow-RT sFlow流量监控工具,可直观的展现网络中的流量以及其他监控信。
sFlow-RT™ incorporates InMon’s asynchronous analytics technology (U.S. Patents 8838774, 9509583, 9712443, 9722926), delivering real-time visibility to Software Defined Networking (SDN), DevOps and Orchestration stacks and enabling new classes of performance aware application such as load balancing, DDoS protection, and workload placement.
安装inMon sFlowTrend
安装前 要先安装JDK 环境1.8以上
免费版似乎最多支持 5个 交换机的监听。。。
Windows下安装
安装包
32位 系统
https://inmon.com/products/sFlowTrend/downloads/sFlowTrend-windows-x32-7_0_1.exe
64 位 系统
https://inmon.com/products/sFlowTrend/downloads/sFlowTrend-windows-x64-7_0_1.exe
就是一个软件 正常安装就行。。。
从sFlowTrendV7.0开始,Java客户端已经被删除,现在必须使用Web客户端连接到sFlowTrend服务器。一旦安装了sFlowTrend,将浏览器指向http://localhost:8087或https://localhost:8443(当然,如果远程访问服务器,您可以将localhost替换成对应主机名)
所以 安装完成是 没有 一个启动程序的。。。可以在服务中找到它
防火墙也要设置一下 不然6343端口可能收不到统计信息
Windows防火墙-》高级设置-》入站规则-》新建规则
然后定义-》端口-》udp/6343-》允许连接-》何时应用该规则全选上-》再设置名称(随意)
然后 访问 本机的8087端口或者 设置https后访问8443端口 便可以查看到
第一次 使用 可能会让输入 许可证 号之类