Simulation of the Transmission Control Protocol (TCP) communication between two entities