9
Precise measurement of physical link delay 802.1as, 200907 IEEE 802 plenary Lu Huang ([email protected])

Precise measurement of physical link delay

Embed Size (px)

DESCRIPTION

Precise measurement of physical link delay. 802.1as, 200907 IEEE 802 plenary Lu Huang ([email protected]). Agenda. Synchronization Requirement PTP & its Limitation Precise Measurement of Physical Link Delay. Synchronization Requirement. 3G/TD-SCDMA Access Networks. NODEB. - PowerPoint PPT Presentation

Citation preview

Page 1: Precise measurement of  physical link delay

Precise measurement of physical link delay

802.1as, 200907 IEEE 802 plenary

Lu Huang ([email protected])

Page 2: Precise measurement of  physical link delay

Synchronization Requirement

PTP & its Limitation

Precise Measurement of Physical Link

Delay

Agenda

Page 3: Precise measurement of  physical link delay

Synchronization Requirement

• 3G/TD-SCDMA Access Networks

• Sync Requirement in 3G/TD-SCDMA- Base stations need frequency sync: +/- 0.05ppm, and phase sync: +/- 3us

- For base stations, reference clock is distributed via PSN, need physical synchronization support

(e.g. Sync Ethernet) for frequency sync or packet-based synchronization (e.g. 1588v2) for time/p

hase sync.

• Time sync between NodeB and Reference clock: +/- 1.5us

• Sync Requirement in PSN- Considering RNC and NodeB will introduce time offset, PSN need more precise time synchroniza

tion: +/- 1us

RNC

PSN

NODEB

MS

NODEB

Reference clock

Reference Reference ClockClock

△T3 △T2 △T1

Suggestion:∣△T1 <∣ 200ns∣△T3 <∣ 300ns∣△T2 <∣ 1000ns

PSNPSN

Page 4: Precise measurement of  physical link delay

Synchronization Requirement

PTP & its Limitation

Precise Measurement of Physical Link

Delay

Agenda

Page 5: Precise measurement of  physical link delay

PTP Solution & its Limitation• PTP can make the time

synchronization accuracy to the

grade of sub-microsecond, but

there is a very important

assumption: the time delay from

master to slave is equal to that

from slave to master

Offset =[ (t2-t1) - (t4-t3)]/2Error = |delay_ms - delay_sm|/2

• Mechanisms of avoiding the delay asymmetry introduced by inner

process of devices- Physical level timestamps

- Boundary clock

- Transparent clock

• PTP can’t eliminate delay asymmetry of physical links- Ethernet ports are usually full-duplex, which means upstream and downstream packets

go through different physical links, such as fibers

- The transport delay of optical fiber is 5us per 1km, so 100 meters length difference will

introduce 250ns error

t1

t2

t4

t3

Follow_Up

Delay_Req

Delay_Resp

Master Slave

t2

t1t2

t1t2 t3

t1t2 t3 t4

Timestamp known by

slavedelay_ms

delay_sm

Assume: Delay_ms=Delay_sm

t2 - t1 = Delay_ms + Offsett4 - t3 = Delay_sm - Offset

Page 6: Precise measurement of  physical link delay

Synchronization Requirement

PTP & its Limitation

Precise Measurement of Physical Link Delay

Agenda

Page 7: Precise measurement of  physical link delay

Precise Measurement of Physical Link Delay

• Mechanism- When a PTP port is becoming active (up), its RX and TX line are respectively set to be

half-duplex. Then PTP is used to measure the RX and TX line delay respectively.

Because in half-duplex mode the upstream and downstream packets go through the

same physical line, we can get the precise delay of RX and TX line. After that, the PTP

port become active and is set to be full-duplex.

Device(PTP master)

Port

Device(PTP slave)

PortTX

TX RX

RX

Measure delay_ms by PTP

Measure delay_sm by PTP

Page 8: Precise measurement of  physical link delay

Precise Measurement of Physical Link Delay

• Processing Flow- When the PTP port become active, its RX and TX line delay are measured in half-duple

x mode.

- The ratio (m) of delay_ms to delay_sm is saved for the following PTP calculation. ( m =

delay_ms/delay_sm )

- Then the PTP port is set to full-duplex mode and work normally.

• Correction for PTP- As shown in slide 6, the corrected equation is

t1

t2

t4

t3

Follow_Up

Delay_Req

Delay_Resp

Master Slave

t2

t1t2

t1t2 t3

t1t2 t3 t4

Timestamp known by

slavedelay_ms

delay_sm

Delay_ms/Delay_sm=m

t2 - t1 = Delay_ms + Offset

t4 - t3 = Delay_sm - Offset

Offset = [(t2-t1)+m(t3-t4)]/2m

Delay_ms = [m(t2-t1)+m(t3-t4)]/(m+1)

Delay_sm = [(t2-t1)+(t4-t3)]/(m+1)

Page 9: Precise measurement of  physical link delay

Thank you

Q&A