Routing in an optical ring