presentation: insights into trading system dynamics

50
Insights into trading system dynamics Deutsche Börse’s T7 ® March 2018

Upload: truongkhue

Post on 11-Feb-2017

225 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Presentation: Insights into trading system dynamics

Insights into trading system dynamics

Deutsche Börse’s T7®

March 2018

Page 2: Presentation: Insights into trading system dynamics

2 Overview 28 Inside the matching engine

9 Partition-specific gateway 31 Market data

16 Network access – Co-location 2.0 38 What you need to be fast

20 Latency aspects 41 Appendix

Agenda

Deutsche Börse Group 1

Page 3: Presentation: Insights into trading system dynamics

Overview

2

Page 4: Presentation: Insights into trading system dynamics

T7® Technology Roadmap

Deutsche Börse Group 3

This initiative includes

Provision of a portfolio of interfaces meeting the needs of

different user groups

High throughput and low latency of the trading system

Delivery of functionality the market demands with

shortened lead time

Exceptional level of transparency & customer service

Recent developments

Rollout of T7 release 6 on 4 December 2017

Introduction of partition-specific gateways for Eurex during Q1

2018 (further details in this presentation)

Outlook

Introduction of partition-specific gateways for Xetra in April 2018.

T7 Release 6.1 is planned for 18 June 2018, including

Support of short message layout for complex instruments as well

as for standard orders

Support of standard orders via high-frequency sessions

Introduction of Book-or-Cancel (BOC) attribute for quotes

Enhancements to Eurex EnLight, the selective RFQ service

introduced with T7 Release 6.0

Enhancements to the T7 trading interfaces ETI and FIX as well as

to the reference data interface

T7 Release 7.0:

• Optimization of partition-specific gateways outbound processing

• Removal of t_3‘ from all ETI responses

Eurex is evaluating the launch of EOBI for all Eurex options.

Deutsche Börse is pursuing its Technology Roadmap to deliver innovative and superior trading

technology.

For further details about T7 please visit our websites:

www.eurexchange.com/t7 and www.xetra.com/xetra-en/technology/t7

Page 5: Presentation: Insights into trading system dynamics

Deutsche Börse Group 4

Processed transactions and response timesT7 Enhanced Trading Interface – round-trip times

• Deutsche Börse has continuously invested in its trading system and has been able to reduce the processing time of technical transactions significantly.

• Introduction of PS gateway for Eurex in Q1/2018 reduced the median round-trip on Eurex by 15 µs to below 64 µs, while having an all time high of processed transactions.

• Similar reductions of median round-trip latencies are expected when Xetra migrates to PS gateways in April 2018.

Page 6: Presentation: Insights into trading system dynamics

Deutsche Börse Group 5

Overview of T7

T7 consists of partitions. Here, a partition is a failure domain in charge of matching, persisting and producing market data for a subset of products. Each T7 partition is distributed over two rooms in the Equinix data centre.

There are 10 Eurex T7 partitions in charge of futures and options trading available on Eurex. There are 10 active partition-specific (PS) gateways, each serving one partition. Additionally there are 6 low-frequency gateways each allowing access to all partitions and the separate EEX partition.

There are 10 T7 partitions serving the XETR market. Until migration to PS gateways in April, there are 10 high-frequency gateways each serving all XETR partitions.

Separate additional partitions are used for Vienna (XVIE) and Dublin (XDUB) markets.

4 low-frequency gateways are shared between all cash markets (XETR, XDUB, XVIE).

The reference data contains the mapping of products to partition IDs.

With the introduction of partition-specific (PS) gateways there is a one-to-one mapping of active PS gateways to partitions. The default active PS gateways are located on the same side as the active matching engines.

Note that the active half of a partition and its partition-

specific gateway is either on side A (for even partitions) or

on side B (for odd partitions).

Only in case of the failure of a matching engine or a

market data publisher, the active half of the service will

shift to the other room.

Page 7: Presentation: Insights into trading system dynamics

Deutsche Börse Group 6

Middleware, network, hardware and OS overview

T7 uses state-of-the-art infrastructure components

Intel Xeon E5-2667 v3 CPUs (Haswell) on all servers hosting core services (Matching engines, un-netted market data publishers,

high-frequency gateways).

Intel Xeon Gold 6144 CPU (Skylake) for partition-specific gateways.

Intel Xeon E5-2690 CPUs (Sandy Bridge) or E5-2683 v4 (Broadwell) on non-performance critical servers.

The operating system used is Red Hat Linux 6.9 with real-time kernel on all core components.

T7 internal communication between its core components is based on IBM WebSphere MQ Low Latency Messaging using an

Infiniband network in order to deliver the required speed, capacity and stability requirements.

T7 network access

Deutsche Börse offers Trading Participants to connect via 10 GbE cross connects to its T7 platform in the Equinix data centre.

The co-location 2.0 offering uses Cisco 3548x switches. All cables are normalized to give an overall maximum deviation between

any two cross connects of less then +/- 1 m (+/- 5 ns).

Participant facing interface cards on the gateways and market data publishers use Solarflare EnterpriseOnload technology to

bypass the kernel TCP stack.

Page 8: Presentation: Insights into trading system dynamics

Orders/quotes – optimal access

Deutsche Börse Group 7

Daily statistics about private “last mile” performance between the high-frequency gateways and Participant servers as well as best in class numbers (per location and system wide) are provided within the member portal (member.deutsche-boerse.com). We expect that a good daily average TCP/IP round-trip will be less than 5 µs for 10 GbE connections in co-location 2.0.

The network latency can be further examined by comparing the provided RequestTime (t_3n) and SendingTime (t_9) with timestamps taken at the customer installation.

Note that using 10 Mbps connections (built on 1 GbE cross connects) to connect to T7 low-frequency or high-frequency gateways results in an additional latency of about 50 µs (round-trip) compared to the 10 GbE access to high-frequency gateways.

Using 10 GbE cross connects in co-location 2.0 offering

for the access to the high-frequency ETI gateways in the

Equinix facility provides the fastest way for order and

quote management in T7.

The T7 gateways duties include all validations that do not

need the knowledge of the order book or market state.

The static network latency differences between different

high-frequency gateways to matcher links is 2 µs

maximum (deprecated after PS gateway migration).

To achieve lowest possible latency, it is recommended to

use the short order layout if possible - this saves about 8

