andreas lohr and sebastian neusüß...innovation and further growth: without them, deutsche börse...

31
Understanding an ultra-fast market through ultra-accurate time synchronization Andreas Lohr and Sebastian Neusüß STAC Summit | 6 June 2019 | New York

Upload: others

Post on 28-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Understanding an ultra-fast market through ultra-accurate

time synchronization

Andreas Lohr and Sebastian Neusüß

STAC Summit | 6 June 2019 | New York

Page 2: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Problem Statement

• 500+ capture ports

• 60+ capture devices

• 4 data center modules

• PTP +/- 60ns jitter in our

infrastructure at best

• Serialization time of order entry

message = 120ns

• Goal of sub-10ns precision

• Distances too long for PPS over

coax cables

Deutsche Börse Group 1

How to capture and timestamp all customer cross-connects in co-location?

Network Capture

Participants

PS GW 1

PS GW 3

PS GW 5

PS GW 7

PS GW 9

T7Access Network (Order Entry)

Passive tap

ME 1

ME 3

ME 5

ME 7

ME 9

Page 3: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

What is White Rabbit?

• White Rabbit is a fully deterministic Ethernet-based network for data transfer and time synchronization

• Initially developed at CERN

• Provides sub-nanosecond accuracy andpicoseconds precision of synchronization

• Tried and tested

• PTP over Synchronous Ethernet

• White Rabbit is the High Accuracy profile of thefuture standard IEEE1588-20XX

• Commercially available(except the Hello Kitty model)

Issue for us:

No native White Rabbit support in NICs and switches

Solution:

We use White Rabbit to distribute 1PPS

Deutsche Börse Group 2

Page 4: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

White Rabbit deployed hardware

Deutsche Börse Group 3

Timestamping devices synchronized by 1PPS over White Rabbit

Capture DevicesWhite Rabbit PPS Distribution Devices

Page 5: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Time Synchronization

Deutsche Börse Group 4

PTP Example

t_3a t_3n

Page 6: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Time Synchronization

Deutsche Börse Group 5

White Rabbit Example

t_3a t_3d

Page 7: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

PTP / White Rabbit

Deutsche Börse Group 6

50ns

0.5ns

Parent Offset

Metawatch Sync Error

PTP

White Rabbit

Page 8: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

White Rabbit Services for our Trading Customers

Deutsche Börse Group 7

Value 42.96ps

Mean -25.07ps

Min -48.34ps

Max 16.14ps

St Dev 20.54ps

Launched two WR based services

1. High-Precision Timestamp (HPT) File (more in a moment)

2. High Precision Time Service (connect to our WR network)

Page 9: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

White Rabbit Synchronized Timestamps

Deutsche Börse Group 8

side a a b b

market eurex xetra eurex xetra

count 54007 53982 53989 53982

mean 945.4 945.2 947.3 947.5

std 1 1.2 1.1 1.1

min 942 941 944 944

5% 944 943 946 946

10% 944 944 946 946

25% 945 944 947 947

50% 945 945 947 947

75% 946 946 948 948

95% 947 947 949 949

99% 948 948 950 950

max 949 949 951 951

range 7 8 7 7

t_3at_1

Page 10: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

I will be right after the break

Deutsche Börse Group 9

Page 11: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Deutsche Börse Group 10

> 260 order entry lines individually captured (> 500 capture ports)

Identical set-up regardless of participant room location and assigned access switch

Only one side of one Market (Eurex) is shown for simplicity

Network Design

Order Entry and Market Data Networks separated

Order Entry Market Data

Page 12: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Timestamps provided in T7 API (in real time) in dark blue (t_3n: taken by network card, other: application level)

Network timestamps taken using taps and timestamping switches (Metamako)

Timestamps possibly taken by participants shown in gray

Network Designs

Deutsche Börse Group 11

Timestamps

Access networkParticipant

Gateway

Matching engine

EOBI

Core matching

t_3n

t_9

t_4

t_4’

t_5t_6

t_7

T7®

Request response

t_1

t_2

t_11t_9d

t_4a t_4d

t_9a

t_4a’

t_3a t_3a’ t_3d

665 ns*271 ns*

MarketData (EOBI)

902 ns*

Am = 5 m

A = 5 m A’ = 5 m D = 3 m

t_9a’

A’m = 3 m Dm = 3 m

912 ns*

912 ns*

*latencies are mid tap to mid tap

on first bit

Page 13: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Why we need nanosecond precision and accuracy

Deutsche Börse Group 12

Interarrival time (ns)

Ob

se

rva

tio

ns /

ns

Interarrival time at network entry (t_3a)

Interarrival time at t_3a

arbitrarily small

Best precision and

accuracy needed

Page 14: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Why we need nanosecond precision and accuracy

Deutsche Börse Group 13

Access layer switch latency (ns)

Ob

se

rva

tio

ns /

ns

Measuring switch jitter

Order entry switch jitter

+/-5 ns*

Best precision and

accuracy needed

*5th to 95th percentile: 9 ns

Page 15: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Why we need nanosecond precision and accuracy

Deutsche Börse Group 14

Access layer switch latency (ns)

Ob

se

rva

tio

ns / 5

ns

Measuring switch queuing

Nanobursts lead to

queuing depending on

number of packets and

packet size.

Page 16: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Why we need nanosecond precision and accuracy

Deutsche Börse Group 15

Interarrival time at t_3a/t_3a’

Ove

rta

kin

g P

rob

ab

ility

Switch determinism

Overtaking probability

drops to zero above 5 ns

interarrival time

0%

10%

20%

30%

40%

