add api for path distance and current rtt