Files
externals/linux/doc/Onixs.CME.4.8.0/html/DetectingPacketGaps_8md_source.html

82 lines
8.9 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: Pages/DetectingPacketGaps.md Source File</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
&#160;<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><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 class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Pages/DetectingPacketGaps.md</div> </div>
</div><!--header-->
<div class="contents">
<a href="DetectingPacketGaps_8md.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;\addtogroup packet-gap-detection </div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;\brief Explains details of how the Handler makes decision on gaps in </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;incoming data and which parameters affect Handler&#39;s behavior in the case. </div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;\section gap-detection-logic Detecting Packet Gaps</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;Due to unreliable nature of multicast, the packets transmitted by </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;MDP may be received in the order different to the original. To differ </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;the case when the Handler received out-of-order packets from the case </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;when some of them were completely lost, the Handler uses two parameters </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;OnixS::CME::MDH::RealtimeFeedSettings::outOfOrderPacketMaxInterval and </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;OnixS::CME::MDH::RealtimeFeedSettings::lostPacketWaitTime.</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;\note Noted parameters are a part of parameters for incremental feeds. </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;An instance of OnixS::CME::MDH::RealtimeFeedSettings class can be accessed </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;through the OnixS::CME::MDH::HandlerSettings::FeedSettings::incrementalFeeds </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;member of the OnixS::CME::MDH::HandlerSettings::FeedSettings class, which instance </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;in its turn is returned by the OnixS::CME::MDH::HandlerSettings::feeds member. </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;When an out-of-order packet is received, the Handler makes a decision on data </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;loss if either missing data is not received for a predefined time interval, </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;or if new incoming packets have sequence numbers greater than a certain threshold.</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;The OnixS::CME::MDH::RealtimeFeedSettings::outOfOrderPacketMaxInterval </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;parameter defines the size of the interval for incoming packets starting from </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;the last received. The packet is considered as out-of-order if its sequence </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;number fits into the following interval:</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;*[seqNumberOfLastReceivedPacket, </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; seqNumberOfLastReceivedPacket+outOfOrderPacketsMaxInterval]*, </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;where *seqNumberOfLastReceivedPacket* - a sequence number of the</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;last packet the Handler processed under normal conditions. In that </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;case, the Handler waits for other packets to fulfill the incoming </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;sequence. If a received packet has a sequence number greater than </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;*seqNumberOfLastReceivedPacket+outOfOrderPacketsMaxInterval*, </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;then the Handler decides on packets lost, and the gap is reported.</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;If for a certain time interval the Handler receives missing data, </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;it resumes normal data processing. However, if no data is received </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;for the predefined time frame, the Handler considers missing data as </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;lost and raises a packet gap event. </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;The OnixS::CME::MDH::RealtimeFeedSettings::lostPacketWaitTime parameter </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;defines the size of time interval the Handler waits for missing data.</div></div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.11-->
<!-- start footer part -->
<footer>
<hr class="footer"/>
<address class="footer">
<small>&copy; <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>