[ndnSIM] How to Change Interest name in m_table on Cs.cpp NFD

mdparamartha95 at students.itb.ac.id mdparamartha95 at students.itb.ac.id
Fri Mar 29 04:11:17 PDT 2019

Hi Junxiao, 

Thank you for the explanation, 

So NDN router which not instaled as consumer or producer, (only NDN stack helper for cs) cannot change the data name? 

I'm just wondering how to store 5 recent removed data into secondary Content Store instead of the primary, 
and the lookup process is still working for secondary cache. 

I try to modify the cs-policy, but when lookup process for secondary cache, the iterator still refer to the primary cache which is already deleted when moved into the secondary cache, 

That's why I wonder change the m_table for the specific iterator. 

Best Regards, 
Adi Paramartha 

From: "Junxiao Shi" <shijunxiao at email.arizona.edu> 
To: mdparamartha95 at students.itb.ac.id 
Cc: "ndnsim" <ndnsim at lists.cs.ucla.edu> 
Sent: Friday, March 29, 2019 5:54:41 PM 
Subject: Re: [ndnSIM] How to Change Interest name in m_table on Cs.cpp NFD 

Hi Adi 

CS iterator name refers to Data name, not Interest name. 

One of the NDN design principles is Data Immutability. 
Content Store or any other parts of the forwarder cannot change Data name or any other part of the Data. 

To change Data name, you have to do so at the producer. 
Make sire the Data still satisfies the Interest. 

Yours, Junxiao 

On Fri, Mar 29, 2019 at 04:47 < mdparamartha95 at students.itb.ac.id > wrote: 

Hello everyone, 

I'm would like to ask about how to change the interest name or prefix name of iterator in cs.cpp NFD. 

I'm would like to change the content name in it->getName() when emitSignal executed.. 

I'm only want to change the content name, without changing any other metadata of the content. 

I'm trying using setName() function from data.cpp, but it wont working. 

Could someone help me or give some advice about how to change content name in m_table(iterator) in NFD cs.cpp ? 

Thank You 

Best Regards, 
Adi Paramartha 
ndnSIM mailing list 
ndnSIM at lists.cs.ucla.edu 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190329/d8d53589/attachment-0001.html>

More information about the ndnSIM mailing list