JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for IPV6-USERS Archives


IPV6-USERS Archives

IPV6-USERS Archives


IPV6-USERS@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

IPV6-USERS Home

IPV6-USERS Home

IPV6-USERS  June 2011

IPV6-USERS June 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: MacOS X caching (was Re: Some local IPv6 Day Stats)

From:

Phil Mayers <[log in to unmask]>

Reply-To:

Phil Mayers <[log in to unmask]>

Date:

Thu, 9 Jun 2011 13:23:36 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (44 lines)

On 09/06/11 13:07, Alan Buxey wrote:
> hi,
>
> wasnt all this covered in the preface work for HappyEyeballs ?
>
> any client that takes the first DNS answer (as this appears to do)
> is broken - should wait a little longer for an answer for each query
> and then use HE to decide WHICH method to use - fixes the case
> when eg IPv6 address is given but theres no working connectivity
>
> you'd think that web browsers - which all can multithread and deal with
> background transfer and parallel processes/threads - could implement
> this far quicker/better than something thats traditionally a single
> thread/process :-|

For DNS lookups, the client *should* be the system getaddrinfo() 
implementation IMHO. I'm a big hater of applications re-implementing 
that call - there are a lot of crappy programmers out there, and proper, 
consistent getaddrinfo() is really important for eventual IPv6 adoption.

In my ideal world, getaddrinfo() would be an RPC call to a local, 
long-lived recursive resolver, with proper DNS caching semantics.

If that were the case, the flow would look like this:

0.000 app: getaddrinfo(timeout=0.1)
0.001 res: DNS lookups, A & AAAA
0.070 res: DNS reply=A -> into cache
0.100 res: timeout - return to app
0.101 app: getaddrinfo() -> returns A
0.110 res: DNS reply=AAA -> into cache
...
1.000 app: getaddrinfo(timeout=0.1)
1.001 res: cache lookup & return
1.002 app: getaddrinfo() -> returns AAAA,A

That is, a long-lived recursive resolver daemon would still be running 
when the "late" AAAA reply came back, would process & add it the cache, 
and subsequent calls return the full set.

The happy eyeballs RFC hints that connect_by_name() could profitably 
move into such a long-lived daemon, making the "pick lowest RTT" 
decision consistent between different applications on the system.

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
February 2024
December 2023
October 2023
September 2023
June 2023
May 2023
March 2023
January 2023
December 2022
November 2022
June 2022
May 2022
December 2021
April 2021
March 2021
February 2021
December 2020
October 2020
October 2019
August 2019
March 2019
November 2018
August 2018
July 2018
March 2018
February 2018
November 2017
August 2017
June 2017
May 2017
April 2017
January 2017
November 2016
October 2016
September 2016
June 2016
May 2016
January 2016
December 2015
November 2015
October 2015
September 2015
July 2015
October 2014
November 2013
October 2013
August 2013
June 2013
March 2013
February 2013
September 2012
August 2012
July 2012
June 2012
April 2012
February 2012
December 2011
November 2011
October 2011
September 2011
August 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
February 2010
January 2010
December 2009
November 2009
February 2009
December 2008
November 2008
July 2008
June 2008
May 2008
January 2008
December 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
March 2007
2006
2005
2004
2003
2002
2000


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager