The MAVLink command protocol allows guaranteed delivery of commands. It consists of the original command message and the matching acknowledgement (ACK).
If the command drops the sender should increase the confirmation field: