From owner-freebsd-net@FreeBSD.ORG Fri Jul 7 11:40:11 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CB0D16A4E0 for ; Fri, 7 Jul 2006 11:40:11 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 737B543D46 for ; Fri, 7 Jul 2006 11:40:10 +0000 (GMT) (envelope-from rrs@cisco.com) Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-6.cisco.com with ESMTP; 07 Jul 2006 04:40:10 -0700 Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id k67BeAYb030696; Fri, 7 Jul 2006 04:40:10 -0700 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id k67Be8DH011068; Fri, 7 Jul 2006 04:40:09 -0700 (PDT) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 7 Jul 2006 04:40:08 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 7 Jul 2006 04:40:06 -0700 Message-ID: <44AE4814.2020706@cisco.com> Date: Fri, 07 Jul 2006 07:40:04 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "George V. Neville-Neil" References: <44A552FA.2030302@cisco.com> <20060703094806.689f33ae@marcin> <44A90031.9010308@cisco.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jul 2006 11:40:06.0394 (UTC) FILETIME=[17EB8DA0:01C6A1BA] DKIM-Signature: a=rsa-sha1; q=dns; l=3402; t=1152272410; x=1153136410; c=relaxed/simple; s=sjdkim3001; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:Randall=20Stewart=20 |Subject:Re=3A=20SCTP; X=v=3Dcisco.com=3B=20h=3DeFwn8yHouLxYzxwWS0cbAORTlr0=3D; b=dxWO7n3F/M7r3WC2KWRSP9D2Nc5gWCq83npbL3VnLpvGZCoVv4BQfsmEPAK/bBg15EAPQNVX 8Ab9ZpgoJJw6AmzbrgGZi3BFPSXFxltR79u7OoQLQ+G2Q4b6nA9xZRJr; Authentication-Results: sj-dkim-3.cisco.com; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com verified; ); Cc: freebsd-net@freebsd.org, Marcin Jessa Subject: Re: SCTP 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: Fri, 07 Jul 2006 11:40:11 -0000 George V. Neville-Neil wrote: > > I already sent the pointer to my version of NetPIPE (the pounder you > mention) and their new release should have SCTP in it by default. > > Later, > George > Ok, no doc's just stuff http://www.sctp.org/app.tar.bz2 Un tar into a directory (it creates several) do a gmake and you will have in the apps/FreeBSD subdir: block_test dump_pegs prtcwndlog client_manyconn getcwndlog prtcwndlog_ntohl cmp_client interest_client sctp_test_app cmp_recvfile interest_server server cmp_sendfile m_cmp_client tcp_client cmp_server peel_client tcp_server data_sorter peel_server tsctp bash-stewlap: some ones of interest: cmp_server m_cmp_client cmp_server takes an arg -p port and -s for SCTP and -t for TCP m_cmp_client takes many argumets... -e error -f file -h host -p port -M limit -e error .. is just a text string that goes in the out file.. put -e 0.0 -f file .. is an input list of transfers (see below).. suply your file name -h 10.1.1.1 (host you ran cmp_server on) -p port (port you ran cmp_server on) if you add a -t, you do TCP connections only. If you add a -s you do SCTP connections only.. by default it will try both.. File format is: # Control file needs # sizetos:blksize:snd_buf:recv_buf\n 157000000:157:0:0 158000000:158:0:0 xx yy in the direectory are examples.. First arg is size of transfer second is record size, third and fourth are send/recv buf size changes -- 0 is don't touch. This generates a file... xx.data (xx is the file you input)... this can actually be used with a data_sorter program to plot graphs... sctp_test_app Is a general purpose test app that can do LOTS of things. It gives you a prompt and you can type help to it.. args to it are -m myport -p first-dest-port -h first-dest-host But I will let you type help for fun... and learning .. it does use a readline type syntax. and requires libreadline.so/.a etc.. The rest are migrant test apps we have built over the last 5 years.. some simple.. some complex.. getcwndlog/prtcwndlog is a instrumenting utility that works with the options in kernel config #options SCTP_LOG_MAXBURST #options SCTP_STAT_LOGGING #options SCTP_CWND_LOGGING #options SCTP_CWND_MONITOR #options SCTP_BLK_LOGGING #options SCTP_STR_LOGGING #options SCTP_FR_LOGGING #options SCTP_MAP_LOGGING #options SCTP_SACK_LOGGING #options SCTP_LOCK_LOGGING #options SCTP_RTTVAR_LOGGING #options SCTP_SB_LOGGING #options SCTP_WITH_NO_CSUM #options SCTP_EARLYFR_LOGGING #options SCTP_NAGLE_LOGGING You turn on option SCTP_STAT_LOGGING and then add your favorite type of logging... for example to watch cwnd option SCTP_CWND_LOGGING Now this creates an 80k entry array that the getcwndlog will pull. prtcwndlog will display the log.. I don't recommend this for production kernels.. but it sure is nice for debugging and poking around :-D The rest I will let you explore.. no apologies though for the shape of the hacked together code :-) R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 815-342-5222 (cell)