Debian Bug report logs - #407767
netselect don't know from IPv6

version graph

Package: netselect; Maintainer for netselect is Javier Fernández-Sanguino Peña <jfs@debian.org>; Source for netselect is src:netselect (PTS, buildd, popcon).

Reported by: Bill Trost <trost@cloud.rain.com>

Date: Sun, 21 Jan 2007 03:33:01 UTC

Severity: normal

Tags: ipv6

Found in versions netselect/0.3.ds1-8, netselect/0.3.ds1-12.1, 0.3.ds1-14

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Filippo Giunchedi <filippo@debian.org>:
Bug#407767; Package netselect. (full text, mbox, link).


Acknowledgement sent to Bill Trost <trost@cloud.rain.com>:
New Bug report received and forwarded. Copy sent to Filippo Giunchedi <filippo@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Bill Trost <trost@cloud.rain.com>
To: submit@bugs.debian.org
Subject: netselect don't know from IPv6
Date: Sat, 20 Jan 2007 19:20:03 -0800
Package: netselect
Version: 0.3.ds1-8

Given an IPv6-only host, I tried "netselect -vvv ftp.nara.wide.ad.jp"
and got the following output:

   Running netselect to choose 1 out of 1 address.         
   unreachable or down!
   
   
   ftp.nara.wide.ad.jp                   9999 ms  30 hops    0% ok

On the other hand, if I apt-get from that host, it works, albeit rather slowly.

Other info:

$ uname -a
Linux contrail 2.6.18-3-amd64 #1 SMP Mon Dec 4 17:04:37 CET 2006 x86_64 GNU/Linux
$ dpkg -s libc6 | grep ^Versi
Version: 2.3.6.ds1-8



Information forwarded to debian-bugs-dist@lists.debian.org, Filippo Giunchedi <filippo@debian.org>:
Bug#407767; Package netselect. (Wed, 05 Aug 2009 08:57:06 GMT) (full text, mbox, link).


Acknowledgement sent to Jason White <jason@jasonjgw.net>:
Extra info received and forwarded to list. Copy sent to Filippo Giunchedi <filippo@debian.org>. (Wed, 05 Aug 2009 08:57:06 GMT) (full text, mbox, link).


Message #10 received at 407767@bugs.debian.org (full text, mbox, reply):

From: Jason White <jason@jasonjgw.net>
To: Debian Bug Tracking System <407767@bugs.debian.org>
Subject: netselect: IPv6 hosts still not supported
Date: Wed, 05 Aug 2009 18:53:43 +1000
Package: netselect
Version: 0.3.ds1-12.1
Severity: normal

As of version 0.3.ds1-12
jdc:~# netselect ftp.ipv6.debian.org
netselect: unknown host ftp.ipv6.debian.org

jason@jdc:~$ host ftp.ipv6.debian.org
ftp.ipv6.debian.org has IPv6 address 2001:708:310:54::99
ftp.ipv6.debian.org has IPv6 address 2001:b68:e212::3

For hosts that have both IPv4 and IPv6 addresses in DNS, netselect appears to
use the IPv4 address, which is misleading because most applications will make
the connection over IPv6 and thus the calculated score turns out to be wrong,
assuming (realistically for anyone with an IPv6 over IPv4 tunnel) that the
ping times between the two protocols are different due to different paths
being taken in each case.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages netselect depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  libc6                         2.9-23     GNU C Library: Shared libraries

netselect recommends no packages.

Versions of packages netselect suggests:
pn  netselect-apt                 <none>     (no description available)

-- debconf information excluded




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#407767; Package netselect. (Sun, 09 Aug 2009 20:15:05 GMT) (full text, mbox, link).


Acknowledgement sent to Filippo Giunchedi <filippo@debian.org>:
Extra info received and forwarded to list. (Sun, 09 Aug 2009 20:15:05 GMT) (full text, mbox, link).


Message #15 received at 407767@bugs.debian.org (full text, mbox, reply):

