New Member
Posts: 39
Registered: ‎02-10-2019
Solutions: 1

ER-X PPPoE server speed maxed at 160 Mbps

[ Edited ]

I am unable to get Gigabit speed on one of the ethernet ports of ER-X on which I have configured a PPPoE server. Is there a setting I need to change to get more speed?

Regular Member
Posts: 514
Registered: ‎08-19-2016
Kudos: 182
Solutions: 26

Re: ER-X PPPoE server speed maxed at 160 Mbps

Welcome to the forums, @heychirag.

 

It sounds like hardware-offloading isn't happening.  Is it configured?

 

-- Pete

New Member
Posts: 39
Registered: ‎02-10-2019
Solutions: 1

Re: ER-X PPPoE server speed maxed at 160 Mbps

[ Edited ]

EdgeOS v1.10.8 is not allowing me to enable that for forwarding, gre, pppoe or vlan. I have however enabled it for hwnat and ipsec. But I want to know why is this problem happening only for the pppoe server port. I am getting full speeds on other ports.

Regular Member
Posts: 514
Registered: ‎08-19-2016
Kudos: 182
Solutions: 26

Re: ER-X PPPoE server speed maxed at 160 Mbps

The Edgerouter-X (ERX) is based on the MediaTek chipset, so the settings for GRE, PPPoE, and VLAN don't apply.  Instead, offloading of those protocols controlled by the "hwnat" setting.  See the first pair of tables in the offloading Help article.

 

The experts that hang out in these forums will almost certainly jump in to help if you'll post your configuration.  This other Help article describes the preferred way to do that.

 

-- Pete

Regular Member
Posts: 514
Registered: ‎08-19-2016
Kudos: 182
Solutions: 26

Re: ER-X PPPoE server speed maxed at 160 Mbps

Also, I recall seeing various discussions about the proper maximum packet length to configure for PPPoE. That could impact performance.  I don't use PPPoE, so I'm not familar with it.  Someone may jump in who does use PPPoE, or a search of the forums will probably find a relevant discussion.

 

-- Pete

New Member
Posts: 39
Registered: ‎02-10-2019
Solutions: 1

Re: ER-X PPPoE server speed maxed at 160 Mbps

I'll try playing around with that. Meanwhile, I'll wait to see if someone comes up with a different solution.

Veteran Member
Posts: 6,096
Registered: ‎01-04-2017
Kudos: 886
Solutions: 314

Re: ER-X PPPoE server speed maxed at 160 Mbps

Without seeing your config there is no solution to come up with
New Member
Posts: 39
Registered: ‎02-10-2019
Solutions: 1

Re: ER-X PPPoE server speed maxed at 160 Mbps

