AD1C
August 8, 2024, 11:28pm
1
I have a Linksys Linksys WRT3200ACM router and a Motorola cable modem. We have 800MB/s service from Xfinity. I'm running OpenWrt 23.05.4 r24012-d8dd03c46f / LuCI openwrt-23.05 branch git-24.086.45142-09d5a38
We have recently started having streaming problems with our Samsung QLED TV. Long pauses, loss of connection, inability to connect, etc. It's particularly bad when trying to watch the Olympics on YouTube.tv , but I've seen the problem with other streaming services, like Paramount+. I assume we are having a problem with the WiFi network in the house.
When I look at the real-time graphs in the Luci client, on the Wireless tab, I see an almost-steady Phy Rate: 25 Mbit/s. Sometimes higher, but never less. I tried turning off various devices in the house, but the graph did not change. What is strange is that if I click on the Traffic tab (instead of Wireless), both Inbound and Outbound traffic is less than 1 Mbit/s.
How can there be so much wireless activity, but no corresponding inbound/outbound traffic? Furthermore, is there anything I can do to try to find out which IP address the traffic is coming from/going to? I tried some of the tools on this web page:
https://openwrt.org/docs/guide-user/services/network_monitoring/bwmon
but nothing indicated any high-traffic use. So I'm a little stymied at this point. I've rebooted the router several times. I just unplugged the TV. What else can I try?
The phy rate is not directly related to the active traffic, it is simply the negotiated link rate. If you look at ethernet, your device has gigabit ethernet which means it will connect at 10/100/1000 Mbps, depending on the device connected to the other end of the cable. If it connects at 1000 Mbps, that is the phy rate. It doesn't necessarily mean that traffic is actually flowing at a gigabit per second, but rather that the link allows that.
Let's take a look at your config to see if there are any obvious or potential issues.
Also:
is the TV wired or wireless? (I think wireless, but please confirm)
How far away from the AP is the TV, and is it line of sight or through walls/floors?
Do you have any other APs or is this the only one?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like
AD1C
September 21, 2024, 6:27pm
3
root@AD1Cnet:~# ubus call system board
{
"kernel": "5.15.162",
"hostname": "AD1Cnet",
"system": "ARMv7 Processor rev 1 (v7l)",
"model": "Linksys WRT3200ACM",
"board_name": "linksys,wrt3200acm",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.4",
"revision": "r24012-d8dd03c46f",
"target": "mvebu/cortexa9",
"description": "OpenWrt 23.05.4 r24012-d8dd03c46f"
}
}
===============================================
root@AD1Cnet:~# cat /etc/config/network
config interface 'loopback'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
option device 'lo'
config globals 'globals'
option ula_prefix 'fd34:b106:470a::/48'
config interface 'lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
option device 'br-lan'
config interface 'wan'
option proto 'dhcp'
option device 'wan'
config device 'wan_wan_dev'
option name 'wan'
option macaddr 'xx:xx:xx:xx:xx:xx'
config interface 'wan6'
option proto 'dhcpv6'
option device 'wan'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
===============================================
root@AD1Cnet:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
option htmode 'VHT80'
option country 'US'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option macaddr 'xx:xx:xx:xx:xx:xx'
option ssid 'AD1Cnet5'
option encryption 'psk2'
option key '<deleted>'
config wifi-device 'radio1'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
option htmode 'HT20'
option country 'US'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option macaddr 'xx:xx:xx:xx:xx:xx'
option ssid 'AD1Cnet'
option encryption 'psk2'
option key '<deleted>'
config wifi-device 'radio2'
option type 'mac80211'
option channel '34'
option hwmode '11a'
option path 'platform/soc/soc:internal-regs/f10d8000.sdhci/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio2'
option device 'radio2'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
===============================================
root@AD1Cnet:~# 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'
list server '208.67.222.222'
list server '208.67.220.220'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config host
option name 'DX-Cluster'
option dns '1'
option mac 'xx:xx:xx:xx:xx:xx'
option ip '192.168.1.xx'
config host
option name 'MFC-L3780CDW'
option ip '192.168.1.xx'
option mac 'xx:xx:xx:xx:xx:xx'
config host
option name 'BRW900F0CD8E94C'
option ip '192.168.1.xx'
option mac 'xx:xx:xx:xx:xx:xx'
===============================================
root@AD1Cnet:~# cat /etc/config/firewall
config defaults
option syn_flood 1
option input ACCEPT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 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
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
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
# Allow DHCPv6 replies
# see https://dev.openwrt.org/ticket/10381
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
# Allow essential incoming IPv6 ICMP traffic
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
# Allow essential forwarded IPv6 ICMP traffic
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
# allow interoperability with traceroute classic
# note that traceroute uses a fixed port range, and depends on getting
# back ICMP Unreachables. if we're operating in DROP mode, it won't
# work so we explicitly REJECT packets on these ports.
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
# include a file with users custom iptables rules
config include
option path /etc/firewall.user
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
# port redirect of remapped ssh port (22001) on wan
#config redirect
# option src wan
# option src_dport 22001
# option dest lan
# option dest_port 22
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
AD1C
September 21, 2024, 6:31pm
4
I'm sorry it has taken me so long to get back to this.
I did make one discovery this morning. We have a FOSCAM camera in the back of our house that uses WiFi to connect to the network. I unplugged it. I now notice that phy0-ap0 traffic has some bubbles of no activity, but phy1-ap0 is still constantly at ~50 Mbit/s of traffic.
What I really want to know is how do I determine which devices on my WiFi network are responsible for this traffic.
AD1C
September 21, 2024, 6:39pm
6
Here are some examples of the current traffic:
phy0-ap0:
phy1-ap0:
brada4
September 21, 2024, 6:41pm
7
It is not traffic, it is physical media rate over wifi. Go to traffic tab and check again.
Something doesn't seem quite right about your config... would you be willing to reset to defaults and then post those configs.
Please make a backup first so you can restore your existing setup if desired. But the only things I see that are different than the defaults are pretty minor:
wifi config
system DNS resolvers in dnsmasq
3 dhcp reservations
Everythign else is basically bog standard, except that your wireless config file looks odd. A reset to defaults will ensure that we've got a clean slate. Post those configs when you have done that.
brada4
September 21, 2024, 6:57pm
9
Also disable 3rd radio, certainly dont run it on same channel as 2nd.
https://openwrt.org/toh/linksys/wrt3200acm
1 Like
AD1C
September 22, 2024, 3:42pm
10
According to this, isn't the third radio already disabled?
http://192.168.1.1/cgi-bin/luci/admin/network/wireless
AD1C
September 22, 2024, 3:43pm
11
I can reset to defaults, I'm just not sure what is the best way to do this. Would "firstboot" do everything I need? I would prefer not to have to go through the TFTP stuff again.
AD1C
September 22, 2024, 3:49pm
12
FYI, I was having trouble again Sunday morning. YouTube TV would not load. I switched the TV from the 2.4GHz network (phy1-apb0) to the 5GHz network (phy0-apb0) and things got much better. If this were simply a problem with WiFi through the walls, I would have expected things to get worse, not better.
brada4
September 22, 2024, 3:54pm
13
Check the wiki page on how to disable it and re-detect radios after reset.
AD1C
September 23, 2024, 12:10am
14
I think I reset the configuration successfully. Here is how things look now:
root@OpenWrt:~# ubus call system board
{
"kernel": "5.15.162",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 1 (v7l)",
"model": "Linksys WRT3200ACM",
"board_name": "linksys,wrt3200acm",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.4",
"revision": "r24012-d8dd03c46f",
"target": "mvebu/cortexa9",
"description": "OpenWrt 23.05.4 r24012-d8dd03c46f"
}
}
==================================================
root@OpenWrt:~# 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 'fd4e:7c42:c272::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr 'xx:xx:xx:xx:xx:xx'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
==================================================
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
option channel '36'
option band '5g'
option htmode 'VHT80'
option country 'US'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'AD1Cnet5'
option encryption 'psk2'
option macaddr 'xx:xx:xx:xx:xx:xx'
option key '<redacted>'
config wifi-device 'radio1'
option type 'mac80211'
option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
option channel '1'
option band '2g'
option htmode 'HT20'
option country 'US'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'AD1Cnet'
option encryption 'psk2'
option macaddr 'xx:xx:xx:xx:xx:xx'
option key '<redacted>'
config wifi-device 'radio2'
option type 'mac80211'
option path 'platform/soc/soc:internal-regs/f10d8000.sdhci/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'
option channel '34'
option band '5g'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio2'
option device 'radio2'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
==================================================
root@OpenWrt:~# 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 cachesize '1000'
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 start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config host
list mac 'xx:xx:xx:xx:xx:xx'
option ip '192.168.1.135'
==================================================
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option syn_flood 1
option input REJECT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 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
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
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
# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
option name Allow-DHCPv6
option src wan
option proto udp
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
# Allow essential incoming IPv6 ICMP traffic
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
# Allow essential forwarded IPv6 ICMP traffic
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
This looks better. Now the real question is: how is it performing?
AD1C
September 23, 2024, 7:18pm
16
It is better since I switched from the 2GHz interface to the 5GHz interface. I'll try switching back to the 2GHz interface tonight to see if there is any improvement over where it was yesterday before I switched.
brada4
September 23, 2024, 7:52pm
17
Set both AP names same and auto channel, ch34 is 20Mhz wide
AD1C
September 23, 2024, 11:58pm
18
What are the pros/cons of doing this?
Usually, setting the 2.4G and 5G radios to have the same SSID is considered best practice. This allows the client device to dynamically connect to the band that will provide the best performance, as determined by the client itself based on its radio system.
The only "con" here is if you don't have the direct ability to force the client onto one band or the other.... but, this is not recommended as you may be forcing it into a situation that has lower performance than it would choose when relying on its own signal strength indicators and logic.
brada4:
ch34 is 20Mhz wide
ch36 is recommended instead as this can be used in 20, 40, or 80 MHz wide channel width settings (the 'center channel' shifts from 36 > 38 > 40, respectively, but this happens under the hood)
AD1C
September 24, 2024, 8:29pm
20
OK, thanks. This is what I have now. Both radios now use the same SSID. The 5G radio is set to Channel 36, the 2G radio is set to "auto" channel.