| 8: calculate feasible multicast path based network coding for Mi; |
| 9: allocate capacity FSi for traffic request Mi; |
| 10: if then |
| 11: return to 4 ; |
| 12: else |
| 13: mark the request as blocked; |
| 14: end while |
| 15: end for |