IP fragmentation

Alexander Petrovsky <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAH57y_Rxm9_eB5jyjJ2OryLd6HB6mXSG8s-MR3BWs-99PVNG0g@mail.gmail.com>
Hello!

I have the eBPF/XDP based balancing router, it looks like facebook
katran, but a little bit smarter, we use random based balancing
algorithm, so also we have to learn how to sync connections between
nodes.

But, the main problem for us it's fragmented IP packets. Some times
ago I tried to use for such packets AF_XDP, fast pass them into the
user space, accumulate and after that pass back to the network, it was
a PoC. So, I wonder, is some chance that IP de-fragmentation functions
will be added into XDP?

Also, I have a strange idea, I could store such fragmented packets in
the LRU map, the original fragmented IP packet I could drop. When all
the fragments stored, I could make the decision about the destination
for balancing/routing. But now, here come problems, seems I could
construct a big packet / jumbo frame, but it seems a little bit ugly.
How could I emit all fragments from the map to the network after I've
got the last fragment?

-- 
Alexander Petrovsky
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.