简体   繁体   English

智能手机上的Android Tune TCP流量控制?

[英]Android Tune TCP flow control on Smart phones?

I am new to ANdroid development (but have worked on linux)..We can tune TCP parameters(window size..etc) to get better performance on desktop's either windows or linux. 我是ANdroid开发的新手(但已经在linux上工作过)。我们可以调整TCP参数(window size..etc)以在桌面或Windows上获得更好的性能。

Was wondering can we do the same on andriod based smart phones? 想知道我们可以在基于andriod的智能手机上做同样的事吗? ...i was informed that only on root access devices we can do it...how about non-root access devices? ...我被告知只有在root访问设备上我们才能做到这一点......非root访问设备如何?

This for all TCP based connections initiated from android device and not specific to a socket. 这适用于从Android设备启动的所有基于TCP的连接,而不是特定于套接字。 I was solution something similar to what we do desktop/laptop's ....ie configure the TCP parameters in the OS example increasing windo size. 我的解决方案类似于我们的桌面/笔记本电脑......即在OS示例中配置TCP参数增加windo大小。 so that any further connections started/initiated from the box would use that as the default value... Thx in advance 这样从盒子开始/启动的任何进一步的连接将使用它作为默认值... Thx提前

This sounds like you aren't working with an app, you want the whole system(2g/3g/4g/wifi etc.) to move faster, correct? 这听起来好像你没有使用应用程序,你想要整个系统(2g / 3g / 4g / wifi等)移动得更快,更正确吗?

In that case you must be rooted and the solution to your question is to flash a custom kernel that supports those options in its network stack. 在这种情况下,您必须扎根并且您的问题的解决方案是在其网络堆栈中刷新支持这些选项的自定义内核。

With a custom kernel you can easily set the TCP congestion algorithm to your preference. 使用自定义内核,您可以轻松地根据您的喜好设置TCP拥塞算法。

There are Socket.setSendBufferSize() and Socket.setReceiveBufferSize() . Socket.setSendBufferSize()Socket.setReceiveBufferSize() I don't see any reason why root privileges should be required. 我没有看到为什么需要root权限的原因。

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

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