I am learning socket programming and have a simple simulator where i have both client and server on the same machine. And i am trying to simulate a call collision. To achieve a "collision", response time between client and server should only take less than 1 microsecond. I used tcpdump to capture data when sending requests and reponses between client and server. I tried to put timing to atleast synchronize the disconnection between the 2 but still, the timing results are more than 1 microsecond.
Any ideas?