From owner-freebsd-net@FreeBSD.ORG Fri Dec 9 11:35:24 2005 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 3477216A425 for ; Fri, 9 Dec 2005 11:35:24 +0000 (GMT) (envelope-from saurin@dcs.gla.ac.uk) Received: from mr1.dcs.gla.ac.uk (mr1.dcs.gla.ac.uk [130.209.249.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 073DB43D53 for ; Fri, 9 Dec 2005 11:35:07 +0000 (GMT) (envelope-from saurin@dcs.gla.ac.uk) Received: from ex1.ad.dcs.gla.ac.uk ([130.209.249.157]:12184) by mr1.dcs.gla.ac.uk with esmtp (Exim 4.42) id 1EkgWn-0002nO-61; Fri, 09 Dec 2005 11:35:05 +0000 Received: from [130.209.254.19] ([130.209.254.19]) by ex1.ad.dcs.gla.ac.uk over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 9 Dec 2005 11:35:05 +0000 In-Reply-To: <314d88f90512090148m143b0f83u8dbc0c28e3ab9b4c@mail.gmail.com> References: <314d88f90512090148m143b0f83u8dbc0c28e3ab9b4c@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <986A5F8C-52A2-43A5-99F2-5ADDD11AD16A@dcs.gla.ac.uk> Content-Transfer-Encoding: 7bit From: Alvaro Saurin Date: Fri, 9 Dec 2005 11:41:21 +0000 To: atanas atanas X-Mailer: Apple Mail (2.746.2) X-OriginalArrivalTime: 09 Dec 2005 11:35:05.0133 (UTC) FILETIME=[999B45D0:01C5FCB4] Cc: freebsd-net@freebsd.org Subject: Re: Dummynet and fragments 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, 09 Dec 2005 11:35:24 -0000 Hi, I have tested your patch and it works fine for me. Thanks. Alvaro On 9 Dec 2005, at 09:48, atanas atanas wrote: > As i see nobody here answer to me and to other guys i make my own > ivestigation of the problem with dummynet and why it's produce broken > fragments in 5.x 6.x RELEASES > in my debug's i found what couse the problem ;))) , here is my > debugs all > made on outgoing interaface after they live pipe's > > My Desktop PC ---- >>> > > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 18997:1480@0+) > (ttl 64, len 1500) > 192.168.135.213 > 195.69.108.254: icmp (frag 18997:528@1480) (ttl > 64, len > 548) > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 19000:1480@0+) > (ttl 64, len 1500) > 192.168.135.213 > 195.69.108.254: icmp (frag 19000:528@1480) (ttl > 64, len > 548) > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 19004:1480@0+) > (ttl 64, len 1500) > 192.168.135.213 > 195.69.108.254: icmp (frag 19004:528@1480) (ttl > 64, len > 548) > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 19008:1480@0+) > (ttl 64, len 1500) > 192.168.135.213 > 195.69.108.254: icmp (frag 19008:528@1480) (ttl > 64, len > 548) > > Router-FreeBSD RELEASE-4.11-p13 with pipe's for incoming and outgoing > traffic > > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 18997:1480@0+) > 192.168.135.213 > 195.69.108.254: icmp (frag 18997:528@1480) > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 19000:1480@0+) > 192.168.135.213 > 195.69.108.254: icmp (frag 19000:528@1480) > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 19004:1480@0+) > 192.168.135.213 > 195.69.108.254: icmp (frag 19004:528@1480) > 192.168.135.213 > 195.69.108.254: icmp: echo request (frag > 19008:1480@0+) > 192.168.135.213 > 195.69.108.254: icmp (frag 19008:528@1480) > > > Router-FreeBSD RELEASE-5.4-p8 with pipe's for incoming and outgoing > traffic > > IP (tos 0x0, ttl 62, id 26431, offset 0, flags [+], length: 1500) > 192.168.135.213 > 195.69.108.254: icmp 1480: echo request seq 0 > IP (tos 0x0, ttl 62, id 26433, offset 1480, flags [none], length: > 548) > 192.168.135.213 > 195.69.108.254: icmp > IP (tos 0x0, ttl 62, id 36602, offset 0, flags [+], length: 1500) > 192.168.135.213 > 195.69.108.254: icmp 1480: echo request seq 256 > IP (tos 0x0, ttl 62, id 36603, offset 1480, flags [none], length: > 548) > 192.168.135.213 > 195.69.108.254: icmp > IP (tos 0x0, ttl 62, id 46610, offset 0, flags [+], length: 1500) > 192.168.135.213 > 195.69.108.254: icmp 1480: echo request seq 512 > IP (tos 0x0, ttl 62, id 46611, offset 1480, flags [none], length: > 548) > 192.168.135.213 > 195.69.108.254: icmp > IP (tos 0x0, ttl 62, id 57038, offset 0, flags [+], length: 1500) > 192.168.135.213 > 195.69.108.254: icmp 1480: echo request seq 768 > IP (tos 0x0, ttl 62, id 57039, offset 1480, flags [none], length: > 548) > 192.168.135.213 > 195.69.108.254: icmp > > the second router 5.x first change id off fragments then broke > sequence and > destination host can't reasseble all packet this is the reason why > ping -s 2000 x.y.z.1 won't work > traceroute x.y.z.1 2000 > tcptraceroute x.y.z.1 80 2000 too > but it's a simple tools for troubleshooting , the baddest in this > case is > that it's harm real traffic vpn-s , and others > > ---> Here is a fix of this problem > > > --- ip_output.c Fri Dec 2 13:35:16 2005 > +++ ip_output-fix.c Thu Dec 8 17:39:28 2005 > @@ -173,7 +173,6 @@ > if ((flags & (IP_FORWARDING|IP_RAWOUTPUT)) == 0) { > ip->ip_v = IPVERSION; > ip->ip_hl = hlen >> 2; > - ip->ip_id = ip_newid(); > ipstat.ips_localout++; > } else { > hlen = ip->ip_hl << 2; > > > br, > CCNP Atanas Yankov > Network Administrator > AngelSoft Ltd. > _______________________________________________ > 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" -- Alvaro Saurin