Dynamic grooming in IP over optical networks based on the overlay architecture