From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eddie Kohler Date: Sun, 17 Dec 2006 23:31:03 +0000 Subject: Re: [PATCH] [DCCP]: Use higher timeout value for nofeedback timer Message-Id: <4585D337.3030603@cs.ucla.edu> List-Id: References: <200611301318.46685@strip-the-willow> In-Reply-To: <200611301318.46685@strip-the-willow> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: dccp@vger.kernel.org I agree with Mark here. The cleanest implementation of the nofeedback timer would probably not involve actual Linux timers at all! Unless I'm very confused, the nofeedback timer is only needed to change sending rates, and thus can safely be checked in the process of sending a packet. Not suggesting an immediate change to the implementation, I don't have a patch ready, etc., etc., just documenting this. :) Eddie Mark Handley wrote: > On 12/1/06, Colin Perkins wrote: >> I'd actually suggest something on the order of 16-20ms. The rationale >> would be to match the typical inter-frame interval for multimedia >> applications, so that the kernel will likely be processing a sent >> packet when the timer expires, and can amortise the costs of checking >> the nofeedback timer into the send routine. > > You make a good point. The cost of checking the timer should be > fairly low if you're already in the DCCP send code for the relevant > connection. You have to reset the timer anyway every time you get > feedback, and checking the timer shouldn't be more expensive than > resetting it. As you get feedback every RTT under normal conditions, > you ought to be able to check it at least once per RTT so long as > you're in the DCCP code anyway. > > Now, do you every need to check the timer when you're not in the DCCP > send code? I think not. It's not like TCP, where you need to send a > packet on RTO expiry. I think it should be possible to only ever > check the nofeedback timer when you're in the send code for that > particular DCCP connection. And if so, then surely you can afford to > check it as often as you reset it - ie around once per RTT? > > You just have to be a bit smart - if you go to send and discover that > the timer should have expired multiple times, then you have to process > multiple backoff events, and perhaps reschedule your send for later > after you've done that. > > - Mark >