cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
1,378 Views
Registered: ‎09-19-2016

Zynq-7000 + LwIP 2.0.2 - Connection timeout

Jump to solution

Hello everyone,

 

we have been using Zynq-7000 based board with 1Gb IEEE PHY and with following network stack:

  • emacps v3.7 - provided by Xilinx SDK 2018.2,
  • LwIP 2.0.2 - provided by Xilinx SDK 2018.2,
  • LwIP 2.0.2 port - \src\contrib\ports\xilinx\netif\... xadapter and all xemacpsif files are used from LwIP 1.4.1 port provided by SDK 2017.2, except for xemacpsif_physpeed.c which is modified according to our IEEE PHY (port from SDK 2018.2 wasn't working for us for some reason) and
  • iperf server LwIP RAW application - implementation provided by XAPP1026.

We have been measuring throughput by using official iperf PC application for Windows 7 (we send data from PC to Zynq).

Our throughput is stable most of the connections we make, however, iperf client from time to time is not able to connect to Zynq at all. Check our Wireshark capture screenshot (or check provided attachment connection_timeout.pcapng):

 

ws_cap3.png

 

There are no messages from Zynq at all. At the Zynq side, we enabled IP and TCP debug prints (PC is 172.16.0.200 and Zynq is 172.16.0.215) is:

 

log_cap0.png

 

As can been seen, the right SYN message is received (look at received TCP sequence number, it matches sequence number sent by PC). Not only that, but certain message is sent back to PC (loot at last highlighted line: "ip4_output_if: call netif->output()", that is, output function from network interface API is called, but no message is actually sent out to PC.

 

Has anyone had any similar problems? Why the message isn't actually sent back to PC? 

 

We have checked link stats information provided by LwIP API, but no errors or drops are reported. We also noticed that this problem is quite often with emacps drivers version v3.4 (we get connection time out every other connection try - much often than with emacps v3.7). Could be the issue hiding here? 

Best regards,
Nenad

0 Kudos
1 Solution

Accepted Solutions
Adventurer
Adventurer
1,444 Views
Registered: ‎09-19-2016

We have been using older version of xemacpsif_dma.c (from LwIP 1.4.1 port). It seems that was the problem all the time.

 

Eveything - throughput + connections - seem OK now when we switched to latest version of this file (from LwIP 2.0.2 port).

 

Regards,

Nenad

View solution in original post

0 Kudos
2 Replies
Adventurer
Adventurer
1,445 Views
Registered: ‎09-19-2016

We have been using older version of xemacpsif_dma.c (from LwIP 1.4.1 port). It seems that was the problem all the time.

 

Eveything - throughput + connections - seem OK now when we switched to latest version of this file (from LwIP 2.0.2 port).

 

Regards,

Nenad

View solution in original post

0 Kudos
Highlighted
Explorer
Explorer
770 Views
Registered: ‎10-09-2017

where is the latest version of this file?

0 Kudos