Calculating port distance & Choosing routing point