A method for performing round-trip time determination between a source element and a target element, wherein the source element is a forwarding element of a software defined network, wherein the software defined network comprises one or more forwarding elements and a software defined network controller for controlling the one or more forwarding elements, the method comprising steps of:
- a) instructing the source element to install a low priority detection rule, wherein the low priority detection rule is configured to be triggered by an incoming pong probe packet;
- b) instructing, the source element to install at least one high priority detection rule having a timeout period, wherein the high priority detection rule is configured to be triggered by the incoming pong probe packet;
- c) instructing the source element to send a ping probe packet from the source element to the target element;
- and
- d) deriving an estimate range for the round-trip time based on the low priority detection rule or the at least one high priority detection rule being triggered by the pong probe packet that is received by the source element from the target element in response to the ping probe packet,
- wherein a measurement iteration comprising steps b), c) and d) is iteratively repeated,
- wherein the timeout period of the high priority detection rule according to step b), which is installed on the source element per measurement iteration, is set to a new timeout period value based on the estimate range derived in a preceding measurement iteration, and
- wherein step d) of a current measurement iteration updates the estimate range for the round-trip time.