hpcn-uam / Limago

Limago: an FPGA-based Open-source 100 GbE TCP/IP Stack
BSD 3-Clause "New" or "Revised" License
122 stars 47 forks source link

The example project gets stuck after a few times of data transmission test. #7

Open simpway opened 4 years ago

simpway commented 4 years ago

For iperf and echo test, after several times of runs, no response comes from VCU118. But it looks like “ping 192.168.0.5” still gets feedback.

mariodruiz commented 4 years ago

What is your setup? How many times before the TCP gets stuck? Are you using the same connection or opening new ones?

After packet_handler the ICMP has a different datapath, so, that may be the reason why one is working and the another is not.

simpway commented 4 years ago

The test is between the VCU118 and MCX516A-CCAT. For echo project, it will work for hundreds of times (with python echo client). ILA are added to monitor the bus m_TxPayload and s_RxRequestedData between echo_server_applicat and toe, no data is transmitted once it got stuck. For iperf, looks like it will get stuck after one run. The same port is used. However if the first run is not finished yet, connections can still be open with different ports. Once it is finished, any port will not work.

mariodruiz commented 4 years ago

Looks like an issue when the connection get closed, either because of a timeout or because of the FIN flag. I need to investigate, but I do not know when I can do it, I have very little time to debug. Do you mind trying the ETH Zurich version, https://github.com/fpgasystems/fpga-network-stack? They are actively working on it

krvishal1 commented 3 years ago

I have fixed the problem. I am running further tests to confirm. I will update the results once everything looks ok.

mariodruiz commented 3 years ago

@krvishal1 I appreciate if you can do a PR when you finish with the test.

simpway commented 3 years ago

Great. I will give a try once the change is committed.

junehyuk-boo commented 3 years ago

Dear @krvishal1 , I am experiencing the same problem as the original question with the latest master branch. If your tests are done, can you commit the fix, or can you share the problem that the project was suffering?

UCASPaul commented 3 years ago

I have fixed the problem. I am running further tests to confirm. I will update the results once everything looks ok.

@krvishal1 I encountered this problem, IPERF will get stuck after the first test. could you share us how you solve this problem? I am also debugging, but unlucky there is no progress.