I have a Pantech Flex and this LG Optimus G. I have this MTU changer app. The app can read the values of RMNet, RMNet_USB and WiFi.
On the Flex, the app reads the MTU value as 1410 on RMNet. RMNet_USB and WiFi values could not be read by the app.
On the OG, the app reads the MTU value at 2000 for RMNet, 1500 for RMNet_USB and WiFi.
On the Flex, browsing on the phone and on tethered devices work flawless.
On the OG, the MTU value for RMNet_USB has to be set to 1464 or lower for browsing to work on the phone. On default values, browsing is not possible. Even if MTU value is changed, tethered devices has browsing issues. Some sites would not load.
Any ideas? fix? Thanks for reading.
roshaun said:
I have a Pantech Flex and this LG Optimus G. I have this MTU changer app. The app can read the values of RMNet, RMNet_USB and WiFi.
On the Flex, the app reads the MTU value as 1410 on RMNet. RMNet_USB and WiFi values could not be read by the app.
On the OG, the app reads the MTU value at 2000 for RMNet, 1500 for RMNet_USB and WiFi.
On the Flex, browsing on the phone and on tethered devices work flawless.
On the OG, the MTU value for RMNet_USB has to be set to 1464 or lower for browsing to work on the phone. On default values, browsing is not possible. Even if MTU value is changed, tethered devices has browsing issues. Some sites would not load.
Any ideas? fix? Thanks for reading.
Click to expand...
Click to collapse
1465 is the breaking point for most HTTPS on AT&T LTE. The recommended MTU size on AT&T is 1430. The default has been 1410 for a while now.
Keep in mind the interface name for each network adapter can vary from android to android. Use terminal emulator on a rooted device; run netcfg to see which is the mobile adapter, then find its MTU value using "ip link list".
u can also push mtu to connecting devices:
http://kaffeine.cf/2016/02/05/forcing-mtu-for-clients-of-androidap/
Related
Hey I found this on Modaco, I tried it out, and everything works great. Hopefully no one else has posted this as a thread, if so sorry! Here is the link ----> http://goo.gl/JV7W
Baranacle Wifi Settings:
1. Change SSID - [User Preference]
2. Change Channel - 6
3. Custom Wifi Ad-hoc - NONE
4. Skip wpa_supplicant - CHECK
5. Restart Phone As Desired
Settings For Windows:
Open cmd.exe as administrator
C:\Windows\system32>netsh interface ipv4 set subinterface "Wireless Network Connection" mtu=1250 store=persistent
This is assuming your wireless network adapter is called "Wireless Network Connection"
Fix For Mac:
System Preferences>Network>
Under Airport select advanced>ethernet tab
Set Configure to Custom and use 1250 MTU
I did NOT figure this out, just found on Modaco.
Good find! I'll test it out when I hit home!
P.S. I actually loaded webpages, so unlike googles wifitether where it shows it works, this actually does.
Those instructions along with this morning's Barnacle update and I am fully online now.
Worked perfectly on my mac! Thanks again!
This was posted a day or two ago but it's buried deep in a thread somewhere. I tried the settings and they work for Edge but not 3G. I tried it today with an iTouch and it connected but when I tried to surf around it disconnected. :-/
I might need to play around with it again (with the new Barnacle update) if people are having good luck.
works great, thanks!
This did not work for my Vibrant trying to connect wifi to my Toshiba NB 205. Message "NAT restart Message too long" repeats every few seconds.
Pneumatic said:
This was posted a day or two ago but it's buried deep in a thread somewhere. I tried the settings and they work for Edge but not 3G. I tried it today with an iTouch and it connected but when I tried to surf around it disconnected. :-/
I might need to play around with it again (with the new Barnacle update) if people are having good luck.
Click to expand...
Click to collapse
Worked great when I was using it with 3G, must have been the new update?
Halieus said:
This did not work for my Vibrant trying to connect wifi to my Toshiba NB 205. Message "NAT restart Message too long" repeats every few seconds.
Click to expand...
Click to collapse
did you get that fixed?
I am seeing the NAT restart message as well.
neema said:
I am seeing the NAT restart message as well.
Click to expand...
Click to collapse
To fix the NAT errors, you need to set your computer to use MTU of 1250. This is supposed to be fixed in the next release of Barnacle. But for now, if you make this change, it will work. See the first post in this thread for instructions. I use a Mac, but setting the MTU in System Prefs wouldn't stick for me. But this command worked:
sudo ifconfig en1 mtu 1250
I noticed that I keep getting the NAT restart error on my ipod touch but I am able to continue browsing the internet. Anyone tried this with success as well or possibly tried this with an iPad?
RaistlinMajere said:
To fix the NAT errors, you need to set your computer to use MTU of 1250. This is supposed to be fixed in the next release of Barnacle.
Click to expand...
Click to collapse
Thanks, I will have to wait for the release, I do not have the ability to adjust MTU settings on the device I want to connect. I assume it is the normal 1400 and does not support changing it.
They just posted an update in the market. It seems to work, but I haven't tried to surf yet. I will try when I get home.
I can confirm that Barnacle is working as a wifi tether on a rooted Vibrant.
I am using Ubuntu. I did have to set MTU for wlan0 (my laptops wireless device name, yours may vary) to 1250.
In Ubuntu you can change this (gui way):
System -> Administration -> Network Tools
Then:
Wireless -> (Your Vibrants SSID) Click Edit
Set MTU to 1250 instead of automatic
Or the command line way:
ifconfig wlan0 mtu 1250
The command line way is for the device! In this case I recommend the gui way (first time ever)
Did a speed test: 1.01 Down .33 Up Ping: 128ms (A little lower than I am used to being tethered, but it works and that's all I need)
Can confirm the current version in the market works *IF* you set your MTU to 1200 in windows, to do this w/ Windows 7:
(From an elevated command prompt):
Code:
netsh interface ipv4 set subinterface "Wireless Network Connection" mtu=1200 store=persistent
Just did a speedtest while tethered, 3.58mb/s down, 1.28mb/s up w/ 105ms ping!
It's not working with the iPad using 3G. I can still connect using Edge but it's really slow.
Still waiting for a total fix.
I get the "NAT restart" error when I'm on 3G but it works fine one EDGE
New version just went live in the Market.
I need to change it to 1400, but after endless searches I have no clue. Is there any way to change the mtu settings and what is the default mtu setting for the vibrant (is it 1500?).
I found this thread, but it deals with windows mobile phones.
I need to do this because many downloads time out and need to reconnect.
Not sure you I understand the need but here is a basic description:
If things are working correctly MTU is "discovered" when the session is initiated.
MTU can change anyplace in the path. There is so much equipment there is no way to know for sure.
The one place that MTU size has a large impact is when the do not fragment flag is set. Normally a device that cannot pass it will return a messages via ICMP that says fragmentation required but the flag is set and drop the packet. The client then resends it with a smaller MTU. When a firewall blocks this message (some people do not know ICMP is not always ping) you get very strange and hard to debug issues.
Packet fragmentation used to be a much larger issue. Depends what device is doing the reassembly of the packet. PCs now days have plenty of power and so do most routers and firewalls.
There is also the issue of extra overhead for the tcp header on the fragments but bandwidth is huge so that also makes little difference.
The only MTU settings that make a large performance difference is when you can run jumbo frames but this is limited to equipment that can support this.
I think the timeouts may be a result of tower traffic kick off and slow transfer rate, and changing the MTU probably won't make a difference unless you are trying to connect to a specific site.
Hope that helps...
when I tether my phone to my pc, I had trouble d/l files because they would time out and the tether connection would be dropped as a result
After changing the mtu for this connection on my pc from the default of 1500 down to a lower value, the files downloaded properly and there was no dropping of connection.
Now when I download directly from my phone (no tethering), the same thing happens where the downloads time out. I'm wondering if there is a similar process where I could change the mtu settings on my phone like I did on my pc so that it only accepts a certain size of packets plus header instead of the default which I think is 1500.
My Motorola Razr has wifi tethering. However, there is an issue where not all websites will load unless the client PC or tablet's MTU is set to 1478 or lower. Ridiculous I know.
Does anyone know how to change the MTU on Gingerbread?
I'd like to tweak the tcp.rmem settings that come stock. The maximum buffer size (110208 bytes) is quite low for a high speed connection.
I've tried build.prop, init.rc, and init.local.rc. I checked the results with "sysctl -a | grep tcp".
/system/build.prop - no effect (is everybody around the web enjoying placebo?)
net.tcp.buffersize.default=4096,87380,524288,4096,16384,110208
net.tcp.buffersize.wifi=4096,87380,524288,4096,16384,110208
/system/etc/init.local.rc - doesn't seem to be used by the OS?
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,110208;
setprop net.tcp.buffersize.wifi 4096,87380,524288,4096,16384,110208;
/init.rc - is seemingly recreated on each boot with some predefined numbers
setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,110208;
setprop net.tcp.buffersize.wifi 4096,87380,524288,4096,16384,110208;
[in these values the first three #s are receive (min,start,max), second three are send (min,start,max)]. TCP auto adjusts between min and max.
issuing the setprop commands by terminal works but that isn't really ideal.
Are these the default values? What optimized values should we set from the terminal?
You could try smanager to run a script that changes the values.
Sent from my BNTV250 using XDA
defaults are (init.rc):
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
the first 110208 in these is the max allowed tcp receive buffer size and it really isn't ideal for say a 10+ mbps connection. A value of 262144 would be more appropriate. Even 524288 perhaps for 20-30 mbps though a 63mbps wifi connection is probably too slow for this to be beneficial.
good idea on just using a custom script.....
I have successfully set up V6 Supercharger Script on CM9 so I would assume it should work on CM7 if that's what you are running. If you want to go that route. May be placebo effect but it seemed to make an improvement in many areas.
Sent from my CM9 Nook Tablet using Tapatalk
swaaye said:
defaults are (init.rc):
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
the first 110208 in these is the max allowed tcp receive buffer size and it really isn't ideal for say a 10+ mbps connection. A value of 262144 would be more appropriate. Even 524288 perhaps for 20-30 mbps though a 63mbps wifi connection is probably too slow for this to be beneficial.
good idea on just using a custom script.....
Click to expand...
Click to collapse
I believe (and this is not a 100% sure guarantee) that the stock values are set in the source, in the driver code for the linux networking stack. If that's the case, the easiest way is to run the aforementioned script to just set it to different values on boot.
Can you get values through, say,
Code:
cat /proc/sys/net/ipv4/tcp_mem
?
The default allocated memory is based on system ram. But, if you're on a ~10mbps connection, you're not going to notice much of a pickup over stock with 26kb of tcp buffer. I mean, on a 10MBPS connection you should have low latency (well under 100ms), increasing the buffer won't 'speed it up'.
However, this site recommends setting it to 12MB (12582912), to increase performance on higher-latency connections (essentially, not local connections). Try that?
Hi everyone.
I'm trying to bypass my ISPs throttling with changing MTU. If I connect the cellular network with changed MTU, I can bypass (For example, each month first 300MB is very fast but after that my internet speed generally 128 Kbps even though my data plan is unlimited. And there is no law about this throttling, I told problem to customer service then I complained my problem to other authorities, still no result). But I can't change my MTU before connect the cellular network, the interface of cellular network can't seen. I used that command when cellular data on in Terminal Emulator app with superuser privileges:
Code:
ifconfig rmnet_data0 mtu 8511
I tried an app for changing MTU, too. On reboot or disconnect from cellular network, MTU 1500 again. So I need change MTU permanently. I googled and really struggled but no result. I'm thinking that a file that storing default MTU info of all interfaces. Sorry for my bad english. I need help
Device: Redmi 5 Plus 4/64 Global
ROM: MIUI Global 10.2.3 Stable with Magisk and OrangeFox Recovery R9.0
Maybe I should write this under general android development