[ndnSIM] How to add a new TLV filed to the Data packet
rujia721 at gmail.com
Mon May 8 06:22:26 PDT 2017
I have seen that blog before I ask the question, but it still don't make
everything clear. For instance, in the first segment "First Steps", he
gives several lines of codes, but which files should I add those line in or
should I create a new file contains all of those codes? Is it too much
effort for just adding a new tag?
Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu>于2017年5月8日 周一上午2:50写道：
> Junxiao pointed you to a link with specific steps on how to add a custom
> TLV to NDN packets in ndnSIM.
> Please read through the steps described there and follow them.
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> On May 7, 2017, at 9:26 AM, Ru Jia <rujia721 at gmail.com> wrote:
> Dear Junxiao,
> I am sorry I didn't make myself more clear, I dipected it more specific
> last time and I thought it would be the same gay reply to me. The thing is
> I want to determine whether the routers should cache the data based on the
> number of times the data was requested, so I only need to count the number
> of the first several times when data packet is still fetched from the
> Last time, Spyridon Mastorakis replied my email and told me I could add a
> new TLV field to the Data packet and increment it every time that this data
> packet is requested. But i am still a little confused about how to
> realize that.
> Ru Jia
> On Sun, May 7, 2017 at 3:39 AM, Junxiao Shi <shijunxiao at email.arizona.edu>
>> Hi Ru
>> Before talking about code, we need to understand the protocol.
>> NDN network is a distributed system, c and forwarding is hop-by-hop.
>> Every NDN node has a ContentStore which is an opportunistic cache of Data
>> A Data is "requested" if a consumer expresses an Interest that can be
>> satisfied by the Data. The Data can be served from a producer, or from a
>> cache anywhere in the network.
>> While a node can count how many times a Data is "requested" by an
>> Interest reaching this node, it would not be possible to count how many
>> times a Data is requested globally without using additional control
>> Regarding code: see https://lo.calho.st/networks/adding-custom-packet-
>> Yours, Junxiao
>> On May 6, 2017 12:06, "Ru Jia" <rujia721 at gmail.com> wrote:
>> If I want to record the number of times the data was requested, how to
>> add a new TLV filed to the Data packet? Is there any material or codes that
>> I can refer to?
>> Thanks advanced for your response.
>> Ru Jia
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM