Decoupled router and controller