µs gateway processing time on the way in compared to

“normal” lean orders.

Page 9: Presentation: Insights into trading system dynamics

Deutsche Börse Group 8

Processing inside a partition

In case that during this phase several new orders/quotes transactions arrive at the core matching component the processing

remains unchanged, i.e. no batching takes place.

The generation of market data other than EOBI (by the market data publisher), listener broadcasts and trade confirmations (by

the persistency server) are done on separate servers. Hence the order of the resulting messages from these servers is not

deterministic.

Orders/quotes entered for a specific product are sent by the gateway server to the

respective matching engine (residing in a partition).

The matching priority is assigned when the orders/quotes are read into the matching engine.

The core matching component works as follows: when an order/quote arrives, it is functionally processed (e.g. put in the book or

matched). handover of data to the EOBI Market data publisher handover of all data resulting from the (atomic) processing of the incoming

order/quote to the market data and persistency components in the partition.

Resulting responses and private broadcasts are sent out in the following order: direct response to the order/quote entered (for persistent as well as for non-

persistent orders and quotes) fast execution information for booked orders/quotes (in case of a match)

T7 Partition

t_8

Core matching

Persistency Layer:

Trade/Order Confirmation

Market data publisher

(EOBI)

Market data publisher

(EMDI)

Page 10: Presentation: Insights into trading system dynamics

Deutsche Börse Group 9

Partition-specific gateway

9

Page 11: Presentation: Insights into trading system dynamics

Partition-specific gateway

• Eurex migrated to partition-specific gateways starting 22 January 2018. The migration was finished on 6

March 2018. Since then, partition-specific gateways are the only low latency access to the Eurex market.

• Xetra will migrate to the PS gateway architecture in two steps (see Xetra Circular 143/17)

• Step 1 – Parallel set-up of PS gateways for all cash market partitions

• 9 April 2018: In parallel to the existing HF gateways, PS gateways will be enabled for all Xetra partitions

(50 to 59).

• Step 2 – PS gateway only for all cash market partitions

• 16 April 2018: Access to all Xetra partitions (50 to 59) via high-frequency gateways will be cut off.

• EEX and Xetra Vienna and Dublin will not adopt the PS gateway concept.

Deutsche Börse Group 10

Migration

Page 12: Presentation: Insights into trading system dynamics

Partition-specific gateway

Latency jitter on parallel inbound paths has incentivized multiplicity to reduce latency. This led to higher system load at busy

times and thus created higher, less predictable latencies. The introduction of a single (low-latency) point of entry addresses these

issues.

Increased predictability

Each partition has only one partition-specific (PS) gateway assigned to it. This gateway operates in first-in first-out (FIFO) mode.

Thus the reception sequence of the PS gateway determines the sequence of matching (based on the time-stamp of the first bit of

the frame that completes a ETI message).

co-location 2.0 offers a highly deterministic, predictable and equal network access.

Reduced complexity

There is only one low latency entry point per partition. There is no need to probe multiple gateways to achieve best matching

priority. All partitions are accessible via the low-frequency gateways.

Reduced latency

The PS gateway is tuned for highest throughput and offers a lower base latency than the current high-frequency gateways.

In fact, the median inbound latency from gateway receive time (t_3n) to matching engine in (t_5) has been reduced by 8 µs.

Deutsche Börse Group 11

Motivation

Page 13: Presentation: Insights into trading system dynamics

Partition-specific gateway

The active partition-specific gateway resides on the same side as the active matching engine per default.

There is a network link between side A and B via the distribution layer switches with a one way latency of 50 µs.

This guarantees that all partition-specific gateways are reachable via a single line in case of a failure.

Note that PS gateways are available only for Xetra and Eurex markets, whereas EEX, Xetra Vienna and Xetra Dublin offer access via

low-frequency gateways only.

The network link to LF gateways is around 50 µs slower than the access to PS gateways via 10 Gbit lines.

Deutsche Börse Group 12

Topology

Standby PS 1 Matcher 1

Active PS 2

Active PS 4

Active PS 8

Active PS 6

Matcher 2

C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C CC

Side A Side B

C C C C C C C C C C C C

Customer Room

1

Customer Room

3

Customer Room

2

Customer Room

4

Customer Room

5

Customer Room

6

Customer Room

7

C

Matcher 3

Matcher 4

LF 2

Active PS 10

50µs

LF 1

Matcher 5

Matcher 6

Matcher 7

Matcher 8

Matcher 9

Matcher 10

Matcher (Non PS enabled)

CC

Active PS 1

Standby PS 2

Standby PS 4

Standby PS 8

Active PS 3

Active PS 5

Standby PS 6

Active PS 7

Active PS 9

Standby PS 10

Standby PS 3

Standby PS 5

Standby PS 7

Standby PS 9

50µ

s

50µ

s

LF 4 LF 3

LF 6 LF 5

Page 14: Presentation: Insights into trading system dynamics

Partition-specific gateway

The partition-specific gateway uses the same ETI protocol as the existing ETI gateways (low-frequency and high-frequency).

It offers the same functionality as the high-frequency gateways, but only for a single partition.

Session setup

All high-frequency sessions are eligible to connect to a partition-specific gateway.

A session may only connect to a single gateway at any given point in time.

There is a maximum number of sessions per Participant allowed to login to a single PS gateway at any given point in time.

For Eurex this limit is currently set to 80.

Connection

The connection process follows the three-step logon procedure, with a ConnectionGatewayRequest message to retrieve the

assigned active and standby PS gateway from the connection gateway, followed by a Session Logon at the PS gateway. The

initial Connection Gateway Request message has to contain the target partition ID.

You may send a Session Logon to the standby PS gateway to test network connectivity. Those logons will be rejected with the

appropriate error code (refer to the respective ETI manual for details).

Deutsche Börse Group 13

Implementation

Page 15: Presentation: Insights into trading system dynamics

Partition-specific gateway

When a failure of a partition-specific gateway is detected, all sessions logged in via that gateway will be logged out and their

orders and quotes are deleted.

Subsequently the standby PS gateway will be activated and allow session logins. A connection request should be sent to the

connection gateway. The response will indicate the active PS gateway and the session can then login to this PS gateway.

There will be an activation phase during which no order management via the activated PS gateway will be possible. This is

currently foreseen to be 60 seconds to allow Participants some time to evaluate the situation and re-login.

