Re: Mobile Broadband - disconnect after 2 mins.
On Thu, Oct 23, 2008 at 11:04 AM, Dan Williams <[EMAIL PROTECTED]> wrote: > lcp-echo-* are always written in svn r4209, including when they are 0. > > Dan You rock... thanks, Dan. -- Gilbert Mendoza PGP: 0x075DBCA9 Email: gmendoza at gmail.com http://www.savvyadmin.com https://launchpad.net/~gmendoza https://wiki.ubuntu.com/GilbertMendoza ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Mobile Broadband - disconnect after 2 mins.
On Thu, 2008-10-23 at 13:48 -0400, Dan Williams wrote: > On Thu, 2008-10-23 at 00:17 +0100, Rick Jones wrote: > > --On Wednesday, October 22, 2008 13:48:21 -0700 Gilbert Mendoza > > <[EMAIL PROTECTED]> wrote: > > The CDMA connection does not have the "Send ppp echo > > ¦ packets" checked... which was explained to me as LCP echo. > > ¦ > > ¦ In the bug report, I also noted a work around, which is to disable > > LCP > > ¦ echo requests and interval setting in the global PPP options file: > > ¦ > > ¦ /etc/ppp/options: > > ¦ > > ¦ lcp-echo-interval 0 > > ¦ lcp-echo-failure 0 > > So the pppd defaults appear to be to ignore LCP echos. If the box in > the connection editor is unchecked, NM will _not_ send lcp-echo-interval > or lcp-echo-failure to pppd. > > However, if those options were specified in /etc/ppp/options at all, it > appears that pppd will read that file no matter what, and thus you'll > get lcp echos turned on even if NM didn't tell pppd to turn them on. > > I will modify NetworkManager to always pass lcp-echo-interval and > lcp-echo-failure as "0" whenever the box is unchecked in the connection > editor, to ensure that /etc/ppp/options gets overridden, and that people > don't get whiplash from stupid pppd config hierarchy... > > > Yes, well spotted! Thanks, I'd forgotten about default ppp options, > > that tweak works for me too. So the problem is 2-fold: > > > > 1. The "PPP echo" option in the UI is not implemented, and stays off. > > But that should mean that lcp-echo-* aren't passed at all, which is fine > because most people don't want LCP echo packets. > > > 2. Nothing overrides the default PPP (LCP) echo options, so even > > though the UI says off, if the default is on, echos are still sent. > > And this is of course the real issue. Thanks pppd! lcp-echo-* are always written in svn r4209, including when they are 0. Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Mobile Broadband - disconnect after 2 mins.
Thanks for the reply, Dan. I didn't see these replies until after I submitted comments on the bug report. In those comments I gave you the appropriate syslog entries showing that pppd logged four unsuccessful LCP echo requests and terminates the connection after 2.5 minutes. B! Your work towards overriding pppd's default options looks like it should do the trick. Thanks! -- Gilbert Mendoza PGP: 0x075DBCA9 Email: gmendoza at gmail.com http://www.savvyadmin.com https://launchpad.net/~gmendoza https://wiki.ubuntu.com/GilbertMendoza On Thu, Oct 23, 2008 at 10:48 AM, Dan Williams <[EMAIL PROTECTED]> wrote: > > So the pppd defaults appear to be to ignore LCP echos. If the box in > the connection editor is unchecked, NM will _not_ send lcp-echo-interval > or lcp-echo-failure to pppd. > > However, if those options were specified in /etc/ppp/options at all, it > appears that pppd will read that file no matter what, and thus you'll > get lcp echos turned on even if NM didn't tell pppd to turn them on. > > I will modify NetworkManager to always pass lcp-echo-interval and > lcp-echo-failure as "0" whenever the box is unchecked in the connection > editor, to ensure that /etc/ppp/options gets overridden, and that people > don't get whiplash from stupid pppd config hierarchy... > >> 2. Nothing overrides the default PPP (LCP) echo options, so even >> though the UI says off, if the default is on, echos are still sent. > > And this is of course the real issue. Thanks pppd! > > Dan > > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Mobile Broadband - disconnect after 2 mins.
On Thu, 2008-10-23 at 00:17 +0100, Rick Jones wrote: > --On Wednesday, October 22, 2008 13:48:21 -0700 Gilbert Mendoza > <[EMAIL PROTECTED]> wrote: > The CDMA connection does not have the "Send ppp echo > ¦ packets" checked... which was explained to me as LCP echo. > ¦ > ¦ In the bug report, I also noted a work around, which is to disable > LCP > ¦ echo requests and interval setting in the global PPP options file: > ¦ > ¦ /etc/ppp/options: > ¦ > ¦ lcp-echo-interval 0 > ¦ lcp-echo-failure 0 So the pppd defaults appear to be to ignore LCP echos. If the box in the connection editor is unchecked, NM will _not_ send lcp-echo-interval or lcp-echo-failure to pppd. However, if those options were specified in /etc/ppp/options at all, it appears that pppd will read that file no matter what, and thus you'll get lcp echos turned on even if NM didn't tell pppd to turn them on. I will modify NetworkManager to always pass lcp-echo-interval and lcp-echo-failure as "0" whenever the box is unchecked in the connection editor, to ensure that /etc/ppp/options gets overridden, and that people don't get whiplash from stupid pppd config hierarchy... > Yes, well spotted! Thanks, I'd forgotten about default ppp options, > that tweak works for me too. So the problem is 2-fold: > > 1. The "PPP echo" option in the UI is not implemented, and stays off. But that should mean that lcp-echo-* aren't passed at all, which is fine because most people don't want LCP echo packets. > 2. Nothing overrides the default PPP (LCP) echo options, so even > though the UI says off, if the default is on, echos are still sent. And this is of course the real issue. Thanks pppd! Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Mobile Broadband - disconnect after 2 mins.
On Wed, 2008-10-22 at 18:18 +0100, Rick Jones wrote: > Having hacked a binary patch into NM (just for the init string) so my > Palm modem will connect, I now find that it systematically disconnects > after exactly 2 minutes. > > In the log, the modem state suddenly goes from 8 -> 7, and then > everything unwinds. It makes no difference whether the connection is > idle or busy, after 2 mins. it's gone > > I know this modem has a problem with LCP echo - when testing it with > pppd I had to explicitly turn LCP echo off otherwise it complained > that it received its own echo requests. However, with echo off it will > stay connected indefinitely using pppd. > > What does NM do with LCP echo? I notice there is an option in the > config dialog for PPP echo (is that the same thing?), but that it > won't stick so I guess it's unimplemented. > > Any ideas on the timeout disconnect? It's probably the LCP echo thing. NM does print out the PPP command line being used in the logs, can you see if the lcp-echo-* stuff is on it? I do see the checkbox bug, but it's always unchecked for me, indicating that lcp-echo-interval is never sent to pppd. On latest SVN, even with the checkbox bug, ppp connections use: nodetach lock user blahblah ttyS1 noipdefault usepeerdns ipparam /org/freedesktop/NetworkManager/PPP/0 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so and thus no LCP echo. Could you reply with the PPP command line that NM executes pppd with so we can see what you've got? Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Mobile Broadband - disconnect after 2 mins.
--On Wednesday, October 22, 2008 13:48:21 -0700 Gilbert Mendoza <[EMAIL PROTECTED]> wrote: The CDMA connection does not have the "Send ppp echo ¦ packets" checked... which was explained to me as LCP echo. ¦ ¦ In the bug report, I also noted a work around, which is to disable LCP ¦ echo requests and interval setting in the global PPP options file: ¦ ¦ /etc/ppp/options: ¦ ¦ lcp-echo-interval 0 ¦ lcp-echo-failure 0 Yes, well spotted! Thanks, I'd forgotten about default ppp options, that tweak works for me too. So the problem is 2-fold: 1. The "PPP echo" option in the UI is not implemented, and stays off. 2. Nothing overrides the default PPP (LCP) echo options, so even though the UI says off, if the default is on, echos are still sent. Is it a common feature of broadband modems not to handle LCP echo properly? I guess it's not really needed anyway. Rick ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Mobile Broadband - disconnect after 2 mins.
I just submitted this bug, which was noted as resolved... but I can confirm that the problem still exists. http://bugzilla.gnome.org/show_bug.cgi?id=556781 I had been testing NM from PPA for Ubuntu Hardy... and now I'm testing NM 0.7.0 included in Ubuntu Intrepid, and I still see the same behavior. The CDMA connection does not have the "Send ppp echo packets" checked... which was explained to me as LCP echo. In the bug report, I also noted a work around, which is to disable LCP echo requests and interval setting in the global PPP options file: /etc/ppp/options: lcp-echo-interval 0 lcp-echo-failure 0 This resolves the issue for me. Perhaps you can also comment on the bug report. -- Gilbert Mendoza PGP: 0x075DBCA9 Email: gmendoza at gmail.com http://www.savvyadmin.com https://launchpad.net/~gmendoza https://wiki.ubuntu.com/GilbertMendoza On Wed, Oct 22, 2008 at 10:18 AM, Rick Jones <[EMAIL PROTECTED]> wrote: > Having hacked a binary patch into NM (just for the init string) so my Palm > modem will connect, I now find that it systematically disconnects after > exactly 2 minutes. > > In the log, the modem state suddenly goes from 8 -> 7, and then everything > unwinds. It makes no difference whether the connection is idle or busy, > after 2 mins. it's gone > > I know this modem has a problem with LCP echo - when testing it with pppd I > had to explicitly turn LCP echo off otherwise it complained that it received > its own echo requests. However, with echo off it will stay connected > indefinitely using pppd. > > What does NM do with LCP echo? I notice there is an option in the config > dialog for PPP echo (is that the same thing?), but that it won't stick so I > guess it's unimplemented. > > Any ideas on the timeout disconnect? > > Rick > ___ > NetworkManager-list mailing list > NetworkManager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list > > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list