Method and device for the optimum path selection in packet transmission networks