After the activation phase an ETI ServiceAvailability broadcast will be sent to the connected sessions and order management

service will be available.

Deutsche Börse Group 14

Failover

Active PS

gateway

Standby PS

Gateway

Failed PS

gateway

Standby PS

Gateway

Activated PS

Gateway

Failed PS

gateway

Active PS

Gateway

Failed PS

gateway

Normal

operation

Active

gateway fails

Standby

activated

Failover

completed

< 20 sec 60 sec

Schematic partition-specific gateway failover

Page 16: Presentation: Insights into trading system dynamics

Throttle and session limits

In order to protect the trading system, T7 has several measures in place to ensure that its most vital components are not harmed by a malfunctioning client application. Therefore transaction limits are imposed on T7 sessions.

All ETI sessions (HF and LF) are available with throttle values of 150 messages/sec or 50 messages/sec.

Furthermore LF sessions that cannot enter orders/quotes but can only receive trade and listener broadcasts are available (at a reduced price).

All ETI session types have an assigned disconnect limit of

450 for sessions with a throttle value of 150 messages/sec, i.e. a session will be disconnected in case of more than 450 consecutive rejects due to exceeding the transaction limit (throttle).

150 for sessions with a throttle value of 50 messages/sec, i.e. a session will be disconnected in case of more than 150 consecutive rejects due to exceeding the transaction limit (throttle).

Please note that in case the disaster recover facility is used, all ETI sessions will have a throttle limit of 30 messages per second.

For both limits, all technical transactions are counted using a sliding window.

The number of ETI sessions which can be ordered is limited. Currently, up to 80 sessions can be ordered. If more than 80 sessions are required please get in touch with your Technical Key Account Manager.

There will be a limit on maximum number of sessions per Participant and partition that can connect to a partition-specific gateway concurrently. This limit is currently configured to 80 sessions but subject to review.

Deutsche Börse Group 15

Page 17: Presentation: Insights into trading system dynamics

Network access

Co-location 2.0

16

Page 18: Presentation: Insights into trading system dynamics

Co-location 2.0

Co-location 2.0 is an improved 10GbE connectivity introduced in parallel to the existing 10GbE network (Co-location 1.0).

Reduced complexity

Fewer customer facing switches

Customers may reach any switch from any data-center room

Passive components in customer rooms, i.e. cables and patch panels only

Increased predictability

Reduced latency variance

Hardware refresh of switches (Cisco Nexus 3548x)

Switches operate in cut-through mode, configured to use “warp mode” to minimize latency

Switches exhibit very low switch jitter within the precision of measurement devices (+/- 4 ns), both for ETI and market data

Equidistant cables with a tolerance of +/- 1m verified using an optical time-domain reflectometer (OTDR) and packet round-trip

measurements

Reduced latency

One way latency of 2 µs

Improved monitoring

Tapping and timestamping at network boundary and internally

Note: Co-location 1.0 will be decommissioned by 30 September 2018 (see Eurex Circular 013/18 and Xetra Circular 014/18)

Deutsche Börse Group 17

Overview

Page 19: Presentation: Insights into trading system dynamics

Co-location 2.0

2 switches per gateway room per market (‘distribution layer’, only one market shown)

Eurex: 8 centrally located switches (‘access layer’, 4 per side, A and B)

Xetra: 4 centrally located switches (2 per side, A and B, not shown below)

Customers can connect to any access layer switch from any of the 7 co-located rooms

There is a separate Market Data network with same layout

The network link between ETI side A and B distribution layer switches has a one way latency of ~50µs.

Deutsche Börse Group 18

Network topology

C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C CC C C C C C C

Customer room 1 Customer room 3Customer room 2 Customer room 4 Customer room 5 Customer room 6

C C C C C C C C

Customer room 7

C

Side B

GW B 1 GW B n

50µs one way latency

GW A 1 GW A n

Side A

Page 20: Presentation: Insights into trading system dynamics

We are constantly measuring the latency profile of our co-location infrastructure using

taps and aggregation switches that use hardware assisted timestamping on ingress port.

Extra care has been taken to ensure the best time synchronization between these

timestamping devices. We use a combination of white rabbit and pps achieving a time

synch better than 5 ns.

The latency profiles between the three measurement points is shown below. Latency

between access layer and distribution layer is identical for all access layer switches within

the measurement precision. The spectrum is very tight with a standard deviation below 5

ns.

Note that queues might occur in sharp bursts as all member cross connects are

connected to 4 (Cash Market: 2) access layer switches per side, which are connected to a

single active distribution layer switch via a 10 Gbit line each. There is a single active 10

Gbit line connecting each HF/PS gateway to a distribution layer switch.

Co-location 2.0

Access layer switch latency (t_3a’ - t_3a)

Deutsche Börse Group 19

Latency profile

Access to distribution layer latency (t_3d - t_3a’)

GW 1 GW n

Access

layer

Distribution

layer

t_3d

t_3a’

t_3a

t_3d

Page 21: Presentation: Insights into trading system dynamics

Latency aspects

20

Page 22: Presentation: Insights into trading system dynamics

Inbound message sequencing

Deutsche Börse Group 21

Before PS gateway introduction

Inbound sequencing inside the T7 system takes place

on the network in front of the trading gateways,

in the gateway for messages of all sessions connected

routed to one matching engine,

in the matcher for messages of all sessions.

Inbound ordering is preserved

within the messages of a session routed to one matching

engine (=partition),

between the messages sent from one gateway to one

matching engine (=partition).

Matcher

Gateway N

Gateway 1

Aa B

Session A

Session B

Aa

B

C

Session E E

Session C

CD

Sequencing point

Ba A CDE

S

Sequencer Switch

ED

Core matchingSession D

CED

A Ba

EOBI 2

EOBI 1

timestampS

Page 23: Presentation: Insights into trading system dynamics

PS Gateway

Inbound message sequencing

Deutsche Börse Group 22

After PS gateway introduction

Inbound sequencing inside the T7 system takes place

on the network in front of the PS trading gateway,

in the matcher for messages from PS and LF gateways.

Note that LF gateways have a 85 µs higher median

latency (t_5 – t_3a).

Inbound ordering is preserved

within all messages from one PS gateway

between the messages sent from each LF/PS gateway to

one matching engine (=partition).

Matcher

Session A

Session B

