* PPP Recovery
@ 2008-12-11 15:48 GauloisID
2008-12-11 16:15 ` Gilles Espinasse
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: GauloisID @ 2008-12-11 15:48 UTC (permalink / raw)
To: linux-ppp
Hi all,
I Would like to setup a permanent connection with a local rs232 GPRS modem.
I Use kernel 2.6.24 and PPP 2.4.4.
My connection work fine (DNS, ICMP...), but sometimes my GPRS provider drop
my connection due to timeout, moving....
Is there any way to tell ppp that sent packet (TCP/UDP) have retransmission
timeout to indicate that the connection is dead ? In this case it would be
easy to re-negociate the link.
Thanks for help.
--
View this message in context: http://www.nabble.com/PPP-Recovery-tp20958060p20958060.html
Sent from the linux-ppp mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPP Recovery
2008-12-11 15:48 PPP Recovery GauloisID
@ 2008-12-11 16:15 ` Gilles Espinasse
2008-12-11 16:49 ` GauloisID
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Gilles Espinasse @ 2008-12-11 16:15 UTC (permalink / raw)
To: linux-ppp
Selon GauloisID <David.Babin@dmic.fr>:
>
> Hi all,
>
> I Would like to setup a permanent connection with a local rs232 GPRS modem.
> I Use kernel 2.6.24 and PPP 2.4.4.
>
> My connection work fine (DNS, ICMP...), but sometimes my GPRS provider drop
> my connection due to timeout, moving....
>
> Is there any way to tell ppp that sent packet (TCP/UDP) have retransmission
> timeout to indicate that the connection is dead ? In this case it would be
> easy to re-negociate the link.
>
That's achieved by lcp options you could activate when starting the connection
(if the server support that, it usually should).
After lcp traffic has been interrupted a time defined by the combination of lcp
options values, ppp session goes down and if persist option has been used, pppd
restart the connection.
Gilles
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPP Recovery
2008-12-11 15:48 PPP Recovery GauloisID
2008-12-11 16:15 ` Gilles Espinasse
@ 2008-12-11 16:49 ` GauloisID
2008-12-11 17:26 ` James Carlson
2008-12-11 23:42 ` James Cameron
3 siblings, 0 replies; 5+ messages in thread
From: GauloisID @ 2008-12-11 16:49 UTC (permalink / raw)
To: linux-ppp
Great! Thanks, that's exactly what i look for !
Gilles Espinasse wrote:
>
> Selon GauloisID <David.Babin@dmic.fr>:
>
>>
>> Hi all,
>>
>> I Would like to setup a permanent connection with a local rs232 GPRS
>> modem.
>> I Use kernel 2.6.24 and PPP 2.4.4.
>>
>> My connection work fine (DNS, ICMP...), but sometimes my GPRS provider
>> drop
>> my connection due to timeout, moving....
>>
>> Is there any way to tell ppp that sent packet (TCP/UDP) have
>> retransmission
>> timeout to indicate that the connection is dead ? In this case it would
>> be
>> easy to re-negociate the link.
>>
> That's achieved by lcp options you could activate when starting the
> connection
> (if the server support that, it usually should).
> After lcp traffic has been interrupted a time defined by the combination
> of lcp
> options values, ppp session goes down and if persist option has been used,
> pppd
> restart the connection.
>
>
> Gilles
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
View this message in context: http://www.nabble.com/PPP-Recovery-tp20958060p20959398.html
Sent from the linux-ppp mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPP Recovery
2008-12-11 15:48 PPP Recovery GauloisID
2008-12-11 16:15 ` Gilles Espinasse
2008-12-11 16:49 ` GauloisID
@ 2008-12-11 17:26 ` James Carlson
2008-12-11 23:42 ` James Cameron
3 siblings, 0 replies; 5+ messages in thread
From: James Carlson @ 2008-12-11 17:26 UTC (permalink / raw)
To: linux-ppp
GauloisID writes:
> I Would like to setup a permanent connection with a local rs232 GPRS modem.
> I Use kernel 2.6.24 and PPP 2.4.4.
>
> My connection work fine (DNS, ICMP...), but sometimes my GPRS provider drop
> my connection due to timeout, moving....
>
> Is there any way to tell ppp that sent packet (TCP/UDP) have retransmission
> timeout to indicate that the connection is dead ? In this case it would be
> easy to re-negociate the link.
If you actually want it to be up at all times, then the pppd "persist"
option may be what you want. If you want it to trigger a new link
when TCP or UDP sends a packet and the link is down, then you want
"demand."
If you want the system to detect a "dead" link -- one where the
low-level connection is still present, but the peer is no longer
running PPP -- then you'll probably want to set up both the
"lcp-echo-interval" and the "lcp-echo-failure" options.
For all of these options, see the man page.
However, beware: GPRS is weird in many ways. Having unexpected
behavior (compared to "normal" PPP links) is just par for the course,
so, though the above options should help, it's at least possible that
you may encounter situations that pppd can't handle. I wouldn't be
too surprised if you ended up writing some sort of little monitoring
application that kills off and restarts pppd when there's trouble.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPP Recovery
2008-12-11 15:48 PPP Recovery GauloisID
` (2 preceding siblings ...)
2008-12-11 17:26 ` James Carlson
@ 2008-12-11 23:42 ` James Cameron
3 siblings, 0 replies; 5+ messages in thread
From: James Cameron @ 2008-12-11 23:42 UTC (permalink / raw)
To: linux-ppp
In my experience with GPRS style modems, LCP echo continues to occur,
because it is just the modem firmware responding. The LCP echo latency
is very small, consistent with this. So LCP echo loss may not occur,
and the PPP connection may remain up.
--
James Cameron
http://ftp.hp.com.au/sigs/jc/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-11 23:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 15:48 PPP Recovery GauloisID
2008-12-11 16:15 ` Gilles Espinasse
2008-12-11 16:49 ` GauloisID
2008-12-11 17:26 ` James Carlson
2008-12-11 23:42 ` James Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.