Doing the random packet loss based on terminal arguments