Aa

B

Session E E

Session C

CD

Logical sequencing point for

all high frequency sessions

Ba A CDE

Switch

Core matchingSession D

EOBI 2

EOBI 1

timestamp

Ba A CDE Ba A CDE

Page 24: Presentation: Insights into trading system dynamics

T7 Latency

Deutsche Börse Group 23

CompositionThe diagrams below show the composition of latency for Eurex Futures transactions before (left) and after (right) the migration to PS

gateway. The full circle represents 100 µs.

The latency in the request path has dropped significantly.

More importantly the competitive path was reduced from 22 µs (Network to Matching Engine In) to 2 µs (Network) for PS gateway

transactions, as order is preserved upon reception of message on the PS gateway.

Median latencies before PS gateway migration Median latencies after PS gateway migration

Page 25: Presentation: Insights into trading system dynamics

T7 Latency

Deutsche Börse Group 24

CompositionThe below charts show a comparison of latencies before and after PS gateway migration for high frequency sessions.

The gateway request processing and the paths PS/HF gateway to/from matcher have seen the biggest drop in latency.

The gateway response handling suffered a slight latency increase, especially in the latency tails due to throughput constraints.

Network response and market data include TCP/UDP stack on the server.

Gateway request

(t_3’ – t_3n)

Gateway to matcher

(t_5 – t_3’)

Network request

(t_3n – t_3a)

Matcher pre

(t_7 – t_5)

Matcher processing (response)

(t_6 – t_7)

Gateway response

(t_4 – t_4’)

Network

(t_4a – t_4)

EOBI processing

(t_9 – t_7)

Network EOBI

(t_9a – t_9)

Matcher to gateway

(t_4’ – t_6)

Re

qu

est p

ath

and

m

ark

et d

ata

(E

OB

I)R

esp

on

se

pa

th

Page 26: Presentation: Insights into trading system dynamics

PS gateway --- Motivation revisited

Deutsche Börse Group 25

Microburst dynamics

Microburst dynamics Eurex partition 3 (14 Mar 2018) During micro-bursts, the input into the trading system may be greater than the

throughput capabilities. This in turn causes queuing which results in higher

latencies.

Higher latencies cause risk (i.e. it takes longer to place/pull an order).

T7 provides real-time performance insights by providing up to seven

timestamps with each response and key timestamps with every market data

update.

The chart on the left shows the paths

Co-location 2.0 access layer to t_3(n) to

Gateway request Sending time (t_3’) to

Matching engine in (t_5) to

Start matching (t_7) to

EOBI SendingTime (t_9) [where available] to

Matching engine out (t_6) to

Gateway response received (t_4’) to

ETI SendingTime (t_4).

Typical throughput rates are >1000 / ms at t_3n, ~160 / ms at t_3’ and t_7 and

110 / ms at t_4.

EOBI send times are usually well before the gateway send time of responses.

Note that base latency for requests entered via LF Gateways is 80 µs higher

(~50µs network + 30 µs LF Processing and internal network).

Page 27: Presentation: Insights into trading system dynamics

PS gateway --- Motivation revisited

Latency jitter on parallel inbound paths has incentivized multiplicity to reduce latency.

This led to higher system load at busy times and thus created higher, less predictable latencies.

The introduction of a more deterministic network infrastructure (1), first-in-first-out (FIFO) processing of high-frequency gateways

(2) and the recent migration to PS gateways as a single (low-latency) point of entry led to a sizable reduction of multiplicity.

Below graph shows the number of sent vs. executed IOCs for the Eurex market.

Deutsche Börse Group 26

Multiplicity

1 2 3

Page 28: Presentation: Insights into trading system dynamics

Latency

Deutsche Börse Group 27

Comparison of access types

Market Gateway Type percentile t3a_t3a’ t3a’_t3d t3d_t3n t3a_t3n t3n_t3’ t3’_t5 t4_t4d t4d_t4a’ t4a’_t4a t4_t4a t3a_t4a

Eure

x

PS 50% 0.275 0.654 0.057 0.99 12.41 7.58 1.665 0.679 0.266 2.634 74.41

LF 50% 0.279 54.30 45.07 12.04 0.262 45.426 245.33

Delta LF - PS 50% 0.004 52.60 32.66 4.47 -0.004 42.792 170.92

Inbound Delta 50% 90

Xetr

a

HF 50% 0.28 0.644 0.138 1.06 9.75 2.57 1.476 0.685 0.261 2.423 57.605

LF 50% 0.278 50.20 28.79 20.57 0.261 44.483 231.62

Delta LF - HF 50% -0.002 48.36 19.05 17.99 0 42.06 174.015

Inbound Delta 50% 85

Eure

x

PS 25-75% 0.011 0.01 0.068 0.074 5.701 1.113 0.443 0.01 0.011 0.443 19.704

LF 25-75% 0.009 7.995 27.223 4.375 0.01 3.786 51.26

Xetr

a HF 25-75% 0.009 0.01 0.078 0.078 3.775 1.838 0.154 0.011 0.009 0.201 13.194

LF 25-75% 0.008 3.302 9.009 9.847 0.01 3.468 31.694

The table below gives an overview of current latency figures of the T7 trading system. All times given are in microseconds.

Network timestamps (t[3489][aa’d]) are synchronized using pps and white rabbit. The time synch quality between these

timestamps is thus 5ns. Other T7 timestamps are subject to jitter of up to +/- 50 ns, so that t3d_t3n and t4_t4d have to be read

with a grain of salt.

The latency difference of the inbound path (t_3a to t_5) of LF vs HF/PS Gateways is 85/90 µs respectively.

Please refer to the timestamps glossary at the end of this presentation.

Page 29: Presentation: Insights into trading system dynamics

Inside the matching

engine

28

Page 30: Presentation: Insights into trading system dynamics

T7® topology

Deutsche Börse Group 29

Matching engine:

order book maintenance & execution

creation of direct responses as well as

execution messages for passive

orders/quotes

creation of EOBI order book messages

creation of EOBI order book snapshot

messages

Persistency:

persistent order storage

trade/execution history

transaction history for standard orders

creation of listener broadcast for standard

orders

Market Data (EMDI):

creation of order book delta messages

creation of order book snapshot messages

PTP based synchronization of clocks using hardware support is used for HF and PS gateways, matching engines and market data servers in production

