12 April
2006

Globe Visibility on Debian GNU/Linux

"Internet Anywhere" with Globe's Unlimited GPRS Offering

Globe Telecoms recently launched their unlimited Internet offering called Visibility. Commercially it's offered as part of a number of plans, including a PhP2,500/month plan that comes with unlimited 3.5G/EDGE/GPRS, Wi-Fi in Wiz hotspots and dial-up, or a PhP1,700/month plan for unlimited 3.5G/EDGE/GPRS. This basically provides Internet access anywhere in the country, although neither Globe Visibility nor PLDT WeRoam work in areas without cell coverage or in areas with GSM-only coverage using cell sites connected to their infrastructure using VSAT. The latter is rare, and usually means really far flung areas.


Thanks to a project I'm doing for Pilipinas Shell, I have a test Globe Visibility kit, which includes a Sony Ericsson GC85 PCMCIA EDGE/GPRS modem. It was a no-brainer getting Globe Visibility working on my mom's Fujitsu Lifebook P7010 running Microsoft Windows XP Home, using the Sony Ericsson Wireless Manager v3.4.1.1518.

Getting the service to work reliably on my P7010 running Debian GNU/Linux Sarge with Linux 2.6.16 has been an "80-20 struggle", though. Initially, it's a pretty straightforward affair. The GC85 is detected by Linux as a standard PCMCIA serial adapter, and is assigned /dev/ttyS2. Getting wvdial (or GNOME PPP, which uses wvdial underneath) to support this is equally straightforward. The relevant configuration options are as follows:


  • Modem: /dev/ttyS2

  • Baud: 230400

  • Init1: AT+CFUN=1,1

  • Init2: ATZ

  • Init3: AT+CGQREQ=1,0,0,0,0,0

  • Init4: AT+CGQMIN=1,0,0,0,0,0

  • Init5: AT+CGDCONT=1,"IP","internet.globe.com.ph","",0,0

  • Phone: *99***1#

  • Username: globe

  • Password: globe


The remaining 20% of the job has been rather frustrating, though. Here are some of the problems I ran into, and the ways around them that I've found so far:

  • LCP Echo: By default, the GNU/Linux pppd sends LCP Echo packets every 30 seconds, and terminates the link when no echo-reply is received after four tries. Since most GPRS services don't send a proper echo-reply, that's exactly two minutes of online time before the pppd disconnects the link. Fixing this needs a system-wide override by modifying /etc/ppp/options, since wvdial doesn't have an option to override this. People who use pon/poff can revise the appropriate file in /etc/ppp/peers Some sites recommend disabling this completely by setting lcp-echo-failure and lcp-echo-interval to 0, but I've found that it works better to keep lcp-echo-interval at the default value of 30, but setting lcp-echo-failure to 0.

  • TCP Congestion: With the two-minute limitation out of the way, the next problem I ran into was getting booted out by the provider (Globe, in this case) during spikes of TCP session initiation. This was easy to trigger with my multitasking habits like using a bookmark of five tabs for my favorite tech news sites. Interestingly, Postfix with its default concurrency level triggers this when it tries to send out queued mail, too. I seem to have fixed this by enabling Explicit Congestion Notification (ECN) in the Linux kernel. Most modern Linux kernels have ECN support by default, but this is usually not enabled. This can be enabled by setting /proc/net/ipv4/tcp_ecn to 1, or by adding net/ipv4/tcp_ecn = 1 to /etc/sysctl.conf.

  • Stalled Sessions: This is a problem that I haven't found a fix for, primarily because I can't find a way to reproduce it. Basically what happens is that the PPP session just stalls. No traffic goes through, but it isn't terminated, either. I haven't seen a pattern for this, so far. It doesn't seem to be caused by idle time, connection time, or bandwidth use. It doesn't seem to be signal strength, either, and is definitely not cell site handover since I'm stationary. I've Googled quite a bit, but haven't found any similar reports online, so more details will follow when I have more to report.

  • Disconnection on First Attempt: The first connection attempt after the modem is connected (ie: right after bootup, or after you remove then reconnect the modem) always gets disconnected immediately after PPP is established. According to the logs, pppd received a TermReq packet from the Globe server, which is weird. Things work fine right after, so it's not a showstopper.


Overall, I'm pretty happy with the Globe Visibility service on both Microsoft Windows XP and Debian GNU/Linux, even in places where neither EDGE nor 3.5G are available, like the beach house where I'm at in Batangas. The Wireless Manager (unfortunately no similar client for GNU/Linux) reports three to four bars, and GPRS speeds go up to about 6KB/sec with latencies at around 1000ms. Areas like most of Metro Manila which have EDGE have actual throughput going up to about 12KB/sec, with 3.5G supposedly doing even much better for both latency and throughput.

