In flexible bandwidth optical networks, the dynamic lightpath setup and teardown inevitably lead to spectrum fragmentation which blocks the new connections. In order to effectively allocate the spectrum along a better route, a notion of available spectrum consecutiveness is introduced and three dyna