Software Defined Applications in Cellular and Optical Networks