From owner-freebsd-net Wed Aug 8 12:43:53 2001 Delivered-To: freebsd-net@freebsd.org Received: from starfruit.itojun.org (host217-33-137-35.ietf.ignite.net [217.33.137.35]) by hub.freebsd.org (Postfix) with ESMTP id 3367637B406 for ; Wed, 8 Aug 2001 12:43:45 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from itojun.org (localhost [127.0.0.1]) by starfruit.itojun.org (Postfix) with ESMTP id D1B9E7BB; Thu, 9 Aug 2001 04:43:25 +0900 (JST) To: Jeroen Ruigrok/Asmodai Cc: Mike Tancsa , freebsd-net@freebsd.org In-reply-to: asmodai's message of Wed, 08 Aug 2001 18:14:54 +0200. <20010808181454.Q2937@daemon.ninth-circle.org> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: gif MTU of 1280 ? From: Jun-ichiro itojun Hagino Date: Thu, 09 Aug 2001 04:43:25 +0900 Message-Id: <20010808194325.D1B9E7BB@starfruit.itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Actually I am wondering about it now myself. X.25 is one of the few >link layer protocols left which has a MTU < 1500 (aside from 802.3's >1492). > >Maybe some IPv6 guru is able to shed some light? we picked 1280 because it is the IPv6 minimum link MTU, and would liked to torture-test IPv6 stack with gif (configured as IPv6-over-IPv4 tunnel). for other usage, you may want to SIOCSIFMTU, or whatever. at this moment gif(4) does not keep track of the path MTU discovered for the outer header. this is because, IP protocol (at least both v4/v6) does not cope well with L2 that changes MTU too frequently. (therefore, gif MTU should better be statically defined) as others noted, if you set gif MTU to 1500, then you will see a lot of fragmented packet exchanges (= poor performance). if you use IPv4 as the outer header, MTU <= 1480 avoids fragmentation and more performant. as 1280 <= 1480, we avoid fragmentation with the current default configuration. itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message