From owner-freebsd-hackers@freebsd.org Sun Sep 6 05:27:20 2015 Return-Path: Delivered-To: freebsd-hackers@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 8DCE09CB3D6 for ; Sun, 6 Sep 2015 05:27:20 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm9-vm6.bullet.mail.ne1.yahoo.com (nm9-vm6.bullet.mail.ne1.yahoo.com [98.138.91.102]) (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 5BF8F9B2 for ; Sun, 6 Sep 2015 05:27:20 +0000 (UTC) (envelope-from noname.esst@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1441517105; bh=vcp5PDeg2omp2GQ1UhcynMoMt4CgWGDjzhPM6KX66rg=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=Ik/G/AkNtKN9tavKebKIyLAQmP89czSpIfCBKJxz9Cuq/efKtFMHYWBJnnAWwldCLjX4vtM0JRkycQJtXPHBw9VzsM23IPV6jlJyTFqXBqnU1nY3GHX/skzgZ0WgsztaXcYuc7eovhh+ejoc+AH5obj1Y9fzEVSbvPBrJ26xrreLtExnjqD1dhRX/ICMIxSuKXFqlALjXX9eKBHWqk5k8UrO2xdJPiQE0MFawl2h3X9da/pWJiUbbiXkM0fRNg9uHpYi6WsB/95RvqN0bgYQc0FrDruZEVn2lgI9EuQGw2AVCiuwOpg/btMedk6ubGRrPamQEZNe1qLuwtQPHNdJ4w== Received: from [98.138.101.131] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2015 05:25:05 -0000 Received: from [98.138.89.166] by tm19.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2015 05:25:05 -0000 Received: from [127.0.0.1] by omp1022.mail.ne1.yahoo.com with NNFMP; 06 Sep 2015 05:25:05 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 590712.91044.bm@omp1022.mail.ne1.yahoo.com X-YMail-OSG: WlAsdkAVM1kAI1d1lvWUIK3G0qtev5IifDaYK85qxT_UMhygL1QFrIEbYutLKl2 r0f8F.aqZ3wca4O2r.onn3ufcnywc2HDjQykXlMr0FuplJ8511WZHTN0cVyOlZfm5KZAQE.Zgp6r GE1hnLoSkvRl2RP89JqEb2m2j5fDRAyZBzyAbE1cXfoCRSbWh8p8Mr1UnU8WvS97sViFtvPGoLvv jE5q1Q3Dm1O55aP.TbUT_B9zBaJQit7LXBn.6U4C3XCCJ.Q7dmB4uFAQp11lLgoAg7_HZ6IJm_95 kICp4B4nNXD13pUppmh4rWiYcQy8q2MkojFCZe5qz0LsMZV2Lub8swLCaL560Qcef7xnFGz14eLT gqQ350.uzmDGCxPYzXuudfiBxEXhyzpMBxjVfo4LzThWZIOdqWmITSv8rvq8KbqtbP9dSaiIxp9U qIEihUibc_ieXX64MxS865.LteeXndXVnjNZYXwM96jH9Ta_Yz5ej3fJYe4iuWM5S88LlTL3XVRe BHHlfrHrBm2Ji4fCyaQ-- Received: by 98.138.105.227; Sun, 06 Sep 2015 05:24:58 +0000 Date: Sun, 6 Sep 2015 05:24:55 +0000 (UTC) From: Nomad Esst Reply-To: Nomad Esst To: Adrian Chadd Cc: Freebsd Hackers List Message-ID: <2036397629.2295424.1441517095478.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: em. igb performance test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 05:27:20 -0000 Thanks for your reply. How can I solve this problem? e.g. speed up the link negotiation, buffer the packets while link negotiation is being done ? Any ideas? Regards. On Saturday, September 5, 2015 8:01 PM, Adrian Chadd wrote: Hi, It's likely a combination of STP and how long it takes to do link negotiation. Packets transmitted during link negotiation will be lost. -adrian On 5 September 2015 at 08:03, Slawa Olhovchenkov wrote: > On Sat, Sep 05, 2015 at 02:45:28PM +0000, Nomad Esst via freebsd-hackers wrote: > >> Hi allDuring some performance tests, we found out some weird problems. We use a shell script that do the following : >> do from 1 to 10Shutdown em/igb interfacesleep 3Bring em/igb interface uptcpreplay -i em0 -l ospf_hello.pcap sleep3end >> By running this shell on one side we expect 10 ospf hello packets to get arrived at the other side, but tcpdump (on the other side) shows 4, sometimes 8 and etc ... (not all 10 packets are arrived at the other side).We test this scenario with a Cisco router, and all packets are received at the Cisco side. What causes this packet loss in FreeBSD (maybe in em or igb drivers)?I know that this scenario may not have any use in the real world, but I'm curious, why Cisco don't have such behavior.Thanks in advance. > > uping interface not momentaly. > packets sending to down interface will be lost. > try to wait `status: active` before run tcpreplay. > Also, check STP off on interconnect switch you port. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Sun Sep 6 06:48:27 2015 Return-Path: Delivered-To: freebsd-hackers@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 AB9F69CB2DE for ; Sun, 6 Sep 2015 06:48:27 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 668E8BB9 for ; Sun, 6 Sep 2015 06:48:27 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1ZYTkS-000ByV-RS; Sun, 06 Sep 2015 09:48:20 +0300 Date: Sun, 6 Sep 2015 09:48:20 +0300 From: Slawa Olhovchenkov To: Nomad Esst Cc: Adrian Chadd , Freebsd Hackers List Subject: Re: em. igb performance test Message-ID: <20150906064820.GH21849@zxy.spb.ru> References: <2036397629.2295424.1441517095478.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2036397629.2295424.1441517095478.JavaMail.yahoo@mail.yahoo.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 06:48:27 -0000 On Sun, Sep 06, 2015 at 05:24:55AM +0000, Nomad Esst via freebsd-hackers wrote: > Thanks for your reply. How can I solve this problem? e.g. speed up the link negotiation, buffer the packets while link negotiation is being done ? Any ideas? > Regards. try this for wait carrier: until ifconfig em0 | grep -q 'status: active' do echo waiting carrier... sleep 1 done > > > On Saturday, September 5, 2015 8:01 PM, Adrian Chadd wrote: > > > > Hi, > > It's likely a combination of STP and how long it takes to do link > negotiation. Packets transmitted during link negotiation will be lost. > > > > -adrian > > > On 5 September 2015 at 08:03, Slawa Olhovchenkov wrote: > > On Sat, Sep 05, 2015 at 02:45:28PM +0000, Nomad Esst via freebsd-hackers wrote: > > > >> Hi allDuring some performance tests, we found out some weird problems. We use a shell script that do the following : > >> do from 1 to 10Shutdown em/igb interfacesleep 3Bring em/igb interface uptcpreplay -i em0 -l ospf_hello.pcap sleep3end > >> By running this shell on one side we expect 10 ospf hello packets to get arrived at the other side, but tcpdump (on the other side) shows 4, sometimes 8 and etc ... (not all 10 packets are arrived at the other side).We test this scenario with a Cisco router, and all packets are received at the Cisco side. What causes this packet loss in FreeBSD (maybe in em or igb drivers)?I know that this scenario may not have any use in the real world, but I'm curious, why Cisco don't have such behavior.Thanks in advance. > > > > uping interface not momentaly. > > packets sending to down interface will be lost. > > try to wait `status: active` before run tcpreplay. > > Also, check STP off on interconnect switch you port. > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"