Download - Ieee 1588 ptp

Transcript
Page 1: Ieee 1588 ptp

IEEE Standard 1588Precision Timing Protocol - PTP

許勝倉@NCU 2008/March/08

Page 2: Ieee 1588 ptp

Why Timing Sync

• Time Division Multiplexing - TDM

• Circuit Emulation over Packet - CESoP

• Time Division Multiplexing - TDMoIP

• Wireless Backhaul

• Building Integrated Timing Supplies - BITS

Page 3: Ieee 1588 ptp

Clock Source to Sync

• Global Positioning System- GPS

• Network Time Protocol - NTP

• Adaptive clock Recovery - ACR

• Precision Timing Protocol - PTP

• Building Integrated Timing Supplies - BITS

• Clock from Loop

• Atom Clock Source

Page 4: Ieee 1588 ptp

Timing Requirements

• 8.4us over 900 seconds

• 18us over 24 hours

T1 Standard, Maximum time variation

T1 Standard, Maximum time Interval error at sync

• 1us over 2000 seconds

• 2us over 100000 secondsMobile station frequency accuracy

• 50 Parts Per Billion (ppb)

Page 5: Ieee 1588 ptp

Timing protocols problems

• ACR - Expensive oscillate source

• GPS - Weak signal indoor

• NTP - Not meet 50ppb

• BITS - Price too high

• Loop Clock - Can’t over Packet Network

• Atom Clock Source - Price very high

Page 6: Ieee 1588 ptp

PTP Master

BITS/SSU

PSTN

Internet

PSTN Switch PTP Slave

ADSL

Ethernet

T1/E1

Access Node

DS1

Synchronizing TDM

Page 7: Ieee 1588 ptp

How PTP work

Preamble SFD SRC MAC DST MAC Length/Type Data CRC

10101011 IP Header UDP Header PTP Message

Page 8: Ieee 1588 ptp

Clock NetworkMaster

SlaveMaster Master Master

Salve Salve Salve

Salve

SalveMaster Master Master

Ordinary Clock (Best Master)

Boundary Clock (Ethernet Switch)

Clock Source

Ordinary ClockSalve

Boundary Clock (Ethernet Switch)

Page 9: Ieee 1588 ptp

PTP Messages Type

Message ValueSYNC 0

DELAY REQUEST 1

FOLLOW UP 2

DELAY RESPONSE 3

MANAGEMENT 4

Reserved 5-255

Page 10: Ieee 1588 ptp

PTP in Software

• PTP define in IANA Multicast address 224.0.1.129-224.0.1.132

• Use UDP port 319 for Event message

• Use UDP port 320 for general message

• Packet size less than 300 bytes

• Header length less than 40 bytes

Page 11: Ieee 1588 ptp

SRC IP 224.0.1.1290x0800

PTP vsersionOrigin TimeStemp in

SecondsOrigin TimeStemp in

Nano Seconds

Port 319 PTP protocolSYNC

UDP

Message Type

PTP vsersionOrigin TimeStemp in

SecondsOrigin TimeStemp in

Nano Seconds

Port 320 PTP protocolFOLLOW UP

Message Type

PTP vsersionOrigin TimeStemp in

SecondsOrigin TimeStemp in

Nano Seconds

Port 319 PTP protocolDELAY REQUEST

Message Type

Estimated Master Variance

Estimated Master Drift

PTP vsersionDelay Receipt in

secondsDelay Receipt in Nano Seconds

Port 320 PTP protocolDELAY RESPONSE

Message Type

Page 12: Ieee 1588 ptp

Sync

Follow-up

Delay request

Delay response

Sync T1

Follow-up

T1

T4

T3

T2

Sync

Follow-up

Master SlaveNetwork

Page 13: Ieee 1588 ptp

Sync

Follow-up

Delay request

Delay response

T1

T4

T3

T2

Master Slave

Offset

Delay

Delay

Offset

Page 14: Ieee 1588 ptp

Delay and Jitter

PTP

UDP

IP

Driver

MAC

PHY

Network

PTP

UDP

IP

Driver

MAC

PHY

Master Slave

Delay andJitter

ProtocolStack

Application

Driver

MII

Delay and Jitter Network

Page 15: Ieee 1588 ptp

Precision time stamping in hardware

Microprocessor Ethernet MAC Ethernet PHY

Time Stamping Unit

(TSU)

LAN/WAN

Hardware for Time Stamp

Page 16: Ieee 1588 ptp

Open Source PTPDhttp://ptpd.sf.net

Page 17: Ieee 1588 ptp

Conclusion

• PTP require addition hardware to reduce processor and software’s delay and jitter for more precision clock.

• PTP is cheaper than Atom clock source.

• PTP could meet 50 ppb requirement of TDM network.

• With PTP, TDM could over Packet Switch Network without sync clock loss.

Page 18: Ieee 1588 ptp

Reference

• IEEE Standard 1588-2002 Version 2

• IEEE 1588 Precision Timing Protocol, Jeremy Bennington, Symmetricom

• High Precision clock Synchronization according to IEEE 1588 Implementation and Performance Issue, Hans Weibel, Zurich Univ.

• PTPD for Linux http://ptpd.sf.net

• IEEE Standard 802.1AS Draft


Top Related