Network virtualization is a way to simultaneously run multiple heterogeneous architectures on a shared substrate. The main issue in the virtualization of networks is the problem of mapping virtual networks to the substrate network. How to manage substrate resources when performing the mapping will have an effective role in improving the use of infrastructure resources and consequently better mapping. By writing a module in the controller for dynamic resource management, an initial mapping has been attempted until the request arrives, if sufficient resources are available, but until the arrival of the n request that their initial mapping is successful, writing the rules in the switches is postponed. The simulation results with the NS2 simulator showed that compared to the two similar approaches, the proposed method could reduce the delay and the cost by maintaining the acceptance rate. Keywords: Heterogeneous, Network virtualization, Software-defined network, Virtual network mapping, Substrate Resources