(and also in simulation). Hence timestamps on these servers can be used to analyze one way transport times.

T7 PartitionParticipant Gateway

EMDI

t_8

EOBI

Core matching

ETIt_1

t_2

t_3n t_3’

t_5

t_7t_9

t_8

t_11

t_10

t_6t_4’t_4

t_3

Persistency Layer

Retransmit Requests

Trade/Order

Notifications

Market data

publisher (EMDI)

Market data

publisher (EOBI)

Page 31: Presentation: Insights into trading system dynamics

Orders/quotes – detailed performance data

For the top 15 futures products, daily statistics about the matching engine processing times as well as Eurex Enhanced

Transaction Interface gateway processing times are provided via the ‘Member Section’ on Eurex Exchange’s website. The ETI

round-trip times are calculated based on t_4 – t_3 (gateway SendingTime – gateway application start).

Since introduction of PS gateways reduced multiplicity has resulted in much lower average matching engine processing times

(e.g. FESX dropped from 117 µs to 50 µs). The table below additionally contains latency figures for DAX equities.

All data displayed below refer to 19 March 2018.

Deutsche Börse Group 30

Our transparency

Matching engine

Round-trip times (in µs)

Gateway Round-trip times

(all GWs, t_4 - t_3 in µs)

Gateway Round-trip times

(HF/PS, t_4 - t_3n in µs)

Product Product Average Median

99th

percent Average Median

99th

percent Average Median

99th

percent

EURO STOXX 50® Index Futures FESX 50 26 402 157 69 1280 158 68 1500

STOXX® Europe 50 Index Futures FSTX 29 23 223 131 74 1180 133 60 1750

DAX® Futures FDAX 33 25 174 106 66 640 104 64 750

Mini-DAX® Futures FDXM 31 25 146 92 64 463 87 64 750

MDAX® Futures F2MX 28 24 191 118 73 880 110 62 1250

SMI® Futures FSMI 27 24 106 84 60 324 77 60 344

Euro-Bund Futures FGBL 60 26 498 183 73 1220 194 68 1500

Euro-Bobl Futures FGBM 42 25 315 142 73 1060 140 66 1250

Euro-Schatz Futures FGBS 33 24 267 117 72 800 103 60 1000

Euro-Buxl® Futures FGBX 35 26 189 120 69 760 123 68 1000

Long-Term Euro-BTP Futures FBTP 37 26 182 135 74 740 140 70 1000

Euro-OAT Futures FOAT 36 26 192 120 69 740 122 68 1000

EURO STOXX® Banks Futures FESB 31 24 234 122 64 1060 123 62 1250

VSTOXX® Futures FVS 32 27 174 119 82 620 97 64 1000

STOXX® Europe 600 Index Futures FXXP 29 24 203 101 59 1000 103 60 1250

DAX® Equities 41 31 212 94 78 347 96 80 364

Page 32: Presentation: Insights into trading system dynamics

Market data

31

Page 33: Presentation: Insights into trading system dynamics

Trading system dynamics

Deutsche Börse Group 32

Latency characteristics of EOBI versus ETI

EOBI vs ETI (Eurex Futures) T7 is designed to publish order book updates first on its

public data feed.

The top diagram shows the time difference distribution

between public and private data for Eurex futures (EOBI first

datagram vs ETI responses, t_9-t_4), the graph below shows

the same for Xetra DAX equities.

The data is a production sample from 19 March 2018. The

thin lines represent data from 7 December 2018.

Migration to PS gateways has reduced the median latency of

responses by 6 µs, but EOBI market data is still 25 µs faster

for order book updates and 35 µs faster for executions.

The first EOBI datagram was faster in approximately 99.9

percent of the cases compared to the ETI response and also

the first passive ETI book order notification (not shown).

EOBI vs ETI (Xetra DAX equities)

Page 34: Presentation: Insights into trading system dynamics

Trading system dynamics

Deutsche Börse Group 33

Latency characteristics of EOBI versus EMDI

Latency characteristics of EMDI versus EOBI After the integration of the EOBI publisher into the matching

engine the market data updates provided via EOBI is almost

always faster than EMDI.

The top diagram shows the distribution of t_9 minus t_8, i.e.

EOBI first datagram versus EMDI sending time, the bottom

diagram shows the cumulative distribution.

The graphs show data of EURO STOXX 50® Index Futures

(FESX) for 19 March 2018 (after migration to PS gateways).

EOBI was faster in more than 99.99 percent of the cases

with trades involved and in 99.98 percent of order book

updates without trades.

A very similar latency characteristic applies to Xetra.

Page 35: Presentation: Insights into trading system dynamics

Trading system dynamics

Deutsche Börse Group 34

Latency characteristics of ETI versus EOBI versus EMDI

Outbound latency for FESX trades (08 Mar 2018) This diagram displays the dependency of the median latency

on the complexity of a trade for ETI (t_4-t_7), EMDI (t_8-t_7)

and EOBI (t_9-t_7). Note that for ETI we display the gateway

sending time of the first passive notification and for EOBI the

sending time of the UDP datagram containing the Execution

Summary message.

In about 99.95% of all trades, we disseminate order book

data on EOBI first (even true for larger trades).

ETI response latency has slightly increased since the

migration to PS gateways.

Page 36: Presentation: Insights into trading system dynamics

Market data distribution

Deutsche Börse Group 35

Latency difference of primary and secondary feed

Please note that for products assigned to an even partition, market

data is published first on the A stream and then on the B stream

whereas, for products assigned to an odd partition market data is

published first on the B stream and then on the A stream.

The partition ID / product ID is contained in the UDP datagram

header of the order book incremental messages and can be used

for filtering on UDP datagram level for EMDI / EOBI.

Furthermore, a UDP datagram on the T7 EMDI / EOBI order book

delta or snapshot channel will only contain data of exactly one

product (e.g. EURO STOXX 50® Index Futures).

The median latency difference between the A and the B

incremental feed is about 8.4 µs for EMDI (see top diagram to the

left) and 2.3 µs for EOBI (see bottom diagram to the left).

T7 provides a csv file on a daily basis with the minute-by-minute

network latency (minimum, average, maximum 99 per cent) for the

A and B streams of EMDI for non co-location access points. This

information can help you determine whether your environment or

T7 had an issue causing a market data delay. The file is provided

in the member portal (member.deutsche-boerse.com).

