WRT1900ACv1 loss of speed

dear,
when i plug my laptop to isp router i can get 700/50, i have link from isp router to ac1900v1 to its wan... then when i connect laptop to ac1900v1 lan i am getting 500/50.

Ac1900v1 is running latest openwrt, there is NAT and also few fw rules... nothing special... any idea why there is 200mbit (download) loss?

thanks

AC1900...

Netgear? Asus?

SSH in to the router and run the following...

cat /etc/config/network

cat /etc/config/dhcp

cat /etc/config/sqm

cat /etc/config/firewall

Post the results in pre-formatted text format using this icon...

OpenWRT Posting Icons

There have been a few reports of speed drop on mvebu targets with 21.x / master, with some attributing it to the change to DSA with only one CPU port currently in use. I think the more likely explanation would be kernel / mvneta changes, but your reported loss seems greater.

hi, @anon89577378 @anomeome
this is strange, the brand is Linksys ac1900v1

Yes the speed drop is Massive; sometimes i get 500/50 other times 300/50... still not 700/50 what i can get if i directly connect the same laptop to ISP router.

the dump of the config is following>

root@OpenWrt-main-router:~# cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fddf:4363:a8a0::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config device
        option name 'lan1'
        option macaddr 'b4:75:0e:64:4b:f8'

config device
        option name 'lan2'
        option macaddr 'b4:75:0e:64:4b:f8'

config device
        option name 'lan3'
        option macaddr 'b4:75:0e:64:4b:f8'

config device
        option name 'lan4'
        option macaddr 'b4:75:0e:64:4b:f8'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '10.0.1.1'

config device
        option name 'wan'
        option macaddr 'b4:75:0e:64:4b:f8'

config interface 'wan'
        option device 'wan'
        option proto 'static'
        option ipaddr '192.168.0.4'
        option netmask '255.255.255.0'
        option gateway '192.168.0.1'
        list dns '8.8.8.8'
        list dns '8.8.4.4'
        option delegate '0'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

config route
        option interface 'lan'
        option target '192.168.1.0'
        option netmask '255.255.255.0'
        option gateway '10.0.1.44'

root@OpenWrt-main-router:~# cat /etc/config/dhcp

config dnsmasq
        option domainneeded '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
        option localservice '1'
        option ednspacket_max '1232'

config dhcp 'lan'
        option interface 'lan'
        option leasetime '12h'
        option dhcpv4 'server'
        option dhcpv6 'server'
        option ra 'server'
        list ra_flags 'managed-config'
        list ra_flags 'other-config'
        option start '160'
        option limit '80'
        option dns_service '0'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'
        option start '100'
        option limit '150'
        option leasetime '12h'
        list ra_flags 'none'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'

config host
        option name 'freenas'
        option dns '1'
        option mac '0c:c4:7a:b3:25:0a'
        option ip '10.0.1.129'

plus around another 15 config host ie static IP of my local machines

root@OpenWrt-main-router:~# cat /etc/config/sqm
cat: can't open '/etc/config/sqm': No such file or directory
root@OpenWrt-main-router:~# cat /etc/config/firewall

config defaults
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option synflood_protect '1'
        option flow_offloading '1'

config zone
        option name 'lan'
        list network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'

config zone
        option name 'wan'
        list network 'wan'
        list network 'wan6'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'

config forwarding
        option src 'lan'
        option dest 'wan'

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option src_ip 'fc00::/6'
        option dest_ip 'fc00::/6'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-IPSec-ESP'
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option name 'Allow-ISAKMP'
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

config rule
        option name 'Support-UDP-Traceroute'
        option src 'wan'
        option dest_port '33434:33689'
        option proto 'udp'
        option family 'ipv4'
        option target 'REJECT'
        option enabled 'false'

config include
        option path '/etc/firewall.user'



config redirect
        option target 'DNAT'
        option src 'wan'
        option dest 'lan'
        option proto 'tcp'
        option dest_ip '10.0.1.156'
        option dest_port '80'
        option name 'piwigo'
        option src_dport '1122'

plus i have almost another 10 simillar config redirects (ie port forwards)

Appreciate your help.

This is so interesting because everytime someone say “ohh I didn’t change so much” we get this…

Offloading = on.
And this…

And this…

So reset the router and test standard settings and see if the hardware actually works.

Save a backup first so you easily can go back.

Or turn off that offloading because it really feels that we would have half the amount of posts in the forum if we didn’t have that offloading function because everyone complaining over speed have that turned on.

Do you have QOS reserving any bw?

as far as i know no qos

cat /etc/config/sqm
cat: can't open '/etc/config/sqm': No such file or directory

I turned off sw offloading, no change in the speed drop... same stuff.

Your assumption is very strange/weird... whats the connection of router speed with 15 static ip defined as part of the dnsmasq?

Also whats the connection of basic port forward with speed drop? Based on your assumption it means i cant add static hosts into dnsmasq and each port forward degrades router speed... very strange.

I don't think that @flygarn12 is actually suggesting the port forwards or DHCP reservations have any direct impact on the speed/performance of your system (although I could be wrong about @flygarn12's thinking). In my experience, those should have zero impact.

However, I do think it is worth testing with a nearly default configuration if you can. Specifically, by resetting to defaults and only changing the absolute minimum items (i.e. things like PPPoE credentials, if applicable, enabling wifi, and any other truly necessary changes), it reduces the number variables in play. This ensures that there are no additional packages installed and that there aren't minor settings that were changed and forgotten.

To be clear, I'm not saying that the default configuration will magically fix everything, but it might, or if it doesn't, it ensures that your system is in a known state for further troubleshooting/debug. The backup is critical, of course, so that you can get back to your current state quickly and easily.

1 Like

That network config is the same / similar to what was happening with 19.x.

Edit: A bit more finger pointing at DSA being the issue.

@psherman i do get your point ... i cant try ... but as i said .. that was Fresh install and i edited only what was mentioned at the begging of the comment - so almost nothing in total.

maybe the HW of the device is so poor and it cant handle more then ~500,
any view on this?

thanks

Good article by @dlakelan on that subject...

ML observation may warrant testing a master image, also thread may be of interest to see as to a few more PPS with reduced CPU...