A cost-effective approach to optical packet/burst scheduling