Home
last modified time | relevance | path

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

12345678910

/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/crypto/openssl/ssl/quic/
H A Dquic_rx_depack.c1125 /* ACK frames are valid everywhere except in 0RTT packets */ in depack_process_frames()
1130 "ACK not valid in 0-RTT"); in depack_process_frames()
1139 /* RESET_STREAM frames are valid in 0RTT and 1RTT packets */ in depack_process_frames()
1153 /* STOP_SENDING frames are valid in 0RTT and 1RTT packets */ in depack_process_frames()
1167 /* CRYPTO frames are valid everywhere except in 0RTT packets */ in depack_process_frames()
1172 "CRYPTO frame not valid in 0-RTT"); in depack_process_frames()
1179 /* NEW_TOKEN frames are valid in 1RTT packets */ in depack_process_frames()
1184 "NEW_TOKEN valid only in 1-RTT"); in depack_process_frames()
1212 /* STREAM frames are valid in 0RTT and 1RTT packets */ in depack_process_frames()
1218 "STREAM valid only in 0/1-RTT"); in depack_process_frames()
[all …]
H A Dquic_fc.c256 static int rxfc_should_bump_window_size(QUIC_RXFC *rxfc, OSSL_TIME rtt) in rxfc_should_bump_window_size() argument
263 * RTT: The current estimated RTT. in rxfc_should_bump_window_size()
271 * We bump the window size if T_window < 4 * RTT. in rxfc_should_bump_window_size()
287 return ossl_time_compare(t_window, ossl_time_multiply(rtt, 4)) < 0; in rxfc_should_bump_window_size()
291 OSSL_TIME rtt) in rxfc_adjust_window_size() argument
298 if (rxfc_should_bump_window_size(rxfc, rtt)) in rxfc_adjust_window_size()
311 OSSL_TIME rtt) in rxfc_update_cwm() argument
318 rxfc_adjust_window_size(rxfc, min_window_size, rtt); in rxfc_update_cwm()
329 OSSL_TIME rtt) in rxfc_on_retire() argument
336 rxfc_update_cwm(rxfc, min_window_size, rtt); in rxfc_on_retire()
[all …]
H A Dquic_rstream.c139 OSSL_TIME rtt; in get_rtt() local
145 rtt = rtt_info.smoothed_rtt; in get_rtt()
147 rtt = ossl_time_zero(); in get_rtt()
149 return rtt; in get_rtt()
155 OSSL_TIME rtt = get_rtt(qrs); in ossl_quic_rstream_read() local
161 && !ossl_quic_rxfc_on_retire(qrs->rxfc, *readbytes, rtt)) in ossl_quic_rstream_read()
254 OSSL_TIME rtt = get_rtt(qrs); in ossl_quic_rstream_release_record() local
256 if (!ossl_quic_rxfc_on_retire(qrs->rxfc, offset, rtt)) in ossl_quic_rstream_release_record()
/freebsd/crypto/openssl/doc/designs/quic-design/
H A Dquic-statm.md4 The statistics manager keeps track of RTT statistics for use by the QUIC
28 Get RTT Info
31 The current RTT info is retrieved using the function `ossl_statm_get_rtt_info`,
44 Update RTT
47 New RTT samples are provided using the `ossl_statm_update_rtt` function:
51 - `override_latest_rtt` provides a new latest RTT sample. If it is
52 `OSSL_TIME_ZERO`, the existing Latest RTT value is used when updating the
53 RTT.
H A Dtx-packetiser.md39 * Note: There is no crypto stream for the 0-RTT EL.
40 * crypto[QUIC_PN_SPACE_APP] is the 1-RTT crypto stream.
85 - Crypto streams for each EL other than 0-RTT (each is one SSTREAM).
113 The crypto streams for each EL (other than 0-RTT, which does not have a crypto
198 #### App Data 0-RTT Packet
200 Refer to [RFC 9000 17.2.3 0-RTT].
202 #### App Data 1-RTT Packet
204 Refer to [RFC 9000 17.3.1 1-RTT].
305 | 0 | Valid in 0-RTT packets|
306 | 1 | Valid in 1-RTT packets|
[all …]
/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).
/freebsd/crypto/openssl/test/
H A Dssl_handshake_rtt_test.c40 * Test 0: Clientside handshake RTT (TLSv1.2)
41 * Test 1: Serverside handshake RTT (TLSv1.2)
42 * Test 2: Clientside handshake RTT (TLSv1.3)
43 * Test 3: Serverside handshake RTT (TLSv1.3)
44 * Test 4: Clientside handshake RTT with Early Data (TLSv1.3)
53 uint64_t rtt; in test_handshake_rtt() local
78 /* implicitly set handshake rtt with a delay */ in test_handshake_rtt()
117 if (!TEST_int_gt(SSL_get_handshake_rtt(SSL_CONNECTION_GET_SSL(s), &rtt), 0)) in test_handshake_rtt()
120 if (!TEST_uint64_t_ge(rtt, 1000)) in test_handshake_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
70 * infra-cache-max-rtt) change it to just above the RTT_BAND. */
533 rtt_init(&data->rtt); in new_entry()
597 int old = ((struct infra_data*)e->data)->rtt.rto; in infra_host()
612 ((struct infra_data*)e->data)->rtt.rto in infra_host()
628 *to = rtt_timeout(&data->rtt); in infra_set_lame()
636 *to = rtt_timeout(&data->rtt); in infra_set_lame()
638 rtt_notimeout(&data->rtt)*4 <= *to)) { in infra_set_lame()
707 if(data->rtt.rto >= RTT_MAX_TIMEOUT) in infra_rtt_update()
710 data->rtt in infra_rtt_update()
740 infra_get_host_rto(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,uint8_t * nm,size_t nmlen,struct rtt_info * rtt,int * delay,time_t timenow,int * tA,int * tAAAA,int * tother) infra_get_host_rto() argument
798 infra_get_lame_rtt(struct infra_cache * infra,struct sockaddr_storage * addr,socklen_t addrlen,uint8_t * name,size_t namelen,uint16_t qtype,int * lame,int * dnsseclame,int * reclame,int * rtt,time_t timenow) infra_get_lame_rtt() argument
[all...]
/freebsd/crypto/openssl/include/internal/
H A Dquic_record_rx.h78 * A QRX has several encryption levels (Initial, Handshake, 0-RTT, 1-RTT) and
115 * 0-RTT, 1-RTT) are transitioned to the DISCARDED state. Otherwise, the QRX
118 * ossl_qrx_discard_enc_level for all non-1-RTT ELs immediately after
239 * The key epoch the packet was received with. Always 0 for non-1-RTT
345 * Decryption of 1-RTT packets must be explicitly enabled by calling this
346 * function. This is to comply with the requirement that we not process 1-RTT
347 * packets until the handshake is complete, even if we already have 1-RTT
348 * secrets. Even if a 1-RTT secret is provisioned for the QRX, incoming 1-RTT
361 * Key update is initially triggered by receiving a 1-RTT packet with a
438 * RFC 9001 recommends it be the PTO interval, which relates to our RTT to the
[all …]
H A Dquic_wire_pkt.h115 * 1-RTT also must come last as it lacks a length field. in ossl_quic_pkt_type_must_be_last()
277 * 0-RTT;
281 * Short Packets, which comprises only a single packet type (1-RTT).
287 * SLLLLL Legend: 1=1-RTT, i=Initial, 0=0-RTT, h=Handshake
315 /* [S] Value of the spin bit. Valid if (type == 1RTT). */
320 * Valid if (type == 1RTT && !partial).
326 * Valid if ((type == 1RTT || (version && type != RETRY)) && !partial).
354 * The 'Reserved' bits in an Initial, Handshake, 0-RTT or 1-RTT packet
361 /* [L] Version field. Valid if (type != 1RTT). */
369 * Valid if (type != 1RTT).
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DSSL_get_handshake_rtt.pod12 int SSL_get_handshake_rtt(const SSL *s, uint64_t *rtt);
16 SSL_get_handshake_rtt() retrieves the round-trip time (RTT) for I<ssl>.
44 Returns 1 if the TLS handshake RTT is successfully retrieved.
45 Returns 0 if the TLS handshake RTT cannot be determined yet.
46 Returns -1 if, while retrieving the TLS handshake RTT, an error occurs.
/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 …]
/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 …]

12345678910