tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Packet aggregation

Open amir-raoofy opened this issue 1 year ago • 2 comments

Hi p4 community,

I am looking for an example p4 program that is kind of similar to calc tutorial, but instead of getting the operands from a single packets, I intend to get the operands from multiple packets. It is kind of an example to do aggregation of payloads of multiple packets which probably requires packet buffering.

Can this be done via P4? Do you have examples that might resemble this?

These are the closest pointer I found: https://github.com/LittleD3092/reliable-in-network-aggregation/tree/master and https://www.sciencedirect.com/science/article/pii/S1084804519301687

I appreciate your input. Thanks!

amir-raoofy avatar Jul 17 '24 14:07 amir-raoofy

The first example that comes to my mind is this one, which is intended to do vector integer addition of data across different packet payloads, as a way to assist some kinds of collective operations like AllReduce being done by the hosts, but with the switches accelerating the operation.

https://github.com/p4lang/p4app-switchML

jafingerhut avatar Jul 17 '24 15:07 jafingerhut

Dear Andy,

Many thanks for sharing this pointer. That is exactly what I am looking for. I will have a deeper look into it.

BTW. this is the context of our research: https://www.ce.cit.tum.de/caps/laufende-projekte/scalnext/

Further pointers around this are highly appreciated (collectives was already a direct hit ;-) ).

Regards, Amir

amir-raoofy avatar Jul 18 '24 08:07 amir-raoofy

Closing this issue, as there have been no follow-ups for a while. Feel free to reopen if desired, or simply create a new issue.

jafingerhut avatar Nov 06 '24 16:11 jafingerhut