Is there a way to simulate packet loss rate on the switch or adapters?

Hello.

Is there a way to simulate packet loss rate on the switch or adapters? Like a tool acting as Linux command “tc”?

In fact, I want to simulate packet loss at end-host to test our new hardware performance in real RDMA environment.

Our NICs are Mellanox ConnectX-5 and switch is Mellanox SN2100.

Could you provide some tips?

Looking forward to your insight :).

Thank you.

Hi Haonan Qiu,

Mellanox provides a Performance Tests (perftest) package for OFED. perftest package is a collection of tests written over uverbs intended for use as a performance micro-benchmark.

The tests may be used for tuning as well as for functional testing.

The perftest package contains a set of bandwidth and latency benchmark such as:

InfiniBand / RoCE

  • ib_send_bw
  • ib_send_lat
  • ib_write_bw
  • ib_write_lat
  • ib_read_bw
  • ib_read_lat
  • ib_atomic_bw
  • ib_atomic_lat

Native Ethernet

  • raw_ethernet_bw
  • raw_ethernet_lat
  • raw_ethernet_burst_lat

Please refer to below link for more information:

https://community.mellanox.com/s/article/perftest-package​

Best Regards,

Yuying

Hi Zhang Yuying.

Thanks for your solution. It’s very helpful.

Sorry for the late update. I have found the tools in the driver and the loss can be simulated in the NS3-RDMA environment.

Thanks :).