[P4-dev] Other L2 protocol in bmv2

Kuo-Feng Hsu kh42 at rice.edu
Sat Dec 30 11:36:17 EST 2017


Hi Antonin,

Thank you for confirming this!
I will try to test it.

Sincerely,
Kuo-Feng

引述 Antonin Bas <antonin at barefootnetworks.com>:

> Hi,
>
> The behavioral model uses libpcap to send and receive packets.
> If you use software interfaces (we use veth pairs by default) you should be
> able to handle any kind of traffic, even custom protocols (we are talking
> about a P4-programmable switch after all). I routinely send and process
> totally arbitrary packets for testing. The source routing tutorial is a
> good example of this:
> https://github.com/p4lang/tutorials/tree/master/SIGCOMM_2015/source_routing.
> If you are connecting a HW NIC to the behavioral model, you may need some
> more work. For example it is recommended to disable all hardware offloading.
>
> Thanks,
>
> Antonin
>
> On Fri, Dec 29, 2017 at 7:36 PM, Kuo-Feng Hsu <kh42 at rice.edu> wrote:
>
>> Hi all,
>>
>> Does anyone ever try a different L2 header other than ethernet in behavior
>> model?
>> For example, is it possible to use a Point-to-Point Protocol header?
>>
>> Thank you!
>>
>> Sincerely,
>> Kuo-Feng
>>
>>
>> _______________________________________________
>> P4-dev mailing list
>> P4-dev at lists.p4.org
>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>
>
>
>
> --
> Antonin







More information about the P4-dev mailing list