Resource Allocation in All-optical Networks using GMPLS