# Cudy WR3000 performance issues

**URL:** <https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985>\
**Category:** Installing and Using OpenWrt\
**Created:** [May 22, 2024, 6:46am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985 "2024-05-22T06:46:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 22, 2024, 6:46am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/1 "2024-05-22T06:46:22Z")

</div>

Hi all, some time ago I bought Cudy WR1000, however I am not satisfied with receiving bandwidth on it.

Let's start from beginning, I have 500/50Mbps Internet connectivity from my ISP (pppoe), but I am able to reach ~350/50Mbps using WR3000 (5Ghz radio, 160Mhz, C:36) and AX201 laptop card (connected at 2402/2402Mbps), while it takes 500/50Mbps on LAN ports. As a part of testing I decided to take a look on possible transfers using WLAN interface, therefore used iperf hosted on WR3000 (and AX201 client, 2m away from router), the results are as below:

```plaintext
Connecting to host 192.168.0.1, port 5201
[4] local 192.168.0.125 port 55396 connected to 192.168.0.1 port 5201
[ID] Interval Transfer Bandwidth
[4] 0.00-1.00 sec 84.0 MBytes 703 Mbits/sec
[4] 1.00-2.00 sec 82.8 MBytes 696 Mbits/sec
[4] 2.00-3.00 sec 78.6 MBytes 659 Mbits/sec
[4] 3.00-4.00 sec 82.1 MBytes 689 Mbits/sec
[4] 4.00-5.00 sec 76.4 MBytes 641 Mbits/sec
[4] 5.00-6.00 sec 80.8 MBytes 678 Mbits/sec
[4] 6.00-7.00 sec 85.4 MBytes 717 Mbits/sec
[4] 7.00-8.00 sec 78.6 MBytes 659 Mbits/sec
[4] 8.00-9.00 sec 77.1 MBytes 647 Mbits/sec
[4] 9.00-10.00 sec 77.2 MBytes 649 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ID] Interval Transfer Bandwidth
[4] 0.00-10.00 sec 803 MBytes 674 Mbits/sec sender
[4] 0.00-10.00 sec 803 MBytes 674 Mbits/sec receiver

```

From what I found in internet, those transfers are a little bit low as more often they are closer to 1Gbps than 500Mbps (as in my case). What is more IMHO the CPU load is quite high during iperf tests because it reaches ~40%, despite changes I set (see below). Above transfers are very similar for stock and openwrt firmware. From things that I've changed on openwrt setup:

**/etc/config/firewall**

```plaintext
config defaults
        option syn_flood '1'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option flow_offloading '1'
        option flow_offloading_hw '1'

config zone
        option name 'wan'
        list device 'pppoe-wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'

```

**/etc/modules.conf**

`options mt7915e wed_enable=Y`

Any ideas why WAN speeds are so low, and if this is not somehow connected with iperf results? I am open to share logs, configs if any of them are need.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 27, 2024, 10:38pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/2 "2024-05-27T22:38:43Z")

</div>

Please post output of  
`ubus call system board`

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 7:52am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/3 "2024-05-28T07:52:47Z")

</div>

Hi @anon63541380,

here is the output:

```plaintext
        "kernel": "5.15.155",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 4",
        "model": "Cudy WR3000 v1",
        "board_name": "cudy,wr3000-v1",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05-SNAPSHOT",
                "revision": "r23861-447eef2063",
                "target": "mediatek/filogic",
                "description": "OpenWrt 23.05-SNAPSHOT r23861-447eef2063"
        }

```

Yesterday I directed my investigation into differences between mine and others setup, and the difference is ISP of course. Therefore I started thinking in direction of MTU values on interfaces, however it seems that I had the standard setup, so 1492 on pppoe and 1500 on other interfaces 😑 So don't see a space to modify them.

Thanks for any suggestions

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 7:56am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/4 "2024-05-28T07:56:09Z")

</div>

Please install release 23.05.3 and follow up here:

