AMBER SCHED: An Analytical Model BasEd Resource Scheduler for programmable routers