A distributed dynamic routing strategy for optical networks