private String getCommand(String operation) {
    return String.format("tc qdisc %s dev %s root netem loss %s%%", operation, network,
      ratio * 100);
  }
Lose network packets on a random regionserver.
@param ratio    the ratio of packets lost
@param duration the time this issue persists in milliseconds
@param timeout  the timeout for executing required commands on the region server in
                milliseconds
@param network  network interface the regionserver uses for communication
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/LosePacketsCommandAction.java