Reply
Highlighted
New Member
Posts: 14
Registered: ‎06-11-2016
Kudos: 2
Solutions: 2

EdgeRouter POE Download Speeds Half of What It Should Be

I just redid router settings and since then my download speed is really low.

 

See photo.

 

speedtest.PNG

 

Here is my config.

 

firewall {
    all-ping enable
    broadcast-ping disable
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    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
        vif 201 {
            description "Internet (PPPoE)"
            pppoe 0 {
                default-route auto
                firewall {
                    in {
                        name WAN_IN
                    }
                    local {
                        name WAN_LOCAL
                    }
                }
                mtu 1492
                name-server auto
                password pass
                user-id user            }
        }
    }
    ethernet eth1 {
        address 192.168.2.1/24
        description Local
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth2 {
        description "Local 2"
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth3 {
        description "Local 2"
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth4 {
        description "Local 2"
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 192.168.3.1/24
        description "Local 2"
        mtu 1500
        switch-port {
            interface eth2 {
            }
            interface eth3 {
            }
            interface eth4 {
            }
            vlan-aware disable
        }
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN1 {
            authoritative enable
            subnet 192.168.2.0/24 {
                default-router 192.168.2.1
                dns-server 192.168.2.1
                lease 86400
                start 192.168.2.38 {
                    stop 192.168.2.243
                }
            }
        }
        shared-network-name LAN2 {
            authoritative enable
            subnet 192.168.3.0/24 {
                default-router 192.168.3.1
                dns-server 192.168.3.1
                lease 86400
                start 192.168.3.38 {
                    stop 192.168.3.243
                }
            }
        }
        static-arp disable
        use-dnsmasq disable
    }
    dns {
        forwarding {
            cache-size 150
            listen-on eth1
            listen-on switch0
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 5010 {
            description "masquerade for WAN"
            outbound-interface pppoe0
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
}
system {
    host-name ubnt
    login {
        }
    }
    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 disable
        ipsec enable
        ipv4 {
            forwarding enable
            pppoe enable
            vlan enable
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone UTC
}


/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:suspend@1:system@4:ubnt-pptp@1:ubnt-udapi-server@1:ubnt-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.10.8.5142440.181120.1645 */

Anything seem off that I need to adjust?

 

eth0 -> ISP

eth1 -> Goes to a ubiquiti switch -> Goes to an AC AP Pro
eth2 -> Goes to a laptop

 

Thanks for any help!

Member
Posts: 288
Registered: ‎01-10-2016
Kudos: 53
Solutions: 25

Re: EdgeRouter POE Download Speeds Half of What It Should Be

You have disabled offloading of hwnat.

New Member
Posts: 14
Registered: ‎06-11-2016
Kudos: 2
Solutions: 2

Re: EdgeRouter POE Download Speeds Half of What It Should Be

You can't set that to enabled on the EdgeRouter POE. 

You get this error if you try to:

Error: This platform integrates hardware NAT offload into forwarding offload. NAT offload is not individually configurable.
SuperUser
Posts: 13,792
Registered: ‎10-06-2013
Kudos: 4610
Solutions: 1041

Re: EdgeRouter POE Download Speeds Half of What It Should Be

Can we just clarify which actual ER it is please?

UK Comms & Links Engineer.


Come on you lot, Feel free to 'Mark as Solution' At least click the Kudos button. Thanks.


Top Solution Authors Leaderboard
New Member
Posts: 14
Registered: ‎06-11-2016
Kudos: 2
Solutions: 2

Re: EdgeRouter POE Download Speeds Half of What It Should Be

[ Edited ]

It's the EdgeRouter 5 port POE.

 

https://www.ui.com/edgemax/edgerouter-poe/

 

It's a Cavium based device so I cannot just enable hwnat directly. Offloading seems to be working. If I disable offloading my speeds plumet. 

 

Edit, I am also using v1.10.8

SuperUser
Posts: 13,792
Registered: ‎10-06-2013
Kudos: 4610
Solutions: 1041

Re: EdgeRouter POE Download Speeds Half of What It Should Be

The ER 5 PoE has 3 switch ports, these are eth2, 3 & 4. If you use bridging to eth 1 then you will suffer a download hit.

If you need extra switch ports consider usin another switch connected to either eth 2,3 or 4.

UK Comms & Links Engineer.


Come on you lot, Feel free to 'Mark as Solution' At least click the Kudos button. Thanks.


Top Solution Authors Leaderboard
New Member
Posts: 14
Registered: ‎06-11-2016
Kudos: 2
Solutions: 2

Re: EdgeRouter POE Download Speeds Half of What It Should Be

I don't believe anything is bridged. eth2-4 are set up as switches. But testing both ports eth1 and eth2 give the same results. 

Established Member
Posts: 1,486
Registered: ‎07-07-2014
Kudos: 324
Solutions: 99

Re: EdgeRouter POE Download Speeds Half of What It Should Be

[ Edited ]

@kbailles - I thought your config and explanation were quite straightforward!  Nothing appears wrong.  Are you testing from your laptop on eth2?  What happens if you plug directly into eth1 and test from there, any difference in performance? Try a new or different patch cable just to rule it out, but bypass other equipment and test straight from the Er-POE, from eth1 and eth2, see if there is a difference.  You have eth2 part of switch0 so it'd be interested if that's slowing you down.

 

Also, you said you "just redid router settings" - did that involve a reboot? There's a known issue where traffic fails to get offloaded after 30 days of uptime.  I wonder if a reboot temporarily fixes the speed issue?

 

 

edit: sorry, I see where you say you got the same result from both eth1 and eth2. Could you try a different machine for testing to rule that out too?

SuperUser
Posts: 13,792
Registered: ‎10-06-2013
Kudos: 4610
Solutions: 1041

Re: EdgeRouter POE Download Speeds Half of What It Should Be


@kbailles wrote:

You can't set that to enabled on the EdgeRouter POE. 

You get this error if you try to:

Error: This platform integrates hardware NAT offload into forwarding offload. NAT offload is not individually configurable.

To Enable ipv4/ipv6 and ipsec offloading on a Cavium router.

 

configure

set system offload ipv4 forwarding enable
set system offload ipv4 gre enable
set system offload ipv4 pppoe enable
set system offload ipv4 vlan enable
set system offload ipv4 bonding enable

set system offload ipv6 forwarding enable
set system offload ipv6 pppoe enable
set system offload ipv6 vlan enable

set system offload ipsec enable

commit ; save

UK Comms & Links Engineer.


Come on you lot, Feel free to 'Mark as Solution' At least click the Kudos button. Thanks.


Top Solution Authors Leaderboard
New Member
Posts: 14
Registered: ‎06-11-2016
Kudos: 2
Solutions: 2

Re: EdgeRouter POE Download Speeds Half of What It Should Be

Just tried and results are still identical. At the beginning of the test it spikes to 600+ then immediately drops down to the 300's. Offloading is working as the CPU is staying low.

Reply