EMDI

EOBI

Page 37: Presentation: Insights into trading system dynamics

Eurex: Market data volume

Deutsche Börse Group 36

Each data point equals the maximum bandwidth produced on

a 1 millisecond scale by the incremental B stream in Mbps.

The provided data shows one data point per minute for

06 Dec 2017.

Eurex market data peak data volume can be a significantly

higher on high volume trading days. Hence Participants that

want to receive data for all Eurex Exchange’s products or US

only products with less than 1 ms queuing delays need to

use a connection with a bandwidth of more than 1,000 Mbps

(all products) or 300 Mbps (for U.S. only products),

respectively.

Enhanced Order Book Interface market data is currently only

available to Trading Participants using 10 GbE connections.

Trading Participant are advised to take two cross connects

(one for each market data stream) in co-location to receive

market data.

Latency sensitive Trading Participants are advised to use two

10 GbE connections (one for each market data stream) in co-

location to receive market data.

Eurex EMDI

Eurex EOBI

Page 38: Presentation: Insights into trading system dynamics

Xetra: Market data volume

Deutsche Börse Group 37

Each data point equals the maximum bandwidth produced on a 1 millisecond scale by the incremental B stream in Mbps.

The provided data shows one data point per minute for06 Dec 2017.

Xetra Market Data peak data volume can be a significantly higher on high volume trading days. Hence Participants that want to receive data with less than 1 ms queuing delays need to use a connection with a bandwidth of more than 500 Mbps (EMDI, All products) or 300 Mbps (EMDI, DAX®

equities only).

Enhanced Order Book Interface market data is currently only available to Trading Participants using 10 GbE connections. Trading Participant are advised to take two cross connects (one for each market data stream) in co-location to receive market data.

Latency sensitive Trading Participants are advised to use two 10 GbE connections (one for each market data stream) in co-location to receive market data.

Xetra EOBI

Xetra EMDI

Page 39: Presentation: Insights into trading system dynamics

What you need to be fast

38

Page 40: Presentation: Insights into trading system dynamics

What you need to be fast…

A few recommendations to achieve the lowest possible latency:

Use the Equinix co-location facility to be close to Deutsche Börse T7.

Use state-of-the-art switches (if any) and only have at most one hop between the exchange network and your server.

Use good network interface cards and TCP/IP acceleration, e.g. a Linux kernel-by-pass library.

Use at least two 10 GbE (cross-) connections in co-location 2.0 for EMDI or EOBI market data and two 10 GbE (cross-)

connections for T7 ETI.

Use PS gateways and make sure you use the cross connect on the same side as the gateway you are connecting to (compare

time-to-live values in the IP header in the responses from both sides).

Measure and analyze your own timestamps (e.g. the reaction time as recommended on the next slide).

Use state of the art time synchronization, e.g. by the exchange provided time service to synch your clocks with ours via PTP.

Trade notifications need to be processed to create safety (only the trade notifications contain legally binding information about a

trade!). Therefore, we recommend to use either a low-frequency ETI session or a FIX trade capture drop copy to confirm the fast

execution information provided by the execution reports via high-frequency sessions.

Try to use the EOBI Execution Summary for fast trading decisions and position keeping (passive executions).

For a consistent order book, all incremental updates following the Execution Summary should always be processed.

Deutsche Börse Group 39

Page 41: Presentation: Insights into trading system dynamics

T7 PartitionParticipant PS Gateway

EMDI

t_8

Market data publisher

(EOBI)EOBI

Core matching

ETI

t_1

t_2

t_3n t_3’

t_5

t_7t_9

t_8

t_11

t_10

t_6t_4’t_4

t_3

Market data publisher

(EMDI)

t_3a t_3a’ t_3d

t_4a t_4a’ t_4d

t_9a

t_8a

t_9a’

t_9d

t_8d

t_8a’

Access

LayerDistribution

Layer

What you need to be fast…

Deutsche Börse Group 40

Participant reaction time measurement

Measure the time between market data reception

(t_10/t_11) and your reaction (t_1), take note of

aggressor in timestamps (t_3n) of executions.

Page 42: Presentation: Insights into trading system dynamics

Appendix

41

Page 43: Presentation: Insights into trading system dynamics

Enhanced Order Book Interface

Exceptions to fast trading decisions based on the Execution Summary

The Execution Summary at the beginning of an EOBI packet can be used for fast trading decisions (and

passive position keeping) in the majority of cases. However there are certain scenarios where this may lead to

a wrong perception of the order book on client side. This includes cases where:

The Request-In timestamp is not set:

This is for example in case of more than one market order being triggered by an incoming order/quote. In such

a scenario, there will be one Execution Summary sent for each market order. The Execution Summary for the

first market order will be at the beginning of the packet but the Execution Summaries for the other market

orders will follow in the same or in the next packet(s) before CompletionIndicator is set to 1.

The Implied flag is set:

In case of synthetic matching, the LastQty shows the total matched quantity that result from all involved

instruments‘ order books. At the same time only the instrument of the aggressing order is given. In order to

have correct order books, Participants have to process all incremental updates following the Execution

Summary. There is a potential shortcut in this case which is explained on the next two slides.

In equity markets the execution of hidden quantity of Iceberg orders is not reflected in the hiddenQty field of

the EOBI Execution summary.

Deutsche Börse Group 42

Page 44: Presentation: Insights into trading system dynamics

Enhanced Order Book Interface

Fast trading decision in case of synthetic matching (derivatives markets only)

In case of synthetic matching (TradeCondition in the Execution Summary set to ‚Implied Trade‘), Participants

only interested in the front month instrument will also have to read all details that follow the Execution

Summary.

However, we see that not each combination of instruments is traded with the same frequency (even during a

roll when, on average, more synthetic matches take place). In our benchmark futures, we see that there are

three highly liquid and three less liquid instruments. The front month, the second maturity and the spread

between the two are defined as the liquid instruments, the third maturity and combinations thereof are

considered as less liquid.

A possible shortcut which can speed up the decision-making process is available to Participants that base their

trading decisions primarily on the Execution Summary. These Participants could potentially save processing

time by considering the order books of the three most liquid instruments only.

Deutsche Börse Group 43

Page 45: Presentation: Insights into trading system dynamics

Enhanced Order Book Interface

Deutsche Börse Group 44

