Calculation of Buffer Size on Critical Chain Based on Duration Distribution, Multiresource Constraints, and Relay Potential