50%

60%

0 1 2 3 4 5 6 7 8 9 10

t_3a to t_3a'

t_3a' to t_3d

Page 17: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Why we need nanosecond precision and accuracy

Deutsche Börse Group 16

Interarrival time (ns)

Ob

se

rva

tio

ns /

ns

Interarrival time at network entry (t_3a) compared to gateway entry (t_3n)

Interarrival time at t_3a

arbitrarily small

Interarrival time at t_3n at least serialization time of preceding packet (> 100 ns)

Network card resolution 8 ns

t_3a for precise inter arrival time

Page 18: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

High Precision Timestamp File

Provides network timestamps to trading participants- Order Entry timestamps at network entry point t_3a

- Market Data timestamps at common network measurement point t_9d

Takes time synchronization and queuing effects out of the equation

Allows more precise judgement on competition ("How far behind am I ?”)

Allows back testing with highest timestamp quality

Is available as ‘executions only’ for all products and

‘all market data updates’ for futures and equities.

Deutsche Börse Group 17

Page 19: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

High Precision Timestamp File

Deutsche Börse Group 18

Reaction times of trading participants

* Confidence Interval: 5th to 95th percentile

Access networkParticipant

Gateway

Matching engine

EOBI

Core matching

t_3n

t_9

T7®

Request

t_1

t_11

t_9d

MarketData (EOBI)t_9a

902

+/- 6 ns*

912

+/- 2 ns*

?

t_3a

912

+/- 2 ns*

Page 20: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Reaction time (ns)

Deutsche Börse Group 19

Ob

se

rva

tio

ns / 1

00

ns

*Distribution of t_3n – t_9d – median (t_3n – t_3a) shownMedian network transport latency (~2736 ns)

High Precision Timestamp File

FESX => FDAX Reaction time based on T7® times (t_9d to t_3n)*

Page 21: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Deutsche Börse Group 20

Reaction time (ns)

*Distribution of (t_3n – t_9d) – median (t_3n – t_3a) shown

High Precision Timestamp File

FESX => FDAX Reaction time based on T7® times (t_9d to t_3n)* (close up)

Ob

se

rva

tio

ns /

ns

Median network transport latency (~2736 ns)

Page 22: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Deutsche Börse Group 21

High Precision Timestamp File

FESX => FDAX Reaction time based on network times (t_9d to t_3a)

Fastest reaction median ~ 2775 ns (39 ns net)

Gray distribution shows

correction using

median(t_3n-t_3a)

Reaction time (ns)

Ob

se

rva

tio

ns / n

s

Median network transport latency (~2736 ns)

Page 23: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Reaction time (ns)

Deutsche Börse Group 22

High Precision Timestamp File

FESX => FDAX Reaction time – now compared to half a year ago

Fastest reaction median Jan 2019: ~ 2795 ns (59 ns)*

Gray distribution shows

data from January 2019

Fastest reaction median ~ 2775 ns (39 ns net)

Ob

se

rva

tio

ns / n

s

Median network transport latency (~2736 ns)

Page 24: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

High Precision Timestamp File

Deutsche Börse Group 23

Reaction times of trading participants

* Confidence Interval: 5th to 95th percentile

Access networkParticipant

Gateway

Matching engine

EOBI

Core matching

t_3n

t_9

T7®

Request

t_1

t_11

t_9d

MarketData (EOBI)t_9a

902

+/- 6 ns*

912

+/- 2 ns*

t_3a

912

+/- 2 ns*

~ 39

+/- 8 ns*

Page 25: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

I will be right after the break

Deutsche Börse Group 24

Page 26: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

What could possibly go wrong?

Deutsche Börse Group 25

https://commons.wikimedia.org/wiki/File:Hair_pulling_stress.jpg by stuartpilbrow, licensed under cc-by-sa-2.0

Page 27: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

What could possibly go wrong

Deutsche Börse Group 26

Tap to timestamp cable length

Access networkParticipant

Gateway

Matching engine

EOBI

Core matching

t_3n

t_9

t_4

t_4’

t_5t_6

t_7

T7®

Request response

t_1

t_2

t_11t_9d

t_4a t_4d

t_9a

t_4a’

t_3a t_3a’ t_3d

665 ns*271 ns*

MarketData (EOBI)

902 ns*

Am = 5 m

A = 5 m A’ = 5 m D = 3 m

t_9a’

A’m = 3 m Dm = 3 m

912 ns*

912 ns*

*latencies are mid tap to mid tap, but

measurements (e.g. t_9d, t_3a) include tap to timestamping cable length

Page 28: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Exhibit 1

Deutsche Börse Group 27

Page 29: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Exhibit 2

Deutsche Börse Group 28

Mean

140 ps

-4.018 ns

-4.221 ns

Page 30: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

Thank you for your attention.

Contact

Sebastian Neusüß

Andreas Lohr

E-mail [email protected]

Phone +49-(0) 69-2 11-1 86 86

Page 31: Andreas Lohr and Sebastian Neusüß...innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations

DisclaimerDeutsche Börse AG opens up international capital markets for its customers. Its product and service portfolio covers the entire process chain – from pre-IPO services and the admission of

securities, through securities and derivatives trading through the settlement of transactions and the provision of market information to the development and operation of electronic trading,

clearing and settlement systems. With its process-oriented business model, Deutsche Börse increases the efficiency of capital markets. Committed employees are the key factor for

innovation and further growth: without them, Deutsche Börse Group would not have developed into one of the most modern exchange organisations in the world. More than 5,000

employees work for the Group – a dynamic, motivated and international team.

6 June 2019