<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'd suggest you start by dumping the control traffic (e.g. with openflow.debug) and looking at it in WireShark.  Can you find the flow_mods that correspond to these flows?<div><br></div><div>Also, what switches are you using and which tool is displaying these flow table entries?  If you're using OVS and any tool besides ovs-ofctl, for example, I'm not sure I'd trust them.</div><div><br></div><div>-- Murphy<br><div><br><div><div>On May 15, 2013, at 12:34 AM, chenli wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello everyone:<div><br></div><div><br></div><div>I'm using POX to redirect tcp traffic, it just modify the action output and destination IP and MAC address.</div><div><br></div><div>But when I modify the code in POX to do tcp flow redirection, I got confused about the abnormal flows like below:</div>
<div><br></div><div>The normal redirection flows:</div><div><br></div><div><div> cookie=0x0, duration=8.668s, table=0, n_packets=26, n_bytes=2651, idle_timeout=30, tcp,dl_vlan=0,dl_vlan_pcp=0,dl_src=ac:f1:df:79:29:be,dl_dst=c8:be:19:49:d7:d2,nw_src=192.168.15.110,nw_dst=192.168.15.197,<font color="#000099">nw_tos=0</font>,tp_src=22,tp_dst=55029 actions=mod_dl_src:c8:be:19:49:d7:d1,output:46</div>
<div> cookie=0x0, duration=8.652s, table=0, n_packets=33, n_bytes=3363, idle_timeout=30, tcp,dl_vlan=0,dl_vlan_pcp=0,dl_src=c8:be:19:49:d7:d2,dl_dst=c8:be:19:49:d7:d1,nw_src=192.168.15.197,nw_dst=192.168.15.110,<font color="#000099">nw_tos=0</font>,tp_src=55029,tp_dst=22 actions=mod_dl_dst:ac:f1:df:79:29:be,output:42</div>
<div><br></div><div>On the general case, the tcp traffic will follow the above two flows to do transmission.</div><div><br></div><div>But the strange thing is POX also add the following two abnormal flows, so the ssh redirection connection can't connect successfully.</div>
<div><br></div><div>The abnormal flows:</div><div><br></div><div> cookie=0x0, duration=5.105s, table=0, n_packets=0, n_bytes=0, idle_timeout=30, tcp,dl_vlan=0,dl_vlan_pcp=0,dl_src=ac:f1:df:79:29:be,dl_dst=ac:f1:df:79:29:be,nw_src=192.168.15.197,nw_dst=192.168.15.110,<font color="#000099">nw_tos=16</font>,tp_src=55029,tp_dst=22 actions=mod_dl_src:c8:be:19:49:d7:d2,output:42</div>
<div> cookie=0x0, duration=5.091s, table=0, n_packets=19, n_bytes=2218, idle_timeout=30, tcp,dl_vlan=0,dl_vlan_pcp=0,dl_src=ac:f1:df:79:29:be,dl_dst=c8:be:19:49:d7:d2,nw_src=192.168.15.110,nw_dst=192.168.15.197,<font color="#000099">nw_tos=16</font>,tp_src=22,tp_dst=55029 actions=mod_dl_dst:ac:f1:df:79:29:be,output:42</div>
</div><div><br></div><div>I got confused about the nw_tos field for abnormal flows, why it has the value of 16 which is different from the normal redirection flows and POX need to add it?</div><div><br></div><div>Thanks.</div>
</blockquote></div><br></div></div></body></html>