hello everyone:
I'm using ryu recently,I try to transfer pox's l3_learning.py to suport
IP-port binding in ryu,I use "sudo mn --controller remote --mac --topo
single,3" to run my mininet,firstly,h1 suceeds to ping h2,and a flow whose
actions are "actions.append(datapath.ofproto_parser.OFPActionSetDlDst(mac))
actions.append(datapath.ofproto_parser.OFPActionOutput(prt))" is witten
downto the switch.
And the match logic is
wildcards = ofproto_v1_0.OFPFW_ALL
wildcards &= ~ofproto_v1_0.OFPFW_IN_PORT
wildcards &= ~ofproto_v1_0.OFPFW_NW_DST_MASK
match = datapath.ofproto_parser.OFPMatch(
wildcards, in_port, 0, 0,
0, 0, 0, 0, 0, 0, nwdst, 0, 0)
mod = datapath.ofproto_parser.OFPFlowMod(
datapath=datapath, match=match, cookie=0,
command=ofproto.OFPFC_ADD, idle_timeout=0, hard_timeout=0,
priority=ofproto.OFP_DEFAULT_PRIORITY,
flags=ofproto.OFPFF_SEND_FLOW_REM, actions=actions)
datapath.send_msg(mod)
But when i try h3 ping h2,it confusingly fails.I start the xterm on
these 3 hosts,running tcpdumps eachly,and just to find that the arp request
from h3 to h2 is successfully replied from the controller(because when h1
ping h2,the IP and mac info of h2 is memorized in the controller,so this
time the controller just reply arp for h2 to h3),and when icmp request from
h3 arrives at h2,h2 tries to arp for h3,h3 fails to receive,but h1 gets it!
So,this arp pkt amusingly matches the flow which is written for ip pkts
from h2 to h1!It must be joking me! How can that happen?I got the switch's
fetures reply through the wireshark,and it showed that the 'arp pkts's
looking up IP info option' is suppported,then why does the arp request from
h2 to h3 matches the previous flow whose match-fields are:inport = h2
,nwdst=h1?
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel