In an SDN-based network, service requests can be accommodated according to network application requirements. We devise a framework where such requirements drive IP and optical network resource allocation, dynamic optimization, and instantiation through an SDN orchestrator. The framework aims to balance the often-conflicting goals such as energy savings and resource allocation speed, while ensuring that the orchestrator can accommodate incoming service requests without interrupting the running services. We show the functionality of the framework with a simulation on a real network topology and realistic input traffic. Index Terms-(060.4256) Networks, network optimization, (060.4251) Networks, assignment and routing algorithms I. INTRODUCTION pplications running over the Internet today, such as autonomous driving, remote surgery, 5G backhauling, and data migration, demand more than just a bandwidth pipe over a connected network. The new service requirements are specific and complex, so merely providing a sufficiently capacitated optical channel will not suffice. Moreover, bundling the traffic from diverse applications does have advantages of cost, but the resulting service may be inadequate, the usage of network resources may be inefficient, or the network operator may miss an opportunity to generate revenue from higher-class services. Recently, Software-Defined Networking (SDN) enables service providers to use the existing IP and optical network resources more intelligently and efficiently. This advance allows for assigning bandwidth where and when needed, and Manuscript received July 12 th , 2018. The research leading to these results has received funding from the European Commission within the H2020 Research and Innovation programme, ACINO project, Grant Number 645127, www.acino.eu.