> [@Massive PPPoE performance drop in 23.x with Archer C7 v2](https://forum.openwrt.org/t/massive-pppoe-performance-drop-in-23-x-with-archer-c7-v2/197288/5):
>
> First correct MSS: in /etc/nftables.d/mssfix.nft chain mangle\_postrouting { type filter hook postrouting priority mangle; policy accept; oif $wan\_devices tcp flags syn / syn,fin,rst tcp option maxseg size set rt mtu } (fw4 check && service firewall restart) Then apply this patch (note if ppoe lowlevel device is not vlan like eth0.1 it is not sufficient) -\> view file -\> raw -\> upload to /usr/share/ucode/fw4.uc (backing up original just in case) then do the f…

Likely no need for hardware offload at all, problem is caused by !=1500MTU and therefore oversized packets kicking offload out at pppoe interface.

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 9:41am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/5 "2024-05-28T09:41:53Z")

</div>

1. OpenWrt 23.0.5 installed
2. mssfix.nft created:

```plaintext
nft list ruleset | head -20
table inet fw4 {
        flowtable ft {
                hook ingress priority filter
                devices = { lan1, lan2, lan3, phy0-ap0, phy1-ap0 }
                flags offload
                counter
        }

        chain mangle_postrouting {
                type filter hook postrouting priority mangle; policy accept;
                oif "pppoe-wan" tcp flags syn / fin,syn,rst tcp option maxseg size set rt mtu
        }

        chain input {
                type filter hook input priority filter; policy drop;
                iifname "lo" accept comment "!fw4: Accept traffic from loopback"
                ct state established,related accept comment "!fw4: Allow inbound established and related flows"
                tcp flags syn / fin,syn,rst,ack jump syn_flood comment "!fw4: Rate limit TCP syn packets"
                iifname "br-lan" jump input_lan comment "!fw4: Handle lan IPv4/IPv6 input traffic"
                iifname "pppoe-wan" jump input_wan comment "!fw4: Handle wan IPv4/IPv6 input traffic"

```

1. Just in case I also applied the patch on fw4.uc

Unfortunately not seeing improvement on WAN speeds

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 10:35am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/6 "2024-05-28T10:35:20Z")

</div>

> flags offload

Fix is only for software offload. Primitive slow old devices.

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 10:36am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/7 "2024-05-28T10:36:45Z")

</div>

Hardware offload list has nothing in wan side, rendering it useless.

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 11:33am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/8 "2024-05-28T11:33:11Z")

</div>

Sorry @anon63541380 I thought you meant to apply fix from post you referenced to. Are you seeing something I can focus on now?

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 11:59am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/9 "2024-05-28T11:59:40Z")

</div>

Disable hardware offload, it does not work. Enable only software offload.

~~2402/2402Mbps thats a lie, your router supports 866 in one band and 144 in other.~~ amazon fraXd seller

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 12:11pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/10 "2024-05-28T12:11:40Z")

</div>

It was disabled, only sw offload is enabled:

```plaintext
root@OpenWrt:~# uci show | grep 'offloading'
firewall.@defaults[0].flow_offloading='1'

```

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 12:30pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/11 "2024-05-28T12:30:13Z")

</div>

> [@matte0](#):
>
> ` flags offload`

This is hardware offload.

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 12:53pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/12 "2024-05-28T12:53:44Z")

</div>

Ohh yes, sorry for confusion. I've disabled it after sent the log from "nft list ruleset", it is not there now:

```plaintext
table inet fw4 {
        flowtable ft {
                hook ingress priority filter
                devices = { br-lan }
                counter
        }

        chain mangle_postrouting {
                type filter hook postrouting priority mangle; policy accept;
                oif "pppoe-wan" tcp flags syn / fin,syn,rst tcp option maxseg size set rt mtu
        }

        chain input {
                type filter hook input priority filter; policy drop;
                iifname "lo" accept comment "!fw4: Accept traffic from loopback"
                ct state established,related accept comment "!fw4: Allow inbound established and related flows"
                tcp flags syn / fin,syn,rst,ack jump syn_flood comment "!fw4: Rate limit TCP syn packets"
                iifname "br-lan" jump input_lan comment "!fw4: Handle lan IPv4/IPv6 input traffic"
                iifname "pppoe-wan" jump input_wan comment "!fw4: Handle wan IPv4/IPv6 input traffic"
                jump handle_reject

```

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 2:00pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/13 "2024-05-28T14:00:06Z")

</div>

Should be both pppoe-wan and br-lan for offload. Something went wrong with your editing.

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 3:30pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/14 "2024-05-28T15:30:40Z")

</div>

