Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain...

18
CURATED BY IP SHOWCASE THEATER AT NAB – APRIL 8-11, 2019 Keeping Time with Precision Time Protocol (PTP) Michael Waidson, Application Engineer Tektronix, Inc.

Transcript of Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain...

Page 1: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

C U R A T E D B Y

IP SHOWCASE THEATER AT NAB – APRIL 8-11, 2019

Keeping Time with Precision Time Protocol (PTP)

Michael Waidson, Application Engineer

Tektronix, Inc.

Page 2: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

What time is it?

•What time is it now! • Precision Time Protocol – IEEE 1588 -2008

‒ Sends a Sync message periodic

‒ How many seconds

‒ How many nanoseconds

‒ From the SMPTE Epoch

‒ January 1st midnight, 1970

2

Page 3: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

BMCA Best Master Clock Algorithm

• How to elect a Grandmaster Clock?

• Priority 1 (0-255) lowest number wins set by user

• Clock Class, Clock Accuracy, Clock Variance set by device

• Priority 2 (0-255) set by user

• MAC address of device

3

Page 4: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Hybrid Master Clock & SPG

4

SPG Master Clock SPG Master Clock

Priority 1 - 128 Clock Class 6 Priority 2 - 64

Priority 1 - 128 Clock Class 6

Priority 2 - 96

Network Cloud

GM

Page 5: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Hybrid Master Clock & SPG

5

SPG Master Clock SPG Master Clock

Priority 1 - 128 Clock Class 7 Priority 2 - 64

Priority 1 - 128 Clock Class 6

Priority 2 - 96

Network Cloud

GM

Page 6: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Hybrid Master Clock & SPG

6

SPG Master Clock SPG Master Clock

Priority 1 - 128 Clock Class 6 Priority 2 - 64

Priority 1 - 64 Clock Class 6

Priority 2 - 96

Network Cloud

GM

Page 7: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Message Types

• Announce

• Sync

• Follow-Up

• Delay Request

• Delay Response

• Management

• Signaling

7

224.0.1.129 192.168.1.10 192.168.1.20

Announce Message (320)

Delay_Request (319)

Sync Message (319)

Delay_Response Message (320)

Management Message (320)

Follow_Up Message (320)

Page 8: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Troubleshooting PTP

• Check Domain Value

• Check Grandmaster ID

• Check Message Rates

• Check Communication Mode

8

Page 9: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Ensuring PTP Lock

• Grandmaster ID

• Domain

• Master/Slave Phase Lag should have low value for lock

• Messages Rates ‒ SMPTE 2059

‒ 4 Announce messages per second

‒ 8 Sync, Delay Request, Delay Response

• Steps removed from Master

9

Page 10: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

10

IP Status – Checking Domain

• Check Following

‒Domain Values

‒Data Rates of PTP messages

‒Check source IP & MAC

Page 11: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

BMCA Keeps Toggling ID

• Check Configuration of Boundary Clock

• Check for loop of messages

• Check Messages Rates

• Check Announce Timeout

11

2017 – 12 -06 23:44:00 (UTC)

08:00:11:ff:fe:21:90:2b

2017 – 12 -06 23:44:01 (UTC)

28:99:3a:ff:ff:d3:4f:72

2017 – 12 -06 23:44:02 (UTC)

08:00:11:ff:fe:21:90:2b

Page 12: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Monitoring PTP Graphs

• Check ‒ Phase Lag

‒ M-S Delay

‒ S-M Delay

12

Page 13: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

PTP Network Topology

13

End Device

Backup

1G

1G

Transparent Switch

Boundary Switches

Primary

End Device

10G 10G 10G

10G 10G

1G

Grand Master Passive

End Device

Page 14: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Checking PTP at the Switch

• show ptp

• show ptp brief

• show ptp clock

• show ptp parent

14

Page 15: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Checking PTP Messages at the Switch Port

• watch 1 diff show ptp interface ethernet xx

• sh ptp port interface ethernet 1/x counters

15

Page 16: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

Checking PTP Messages at the Switch Port

• sh ptp port interface ethernet 1/x counters

16

Page 17: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

What time is it?

•What time is it now! • Precision Time Protocol – IEEE 1588 -2008

• SMPTE 2059-1 & 2059-2

• Provides Timing Reference across a Media Network

17

Page 18: Keeping Time with Precision Time Protocol (PTP) · Ensuring PTP Lock •Grandmaster ID •Domain •Master/Slave Phase Lag should have low value for lock •Messages Rates ‒SMPTE

C U R A T E D B Y

IP SHOWCASE THEATER AT NAB – APRIL 8-11, 2019

Thank You

Michael Waidson, Tektronix, Inc.

[email protected]