From owner-freebsd-net@freebsd.org Sun Sep 6 21:37:47 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02C269C5B9C for ; Sun, 6 Sep 2015 21:37:47 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from nm43-vm3.bullet.mail.gq1.yahoo.com (nm43-vm3.bullet.mail.gq1.yahoo.com [67.195.87.218]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C14B9CA for ; Sun, 6 Sep 2015 21:37:45 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1441575278; bh=kcnFSOsY9+FRyENm27yMMNa1pgD3yX5+8/HbPSNBcKE=; h=Date:From:Subject:To:Cc:In-Reply-To:From:Subject; b=YAIuqTuQY85JIkSzkEelLKudDBxysjZFGwoMR4zR87lL/HPWTFS7EUAV8lL90xu6G9z1GBGQ6Mnu9WbVKyUKHdNrLsotv5+7GcxEdTJOU7pNMjScNmfN3MFLCPtg6esU+gtmkhyANTgCLRhdq1kXeVrYYyHF6X9eVLUW4tSuFmlhJ9kZ5FgQJtDj5aODXAcPIhXRh7bAxrT7IMPw83ylpY2JP1LL0IeofZizLHJMrgsSOjxZTRyeYAT+nFyg/yV8SebhwgSP8NWbl8FbBntW2EtUC/wUCt9UodvgBeNUiK5v8wb7dvxOBi9IyAnWECVw2DjuL1CdVN2eaBp67mRDrQ== Received: from [127.0.0.1] by nm43.bullet.mail.gq1.yahoo.com with NNFMP; 06 Sep 2015 21:34:38 -0000 Received: from [216.39.60.184] by nm43.bullet.mail.gq1.yahoo.com with NNFMP; 06 Sep 2015 21:31:51 -0000 Received: from [98.139.170.181] by tm20.bullet.mail.gq1.yahoo.com with NNFMP; 06 Sep 2015 21:31:51 -0000 Received: from [98.139.212.194] by tm24.bullet.mail.bf1.yahoo.com with NNFMP; 06 Sep 2015 21:31:51 -0000 Received: from [127.0.0.1] by omp1003.mail.bf1.yahoo.com with NNFMP; 06 Sep 2015 21:31:51 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 151310.20910.bm@omp1003.mail.bf1.yahoo.com Received: (qmail 66931 invoked by uid 60001); 6 Sep 2015 21:31:51 -0000 X-YMail-OSG: Kl6J9WkVM1lN9VwLqb0FxMVD3hCKIRdTXYe4gkG0FYsJw5S hpMJvXpoZxkPegdcFclZCif_aaRT8jkPlScm8cVJ.lblaTP1delg8XBkXlld 2GOilxUXZTAB.RMKYthluvkenEJ3EFbdxHLNIBxlPePiXnUZTTiGJRZEQiRm 6WLrQ0IeGCyie6b0mVUQ8Kfn6Bg_h6vdgOYBFeLOsBNujL76l_tyu7k5XdYW UJKZJ6uZwKQQcAcC1XhVQV8_QvWykX6bwgcmPCXNxqyFcNIXPQB6LDCQqlDS bPwCMz1onat_ZLyAhj.G5V35_CVNbwftih0FBWPOS8H7sLFB87S9hP_erapQ Q0f0ol53H18LkkkBY9A1fRhTy.EVtDAIxbBYmKey8w4boax6LTY0NphCKA3w SPJPRKpAHNRoxSOUANCp8GbdmdUIFInyeL6KKUiEe0hPuVqJTQ.C4RURXCb0 UtcL0B5O7dpzFtDVTm6Jlgt73jPJQusZ0n5ue9yIQmDEc6BU_049qMfU1ciL _1CidzrqvBjijnEDTkqFQq7_Egok81KsjVrOvJN7L_waKvE5YIPckFS7ls0. NRbWpAoqXJKxuv9ze6sh7NimhtyXRxRuD Received: from [151.238.53.33] by web165005.mail.bf1.yahoo.com via HTTP; Sun, 06 Sep 2015 14:31:51 PDT X-Rocket-MIMEInfo: 002.001, DQpUaGFuayB5b3UgZ3V5cyBmb3IgeW91ciBhbnN3ZXJzLg0KDQpPbiBTYXQsIFNlcCA1LCAyMDE1IGF0IDI6NDQgUE0sIEx1aWdpIFJpenpvIDxyaXp6b0BpZXQudW5pcGkuaXQ.IHdyb3RlOg0KPiBZb3UgbWF5IGJlIGFibGUgdG8gYXZvaWQgdGhlIGlzc3VlIGlmIHlvdSBhdm9pZCBhdXRvbmVnb3RpYXRpb24NCj4gYW5kIG1hbnVhbGx5IHNldCB0aGUgbWVkaWEgdHlwZSwgc3BlZWQgYW5kIGR1cGxleC4NCg0KT24gU3VuLCA5LzYvMTUsIEFydGVtIEJlbGV2aWNoIDxhcnRlbWJAZ21haWwuY29tPiB3cm90ZToBMAEBAQE- X-Mailer: YahooMailBasic/651 YahooMailWebService/0.8.203.813 Message-ID: <1441575111.13185.YahooMailBasic@web165005.mail.bf1.yahoo.com> Date: Sun, 6 Sep 2015 14:31:51 -0700 From: "M. V." Subject: Re: Problem with receiving packets right after remote-interface is up To: Artem Belevich Cc: "freebsd-net@freebsd.org" , Luigi Rizzo In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 21:37:47 -0000 Thank you guys for your answers. On Sat, Sep 5, 2015 at 2:44 PM, Luigi Rizzo wrote: > You may be able to avoid the issue if you avoid autonegotiation > and manually set the media type, speed and duplex. On Sun, 9/6/15, Artem Belevich wrote: > While you can indeed set speed/duplex manually, you will > also need to make sure both have have proper clock > master/slave selection which is normally done via autonegotiation. > ... I continued tests today based on what you said about auto-negotiation might cause the problem. A thing I found out today was that, even if I put about 3 seconds (or less) delay between "up"ing interface of sender, and sending packets, packet-drop would occur. but if I put 4 seconds delay or more between bringing link up and sending, no drop will occur. About disabling auto-negotiation and media options: My interfaces didn't support master/slave option. I changed interface media to both "1000BASET" and "100BASETX" instead of auto, but problem was still there. but interestingly, when I changed receiver's media to "10BASET" (other side was still auto) no packet-drop occurred (even when I removed the delay between bringing up interface and sending packets). I checked e1000 and em driver codes to find out what is driver doing differently when we set media to 10BASET that makes my tests succeed, but found nothing. Any ideas? On Sun, 9/6/15, Artem Belevich wrote: > It sounds to me like the problem is with your test setup. If > your test requires no packet drops, then it implicitly > assumes having established link and sending the packets > right after the interface Unfortunately we can't change test setup. Spirent Test-Center device runs the tests and gives up the detailed result about what happened, and these drops cause most tests to FAIL at the beginning and doesn't continue. Thank you.