Effective utilization of network by spectrum defragmentation