- 
                Notifications
    You must be signed in to change notification settings 
- Fork 913
Description
Hi P4 developers,
I am working on a internship topic related to deterministic networks. We are trying to implement packet replication and elimination as part of this. I came across p4 and started with tutorials and thought of using bmv2 simple_switch(tutorial code base and vm image) for this.
Can you please give me pointers or leads to study further and how can I implement the packet elimination and replication functionality. Also if any example code where such functionality is supported. It will be of great useful to me.
Requirement: Below is the network topology. In this, p4 switches on the edge,
- 
duplicates the incoming packets from sender and sends over the two different path to the same destination 
- 
Eliminates the duplicate packet(if already one is received) on the receiving side 
 PS: for elimination of duplicate pkt, i need to store identity of pkt(may be checksum of payload or introduce a sequence number) in a table. is it possible in p4 to write(write access from p4 program, not from control plane program) to tables while data path processing or should i consider any other way of implementing elimination algorithm?
