Re: [chrony-dev] IPv6 link-local support

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Thu, Jun 25, 2020 at 01:10:35PM +0000, Scott, Nathan wrote:
> Hi folks,
> 
> I work on the AWS Time Sync (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html) service. We create a link-local IPv4 address (169.254.169.123) that can be used as a source server for NTP daemons on EC2 instances. The future is IPv6, so we’re evaluating all of the clients and our current options. We will be using IPv6 link-local addresses.

As a side question, have you considered providing a virtual PTP clock
for guest synchronization, which could be used by chrony using the PHC
refclock driver? The Linux kernel supports this on KVM and Hyper-V.

> What is the work required to Chrony to support IPv6 link-local so customers can continue using Chrony instead of switching to an alternative? What are the next steps?

It depends on what exactly needs to be supported. A limited server
support is easy. A full server and client support is difficult as
there are many places that work with IP address alone (e.g. address
filter, client monitor, cmdmon protocol, chronyc) and which would need
to include the interface index or interface name. There are also
portability issues. ntpd has (a partial) support for link-local
addresses because it was designed to have a separate socket for each
interface. That is an anti-goal of chrony.

If it was acceptable to limit the support to a single interface, there
could be a bindacqiface directive to bind the client sockets to a
specific interface. Would this be sufficient for your users?

If more interfaces need to be supported, there could possibly be a
source specific option to bind the socket, but this alone would not
prevent a conflict between two sources that have the same address (in
different networks).

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/