[P4-dev] How to populate tables for match+action for real traffic

David Hancock dhancock at cs.utah.edu
Tue Feb 2 11:26:23 EST 2016


I don't think this is really a P4 question.  It sounds like you are 
asking how to identify the IP addresses you need to populate the tables 
of your application.  You either go get the IP addresses for the 
machines that you know will be sending traffic through your application, 
or you use longest prefix matching to route traffic by network or 
subnet.  Forgive me if I'm misunderstanding, but I think you are asking 
about how to do ifconfig / ipconfig.  Perhaps you could clarify what you 


On 02/02/2016 09:05 AM, Swaroop Thool wrote:
> Hello Everyone,
> Its been long time finally mailing list is resurrected :) Thank you P4 
> community
> I have question:
> As far as now I have been using mininet for creating virtual hosts for 
> sending packets between them. My application program is based on 
> simple router structure which requires populating tables by the IPs 
> ,MAC address, port no. information and this are hard-coded for 
> simulation as I know the IPs of mininet created hosts. The host 
> created in mininet have IPs as, and so on which I can 
> directly write in table population commands.txt file. However, now 
> when I want to pass real traffic through eth0 for my P4 program so how 
> should I know IPs of that traffic which should already present in 
> populating table entries.
> I am going/thinking in wrong way? Is there any way to do that?
> Please help
> Thanks,
> Swaroop
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160202/0063a5e0/attachment-0002.html>

More information about the P4-dev mailing list