samedi 25 mars 2017

Simulate packet loss in UDP in python

I am supposed to simulate a packet loss rate of 10^-2 in a Stop-and-wait protocol, that is 0.01, which means that 1 out of 100 packets transmitted get lost. Suppose I'm sending 1000 packets, how to drop exactly 1 random packet out of the 100 packets sent throughout the transmission ?




Aucun commentaire:

Enregistrer un commentaire