Add lossRate into sender and receiver