From owner-freebsd-net@FreeBSD.ORG Mon Mar 10 08:37:10 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 364F3622 for ; Mon, 10 Mar 2014 08:37:10 +0000 (UTC) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4000818 for ; Mon, 10 Mar 2014 08:37:09 +0000 (UTC) Received: from [192.168.1.200] (p508F0570.dip0.t-ipconnect.de [80.143.5.112]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 6D2A71C1040F7; Mon, 10 Mar 2014 09:37:06 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: A problem on SCTP From: Michael Tuexen In-Reply-To: Date: Mon, 10 Mar 2014 09:37:01 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Niu Zhixiong X-Mailer: Apple Mail (2.1874) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2014 08:37:10 -0000 On 10 Mar 2014, at 07:22, Niu Zhixiong wrote: > Dear freebsd-net all, > I am a beginner of FreeBSD. I meet a problem in SCTP testing. >=20 > I have two virtual machine, both installed FreeBSD 10 / i386 / with = generic > KERNEL > (the host is CentOS 6.5 x86-64 with KVM) >=20 > The first virtual machine named freetest0 and second is freetest1 >=20 > freetest0 =3D freebsd 10 / i386 / the IF is vtnet2 192.168.6.100 > freetest1 =3D freebsd 10 / i386 / the IF is vtnet2 192.168.6.110 >=20 > I want to test the speed between to freetest(s) IF. > But, the problem is they cannot get connected by SCTP. the TCP and UDP = are > well. >=20 > Whatever I use iperf3 (with SCTP support) and netperfmeter, they = cannot get > connected by SCTP. >=20 > #the server is freetest1 > root@freetest1:~ # netstat -an -f inet > Active Internet connections (including servers) > Proto Recv-Q Send-Q Local Address Foreign Address > (state) > tcp46 0 0 *.9000 *.* = LISTEN > tcp4 0 0 192.168.0.110.22 192.168.0.1.39754 > ESTABLISHED > tcp4 0 0 192.168.0.110.22 192.168.0.1.39752 > ESTABLISHED > tcp4 0 0 127.0.0.1.25 *.* = LISTEN > tcp4 0 0 *.22 *.* = LISTEN > udp46 0 0 *.9000 *.* > udp4 0 0 *.514 *.* > Active SCTP associations (including servers) > Proto Type Local Address Foreign Address (state) > sctp46 1to1 fe80::5054:ff:fe.9000 LISTEN > 192.168.8.110.9000 > fe80::5054:ff:fe.9000 > 192.168.6.110.9000 > fe80::5054:ff:fe.9000 > 192.168.0.110.9000 > 127.0.0.1.9000 > fe80::1.9000 > ::1.9000 > sctp46 1toN fe80::5054:ff:fe.9001 LISTEN > 192.168.8.110.9001 > fe80::5054:ff:fe.9001 > 192.168.6.110.9001 > fe80::5054:ff:fe.9001 > 192.168.0.110.9001 > 127.0.0.1.9001 > fe80::1.9001 > ::1.9001 >=20 >=20 >=20 >=20 >=20 > root@freetest0:~ # netperfmeter 192.168.6.110:9000 > Network Performance Meter - Version 1.0 > --------------------------------------- >=20 > Active Mode: > - Measurement ID =3D 4bc75bae > - Remote Address =3D 192.168.6.110:9000 > - Control Address =3D 192.168.6.110:9001 - connecting ... >=20 > # >=20 >=20 >=20 > root@freetest0:~ # tcpdump -i vtnet2 > tcpdump: verbose output suppressed, use -v or -vv for full protocol > decode > listening on vtnet2, link-type EN10MB (Ethernet), capture size = 65535 > bytes > 14:11:03.839031 IP 192.168.6.100.55228 > 192.168.6.110.5201: Flags = [S], > seq 1318388212, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS = val > 2652085 ecr 0], length 0 > 14:11:03.868787 IP 192.168.6.110.5201 > 192.168.6.100.55228: Flags > [R.], seq 0, ack 1318388213, win 0, length 0 > 14:11:35.235362 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:38.256378 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:40.256418 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:44.256099 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:52.254442 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] >=20 > root@freetest1:~ # tcpdump -i vtnet2 > tcpdump: verbose output suppressed, use -v or -vv for full protocol > decode > listening on vtnet2, link-type EN10MB (Ethernet), capture size = 65535 > bytes > 14:11:35.979349 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:39.000411 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:41.000495 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:45.000116 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] > 14:11:52.998491 IP 192.168.6.100.52018 > 192.168.6.110.9001: sctp = (1) > [INIT] [init tag: 3995201801] [rwnd: 1864135] [OS: 10] [MIS: 2048] = [init > TSN: 332259025] >=20 > root@freetest0:~ # uname -a > FreeBSD freetest0 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri = Jan 17 > 01:46:25 UTC 2014 = root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC > i386 >=20 > Could somebody help me? Thank you in advance. I haven't used KVM, so I hope there is no NAT involved between the two FreeBSD machines. Can you build a kernel with SCTP_DEBUG added to the options? Then use sudo sysctl -w net.inet.sctp.debug=3D1 to enable it on the server. This should provide some information what is = going on. Best regards Michael >=20 > Regards, > Niu Zhixiong > =EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D= =EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D=EF=BC=8D > kaiaixi@gmail.com > _______________________________________________ > 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"