Hello,

I'm seeing a weird flow mod issue in Destiny but not in Zaku.

I'm running the following code:
flow = {}
flow[core.DL_TYPE] = ethernet.IP_TYPE
flow[core.DL_SRC] = packet.src
flow[core.NW_SRC] = packet.next.srcip
flow[core.NW_DST] = packet.next.dstip
flow[core.NW_PROTO] = ipv4.TCP_PROTOCOL
flow[core.TP_SRC] = packet.next.next.srcport
flow[core.TP_DST] = packet.next.next.dstport

actions = [
     [openflow.OFPAT_SET_DL_DST, inst.Agents[dpid]['mac']],
     [openflow.OFPAT_SET_NW_DST, inst.Agents[dpid]['ip']],
     [openflow.OFPAT_SET_TP_DST, TCP_REDIRECT_PORT ],
     [openflow.OFPAT_OUTPUT, [0, inst.Agents[dpid]['inport']]]
]
print "----------------------------------"
print actions
print packet
print ip_to_str(packet.next.srcip)
inst.install_datapath_flow(dpid, flow, CACHE_TIMEOUT,
     openflow.OFP_FLOW_PERMANENT, actions,
     bufid, openflow.OFP_DEFAULT_PRIORITY,
     inport, buf)
print "----------------------------------"

And I see the exact same output versions:
----------------------------------
[[5, array('B', [0, 0, 0, 0, 0, 4])], [7, 2189370920], [10, 9877], [0, [0, 3]]]
[(XEROX CORPORATION):00:00:03>(Cisco
Systems):2b:08:00:IP]([v:4hl:5l:60t:64]TCP
cs:e894[130.127.38.36>130.127.39.5]){9877>57760} seq:3576851480
ack:3570814712 f:0x12
130.127.38.36
----------------------------------
----------------------------------
[[5, array('B', [0, 0, 0, 0, 0, 4])], [7, 2189370920], [10, 9877], [0, [0, 3]]]
[(XEROX CORPORATION):00:00:03>(Cisco
Systems):2b:08:00:IP]([v:4hl:5l:60t:64]TCP
cs:e894[130.127.38.36>130.127.39.5]){9877>57759} seq:2340715673
ack:2334592225 f:0x12
130.127.38.36
----------------------------------

Though the when I dump the flows at the switch Zaku install:
 cookie=0x0, duration=3.213s, table_id=0, n_packets=1, n_bytes=74,
idle_timeout=5,tcp,dl_src=00:00:00:00:00:03,nw_src=130.127.38.36,nw_dst=130.127.39.5,tp_src=9877,tp_dst=37857
actions=mod_dl_dst:00:00:00:00:00:04,mod_nw_dst:130.127.38.40,mod_tp_dst:9877,output:3

Where destiny installs:
 cookie=0x0, duration=1.371s, table_id=0, n_packets=1, n_bytes=74,
idle_timeout=5,tcp,dl_src=00:00:00:00:00:03,nw_src=130.127.38.36,nw_dst=130.127.39.5,tp_src=9877,tp_dst=57759
actions=mod_dl_dst:00:00:00:00:00:04

Any ideas here?

Thanks,

Aaron


-- 
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to