login
Header Space

 
 

[RFC] TCP illinois max rtt aging

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <shaoliu@...>
Cc: 'Lachlan Andrew' <lachlan.andrew@...>, 'David S. Miller' <davem@...>, 'Herbert Xu' <herbert@...>, 'Douglas Leith' <doug.leith@...>, 'Robert Shorten' <robert.shorten@...>, <netdev@...>
Date: Monday, December 3, 2007 - 6:52 pm

On Wed, 28 Nov 2007 21:26:12 -0800
"Shao Liu" <shaoliu@Princeton.EDU> wrote:


The following adds gradual aging of max RTT.

--- a/net/ipv4/tcp_illinois.c	2007-11-29 08:58:35.000000000 -0800
+++ b/net/ipv4/tcp_illinois.c	2007-11-29 09:37:33.000000000 -0800
@@ -63,7 +63,10 @@ static void rtt_reset(struct sock *sk)
 	ca->cnt_rtt = 0;
 	ca->sum_rtt = 0;
 
-	/* TODO: age max_rtt? */
+	/* add slowly fading memory for maxRTT to accommodate routing changes */
+	if (ca->max_rtt > ca->base_rtt)
+		ca->max_rtt = ca->base_rtt
+			+ (((ca->max_rtt - ca->base_rtt) * 31) >> 5);
 }
 
 static void tcp_illinois_init(struct sock *sk)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] tcp-illinois: incorrect beta usage, Stephen Hemminger, (Wed Nov 28, 7:47 pm)
Re: [PATCH] tcp-illinois: incorrect beta usage, Lachlan Andrew, (Wed Nov 28, 8:25 pm)
Re: [PATCH] tcp-illinois: incorrect beta usage, Stephen Hemminger, (Wed Nov 28, 8:43 pm)
RE: [PATCH] tcp-illinois: incorrect beta usage, Shao Liu, (Thu Nov 29, 1:26 am)
[RFC] TCP illinois max rtt aging, Stephen Hemminger, (Mon Dec 3, 6:52 pm)
Re: [RFC] TCP illinois max rtt aging, Lachlan Andrew, (Mon Dec 3, 7:06 pm)
RE: [RFC] TCP illinois max rtt aging, Shao Liu, (Mon Dec 3, 7:59 pm)
Re: [RFC] TCP illinois max rtt aging, Stephen Hemminger, (Mon Dec 3, 8:32 pm)
Re: [RFC] TCP illinois max rtt aging, Lachlan Andrew, (Mon Dec 3, 9:23 pm)
Re: [RFC] TCP illinois max rtt aging, Ilpo Järvinen, (Tue Dec 4, 4:37 am)
Re: [RFC] TCP illinois max rtt aging, Lachlan Andrew, (Thu Dec 6, 11:27 pm)
Re: [RFC] TCP illinois max rtt aging, Ilpo Järvinen, (Fri Dec 7, 7:05 am)
Re: [RFC] TCP illinois max rtt aging, David Miller, (Fri Dec 7, 8:41 am)
Re: [RFC] TCP illinois max rtt aging, Ilpo Järvinen, (Fri Dec 7, 9:05 am)
Re: [RFC] TCP illinois max rtt aging, Ilpo Järvinen, (Fri Dec 7, 2:27 pm)
Re: [RFC] TCP illinois max rtt aging, David Miller, (Fri Dec 7, 9:32 pm)
Re: SACK scoreboard, David Miller, (Tue Jan 8, 3:36 am)
Re: SACK scoreboard, John Heffner, (Tue Jan 8, 12:51 pm)
Re: SACK scoreboard, David Miller, (Tue Jan 8, 6:44 pm)
Re: SACK scoreboard, Andi Kleen, (Tue Jan 8, 10:25 pm)
Re: SACK scoreboard, David Miller, (Wed Jan 9, 2:39 am)
Re: SACK scoreboard, Andi Kleen, (Wed Jan 9, 3:03 am)
Re: SACK scoreboard, Evgeniy Polyakov, (Wed Jan 9, 5:47 am)
Re: SACK scoreboard, Andi Kleen, (Wed Jan 9, 10:02 am)
Re: SACK scoreboard, David Miller, (Wed Jan 9, 3:16 am)
Re: SACK scoreboard, John Heffner, (Wed Jan 9, 12:27 am)
Re: SACK scoreboard, Ilpo Järvinen, (Wed Jan 9, 8:55 am)
Re: SACK scoreboard, David Miller, (Wed Jan 9, 2:41 am)
Re: SACK scoreboard, John Heffner, (Wed Jan 9, 10:56 am)
Re: SACK scoreboard, SANGTAE HA, (Wed Jan 9, 2:14 pm)
Re: SACK scoreboard, John Heffner, (Wed Jan 9, 2:23 pm)
Re: SACK scoreboard, Lachlan Andrew, (Tue Jan 8, 9:34 pm)
Re: SACK scoreboard, David Miller, (Wed Jan 9, 2:35 am)
Re: SACK scoreboard, Ilpo Järvinen, (Tue Jan 8, 8:12 am)
Re: SACK scoreboard, David Miller, (Wed Jan 9, 3:58 am)
Re: [RFC PATCH net-2.6.25 uncompilable] [TCP]: Avoid breakin..., Stephen Hemminger, (Wed Dec 12, 8:00 pm)
Re: [PATCH] tcp-illinois: incorrect beta usage, Herbert Xu, (Thu Nov 29, 10:12 am)
speck-geostationary