From owner-freebsd-net@FreeBSD.ORG Tue May 21 14:36:19 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 95D7F14C for ; Tue, 21 May 2013 14:36:19 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3C869F for ; Tue, 21 May 2013 14:36:18 +0000 (UTC) Received: (qmail 32228 invoked from network); 21 May 2013 15:36:08 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 21 May 2013 15:36:08 -0000 Message-ID: <519B8657.6070201@freebsd.org> Date: Tue, 21 May 2013 16:36:07 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Hooman Fazaeli Subject: Re: netmap bridge can tranmit big packet in line rate ? References: <1369140007.80942.YahooMailClassic@web121602.mail.ne1.yahoo.com> <519B82D8.9010508@gmail.com> In-Reply-To: <519B82D8.9010508@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: liujie@263.net, freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2013 14:36:19 -0000 On 21.05.2013 16:21, Hooman Fazaeli wrote: > AsBarney pointed outalready, your numbers are reasonable. You have almost saturated > the link with 1514 byte packets.In the case of 64 byte packets, you do not achieve line > rate probably because of the congestion on the bus.Can you show us "top -SI" output on the > sender machine? Be aware that "line rate" for small packets is NOT raw link speed divided by packet size. There's also pre- and post-amble bits and inter-frame gap to be considered. Those bits are on the wire too but invisible as they are handled entirely by the ethernet NIC. The minimum size of an ethernet frame is 64 bytes (excluding the additional bits, 84 bytes including them) even though IP packets can be smaller. The difference is padded by the NIC. So the maximum is 14,880,960 pps at 64 bytes and 812,740 at 1500 bytes. There's a number of resources explaining this issue in more detail: http://www.cisco.com/web/about/security/intelligence/network_performance_metrics.html http://ekb.spirent.com/resources/sites/SPIRENT/content/live/FAQS/10000/FAQ10597/en_US/How_to_Test_10G_Ethernet_WhitePaper_RevB.PDF -- Andre