<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<BODY 
style="LINE-HEIGHT: 1.5; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; FONT-FAMILY: 微软雅黑; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; FONT-SIZE: 10.5pt; BORDER-LEFT-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV>Dear John,Spyros:</DIV>
<DIV>   《ndnSIM-Things I have learned》 is quite helpful for me.Thank 
you for your help.But I still have some problems. In order to keep  
topology node information along the interest forwarding path 
,I need to get node id in  
NFD/daemon/fw/forward.cpp. However,I haven't found the API yet. Based on 
《ndnSIM-Things I have learned》 ,we can get the forward instance 
by node id  in jpd-test.cpp:</DIV>
<DIV>   </DIV>
<DIV align=center><IMG src="cid:flashmail$mkLeMprS$1490333754__0@nmmp"></DIV>
<DIV>      Can I get the node id by forward 
instance in the opposite way? How can I get node id in 
Forward::onOutgoingInterest(...) ?Thank you very much!</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: Verdana; COLOR: #c0c0c0; FONT-SIZE: 10pt" 
align=left>2017-03-24 
<HR 
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 122px; HEIGHT: 1px; BORDER-TOP: #c0c0c0 1px solid; BORDER-RIGHT: 0px" 
id=SignNameHR align=left>
<SPAN id=_FlashSignName>gc199211</SPAN> </DIV>
<HR 
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; HEIGHT: 1px; BORDER-TOP: #c0c0c0 1px solid; BORDER-RIGHT: 0px">

