APIs
RPing is a RDMA/UB-based network ping technology. You can call RPing APIs in the Ascend AI software stack to send ping packets, record Round-Trip Time (RTT), and collect the packet RX and TX status, thus monitoring user's network link status.
This section provides RPing APIs for you to implement this function.
You can view the API definition in the /include/hccl/hccn_rping.h file in the CANN software installation directory. The corresponding library file is libhccl_plf.so.
API |
Description |
|---|---|
Initializes RPing devices and starts network status monitoring. |
|
Deinitializes memory resources. |
|
Adds a ping target and establishes RPing communication between the client and target. |
|
Adds a ping target and establishes an RPing communication link between the client and target. The RPing timeout interval is configurable. |
|
Removes the ping target and disables the RPing communication. |
|
Obtains the link status. |
|
Starts a ping request. |
|
Stops a ping request. |
|
Obtains the target ping result. |
|
Obtains the custom payload of the target ping packet. |