From owner-freebsd-net@FreeBSD.ORG Wed Feb 20 23:35:40 2008 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 B624416A402 for ; Wed, 20 Feb 2008 23:35:40 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 39CB713C4D5 for ; Wed, 20 Feb 2008 23:35:39 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so3160025fka.11 for ; Wed, 20 Feb 2008 15:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; bh=mplDfnHdirHr5WTk1XSez5acWqxk9TR961AMby039Mg=; b=rGO2UUJ1wiPdcI5PtgdhiTDR4zbXMPR6QfNwku7PMDQ772ODG5/yzfU++uVmtUKRnzfra0NDcTaANLGATZLc+vistDM1CRFsy8HQ1JlTyl4kzHXwjHyqx3WItZfHYuMxuFwVTr8j5N/WytQvQy4oINibuYxfiTh+z5v05FwA+Vk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; b=KUBl99O3SKeJ5hvRa7O3qV9BHp4D7d35kJ0IpL/yZSwm5fhyiIgDSzq0SpN8l5qTp2yPKVBino+QiK6HydfVfp48yo+em+mgOPYOFVjf+qmtaz15IuFym008n/5ep/uUvZ0FZKGsQ1nN+2GQ4qmiQLpFYheik99Jr38nqQ3mjyI= Received: by 10.82.138.6 with SMTP id l6mr17492653bud.13.1203550537841; Wed, 20 Feb 2008 15:35:37 -0800 (PST) Received: from ?88.214.148.28? ( [88.214.148.28]) by mx.google.com with ESMTPS id x6sm10146691gvf.0.2008.02.20.15.35.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Feb 2008 15:35:34 -0800 (PST) Message-Id: <76626991-0EB2-422C-8A54-D6DB4AF20182@FreeBSD.org> From: Rui Paulo To: freebsd-net@freebsd.org In-Reply-To: <650763DB-B6D6-4533-AF89-8A8DF8205BA2@FreeBSD.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 20 Feb 2008 23:35:28 +0000 References: <5C5B3E4E-AE10-449C-925C-C9AB681FB6C3@FreeBSD.org> <20080218104116.GA56893@zibbi.meraka.csir.co.za> <650763DB-B6D6-4533-AF89-8A8DF8205BA2@FreeBSD.org> X-Mailer: Apple Mail (2.919.2) Sender: Rui Paulo Subject: Re: traceroute AS path patch 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: Wed, 20 Feb 2008 23:35:40 -0000 On Feb 19, 2008, at 10:13 PM, Rui Paulo wrote: > > On Feb 18, 2008, at 10:41 AM, John Hay wrote: > >> Hi Rui, >> >> On Sun, Feb 17, 2008 at 09:30:44PM +0000, Rui Paulo wrote: >>> Hi, >>> The attached patch ports a traceroute functionality from FreeBSD >>> called AS path. >>> The concept is simple. On each hop we query a whois server to find >>> the >>> corresponding hop AS number. >>> >>> I think it doesn't hurt if we have this functionality. >>> >>> An example output: >>> traceroute to freebsd.org (69.147.83.40), 64 hops max, 72 byte >>> packets >>> ... >>> 7 [AS6453] if-2-1.core1.PV9-Lisbon.teleglobe.net (195.219.187.21) >>> 35.105 ms 34.008 ms 35.334 ms >>> 8 [AS6453] 195.219.144.5 (195.219.144.5) 63.880 ms 60.448 ms >>> 60.809 ms >>> 9 [AS6453] 195.219.144.10 (195.219.144.10) 138.593 ms 193.709 ms >>> 173.415 ms >>> 10 [AS7199] if-2-0.core1.NJY-Newark.teleglobe.net (216.6.63.10) >>> 133.912 ms 134.393 ms 144.071 ms >>> 11 [AS9557] if-3-1.mcore3.NJY-Newark.teleglobe.net (216.6.57.1) >>> 135.600 ms 144.979 ms 168.247 ms >>> 12 [AS9557] if-12-0-0-741.core4.AEQ-Ashburn.teleglobe.net >>> (216.6.57.70) 180.346 ms 138.718 ms 138.927 ms >>> 13 [AS6453] 64.86.85.38 (64.86.85.38) 142.745 ms 143.163 ms >>> 143.358 ms >>> 14 [AS26085] so-0-0-0.pat2.pao.yahoo.com (216.115.101.130) 252.417 >>> ms 213.377 ms 212.859 ms >>> 15 [AS26085] ge-0-1-0-p301.pat1.sjc.yahoo.com (216.115.106.147) >>> 214.709 ms 213.198 ms 235.253 ms >>> 16 [AS26085] g-1-0-0-p160.msr1.sp1.yahoo.com (216.115.107.61) >>> 219.091 ms >>> [AS26085] g-0-0-0-p170.msr2.sp1.yahoo.com (216.115.107.81) >>> 217.650 ms >>> [AS26085] g-1-0-0-p160.msr1.sp1.yahoo.com (216.115.107.61) >>> 286.376 ms >>> 17 [AS36752] ge-1-45.bas-b2.sp1.yahoo.com (209.131.32.49) >>> 213.747 ms >>> [AS36752] ge-1-41.bas-b2.sp1.yahoo.com (209.131.32.33) 274.140 ms >>> [AS36752] ge-1-45.bas-b2.sp1.yahoo.com (209.131.32.49) 213.341 ms >>> 18 [AS36752] freebsd.org (69.147.83.40) 214.386 ms 223.515 ms >>> 212.548 ms >>> >>> >>> What do you think? >> >> Would it be difficult to add it to traceroute6 too? It would be great >> if we can keep features in sync. > > I will try to do it after committing this patch. Just FYI, committed. -- Rui Paulo