[P4-discuss] Unable to Demo P4 tutorials

Antonin Bas antonin at barefootnetworks.com
Fri Apr 29 18:05:01 EDT 2016


Hi Vishal,

This is more a question for the p4-dev mailing list, as it concerns the P4
development tools.

I just tested on my machine with the latest version of everything
(behavioral model, p4c-bm, tutorials) and everything was working fine.
Maybe if you send the output of the run_switch.sh command, we will be able
to help you debug. I have observed that sometimes, the first time you run
run_switch.sh it fails, because libtool takes too long to load the shared
libraries for simple_switch and the script times out.
You can also edit run_switch.sh to add the --log-console option to
simple_switch. It will tell you if the packets are actually received and
processed by the switch.

Best,

Antonin

On Thu, Apr 28, 2016 at 7:54 PM, vishal sr <imvishalsr at gmail.com> wrote:

> Hello,
> I want to run the copy_to_cpu p4 program. I have done with all the
> necessary steps to run the demo and also ran the veth_setup. After
> configuring the switch and made listener ready, i could send one packet
> with send_one.py (Packet contents are displayed) but unable to receive them
> with receiver.py (packet is not displayed). I am getting the following
> warning so not sure whether the packet is transmitted.
>
> vishal at ubuntu:~/tutorials/examples/copy_to_cpu$ sudo python send_one.py
> WARNING: No route found for IPv6 destination :: (no default route?)
> 0000   AA BB CC DD EE FF 00 0C  29 4B CB 11 08 00 45 00   ........)K....E.
> 0010   00 3B 00 01 00 00 40 06  1E 89 C0 A8 90 81 0A 00   .;.... at .........
> 0020   01 0A 00 14 00 50 00 00  00 00 00 00 00 00 50 02   .....P........P.
> 0030   20 00 65 CB 00 00 61 61  61 61 61 61 61 61 61 61    .e...aaaaaaaaaa
> 0040   61 61 61 61 61 61 61 61  61                        aaaaaaaaa
> .
> Sent 1 packets.
>
> vishal at ubuntu:~/tutorials/examples/copy_to_cpu$ sudo python receive.py
> WARNING: No route found for IPv6 destination :: (no default route?)
>
> Sincerely,
> Vishal S
> _______________________________________________
> P4-discuss mailing list
> P4-discuss at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-discuss_lists.p4.org
>



-- 
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-discuss_lists.p4.org/attachments/20160429/3017f8c3/attachment-0002.html>


More information about the P4-discuss mailing list