From: Filippo Giunchedi <filippo@debian.org>
To: Jason White <jason@jasonjgw.net>, 407767@bugs.debian.org
Subject: Re: Bug#407767: netselect: IPv6 hosts still not supported
Date: Sun, 9 Aug 2009 21:14:09 +0100
On Wed, Aug 05, 2009 at 06:53:43PM +1000, Jason White wrote:
> Package: netselect
> Version: 0.3.ds1-12.1
> Severity: normal
> 
> As of version 0.3.ds1-12
> jdc:~# netselect ftp.ipv6.debian.org
> netselect: unknown host ftp.ipv6.debian.org
> 
> jason@jdc:~$ host ftp.ipv6.debian.org
> ftp.ipv6.debian.org has IPv6 address 2001:708:310:54::99
> ftp.ipv6.debian.org has IPv6 address 2001:b68:e212::3
> 
> For hosts that have both IPv4 and IPv6 addresses in DNS, netselect appears to
> use the IPv4 address, which is misleading because most applications will make
> the connection over IPv6 and thus the calculated score turns out to be wrong,
> assuming (realistically for anyone with an IPv6 over IPv4 tunnel) that the
> ping times between the two protocols are different due to different paths
> being taken in each case.

correct, I've had a look at adding ipv6 support but looks like a big rework at
least for the icmp handling.
Unfortunately I have no time nor interest to do this at least right now, to anyone
who's interested for a start I would suggest:

http://tools.ietf.org/html/rfc3542
http://tools.ietf.org/html/rfc3493

filippo
-- 
Filippo Giunchedi - http://esaurito.net - 0x6B79D401

Networking -- only one letter away from not working
-- Unknown




Added tag(s) ipv6. Request was from Kenyon Ralph <kenyon@kenyonralph.com> to control@bugs.debian.org. (Thu, 10 Mar 2011 06:24:16 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Javier Fernandez-Sanguino <jfs@debian.org>:
Bug#407767; Package netselect. (Tue, 20 Sep 2011 20:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to Matt Weatherford <mbw@u.washington.edu>:
Extra info received and forwarded to list. Copy sent to Javier Fernandez-Sanguino <jfs@debian.org>. (Tue, 20 Sep 2011 20:54:04 GMT) (full text, mbox, link).


Message #22 received at 407767@bugs.debian.org (full text, mbox, reply):

From: Matt Weatherford <mbw@u.washington.edu>
To: Debian Bug Tracking System <407767@bugs.debian.org>
Subject: netselect-apt: Another Problem with host on IPv6
Date: Tue, 20 Sep 2011 13:31:36 -0700
Package: netselect-apt
Version: 0.3.ds1-14
Severity: normal


netselect-apt is reporting the "fastest" mirror to be in Thailand, but the
host is not reachable.

My university is doing some early IPv6 work and dont know how the connectivity
is working, but my debian squeeze system is not set up for ipv6.

I am in Seattle, WA, and find it suspicious that my fastest mirror is in Thailand.

so I tried it in sources.list and got the following:

Err http://ftp.v6.coe.psu.ac.th squeeze Release.gpg                   
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
Err http://ftp.v6.coe.psu.ac.th/debian/ squeeze/contrib Translation-en
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
Err http://ftp.v6.coe.psu.ac.th/debian/ squeeze/contrib Translation-en_US
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
Err http://ftp.v6.coe.psu.ac.th/debian/ squeeze/main Translation-en
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
Err http://ftp.v6.coe.psu.ac.th/debian/ squeeze/main Translation-en_US
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
Err http://ftp.v6.coe.psu.ac.th/debian/ squeeze/non-free Translation-en
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
Err http://ftp.v6.coe.psu.ac.th/debian/ squeeze/non-free Translation-en_US
  Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]

so somehow netselect-apt is picking a mirror I cant actually get to

hope this helps the maintainers. pls. let me know if I can run any other tests for you guys

-Matt


-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages netselect-apt depends on:
ii  netselect                     0.3.ds1-14 speed tester for choosing a fast n
ii  wget                          1.12-2.1   retrieves files from the web

netselect-apt recommends no packages.

netselect-apt suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Javier Fernandez-Sanguino <jfs@debian.org>:
Bug#407767; Package netselect. (Wed, 21 Sep 2011 22:21:07 GMT) (full text, mbox, link).


Acknowledgement sent to Javier Fernández-Sanguino Peña <jfs@computer.org>:
Extra info received and forwarded to list. Copy sent to Javier Fernandez-Sanguino <jfs@debian.org>. (Wed, 21 Sep 2011 22:21:08 GMT) (full text, mbox, link).


Message #27 received at 407767@bugs.debian.org (full text, mbox, reply):

