Comments (3)
这一问题在 kcptun server 也是可能出现的,只要满足 TCP rx 快于 kcp tx 即可能出现。
在 kcptun 内部的实现修改前的替代方案是使用多个 kcptun 进程,并使用 iptables 等负载均衡将 TCP 连接分配至多个 kcptun 进程。此时各 kcptun 进程会有不同的 udp sport ,可用 tc sfq 进行 QoS 。
from kcptun.
@yaleh 非常好的分析,这个问题我是这么解决的,对于LAN TO INTERNET来说,要做到绝对的流量均匀,必须要在IP层完成TC,即不能在四层做。 简单的解决方法是,OVPN over KCPTUN,在tun0上做tc,这样虽然ovpn会多一些头部,有效载荷变低,但这是最简单最可靠的解决办法,对于企业应用是非常合适的,虽然这样对于视频这样的大流量传输并不友好。
另外提醒一点,根据LARTC的描述,sfq是不能单独用的,需要配合htb设定来用。这部分我没有深究,因为我的场景已经完全够用。 企业应用的最大问题,就是网盘类应用占用大量的上行带宽,(主要是Amazon S3的上行),这点你可以根据S3的IP范围做iptable过滤,Amazon公布了IP范围的JSON。简单处理下即可。
另外,SNMP的里程碑版本已经发布,稳定快速,建议更新。
from kcptun.
查了下 iptables, hashlimit 应该可以在这一场景下配合 tc 实现降低大流量连接的 prio 。待会儿试一下。
from kcptun.
Related Issues (20)
- json文件中多实例运行配置 HOT 4
- target不能为udp端口嘛? HOT 1
- The official docker image is obsoleted. HOT 2
- 20230728 release was not completed? HOT 2
- udpsession read 优化
- 能否开发一个非插件形式的单独运行安卓APK程序 HOT 1
- Does the latest version support reverse connections? HOT 3
- 多连接乱序 HOT 2
- DSCP
- DSCP 功能测试不生效
- 关于kcptun的多端口跟udp2raw结合的配置问题 HOT 3
- client/main.go里没有显式关闭session会不会引起内存泄露 HOT 2
- 连接成功后突发长时间卡顿(可重现,卡顿较长时间自动恢复) HOT 3
- win7下面运行服务端报异常(Go 1.21开始不支持win7了T.T) HOT 8
- Any plans to support tun/tap device on X86/64 systems?
- he writes that the port is busy, why and how to configure it correctly to log in to ssh via "46.174.53.140" getting to ssh "81.50.60.330". HOT 1
- 希望能增加监听UDP的功能 HOT 3
- how do I connect wireguard on kcptunnel?
- 有没有其他提升网络质量的技术? 或者KCPTUNclient和server通信的时候能使用TCP隧道吗? HOT 3
- KCPTUN for data diode? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcptun.