85 lines
5.7 KiB
HTML
85 lines
5.7 KiB
HTML
<!-- HTML header for doxygen 1.8.11-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>OnixS C++ CME Market Data Handler: Affecting Packet Gap Detection</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="onixs-doxygen.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript">
|
|
$(window).scroll(function() {
|
|
if ($(this).scrollTop() > 1)
|
|
{
|
|
$('header').addClass("sticky");
|
|
}
|
|
else
|
|
{
|
|
$('header').removeClass("sticky");
|
|
}
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><a href="http://www.onixs.biz"><img alt="Logo" src="onixs.svg"/></a></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">OnixS C++ CME Market Data Handler
|
|
 <span id="projectnumber">4.8.0.10</span>
|
|
</div>
|
|
<div id="projectbrief">API documentation</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</header>
|
|
<div id="wrapper">
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Home</span></a></li>
|
|
<li class="current"><a href="modules.html"><span>Contents</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Affecting Packet Gap Detection<div class="ingroups"><a class="el" href="group__advanced-programming.html">Advanced Programming</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<h1><a class="anchor" id="gap-detection-logic"></a>
|
|
Detecting Packet Gaps</h1>
|
|
<p>Due to unreliable nature of multicast, the packets transmitted by MDP may be received in the order different to the original. To differ the case when the Handler received out-of-order packets from the case when some of them were completely lost, the Handler uses two parameters <a class="el" href="classOnixS_1_1CME_1_1MDH_1_1RealtimeFeedSettings.html#a0f6d193c0a194bcc3ac43958f50fad14">OnixS::CME::MDH::RealtimeFeedSettings::outOfOrderPacketMaxInterval</a> and <a class="el" href="classOnixS_1_1CME_1_1MDH_1_1RealtimeFeedSettings.html#a3d0b8e9161faa1d2c91bb59ffa55aed5">OnixS::CME::MDH::RealtimeFeedSettings::lostPacketWaitTime</a>.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>Noted parameters are a part of parameters for incremental feeds. An instance of <a class="el" href="classOnixS_1_1CME_1_1MDH_1_1RealtimeFeedSettings.html" title="Collection of parameters affecting real-time feeds behavior. ">OnixS::CME::MDH::RealtimeFeedSettings</a> class can be accessed through the OnixS::CME::MDH::HandlerSettings::FeedSettings::incrementalFeeds member of the OnixS::CME::MDH::HandlerSettings::FeedSettings class, which instance in its turn is returned by the <a class="el" href="classOnixS_1_1CME_1_1MDH_1_1HandlerSettings.html#a403bf7d770e77c7c0084c5391dbce957" title="Reference to parameters related with feeds. ">OnixS::CME::MDH::HandlerSettings::feeds</a> member.</dd></dl>
|
|
<p>When an out-of-order packet is received, the Handler makes a decision on data loss if either missing data is not received for a predefined time interval, or if new incoming packets have sequence numbers greater than a certain threshold.</p>
|
|
<p>The <a class="el" href="classOnixS_1_1CME_1_1MDH_1_1RealtimeFeedSettings.html#a0f6d193c0a194bcc3ac43958f50fad14">OnixS::CME::MDH::RealtimeFeedSettings::outOfOrderPacketMaxInterval</a> parameter defines the size of the interval for incoming packets starting from the last received. The packet is considered as out-of-order if its sequence number fits into the following interval:</p>
|
|
<p><em>[seqNumberOfLastReceivedPacket, seqNumberOfLastReceivedPacket+outOfOrderPacketsMaxInterval]</em>,</p>
|
|
<p>where <em>seqNumberOfLastReceivedPacket</em> - a sequence number of the last packet the Handler processed under normal conditions. In that case, the Handler waits for other packets to fulfill the incoming sequence. If a received packet has a sequence number greater than <em>seqNumberOfLastReceivedPacket+outOfOrderPacketsMaxInterval</em>, then the Handler decides on packets lost, and the gap is reported.</p>
|
|
<p>If for a certain time interval the Handler receives missing data, it resumes normal data processing. However, if no data is received for the predefined time frame, the Handler considers missing data as lost and raises a packet gap event. The <a class="el" href="classOnixS_1_1CME_1_1MDH_1_1RealtimeFeedSettings.html#a3d0b8e9161faa1d2c91bb59ffa55aed5">OnixS::CME::MDH::RealtimeFeedSettings::lostPacketWaitTime</a> parameter defines the size of time interval the Handler waits for missing data. </p>
|
|
</div><!-- contents -->
|
|
<!-- HTML footer for doxygen 1.8.11-->
|
|
<!-- start footer part -->
|
|
<footer>
|
|
<hr class="footer"/>
|
|
<address class="footer">
|
|
<small>© <a href="http://www.onixs.biz">Onix Solutions [On<span class="corporate-orange">i</span>x<span class="corporate-orange">S</span>]</a>. All rights reserved.</small>
|
|
</address>
|
|
</footer>
|
|
</div> <!-- wrapper -->
|
|
</body>
|
|
</html>
|