[ovs-discuss] interested in ovs gre tunneling implement

Willy Chen ccps960718456 at gmail.com
Wed May 11 16:04:44 UTC 2016


Apologize for the broken text image
I draw it again,

+-------------------+ +-------------------+
|                   | |                   |
| +----+            | | +----+            |
| | h1 +----+       | | | h2 +----+       |
| +----+    |       | | +----+    |       |
|      +--+-+-----+ | |      +--+-+-----+ |
|      |  | SW1|  | | |      |  | SW2|  | |
|      |  +----+  | | |      |  +----+  | |
|      |   OVS    | | |      |   OVS    | |
|      +----X-----+ | |      +----X-----+ |
|    XXXXXXXX       | |    XXXXXXXX       |
| +--X-+            | | +--X-+            |
| |eth0|      VM1   | | |eth0|      VM2   |
+---+---------------+ +---+---------------+
    |                     |
    +---------------------+
        gre tunnel

Thank you

2016-05-11 23:52 GMT+08:00 Willy Chen <ccps960718456 at gmail.com>:

> Hello,
>
> I want to know about how OVS to deal with gre tunnel,
> What things OVS doing when packet send out through tunnel?
> And when VM2's eth0 receive the packet, what happened in the vm2 ?
>
> If I have 2 switch in vm2, and they tunnel to vm1 with different key,
> when h1 ping h2, why ovs can transfer packet to h2, how did it knows ?
>
> I have the following topology,
> There is 1 host, 1 switch in a vm,
> and connect 2 vm each other by gre tunnel
>
> -------setting-------
> vm1's IP: 10.1.1.1
> vm2's IP: 10.1.1.2
> host1's IP: 10.0.0.1
> host2's IP: 10.0.0.2
> ---------------------
>
> The way I tried is:
>
> vm1:
>     ovs-vsctl add-port sw1 gre00 -- set interface gre00 type=gre
> options:remote_ip=10.1.1.2 options:key=1234
> vm2:
>     ovs-vsctl add-port sw2 gre00 -- set interface gre00 type=gre
> options:remote_ip=10.1.1.1 options:key=1234
>
> +------------------------------------+
> +------------------------------------+
> |                                    |
> |                                    |
> |   +-----------+                    |  |
> +-----------+                    |
> |   | docker at h1 +------+             |  |   | docker at h2
> +------+             |
> |   +-----------+      |             |  |   +-----------+
> |             |
> |                      |             |  |
> |             |
> |              +---+---+---+---+     |  |
> +---+---+---+---+     |
> |              |   |  sw1  |   |     |  |              |   |  sw2  |
> |     |
> |              |   +-------+   |     |  |              |   +-------+
> |     |
> |              |      OVS      |     |  |              |      OVS
> |     |
> |              +-------X-------+     |  |
> +-------X-------+     |
> |                      X             |  |
> X             |
> |        XXXXXXXXXXXXXXX             |  |
> XXXXXXXXXXXXXXX             |
> |   +----X---+                       |  |
> +----X---+                       |
> |   |  eth0  |             VM1       |  |   |  eth0  |
> VM2       |
> +---+----+---+-----------------------+
> +---+---+----+-----------------------+
>          |                                      |
>          +--------------------------------------+
>                        GRE Tunnel
>
> Thanks for your help !!
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160512/9ab26ad1/attachment-0002.html>


More information about the discuss mailing list