Thank you for great explanation.
However, I still have 2 questions.
(1) why (D) has to resubmit(,2)? why just remains output:5 ? Is there any
preventions or other conditions to use table 2?
(2) If vm2 want to send packets to external network, I think will be
external IP in the packet header. But,how about dst mac? Is it
fa:16:3e:f6:65:0b?
Because there are rules in table 1,2 about dst mac,it has to be
fa:16:3e:f6:65:0b , so that the packet can be sent to port 2. How does vm3
know the dst mac?
Thx!
Amy
2013/8/27 Yoshihiro Kaneko <[email protected]>
> Hi,
>
> I assume the following situation.
>
> * HOST1
>
> br-ex :
> tap8899056d-35 ---:-- qg-8899056d-35
> :
> br-int :
> tapa6339ea8-4d ---:-- qr-a6339ea8-4d
> :
> : netns = qrouter-XXXX
> - - - - - - - - - -
> tap06848d58-32 ------ dhcp
> qvoaa57e45b-26 ------ vm1
> qvo0c3ff3ef-ad ------ vm2
> grec0a8000b-c0 ---+
> |
> |
> * HOST2 |
> |
> br-int |
> grec0a8000a-c0 ---+
> qvoae30579c-93 ------ vm3
>
>
> The ports of br-int of HOST1 are as follows.
>
> port 0: br-int (internal)
> port 1: tap06848d58-32
> port 2: tapa6339ea8-4d
> port 3: qvoaa57e45b-26
> port 4: qvo0c3ff3ef-ad
> port 5: grec0a8000b-c0 (gre: key=flow, local_ip=192.168.0.10,
> remote_ip=192.168.0.11)
>
>
> The flow table of br-int of HOST1 is as follows.
>
> table=0, tun_id=0x2,in_port=5 actions=resubmit(,2)
> table=0, in_port=4,dl_src=fa:16:3e:d0:51:39
> actions=set_tunnel:0x2,resubmit(,1)
> table=0, in_port=3,dl_src=fa:16:3e:f3:0d:ca
> actions=set_tunnel:0x2,resubmit(,1)
> (A) table=0, in_port=2,dl_src=fa:16:3e:f6:65:0b
> actions=set_tunnel:0x2,resubmit(,1)
> table=0, in_port=1,dl_src=fa:16:3e:bb:03:07
> actions=set_tunnel:0x2,resubmit(,1)
>
> (B) table=1, priority=8192,tun_id=0x2 actions=resubmit(,2)
> table=1, priority=16384,tun_id=0x2,dl_dst=ff:ff:ff:ff:ff:ff
> actions=output:5,resubmit(,2)
> (D) table=1, tun_id=0x2,dl_dst=fa:16:3e:8c:4b:8e
> actions=output:5,resubmit(,2)
>
> table=2, priority=8192,tun_id=0x2 actions=drop
> table=2, tun_id=0x2,dl_dst=fa:16:3e:f6:65:0b actions=output:2
> table=2, priority=16384,tun_id=0x2,dl_dst=ff:ff:ff:ff:ff:ff
> actions=output:1,output:2,output:3,output:4
> (C) table=2, tun_id=0x2,dl_dst=fa:16:3e:f3:0d:ca actions=output:3
> table=2, tun_id=0x2,dl_dst=fa:16:3e:d0:51:39 actions=output:4
> table=2, tun_id=0x2,dl_dst=fa:16:3e:bb:03:07 actions=output:1
>
>
> The actual address of the floating IP is added to qg-8899056d-35, and
> the packet is NATed and
> routed in the netns.
> An incoming packet from the external public network passes on
> port2(tapa6339ea8-4d) of br-int.
> The packet is matched the flow entry (A), and set tunnel id 2, and
> goes to table1.
> If the destination of the packet is vm1, the packet is forwarded to
> port3 via (B) and (C).
> If the destination of the packet is vm3, the packet is forwarded to
> port5, gre port to HOST2, via (D).
>
> Thanks,
> Kaneko
>
>
> 2013/8/27 張華婷 <[email protected]>:
> > Hi, I just have another question.
> > In the document, Instructions for construction of Openstack grizzly
> > environment with Ryu using devstack, there are some flow entries
> installed
> > in the openvswitch . However, there are no rules about floating IP. If I
> > send to sb. in public network from private network or sb. send from
> public
> > network,but there are no flow entries to instruct how the packet is
> > sent.Thus,my question is how does it be sent with floating IP in GRE
> > tunneling. Thx!
> >
> > Best Regards,
> >
> > Amy
> >
> >
> ------------------------------------------------------------------------------
> > Introducing Performance Central, a new site from SourceForge and
> > AppDynamics. Performance Central is your source for news, insights,
> > analysis and resources for efficient Application Performance Management.
> > Visit us today!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
>
------------------------------------------------------------------------------
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