8: calculate feasible multicast path based network coding for Mi;

9: allocate capacity FSi for traffic request Mi;

10: if i F S i C e then

11: return to 4 ;

12: else F S i > C e

13: mark the request as blocked;

14: end while

15: end for