Thank you for maintaining the community and give our support.
I am starting to use sFlow-RT to detect the elephant flow, but I have some problems with sFlow.
sudo ovs-vsctl -- --id=@sflow create sFlow agent=s13 target=\"127.0.0.1:6343\" header=128 sampling=10 polling=1 -- set bridge s13 sflow=@sflow
sudo ovs-vsctl -- --id=@sflow create sFlow agent=s14 target=\"127.0.0.1:6343\" header=128 sampling=10 polling=1 -- set bridge s14 sflow=@sflow
For Flow definition:
http://CollectorIP:8008/flow/flow_1_2/json
{"key":"ipsource,ipdestination,ipprotocol,macsource,macdestination","value":"byte","filter":"ipsource=10.0.0.1&ipdestination=10.0.0.2"}
http://CollectorIP:8008/flow/flow_3_4/json
{"key":"ipsource,ipdestination,ipprotocol,macsource,macdestination","value":"byte","filter":"ipsource=10.0.0.3&ipdestination=10.0.0.4"}
For Threshold Definition:
http://CollectorIP:8008/threshold/threshold_1_2/json
{"metric":"flow_1_2","value":1310720,"timeout":9}
http://CollectorIP:8008/threshold/threshold_3_4/json
{"metric":"flow_3_4","value":1310720,"timeout":9}
And I use flow browse to see the observations.
What I submit in this page is that:
key: ipsource,ipdestination,ipprotocol,macsource,macdestionation
value: bps
filter: (ipsource=10.0.0.1&ipdestionation=10.0.0.2)|(ipsource=10.0.0.3&ipdestionation=10.0.0.4)
{
"flow_1_2": {
"filter": "ipsource=10.0.0.1&ipdestination=10.0.0.2",
"activeTimeout": 60,
"t": 2,
"value": "byte",
"fs": ",",
"n": 5
},
"browse_flows0": {
"filter": "(ipsource=10.0.0.1&ipdestination=10.0.0.2)|(ipsource=10.0.0.3&ipdestination=10.0.0.4)",
"t": 2,
"keys": "ipsource,ipdestination,ipprotocol,macsource,macdestination",
"activeTimeout": 60,
"value": "bytes",
"fs": "_SEP_",
"n": 10
},
"flow_3_4": {
"filter": "ipsource=10.0.0.3&ipdestination=10.0.0.4",
"activeTimeout": 60,
"t": 2,
"value": "byte",
"fs": ",",
"n": 5
}
}
http://CollectorIP:8008/threshold/test/json
{"metric":" browse_flows0","value":1310720,"timeout":9}
Again I iperfudp 20M h1 h2 and iperf 5M h3 h4, then I use /event/json and I get the triggered event.
I am wondering why this phenomenon occurs and why I cannot get the triggered event by the setting I did before.
Hope for your reply.
Thank you.