At time slot t:
N original data packets are arrived and stored into its buffer;
if  t = 1 then
 Generate L coded packets: and send them to the destination through L edge-disjoint paths;
end  if
if  t > 1 then
 Receives ) from the destination;
if     then
  Clear the buffer, set and get ready for a new transmission round;
  Remove the earliest arrived data packets in the buffer;
  Generate L coded data packets:
  Send each coded packet with encoding vector
   through path i to the receiver, ;
end  if
end  if
Algorithm 1: Encoding at the source.