<BLOCKQUOTE 
style="PADDING-LEFT: 0px; FONT-FAMILY: Verdana; MARGIN-LEFT: 0px; FONT-SIZE: 10pt" 
id=ntes-flashmail-quote>
  <DIV><STRONG>发件人:</STRONG>"Spyridon (Spyros) Mastorakis" 
  <mastorakis@cs.ucla.edu></DIV>
  <DIV><STRONG>发送时间:</STRONG>2016-12-23 16:37</DIV>
  <DIV><STRONG>主题:</STRONG>Re: [ndnSIM] ndn cache replace policy</DIV>
  <DIV><STRONG>收件人:</STRONG>"John Baugh"<jpbaugh@umich.edu></DIV>
  <DIV><STRONG>抄送:</STRONG>"gc199211"<gc199211@mail.ustc.edu.cn>,"ndnsim"<ndnsim@lists.cs.ucla.edu></DIV>
  <DIV> </DIV>
  <DIV>John,
  <DIV><BR>
  <DIV>thanks for sharing that. Looks quite helpful.</DIV>
  <DIV><BR></DIV>
  <DIV>
  <DIV>
  <DIV>
  <DIV>
  <DIV><SPAN style="DISPLAY: inline !important; FLOAT: none">Spyridon (Spyros) 
  Mastorakis</SPAN><BR><SPAN 
  style="DISPLAY: inline !important; FLOAT: none">Personal 
  Website: </SPAN><A 
  href="http://cs.ucla.edu/~mastorakis/">http://cs.ucla.edu/~mastorakis/</A><BR><SPAN 
  style="DISPLAY: inline !important; FLOAT: none">Internet Research 
  Laboratory</SPAN><BR><SPAN 
  style="DISPLAY: inline !important; FLOAT: none">Computer Science 
  Department</SPAN><BR><SPAN 
  style="DISPLAY: inline !important; FLOAT: none">UCLA</SPAN></DIV></DIV></DIV></DIV><BR>
  <DIV>
  <BLOCKQUOTE type="cite">
    <DIV>On Dec 23, 2016, at 9:27 AM, John Baugh <<A 
    href="mailto:jpbaugh@umich.edu">jpbaugh@umich.edu</A>> wrote:</DIV><BR 
    class=Apple-interchange-newline>
    <DIV>
    <DIV dir=ltr>
    <DIV><SPAN style="FONT-SIZE: 12px">Greetings,</SPAN><BR></DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV>
    <DIV style="FONT-SIZE: 12px">By no means do I claim to be an expert in this 
    simulator (yet!), but I have been taking and trying to organize notes about 
    using it.</DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV>
    <DIV style="FONT-SIZE: 12px">Please see page 9 in the PDF on my Google 
    Drive:</DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV>
    <DIV style="FONT-SIZE: 12px"><SPAN style="FONT-SIZE: small"><B><A 
    href="https://drive.google.com/open?id=0By9ufeKqmJYYTnZVYnBlNktvMHc">https://drive.google.com/open?id=0By9ufeKqmJYYTnZVYnBlNktvMHc</A></B></SPAN><BR></DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV>
    <DIV style="FONT-SIZE: 12px">I hope to eventually more fully organize this 
    document after adding a significant amount more, adding a table of contents, 
    etc.</DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV>
    <DIV style="FONT-SIZE: 12px">But hopefully this helps some people even in 
    its current, very unedited and minimal state.</DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV>
    <DIV style="FONT-SIZE: 12px">Thanks,</DIV>
    <DIV style="FONT-SIZE: 12px"><BR></DIV><SPAN 
    style="FONT-SIZE: 12px">John</SPAN>
    <DIV><BR></DIV>
    <DIV><BR></DIV></DIV>
    <DIV class=gmail_extra><BR>
    <DIV class=gmail_quote>On Fri, Dec 23, 2016 at 2:23 AM, John Baugh <SPAN 
    dir=ltr><<A href="mailto:jpbaugh@umich.edu" 
    target=_blank>jpbaugh@umich.edu</A>></SPAN> wrote:<BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
    class=gmail_quote>
      <DIV dir=ltr>Greetings,
      <DIV><BR></DIV>
      <DIV>By no means do I claim to be an expert in this simulator (yet!), but 
      I have been taking and trying to organize notes about using it.</DIV>
      <DIV><BR></DIV>
      <DIV>Please see page 9 in the attached PDF.  I hope to eventually 
      more fully organize this document after adding a significant amount more, 
      adding a table of contents, etc.</DIV>
      <DIV><BR></DIV>
      <DIV>But hopefully this helps some people even in its current, very 
      unedited and minimal state.</DIV>
      <DIV><BR></DIV>
      <DIV>Thanks,</DIV>
      <DIV><BR></DIV>
      <DIV>John</DIV></DIV>
      <DIV class=gmail_extra><BR>
      <DIV class=gmail_quote>
      <DIV>
      <DIV class=h5>On Fri, Dec 23, 2016 at 2:02 AM, Spyridon (Spyros) 
      Mastorakis <SPAN dir=ltr><<A href="mailto:mastorakis@cs.ucla.edu" 
      target=_blank>mastorakis@cs.ucla.edu</A>></SPAN> wrote:<BR></DIV></DIV>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>
        <DIV>
        <DIV class=h5>
        <DIV style="WORD-WRAP: break-word">Hi,
        <DIV><BR></DIV>
        <DIV>personally, I feel it would be easier for you to use the CS of 
        NFD. </DIV>
        <DIV><BR></DIV>
        <DIV>You will have to create your own class that will derive from the 
        Policy class of NFD.</DIV>
        <DIV><BR></DIV>
        <DIV>Hope that this helps.</DIV>
        <DIV><SPAN class=m_-5941337178837522879HOEnZb><FONT color=#888888><BR>
        <DIV>
        <DIV>
        <DIV>
        <DIV><SPAN style="DISPLAY: inline !important; FLOAT: none">Spyridon 
        (Spyros) Mastorakis</SPAN><BR><SPAN 
        style="DISPLAY: inline !important; FLOAT: none">Personal 
        Website: </SPAN><A href="http://cs.ucla.edu/~mastorakis/" 
        target=_blank>http://cs.ucla.edu/~m<WBR>astorakis/</A><BR><SPAN 
        style="DISPLAY: inline !important; FLOAT: none">Internet Research 
        Laboratory</SPAN><BR><SPAN 
        style="DISPLAY: inline !important; FLOAT: none">Computer Science 
        Department</SPAN><BR><SPAN 
        style="DISPLAY: inline !important; FLOAT: none">UCLA</SPAN></DIV>
        <DIV><BR></DIV></DIV></DIV></DIV></FONT></SPAN>
        <DIV>
        <DIV class=m_-5941337178837522879h5><BR>
        <DIV>
        <BLOCKQUOTE type="cite">
          <DIV>On Dec 22, 2016, at 5:20 PM, gc199211 <<A 
          href="mailto:gc199211@mail.ustc.edu.cn" 
          target=_blank>gc199211@mail.ustc.edu.cn</A>> wrote:</DIV><BR 
          class=m_-5941337178837522879m_5749736936594318342Apple-interchange-newline>
          <DIV><U></U>
          <DIV> </DIV>
          <DIV>
          <DIV>Hello :<BR>  I am trying to realize a cache replacement 
          policy on ndnSIM .The new policy is based on lfu 
          policy.  According to the api document I found 
          that</DIV>
          <DIV> 1)  The ns3::ndn::ContentStore has realized lfu policy 
          , but the code is quite complex,including 
          trie.hpp、tire-with-policy.hpp、<WBR>lfu-policy.hpp and so on</DIV>
          <DIV>2)  The nfd::cs::Cs  hasn't realized lfu policy,but the 
          code seems easier.</DIV>
          <DIV>So which kind of contentstore is easier to realize my 
          policy,   ns3::ndn::ContentStore or nfd::cs::Cs  ?And 
          how to  realize a cache replacement policy,Think you very 
          much!</DIV>
          <DIV>                              <WBR>         </DIV></DIV>
          <DIV 
          style="FONT-FAMILY: Verdana; COLOR: rgb(192,192,192); FONT-SIZE: 10pt">
          <DIV align=left>2016-12-22</DIV>
          <HR 
          style="BORDER-RIGHT-WIDTH: 0px; WIDTH: 122px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 1px; BORDER-TOP: rgb(192,192,192) 1px solid; BORDER-LEFT-WIDTH: 0px" 
          id=m_-5941337178837522879m_5749736936594318342SignNameHR align=left>
          <SPAN 
          id=m_-5941337178837522879m_5749736936594318342_FlashSignName>gc199211</SPAN></DIV><U></U></DIV></BLOCKQUOTE></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV><BR><BR>__________ 
  Information from ESET NOD32 Antivirus, version of virus signature database 
  14571 (20161208) __________<BR><BR>The message was checked by ESET NOD32 
  Antivirus.<BR><BR><A 
  href="http://www.eset.com">http://www.eset.com</A><BR></DIV></BLOCKQUOTE></BODY></HTML>