From: Javier Fernández-Sanguino Peña <jfs@computer.org>
To: Matt Weatherford <mbw@u.washington.edu>, 407767@bugs.debian.org
Subject: Re: Bug#407767: netselect-apt: Another Problem with host on IPv6
Date: Thu, 22 Sep 2011 00:16:36 +0200
[Message part 1 (text/plain, inline)]
On Tue, Sep 20, 2011 at 01:31:36PM -0700, Matt Weatherford wrote:
> Package: netselect-apt
> Version: 0.3.ds1-14
> Severity: normal
> 
> 
> netselect-apt is reporting the "fastest" mirror to be in Thailand, but the
> host is not reachable.

This is strange, could you please run the following:

netselect -vv -D -I -s 1 -t 5 ftp.debian.org http.us.debian.org ftp.v6.coe.psu.ac.th

And send me the output?

> My university is doing some early IPv6 work and dont know how the connectivity
> is working, but my debian squeeze system is not set up for ipv6.

It certainly looks like this might be related.

> 
> I am in Seattle, WA, and find it suspicious that my fastest mirror is in Thailand.
> so I tried it in sources.list and got the following:
> 
> Err http://ftp.v6.coe.psu.ac.th squeeze Release.gpg                   
>   Cannot initiate the connection to ftp.v6.coe.psu.ac.th:80 (2001:3c8:9009:181::7). - connect (101: Network is unreachable) [IP: 2001:3c8:9009:181::7 80]
(...)

> so somehow netselect-apt is picking a mirror I cant actually get to

Maybe HTTP does not work but ICMP queries work?


Regards

Javier
[signature.asc (application/pgp-signature, inline)]

Message sent on to Bill Trost <trost@cloud.rain.com>:
Bug#407767. (Sat, 01 Oct 2011 10:06:18 GMT) (full text, mbox, link).


Message #30 received at 407767-submitter@bugs.debian.org (full text, mbox, reply):

From: Javier Fernández-Sanguino Peña <jfs@computer.org>
To: 407767-submitter@bugs.debian.org
Subject: Re: Bug#407767: netselect-apt: Another Problem with host on IPv6
Date: Sat, 1 Oct 2011 12:02:37 +0200
[Message part 1 (text/plain, inline)]

After debugging with the user and his network administrators it turns out
there are a few issues here:

1) A Taiwanese mirror is reporting a private IPv4 address and a public IPv6
address:

$ host ftp.v6.coe.psu.ac.th
ftp.v6.coe.psu.ac.th has address 172.30.0.7
ftp.v6.coe.psu.ac.th has IPv6 address 2001:3c8:9009:181::7

[ This issue has been reported to the local mirror admins ]

2) netselect, when testing this mirror, reports that it is the fastest server.
The reason it does this is that it is actually testing a local (to the user)
network server through the private IP address 172.30.0.7.

3) netselect-apt will not take netselect's fastest server and write the
source.list with the name

4) apt tries to contact the remote server using IPv6 and fails

I have added (in 0.3.ds1-20 and enhanced in 0.3.ds1-21) some checks in
netselect-apt so that it tries to validate the mirrors reported as 'fasted'
by netselect.

This changes should make it more difficult for the programs with broken
network behaviour (such as the one described above).  I have backported this
fix to Squeeze and the packages are available at
http://people.debian.org/~jfs/netselect/

Once the issue is confirmed as solved with the fixes introduced I will close
this bug.

Regards

Javier
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Javier Fernández-Sanguino Peña <jfs@debian.org>:
Bug#407767; Package netselect. (Thu, 25 Feb 2016 16:51:11 GMT) (full text, mbox, link).


Acknowledgement sent to Bob Ham <bob.ham@collabora.com>:
Extra info received and forwarded to list. Copy sent to Javier Fernández-Sanguino Peña <jfs@debian.org>. (Thu, 25 Feb 2016 16:51:12 GMT) (full text, mbox, link).


Message #35 received at 407767@bugs.debian.org (full text, mbox, reply):

From: Bob Ham <bob.ham@collabora.com>
To: 407767@bugs.debian.org
Subject: Patch for IPv6 support
Date: Thu, 25 Feb 2016 16:46:44 +0000
[Message part 1 (text/plain, inline)]
Hi there,

Please find attached a patch for IPv6 support in netselect.  The patch
is against r26676 of

  svn://svn.debian.org/svn/collab-maint/deb-maint/netselect/trunk

Regards,

Bob Ham

-- 
Bob Ham <bob.ham@collabora.com>
Software Engineer

>>>>>>>>
Open First 
Collabora is hiring!
Please check out our latest opportunities here:
http://bit.ly/Collabora-Careers
<<<<<<<<


[netselect-debian-ipv6-support.diff (text/x-patch, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jul 15 15:21:53 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.