[P4-dev] simple_switch on mininet sends all to port 0

Antonin Bas antonin at barefootnetworks.com
Fri Apr 28 21:37:44 EDT 2017


This is the default behavior if you do not set a unicast port in the
ingress pipeline, i.e. if you do not write the desired port value to the
standard_metadata.egress_spec field.

On Fri, Apr 28, 2017 at 5:47 PM, Regis Martins <regisftm at gmail.com> wrote:

> Hello everyone!
>
> I'm trying to run the 1sw_demo.py using simple_switch.
>
> sudo python 1sw_demo.py --behavioral-exe /usr/local/bin/simple_switch
> --json ../../switch/p4-build/bmpd/switch.json
>
> It starts mininet with no problem... however no ping between h1 and h2.
>
> Looking in the nanomsg I could see that all packets are sent to port_out:
> 0, which does not exists.
>
>
> mininet> pingall
> *** Ping: testing ping reachability
> h1 -> X
>
> type: PACKET_IN, switch_id: 0, cxt_id: 0, sig: 8913935704055548682, id:
> 13, copy_id: 0, port_in: 1
> ...
> type: PACKET_OUT, switch_id: 0, cxt_id: 0, sig: 8913935704055548682, id:
> 13, copy_id: 0, port_out: 0
>
>
> h2 -> X
>
> type: PACKET_IN, switch_id: 0, cxt_id: 0, sig: 7739991354702958702, id:
> 14, copy_id: 0, port_in: 2
> ...
> type: PACKET_OUT, switch_id: 0, cxt_id: 0, sig: 7739991354702958702, id:
> 14, copy_id: 0, port_out: 0
>
> Any clue about what is happening?
>
> Thank you so much,
>
>
> *Regis Martins*
>
> _______________________________________________
> 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/20170428/fb3d0980/attachment-0002.html>


More information about the P4-dev mailing list