Input: Parameters of ACFEC scheme
Output: Data packets
(1) Carry out the combination scheme of RS coder and MIMO channel.
(2) Appoint the guarantee priority of reliability.
(3) Initialize the network parameters: and .
(4) Implement the FEC scheme based on RS coder.
(5) Obtain the value of SNRTE and based on the QoS analytical model.
(6) If channel state information is known
(7)   Implement the relay selection mechanism.
(8) end if
(9) Encapsulate data packets by means of MIMO ( ) channel.
(10) If timer matures or NACK packet is received
     go to Step (1).
(11) end if
Algorithm 1: Algorithm of ACFEC at sender node.