Re: [chrony-dev] SW/HW timestamping on Linux |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] SW/HW timestamping on Linux
- From: Denny Page <dennypage@xxxxxx>
- Date: Mon, 21 Nov 2016 17:26:46 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a; t=1479778008; bh=zVBGIskl8S42UHWMw0vQHKF26Pyozlh3zy4AX2mliGY=; h=From:Content-type:MIME-version:Subject:Date:To:Message-id; b=esdneAmvb2FXzej5j4heINVU4Z5YVEJNhtPsl/8mcc4LSZQhLDbqWakz5HK2phKyS wJGrryiRUl86S1uxBGVRD85/yTbTsepb9Pkk2DGhifgii1q8coZPX3hPi3Z1T4af/y DQGM6c7deY2T/8VMN7ENrT/zxCQIAYyEvpyVYqf9p5m6135L4WzRyQ1qfJAStrMlhh uqdOGRtNi4Odaz9RH6Vb/thP2hxVIsUhhchNGw1JqNIaBXDP6LAMStJBzO3BVMWJY8 ddZOM7ifsTtOChX9D18WMUDwDnSZGe3KXzrznMYIwkO91rIDpVlz0vjGG3dHOCeO4U r7DNaq1rD1U3Q==
I checked this. It appears to be completely symmetrical at the switch level. For both the 1Gb and 100Mb ports, the delta I see for NTP packets is a very consistent 912ns on a 1Gb mirror port. This is exactly as expected:
preamble: 56 bits
SFD: 8 bits
MAC dest: 48 bits
MAC src: 48 bits
Length: 16 bits
IP/UDP/NTP: 608 bits
FCS: 32 bits
IPG: 96 bits
Total of 912 bits, which equates to 912ns on a 1Gb connection.
NB: The packet cannot be forwarded until it is received, so the preamble and IPG count when looking at packet to packet deltas when mirroring.
I’ll have to look at the driver/kernel next. It may just be an inherent offset due to software timestamping. I may hard code a correction for the hardware timestamps in chrony for testing.
Denny
> On Nov 21, 2016, at 10:50, Denny Page <dennypage@xxxxxx> wrote:
>
> I am going to set up a span port to capture the packets on both interfaces which may give an indication.
--
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.