Fast trading decision in case of synthetic matching (cont.)

If the instrument in the Execution Summary belongs to one of the three liquid instruments and the TradeCondition field is set to ‚Implied Trade‘, Participants can apply the following logic to infer the order books for these liquid instruments:

Check price (‚LastPx‘), total quantity (‚LastQty‘) and side (‚AggressorSide‘) in the Execution Summary.

Delete orders in the incoming instrument‘s order book which have a better price than ‚LastPx‘.

Check whether a combination of orders in the two other liquid books yields a better price than ‚LastPx‘. If true, delete the orders contributing to these combinations from the respective order books.

Calculate the remaining quantity (‚LastQty‘ minus already deleted quantities). If possible, remove this quantity from the incoming instrument‘s order book at ‚LastPx‘. If there is not enough quantity available then try to delete the still remaining quantity from the synthetic order book combination at ‚LastPx‘.

In case the total deleted quantities from the incoming instrument‘s order book and the combined synthetic order book do not add up to the ‚LastQty‘ it can be concluded that the order book is not correct afterwards.

Our data show that in over 99.7% of the trade cases, it is possible to build a correct order book by using this shortcut.

Please note that for a consistent order book, Participants should always process all incremental updates following the Execution Summary.

Page 46: Presentation: Insights into trading system dynamics

T7® timestamps

Deutsche Börse Group 45

T7 PartitionParticipant Gateway

EMDI

t_8

Market data publisher

(EOBI)EOBI

Core matching

ETI

t_1

t_2

t_3n t_3’

t_5

t_7t_9

t_8

t_11

t_10

t_6t_4’t_4

t_3

Market data publisher

(EMDI)

t_3a t_3a’ t_3d

t_4a t_4a’ t_4d

t_9a

t_8a

t_9a’

t_9d

t_8d

t_8a’

Access

LayerDistribution

Layer

Network time-stamps shown in light blue

Page 47: Presentation: Insights into trading system dynamics

Description of timestamps

t_1,t_2: can be taken by a Participant (e.g. via a network capture) when a request/ response is read from/written to the socket.

t_4: taken by the ETI gateway when a response/ notification is written to the socket on the Participant´s side of the gateway;

contained in (private) ETI response/ notification.

t_3n: taken by the ETI gateway when the first bit of a request arrives on the HF gateway NIC; contained in (private) ETI response

for transactions sent via HF gateways. Consecutive messages via the same session might be assigned to the same t_3n in rare

cases.

t_3: taken by the ETI gateway application when a request is read from the socket on the Participant´s side of the gateway;

contained in (private) ETI response for transactions sent via LF gateways.

t_3’: taken by the ETI gateway right before a request is sent towards the matching engine; contained in (private) ETI response.

t_4’: taken by the ETI gateway when a response/ notification is received by the ETI gateway from the matching engine; contained

in (private) ETI response/ notification.

t_5, t_6: taken by the matching engine when a request/response is read/written; contained in (private) ETI response.

t_7: time at which the matching engine maintains the order book

t_8: time taken by EMDI publisher just before the first respective UDP datagram is written to the UDP socket.

t_9: time taken by EOBI publisher just before the first respective UDP datagram is written to the UDP socket.

t_10, t_11: can be taken by a Participant (e.g. via a network capture) when a UDP datagram is read from the UDP socket.

t_?a, t_?a’, t_?d: taken by network capture devices in the access and distribution layers

Deutsche Börse Group 46

Definition

Page 48: Presentation: Insights into trading system dynamics

T7 timestamp reference

The timestamps t_3,…,t_9 are available via the following fields:

t_3, t_3n: Tag 5979 (“RequestTime”) in the T7 ETI Responsein the T7 EMDI Depth Incremental message, in case a trade is reportedin the T7 EOBI Execution Summary message

t_3’: Tag 7764 (“RequestOut”) in the T7 ETI Response (from the matching engine)

t_4’: Tag 7765 (“ResponseIn”) in the T7 ETI Response (from the matching engine)Tag 25043 (“NotificationIn”) in the T7 ETI Notification (from the matching engine)

t_4: Tag 52 (“SendingTime”) in the T7 ETI Response and Notification

t_5: Tag 21002 (“TrdRegTSTimeIn“) in the T7 ETI Response (from the matching engine)Tag 21002 (“TrdRegTSTimeIn”) in the T7 EOBI Order Add, Order Modify, Order Modify Same Priority and

Order Delete messagesTag 28820 (“AggressorTimestamp“) in the T7 EMDI Depth Incremental message, in case a trade is reported

in the T7 EOBI Execution Summary message

t_6: Tag 21003 (“TrdRegTSTimeOut“) in the T7 ETI Response and Notification (from the matching engine)

t_7: Tag 17 (“ExecID“) in the T7 ETI Response (from the matching engine)in the T7 EOBI Execution Summary message

Tag 273 (“MDEntryTime”) in the T7 EMDI Depth Incremental messageTag 21008 (“TrdRegTSTimePriority”) in the T7 EOBI Order Add and Order Modify messagesTag 60 (“TransactTime”) in the T7 EOBI Order Modify Same Priority and Order Delete messages

t_8: no Tag (“SendingTime”) in the T7 EMDI UDP packet header

t_9: Tag 60 (“TransactTime”) in the T7 EOBI packet header

(t_8-t_5): no Tag (“PerformanceIndicator“) in the T7 EMDI UDP packet header of the T7 EMDI Depth Incremental stream

