🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.net.ip
Article #135

traceroute を使っての Loose source routing

#135
From: Kamome no Jonathan
Date: Mon, 31 May 2004 06:20
53 lines
2634 bytes
はじめまして。北田と申します。

tracerouteのloose source route(-gオプション)がうまく動きません。

下記のようなスクリプトをつかって、同じホストへ辿りつく
違う経路をさがしました。

############################
TARGET=どこかのアドレス
while :; do
	traceroute $TARGET |
	perl -ne 'print "$1\n"  if m{\((\d+\.\d+\.\d+\.\d+)\)}' >a.log

	traceroute $TARGET |
	perl -ne 'print "$1\n"  if
	m{\((\d+\.\d+\.\d+\.\d+)\)}' >b.log
	if ! diff a.log b.log; then
		exit 0
	fi
done
############################

結果同じdesitinationへむかう経路
A->B->C->D
A->Z->C->D
を得たとします。

私の認識ではこのような場合に
$ traceroute -g B D

とすればかならずBを経由してDに辿りつくと思っているのですが

$ traceroute -g B D
traceroute to B (xxx.xxx.xxx.xxx), 30 hops max, 46 byte
packets
 1  わたしのISPのgateway (xxx.xxx.xxx.xxx)  10.584 ms !S *

というふうにまったくtrace出来ません。

tcpdump icmpでちょっとみてみたのですが

ISPのgateway -> わたし icmp 44: B unreachable - source route failed
ISPのgateway -> わたし icmp 44: B unreachable - source route failed

となっており、はじめのrouterですぐにくじけているようなのです。
loose source routeは指定していない経路も
使うことができるという認識なのですが。
何か勘違いをしているのでしょうか。

tracerouteは Version 1.4a12
OSはDebian(sid)です。

御教授願います。
Technical Details
Message-ID: <c9eis2$qbi$1@caraway.media.kyoto-u.ac.jp>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news.media.kyoto-u.ac.jp!kamome

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 10636f,66870243f29fb9a2,start
X-Google-Thread: 101801,6e7b8ca034eae8d6,start
X-Google-Attributes: gid10636f,gid101801,public
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news.media.kyoto-u.ac.jp!kamome
From: kamome@kamome.localhost (Kamome no Jonathan)
Newsgroups: fj.net.ip,fj.os.linux.networking
Subject: traceroute を使っての  Loose source routing
Date: Mon, 31 May 2004 06:20:51 +0000 (UTC)
Organization: Public NNTP Service, Kyoto University, JAPAN
Lines: 53
Sender: aktdjp@ybb.ne.jp
Message-ID: <c9eis2$qbi$1@caraway.media.kyoto-u.ac.jp>
NNTP-Posting-Host: yahoobb218139046146.bbtec.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
X-Trace: caraway.media.kyoto-u.ac.jp 1085984451 26994 218.139.46.146 (31 May 2004 06:20:51 GMT)
X-Complaints-To: news@news.media.kyoto-u.ac.jp
NNTP-Posting-Date: Mon, 31 May 2004 06:20:51 +0000 (UTC)
User-Agent: slrn/0.9.6.2jp0 (Linux)