Hi Murphy, Ok, looking at the Match values in wireshark I do not see a packet that is applying my first self.install_datapath_flow(); but I do see it for the second one (Here is the snippet of code I'm running back to back).
# IF NW_TOS = 0x10 and the NW_DST = (2.99) send the flow to the following DL_DST/NW_DEST and out the correct port flow = {} flow[core.NW_TOS] = 0x10 flow[core.NW_DST] = ipstr_to_int("192.168.2.99") actions = [[openflow.OFPAT_SET_DL_DST, "00:22:fa:62:4a:de"], [openflow.OFPAT_SET_NW_DST, "192.168.1.4"], [openflow.OFPAT_OUTPUT, [0, self.PortMaping[dpid, "00:22:fa:62:4a:de"]]]] self.install_datapath_flow(dpid, flow, 15, 0, actions, bufid, openflow.OFP_DEFAULT_PRIORITY, inport, buf) ## This flow is used to send packets to the correct gateway address after a client moves to a new subnet. (<-- seeing this in wireshark ) flow = {} flow[core.DL_DST] = mac_to_int('\x00\x1b\x21\x6a\x83\x0c') # Old Gw actions = [[openflow.OFPAT_SET_DL_DST, "00:60:97:db:dc:3c"], [openflow.OFPAT_OUTPUT, [0, 1]]] # new GW self.install_datapath_flow(dpid, flow, 999, 0, actions, bufid, openflow.OFP_DEFAULT_PRIORITY, inport, buf) I've attached my wireshark dump of the of packets. Perhaps you can tell what is going wrong? Sorry for all the trouble. Aaron On Sun, Nov 21, 2010 at 3:29 PM, Murphy McCauley <jam...@nau.edu> wrote: > Do you have the OpenFlow wireshark plugin? I'd suggest monitoring the > OpenFlow traffic from the controller to the switch and seeing if the match > data in the flow mod looked right. > > -- Murphy > > On Nov 21, 2010, at 11:12 AM, Aaron Rosen wrote: > > Hmm, > > It seems like if I'm having trouble getting this to match as well? > > flow[core.NW_DST] = ipstr_to_int("192.168.2.99") > > The flow entry still becomes > > > cookie=0, duration_sec=15s, duration_nsec=239000000s, table_id=1, > priority=32768, n_packets=15, n_bytes=1470, > idle_timeout=15,hard_timeout=0,dl_dst=00:22:fa:62:4a:de,actions=mod_nw_tos:0x10,mod_dl_dst:00 > :1b:21:6a:83:0c,mod_nw_dst:192.168.2.99,IN_PORT > > Thanks, > > Aaron > > On Sun, Nov 21, 2010 at 1:26 PM, Aaron Rosen <aro...@clemson.edu> wrote: > >> Hello, I'm trying to match on core.NW_TOS but that doesn't seem to work. >> Below is the snippet of code that I'm trying: >> >> flow = {} >> flow[core.NW_TOS] = 0x10 >> actions = [[openflow.OFPAT_SET_DL_DST, "00:22:fa:62:4a:de"], >> [openflow.OFPAT_SET_NW_DST, "192.168.1.4"],[openflow.OFPAT_OUTPUT, [0, >> self.PortMaping[dpid, "00:22:fa:62:4a:de"]]]] >> self.install_datapath_flow(dpid, flow, 15, 0, actions, bufid, >> openflow.OFP_DEFAULT_PRIORITY, inport, buf) >> >> When I check the flow it installed with dpctl I see the following: >> >> cookie=0, duration_sec=1767s, duration_nsec=148000000s, table_id=1, >> priority=32768, n_packets=30290, n_bytes=2179728, >> idle_timeout=15,hard_timeout=0,actions=mod_dl_dst:00:22:fa:62:4a:de,mod_nw_dst:192.168 >> .1.4,output:2 (No ToS matching here ? ) >> >> >> Am I doing something wrong? >> >> Thanks, >> >> Aaron >> >> >> -- >> Aaron O. Rosen >> Masters Student - Network Communication >> 306B Fluor Daniel >> 843.425.9777 >> >> > > > -- > Aaron O. Rosen > Masters Student - Network Communication > 306B Fluor Daniel > 843.425.9777 > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > > > -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel 843.425.9777
WiresharkOFDUMP
Description: Binary data
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org