Multi-dimensional optical code processing in MPLS photonic routers