* [PATCH 2/6]: Provide fallback RTT value when none is available
@ 2007-06-09 18:58 Gerrit Renker
2007-06-16 5:13 ` Ian McDonald
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Gerrit Renker @ 2007-06-09 18:58 UTC (permalink / raw)
To: dccp
[DCCP]: Provide fallback RTT value when none is available
This implements RFC 4340, section 3.4:
"Each DCCP implementation thus defines a default round-trip time
for use when no estimate is available. This parameter should
default to not less than 0.2 seconds [...]."
In addition, the upper bound of 4 seconds for an RTT sample has now been reduced,
to 3 seconds: to match the initial TCP RTO value as specified in [RFC 1122, 4.2.3.1].
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
net/dccp/dccp.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -73,9 +73,12 @@ extern void dccp_time_wait(struct sock *
#define DCCP_RTO_MAX ((unsigned)(120 * HZ)) /* FIXME: using TCP value */
-/* bounds for sampled RTT values from packet exchanges (in usec) */
+/*
+ * RTT sampling: sanity bounds and fallback RTT value from RFC 4340, section 3.4
+ */
#define DCCP_SANE_RTT_MIN 100
-#define DCCP_SANE_RTT_MAX (4 * USEC_PER_SEC)
+#define DCCP_FALLBACK_RTT (USEC_PER_SEC / 5)
+#define DCCP_SANE_RTT_MAX (3 * USEC_PER_SEC)
/* Maximal interval between probes for local resources. */
#define DCCP_RESOURCE_PROBE_INTERVAL ((unsigned)(HZ / 2U))
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/6]: Provide fallback RTT value when none is available
2007-06-09 18:58 [PATCH 2/6]: Provide fallback RTT value when none is available Gerrit Renker
@ 2007-06-16 5:13 ` Ian McDonald
2007-06-16 14:21 ` Gerrit Renker
2007-10-21 1:29 ` Ian McDonald
2 siblings, 0 replies; 4+ messages in thread
From: Ian McDonald @ 2007-06-16 5:13 UTC (permalink / raw)
To: dccp
On 6/10/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [DCCP]: Provide fallback RTT value when none is available
>
> This implements RFC 4340, section 3.4:
>
> "Each DCCP implementation thus defines a default round-trip time
> for use when no estimate is available. This parameter should
> default to not less than 0.2 seconds [...]."
>
> In addition, the upper bound of 4 seconds for an RTT sample has now been reduced,
> to 3 seconds: to match the initial TCP RTO value as specified in [RFC 1122, 4.2.3.1].
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
> ---
> net/dccp/dccp.h | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> --- a/net/dccp/dccp.h
> +++ b/net/dccp/dccp.h
> @@ -73,9 +73,12 @@ extern void dccp_time_wait(struct sock *
>
> #define DCCP_RTO_MAX ((unsigned)(120 * HZ)) /* FIXME: using TCP value */
>
> -/* bounds for sampled RTT values from packet exchanges (in usec) */
> +/*
> + * RTT sampling: sanity bounds and fallback RTT value from RFC 4340, section 3.4
> + */
> #define DCCP_SANE_RTT_MIN 100
> -#define DCCP_SANE_RTT_MAX (4 * USEC_PER_SEC)
> +#define DCCP_FALLBACK_RTT (USEC_PER_SEC / 5)
> +#define DCCP_SANE_RTT_MAX (3 * USEC_PER_SEC)
>
> /* Maximal interval between probes for local resources. */
> #define DCCP_RESOURCE_PROBE_INTERVAL ((unsigned)(HZ / 2U))
I personally think this patch should include the changes where this
occurs in the code but I know these are in separate patches.
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
--
Web: http://wand.net.nz/~iam4/
Blog: http://iansblog.jandi.co.nz
WAND Network Research Group
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/6]: Provide fallback RTT value when none is available
2007-06-09 18:58 [PATCH 2/6]: Provide fallback RTT value when none is available Gerrit Renker
2007-06-16 5:13 ` Ian McDonald
@ 2007-06-16 14:21 ` Gerrit Renker
2007-10-21 1:29 ` Ian McDonald
2 siblings, 0 replies; 4+ messages in thread
From: Gerrit Renker @ 2007-06-16 14:21 UTC (permalink / raw)
To: dccp
| > [DCCP]: Provide fallback RTT value when none is available
| > @@ -73,9 +73,12 @@ extern void dccp_time_wait(struct sock *
| >
| > #define DCCP_RTO_MAX ((unsigned)(120 * HZ)) /* FIXME: using TCP value */
| >
| > -/* bounds for sampled RTT values from packet exchanges (in usec) */
| > +/*
| > + * RTT sampling: sanity bounds and fallback RTT value from RFC 4340, section 3.4
| > + */
| > #define DCCP_SANE_RTT_MIN 100
| > -#define DCCP_SANE_RTT_MAX (4 * USEC_PER_SEC)
| > +#define DCCP_FALLBACK_RTT (USEC_PER_SEC / 5)
<snip>
|
| I personally think this patch should include the changes where this
| occurs in the code but I know these are in separate patches.
|
I have just checked - the place it is actually used is indeed a bit later in the
change set, in receiver RTT sampling, it is here:
http://www.mail-archive.com/dccp@vger.kernel.org/msg01868.html
+ if (hcrx->ccid3hcrx_rtt = 0) {
+ DCCP_WARN("No RTT estimate available, using fallback RTT\n");
+ hcrx->ccid3hcrx_rtt = DCCP_FALLBACK_RTT;
}
But this patch is also generic: RFC 4340 says that this value (which agrees with
TCP-like values) can be used wherever there is no fallback.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/6]: Provide fallback RTT value when none is available
2007-06-09 18:58 [PATCH 2/6]: Provide fallback RTT value when none is available Gerrit Renker
2007-06-16 5:13 ` Ian McDonald
2007-06-16 14:21 ` Gerrit Renker
@ 2007-10-21 1:29 ` Ian McDonald
2 siblings, 0 replies; 4+ messages in thread
From: Ian McDonald @ 2007-10-21 1:29 UTC (permalink / raw)
To: dccp
On 6/10/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [DCCP]: Provide fallback RTT value when none is available
>
> This implements RFC 4340, section 3.4:
>
> "Each DCCP implementation thus defines a default round-trip time
> for use when no estimate is available. This parameter should
> default to not less than 0.2 seconds [...]."
>
> In addition, the upper bound of 4 seconds for an RTT sample has now been reduced,
> to 3 seconds: to match the initial TCP RTO value as specified in [RFC 1122, 4.2.3.1].
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
I signed off on this on June 16th but this seems to have got lost so:
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-21 1:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-09 18:58 [PATCH 2/6]: Provide fallback RTT value when none is available Gerrit Renker
2007-06-16 5:13 ` Ian McDonald
2007-06-16 14:21 ` Gerrit Renker
2007-10-21 1:29 ` Ian McDonald
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.