Modify

Opened 2 years ago

Last modified 2 years ago

#21624 new defect

Low performance eth0 on the AR7242, AR9331, AR9344

Reported by: pawel401@… Owned by: developers
Priority: highest Milestone: Designated Driver (Trunk)
Component: kernel Version: Trunk
Keywords: Cc:

Description

The problem appears to LTE modems Huawei.

If use ETH0 the speed is not more than 20 Mbps

If you use the eth1 speed:
http://www.speedtest.net/my-result/5001830834

Attachments (0)

Change History (7)

comment:1 Changed 2 years ago by nbd

What OpenWrt version are you running?

comment:2 Changed 2 years ago by pawel401@…

comment:3 Changed 2 years ago by pawel401@…

The most interesting one measurement of the speed at 70 Mbit eth0 shows.
Second 50mbit.
The third and subsequent 20mbit.

Playing with pdata-> max_frame_len = SZ_16K - 1; in dev-eth.c provides short-term increase in the rate.

On eth1 75-90mbit has held steady.

comment:4 Changed 2 years ago by pawel401@…

iperf3 -l 1500 -c 192.168.1.27

On eth1
Connecting to host 192.168.1.27, port 5201
[ 4] local 192.168.1.1 port 47645 connected to 192.168.1.27 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.01 sec 10.9 MBytes 91.3 Mbits/sec 0 144 KBytes
[ 4] 1.01-2.00 sec 10.9 MBytes 92.3 Mbits/sec 0 216 KBytes
[ 4] 2.00-3.00 sec 10.4 MBytes 87.1 Mbits/sec 0 216 KBytes
[ 4] 3.00-4.00 sec 11.1 MBytes 93.1 Mbits/sec 0 216 KBytes
[ 4] 4.00-5.00 sec 11.1 MBytes 93.2 Mbits/sec 0 216 KBytes
[ 4] 5.00-6.00 sec 11.2 MBytes 93.8 Mbits/sec 0 216 KBytes
[ 4] 6.00-7.00 sec 11.2 MBytes 93.9 Mbits/sec 0 216 KBytes
[ 4] 7.00-8.00 sec 11.2 MBytes 94.1 Mbits/sec 0 216 KBytes
[ 4] 8.00-9.00 sec 11.2 MBytes 94.0 Mbits/sec 0 216 KBytes
[ 4] 9.00-10.00 sec 11.3 MBytes 94.5 Mbits/sec 0 216 KBytes

  • - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 111 MBytes 92.7 Mbits/sec 0 sender
[ 4] 0.00-10.00 sec 110 MBytes 92.6 Mbits/sec receiver

iperf Done.

On eth0
Connecting to host 192.168.1.27, port 5201
[ 4] local 192.168.1.1 port 47643 connected to 192.168.1.27 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 7.78 MBytes 65.3 Mbits/sec 117 74.9 KBytes
[ 4] 1.00-2.00 sec 8.94 MBytes 75.0 Mbits/sec 6 73.5 KBytes
[ 4] 2.00-3.00 sec 8.65 MBytes 72.5 Mbits/sec 6 73.5 KBytes
[ 4] 3.00-4.00 sec 6.28 MBytes 52.7 Mbits/sec 8 65.0 KBytes
[ 4] 4.00-5.00 sec 6.21 MBytes 52.1 Mbits/sec 6 55.1 KBytes
[ 4] 5.00-6.00 sec 8.75 MBytes 73.4 Mbits/sec 8 66.5 KBytes
[ 4] 6.00-7.00 sec 9.86 MBytes 82.7 Mbits/sec 9 66.5 KBytes
[ 4] 7.00-8.00 sec 9.30 MBytes 77.9 Mbits/sec 7 74.9 KBytes
[ 4] 8.00-9.00 sec 10.2 MBytes 85.4 Mbits/sec 15 59.4 KBytes
[ 4] 9.00-10.00 sec 10.2 MBytes 85.3 Mbits/sec 7 76.4 KBytes

  • - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 86.1 MBytes 72.2 Mbits/sec 189 sender
[ 4] 0.00-10.00 sec 85.8 MBytes 72.0 Mbits/sec receiver

iperf Done.

comment:5 Changed 2 years ago by pawel401@…

I tried to do so
ag71xx_main.c

#define MAC_CFG1_INIT (MAC_CFG1_RXE | MAC_CFG1_TXE | \
MAC_CFG1_SRX | MAC_CFG1_STX | \
MAC_CFG1_TFC | MAC_CFG1_RFC)

and a stable rate of 70-90 Mbps on eth0.
But there is an increase with 40-50ms ping to 300ms, and then only a reboot helps.

comment:6 Changed 2 years ago by psyke83

Apart from the speed issue, why is iperf hitting so many retries on a wired LAN connection?

comment:7 Changed 2 years ago by pawel401@…

The most interesting of all the chips on the same effect is observed.
Switches the wire from the LAN to the WAN port, and everything works fine.
I use a bridge between the eth0 and eth1.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.