简体   繁体   English

创建Linux数据包拆分器

[英]Create a Linux packet splitter

I am looking for some hints to build a network packet splitter. 我正在寻找建立网络数据包分配器的一些提示。 What i want is some sort of tools/code that split the packets of a logic link (tcp/ip connection for ex.) over several network interfaces. 我想要的是某种工具/代码,它通过多个网络接口分割逻辑链路的数据包 (例如tcp / ip连接)。

I used with success the Linux bonding driver, however the best performance is only achieved when the bandwidth/latency of the several network interfaces is similar, since the bonding driver uses round robin packet splitting. 我成功使用了Linux绑定驱动程序,但是只有当几个网络接口的带宽/延迟相似时才能实现最佳性能,因为绑定驱动程序使用循环数据包拆分。

Anyone know any tool that can effectively split packets (not logical links) over network interfaces using a weighted manner , instead of round robin manner? 任何人都知道任何可以使用加权方式而不是循环方式在网络接口上有效分割数据包 (非逻辑链路)的工具吗?

You can use sysfs to change your bonding mode to a more effective choice for your setup. 您可以使用sysfs将绑定模式更改为更有效的设置选择。
/sys/class/net/bond0/bonding/mode

You may have some luck also changing the queue_id in the same place to make different adapters more important. 您可能还有一些运气也在同一个地方更改queue_id ,以使不同的适配器更重要。

Take a look at the Linux bonding documentation for information about the settings. 有关设置的信息,请查看Linux绑定文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM