<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p>Hi Jens,<br>
<br>
I see I made a typo about hardware version. It is v1.8 not v1.08.<br>
LEDE version is Reboot (HEAD, r1178) of 29-july-2016.<br>
<br>
I ran a 2 hour test for you and it did not crash. May be not long enough?<br>
Results after around 2 hour testing udp iperf3 over wireguard<br>
<br>
TOP output: UDP over Wireguard while running<br>
Mem: 22900K used, 4912K free, 632K shrd, 1704K buff, 7096K cached<br>
CPU: 1% usr 97% sys 0% nic 0% idle 0% io 0% irq 0% sirq<br>
Load average: 1.04 1.03 1.00 2/43 3392<br>
PID PPID USER STAT VSZ %VSZ %CPU COMMAND<br>
1747 1741 root R 2800 10% 98% iperf3 -c 10.0.0.1 -u -b 1G -t 7200<br>
107 2 root SW 0 0% 1% [kworker/0:1]<br>
3391 3385 root R 1180 4% 0% top<br>
<br>
UDP over WG<br>
root@lede:~# iperf3 -c 10.0.0.1 -u -b 1G -t 7200<br>
[ 4] 7189.00-7190.00 sec 3.06 MBytes 25.7 Mbits/sec 392<br>
[ 4] 7190.00-7191.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7191.00-7192.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7192.00-7193.00 sec 3.06 MBytes 25.7 Mbits/sec 392<br>
[ 4] 7193.00-7194.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7194.00-7195.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7195.00-7196.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7196.00-7197.00 sec 3.06 MBytes 25.7 Mbits/sec 392<br>
[ 4] 7197.00-7198.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7198.00-7199.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
[ 4] 7199.00-7200.00 sec 3.07 MBytes 25.7 Mbits/sec 393<br>
- - - - - - - - - - - - - - - - - - - - - - - - -<br>
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams<br>
[ 4] 0.00-7200.00 sec 21.5 GBytes 25.6 Mbits/sec 0.047 ms 6/2814938 (0.00021%)<br>
[ 4] Sent 2814938 datagrams<br>
<br>
UDP, plain<br>
root@lede:~# iperf3 -c 192.168.2.222 -u -b 1G -t 7200<br>
Connecting to host 192.168.2.222, port 5201<br>
[ 4] local 192.168.2.5 port 48815 connected to 192.168.2.222 port 5201<br>
[ ID] Interval Transfer Bandwidth Total Datagrams<br>
[ 4] 0.00-1.00 sec 28.2 MBytes 236 Mbits/sec 3605<br>
[ 4] 1.00-2.00 sec 28.0 MBytes 235 Mbits/sec 3582<br>
[ 4] 2.00-3.00 sec 28.2 MBytes 237 Mbits/sec 3609<br>
[ 4] 3.00-4.00 sec 28.2 MBytes 237 Mbits/sec 3614<br>
[ 4] 4.00-5.00 sec 28.1 MBytes 236 Mbits/sec 3598<br>
[ 4] 5.00-6.00 sec 28.2 MBytes 236 Mbits/sec 3609<br>
[ 4] 6.00-7.00 sec 27.9 MBytes 234 Mbits/sec 3577<br>
[ 4] 7.00-8.00 sec 28.2 MBytes 237 Mbits/sec 3609<br>
[ 4] 8.00-9.00 sec 28.1 MBytes 236 Mbits/sec 3597<br>
[ 4] 9.00-10.00 sec 28.2 MBytes 236 Mbits/sec 3608<br>
[ 4] 10.00-11.00 sec 28.1 MBytes 236 Mbits/sec 3593<br>
[ 4] 11.00-12.00 sec 28.1 MBytes 235 Mbits/sec 3594<br>
<br>
<br>
TCP, plain<br>
root@lede:/tmp# iperf3 -c 192.168.2.222<br>
Connecting to host 192.168.2.222, port 5201<br>
[ 4] local 192.168.2.7 port 34732 connected to 192.168.2.222 port 5201<br>
[ ID] Interval Transfer Bandwidth Retr Cwnd<br>
[ 4] 0.00-1.02 sec 14.3 MBytes 117 Mbits/sec 2 132 KBytes<br>
[ 4] 1.02-2.08 sec 13.8 MBytes 109 Mbits/sec 0 132 KBytes<br>
[ 4] 2.08-3.04 sec 12.5 MBytes 109 Mbits/sec 0 132 KBytes<br>
[ 4] 3.04-4.00 sec 12.5 MBytes 110 Mbits/sec 1 132 KBytes<br>
[ 4] 4.00-5.09 sec 13.8 MBytes 106 Mbits/sec 0 132 KBytes<br>
[ 4] 5.09-6.05 sec 12.5 MBytes 109 Mbits/sec 0 132 KBytes<br>
[ 4] 6.05-7.01 sec 12.5 MBytes 109 Mbits/sec 0 132 KBytes<br>
[ 4] 7.01-8.07 sec 13.8 MBytes 109 Mbits/sec 1 132 KBytes<br>
[ 4] 8.07-9.03 sec 12.5 MBytes 109 Mbits/sec 0 132 KBytes<br>
[ 4] 9.03-10.12 sec 13.8 MBytes 106 Mbits/sec 0 132 KBytes<br>
<br>
<br>
TCP over WG<br>
iperf3 -c 10.0.0.1<br>
Connecting to host 10.0.0.1, port 5201<br>
[ 4] local 10.0.0.2 port 46832 connected to 10.0.0.1 port 5201<br>
[ ID] Interval Transfer Bandwidth Retr Cwnd<br>
[ 4] 0.00-1.37 sec 3.75 MBytes 22.9 Mbits/sec 0 134 KBytes<br>
[ 4] 1.37-2.27 sec 2.50 MBytes 23.4 Mbits/sec 0 134 KBytes<br>
[ 4] 2.27-3.17 sec 2.50 MBytes 23.4 Mbits/sec 0 134 KBytes<br>
[ 4] 3.17-4.06 sec 2.50 MBytes 23.4 Mbits/sec 0 134 KBytes<br>
[ 4] 4.06-5.40 sec 3.75 MBytes 23.6 Mbits/sec 0 141 KBytes<br>
[ 4] 5.40-6.28 sec 2.50 MBytes 23.6 Mbits/sec 0 141 KBytes<br>
[ 4] 6.28-7.17 sec 2.50 MBytes 23.7 Mbits/sec 0 141 KBytes<br>
[ 4] 7.17-8.06 sec 2.50 MBytes 23.7 Mbits/sec 0 141 KBytes<br>
[ 4] 8.06-9.38 sec 3.75 MBytes 23.7 Mbits/sec 0 141 KBytes<br>
[ 4] 9.38-10.27 sec 2.50 MBytes 23.7 Mbits/sec 0 141 KBytes<br>
<br>
<br>
DMESG:<br>
root@lede:~# dmesg<br>
[ 0.000000] Linux version 4.4.15 (buildbot@builds) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1178) ) #1 Fri Jul 29 22:27:49 UTC 2016<br>
[ 0.000000] MyLoader: sysp=b2822a22, boardp=aaa2a238, parts=aabaa2aa<br>
[ 0.000000] bootconsole [early0] enabled<br>
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)<br>
[ 0.000000] SoC: Atheros AR9132 rev 2<br>
[ 0.000000] Determined physical RAM map:<br>
[ 0.000000] memory: 02000000 @ 00000000 (usable)<br>
[ 0.000000] Initrd not found or empty - disabling initrd<br>
[ 0.000000] No valid device tree found, continuing without<br>
[ 0.000000] Zone ranges:<br>
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]<br>
[ 0.000000] Movable zone start for each node<br>
[ 0.000000] Early memory node ranges<br>
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]<br>
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]<br>
[ 0.000000] On node 0 totalpages: 8192<br>
[ 0.000000] free_area_init_node: node 0, pgdat 8042c5d0, node_mem_map 81000000<br>
[ 0.000000] Normal zone: 64 pages used for memmap<br>
[ 0.000000] Normal zone: 0 pages reserved<br>
[ 0.000000] Normal zone: 8192 pages, LIFO batch:0<br>
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.<br>
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes<br>
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768<br>
[ 0.000000] pcpu-alloc: [0] 0<br>
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128<br>
[ 0.000000] Kernel command line: board=TL-WR1043ND console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd<br>
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)<br>
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)<br>
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)<br>
[ 0.000000] Writing ErrCtl register=00000000<br>
[ 0.000000] Readback ErrCtl register=00000000<br>
[ 0.000000] Memory: 27544K/32768K available (3076K kernel code, 163K rwdata, 772K rodata, 268K init, 205K bss, 5224K reserved, 0K cma-reserved)<br>
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<br>
[ 0.000000] NR_IRQS:51<br>
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz<br>
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns<br>
[ 0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns<br>
[ 0.007882] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)<br>
[ 0.090589] pid_max: default: 32768 minimum: 301<br>
[ 0.095359] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)<br>
[ 0.101977] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)<br>
[ 0.112308] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns<br>
[ 0.123737] NET: Registered protocol family 16<br>
[ 0.129993] MIPS: machine is TP-LINK TL-WR1043ND<br>
[ 0.420183] clocksource: Switched to clocksource MIPS<br>
[ 0.426903] NET: Registered protocol family 2<br>
[ 0.432523] TCP established hash table entries: 1024 (order: 0, 4096 bytes)<br>
[ 0.439500] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)<br>
[ 0.445920] TCP: Hash tables configured (established 1024 bind 1024)<br>
[ 0.452413] UDP hash table entries: 256 (order: 0, 4096 bytes)<br>
[ 0.458259] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)<br>
[ 0.464876] NET: Registered protocol family 1<br>
[ 0.469297] PCI: CLS 0 bytes, default 32<br>
[ 0.470638] futex hash table entries: 256 (order: -1, 3072 bytes)<br>
[ 0.476848] Crashlog allocated RAM at address 0x1f00000<br>
[ 0.504001] squashfs: version 4.0 (2009/01/31) Phillip Lougher<br>
[ 0.509833] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.<br>
[ 0.522683] io scheduler noop registered<br>
[ 0.526609] io scheduler deadline registered (default)<br>
[ 0.532145] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled<br>
[ 0.542462] console [ttyS0] disabled<br>
[ 0.566070] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12500000) is a 16550A<br>
[ 0.574774] console [ttyS0] enabled<br>
[ 0.581793] bootconsole [early0] disabled<br>
[ 0.596153] m25p80 spi0.0: found s25sl064p, expected m25p80<br>
[ 0.601854] m25p80 spi0.0: s25sl064p (8192 Kbytes)<br>
[ 0.607965] 5 tp-link partitions found on MTD device spi0.0<br>
[ 0.613633] Creating 5 MTD partitions on "spi0.0":<br>
[ 0.618465] 0x000000000000-0x000000020000 : "u-boot"<br>
[ 0.625295] 0x000000020000-0x000000172068 : "kernel"<br>
[ 0.632372] 0x000000172068-0x0000007f0000 : "rootfs"<br>
[ 0.639339] mtd: device 2 (rootfs) set to be root filesystem<br>
[ 0.645169] 1 squashfs-split partitions found on MTD device rootfs<br>
[ 0.651419] 0x000000350000-0x0000007f0000 : "rootfs_data"<br>
[ 0.658913] 0x0000007f0000-0x000000800000 : "art"<br>
[ 0.665756] 0x000000020000-0x0000007f0000 : "firmware"<br>
[ 0.674784] Realtek RTL8366RB ethernet switch driver version 0.2.4<br>
[ 0.790207] rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)<br>
[ 0.796934] rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found<br>
[ 1.011341] libphy: rtl8366rb: probed<br>
[ 1.332238] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII<br>
[ 1.341465] NET: Registered protocol family 10<br>
[ 1.350976] NET: Registered protocol family 17<br>
[ 1.355555] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.<br>
[ 1.368356] Bridge firewalling registered<br>
[ 1.372578] 8021q: 802.1Q VLAN Support v1.8<br>
[ 1.378869] hctosys: unable to open rtc device (rtc0)<br>
[ 1.391003] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.<br>
[ 1.399744] Freeing unused kernel memory: 268K (8044d000 - 80490000)<br>
[ 2.877793] init: Console is alive<br>
[ 2.881562] init: - watchdog -<br>
[ 4.201262] init: - preinit -<br>
[ 4.941373] ar71xx: pll_reg 0xb8050014: 0x1a000000<br>
[ 4.941412] eth0: link up (1000Mbps/Full duplex)<br>
[ 4.971517] random: procd urandom read with 8 bits of entropy available<br>
[ 8.155982] jffs2: notice: (368) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.<br>
[ 8.174917] mount_root: switching to jffs2 overlay<br>
[ 8.196628] urandom-seed: Seeding with /etc/urandom.seed<br>
[ 8.474797] eth0: link down<br>
[ 8.492080] procd: - early -<br>
[ 8.495110] procd: - watchdog -<br>
[ 9.077170] procd: - ubus -<br>
[ 9.134480] procd: - init -<br>
[ 9.821676] wireguard: WireGuard loaded. See www.wireguard.io for information.<br>
[ 9.828955] wireguard: (C) Copyright 2015-2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.<br>
[ 9.842593] ip6_tables: (C) 2000-2006 Netfilter Core Team<br>
[ 9.868011] Loading modules backported from Linux version wt-2016-06-20-0-gbc17424<br>
[ 9.875704] Backport generated by backports.git backports-20160216-7-g5735958<br>
[ 9.886894] ip_tables: (C) 2000-2006 Netfilter Core Team<br>
[ 9.904908] nf_conntrack version 0.5.0 (434 buckets, 1736 max)<br>
[ 9.957814] xt_time: kernel timezone is -0000<br>
[ 10.034798] PPP generic driver version 2.4.2<br>
[ 10.042280] NET: Registered protocol family 24<br>
[ 10.138100] ath: EEPROM regdomain: 0x0<br>
[ 10.138128] ath: EEPROM indicates default country code should be used<br>
[ 10.138142] ath: doing EEPROM country->regdmn map search<br>
[ 10.138166] ath: country maps to regdmn code: 0x3a<br>
[ 10.138182] ath: Country alpha2 being used: US<br>
[ 10.138195] ath: Regpair used: 0x3a<br>
[ 10.179744] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'<br>
[ 10.183754] ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2<br>
[ 19.824140] ar71xx: pll_reg 0xb8050014: 0x1a000000<br>
[ 19.824898] eth0: link up (1000Mbps/Full duplex)<br>
[ 19.846332] device eth0.1 entered promiscuous mode<br>
[ 19.851233] device eth0 entered promiscuous mode<br>
[ 19.867997] br-lan: port 1(eth0.1) entered forwarding state<br>
[ 19.873723] br-lan: port 1(eth0.1) entered forwarding state<br>
[ 21.870241] br-lan: port 1(eth0.1) entered forwarding state<br>
[ 76.210298] random: nonblocking pool is initialized<br>
[ 238.115582] br-lan: port 1(eth0.1) entered disabled state<br>
[ 238.271197] device eth0.1 left promiscuous mode<br>
[ 238.275779] device eth0 left promiscuous mode<br>
[ 238.280314] br-lan: port 1(eth0.1) entered disabled state<br>
[ 238.301614] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready<br>
[ 238.745386] eth0: link down<br>
[ 243.024555] ar71xx: pll_reg 0xb8050014: 0x1a000000<br>
[ 243.024616] eth0: link up (1000Mbps/Full duplex)<br>
[ 243.046511] device eth0.1 entered promiscuous mode<br>
[ 243.051419] device eth0 entered promiscuous mode<br>
[ 243.067847] br-lan: port 1(eth0.1) entered forwarding state<br>
[ 243.073573] br-lan: port 1(eth0.1) entered forwarding state<br>
[ 245.070617] br-lan: port 1(eth0.1) entered forwarding state<br>
<br>
<br>
This router is a spare router and only used for the vacations to share wifi connection.<br>
I would like to use Wireguard to secure my trafic.<br>
<br>
Greats,<br>
<br>
René van Dorst.<br>
</p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<div class="moz-cite-prefix">On 03.08.2016 08:48, René van Dorst wrote:</div>
<blockquote cite="mid:20160803064853.Horde.ZExiUp0by8SskYUmZW7CFq4@www.vdorst.com" type="cite">
<p>...<br>
I also tested wireguard on a router. TP-Link WR1043ND v1.08 with a Atheros AR9132 400MHz cpu.<br>
Running LEDE 28-july-2016, wireguard & iperf3 via packagemanager.</p>
</blockquote>
<p>so you do not observe crashing of the router like we do with the tp-link wr841Nv11 -</p>
<p>do you also test iperf with udp packets , around 200 Mbit or so ?<br>
acording to openwrt wiki say that 1043v1.xx runs even slower cpu , but have 8Mb of flash</p>
<table class="inline dataplugin_table">
<tbody>
<tr>
<td class="leftalign model">TL-WR1043ND</td>
<td class="leftalign version">v1-v1.11</td>
<td class="leftalign platform">Atheros AR9132</td>
<td class="rightalign cpu_mhz">400</td>
<td class="rightalign flash_mb">8</td>
<td class="rightalign ram_mb">32</td>
<td class="leftalign wlan_hardware">Atheros AR9100 (integrated)</td>
<td class="leftalign wlan_24ghz">b/g/n</td>
<td class="rightalign ethernet_gbit_ports">5</td>
<td class="leftalign usb_ports">1x 2.0</td>
<td class="leftalign serial">Yes</td>
</tr>
</tbody>
</table>
<p>as far as i understand is the lan also on the wifi chip, so this differs .. <br>
for the 841v11 it should be QCA9533-AL3A running with 560 <abbr title="Megahertz">MHz with 32 MB Ram</abbr> Zentel A3S56D40GTP-50L. switch QCA9533-BL3A built-in</p>
<p><a class="moz-txt-link-freetext" href="https://wiki.openwrt.org/toh/TP-Link/tl-wr841nd">https://wiki.openwrt.org/toh/TP-Link/tl-wr841nd</a><br>
<a class="moz-txt-link-freetext" href="https://wiki.openwrt.org/toh/TP-Link/tl-wr1043nd">https://wiki.openwrt.org/toh/TP-Link/tl-wr1043nd</a></p>
sidenode tplink name convention (to prevent confusion): mainly important is running number like 1043 or 841 and the hardware revision like v11, the N or ND are only antenna related, the .123 are factory firmware revision of the specific hardware revision - which is more important for us here<br>
<br>
</blockquote>
</body>
</html>