Tuning PPP over 2G GPRS: MRU and MTU

來源:互聯網
上載者:User

From: http://www.net42.co.uk/os/linux/ppp_gprs_tuning.html

 

MTU & MRU seem to have a drastic effect on usability, but I've not seen this discussed for GPRS.

This is just a quick note to report a drastic improvement in the usability
of GPRS on Linux in 2G service areas (GSM not UMTS) by setting small values
for PPP's MTU and MRU parameters.

 

I have made a quick post to the PPP board on the Pharscape.org forums,
to see whether anyone knows a bit more....

Update Feb 01. 2007: Tests using Linux KPPP with a Vodafone SIM card (APN: 'internet'), both on a 2G GSM phone
and in an Option Fusion GT+ datacard, suggest that Vodafone 2G GPRS doesn't need you
to tweak the MTU + MRU. So either Vodafone is doing this automatically, or there's something
about their UK network that makes this unnecessary.

 

By contrast, TMUK's 2G GPRS network (APN: 'general.t-mobile.uk')
doesn't work properly unless you adjust MTU + MRU.

 

I've tried un-commenting 'debug' (and setting 'kdebug' to 1) in
/etc/ppp/options in order to see PPP option negotiations in
/var/log/debug,
but although this shows a lot of stuff, it doesn't show MTU + MRU being
negotiated.
If I get time I'll try setting 'kdebug' to 5, but I think that will
just show data packets as well.

Posted: Mon Jan 29, 2007 1:13 am     Post subject: Tuning KPPP for 2G GPRS

Are there any rules of thumb for this?

Some quick tests of my own suggest that MRU / MTU really benefit from tweaking!
This is with T-Mobile UK using a Novatel Wireless EU740 card in a non-3G service area.

With default settings in KPPP: (only parameter set = "novj")
=======================================
- pings work OK
- but web access is almost unusable
- logs show few requests reach the web server
- Wireshark shows lots of repeated HTTP GET requests every few secs

With mildly optimised settings in KPP:
========================

- Settings: "novj", "mru 296", "mtu 296"
(nothing magic about these numbers, but "man pppd" suggests them
for very slow links)

- Ping times much the same

- Now the web is MUCH more usable! Not quick, but fairly predictable.
I'm posting this over 2G GPRS. Page fetch requests don't time out, they just take a while.

Presumably this setting will reduce the speed in 3G service areas, but I guess
it's probably worth it to make this thing usable.

I'd be very grateful for your thoughts! And for any more tweaks,

Cheers

_________________
-- Martin.
(Novatel Wireless EU740 on T-Mobile UK,
Kubuntu Edgy Eft 2.6.17-10-generic)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.