ROUTE::rtt

Description

The average of scaled smoothed round-trip time estimates for all TCP connections routed to the given destination.
ROUTE::rtt returns a value of 0 when there are no statistics available.
NOTE: The returned value is scaled; to express it in terms of 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 <destination IP address>
ROUTE::rtt <destination IP address> <gateway IP address>

ROUTE::rtt <destination IP address>

  • The average of scaled smoothed round-trip time for connections to the given destination IP address.

ROUTE::rtt <destination IP address> <gateway IP address>

  • The average of scaled smoothed round-trip time for connections to the given destination IP address reached through the given gateway.

Examples

when CLIENT_ACCEPTED {
   log local0. "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. "rtt is: [ROUTE::rtt [IP::remote_addr] $Gateway]"
}