<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p><br>
</p>
<p>We try to implement overload protection into diameter server that
uses erlang diameter-2.0 application.</p>
<p>Our overload policy use queuing time and queue lenght to
determine if server is overloaded or not.</p>
<p><br>
</p>
<p>Currently it is quite hard to check when diameter packet was
received by diameter stack,</p>
<p>so I would like to add to <span
style="background-color:#e4e4ff;">diameter_packet record
(defined in diameter.hrl) receive_time field like this:<br>
</span></p>
<pre style="background-color:#ffffff;color:#000000;font-family:'Courier New';font-size:9,0pt;">-record(diameter_packet,
{header, <span style="color:#808080;font-style:italic;">%% #diameter_header{}
</span><span style="color:#808080;font-style:italic;"> </span>avps, <span style="color:#808080;font-style:italic;">%% deep list() of #diameter_avp{}
</span><span style="color:#808080;font-style:italic;"> </span>msg, <span style="color:#808080;font-style:italic;">%% fully decoded message
</span><span style="color:#808080;font-style:italic;"> </span>bin, <span style="color:#808080;font-style:italic;">%% binary received/sent over the wire
</span><span style="color:#808080;font-style:italic;"> </span>errors = [],<span style="color:#808080;font-style:italic;">%% list() of Result-Code | {Result-Code, #diameter_avp{}}
</span><span style="color:#808080;font-style:italic;"> </span>transport_data,
<b>receive_time = erlang:monotonic_time() </b><span style="color:#808080;font-style:italic;"><b>%% integer()</b>
</span><span style="color:#808080;font-style:italic;"> </span>})<span style="color:#000080;font-weight:bold;">.</span>
</pre>
<br>
What do you think about it?<br>
<br>
It will be possible to merge this into diameter app release with OTP
20.1?<br>
<br>
<br>
<p>Best Regards</p>
<p>Aleksander Nycz<br>
</p>
<br>
<pre class="moz-signature" cols="72">--
Aleksander Nycz
Chief Designer
Telco_021 BSS R&D
Comarch SA
Phone: +48 17 785 5909
Mobile: +48 691 464 275
website: <a class="moz-txt-link-abbreviated" href="http://www.comarch.pl">www.comarch.pl</a></pre>
</body>
</html>