From owner-freebsd-net@FreeBSD.ORG Fri Mar 20 09:29:41 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A478DAF for ; Fri, 20 Mar 2015 09:29:41 +0000 (UTC) Received: from mail-yh0-x22d.google.com (mail-yh0-x22d.google.com [IPv6:2607:f8b0:4002:c01::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C72F8F01 for ; Fri, 20 Mar 2015 09:29:40 +0000 (UTC) Received: by yhjf44 with SMTP id f44so37221061yhj.3 for ; Fri, 20 Mar 2015 02:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tEDSdjm2QOclIUHeCtlUdsDn71LwGOak1/ks9/syB4k=; b=DaGtoPhbdvxIhqgEztchvTzOc88Ktdk7alhd+V5nltSfCqobMaEt49lsTSjbuCz9jI dahFxbw/GDxmMaj6HcZEFlJQft5/aC8g9VH80bZcPJvQALvBQqR3YnQaVnLsH4Ga6knt k0GYFZLKZ/MOCMnSgKkDvGTJpQ2sziCOaV8R0t7hLJDtoW2FrjwX0LmljBi/BK85Kx8T 4yFZgSWO+x6fLzSmGU2WgL5FHNG+F7WwC1Z+E1uIZYmKDmKjUKNZqPLNLjkhNSEdXTSu p3fxxYJ1h3QJhYs8J3+sPJav4ZDTDALGswI0WbVzy3l9p6SY07JrsFcZ6DkpAIVAcQ/Z qsvw== MIME-Version: 1.0 X-Received: by 10.170.90.70 with SMTP id h67mr92771144yka.46.1426843779852; Fri, 20 Mar 2015 02:29:39 -0700 (PDT) Received: by 10.170.60.69 with HTTP; Fri, 20 Mar 2015 02:29:39 -0700 (PDT) In-Reply-To: <7F780FA4-E826-4C83-98CC-549FECEDA35E@par.lt> References: <7F780FA4-E826-4C83-98CC-549FECEDA35E@par.lt> Date: Fri, 20 Mar 2015 02:29:39 -0700 Message-ID: Subject: Re: Troubles with 'em' driver and UDP packets From: Mehmet Erol Sanliturk To: =?UTF-8?B?VmFpZGFzIERhbW/FoWV2acSNaXVz?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2015 09:29:41 -0000 On Fri, Mar 20, 2015 at 2:23 AM, Vaidas Damo=C5=A1evi=C4=8Dius = wrote: > Hello, > > I have 2 boxes with FreeBSD 10.1-RELEASE/amd64 and "Intel(R) PRO/1000 > Network Connection 7.4.2" NIC's directly connected to each other. I notic= ed > strange problem - I'm loosing small UDP packets under high load. I've tri= ed > to test it with iperf and got the following: > > --- > > vd@v0s4:~ % iperf3 -u -c 1.2.3.4 > Connecting to host 1.2.3.4, port 5201 > [ 4] local 1.2.3.3 port 64254 connected to 1.2.3.4 port 5201 > [ ID] Interval Transfer Bandwidth Total Datagrams > [ 4] 0.00-1.01 sec 120 KBytes 976 Kbits/sec 15 > [ 4] 1.01-2.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 2.01-3.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 3.01-4.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 4.01-5.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 5.01-6.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 6.01-7.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 7.01-8.00 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 8.00-9.01 sec 128 KBytes 1.05 Mbits/sec 16 > [ 4] 9.01-10.01 sec 128 KBytes 1.05 Mbits/sec 16 > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bandwidth Jitter Lost/Tota= l > Datagrams > [ 4] 0.00-10.01 sec 1.24 MBytes 1.04 Mbits/sec 0.325 ms 0/159 (0%= ) > [ 4] Sent 159 datagrams > > Any advice how to solve it ? > > Thank you. > _______________________________________________ > > I think you use Gigabit CROSS cable ( cat 5e or cat 6 ) . CROSS cable is required if connection is from computer to computer . Only for remaindering . Thank you very much . Mehmet Erol Sanliturk