ltm rule command ROUTE rttΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



ROUTE::rtt
       Returns the cached round-trip-time estimate.

SYNOPSIS
       ROUTE::rtt DESTINATION_IP_ADDRESS (GATEWAY_IP_ADDRESS)?

DESCRIPTION
       Returns the cached round-trip-time for the destination and/or gateway
       if the relevant TCP profile enables cmetrics-cache.

       The return value only applies to the TMM executing the command. It does
       not consider cache entries on other TMMs.

       ROUTE::rtt returns a value of 0 when there are no statistics available.

       NOTE: The returned value is scaled to units of 100ns; to express it in
       the same units as TCP::rtt multiply it by 32/10000.

       NOTE: When used with the fastL4 profile, RTT from client/server needs
       to be enabled and the client and server need to be using TCP
       timestamps.

       Syntax

       ROUTE::rtt 

	    * The cached round-trip estimate for connections to
	      the given destination IP address.

       ROUTE::rtt  

	    * The cached round-trip estimate for connections to
	      the given destination IP address reached through the given gateway.

RETURN VALUE
       RTT in units of 100ns.

VALID DURING
EXAMPLES
	when CLIENT_ACCEPTED {
	    log local0. "Cached rtt is: [ROUTE::rtt [IP::remote_addr]]"
	}

	when CLIENT_ACCEPTED {
	    set Gateway 10.3.1.11
	       # assume that $Gateway is the gateway address for [IP::remote_addr]
	    log local0. "Cached rtt is: [ROUTE::rtt [IP::remote_addr] $Gateway]"
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.0.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)