Configuration of PTP references

Using PTP references

The following example shows a PTP boundary clock configuration using profile itug8275dot1 with one upstream timeTransmitter and one downstream timeReceiver.

--{ candidate shared default }--[  ]--
# info system sync ptp
    instance 1 {
        default-ds {
            instance-type bc
            instance-enable true
            priority2 128
        }
        port-ds-list 1 {
            admin-state enable
            master-only false
            underlying-transport {
                ethernet-port ethernet-1/6
            }
        }
        port-ds-list 2 {
            admin-state enable
            underlying-transport {
                ethernet-port ethernet-1/21
            }
        }
    }

PTP boundary clock using itug8275dot2 profile

The following example shows a PTP boundary clock configuration using profile itug8275dot2 with one configured peer.

--{ candidate shared default }--[  ]--
# info system sync ptp
    system {
        sync {
            ptp {
                ptp-profile itug8275dot2
                timing-source-net-inst ptp-ni
                instance 1 {
                    default-ds {
                        instance-type bc
                        instance-enable true
                    }
                    port-ds-cfg-ip-list 123 {
                        admin-state enable
                        peer {
                            ip-address 10.1.1.1
                        }
                    }
                }
            }
        }
    }

When one configured peer and one discovered peer exist on the same node, the info from state system sync ptp command displays entries under the port-ds-cfg-ip-list and port-ds-dsc-ip-list contexts, as shown in the following example.

The output in this example has been cropped to show only the most relevant leaves.

--{ candidate shared default }--[  ]--
# info from state system sync ptp
    system {
        sync {
            ptp {
                ptp-profile itug8275dot2
                timing-source-net-inst ptp-ni
                instance 1 {
                    default-ds {
                        instance-type bc
                        instance-enable true
                        clock-identity 0x205E97FFFEAF107C
                        number-ports 2
...
                    parent-ds {
                        grandmaster-identity 0x18C300FFFE4A2C00
                        grandmaster-priority1 128
                        grandmaster-priority2 128
                        parent-port-identity {
                            clock-identity 0x18C300FFFE4A2C00
                            port-number 1
                        }
                        grandmaster-clock-quality {
                            clock-class 6
                            clock-accuracy 33
                            offset-scaled-log-variance 20061
                        }
                        protocol-address {
                            network-protocol udp-ipv4
                            ip {
                                network-instance ptp-ni-toGm
                                ip-address 10.1.1.1
                            }
                        }
                    }
...
                    port-ds-cfg-ip-list 123 {
                        ptp-port-number 1
                        admin-state enable
                        port-state slave
                        best-master true
                        parent-clock true
...
                        clock-identity 0x18C300FFFE4A2C00
                        port-number 1
                        grandmaster-identity 0x18C300FFFE4A2C00
                        grandmaster-priority1 128
                        grandmaster-priority2 128
                        steps-removed 0
                        last-rx-interface ethernet-1/32
                        last-tx-interface ethernet-1/32
                        peer {
                            ip-address 10.1.1.1
                        }
...
                    port-ds-dsc-ip-list 1 {
                        ptp-port-number 2
                        port-state master
                        log-min-delay-req-interval -6
                        log-announce-interval 1
                        log-sync-interval -6
                        major-version-number 2
                        minor-version-number 0
                        peer {
                            network-instance ptp-ni-toSc
                            ip-address 10.4.4.4
                        }
...
                }
            }
        }
    }