<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Junxiao,
<div class=""><br class="">
</div>
<div class="">Thanks for your input. I think I might know what the problem is. It’s in NDN-RTC library, as nonce values are being set by NDN-RTC currently.</div>
<div class="">Jeff Thompson introduced refreshNonce() which uses crypto library for nonce generation. Once I update NDN-RTC to the latest NDN-CPP, this should provide better results.</div>
<div class="">In any way, currently, NDN-RTC needs to know expressed Interests nonce values to track incoming data.</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks, </div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
-- <br class="">
Peter Gusev</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<a href="mailto:peter@remap.ucla.edu" class="">peter@remap.ucla.edu</a><br class="">
+1 213 5872748<br class="">
peetonn_ (skype)</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Software Engineer/Programmer Analyst @ REMAP UCLA<br class="">
<br class="">
Video streaming/ICN networks/Creative Development</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 26, 2016, at 5:07 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class=""><span style="font-size:12.8px" class="">Hi Peter</span>
<div style="font-size:12.8px" class=""><br class="">
</div>
<div style="font-size:12.8px" class="">The trace is attached to <a href="https://redmine.named-data.net/issues/3642#note-12" class="">https://redmine.named-data.net/issues/3642#note-12</a> for permanent record.</div>
<div style="font-size:12.8px" class="">I can see a lot of Nack-Duplicates from the trace:</div>
<div style="font-size:12.8px" class="">
<div class=""><font face="monospace, monospace" class="">vagrant@m0212:~$ ndndump -r capture.pcap | grep -v 10.10.12.3 | sed -e 's/From: <a href="http://10.10.12.//" class="">10.10.12.//</a>' -e 's/, To: <a href="http://10.10.12./-" class="">10.10.12./-</a>>/'
 -e 's/, Tunnel Type: UDP, / /' -e 's|/ndn/edu/ucla/remap/ndnrtc/user/client1/streams/camera/low/key|()|' | grep 'Nonce=1732610923'</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.692043 4->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.706693 7->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.706810 2->7 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.732589 6->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.732702 2->6 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.822424 12->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.822546 2->12 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.825780 9->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.825867 2->9 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.838540 10->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.838657 2->10 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.854087 5->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.854200 2->5 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.934206 11->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801763.934301 2->11 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801764.041182 8->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801764.041306 2->8 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801764.154624 13->2 INTEREST: ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
<div class=""><font face="monospace, monospace" class="">1466801764.154732 2->13 NACK: Duplicate, ()/2/data/%00%00?ndn.MustBeFresh=1&ndn.InterestLifetime=3000&ndn.Nonce=1732610923</font></div>
</div>
<div style="font-size:12.8px" class=""><br class="">
</div>
<div style="font-size:12.8px" class="">Protocol <a href="http://named-data.net/doc/ndn-tlv/interest.html#nonce" target="_blank" class="">requires Name+Nonce combination to be unique</a>, but the same Nonce is being used by consumer 4,7,6,12,9,10,5,11,8,13.
 As a result, all except consumer 4 will not get Data.</div>
<div style="font-size:12.8px" class="">Even if consumer 4 gets Data this time, if other consumers are still generating the same stream of Nonces, the next Interest from consumer 4 may arrive later than the duplicate Interest from other consumers, causing consumer
 4 to receive a Nack-Duplicate and therefore lose track of the video stream.</div>
<div style="font-size:12.8px" class=""><br class="">
</div>
<div style="font-size:12.8px" class="">This is either a bug in the library, or you are using the library incorrectly. You may get more help on ndn-lib mailing list.<br class="">
</div>
<div style="font-size:12.8px" class=""><br class="">
</div>
<div style="font-size:12.8px" class="">Yours, Junxiao</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Fri, Jun 24, 2016 at 2:16 PM, Gusev, Peter <span dir="ltr" class="">
<<a href="mailto:peter@remap.ucla.edu" target="_blank" class="">peter@remap.ucla.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div style="font-style:normal;font-variant:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica Neue",sans-serif;color:rgb(128,128,128);font-weight:300" class="">
<div style="min-height:0px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(236,236,236)" class="">
<br class="">
</div>
</div>
<div class="">What I meant is that all consumers start simultaneously and what I repeatedly observe, is that they are unable to catch up with the latest produced data in a synchronous manner, what is expected. Instead, chasing phase resolution happens one (or
 few) consumer(s) at a time. Consumers are identical and in the beginning express same interest - with rightmost child selector enabled. </div>
<div class=""><a href="http://ec2-52-90-158-238.compute-1.amazonaws.com:3000/dashboard/db/ndn-rtc-test-real-time-metrics?panelId=4&fullscreen&from=1466801762500&to=1466801788564" target="_blank" class="">Here </a> (login/pw: guest/ndnguest) you can see “rebufferings
 stairs” - which indicate that consumer was not able to get any data, so it started over. It feels like NFD was answering one consumer (rightmost interest) at a time.</div>
<div class=""><br class="">
</div>
<div class="">I attached pcap file for the first 1-1.5 minute of test.</div>
<div class=""><br class="">
<div class="">
<div class="h5">
<div class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div class=""><br class="">
</div>
<div class="">I ran more 1-to-10 tests recently (here are <a href="http://ec2-52-90-158-238.compute-1.amazonaws.com:3000/dashboard/db/ndn-rtc-tests-test-run-overview?from=1466566688346&to=1466567022507&var-runtime=15m" target="_blank" class="">the results</a> of
 one out five tests) and observe an unusual behavior: consumers are not able to get data all simultaneously, instead - they join one-by-one. This can be seen from <a href="http://ec2-52-90-158-238.compute-1.amazonaws.com:3000/dashboard/db/ndn-rtc-tests-test-run-overview?from=1466566688346&to=1466567022507&var-runtime=15m&panelId=15&fullscreen" target="_blank" class="">rebufferings
 graph</a> and <a href="http://ec2-52-90-158-238.compute-1.amazonaws.com:3000/dashboard/db/ndn-rtc-tests-test-run-overview?from=1466566688346&to=1466567022507&panelId=20&fullscreen&var-runtime=15m" target="_blank" class="">incoming traffic graph</a>. I see
 that, consumers get timeouts for the initial interests.</div>
<div class=""><br class="">
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>