I would like to ask if packet loss in p2p LAN is a normal behavior in LAN.
And now in more details:
I am connecting PC to target board with TI's chip and LAN9221 controller. I am doing a ping-pong test, with udp protocol:
PC is sending the first packet.
target wait for packet, and on receive, it send the same packet back to PC.
PC wait, and on receiving send a new packet (increment data in the UDP packet), and so on....
Running the ping-pong test, I see that once in a while the target did not receive the packet correctly. It is easy to notice the failure because the ping-pong test stops whenever one of the side did not receive a packet. When the failure happens, I see that the first bytes the target detected is actually the the 5th byte that the PC send (I see in WIRESHARK).
I also observed that these failures always happens when a another packet is sent about the same time from PC as the packet from the test , as if a collision happened.
If I add firewall rules, which take care that only the ping-pong packets shall be delivered in the LAN, then there is no failure at all.
So, the question is if the collision failures is a normal behavior in LAN ?
EDIT: seems the problem was related to (sw) driver error, not to collision, thank you for the solutions, which emphasized that in p2p there are no collisions.