Alright I am still seeing this. Can anyone else confirm they are getting good TCP thruput? I ask because the problem is pretty consistent. It does not matter if its NFS, Samba, ssh or even just plan old netcat with /dev/zero piped to it. It also does not seem to matter if its high data rate or not based on what I have observed in wireshark. I’ll see lost segments and a dupack followed by a fast retransmission on both low rate interactive ssh traffic, or large file transfer; even something like this to take sata I/O and ssh CPU usage out of the mix.
dd if=/dev/zero status=progress | nc 192.168.16.1 3000
Additionally it does not matter if I am testing form my PC with a switch between me and the R2 or if I take a laptop and cable up to the port directly. Same issues.
I went back to 4.14 - using Frank-Ws 14.14.59 source pulled from his git about a day ago. I wanted to see if the 2nd gmac stuff might make and difference. It does not seem to.
I have mostly been running tcpdump/wireshark on the remote machines as I storing the pcap would strain the I/O and possible complicate the issue by hitting the CPU on the R2. I have tinkered with turning off tso,gso,and tc on the R2’s interfaces, thinking it could be a offload issue. It seems to make little or no difference. I have been doing all my testing with a completely flushed ip tables and the default chains all set to a policy of ACCEPT.
As stated before nothing in terms of errors in dmesg or any logs. You’d think nothing was wrong until you look at the thruput on any application and start digging in with wireshark.
Not that its all that interesting but here the interface info:
6: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether de:ad:be:ef:00:ff brd ff:ff:ff:ff:ff:ff
inet 192.168.16.254/24 brd 192.168.16.255 scope global lan0
valid_lft forever preferred_lft forever`Preformatted text`
root@router:/home/geoff# ethtool -S eth1
NIC statistics:
tx_bytes: 57422258
tx_packets: 373122
tx_skip: 0
tx_collisions: 0
rx_bytes: 426676705
rx_packets: 428954
rx_overflow: 0
rx_fcs_errors: 0
rx_short_errors: 0
rx_long_errors: 0
rx_checksum_errors: 0
rx_flow_control_packets: 0
p05_TxDrop: 0
p05_TxCrcErr: 0
p05_TxUnicast: 375996
p05_TxMulticast: 52893
p05_TxBroadcast: 65
p05_TxCollision: 0
p05_TxSingleCollision: 0
p05_TxMultipleCollision: 0
p05_TxDeferred: 0
p05_TxLateCollision: 0
p05_TxExcessiveCollistion: 0
p05_TxPause: 0
p05_TxPktSz64: 0
p05_TxPktSz65To127: 113442
p05_TxPktSz128To255: 15263
p05_TxPktSz256To511: 8052
p05_TxPktSz512To1023: 8189
p05_Tx1024ToMax: 284008
p05_TxBytes: 428392521
p05_RxDrop: 0
p05_RxFiltering: 0
p05_RxMulticast: 21
p05_RxBroadcast: 3
p05_RxAlignErr: 0
p05_RxCrcErr: 0
p05_RxUnderSizeErr: 0
p05_RxFragErr: 0
p05_RxOverSzErr: 0
p05_RxJabberErr: 0
p05_RxPause: 0
p05_RxPktSz64: 21572
p05_RxPktSz65To127: 310101
p05_RxPktSz128To255: 13032
p05_RxPktSz256To511: 7768
p05_RxPktSz512To1023: 6669
p05_RxPktSz1024ToMax: 13980
p05_RxBytes: 57422258
p05_RxCtrlDrop: 0
p05_RxIngressDrop: 0
p05_RxArlDrop: 0
indent preformatted text by 4 spaces
root@router:/home/geoff# ethtool -S eth0
NIC statistics:
tx_bytes: 25287868402
tx_packets: 17922424
tx_skip: 0
tx_collisions: 0
rx_bytes: 412328485
rx_packets: 5269464
rx_overflow: 0
rx_fcs_errors: 0
rx_short_errors: 0
rx_long_errors: 0
rx_checksum_errors: 0
rx_flow_control_packets: 24970
root@router:/home/geoff# ethtool -i eth0
driver: mtk_soc_eth
version:
firmware-version:
expansion-rom-version:
bus-info: 1b100000.ethernet
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
root@router:/# ethtool -i lan0
driver: dsa
version:
firmware-version: N/A
expansion-rom-version:
bus-info: platform
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
root@router:/# ethtool -S lan0
NIC statistics:
tx_packets: 5910836
tx_bytes: 23790296955
rx_packets: 5107728
rx_bytes: 308451005
TxDrop: 0
TxCrcErr: 0
TxUnicast: 17412457
TxMulticast: 13
TxBroadcast: 1469
TxCollision: 0
TxSingleCollision: 0
TxMultipleCollision: 0
TxDeferred: 0
TxLateCollision: 0
TxExcessiveCollistion: 0
TxPause: 0
TxPktSz64: 8845
TxPktSz65To127: 87698
TxPktSz128To255: 72002
TxPktSz256To511: 155790
TxPktSz512To1023: 358812
Tx1024ToMax: 16730792
TxBytes: 24453850212
RxDrop: 0
RxFiltering: 0
RxMulticast: 1300
RxBroadcast: 3198
RxAlignErr: 0
RxCrcErr: 0
RxUnderSizeErr: 0
RxFragErr: 0
RxOverSzErr: 0
RxJabberErr: 0
RxPause: 0
RxPktSz64: 283638
RxPktSz65To127: 4775499
RxPktSz128To255: 17308
RxPktSz256To511: 9889
RxPktSz512To1023: 7212
RxPktSz1024ToMax: 14183
RxBytes: 400390173
RxCtrlDrop: 0
RxIngressDrop: 0
RxArlDrop: 0