Normally wuthout fw4.uc patch offload list looks like:

```plaintext
        flowtable ft {
                hook ingress priority filter
                devices = { lan1, lan2, lan3, lan4, phy0-ap0, phy0-ap1, phy0-ap2, wan }
                counter
        }

```

after patch:

```plaintext
        flowtable ft {
                hook ingress priority filter
                devices = { br-lan, pppoe-wan }
                counter
        }

```

i dont know how your wan pieces disappeared, if possible backup config, reset system, enable checkbox, and verify that lists contains more or less all physical interfaces.  
Then check speed witout and with mssfix.nft (should not change the list)  
Then apply fw4.uc update and check interface list and speed again.

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 3:32pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/15 "2024-05-28T15:32:50Z")

</div>

There are two reasons packet fails to offload and consequentially removes "flow" from offload table:  
1/ oversize packet due to worng mss  
2/ inability to calculate packet's destination due to more than one encapsulation on input or output side

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 9:59pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/16 "2024-05-28T21:59:04Z")

</div>

I reset settings on router, and applied the fix from scratch, now (I believe) firewall entries look fine:

```plaintext
table inet fw4 {
        flowtable ft {
                hook ingress priority filter
                devices = { br-lan, pppoe-wan, wan }
                counter
        }

        chain mangle_postrouting {
                type filter hook postrouting priority mangle; policy accept;
                oif { "wan", "pppoe-wan" } tcp flags syn / fin,syn,rst tcp option maxseg size set rt mtu
        }

        chain input {
                type filter hook input priority filter; policy drop;
                iifname "lo" accept comment "!fw4: Accept traffic from loopback"
                ct state established,related accept comment "!fw4: Allow inbound established and related flows"
                tcp flags syn / fin,syn,rst,ack jump syn_flood comment "!fw4: Rate limit TCP syn packets"
                iifname "br-lan" jump input_lan comment "!fw4: Handle lan IPv4/IPv6 input traffic"
                iifname { "wan", "pppoe-wan" } jump input_wan comment "!fw4: Handle wan IPv4/IPv6 input traffic"
                jump handle_reject

```

The speed on WAN is still ~320Mbps. Additionally I cannot enable WLAN 5G with 160Mhz width, 80Mhz works fine.

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 10:17pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/17 "2024-05-28T22:17:13Z")

</div>

Yes, firewall entries are fine  
Is your wired speed fine?  
Have you checked iw reg get if any 160mhz is permitted in your location?

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 28, 2024, 10:31pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/18 "2024-05-28T22:31:33Z")

</div>

Yes, wired speed is fine.

I've checked and there is 160Mhz permited for my region, what is more previously I was using that one without issues.

I also checked real bandwidth between iperf3 hosted on router and WLAN client, and it was ~450Mbps (all on 80Mhz width 5G, on 160 it was something like 600-700Mbps), so it seems that WLAN is capable to transfer on higher speeds, but for some reason not if it goes about data comming from WAN source.

---

<div class="post-metadata">

**Author:** ![anon63541380](https://forum.openwrt.org/letter_avatar/anon63541380/32/6_449c533f586939b6e5f246632a46421f.png) [@anon63541380](https://forum.openwrt.org/u/anon63541380)\
**Post date:** [May 28, 2024, 10:55pm UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/19 "2024-05-28T22:55:57Z")

</div>

You are measuring totally irrelevant things.  
Please post a link to a report via

> **[Bufferbloat and Internet Speed Test - Waveform](https://www.waveform.com/tools/bufferbloat)**
>
> Is bufferbloat causing issues with your internet connection? Run this test to find out.

---

<div class="post-metadata">

**Author:** ![matte0](https://forum.openwrt.org/letter_avatar/matte0/32/6_449c533f586939b6e5f246632a46421f.png) [@matte0](https://forum.openwrt.org/u/matte0)\
**Post date:** [May 29, 2024, 5:02am UTC](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985/20 "2024-05-29T05:02:22Z")

</div>

> **[Bufferbloat Test Result: A](https://www.waveform.com/tools/bufferbloat?test-id=be3d8b6f-be0f-479e-bf11-d8af94a06a82)**
>
> View the full results, and test your own bufferbloat

[Next page](https://forum.openwrt.org/t/cudy-wr3000-performance-issues/198985.md?page=2)
