Probabilistic forwarding of coded packets on networks