[P4-dev] connecting mininet tside networkto ou

mostafa ammar mostafaammar79 at gmail.com
Sun Oct 15 14:31:26 EDT 2017


Dear All,

is there any example for connecting P4 switches with OVS switch using
mininet and how routing is configured between hosts on switches.

On Mon, Oct 9, 2017 at 5:48 PM, Antonin Bas <antonin at barefootnetworks.com>
wrote:

> Hi,
>
> I see 2 possibilities here:
> 1. The simplest solution may be to add OpenFlow switches in front of your
> P4 switches, and have a GRE tunnel between them:
> h1 --- P4 switch --- OVS === gre === OVS --- P4 switch --- h2
> or
> h1 --- P4 switch --- OVS === gre === xenserver switch
> 2. If you do not want to have extra OpenFlow switches in the network, but
> want to have a GRE tunnel between the P4 switch and a fixed-function /
> OpenFlow switch, you will need to add GRE tunneling support (initiation and
> termination) to your P4 program. As an example, I believe switch.p4 (
> https://github.com/p4lang/switch/tree/master/p4src) supports GRE. It
> should not be to hard to write a P4 program which does L2 switching and
> supports GRE. You will probably need to add entries to a few tables in your
> program to setup the GRE tunnel; if you are familiar with the bmv2
> simple_switch CLI, you could probably use that to experiment.
>
> Best,
>
> Antonin
>
> On Mon, Oct 9, 2017 at 5:05 AM, mostafa ammar <mostafaammar79 at gmail.com>
> wrote:
>
>> Dear All,
>>
>> kindly is there an example to connect mininet network using P4 switches
>> to other network switches.  When using the openflow switches i used gre
>> tunnel interfaces to connect mininet network to a xenserver switch. Using
>> this connection all mininet hosts can communicate with other virtual
>> machines on the xenserver.
>>
>> _______________________________________________
>> P4-dev mailing list
>> P4-dev at lists.p4.org
>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>
>
>
>
> --
> Antonin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20171015/c6d52a2e/attachment-0002.html>


More information about the P4-dev mailing list