From owner-freebsd-net@FreeBSD.ORG Fri Feb 25 07:59:45 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 427B5106566B for ; Fri, 25 Feb 2011 07:59:45 +0000 (UTC) (envelope-from nr1c0re@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id D479F8FC0A for ; Fri, 25 Feb 2011 07:59:44 +0000 (UTC) Received: by pvg11 with SMTP id 11so260311pvg.13 for ; Thu, 24 Feb 2011 23:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=DzHT4hBBSuJ9B1TECDbhmLEFfs74umDRtkmt0yjb7rg=; b=lcs3fJbb+jLSdjZ0z2M/bDfi6HGT+miG+zrf263jQ9XZVfxPsNlUfd+yAjQGvw/R5x Lgxa26xzcbvT68AAPTACHZCRFbM7F4iD8ARciJ6Y7am1OECfBifTIhkgIFsbuqtEWUL5 xUQztZIcDegBVOtcsfIvbLwp+DT6X22K15uo4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hK5B7foaYDHucEGhxluPqFaiGMOxg8YbNh94ItKvG9BnzftHpizbeCPbGTglZxw+rb nuhbG8yrEopVJi7Nm3aOEsl8SGder4xMbvIvPChyJ9HlmbWrcIm8sXXBVBJ8vpjAKYL6 tXrOYyuJffZuvs/zwvQ51SJEe8eAIO8DkeiQ8= MIME-Version: 1.0 Received: by 10.142.133.4 with SMTP id g4mr1443448wfd.188.1298618969416; Thu, 24 Feb 2011 23:29:29 -0800 (PST) Received: by 10.142.50.16 with HTTP; Thu, 24 Feb 2011 23:29:29 -0800 (PST) Date: Fri, 25 Feb 2011 10:29:29 +0300 Message-ID: From: c0re To: FreeBSD , freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Strange behavior of MTU on loopback interfaces. 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, 25 Feb 2011 07:59:45 -0000 Hello all! I'm testing setting lower MTU on loopback interfaces to avoid some MTU problems with IPSEC in a path of traffic. ifconfig lo1 create ifconfig lo1 mtu 1300 ifconfig lo1 5.5.5.5/32 # ifconfig lo1 lo1: flags=8049 metric 0 mtu 1300 inet 5.5.5.5 netmask 0xffffffff #ifconfig em0 em0: flags=8843 metric 0 mtu 1500 options=9b ether 12:ac:29:7c:fa:39 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 media: Ethernet autoselect (1000baseTX ) status: active And I set only one "Listen 5.5.5.5:80" in http.conf in apache 2.2 # sockstat -4 | grep 80 www httpd 96843 3 tcp4 5.5.5.5:80 *:* www httpd 96838 3 tcp4 5.5.5.5:80 *:* www httpd 96837 3 tcp4 5.5.5.5:80 *:* www httpd 96836 3 tcp4 5.5.5.5:80 *:* www httpd 96835 3 tcp4 5.5.5.5:80 *:* www httpd 96834 3 tcp4 5.5.5.5:80 *:* root httpd 96833 3 tcp4 5.5.5.5:80 *:* I run tcpdump -ni em0 port 80. And made telnet 5.5.5.5 80 from other host and saw something wrong. 10:26:01.640866 IP 10.0.0.2.57553 > 5.5.5.5.80: S 1049284626:1049284626(0) win 65535 10:26:01.640902 IP 5.5.5.5.80 > 10.0.0.2.57553: S 2144222949:2144222949(0) ack 1049284627 win 65535 10:26:01.642632 IP 10.0.0.2.57553 > 5.5.5.5.80: . ack 1 win 65535 5.5.5.5:80 said that it has got tcp mss 1460. Why? I was waiting for something like 1260.