Context & Why: Overcoming Broadband Access Bottlenecks
Managing 10,000 concurrent broadband subscribers on commodity x86 servers used to hit a performance wall. For decades, internet service providers relied on PPPoE (Point-to-Point Protocol over Ethernet) for subscriber management. It made authentication, bandwidth billing, and session teardown straightforward. However, PPPoE wraps every packet in an 8-byte header. That penalty lowers the standard Ethernet Maximum Transmission Unit (MTU) from 1500 bytes down to 1492 bytes.
Those missing 8 bytes cause widespread operational pain. Broken Path MTU Discovery (PMTUD) silently drops packets. Edge routers burn CPU cycles rewriting TCP MSS clamps. Worse, software PPP encapsulation chokes multi-gigabit fiber connections with per-packet tunneling overhead. Treating gigabit fiber links like 1990s dial-up connections creates an unnecessary bottleneck.
IPoE (IP over Ethernet) fixes this architectural flaw. Instead of tunneling packets through PPP, clients route native Ethernet frames directly. Subscribers pull IP addresses through standard DHCP—leveraging Option 82 for switch port verification—or via static QinQ VLAN mappings.
The full 1500-byte MTU remains completely intact. To terminate these sessions without drowning in user-space context switches, Linux requires kernel-level packet handling. accel-ppp fills this role. Its custom ipoe.ko kernel module handles frame classification, dynamic interface provisioning, and hardware-rate traffic shaping via Linux tc.
In production networks, moving from PPPoE to IPoE routinely cuts BNG CPU loads by 40% to 60% on 10 Gbps uplinks while ending MTU-related support calls for good.
Installation: Compiling accel-ppp with IPoE Driver Support
Standard distribution repositories carry outdated accel-ppp builds that omit the out-of-tree ipoe.ko driver. Building straight from upstream source code ensures your kernel handles fast-path packet steering and interface creation.
1. Install Build Dependencies
Install the required C toolchain, CMake, Netlink development libraries, and current kernel headers on Debian 12 or Ubuntu 22.04/24.04 LTS:
sudo apt update
sudo apt install -y build-essential cmake gcc git libpcre3-dev \
libssl-dev libnl-3-dev libnl-genl-3-dev linux-headers-$(uname -r)
2. Clone and Compile the accel-ppp Source
Fetch the repository and configure CMake with BUILD_IPOE_DRIVER and shaper support enabled:
git clone https://github.com/accel-ppp/accel-ppp.git /usr/src/accel-ppp
mkdir -p /usr/src/accel-ppp/build
cd /usr/src/accel-ppp/build
cmake -DBUILD_IPOE_DRIVER=TRUE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLOG_PGSQL=FALSE \
-DSHAPER=TRUE ..
make -j$(nproc)
sudo make install
3. Load the Kernel Module
Insert the newly built module into the Linux kernel and verify it loaded cleanly:
sudo modprobe ipoe
lsmod | grep ipoe
Make the driver load automatically on boot:
echo "ipoe" | sudo tee /etc/modules-load.d/ipoe.conf
Configuration: Setting Up the IPoE Session Engine
The main configuration file lives at /etc/accel-ppp.conf. In this setup, our BNG listens on trunk interface eth1. It allocates subscriber IPs from a dedicated /24 subnet and enforces rate limits of 100 Mbps downstream and 50 Mbps upstream.
1. Configure /etc/accel-ppp.conf
Open the configuration file to define your core worker threads, interface listener, dynamic pool, and traffic shaping policies:
sudo nano /etc/accel-ppp.conf
Populate it with the following production baseline:
[modules]
log_file
ipoe
shaper
ippool
[core]
log-error=/var/log/accel-ppp/error.log
thread-count=4
[ipoe]
verbose=1
# Listen on trunk interface eth1; spawn unshared dynamic interfaces on DHCP Discover
interface=eth1,mode=L2,shared=0,start=dhcpv4,ifcfg=1
proxy-arp=1
local-net=10.100.0.0/16
attr-dhcp-client-ip=Framed-IP-Address
[ippool]
# Subnet allocated to active IPoE clients
vendor=accel-ppp
attr=Framed-Pool
gw-ip-address=10.100.0.1
10.100.10.2-254,pool-subscribers
[shaper]
verbose=1
# Enforce 100Mbps download and 50Mbps upload (values in Kbit/s)
down-limiter=police
up-limiter=police
down-shaper=htb
up-shaper=htb
rate-limit=102400/51200
[cli]
verbose=1
telnet=127.0.0.1:2001
tcp=127.0.0.1:2002
[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
copy=1
level=3
2. Enable Systemd Service and IP Forwarding
Linux drops transit traffic between interfaces by default. Enable IPv4 forwarding across reboots before starting the daemon:
sudo sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/99-ip-forward.conf
sudo systemctl daemon-reload
sudo systemctl start accel-ppp
sudo systemctl enable accel-ppp
Verification & Monitoring: Managing Live Subscriber Sessions
When a client switch port comes up on eth1 and fires a DHCP request, ipoe.ko catches it immediately. The driver instantiates a dedicated virtual interface—such as ipoe0—and applies your rate limits without manual intervention.
1. Inspect Active Sessions via CLI
Query the internal management engine using the bundled accel-cmd utility:
accel-cmd show sessions
The console prints dynamic interfaces, client MAC addresses, assigned IP leases, and connection runtimes:
ifname | username | calling-sid | ip | rate-limit | type | comp | state | uptime
-------+-------------------+-------------------+-------------+-------------+------+------+--------+---------
ipoe0 | 52:54:00:12:34:56 | 52:54:00:12:34:56 | 10.100.10.2 | 102400/51200| ipoe | | active | 00:12:45
ipoe1 | 52:54:00:ab:cd:ef | 52:54:00:ab:cd:ef | 10.100.10.3 | 102400/51200| ipoe | | active | 00:04:18
2. Verify Kernel Traffic Shapers
Confirm that the Linux kernel actively enforces bandwidth limits on the client interface:
tc -s qdisc show dev ipoe0
Look at the transmitted byte and packet counters inside the Hierarchical Token Bucket (HTB) and ingress policing disciplines. Because shaping runs entirely in kernel space, managing hundreds of dynamic interfaces produces negligible CPU jitter.
3. Terminating or Modifying Sessions On The Fly
Kill an individual subscriber connection instantly without disturbing other traffic on the box:
accel-cmd terminate if ipoe0
Need to bump a customer’s package to 200 Mbps down and 100 Mbps up? Apply the update on the fly without tearing down their active TCP connections:
accel-cmd shaper change ipoe0 204800/102400
By stripping away legacy PPP encapsulation and leveraging the Linux kernel’s native network stack, this setup turns an off-the-shelf Linux box into a carrier-grade BNG capable of multi-gigabit throughput with sub-millisecond latency.

