To run the executable, type java LossyRouter [portno] [droprate] where portno is the port of the lossy router, and droprate is the probability (value between 0 and 1) that the packet is dropped when the Flag field in the packet is set to any other value than 0 or 1.