Skip to content

packet replication and elimination using P4 #393

@sachintiptur

Description

@sachintiptur

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,

  1. duplicates the incoming packets from sender and sends over the two different path to the same destination

  2. 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?

Thanks,
Sachin
p4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions