Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd doesn't reset idle-counter when there's traffic

Reply
Thread Tools Display Modes

pppd doesn't reset idle-counter when there's traffic

 
 
tobias@itservices.co.mz
Guest
Posts: n/a

 
      09-08-2005, 06:34 AM
Hi,

What could be the reason for pppd to *not* reset the idle counter even
though there's traffic?
This is on RH9 with Portslave_2002.10.21 and Equinox modem-pool.
If you look at the output of 'w' below, one user has idle-time of 32
mins, but a tcpdump reveals plenty of traffic on the ppp interface for
this user.
I have also included /etc/ppp/options and the ppp options from the
portslave config file below.
Thanks
Tobias Skytte


Extract of output from 'w'
**************************

08:23:47 up 5 days, 21:14, 6 users, load average: 0.07, 0.07, 0.04
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
******** ttyQ1a1 000:P.10.80 7:51am 32:24 0.00s 0.00s pppd
lock crtsc
******** ttyQ1a2 001:P.10.81 8:15am 8:06 0.00s 0.00s pppd
lock crtsc

Note: I have replaced usernames with *******


/etc/ppp/options
****************
lock
modem
crtscts
proxyarp
asyncmap 0
defaultroute
ms-dns 192.168.10.1
ms-dns 195.140.251.194
login
debug 5
multilink
idle 3600


extract of pslave.conf showing ppp options for modem#12 (they are the
same for all modems)
************************************************** *****

s12.pppopt lock crtscts defaultroute multilink noproxyarp %d
asyncmap 0 \
%i:%j \
noipx login auth \
require-pap refuse-chap \
defaultroute\
multilink\
mtu %t mru %t \
ms-dns 192.168.10.1 \
ms-dns 195.140.251.194 \
unit 13 \
plugin /usr/local/lib/libpsr.so

 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      09-08-2005, 01:42 PM
(E-Mail Removed) writes:

>Hi,


>What could be the reason for pppd to *not* reset the idle counter even
>though there's traffic?


w has absolutely nothing to do with pppd. w is an operating system command,
which cares not at all and knows nothing about how the connection is made.

>This is on RH9 with Portslave_2002.10.21 and Equinox modem-pool.
>If you look at the output of 'w' below, one user has idle-time of 32
>mins, but a tcpdump reveals plenty of traffic on the ppp interface for
>this user.


w looks at when that user last typed something into that terminal. Not with
any traffic along pppd.

>I have also included /etc/ppp/options and the ppp options from the
>portslave config file below.
>Thanks
>Tobias Skytte



>Extract of output from 'w'
>**************************


>08:23:47 up 5 days, 21:14, 6 users, load average: 0.07, 0.07, 0.04
>USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
>******** ttyQ1a1 000:P.10.80 7:51am 32:24 0.00s 0.00s pppd
>lock crtsc
>******** ttyQ1a2 001:P.10.81 8:15am 8:06 0.00s 0.00s pppd
>lock crtsc


>Note: I have replaced usernames with *******



>/etc/ppp/options
>****************
>lock
>modem
>crtscts
>proxyarp
>asyncmap 0
>defaultroute
>ms-dns 192.168.10.1
>ms-dns 195.140.251.194
>login
>debug 5
>multilink
>idle 3600



>extract of pslave.conf showing ppp options for modem#12 (they are the
>same for all modems)
>************************************************* ******


>s12.pppopt lock crtscts defaultroute multilink noproxyarp %d
>asyncmap 0 \
> %i:%j \
> noipx login auth \
> require-pap refuse-chap \
> defaultroute\
> multilink\
> mtu %t mru %t \
> ms-dns 192.168.10.1 \
> ms-dns 195.140.251.194 \
> unit 13 \
> plugin /usr/local/lib/libpsr.so


 
Reply With Quote
 
tobias@itservices.co.mz
Guest
Posts: n/a

 
      09-08-2005, 07:38 PM
ok, well that explains it then :-)
thanks

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      09-08-2005, 10:53 PM
(E-Mail Removed) wrote:
> Hi,


> What could be the reason for pppd to *not* reset the idle counter even
> though there's traffic?


Setting the pppd active-filter option to ignore certain traffic when
measuring elapsed idle time would do it.

> This is on RH9 with Portslave_2002.10.21 and Equinox modem-pool.
> If you look at the output of 'w' below, one user has idle-time of 32
> mins, but a tcpdump reveals plenty of traffic on the ppp interface for
> this user.
> I have also included /etc/ppp/options and the ppp options from the
> portslave config file below.
> Thanks
> Tobias Skytte


> Extract of output from 'w'
> **************************


> 08:23:47 up 5 days, 21:14, 6 users, load average: 0.07, 0.07, 0.04
> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
> ******** ttyQ1a1 000:P.10.80 7:51am 32:24 0.00s 0.00s pppd
> lock crtsc
> ******** ttyQ1a2 001:P.10.81 8:15am 8:06 0.00s 0.00s pppd
> lock crtsc


It appears the IDLE time shown here is the cumulative idle time for
the program WHAT associated with user USER and terminal TTY since
USER started (or restarted after using another program) using WHAT.

What's the problem (no pun intended)? The pppd idle time you specified
was 3600 seconds, or 60 minutes. So pppd will exit when 60 minutes
have elapsed without *any* traffic through the PPP link, and not before
(in the absence of the active-filter option or external intervention).
You said there was "plenty of traffic" so the (cumulative) IDLE time
above could be well above 60 minutes and pppd would still be running.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
/* Speak softly and carry a sucker rod (See man syslogd, footnote to
recommendation 4 under SECURITY THREATS). */
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic counter Trevor Broadband 3 11-14-2006 08:07 PM
Connection with pppd, but no traffic Doug Laidlaw Linux Networking 0 09-27-2005 06:54 AM
Reset network creation counter J.H. Holliday Wireless Networks 4 06-11-2005 08:09 PM
kppp works wvdial doesn't for pppd (logs included) Cat Linux Networking 9 07-23-2004 04:32 AM
PPPD and idle counter! Theophanis Kontogiannis Linux Networking 2 01-02-2004 02:18 AM



1 2 3 4 5 6 7 8 9 10 11