Hi Paolo, Thanks for the suggestion. It makes sense to me that OVS_CT_EVENTMASK_DEFAULT is missing some masks, so I can't see the events I need. I'm wondering do you if there is any easy way to change the value of OVS_CT_EVENTMASK_DEFAULT? Like, maybe I can do it through any ovs cmd tools? Or I can get the missing events by setting ct_eventmask to false?
Thanks, Yun-Tang Paolo Valerio <pvale...@redhat.com> 於 2023年7月16日 週日 下午4:19寫道: > YunTang Hsu via discuss <ovs-discuss@openvswitch.org> writes: > > > Hi, > > > > I have a kind cluster with Antrea installed. Since I want to use the > conntrack > > event listener to track the creation/termination of connections, I > installed > > conntrack CLI in one of Antrea-agen pods. > > When I used command “conntrack -E” to listen to events for iperf3 > traffic, I > > found that not all of the UpdateEvent for tcp state changes can be > monitored. > > However, I can see the tcp state is changed to “Time_wait” in the > conntrack > > table (using “conntrack -L”). I can see all the UpdateEvents for a > connection > > if I use “wget”. Not sure if it is the expected behavior? > > The only difference I can notice is that the connection of the iperf3 > flow has > > a zone=65520, which is the zone used by Antrea. > > > > Hello, > > I guess, assuming your datapath implements OVS_CT_ATTR_EVENTMASK, those > events are filtered out. > This is from ovs-vswitchd.conf.db(5), see ct_eventmask: > > "True if the datapath’s OVS_ACTION_ATTR_CT action implements the > OVS_CT_ATTR_EVENTMASK attribute. When this is true, Open vSwitch uses > the event mask feature to limit the kinds of events reported to > conntrack update listeners. When Open vSwitch doesn’t limit the event > mask, listeners receive reports of numerous usually unimportant events, > such as TCP state machine changes, which can waste CPU time." > > to make them pass, OVS_CT_EVENTMASK_DEFAULT (used for > OVS_CT_ATTR_EVENTMASK) should include OVS_CT_EVENT_PROTOINFO, which is > not the case. > > Paolo > > > I also created an issue for this question in ovs-issues ( > https://github.com/ > > openvswitch/ovs-issues/issues/282). Any comment or suggestion is > appreciated. > > Thanks. > > > > Best, > > Yun-Tang > > _______________________________________________ > > discuss mailing list > > disc...@openvswitch.org > > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > >
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss