AnsweredAssumed Answered

Apalis iMX6D problem with transferring huge files through 100Mbit ethernet connection.

Question asked by Mateusz Orzol on Feb 14, 2018
Latest reply on Feb 16, 2018 by Mateusz Orzol

Hello,

I have encountered blocker while developing software for our client based on Apalis iMX6D Module. When sending huge files ( >1.1GB) through scp from Ixora Development Board to host PC with 100Mbit ethernet card the transfer is terribly slow or even stalled. Transfers in opposite direction (from Host PC to Apalis Module) works fine with constant 12MB/s rate. When we set up the host card to 1Gbit or 10Mbits the same configuration works well. We have verified our host PC connection with different 100Mbit ethernet device to prove that our testing set-up is correct.

When transmitted packets are small like for example in SSH connection the problem is not disturbing normal work but TCP retransmissions can be encountered as well.

Wireshark show multiple TCP retransmissions when sending huge file: 

 

Some information about setup:

  • Apalis iMX6D V.1.1A 512MB and V1.1B 1GB

  • Beseboard: Ixora V1.0A or our custom baseboard with Micrel KSZ8895 (100Mbit) switch

  • Linux apalis-imx6 4.9.67-+g1db9f06709ad #1 SMP Sat Feb 3 16:19:58 CET 2018 armv7l GNU/Linux

  • Image built with Yocto, cloned from http://git.toradex.com/toradex-bsp-platform.git -b LinuxImageV2.8

  • Image recipe: console-tdx-image.bb

  • Host PC Ethernet Card: Intel® 82577LC Gigabit Ethernet PHY (100Mbit speed set up from userspace)

  • Tested also with: KSZ8895 (100mbit switch)

We need to fix this issue because our baseboard is equipped with KSZ8895 (100Mbit) switch. Temporarily we decreased Ethernet Speed to 10Mbit for development but for our target system it's not enough.

Have someone encountered similar issues? Any help will be appreciated.

 

registers dump for KSZ8895MQX ( KSZ9031RNX on Apalis board is connected to Port 2 of the  Switch) :

00=95;01=41;02=0c;03=04;04=f0;05=00;06=00;07=4a;
08=00;09=4c;0a=00;0b=00;0c=54;0d=00;0e=00;0f=50;
10=00;11=03;12=06;13=00;14=01;15=00;16=00;17=00;
18=30;19=9e;1a=00;1b=00;1c=5f;1d=00;1e=ff;1f=06;
20=00;21=0f;22=06;23=00;24=01;25=00;26=00;27=00;
28=00;29=9e;2a=00;2b=00;2c=5f;2d=00;2e=7f;2f=06;
30=00;31=06;32=06;33=00;34=01;35=00;36=00;37=00;
38=0f;39=9e;3a=00;3b=00;3c=5f;3d=00;3e=7f;3f=06;
40=00;41=0a;42=06;43=00;44=01;45=00;46=00;47=00;
48=f8;49=9e;4a=00;4b=00;4c=5f;4d=00;4e=7f;4f=06;
50=00;51=1f;52=06;53=00;54=01;55=00;56=00;57=00;
58=00;59=80;5a=00;5b=00;5c=5f;5d=00;5e=80;5f=01;
60=30;61=33;62=04;63=04;64=05;65=08;66=98;67=27;
68=00;69=10;6a=a1;6b=ff;6c=ff;6d=ff;6e=00;6f=00;
70=00;71=00;72=00;73=00;74=00;75=00;76=00;77=00;
78=00;79=0c;7a=00;7b=2f;7c=0f;7d=00;7e=00;7f=00;
80=50;81=fa;82=84;83=80;84=40;85=00;86=00;87=10;
88=00;89=50;8a=00;8b=0c;8c=60;8d=30;8e=20;8f=20;
90=00;91=00;92=00;93=00;94=00;95=00;96=00;97=00;
98=00;99=00;9a=00;9b=00;9c=00;9d=00;9e=00;9f=00;
a0=00;a1=80;a2=07;a3=00;a4=42;a5=30;a6=c0;a7=80;
a8=80;a9=0f;aa=00;ab=20;ac=05;ad=01;ae=00;af=20;
b0=00;b1=00;b2=88;b3=84;b4=82;b5=81;b6=00;b7=00;
b8=00;b9=00;ba=00;bb=00;bc=00;bd=00;be=00;bf=80;
c0=00;c1=00;c2=88;c3=84;c4=82;c5=81;c6=00;c7=00;
c8=00;c9=00;ca=00;cb=00;cc=00;cd=00;ce=00;cf=15;
d0=00;d1=00;d2=88;d3=84;d4=82;d5=81;d6=00;d7=00;
d8=00;d9=00;da=00;db=00;dc=00;dd=00;de=00;df=0c;
e0=00;e1=00;e2=88;e3=84;e4=82;e5=81;e6=00;e7=00;
e8=00;e9=00;ea=00;eb=00;ec=00;ed=00;ee=00;ef=32;
f0=00;f1=00;f2=88;f3=84;f4=82;f5=81;f6=00;f7=00;
f8=00;f9=00;fa=00;fb=00;fc=00;fd=00;fe=00;ff=00;

 

Mii too dump from KSZ9031 PHY:

eth0: negotiated 100baseTx-FD flow-control, link ok
registers for MII PHY 7:
1140 796d 0022 1622 05e1 45e1 0007 2001
0000 0200 4000 0000 0000 4000 1a80 3000
0000 00f4 0000 0079 4802 0000 0000 0200
0000 0000 0000 0500 0000 0000 0000 0328
product info: vendor 00:08:85, model 34 rev 2
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

 

The discussion is going also on Toradex Forum:

Apalis iMX6D problem with transferring huge files through 100Mbit ethernet connection. - Toradex Community 

Attachments

Outcomes