| Algorithm 2 Re-encoding strategy |
| 1: Intermediate node receives a packet from . |
| 2: extracts frame number from . 3: If 4: discards . 5: Else 6: extracts row vector and encoded data slice from . 7: If |
| 8: 9: 10: If do 11: Add into matrix . |
| 12: Add into existing encoded data . |
| 13: ; |
| 14: If |
| 15: Re-encode , and compose new data packets . 16: sends back to the network. 17: |
| 18: Endif |
| 19: Endif 20: Else |
| 21: |
| 22: Get from and save the data in it |
| 23: Clear matrix and encoded data |
| 24: |
| 25: Endif |
| 26: Endif |