From owner-freebsd-net@FreeBSD.ORG Tue Dec 23 18:26:15 2014 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 2BDA9DFF; Tue, 23 Dec 2014 18:26:15 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A27676468F; Tue, 23 Dec 2014 18:26:14 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id s18so6013731lam.16; Tue, 23 Dec 2014 10:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=AXg9BNX+dlbK+dEVgjtHaWEvFd6qTp5w4535ORArZhY=; b=UdOTKHeH1ZTwqDZWY23wAyX3h9r5NX4GbazSACLWZsKj7lPwuA6dq6JCRahXxlnc5a 7BGlfPEcauOAy/P5pQR5JuctY7Jl9KD5PE+nTmxVR29Ih/EcPb9OMjqk8Xe0c+6x+qyd SD5YY4r2R9KRa+1Womm/6FePsPmIqDict7TlNZvYXV1V/3wdP9NW8W3MtL0jEQzOfUpt i9nJ6EKw8qC4cTM/X2tNYskF76t5EJBDyPKv/GW1lZByR6Lf5FgkuJudcdDg3On6/nt6 uFxhcl3xm9pt+5prcyGPPabndbHXdvx2Lske0woGtNyfAeHcVFNfCXwR3H3GPyBgFXfH R17w== MIME-Version: 1.0 X-Received: by 10.112.164.240 with SMTP id yt16mr29943010lbb.34.1419359172715; Tue, 23 Dec 2014 10:26:12 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.174.169 with HTTP; Tue, 23 Dec 2014 10:26:12 -0800 (PST) Date: Tue, 23 Dec 2014 19:26:12 +0100 X-Google-Sender-Auth: t8QAC5PtWkAgC1iy-hbpfvC9hKE Message-ID: Subject: FIXED [Re: Netmap-ipfw, how to fill a table by 15K entries ?] From: Luigi Rizzo To: "IT Department, AkNet ISP" Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-net@freebsd.org" , "Alexander V. Chernikov" 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: Tue, 23 Dec 2014 18:26:15 -0000 Ok please pull the "next" branch from code.google.com/p/netmap-ipfw/ which has a fix applied (set TCP_NODELAY on the connection). With that i can load a table with 64k entries in about 3 seconds. The "master" branch also has the same fix, but loading a table appears to be buggy when it comes to tables, I think it is pointless to debug the problem in that branch since "next" contains more recent code from Alexander Chernikov which is much more robust for tables. Thanks for the bug report. cheers luigi On Tue, Dec 23, 2014 at 2:02 PM, IT Department, AkNet ISP wrote: > Hello to All > > Can anybody tell, how to fill a table with large number of entries ? > > Sure, It can be done by standard method by ./ipfw table 10 add > xxx.xxx.xxx.xxx in a script, but each entry takes couple of seconds to > be placed into a table: > > ./ipfw table 10 add 192.168.10.50 > connected to 127.0.0.1:5555 > > And takes many hours to do all job. > > May be there is a way to open a socket and place a bulk commands, for > example: > telnet localhost 5555 > table 10 add xxx.xxx.xxx.xxx > > But it doesn't work as written above. > > May be Senior Luigi can explane how to do such work as fast as it > done by ordinary ipfw ? > > Best regards > Azamat > AkNet ISP > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------