From owner-freebsd-net@FreeBSD.ORG Thu Jan 5 10:48:06 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C92F5106566B; Thu, 5 Jan 2012 10:48:06 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7E0A58FC0A; Thu, 5 Jan 2012 10:48:06 +0000 (UTC) Received: by obbwd18 with SMTP id wd18so591685obb.13 for ; Thu, 05 Jan 2012 02:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=edeK1Byfy0H97hugeF2MVTIDW8iw6QAhvxVE77sSJMU=; b=ilAAV1grPR/FDRlQnjPCGu46D+gaBGolD9D0uqeTK8chsfXEfYqAegNCE9gDFMb4bh YYrTT6Pam59WzPdLw89OM3N37Ta48oIe053eX81hCD5LJThV5A75D3DP3MZzfbz4gKUH at8Bz3scQchCDSCPV6jV8MLS78W5RQRrqCkkc= MIME-Version: 1.0 Received: by 10.50.188.132 with SMTP id ga4mr2730950igc.4.1325760485797; Thu, 05 Jan 2012 02:48:05 -0800 (PST) Received: by 10.231.41.206 with HTTP; Thu, 5 Jan 2012 02:48:05 -0800 (PST) In-Reply-To: <20120105095855.GI34721@glebius.int.ru> References: <20111227044754.GK8035@FreeBSD.org> <20111227083503.GP8035@glebius.int.ru> <20120105095855.GI34721@glebius.int.ru> Date: Thu, 5 Jan 2012 12:48:05 +0200 Message-ID: From: Sami Halabi To: Gleb Smirnoff Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: ng_mppc_decompress: too many (4094) packets dropped, disabling node X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2012 10:48:06 -0000 Hi, there is a problem whith this script: # ngctl ls | awk '{ if ($4 == "l2tp") print $6}' ngctl: send msg: No buffer space available Sami 2012/1/5 Gleb Smirnoff > Sami, > > I'm trying to reproduce a reordering problem with a new node, and > I've found that: > > 1) PPTP uses sequencing, that would not pass out of sequence datagram > to the PPP, and thus to MPPE. > 2) L2TP uses sequencing optionally, so the problem in subject may > appear only on an L2TP link with disabled sequencing. > > I wonder how often L2TP is running w/o sequencing control. Can you > please run this script on your mpd box to estimate? > > #!/bin/sh > > IDS=$(ngctl ls | awk '{ if ($4 == "l2tp") print $6}') > for id in $IDS; do > id="[$id]:"; > sess=$(ngctl show $id | sed -En 's/.*session_([0-9a-f]+).*/\1/p'); > ngctl msg $id getsessconfig 0x$sess > done > > In my small installation I've got only a couple of L2TP clients, and both > use sequencing, so patched code in ng_mppc won't be ever executed. > > Rec'd response "getsessconfig" (4) from "[11f]:": > Args: { session_id=0xafb6 peer_id=0x2fcf control_dseq=1 enable_dseq=1 } > Rec'd response "getsessconfig" (4) from "[f3]:": > Args: { session_id=0xd34b peer_id=0x2654 control_dseq=1 enable_dseq=1 } > > I'd like to explicitly test the code in ng_mppc to make sure, that node > can rekey up to 4096 times and continue operation. > > -- > Totus tuus, Glebius. > -- Sami Halabi Information Systems Engineer NMS Projects Expert