openvswitch - how to capture openflow packets using tshark -
i have system arch linux running ovs. have controller running in same box. have following setup:-
ovs-vsctl set-controller br-int tcp:192.168.1.201:6633 i hoping use tshark( tshark 2.2.8) capture openflow using following command:-
sudo tshark -i br-int -d tcp.port==6633,openflow -o openflow_v4 it dumps all flows flowing in system no packetin openflow messages. did confirm packetin message received controller. ( pasting last few lines:-)
event ofp_event->eventofppacketin packet in 1237689849893337 b8:27:xx:xx:yy:yy:zz ff:ff:ff:ff:ff:ff:3 i understand tshark document default uses port 6653 openflow.
tshark -g decodes | grep -i openflow tcp.port 6653 openflow however in impression can still openflow traffic using following capture command:-
https://wiki.wireshark.org/openflow
tshark tcp port 6633 this doesn't work no events captured though can see controller receiving lots of events..
would appreciate here.
my guess you're not listening on correct interface. try following:
sudo tshark -i -d tcp.port==6633,openflow -o openflow_v4 if doesn't work, it's possible controller , switch not communicating using openflow 1.3. make sure see everything, try:
sudo tshark -i -d tcp.port==6633 details. unless there's particular in setup, packets open vswitch controller , not go through bridge. since both ends of communication on same host, packets going through loopback interface:
sudo tshark -i lo -d tcp.port==6633 i able reproduce setup , issue confirm answer open vswitch 2.5.2 , floodlight (master branch). can see packets passing through on loopback interface both tcpdump , tshark.
Comments
Post a Comment