Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.h @ 7987:3b107aadc9f6 quic
QUIC: added rtt estimation.
According to the quic-recovery 29, Section 5: Estimating the Round-Trip Time.
Currently, integer arithmetics is used, which loses sub-millisecond accuracy.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 16 Jul 2020 15:44:06 +0300 |
parents | e0f92f68e018 |
children | 909b989ec088 |
comparison
equal
deleted
inserted
replaced
7986:001ec7fce567 | 7987:3b107aadc9f6 |
---|---|
38 #define NGX_QUIC_RETRY_LIFETIME 30000 | 38 #define NGX_QUIC_RETRY_LIFETIME 30000 |
39 #define NGX_QUIC_RETRY_BUFFER_SIZE 128 | 39 #define NGX_QUIC_RETRY_BUFFER_SIZE 128 |
40 /* 1 flags + 4 version + 3 x (1 + 20) s/o/dcid + itag + token(44) */ | 40 /* 1 flags + 4 version + 3 x (1 + 20) s/o/dcid + itag + token(44) */ |
41 #define NGX_QUIC_MAX_TOKEN_SIZE 32 | 41 #define NGX_QUIC_MAX_TOKEN_SIZE 32 |
42 /* sizeof(struct in6_addr) + sizeof(ngx_msec_t) up to AES-256 block size */ | 42 /* sizeof(struct in6_addr) + sizeof(ngx_msec_t) up to AES-256 block size */ |
43 | |
44 /* quic-recovery, section 6.2.2, kInitialRtt */ | |
45 #define NGX_QUIC_INITIAL_RTT 333 /* ms */ | |
43 | 46 |
44 #define NGX_QUIC_HARDCODED_PTO 1000 /* 1s, TODO: collect */ | 47 #define NGX_QUIC_HARDCODED_PTO 1000 /* 1s, TODO: collect */ |
45 #define NGX_QUIC_CC_MIN_INTERVAL 1000 /* 1s */ | 48 #define NGX_QUIC_CC_MIN_INTERVAL 1000 /* 1s */ |
46 | 49 |
47 #define NGX_QUIC_MIN_INITIAL_SIZE 1200 | 50 #define NGX_QUIC_MIN_INITIAL_SIZE 1200 |