Score:-1

Assembling the number of small data packets into the big one (in Linux Gateway)

id flag
Ben

Is there any way to collect (assemble) incoming small data packets with MTU 1500 into the big ones with higher MTU (Jumbo frame, 16K, or even 64K), and then forward the new big data packets (with higher MTU) to the network (or tunnel)? As I know there is some feature in the kernel like GSO, GRO, and TSO,...which work with data packets. For example; TSO spilt large data packets into small parts and sends them, and LRO collects small segmented data packets (by TSO) to the original one. But these features are not compatible with my case. I'd like to know is there any other technique like LRO for collecting (or assembling) data packets (not already segmented data packets) in the buffer and creating the big one (Jumbo and higher than Jumbo? I would appreciate any suggestion.

cn flag
That sounds like any device that functions like a router or has multiple interfaces.
Ben avatar
id flag
Ben
@GregAskew Yes, I use Ubuntu 20.04 as a gateway (DHCP server). I want to collect and merge incoming small data packets into the big ones, and then forward them to the network.
vidarlo avatar
ar flag
*Why* would you want to do this?
Ben avatar
id flag
Ben
@vidarlo Good question! I use a tunnel on the gateway and I need to send big packets to the storage server, for decreasing I/O. Also for data packet processing is better to deal with higher MTU. Maybe you have a solution for it?
djdomi avatar
za flag
@ben I would suggest that you take a moment or two, to update your question, due currently written its shortly said, off topic. product, software and/or service recommendations are not on topic
Ben avatar
id flag
Ben
@djdomi I edited it, and I tried to explain my idea clearly. Thanks for the recommendation.
djdomi avatar
za flag
thanks for the update, but I think imho it's somekind of [x-and--problem](https://faq-database.de/doku.php?id=en:x-and-y-problem) included. as long as you hide critical information from us, how shall we proceed? Are the topic "is not working for me" a frase for top secret appliances? Are these information confidential? ;) please take also a note on [this](https://meta.serverfault.com/questions/3608/how-can-I-ask-better-questions-on-Server-fault)
vidarlo avatar
ar flag
@Ben Go with whatever size the incoming packets is. IO is not directly related to MTU anyway.
Ben avatar
id flag
Ben
@vidarlo Great. what about data packet processing, like compression and encryption? e.g. If we have big data packets we can compress them better than small ones.
aikipooh avatar
it flag
@vidarlo, I'm involved in this task too:) So the idea is to send big packets into the tunnel, because that tunnel compresses and encrypts internally. When testing it was a tremendous improvement in throughput if the packets are big. Hence this idea.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.