Although nothing fantastic compared to today's broadband standards, this works pretty well for asynchronous tasks like email using POP3 and SMTP, or instant messaging. Web browsing is a tad sluggish, but with well-planned surfing habits, is more than just bearable. Remote server administration using SSH is painful, though, because of the latency penalty. VoIP will probably be even more sluggish, if it works at all.

As soon as I get back to Manila I plan to get a GlobeTrotter HSDPA unit from Globe to give it a spin. The GlobeTrotter HSDPA is one of two 3.5G/EDGE/GPRS modems that they provide. The other modem is the Huawei E620, which unfortunately doesn't seem to be supported by Linux (and definitely isn't supported by the vanilla 2.6.16 kernel that I use).

Posted by Federico Sevilla III at 15:45 | Comments (10)
Comments
PLUG Discussion

I sent an email to the Philippine Linux Users' Group (PLUG) mailing list in an effort to solicit input from fellow GNU/Linux users. Those interested may read the thread through the archives: http://archives.free.net.ph/message/20060413.010606.c4e61af2.en.html.

Posted by: Federico Sevilla III at April 13,2006 09:18
Re: Globe Visibility on Debian GNU/Linux

3.5G? Does this mean Globe already has HSDPA in its arsenal? Wow I'd like to try that out.

Posted by: JSG at April 15,2006 14:40
Re: Globe Visibility on Debian GNU/Linux

Yes, Globe already has HSDPA in their arsenal. I will be trying out the GlobeTrotter HSDPA PCMCIA modem as soon as Globe can provide me with one, and will post an update about my tests. The Huawei E620 HSDPA PCMCIA modem is already available, but doesn't work on Linux.

I just got word from Globe that to subscribe to the Globe Visibility service you need to be an employee of one of the Philippines' Top 5000 Corporations, as published by the Securities and Exchange Commission (SEC). I don't understand the logic behind this requirement, but it's there so...

Posted by: Federico Sevilla III at April 16,2006 07:38
Re: Globe Visibility on Debian GNU/Linux

That's pretty dodgy, although I'm very much sold to the fact that HSDPA will be targetted primarily to the enterprise (most global deployments have the same strategy). In AU, its very much the same - UMTS is pretty much only available in urban areas, but then that's understandable since the land mass is much bigger compared to PH. When I was in Zamboanga last March, Smart's 3G was dominant and I really used it to the max.

Posted by: JSG at April 16,2006 12:44
Re: Globe Visibility on Debian GNU/Linux

hmmm..

thats the same gimmick of PLDT when they introduced pldt weroam way way back...

Now, they are trying their best to dispose their sierra wireless card as much as they can because its going to be obsolete due to 3G.

if only PLDT allowed weroam to anyone who can afford, they dont have that problem now.

Now, globe is trying the same marketing style,
top5000 companies?!? st*pid policy again...

lots of people are paying for P4000/month for their dsl.
why cant they afford P2500 for visibility?

hmmm... pa effect lang ng globe yang offered
only to top5000




Posted by: kapitan wireless at April 19,2006 00:53
Re: Globe Visibility on Debian GNU/Linux

Looks like Globe might be doing a better job with Visibility than WeRoam? Having good Linux support is a step in the right direction!

Posted by: Horatio Bogbindero at April 19,2006 09:20
Re: Globe Visibility on Debian GNU/Linux

The Top 5000 guarantee is probably because the CPE costs more than $300 (google/froogle for 3G UMTS cards). Perhaps if you're willing to buy this outright then they would waive the requirement.

Posted by: Migs at April 20,2006 10:24
Re: Globe Visibility on Debian GNU/Linux

And they have to tie this into a Corporate Account. This is were Globe is strong.

Posted by: Horatio B. Bogbindero at April 20,2006 10:45
Re: Globe Visibility on Debian GNU/Linux

Hi Jijo, i was wondering if you have tried Globe's Visibility service with the HSDPA card?i tried calling 211 and asked if they would have an unlimited plan like visibility's 1700 unlimited GPRS plan. Is it really that fast?

Posted by: duhmask at May 03,2006 23:24
Re: Globe Visibility on Debian GNU/Linux

I haven't tried Globe's HSDPA service, yet. They only have the Huawei HSDPA PCMCIA cards, which don't work on Linux. The GlobeTrotter HSDPA PCMCIA cards are taking forever to arrive.

Posted by: Federico Sevilla III at May 05,2006 08:59