Torrenting Crashes UPNP

Hello Openwrt friends,

I recently installed the luci-app-upnp package and let it install all of the dependencies. I did this so I can torrent and let the Xbox connect to live more easily.

I have QOS enabled in the form of HW flow offloading.

While bittorrenting, on a Edgerouter ER-X running OpenWrt 19.07.6 r11278-8055e38794, all device on the network drop connectivity.
Kernal Log:

[    0.000000] Linux version 4.14.215 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11278-8055e38794)) #0 SMP Tue Jan 19 13:10:02 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is UBNT-ERX
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 805747c0, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from 0x80577744 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26224 r8192 d22928 u57344
[    0.000000] pcpu-alloc: s26224 r8192 d22928 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00002007
[    0.000000] Readback ErrCtl register=00002007
[    0.000000] Memory: 252464K/262144K available (4756K kernel code, 239K rwdata, 588K rodata, 1252K init, 255K bss, 9680K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015505] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087825] pid_max: default: 32768 minimum: 301
[    0.097138] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110158] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.125886] Hierarchical SRCU implementation.
[    0.135349] smp: Bringing up secondary CPUs ...
[    0.145094] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.145103] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.145114] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.145246] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.204715] Synchronize counters for CPU 1: done.
[    0.268859] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.268867] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.268873] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.268941] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.325569] Synchronize counters for CPU 2: done.
[    0.385927] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.385934] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.385940] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.386017] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.445136] Synchronize counters for CPU 3: done.
[    0.504727] smp: Brought up 1 node, 4 CPUs
[    0.516299] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.535763] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.548182] pinctrl core: initialized pinctrl subsystem
[    0.559838] NET: Registered protocol family 16
[    0.573113] FPU Affinity set after 11720 emulations
[    0.582597] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.593881] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.605071] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.618705] clocksource: Switched to clocksource GIC
[    0.630157] NET: Registered protocol family 2
[    0.639489] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.653243] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.666018] TCP: Hash tables configured (established 2048 bind 2048)
[    0.678792] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.690291] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.702946] NET: Registered protocol family 1
[    0.711509] PCI: CLS 0 bytes, default 32
[    0.948639] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    0.959988] Crashlog allocated RAM at address 0x3f00000
[    0.970583] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.989555] random: fast init done
[    0.991060] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.007766] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.030737] io scheduler noop registered
[    1.038385] io scheduler deadline registered (default)
[    1.049683] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.065743] console [ttyS0] disabled
[    1.072778] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    1.090724] console [ttyS0] enabled
[    1.104510] bootconsole [early0] disabled
[    1.122585] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    1.136703] Enable NFI Clock
[    1.142442] # MTK NAND # : Use HW ECC
[    1.149752] Device found in MTK table, ID: 1da, EXT_ID: 909546
[    1.161357] Support this Device in MTK table! 1da 
[    1.171068] [NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
[    1.184277] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
[    1.196917] nand: AMD/Spansion NAND 256MiB 3,3V 8-bit
[    1.206966] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.222051] Scanning device for bad blocks
[    1.872804] 6 fixed-partitions partitions found on MTD device MT7621-NAND
[    1.886314] Creating 6 MTD partitions on "MT7621-NAND":
[    1.896718] 0x000000000000-0x000000080000 : "u-boot"
[    1.907646] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    1.919242] 0x0000000e0000-0x000000140000 : "factory"
[    1.930274] 0x000000140000-0x000000440000 : "kernel1"
[    1.941389] 0x000000440000-0x000000740000 : "kernel2"
[    1.952445] 0x000000740000-0x00000ff00000 : "ubi"
[    1.964731] [mtk_nand] probe successfully!
[    1.973658] Signature matched and data read!
[    1.982153] load_fact_bbt success 2047
[    1.990270] libphy: Fixed MDIO Bus: probed
[    2.071245] libphy: mdio: probed
[    3.477263] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    3.489815] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    3.509228] NET: Registered protocol family 10
[    3.519618] Segment Routing with IPv6
[    3.526984] NET: Registered protocol family 17
[    3.535952] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.561745] 8021q: 802.1Q VLAN Support v1.8
[    3.572883] UBI: auto-attach mtd5
[    3.579552] ubi0: attaching mtd5
[    3.762930] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[    4.688140] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    4.730001] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    4.741869] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
[    5.182653] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    5.933761] ubi0: scanning is finished
[    5.958902] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[    5.969840] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.983519] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.997025] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    6.010881] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[    6.023008] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    6.037380] ubi0: max/mean erase counter: 17/13, WL threshold: 4096, image sequence number: 1411398205
[    6.055901] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[    6.074454] ubi0: background thread "ubi_bgt0d" started, PID 366
[    6.076403] block ubiblock0_0: created from ubi0:0(rootfs)
[    6.097363] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    6.111230] hctosys: unable to open rtc device (rtc0)
[    6.127568] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    6.146004] Freeing unused kernel memory: 1252K
[    6.155050] This architecture does not have kernel memory protection.
[    6.697464] init: Console is alive
[    6.704597] init: - watchdog -
[    6.837256] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.900154] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.929025] init: - preinit -
[    7.588418] mtk_soc_eth 1e100000.ethernet: PPE started
[   10.798803] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 433
[   10.845049] random: procd: uninitialized urandom read (4 bytes read)
[   10.870769] UBIFS (ubi0:1): recovery needed
[   11.059355] UBIFS (ubi0:1): recovery completed
[   11.068323] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.083931] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.103673] UBIFS (ubi0:1): FS size: 242651136 bytes (231 MiB, 1911 LEBs), journal size 12189696 bytes (11 MiB, 96 LEBs)
[   11.125311] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.138479] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID B3E8BA6E-F656-4F38-B4C1-C26BC8EBB305, small LPT model
[   11.169651] mount_root: switching to ubifs overlay
[   11.202377] urandom-seed: Seeding with /etc/urandom.seed
[   11.309460] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.335199] procd: - early -
[   11.341101] procd: - watchdog -
[   11.968826] procd: - watchdog -
[   11.975420] procd: - ubus -
[   12.049094] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.065276] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.078344] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.091903] procd: - init -
[   12.669196] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.732385] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.749788] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.766200] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   12.811093] xt_time: kernel timezone is -0000
[   12.825396] PPP generic driver version 2.4.2
[   12.835164] NET: Registered protocol family 24
[   12.837939] urngd: v1.0.2 started.
[   12.846467] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.988428] random: crng init done
[   12.995243] random: 6 urandom warning(s) missed due to ratelimiting
[   18.994590] mtk_soc_eth 1e100000.ethernet: PPE started
[   19.010972] br-lan: port 1(eth0.1) entered blocking state
[   19.021761] br-lan: port 1(eth0.1) entered disabled state
[   19.033180] device eth0.1 entered promiscuous mode
[   19.042796] device eth0 entered promiscuous mode
[   19.054743] br-lan: port 1(eth0.1) entered blocking state
[   19.065564] br-lan: port 1(eth0.1) entered forwarding state
[   19.077142] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.029475] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   26.343225] mtk_soc_eth 1e100000.ethernet eth0: port 4 link down
[   27.082909] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
[   29.002691] mtk_soc_eth 1e100000.ethernet eth0: port 2 link down
[   29.659897] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[   31.537051] mtk_soc_eth 1e100000.ethernet eth0: port 0 link down
[   41.377595] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[   43.321317] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[   45.111520] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   46.607326] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
[   50.293688] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up

I'm not able to copy my system log here, so here's a copy of it on pastebin: https://pastebin.com/tDYLwFb2

Disconnecting all of the ethernet ports on the edgerouter erx and connecting them all back will restore connectivity without resetting.

Any advice is appreciated.

Bump, any advice appreciated.

Fixed the problem. The issue was related to using HW flow offloading for the Edgerouter ER-X - the mediatek SoC .
Once I disabled it and went to software based QOS, the issue went away.

This topic was automatically closed 0 minutes after the last reply. New replies are no longer allowed.