Wednesday, August 10, 2022

Re: Making pppoe more resiliant to outages?

On Mon, 8 Aug 2022 20:35:54 +1000
Stuart Longland <stuartl@longlandclan.id.au> wrote:

> > I can get some PPPoE frames when the link is next down. I'm not sure
> > if there's a way to force a PADI attempt, man page does not mention
> > any. Presumably the "state 3" is some-sort of offline state, I'd have
> > to read the source to figure what that is.
>
> Just had a look at the source:
>
> #define PPPOE_STATE_INITIAL 0
> #define PPPOE_STATE_PADI_SENT 1
> #define PPPOE_STATE_PADR_SENT 2
> #define PPPOE_STATE_SESSION 3
> #define PPPOE_STATE_CLOSING 4
>
> https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/if_pppoe.h?rev=1.8&content-type=text/x-cvsweb-markup
>
> That makes this even more puzzling; if `ifconfig` reports "no carrier",
> I can't see how it'd be in state "SESSION". That seems wrong. IMO,
> the moment it dropped to "no carrier", to me I'd be reverting back to
> "INITIAL" to re-start the whole connection when the link returns.

Well, it wound up being escalated to the NBN as a line fault, a tech
was dispatched out today (public holiday no less)… and it turned out to
be a missing HFC isolator and a dodgy coax join that was the root cause
of all this.

So not OpenBSD's fault. Nonetheless though I might set up a test rig
to better investigate this to see if I can at least reduce the recovery
time, see if I can get the state to reset back to "INITIAL" state when
the carrier drops.

Regards,
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

No comments:

Post a Comment