<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techdoer Times &#187; Latency</title>
	<atom:link href="http://techdoertimes.com/tag/latency/feed" rel="self" type="application/rss+xml" />
	<link>http://techdoertimes.com</link>
	<description></description>
	<lastBuildDate>Sun, 11 Dec 2011 22:20:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Uncovering Time in the Financial Markets</title>
		<link>http://techdoertimes.com/technology/uncovering-time-in-the-financial-markets</link>
		<comments>http://techdoertimes.com/technology/uncovering-time-in-the-financial-markets#comments</comments>
		<pubDate>Sun, 09 Mar 2008 03:47:38 +0000</pubDate>
		<dc:creator>Sergio Bogazzi</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Financial markets]]></category>
		<category><![CDATA[HPC]]></category>
		<category><![CDATA[Latency]]></category>
		<category><![CDATA[Messaging]]></category>
		<category><![CDATA[Throughput]]></category>

		<guid isPermaLink="false">http://www.techdoer.com/?p=72</guid>
		<description><![CDATA[In this era of low-latency, high-performance electronic and algorithmic trading, vendors, regulators and business strategist continue to misinform and sometimes disinform industry participants with references to time. Vendors, for example, can selectively manipulate their marketing campaigns to suggest dubious sub-millisecond advantages over competitor technologies. Regulators, who continue their ambitious drive to innovate for the twenty-first [...]]]></description>
			<content:encoded><![CDATA[<p>In this era of low-latency, high-performance electronic and algorithmic trading, vendors, regulators and business strategist continue to misinform and sometimes disinform industry participants with references to time. Vendors, for <a href="/?p=67">example</a>, can selectively manipulate their marketing campaigns to suggest dubious sub-millisecond advantages over competitor technologies. Regulators, who continue their ambitious drive to innovate for the twenty-first century industry changes, may get a bit ahead of themselves when not providing the appropriate clock synchronization context in quoting their temporal constraints. Investment banks and brokerage firms continue to preach the <a href="http://www.wallstreetandtech.com/resourcecenters/low-latency/showArticle.jhtml?articleID=199702208">million dollar advantages</a> of millisecond improvements in their trade lifecycle.</p>
<p>The widespread <a href="/?p=60">industry shifts</a> in the financial markets have created an unprecedented and collective awareness and sensitivity to small intervals of time. The fact is that despite driving both regulatory and strategic policies, the quoted measure of these intervals remains another piece of misinformation and sometimes disinformation that misleads and confuses industry stakeholders.</p>
<p>In this three part series, I’ll <a href="/?p=71">first</a> show examples of time’s importance from a financial market regulatory and strategic perspective.  <a href="/?p=76">Second</a> I&#8217;ll show exactly how and why this time is misinterpreted.  <a href="/?p=77">Finally</a> i&#8217;ll talk about how clock synchronization techniques can be used to better rationalize the measure of time across system boundaries.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdoertimes.com/technology/uncovering-time-in-the-financial-markets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“5 microseconds”…You Said What?</title>
		<link>http://techdoertimes.com/technology/5-microsecondsyou-said-what</link>
		<comments>http://techdoertimes.com/technology/5-microsecondsyou-said-what#comments</comments>
		<pubDate>Tue, 05 Feb 2008 15:41:05 +0000</pubDate>
		<dc:creator>Sergio Bogazzi</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Financial markets]]></category>
		<category><![CDATA[Latency]]></category>
		<category><![CDATA[Messaging]]></category>

		<guid isPermaLink="false">http://www.techdoer.com/?p=67</guid>
		<description><![CDATA[Measuring message latency, especially for the data volumes and latency thresholds expected by Wall Street is tricky business these days, as we&#8217;ve previously covered. Even trickier is finding clarity in the midst of confusing and too many times inaccurate media coverage on the topic as shown in a recent article, from the Securities Industry News. [...]]]></description>
			<content:encoded><![CDATA[<p>Measuring message latency, especially for the data volumes and latency thresholds expected by Wall Street is tricky business these days, as we&#8217;ve<br />
<a href="/?p=39">previously</a> covered.</p>
<p>Even trickier is finding clarity in the midst of  confusing and too many times inaccurate media coverage on the topic as  shown in a <a href="http://www.securitiesindustry.com/news/21982-1.html?ET=securitiesindustry_news:e702:55391a:&amp;st=email">recent article,</a> from the Securities Industry News.  I&#8217;m specifically referring to a low-latency monitoring solution vendor, who states that today&#8217;s algo trading engines require end-to-end network latencies of &#8220;<em>less than 5 microseconds  with no packet loss</em>&#8220;.</p>
<p>In 2008, a colocated trading engine, which minimizes <a href="/?p=50">propagation delay</a>, can expect end-to-end latency on the order of a couple of milliseconds at best.  End-to-end, in this context, typically refers to time an algo issues a buy/sell order to the the time a receiving system acknowledges and executes that order.</p>
<p>Can the latency between these two point really be 5 microseconds?   Highly unlikely.  There are many <a href="/?p=72">reasons </a>for this, which will be covered over time.  For now i&#8217;ll mention that off-the-shelf <a href="/?p=77">clock synchronization</a> solutions, a prerequisite to measuring message latency across system boundaries, just can&#8217;t support an accuracy of 5 microseconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdoertimes.com/technology/5-microsecondsyou-said-what/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing for Performance on Wall Street – The Need For Speed</title>
		<link>http://techdoertimes.com/technology/designing-for-performance-on-wall-street-the-need-for-speed</link>
		<comments>http://techdoertimes.com/technology/designing-for-performance-on-wall-street-the-need-for-speed#comments</comments>
		<pubDate>Tue, 29 Jan 2008 04:42:05 +0000</pubDate>
		<dc:creator>Sergio Bogazzi</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Financial markets]]></category>
		<category><![CDATA[HPC]]></category>
		<category><![CDATA[Latency]]></category>
		<category><![CDATA[Messaging]]></category>
		<category><![CDATA[Throughput]]></category>

		<guid isPermaLink="false">http://www.techdoer.com/?p=64</guid>
		<description><![CDATA[Collapsing Time While the impact has already been enormous, history will show how the shift from floor-based specialist trading to electronic trading changed the way investors, specialists, investment banks, brokers, exchanges and other industry participants make their money. Wall Street as a whole is now firmly entrenched in this new electronic trading frontier and the [...]]]></description>
			<content:encoded><![CDATA[<h2>Collapsing Time</h2>
<p>While the impact has already been enormous, history will show how the shift from floor-based specialist trading to electronic trading changed the way investors, specialists, investment banks, brokers, exchanges and other industry participants make their money.  Wall Street as a whole is now firmly entrenched in this new electronic trading frontier and the barriers to entry have shifted from the human imperfections of floor based traders or specialists, to the high-speed, low latency capabilities of profit seeking electronic algorithms.</p>
<p>Low latency in the scope of electronic trading refers to the utilization of high-performance technology that collapses the time between price discovery (i.e. 100 shares of IBM are now available at $100.00) and the execution of orders (i.e. buy or sell) at the newly discovered price.  Electronic trading has created a world where the lifecycle of price discovery to trade execution is on the order of single-digit milliseconds.</p>
<h2>Time is Money</h2>
<p>Previously, I talked about the <a href="/?p=61">bandwidth problem</a>.  Inability to handle the required bandwidth utilizations of modern market data feeds will certainly cause significant delays in this millisecond-sensitive trade lifecycle, resulting in lost profits.  However, the single most important need that has resulted from the unanimous shift to electronic trading is the need for speed, where speed refers to the ability to &#8220;see&#8221; stock prices as quickly as they appear in the electronic marketplace and similarly the ability to immediately trade on that price before competitors do</p>
<p>Some of the low-latency design strategies or techniques exhibit the elegant characteristic of solving the <a href="/?p=61">bandwidth problem</a> as well as the need for speed.  For example, colocating your electronic trading algorithm in the same facility as an exchange&#8217;s matching engines (i.e. the systems that execute the buy/sell orders) will not only save your firm the wide-area network infrastructure required to feed market data to your trading algorithm, but will also minimize the <a href="/?p=50">propagation delays</a> between market data sources and execution venues.  Incredibly, some of these solutions, such as FAST compression, can theoretically address the <a href="/?p=61">bandwidth problem</a>, the need for speed, and the <a href="/?p=68">storage dilemma</a>.</p>
<h2>Low-Latency Approaches</h2>
<p>How does Wall Street solve the need for speed?  Here are just some of the approaches used to minimize stock trading related delays:</p>
<h3>Chip Level Multiprocessors (CMP)</h3>
<p>When Intel’s microprocessors started melting because of excessive heat, the multi-core chip industry became mainstream.  Smaller multiple cores on a single chip could now permit multi-threaded code to achieve true parallelism while collapsing the time it takes to complete processing tasks.  Multi-core chips from Intel and AMD have a strong presence in the capital markets and can achieve remarkable performance as shown in <a href="http://www.spec.org/cpu2006/results/cpu2006.html">SPEC benchmarks</a>.</p>
<p>An emerging challenge on Wall Street is to deploy microprocessor architectures capable of scaling to the enormous processing required by risk-modeling and algorithmic-trading solutions.  If one-core architectures encountered space and heat limitations which eventually lead to the introduction of multi-core architectures, what new limitations will emerge?  The shared message bus found with existing multi-core processors is one such limitation as the number of cores multiply.  Vendors, such as <a href="http://www.tilera.com/">Tilera</a> are innovating around these limitations and you can expect more to follow.  Furthermore, <a href="http://rebelscience.blogspot.com/2008/03/nightmare-on-core-street.html">evidence is building</a> to support the notion that multi-core microprocessor architectures, and the threading model behind them are inherently flawed.  Multi-core CPUs may provide near term flexibility for designers and engineers looking to tap more processing power from a single machine.  Long term however, they may be doing more harm then good.</p>
<h3>Concurrency</h3>
<p>With multiple cores now in place, the software and hardware community are steadily catching up.  For example, older versions of Microsoft&#8217;s Network Driver Interface Specification (NDIS) would limit protocol processing to a single CPU.  NDIS 6.0 introduced a new feature called Receive Side Scaling (RSS) which enables message processing from the NIC to be distributed across the multiple cores on the host server.</p>
<p>As Herb Sutter explains in his <a href="http://www.gotw.ca/publications/concurrency-ddj.htm">paper</a> &#8220;The Free Lunch is Over: A Fundamental turn Towards Concurrency in Software&#8221;, software applications will increasingly need to be concurrent if they want to exploit CPU throughput gains.  The problem is that concurrency remains a challenge from an education and training perspective as described in David A. Patterson <a href="http://portal.acm.org/citation.cfm?id=1118178.1118212">paper</a>.  Conceptually concurrency can drive the need for speed.  The practice of this approach remains a challenging one.<br />
<a name="colocation"></a></p>
<h3>Colocation</h3>
<p>Colocation is a fascinating approach towards achieving low-latency, mainly because it reconfigures physical proximity between application stacks instead of relying on a sophisticated technology approach.  We&#8217;ve already <a href="/?p=61">shown </a>how it can minimize the bandwidth requirements for a firm&#8217;s algorithmic trading platforms, but its biggest accomplishment is to minimize the distance between electronic trading platforms and the systems that execute the trades.  Organizations such as <a href="http://www.radianz.com/public/home.asp">BT Radianz</a> have armed their high-performance datacenters with the fastest, highest throughput technology on the planet.  When coupled with colocated hosting services, these data centers provide the the lowest latency money can buy while opening up new opportunities to translate this value throughout the application stack starting at the NIC card and moving on up.</p>
<p>The Exchanges themselves, are also using colocation services as a way to attract customers and introduce new sources of revenue.  For example, International Securities Exchange ISE, offers colocation services while <a href="http://www.automatedtrader.net/algo-trading-news-1009.xhtm">promising</a> 200 microsecond service levels.</p>
<h3>Hardware Accelerators</h3>
<h4>Field Programmable Gate Arrays</h4>
<p>The name says it all &#8211; an integrated circuit that can be customized for a specific solution domain.   Specialized coprocessors have existed for years, handling floating point calculations, video processing and other processing intensive tasks.  FPGA builds on this by offering design tools allow programmers to customize the behavior of the FPGA&#8217;s integrated circuit, usually through a high-level programming language which is then &#8220;compiled&#8221; into the board itself. An example of how FPGA boards are being deployed on wall street includes replacing software feed handlers, the components that read, transform and route market data feeds, with their FPGA equivalents.  This approach results in higher throughput and lower latency because message processing is handled by the customized FPGA board, instead of the host CPU/OS, saving the precious cycles that would have been required for moving messages up the protocol stack and interrupting the kernel.  ACTIV Fiancial, a leading vendor of a feed handling solution <a href="http://www.wallstreetandtech.com/blog/archives/2007/04/activ_financial.html">claims that</a> the introduction of FPGA accelerators to their feed processing platform reduced the feed processing latency by a factor of ten while allowing them to reduce the servers required to process some US market data feeds from 12 servers, in the software based feed processing approach, to just one server in the FPGA accelerated approach.  <a href="http://www.celoxica.com/">Celoxica</a> is another firm specializing in FPGA solutions for Wall Street&#8217;s electronic trading.  Celoxica&#8217;s hardware accelerated trading solution promises microsecond latency between host NIC and user application with support for throughput rates reaching 7 million messages per second.</p>
<h4>TCP Offload Engine</h4>
<p>The idea with TCP Offload Engines (TOE) is for the host operating system to offload processing of TCP messages to hardware located on the network interface card itself, thus decreasing CPU utilization while increasing outbound throughput.  Windows 2003 Server includes the <a href="http://www.microsoft.com/windowsserver2003/evaluation/news/bulletins/ws03net.mspx">Chimney Offload</a> architecture which defines the hooks required for OEM and 3rd party hardware vendors to implement layer 1, 2, 3 and 4 of the OSI protocol stack in the NIC itself, before passing the message to the host operating system&#8217;s protocol handlers.  Similar examples of offload technology include TCP Segmentation Offload (TSO) or Generic Segmentation Offload (GSO) where the NIC handles the segmenting of large blocks of data into packets.</p>
<h4>Network Processing Offload</h4>
<p><em>Coming Soon</em></p>
<h4>Kernal Bypass</h4>
<p><em>Coming soon</em></p>
<h4>High-Performance Interconnections (I/O)</h4>
<h4>Infiniband</h4>
<p>From the Infiniband Trade Association <a href="http://www.infinibandta.org/">website</a>:</p>
<blockquote><p><em>In 1999, two competing input/output (I/O) standards called Future I/O   (developed by Compaq, IBM and Hewlett-Packard) and Next Generation I/O   (developed by Intel, Microsoft and Sun) merged into a unified I/O standard   called InfiniBand. InfiniBand is an industry-standard specification that   defines an input/output architecture used to interconnect servers,   communications infrastructure equipment, storage and embedded systems.   InfiniBand is a true fabric architecture that leverages switched,   point-to-point channels with data transfers up to 120 gigabits per second,   both in chassis backplane applications as well as through external copper   and optical fiber connections.</em></p></blockquote>
<p>Infiniband technologies also exhibit the characteristic of solving multiple problems facing Wall Street today including bandwidth, latency, efficiency, reliability and data integrity.  Visit the <a href="http://www.voltaire.com/Solutions/Financial_Services">Voltaire</a> website for a vendor specific look into the performance benefits of Infiniband on Wall Street.</p>
<p>Please check back in second quarter 2008 when <em>The Techdoer Times</em> presents a detailed look into the many existing and future applications of Infiniband technology.</p>
<h4>Remote Direct Memory Access</h4>
<p>RDMA is a zero-copy protocol specification for transferring data between memory modules of separate computers without involving either source or target operating sytem or CPU, resulting in low-latency and high-throughput computing.</p>
<h4>Fibre Channel</h4>
<h4>Gigabit Ethernet (GbE) &amp; 10 Gigabit Ethernet (10GbE)</h4>
<h4>AMD HyperTransport (Chip-level)</h4>
<h4>Intel Common System Interface (Chip-level)</h4>
<h4>Ethernet Virtual Private Line (EVPL) and Ethernet Virtual Connection (EVC)</h4>
<h3>Faster Compression</h3>
<p>As we mentioned in the <a href="/?p=61">bandwidth problem</a>, some firms are relying on innovations in compression as a way to minimize escalating bandwidth costs.  <a href="http://www.fixprotocol.org/fast">FAST</a> is an example of this but there&#8217;s more.  In our previous <a href="/?p=39">postings</a> on measuring the latency in messaging systems we explained how the different components of latency react to variations in packet size or transmission rates.  Herein lies the potential latency improvements resulting from the adoption of FAST.  FAST can potentially minimize <a href="/?p=40">packetization</a> and <a href="/?p=52">serialization</a> delays.  It is true that the process of compressing messages requires additional CPU cycles and therefore adds to the application delay, however, depending on the nature of the solution, this additional delay may be offset by the savings that result from serializing significantly smaller sized packets onto the wire, potentially <a href="http://www.fixprotocol.org/documents/2191/POC%20Results_Phase1a_20050901.pdf">80%</a> smaller.  FAST can be incredibly effective at bandwidth reduction and can potentially reduce end-to-end latency as well.</p>
<h3>Messaging</h3>
<p><a href="/?p=86">Messaging technology</a> has evolved greatly to the point where requirements for speed and reliability are no longer in conflict.  Publish/Subscribe messaging paradigms can be supported with different levels of service quality, ensuring that latency-sensitive subscribers can forgo message recovery for the sake of speed, while data-completeness sensitive subscribers can rely on extremely fast message recovery built on top of layer 3 protocol and routing technologies such as UDP and Multicast.   These real-time messaging technologies also ensure robustness and scalability across a number of downstream subscribers.  Cases where slow subscribers begin to &#8220;scream&#8221; for message retransmission (aka. &#8216;crying-baby&#8217;) can be handled individually and gracefully by the messaging layer, ensuring uninterrupted service to other subscribers.  Messaging technology vendors include:</p>
<ul>
<li><a href="http://www.29west.com/">29West</a></li>
<li><a href="http://www.tervela.com/">Tervela</a></li>
<li><a href="www.rti.com">RTI</a></li>
<li><a href="http://www.tibco.com/">TIBCO</a></li>
<li><a href="www.ibm.com">IBM</a></li>
</ul>
<h4>Multicast Routing</h4>
<p>As mentioned in the bandwidth problem, multicast routing technologies can potentially reduce latency in addition to bandwidth utilization. The latency play results from the fact that multicast packets are rejected or accepted at the Network Interface Card (NIC) level, and not the more CPU expensive kernel level.</p>
<h3>Data Grids/Compute Grids</h3>
<p>With the industry&#8217;s reliance on the timely evaluation of strategic trading and risk models comes the need to access and crunch large amounts of data efficiently.  This reliance has spawned innovations in the form of data and compute grids which offer highly-resilient, scalable distributed processing infrastructure on demand for compute intensive as well as data intensive environments.  Data grids, in particular, offer a high-performance, highly-resilient middle-tier data layer that sits on top of storage technologies and other information sources but offers ubiquitous data access to enterprise business processes.  Key vendors or technologies in this space include the following:</p>
<li>Gigaspaces</li>
<li>Gemstone</li>
<li>Tangosol</li>
<li>Intersystems</li>
<li>Memcache</li>
<li>DataSynapse</li>
<li>Terracotta</li>
<h3>Collapsing Distributed Processing</h3>
<p>Yet another approach to decreasing the overall end-to-end latency of messaging systems is to collapse the ends, which also minimizes the <a href="/?p=50">propagation</a> delays.  The closer each distributed processing node is to being within the same process of dependent nodes, the better the overall performance.  The rise of Direct Market Access (DMA) approaches where firms connect directly to the exchanges and other providers of market data, instead of third party vendors of the data is an example of this.  DMA alone spawned a new  market data distribution industry with the net result being end-to-end latency for market data measuring in the low milliseconds, which for a while remained faster than the same data distributed by vendors such as Reuters and Bloomberg.</p>
<p>Thus far we&#8217;ve shown how firms in the capital markets are confronting their bandwidth problem and need for speed.  The third category of challenges is the <a href="/?p=68">Storage Dilemma</a> facing these firms.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdoertimes.com/technology/designing-for-performance-on-wall-street-the-need-for-speed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing for Performance on Wall Street – The Bandwidth Problem</title>
		<link>http://techdoertimes.com/technology/designing-for-performance-on-wall-street-the-bandwidth-problem</link>
		<comments>http://techdoertimes.com/technology/designing-for-performance-on-wall-street-the-bandwidth-problem#comments</comments>
		<pubDate>Sat, 12 Jan 2008 07:12:20 +0000</pubDate>
		<dc:creator>Sergio Bogazzi</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Financial markets]]></category>
		<category><![CDATA[Latency]]></category>
		<category><![CDATA[Throughput]]></category>

		<guid isPermaLink="false">http://www.techdoer.com/?p=61</guid>
		<description><![CDATA[Exploding Message Rates Previously, we introduced the industry changes driving the technology performance problems on Wall Street. The first of these problems is growing bandwidth utilization resulting from the exploding message rates in market data feeds. Take for example the industry options feed, OPRA. Since 2001, the peak message rate for OPRA rose from 7000 [...]]]></description>
			<content:encoded><![CDATA[<h2>Exploding Message Rates</h2>
<p><a href="/?p=60">Previously</a>, we introduced the industry changes driving the technology performance problems on Wall Street.  The first of these problems is growing bandwidth utilization resulting from the exploding message rates in market data feeds.  Take for example the industry options feed, OPRA.  Since 2001, the peak message rate for OPRA rose from 7000 messages per second (mps) to well over 300,000 mps in 2007.   2008 projections are racing towards the 700,000 mps mark.  With message sizes averaging 120 bytes,  network infrastructure, consuming OPRA, is pushed to support peak bit rates of 672 million bits per second (Mbps).</p>
<h2>Footprint Minimizing Approaches</h2>
<p>As expected, these message rates have forced network engineers, system administrators, and software engineers to come up with innovative solutions.   The result is that Wall Street today relies heavily on multicast routing as a bandwidth minimizing technology and is looking to FAST, Conflation, Colocation and other approaches towards minimizing bandwidth utilization.</p>
<h3>Multicast Routing</h3>
<p>Multicast is a routing paradigm supported by modern routers that minimizes bandwidth utilization by allowing one or more systems to publish a single stream of packets to one or more receivers.  Multicast-enabled routers achieve their efficiency by ensuring there is only one packet copy on the network branches they control if an only if there are subscribers on that branch.  Additionally, in cases where there are subscribers, all non-subscribing nodes can reject the multicast packets at the Network Interface Controller (NIC) level, avoiding costly CPU time and benefiting the <a href="/?p=64">need for speed</a>.  For example, if a network branch has two multicast-group subscribers, the network&#8217;s router(s) will route a single copy of the stream&#8217;s packets to both subscribers.</p>
<p>For multicast routing to work, two things must exist, an addressing scheme that permits communicating to multiple receivers as well as a subscription mechanism, permitting multiple subscribers to joint a multicast-group.</p>
<h3>FAST Compression</h3>
<p><a href="http://www.fixprotocol.org/fast">FIX Adapted for STreaming</a>, or FAST, is a highly-efficient way of compressing market data quote and trade messages that focuses on maximizing the compression ratio and minimizing the compression <a href="/wordpress/?p=39">latency</a>.  Early <a href="http://www.fixprotocol.org/documents/2191/POC%20Results_Phase1a_20050901.pdf">proof-of-concept</a><a href="http://www.fixprotocol.org/documents/2191/POC%20Results_Phase1a_20050901.pdf">s</a> resulted in compression ratios around 80%, shrinking some trade messages from their original 241 bytes to a compressed size of 29 bytes.  FAST compression has the added benefit of compressing faster when data volumes rise.</p>
<h3>Conflation</h3>
<p>Conflation refers to a pub/sub mechanism which allows for throttled and/or finer event-based subscriptions to real time market data streams.   Typically, subscribing to market data directly from the source of the data (i.e. exchanges), versus the vendors (i.e. bloomberg), means losing the sophisticated subscription/filtering mechanisms in favor of lightening fast data access (although this may all change with <a href="http://money.cnn.com/2008/01/14/markets/euronext.ap/index.htm">NYSE&#8217;s aquisition</a> of Wombat Software).  The result is having to process significantly more information in order to permit algos and other electronic trading applications to quickly discover best prices before their competitors.  Vendors of direct market access distribution platforms have introduced conflation as a method to minimize the amount of data processed by electronic trading applications, while maintaining the minimal latency characteristics of market data directly from its source.  For example, an electronic algorithm looking to purchase any number of shares in a stock, may be overwhelmed if that stock&#8217;s price changes 700 times a second.  Instead, with conflation, the algo can subscribe to the available latest price and receive a single message during that second.   Furthermore, an algo looking to purchase IBM stock only after it crosses the $100.00 mark between 3pm and 4pm may also suppress all quote messages for IBM during that period, and instead receive a single message if the event of interest occurs.</p>
<h3>Colocation</h3>
<p>Colocation, also known as proximity hosting, refers to the practice whereby firms physically place the systems running their algorithms in the same geographic location as the systems that power the stock exchanges.  This practice ensures minimal latency in processing buy/sell orders from the algo engines but has the additional benefit that the escalating market data volumes feeding these algorithms will be contained within the same network infrastructure.  Firms that choose to colocate their algos circumvent the need to purchase and deploy expensive WAN infrastructure that can accommodate the insatiable bandwidth requirements of market data feeds.  In other words, colocating customers will be rewarded with the lowest latency while at the same time ridding themselves of the network infrastructure supporting market data volumes.</p>
<h3>API Efficiency</h3>
<p>I mentioned how electronic trading and specifically how electronic algorithms are generating bursts of buy/sell orders that are executed as quickly as they are canceled.   One approach for minimizing the bandwidth utilization of this activity was to introduce batching operations, such as bulk cancels, in the transactional interface (i.e. <a href="http://fixprotocol.org/">FIX Protocol</a>) between broker and electronic marketplace.  Another approach was to create generic messages, such as pegged orders, that can &#8220;follow&#8221; changing market conditions without the need to reissue new orders.  Yet another approach was to suppress acknowledgment messages between electronic marketplace and algo, resulting in less bandwidth utilization.  What all these approaches have in common is they all require modification to the transactional API between the algo and the electronic marketplace.</p>
<h3>Feed Partitioning</h3>
<p>OPRA remains the largest volume market data feed for the US capital markets with 2008 projections racing towards the 900,000 messages per second figure.  In 2006 OPRA&#8217;s distributor, SIAC, shifted from distributing the feed over 12 separate network lines, to  a total of 24 lines in an attempt to minimize the per line bandwidth requirements.    This move has removed the per line bandwidth pressures many subscribers were facing, despite retaining the ridiculous bandwidth required to process the entire feed.</p>
<p>The bandwidth problem facing firms in the capital markets is only one part of the problem.  Next we&#8217;ll show how their <a href="/?p=64">need for speed</a> is presenting significant computing challenges as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdoertimes.com/technology/designing-for-performance-on-wall-street-the-bandwidth-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing for Performance on Wall Street</title>
		<link>http://techdoertimes.com/technology/designing-for-performance-on-wall-street</link>
		<comments>http://techdoertimes.com/technology/designing-for-performance-on-wall-street#comments</comments>
		<pubDate>Fri, 04 Jan 2008 03:36:31 +0000</pubDate>
		<dc:creator>Sergio Bogazzi</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Financial markets]]></category>
		<category><![CDATA[Latency]]></category>
		<category><![CDATA[Throughput]]></category>

		<guid isPermaLink="false">http://www.techdoer.com/wordpress/?p=60</guid>
		<description><![CDATA[On Your Marks&#8230; Since the start of this decade, the US financial stock markets have experienced massive industry changes resulting from regulatory, competitive and innovative forces. These changes have led market participants to engage in an all out arms race towards extremely low-latency, high-throughput performance computing in an attempt to stay competitive. Unfortunately, arms races [...]]]></description>
			<content:encoded><![CDATA[<h2>On Your Marks&#8230;</h2>
<p>Since the start of this decade, the US financial stock markets have experienced massive industry changes resulting from regulatory, competitive and innovative forces.  These changes have led market participants to engage in an all out arms race towards extremely low-latency, high-throughput performance computing in an attempt to stay competitive.</p>
<p>Unfortunately, arms races like this one are sometimes driven by reaction than by vision.  Not knowing, for example, how switched fabric based technologies can specifically address your performance troubles should prevent anyone in the purchasing of InfiniBand based technologies.  Thankfully organizations such as <a href="http://www.stacresearch.com">STAC Research</a> have begun to address a much neglected need for accurate performance measurements across this industry&#8217;s technology platforms.</p>
<h2>What&#8217;s Driving All This?</h2>
<h3>Electronic Trading</h3>
<p>Since the start of the 21st century, the adoption of electronic trading among hedge funds, broker dealers, and investment banks has skyrocketed.  In fact as of 2007, electronic trading on the New York Stock Exchange (NYSE) makes up 60 to 70 percent of the daily volume.  Technological innovation and economies of scale have led to the widespread digitization the stock trader&#8217;s profession resulting in highly advanced trading strategies. This form of trading relies on algorithms that seek profitability by scanning exchanges and other electronic execution venues with storms of buy/sell/cancel/replace orders at near wire speed.  Similarly, this form of trading thrives on discovering the best prices before competitors, forcing many of the algo trading engines to circumvent the traditional sources for market data (i.e. Bloomberg, Reuters) and instead connect directly to to the source of the bid or ask quotes.</p>
<h3>Regulation</h3>
<p>The Securities and Exchange Commission has designed many new regulations towards protecting investors in this new electronic marketplace.  Regulation NMS (or RegNMS), in particular, forces all market participants a chance at the best price for any individual security, on any of the available electronic marketplaces during market hours. This regulation has resulted in a smart order routing strategies where traders and the algorithms implementing their strategies fulfill regulatory requirements and at the same time maximize their returns.  Similar regulation has been introduced for the European markets in the form of The Markets in Financial Instruments Directive, or MiFID.</p>
<p>Many other types of regulation have been introduced with the goal of improving transparency in the financial markets.  These regulations mandate record retention policies that weigh heavily on the storage capabilities of complying firms.  For example, a firm wishing to store each level-1 market data quote disseminated from all the US ECNs, exchanges, and OTC markets is now facing a 600 million quote per day reality (based on January 2008 volume).  Assuming off-the-shelf database products and straightforward indexing schemes to store this data means having to allocate 60 GB of storage daily.  The point here is that regulation is impacting the industry resulting in changes that expose limits in network bandwidth as well as data storage.</p>
<h3>Innovation</h3>
<p>Technological innovations in hardware, software, and networking technologies have enabled creative new opportunities for discovering liquidity and making money on wall street.   Market participants, of all sizes, are maximizing their technology investments and utilizing the high-performance, high bandwidth solutions to stay competitive.  Smaller sized hedge funds, for example, can now adopt relatively inexpensive off the shelf solutions towards generating startling returns that fill their investment banking brethren with envy.</p>
<h2>High Performance Elements Uncovered</h2>
<p>In this 3 part series, I&#8217;ll present the elements of high-performance computing in today&#8217;s US stock markets, and how these element are specifically designed to address the performance problems that emerged from the restructuring of this age-old industry.  First, I&#8217;ll cover the problem of exploding message rates and the <a href="/?p=61">bandwidth problem</a>, followed by the new low-latency reality in the <a href="/?p=64">need for speed</a>.  Finally, I&#8217;ll show how all this high-performance messaging is leading to the <a href="/?p=68">storage dilemma</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techdoertimes.com/technology/designing-for-performance-on-wall-street/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

