<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
Hello everyone,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
I am analyzing the behavior of PIT timer in a ndnSIM by varying the processing time at producer node. For example, when the first request arrives at producer/provider node the processing time is 300 ms which means the producer will reply with data packet after
 300 ms. All subsequent requests responded back with random processing time i.e. 300 ms, 749 ms, 1500 ms, 1700 ms, 249 ms etc. The value of a PIT timer is set to 1 second. Moreover, I am using  <b>usleep(microseconds) </b>function<b> </b>in <b>Producer::OnInterest(shared_ptr<const
 Interest> interest)<span> </span></b>function after following line  <b>NS_LOG_FUNCTION(this << interest);
</b>to create random processing delay on producer node.</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; background-color: rgb(255, 255, 255)">
<b><br>
</b></div>
<div style="margin: 0px; font-size: 15px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(33, 33, 33); background-color: rgb(255, 255, 255)">
<font color="#000000" face="Calibri, Helvetica, sans-serif"><span style="margin: 0px; font-size: 12pt">The issue which i am facing is, it seems that<span> </span></span></font><b style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt"><b style="background-color: rgb(255, 255, 255)">usleep</b>()</b><font color="#000000" face="Calibri, Helvetica, sans-serif"><span style="margin: 0px; font-size: 12pt"><span> </span>function
 halt all threads of ndnSIM and PIT timer did not expire after 1 second even when the processing time is 1500, 1700 ms (greater than 1 second). I am using<span> </span></span></font><b style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255)">usleep() </b><span style="margin: 0px; background-color: rgb(255, 255, 255)"><font color="#000000" face="Calibri, Helvetica, sans-serif">function<span style="margin: 0px; font-size: 12pt"> because
 my understanding is (I might be wrong here) when we install NDN stack on any node, it runs in a<span> </span></span>separate<span style="margin: 0px; font-size: 12pt"> thread. Therefore, if each node is running in<span> </span></span>separate<span style="margin: 0px; font-size: 12pt"> thread
 then<span> </span><b>usleep()</b><span> </span>should not halt whole ndnSIM rather it should only halt the processing of producer node. </span></font></span></div>
<div style="margin: 0px; font-size: 15px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(33, 33, 33); background-color: rgb(255, 255, 255)">
<span style="margin: 0px; background-color: rgb(255, 255, 255)"><font color="#000000" face="Calibri, Helvetica, sans-serif"><span style="margin: 0px; font-size: 12pt"><br>
</span></font></span></div>
<div style="margin: 0px; font-size: 15px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(33, 33, 33); background-color: rgb(255, 255, 255)">
<span style="margin: 0px; background-color: rgb(255, 255, 255)"><font color="#000000" face="Calibri, Helvetica, sans-serif"><span style="margin: 0px; font-size: 12pt">I shall be<span> </span></span>grateful<span style="margin: 0px; font-size: 12pt"> if someone
 help me in this regard or suggest some alternative<span> </span></span>solution<span style="margin: 0px; font-size: 12pt">. </span></font></span></div>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">
<div><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Regards </span></b></span></div>
<div id="geom_inter_1528795240697_70_17"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</span></b></span></div>
<b style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"></b><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Atif
 Ur Rehman</span></b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"> </span></span><span style="font-style:normal; font-weight:400; font-size:12pt; line-height:21.3px; font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont; color:rgb(0,0,0)"><b><span style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">(Ph.D.
 Student)</span></b></span><br>
<div id="geom_inter_1528795240701_98_20"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><span style="font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont"><b> </b></span></span></div>
</div>
</body>
</html>