Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498890 - net-dialup/ppp-2.4.5-r3 - PPPoE AC redundancy problems
Summary: net-dialup/ppp-2.4.5-r3 - PPPoE AC redundancy problems
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 07:10 UTC by Joe Breuer
Modified: 2014-06-04 07:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2014-01-22 07:10:05 UTC
The pppoe module of pppd does not deal well with redundant access concentrators.

Reproducible: Always

Steps to Reproduce:
1. Have a PPPoE connection with redundant ACs (here: M-Net, Germany)
2. Run pppd configured as an PPPoE client

Actual Results:  
The connection will only be established "sometimes", depending on timing.

Expected Results:  
The connection is established reliably.

pppd with PPPoE doesn't deal at all well with redundant ACs, at least not as they're implemented by my provider.

In a nutshell, I will receive a number of PADOs for my PADI - one from each AC in the redunadncy group that's currently available for sessions.

pppd replies to the first of these with a PADR, soliciting a PADS from the corresponding AC (differentiated by the AC-Cookie).

N.B.: I see all ACs with the same MAC address, i.e. the MAC address of my DSL modem. Is this expected behavior, or is this a breaking bug of the modem?

Sometimes, I will recieve one or more other PADOs before the PADS reply, in which case pppd will (sometimes - not always, couldn't really see a pattern yet) respond with another PADR to one of the other PADOs.

Now when a PADS is received, chances are it does not match the last PADR sent by pppd, but an earlier one. This scenario is apparently not covered in the code, and PPPoE cannot continue.


I'll try to get some useful packet traces of these exchanges; but obviously getting these is a bit problematic (as the connection will be down, and it mostly affects remote sites for me) and so far I've only managed to see these problems while manually tracing over some emergency access method, with no easy way to capture the traces.


I'm happy to help with any further debugging as far as possible, and I'm comfortable with trying out patches.

Also, I'll be happy to take this up with upstream; but http://ppp.samba.org/cgi-bin/ppp-bugs doesn't really seem to be active any more - has pppd development moved elsewhere?


emerge --info:
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8600_@_3.33GHz-with-gentoo-2.2
KiB Mem:     8186712 total,   1624656 free
KiB Swap:    2096444 total,   1887180 free
Timestamp of tree: Thu, 09 Jan 2014 22:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo LOCAL jmbreuer
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -momit-leaf-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/spool/munin-async/.ssh /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /usr/share/X11/xkb"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -momit-leaf-frame-pointer"
DISTDIR="/export/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=16 --load-average=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/ http://gentoo.wheel.sk/ http://gentoo.mirror.pw.edu.pl/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=24 --load-average=6"
PKGDIR="/export/portage/packages/x64cd"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/jmbreuer"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdda cdr chardet cjk cli consolekit cracklib crypt css cups curl cxx dbus declarative dga dri dts dvb dvd dvdr emacs embedded emboss encode exif fam fame fastcgi ffmpeg firefox flac flash fluidsynth foomaticdb fortran gd gdbm gif gimp glitz glut gnutls gphoto2 gpm gtk gtkhtml iconv icu imap imlib innodb iphone ipod ipv6 java jce jpeg kde kerberos kipi kpathsea lame lcms ldap leim libgda libnotify libsamplerate lm_sensors lzo mad mailwrapper mbox mikmod mjpeg mmx mmxext mng modplug modules mono mp3 mp4 mpeg mtp mudflap mule multilib ncurses network network-cron nis nls nptl nsplugin nvidia ocamlopt offensive ogg opengl openmp pam pango pcap pch pcre pda pdf phonon plasma plotutils png policykit ppds qt3support qt4 razor rdesktop readline real rtc samba sasl sdl semantic-desktop session shout slang slp sndfile sockets sound sox spamassassin spell sqlite sse sse2 ssl startup-notification suhosin svg tcpd threads threadsafe tiff truetype udev udisks unicode upower usb vdpau vhosts vim-syntax vorbis webdav wma wmf wxwidgets x264 xanim xcb xcomposite xfs xinetd xiph xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Sergey Popov (RETIRED) gentoo-dev 2014-06-04 07:51:32 UTC
Unfortunately we can not do anything about this issue

Please, send bugreport to upstream developers. Recent development repository can be found here - https://github.com/paulusmack/ppp