Home
last modified time | relevance | path

Searched full:rtt (Results 1 – 25 of 171) sorted by relevance

1234567

/freebsd/contrib/unbound/util/
H A Drtt.c2 * util/rtt.c - UDP round trip time estimator for resend timeouts.
43 #include "util/rtt.h"
51 /** calculate RTO from rtt information */
53 calc_rto(const struct rtt_info* rtt) in calc_rto() argument
56 int rto = rtt->srtt + 4*rtt->rttvar; in calc_rto()
65 rtt_init(struct rtt_info* rtt) in rtt_init() argument
67 rtt->srtt = 0; in rtt_init()
68 rtt->rttvar = UNKNOWN_SERVER_NICENESS/4; in rtt_init()
69 rtt->rto = calc_rto(rtt); in rtt_init()
75 rtt_timeout(const struct rtt_info* rtt) in rtt_timeout() argument
[all …]
H A Drtt.h2 * util/rtt.h - UDP round trip time estimator for resend timeouts.
47 * RTT information. Keeps packet Round Trip Time.
50 /** smoothed rtt estimator, in milliseconds */
64 * Initialize RTT estimators.
65 * @param rtt: The structure. Caller is responsible for allocation of it.
67 void rtt_init(struct rtt_info* rtt);
71 * @param rtt: round trip statistics structure.
74 int rtt_timeout(const struct rtt_info* rtt);
79 * @param rtt: round trip statistics structure.
82 int rtt_unclamped(const struct rtt_info* rtt);
[all …]
/freebsd/sys/contrib/device-tree/Bindings/rtc/
H A Datmel,at91sam9260-rtt.yaml5 $id: http://devicetree.org/schemas/rtc/atmel,at91sam9260-rtt.yaml#
8 title: Atmel AT91 RTT
20 - const: atmel,at91sam9260-rtt
23 - microchip,sam9x60-rtt
24 - microchip,sam9x7-rtt
25 - const: atmel,at91sam9260-rtt
27 - const: microchip,sama7g5-rtt
28 - const: microchip,sam9x60-rtt
29 - const: atmel,at91sam9260-rtt
40 atmel,rtt-rtc-time-reg:
[all …]
H A Datmel,at91sam9-rtc.txt5 - "atmel,at91sam9260-rtt"
6 - "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"
7 - reg: should encode the memory region of the RTT controller
8 - interrupts: rtt alarm/event interrupt
9 - clocks: should contain the 32 KHz slow clk that will drive the RTT block.
10 - atmel,rtt-rtc-time-reg: should encode the GPBR register used to store
11 the time base when the RTT is used as an RTC.
19 rtt@fffffd20 {
20 compatible = "atmel,at91sam9260-rtt";
24 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
/freebsd/sys/netinet/khelp/
H A Dh_ertt.h38 * the instantaneous TCP RTT which, for example, is used by delay-based
60 /* Information about transmitted segments to aid in RTT calculation. */
62 /* Bytes TX so far in marked RTT. */
66 /* cwnd for marked RTT. */
68 /* Per-packet measured RTT. */
69 int rtt; member
70 /* Maximum RTT measured. */
72 /* Minimum RTT measured. */
78 /* RTT for a marked packet. */
H A Dh_ertt.c98 #define TXSI_RTT_MEASURE_START 0x02 /* Start a per RTT measurement. */
128 #define FORCED_MEASUREMENT 0X08 /* Force an RTT measurement. */
131 * This fuction measures the RTT of a particular segment/ack pair, or the next
172 * algorithm that a new marked RTT measurement has has been made in marked_packet_rtt()
353 e_t->rtt = tcp_ts_getticks() - txsi->tx_ts + 1; in ertt_packet_measurement_hook()
355 if (e_t->rtt < e_t->minrtt || e_t->minrtt == 0) in ertt_packet_measurement_hook()
356 e_t->minrtt = e_t->rtt; in ertt_packet_measurement_hook()
358 if (e_t->rtt > e_t->maxrtt || e_t->maxrtt == 0) in ertt_packet_measurement_hook()
359 e_t->maxrtt = e_t->rtt; in ertt_packet_measurement_hook()
376 * We remeasure RTT even though we only in ertt_packet_measurement_hook()
[all …]
/freebsd/share/man/man4/
H A Dh_ertt.443 instantaneous RTT.
55 It does not measure the RTT if the acknowledgement is for the
72 int rtt;
92 The value of cwnd for the marked rtt measurement.
93 .It Va rtt
94 The most recent RTT measurement.
96 The longest RTT measurement that has been taken.
98 The shortest RTT measurement that has been taken.
137 The module maintains enhanced RTT estimates for all new TCP connections created
H A Dtcp_bbr.445 seeks high throughput with a small queue by probing BW and RTT.
50 estimating the maximum BW and minimum RTT on each ACK.
59 Cwnd controls, for example "target cwnd rtt measurement" and "BBR initial window".
67 Probe RTT controls.
92 What divisor for TLP rtt/retran will be added (1=rtt, 2=1/2 rtt etc).
H A Dcc_vegas.441 actual rate = (total data sent in a RTT) / RTT
48 where RTT is the measured instantaneous round trip time and RTTmin is the
69 acknowledgement for that packet is measured once per RTT.
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibping.c114 uint64_t start, rtt; in ibping() local
131 rtt = cl_get_time_stamp() - start; in ibping()
138 data, portid2str(portid), rtt / 1000, rtt % 1000); in ibping()
140 return rtt; in ibping()
158 printf("rtt min/avg/max = %" PRIu64 ".%03" PRIu64 "/%" PRIu64 ".%03" in report()
205 uint64_t rtt; in main() local
265 if ((rtt = ibping(&portid, flood)) == ~0ull) { in main()
269 if (rtt < minrtt) in main()
270 minrtt = rtt; in main()
271 if (rtt > maxrtt) in main()
[all …]
/freebsd/contrib/ldns/
H A Dresolver.c185 size_t *rtt; in ldns_resolver_nameserver_rtt() local
189 rtt = ldns_resolver_rtt(r); in ldns_resolver_nameserver_rtt()
195 return rtt[pos]; in ldns_resolver_nameserver_rtt()
255 size_t *rtt; in ldns_resolver_pop_nameserver() local
261 rtt = ldns_resolver_rtt(r); in ldns_resolver_pop_nameserver()
270 LDNS_FREE(rtt); in ldns_resolver_pop_nameserver()
277 rtt = LDNS_XREALLOC(rtt, size_t, (ns_count - 1)); in ldns_resolver_pop_nameserver()
280 ldns_resolver_set_rtt(r, rtt); in ldns_resolver_pop_nameserver()
292 size_t *rtt; in ldns_resolver_push_nameserver() local
301 rtt = ldns_resolver_rtt(r); in ldns_resolver_push_nameserver()
[all …]
/freebsd/contrib/unbound/services/cache/
H A Dinfra.c2 * services/cache/infra.c - infrastructure cache, server rtt and capabilities
59 * even if another type has completely rtt maxed it, the different type
66 * infra-cache-max-rtt) change it to just above the RTT_BAND. */
494 rtt_init(&data->rtt); in data_entry_init()
558 int old = ((struct infra_data*)e->data)->rtt.rto; in infra_host()
573 ((struct infra_data*)e->data)->rtt.rto in infra_host()
589 *to = rtt_timeout(&data->rtt); in infra_host()
597 *to = rtt_timeout(&data->rtt); in infra_host()
599 rtt_notimeout(&data->rtt)*4 <= *to)) { in infra_host()
668 if(data->rtt.rto >= RTT_MAX_TIMEOUT) in infra_update_tcp_works()
[all …]
H A Dinfra.h2 * services/cache/infra.h - infrastructure cache, server rtt and capabilities
49 #include "util/rtt.h"
82 struct rtt_info rtt; member
252 * Lameness is empty. EDNS is 0 (try with first), and rtt is returned for
293 * Update rtt information for the host.
302 * @param orig_rtt: original rtt for the query that timed out (roundtrip==-1).
340 * Get Lameness information and average RTT if host is in the cache.
352 * @param rtt: if function returns true, this returns avg rtt of the server.
353 * The rtt value is unclamped and reflects recent timeouts.
360 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow);
[all …]
/freebsd/sys/netinet/
H A Dsctp_cc_functions.c261 if (net->rtt > net->cc_mod.rtcc.lbw_rtt + rtt_offset) { in cc_bw_same()
263 * rtt increased we don't update bw.. so we don't update the in cc_bw_same()
264 * rtt either. in cc_bw_same()
271 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same()
292 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same()
305 if (net->rtt < net->cc_mod.rtcc.lbw_rtt - rtt_offset) { in cc_bw_same()
307 * rtt decreased, there could be more room. we update both in cc_bw_same()
308 * the bw and the rtt here to lock this in as a good step in cc_bw_same()
316 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same()
328 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same()
[all …]
/freebsd/sys/netinet/cc/
H A Dcc_chd.c113 /* The maximum round trip time seen within a measured rtt period. */
244 int backoff, new_measurement, qdly, rtt; in chd_ack_received() local
251 chd_data->maxrtt_in_rtt = imax(e_t->rtt, chd_data->maxrtt_in_rtt); in chd_ack_received()
255 * There is a new per RTT measurement, so check to see if there in chd_ack_received()
258 rtt = V_chd_use_max ? chd_data->maxrtt_in_rtt : e_t->rtt; in chd_ack_received()
261 if (rtt && e_t->minrtt && !IN_RECOVERY(CCV(ccv, t_flags))) { in chd_ack_received()
262 qdly = rtt - e_t->minrtt; in chd_ack_received()
273 /* Reset per RTT measurement flag to start a new measurement. */ in chd_ack_received()
349 qdly = imax(e_t->rtt, chd_data->maxrtt_in_rtt) - e_t->minrtt; in chd_cong_signal()
491 "IU", "Per RTT maximum backoff probability as a percentage");
[all …]
H A Dcc_cdg.c123 /* maximum measured rtt within an rtt period */
125 /* maximum measured rtt within prev rtt period */
127 /* minimum measured rtt within an rtt period */
129 /* minimum measured rtt within prev rtt period */
411 * It increases at 1pkt/rtt like Reno for alpha_inc rtts, and then 2pkts/rtt for
539 /* Minimum RTT. */ in calc_moving_average()
547 /* Maximum RTT. */ in calc_moving_average()
588 cdg_data->maxrtt_in_rtt = imax(e_t->rtt, cdg_data->maxrtt_in_rtt); in cdg_ack_received()
589 cdg_data->minrtt_in_rtt = imin(e_t->rtt, cdg_data->minrtt_in_rtt); in cdg_ack_received()
595 * using one measurement per RTT, use max or min rtt_in_rtt. in cdg_ack_received()
[all …]
H A Dcc_cubic.h70 /* Don't trust s_rtt until this many rtt samples have been taken. */
93 /* Sum of RTT samples across an epoch in usecs. */
101 /* Minimum observed rtt in usecs. */
103 /* Mean observed rtt between congestion epochs. */
257 * congestion event. RTT should be the average RTT estimate for the path
271 * For NewReno, beta = 0.5, therefore: W_tcp(t) = wmax*0.5 + t/RTT in reno_cwnd()
H A Dcc_htcp.c86 /* RTT_ref (ms) used in the calculation of alpha if RTT scaling is enabled. */
158 /* Largest rtt seen for the flow. */
160 /* Shortest rtt seen for the flow. */
230 * per RTT. in htcp_ack_received()
296 * reductions in the RTT are reflected in our in htcp_cong_signal()
314 * the RTT are reflected in our measurements. in htcp_cong_signal()
442 * RTT scaling: (RTT / RTT_ref) * alpha in htcp_recalc_alpha()
483 * Record the minimum and maximum RTT seen for the connection. These are used in
546 "enable H-TCP RTT scaling");
H A Dcc_cubic.c111 * 1 - rtt_thresh in flex1, checking to see if RTT is to great. in cubic_log_hystart_event()
112 * 2 - rtt is too great, rtt_thresh in flex1. in cubic_log_hystart_event()
115 * 5 - A new RTT measurement flex1 is the new measurement. in cubic_log_hystart_event()
295 * The mean RTT is used to best reflect the equations in in cubic_ack_received()
554 /* Calculate the average RTT between congestion epochs. */ in cubic_post_recovery()
566 * Record the min RTT and sum samples for the epoch average RTT calculation.
588 /* A minimal rtt is a single unshifted tick of a ticks in cubic_record_rtt()
596 * reasonable value until the epoch average RTT is in cubic_record_rtt()
605 /* Sum samples for epoch average RTT calculation. */ in cubic_record_rtt()
660 * Only look at RTT's that are non-ambiguous. in cubic_rttsample()
[all …]
/freebsd/sys/netinet/tcp_stacks/
H A Dtcp_bbr.h72 r_rtt_not_allowed:1, /* No rtt measurement allowed */
118 * exit from probe-rtt */
145 /* magic cookies to ask for the RTT */
166 * assist in single sack/ack rate and rtt
171 #define BBR_RS_RTT_EMPTY 0x00000001 /* Nothing yet stored in RTT's */
173 #define BBR_RS_RTT_VALID 0x00000004 /* We have at least one valid RTT */
195 /* RTT shrink reasons */
219 #define BBR_RT_PREV_RTT_SET 0x80 /* There was a RTT set in */
221 *There was a RTT send time set that can be used
336 #define BBR_SECONDS_NO_RTT 10 /* 10 seconds with no RTT shrinkage */
[all …]
H A Dtcp_rack.h31 #define RACK_DEFERRED 0x000004/* We can't use this for RTT calc - not used */
39 #define RACK_WAS_ACKED 0x000400/* a RTO undid the ack, but it already had a rtt calc done */
79 r_no_rtt_allowed : 1, /* No rtt measurement allowed */
145 * assist in single sack/ack rate and rtt
150 #define RACK_RTT_EMPTY 0x00000001 /* Nothing yet stored in RTT's */
151 #define RACK_RTT_VALID 0x00000002 /* We have at least one valid RTT */
180 #define RCV_PATH_RTT_MS 10 /* How many ms between recv path RTT's */
256 /* RTT shrink reasons */
280 #define RACK_QUALITY_HIGH 1 /* A normal measurement of a GP RTT */
283 #define RACK_QUALITY_PROBERTT 4 /* A measurement where we went into or exited probe RTT */
[all …]
/freebsd/contrib/netbsd-tests/net/route/
H A Dt_route.sh236 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
252 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
268 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
286 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
311 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
326 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
342 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
360 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
H A Dt_change.sh129 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
148 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
196 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
215 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
263 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
282 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dftm-initiator.c1201 s64 rtt_avg, rtt = res->ftm.rtt_avg; in iwl_mvm_ftm_resp_size_validation()
1208 WARN_ON(rtt < 0); in iwl_mvm_ftm_resp_size_validation()
1232 resp->rtt_avg = rtt; in iwl_mvm_ftm_range_resp()
1241 resp->rtt_avg = rtt; in iwl_mvm_ftm_range_resp()
1248 /* Smooth the results based on the tracked RTT average */ in iwl_mvm_ftm_range_resp()
1253 rtt_avg = div_s64(alpha * rtt + (100 - alpha) * resp->rtt_avg, 100); in iwl_mvm_ftm_range_resp()
1256 "%pM: prev rtt_avg=%lld, new rtt_avg=%lld, rtt=%lld\n", in iwl_mvm_ftm_range_resp()
1257 resp->addr, resp->rtt_avg, rtt_avg, rtt); in iwl_mvm_ftm_range_resp()
1260 * update the responder's average RTT results regardless of in iwl_mvm_ftm_range_resp()
1266 if (rtt_avg > rtt in iwl_mvm_ftm_range_resp()
1056 s64 rtt_avg, rtt = res->ftm.rtt_avg; iwl_mvm_ftm_rtt_smoothing() local
[all...]
/freebsd/tools/regression/sockets/udp_pingpong/
H A Dudp_pingpong.c94 struct rtt { struct
508 calc_rtt(struct test_pkt *tpp, struct rtt *rttp) in calc_rtt()
574 struct rtt rtt; in test_run() local
578 calc_rtt(&test_ctx.test_pkts[i], &rtt); in test_run()
579 if (!timespeccmp(&rtt.e2e, &rtt.a2b_b2a, >)) in test_run()
581 if (!timespeccmp(&rtt.e2e, &max_ts, <)) in test_run()
583 if (!timespeccmp(&rtt.a2b, &zero_ts, >)) in test_run()
585 if (!timespeccmp(&rtt.b2a, &zero_ts, >)) in test_run()

1234567