From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756098Ab3AVVSI (ORCPT ); Tue, 22 Jan 2013 16:18:08 -0500 Received: from mail-ee0-f54.google.com ([74.125.83.54]:57061 "EHLO mail-ee0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789Ab3AVVSG (ORCPT ); Tue, 22 Jan 2013 16:18:06 -0500 MIME-Version: 1.0 In-Reply-To: <1358887953-28665-1-git-send-email-avagin@openvz.org> References: <1358887953-28665-1-git-send-email-avagin@openvz.org> Date: Tue, 22 Jan 2013 16:18:04 -0500 Message-ID: Subject: Re: [PATCH net-next] tcp: add ability to set a timestamp offset From: Neal Cardwell To: Andrey Vagin Cc: Netdev , criu@openvz.org, LKML , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , Eric Dumazet , Yuchung Cheng , Pavel Emelyanov , Dave Jones , Michael Kerrisk Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2013 at 3:52 PM, Andrey Vagin wrote: > If a TCP socket will get live-migrated from one box to another the > timestamps (which are typically ON) will get screwed up -- the new > kernel will generate TS values that has nothing to do with what they > were on dump. The solution is to yet again fix the kernel and put a > "timestamp offset" on a socket. One serious issue with this patch is that outgoing timestamp values will no longer correspond to tcp_time_stamp, so echoed timestamp values will also no longer have a meaningful relationship to tcp_time_stamp. That violates assumptions made in several places in the code, which assumes that we can compare echoed timestamp values to tcp_time_stamp; for example, there are several places where we do things like subtracting: tcp_time_stamp - tp->rx_opt.rcv_tsecr to find the estimated RTT for a segment. neal