From owner-freebsd-hackers Thu Jan 30 7: 4:14 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DA8437B401 for ; Thu, 30 Jan 2003 07:04:12 -0800 (PST) Received: from mail.eecs.harvard.edu (bowser.eecs.harvard.edu [140.247.60.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D60443F85 for ; Thu, 30 Jan 2003 07:04:08 -0800 (PST) (envelope-from ellard@eecs.harvard.edu) Received: by mail.eecs.harvard.edu (Postfix, from userid 465) id 7E2E654C446; Thu, 30 Jan 2003 10:03:55 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.eecs.harvard.edu (Postfix) with ESMTP id 7B89654C43F; Thu, 30 Jan 2003 10:03:55 -0500 (EST) Date: Thu, 30 Jan 2003 10:03:55 -0500 (EST) From: Daniel Ellard To: freebsd-hackers@freebsd.org Cc: Audsin Subject: Re: Changing the Maximum Segment Size (MSS) of Kame MIP6 Free BSD4.4 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > Audsin wrote: > > I am Dev, doing my research in Centre for Telecommunications Research, > > King's college London. My research project involves evaluating the > > performance of MIP6 TCP in the presence of fragmentation and without > > fragmentation. I am using Kame MIP6 for Free BSD 4.4 and have configured > > gif0 interface for ipv6ip tunnel. I wish to change the Maximum segment size > > of the TCP. Can you please help me , where i should change the MSS of the > > TCP. Can you tell me where the default size of the MSS mentioned? > > man ifconfig > /mtu The original question asked about the TCP MSS, not the MTU. Looking at ifconfig isn't going to help. I don't have the 4.4 source sitting around, but assuming that it hasn't changed much, in 4.6.2 you can find (or change) the defaults in /usr/src/sys/netinet/tcp.h. The default for TCP4 is 512, and 1024 for TCP6. You can get at them via sysctl (along with a lot of other TCP-related things): net.inet.tcp.mssdflt: 512 net.inet.tcp.v6mssdflt: 1024 Note that the actual MSS is negotiated; if both ends can't support the same value, the smaller is chosen. For MTUs, in case that's really what you meant, it's even more strict and depending on how the transport layer is implemented, it may be impossible (or reckless) to increase the MTU. For example, on ethernet many switches simply do not support an MTU larger than 1500. -Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message