firewall {
    all-ping enable
    broadcast-ping disable
    group {
        network-group PRIVATE_NETS {
            network 192.168.0.0/16
            network 172.16.0.0/12
            network 10.0.0.0/8
        }
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians disable
    modify balance {
        rule 10 {
            action modify
            description "do NOT load balance lan to lan"
            destination {
                group {
                    network-group PRIVATE_NETS
                }
            }
            modify {
                table main
            }
        }
        rule 50 {
            action modify
            description "do NOT load balance destination public address"
            destination {
                group {
                    address-group ADDRv4_pppoe3
                }
            }
            modify {
                table main
            }
        }
        rule 60 {
            action modify
            description "do NOT load balance destination public address"
            destination {
                group {
                    address-group ADDRv4_pppoe4
                }
            }
            modify {
                table main
            }
        }
        rule 70 {
            action modify
            modify {
                lb-group G
            }
        }
    }
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    options {
        mss-clamp {
            mss 1412
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        duplex auto
        speed auto
    }
    ethernet eth1 {
        address dhcp
        description eth1-pppoe
        duplex auto
        speed auto
    }
    ethernet eth2 {
        duplex auto
        speed auto
    }
    ethernet eth3 {
        description Excitel
        duplex auto
        pppoe 3 {
            default-route force
            firewall {
                in {
                    name WAN_IN
                }
                local {
                    name WAN_LOCAL
                }
            }
            mtu 1492
            name-server auto
            password ****************
            user-id chiragarora182
        }
        speed auto
    }
    ethernet eth4 {
        description ACT
        duplex auto
        poe {
            output off
        }
        pppoe 4 {
            default-route force
            firewall {
                in {
                    name WAN_IN
                }
                local {
                    name WAN_LOCAL
                }
            }
            mtu 1492
            name-server auto
            password ****************
            user-id 110288511241
        }
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 10.0.0.1/24
        description Local
        firewall {
            in {
                modify balance
            }
        }
        mtu 1500
        switch-port {
            interface eth0 {
            }
            interface eth2 {
            }
            vlan-aware disable
        }
    }
}
load-balance {
    group G {
        interface pppoe3 {
            failover-only
            route-test {
                initial-delay 2
                interval 2
                type {
                    ping {
                        target 8.8.4.4
                    }
                }
            }
        }
        interface pppoe4 {
            route-test {
                initial-delay 2
                interval 2
                type {
                    ping {
                        target 8.8.4.4
                    }
                }
            }
        }
        lb-local disable
        lb-local-metric-change disable
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN {
            authoritative enable
            disable
            subnet 10.0.0.0/24 {
                default-router 10.0.0.1
                dns-server 10.0.0.1
                lease 86400
                start 10.0.0.38 {
                    stop 10.0.0.243
                }
            }
        }
        static-arp disable
        use-dnsmasq disable
    }
    dns {
        dynamic {
            interface pppoe4 {
                service custom-noip {
                    host-name heychirag.ddns.net
                    login heychiragarora@gmail.com
                    password ****************
                    protocol noip
                    server dynupdate.no-ip.com
                }
            }
        }
        forwarding {
            cache-size 150
            listen-on switch0
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 5006 {
            description "masquerade for WAN 2"
            outbound-interface pppoe3
            type masquerade
        }
        rule 5008 {
            description "masquerade for WAN"
            outbound-interface pppoe4
            type masquerade
        }
    }
    pppoe-server {
        authentication {
            local-users {
                username paranoid {
                    password ****************
                    static-ip 10.0.1.2
                }
            }
            mode local
        }
        client-ip-pool {
            start 10.0.1.2
            stop 10.0.1.5
        }
        dns-servers {
            server-1 10.0.0.53
            server-2 10.0.0.53
        }
        interface eth1
    }
    ssh {
        port 22
        protocol-version v2
    }
    unms {
        disable
    }
}
system {
    conntrack {
        expect-table-size 4096
        hash-size 4096
        table-size 32768
        tcp {
            half-open-connections 512
            loose enable
            max-retrans 3
        }
    }
    host-name ubnt
    login {
        user ubnt {
            authentication {
                encrypted-password ****************
            }
            level admin
        }
    }
    name-server 8.8.8.8
    name-server 8.8.4.4
    ntp {
        server 0.ubnt.pool.ntp.org {
        }
        server 1.ubnt.pool.ntp.org {
        }
        server 2.ubnt.pool.ntp.org {
        }
        server 3.ubnt.pool.ntp.org {
        }
    }
    offload {
        hwnat enable
        ipsec enable
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone UTC
}

Thanks!

Veteran Member
Posts: 6,096
Registered: ‎01-04-2017
Kudos: 886
Solutions: 314

Re: ER-X PPPoE server speed maxed at 160 Mbps

what is the expected bandwidth for each ISP?
New Member
Posts: 39
Registered: ‎02-10-2019
Solutions: 1

Re: ER-X PPPoE server speed maxed at 160 Mbps

I am actually conducting the speed test using a NAS for which transfer speeds should be around 700-800 Mbps.

Regular Member
Posts: 514
Registered: ‎08-19-2016
Kudos: 182
Solutions: 26

Re: ER-X PPPoE server speed maxed at 160 Mbps


@heychirag wrote:

I am actually conducting the speed test using a NAS for which transfer speeds should be around 700-800 Mbps.


I don't understand.  I had assumed that the PPPoE link was your internet connection(s), in which case the question about the speed of the ISP link(s) is very relevant.

 

Where are the two systems that you're testing between and what's the connection between them?  A diagram, even a crude hand-drawn one, would help a great deal.

 

-- Pete