Notes on timestamps:All timestamps provided are 8 byte integers (in nanoseconds after Unix epoch).The PerformanceIndicator is a 4 byte integer (in nanoseconds).The Network timestamps (t_?a, t_?a’, and t_?d are not available in any field.

Deutsche Börse Group 47

Page 49: Presentation: Insights into trading system dynamics

Thank you for your attention

Contact

Sebastian Neusüß, Andreas Lohr & Manfred Sand

E-Mail [email protected]

For updates refer to http://www.eurexchange.com/exchange-en/technology/high-frequency_trading

http://www.xetra.com/xetra-en/technology/t7/publications

Page 50: Presentation: Insights into trading system dynamics

49

© Deutsche Börse 2018Deutsche Börse AG (DBAG), Clearstream Banking AG (Clearstream), Eurex Frankfurt AG, Eurex Clearing AG (Eurex Clearing) as well as Eurex Bonds GmbH (Eurex Bonds) and Eurex Repo GmbH (Eurex Repo) are corporate entities and are registered under German law. Eurex Zürich AG is a corporate entity and is registered under Swiss law. Clearstream Banking S.A. is a corporate entity and is registered under Luxembourg law. U.S. Exchange Holdings, Inc. is a corporate entity and is registered under U.S. American law. Deutsche Boerse Asia Holding Pte. Ltd., Eurex Clearing Asia Pte. Ltd. and Eurex Exchange Asia Pte. Ltd are corporate entities and are registered under Singapore law. Eurex Frankfurt AG (Eurex) is the administrating and operating institution of Eurex Deutschland. Eurex Deutschland and Eurex Zürich AG are in the following referred to as the “Eurex Exchanges”. All intellectual property, proprietary and other rights and interests in this publication and the subject matter hereof (other than certain trademarks and service marks listed below) are owned by DBAG and its affiliates and subsidiaries including, without limitation, all patent, registered design, copyright, trademark and service mark rights. While reasonable care has been taken in the preparation of this publication to provide details that are accurate and not misleading at the time of publication DBAG, Clearstream, Eurex, Eurex Clearing, Eurex Bonds, Eurex Repo as well as the Eurex Exchanges and their respective servants and agents (a) do not make any representations or warranties regarding the information contained herein, whether express or implied, including without limitation any implied warranty of merchantability or fitness for a particular purpose or any warranty with respect to the accuracy, correctness, quality, completeness or timeliness of such information, and (b) shall not be responsible or liable for any third party’s use of any information contained herein under any circumstances, including, without limitation, in connection with actual trading or otherwise or for any errors or omissions contained in this publication. This publication is published for information purposes only and shall not constitute investment advice respectively does not constitute an offer, solicitation or recommendation to acquire or dispose of any investment or to engage in any other transaction. This publication is not intended for solicitation purposes but only for use as general information. All descriptions, examples and calculations contained in this publication are for illustrative purposes only.Eurex and Eurex Clearing offer services directly to members of the Eurex exchanges respectively to clearing members of Eurex Clearing. Those who desire to trade any products available on the Eurex market or who desire to offer and sell any such products to others or who desire to possess a clearing license of Eurex Clearing in order to participate in the clearing process provided by Eurex Clearing, should consider legal and regulatory requirements of those jurisdictions relevant to them, as well as the risks associated with such products, before doing so.Eurex derivatives are currently not available for offer, sale or trading in the United States or by United States persons (other than EURO STOXX 50® Index Futures, EURO STOXX 50® ex Financials Index Futures, EURO STOXX® Select Dividend 30 Index Futures, EURO STOXX® Index Futures, EURO STOXX® Large/Mid/Small Index Futures, STOXX® Europe 50 Index Futures, STOXX® Europe 600 Index Futures, STOXX® Europe 600 Banks/Industrial Goods & Services/Insurance/Media/Travel & Leisure/Utilities Futures, STOXX® Europe Large/Mid/Small 200 Index Futures, Dow Jones Global Titans 50 IndexSM Futures (EUR & USD), DAX®/Mini-DAX®/MDAX®/TecDAX® Futures, SMIM® Futures, SLI Swiss Leader Index® Futures, MSCI World (FMWO, FMWP, FMWN)/Europe (FMEU, FMEP)/ Europe Value/Europe Growth/Emerging Markets (FMEM, FMEF, FMEN)/Emerging Markets Latin America/Emerging Markets EMEA/Emerging Markets Asia/China Free/India/Japan/Malaysia/South Africa/Thailand/AC Asia Pacific ex Japan Index Futures, TA-25 Index Futures, Daily Futures on TAIEX Futures, VSTOXX® Futures, Gold and Silver Futures as well as Eurex FX, property and interest rate derivatives).

Trademarks and Service MarksBuxl®, DAX®, DivDAX®, eb.rexx®, Eurex®, Eurex Bonds®, Eurex Repo®, Eurex Strategy WizardSM, Euro GC Pooling®, FDAX®, FWB®, GC Pooling®,,GCPI®, MDAX®, ODAX®, SDAX®, TecDAX®, USD GC Pooling®, VDAX®, VDAX-NEW® and Xetra® are registered trademarks of DBAG. All MSCI indexes are service marks and the exclusive property of MSCI Barra. ATX®, ATX® five, CECE® and RDX® are registered trademarks of Vienna Stock Exchange AG. IPD® UK Annual All Property Index is a registered trademark of Investment Property Databank Ltd. IPD and has been licensed for the use by Eurex for derivatives. SLI®, SMI® and SMIM® are registered trademarks of SIX Swiss Exchange AG. The STOXX® indexes, the data included therein and the trademarks used in the index names are the intellectual property of STOXX Limited and/or its licensors Eurex derivatives based on the STOXX® indexes are in no way sponsored, endorsed, sold or promoted by STOXX and its licensors and neither STOXX nor its licensors shall have any liability with respect thereto. Dow Jones is a service mark of Dow Jones & Company, Inc. All derivatives based on these indexes are not sponsored, endorsed, sold or promoted by Dow Jones & Company, Inc. Dow Jones & Company, Inc. does not make any representation regarding the advisability of trading or of investing in such products. Bloomberg Commodity IndexSM and any related sub-indexes are service marks of Bloomberg L.P. All references to London Gold and Silver Fixing prices are used with the permission of The London Gold Market Fixing Limited as wellas The London Silver Market Fixing Limited, which for the avoidance of doubt has no involvement with and accepts no responsibility whatsoever for the underlying product to which the Fixing prices may be referenced. PCS® and Property Claim Services® are registered trademarks of ISO Services, Inc. Korea Exchange, KRX, KOSPI and KOSPI 200 are registered trademarks of Korea Exchange Inc. Taiwan Futures Exchange and TAIFEX are registered trademarks of Taiwan Futures Exchange Corporation. Taiwan Stock Exchange, TWSE andTAIEX are the registered trademarks of Taiwan Stock Exchange Corporation. BSE and SENSEX are trademarks/service marks of Bombay Stock Exchange (BSE) and all rights accruing from the same, statutory or otherwise, wholly vest with BSE. Any violation of the above would constitute an offence under the laws of India and international treaties governing the same. The names of other companies and third party products may be trademarks or service marks of their respective owners.