Thanks for your quick response.
The problem is, most ping utilities wait for a reply before sending the next packet. So this is kind of a half duplex operation, even if you run 10 of those pings in parallel.
In my test application, it takes a few hundred packets in a row to make the driver stall.
If I insert a 2ms (minimum Windows resolution) pause every 15 packets in my application, it runs perfectly.
I found hrping for Windows which uses seperate processes for send & reply. After several tries, I was able to reproduce it with this ping tool, so it is not linked to the UDP callback function.
I do it like that:
hrping -l 1472 -n 10 -s 0 -q 192.168.0.222
-l is the packet size
-n is the number of packets to send
-s is the time interval between packets
-q quiet, because the concole output increases time between packets
I can run it with -n 10 as often as I like, no problems
Then I change n to 10000. It usually needs some tries, but after a while, the driver stalls, resulting in 100% package loss.
Also if I go back to n=10, there are no replies. It does not recover. The board needs a reset to reply on big packets again.
However, I get a reply on pings with l=1246.
Let me post a console log what happens after starting up the board and doing some pings. Test was done with RX_BUF=4, TX_BUF=2.
In the n=10000 ping, there are lots of identical error messages (I posted only 3 of them) which cannot be suppressed with the -q option. The tool has a problem with the 0ms interval.
Code: Select all
*********************************************************
C:\ARM>hrping -l 1472 -n 10 -s 0 -q 192.168.0.221
This is hrPING v3.13 by cFos Software GmbH -- http://www.cfos.de
Source address is 0.0.0.0; using ICMP echo-request
Pinging 192.168.0.221
with 1472 bytes data (1500 bytes IP):
Statistics for 192.168.0.221:
Packets: sent=10, rcvd=10, error=0, lost=0 (0.0% loss) in 0.002094 sec
RTTs of replies in ms: min/avg/max/dev: 0.869 / 1.197 / 1.638 / 0.260
Bandwidth in kb/sec: sent=7163.323, rcvd=7163.323
*********************************************************
C:\ARM>hrping -l 1472 -n 10000 -s 0 -q 192.168.0.221
This is hrPING v3.13 by cFos Software GmbH -- http://www.cfos.de
Source address is 0.0.0.0; using ICMP echo-request
Pinging 192.168.0.221
with 1472 bytes data (1500 bytes IP):
send failed: Error 10035: Ein nicht blockierender Socketvorgang konnte nicht sof
ort ausgeführt werden.
send failed: Error 10035: Ein nicht blockierender Socketvorgang konnte nicht sof
ort ausgeführt werden.
send failed: Error 10035: Ein nicht blockierender Socketvorgang konnte nicht sof
ort ausgeführt werden.
Statistics for 192.168.0.221:
Packets: sent=8789, rcvd=789, error=0, lost=8000 (91.0% loss) in 0.307388 sec
RTTs of replies in ms: min/avg/max/dev: 0.777 / 2.685 / 12.651 / 1.846
Bandwidth in kb/sec: sent=42888.792, rcvd=3850.182
*********************************************************
C:\ARM>hrping -l 1472 -n 10 -s 0 -q 192.168.0.221
This is hrPING v3.13 by cFos Software GmbH -- http://www.cfos.de
Source address is 0.0.0.0; using ICMP echo-request
Pinging 192.168.0.221
with 1472 bytes data (1500 bytes IP):
Statistics for 192.168.0.221:
Packets: sent=10, rcvd=0, error=0, lost=10 (100.0% loss) in 0.000000 sec
*********************************************************
C:\ARM>hrping -l 1246 -n 10 -s 0 -q 192.168.0.221
This is hrPING v3.13 by cFos Software GmbH -- http://www.cfos.de
Source address is 0.0.0.0; using ICMP echo-request
Pinging 192.168.0.221
with 1246 bytes data (1274 bytes IP):
Statistics for 192.168.0.221:
Packets: sent=10, rcvd=10, error=0, lost=0 (0.0% loss) in 0.001852 sec
RTTs of replies in ms: min/avg/max/dev: 0.690 / 1.019 / 1.388 / 0.219
Bandwidth in kb/sec: sent=6879.049, rcvd=6879.049
*********************************************************
C:\ARM>hrping -l 1472 -n 10 -s 0 -q 192.168.0.221
This is hrPING v3.13 by cFos Software GmbH -- http://www.cfos.de
Source address is 0.0.0.0; using ICMP echo-request
Pinging 192.168.0.221
with 1472 bytes data (1500 bytes IP):
Statistics for 192.168.0.221:
Packets: sent=10, rcvd=0, error=0, lost=10 (100.0% loss) in 0.000000 sec