[ndnSIM] Help Custom Forwarding
Klaus Schneider
klaus at cs.arizona.edu
Tue Jul 16 18:12:55 PDT 2019
Hey Leila,
I don't have an answer to this, so I'm forwarding it to the mailing list.
It would also be useful if you could add the gdb backtrace output, as I
described in my earlier email.
Klaus
On 7/16/19 4:41 PM, bouchrit leila wrote:
> thank you so much Klaus Schneider it works well, another asks how I can
> add a field to the package interest and data. I use this link:
> https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/
> but when I write this instruction " interest->
> setTag<lp::NumRouteurTag>(std::make_shared<lp::NumRouteurTag>(54321));"
>
> in my strategy it hangs and display this message.
> https://drive.google.com/open?id=18jfOfiT5TTYZD42diKaD0zz9DNOAISxU
>
> thank you Klaus Schneider for your help.
>
>
> Le mar. 16 juil. 2019 à 21:58, Klaus Schneider <klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>> a écrit :
>
> Oh, it's probably that the TypeId is missing the namespace and the
> group
> name. Compare your
>
> > static TypeId tid = TypeId("producerCustom").SetParent<App>()
> >
> .AddConstructor<producerCustom>()
>
>
> With
>
> > static TypeId tid =
> > TypeId("ns3::ndn::Producer")
> > .SetGroupName("Ndn")
> > .SetParent<App>()
> > .AddConstructor<Producer>()
>
>
> Also Parent should probably be Producer, if you want to inherit its
> functions.
>
> Best regards,
> Klaus
>
>
>
> On 7/16/19 12:53 PM, Klaus Schneider wrote:
> > To debug the producerCustom issue, I suggest running gdb as it
> says on
> > the bottom of the message:
> >
> >> +0.000000000s 0 ndn.Consumer:Consumer()
> >> assert failed. cond="uid != 0", msg="Assert in
> TypeId::LookupByName:
> >> ns3::ndn::producerCustom not found",
> >> file=../src/core/model/type-id.cc, line=828
> >> terminate called without an active exception
> >> Command
> >>
> ['/home/leila/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-scenario-debug']
>
> >> terminated with signal SIGIOT. Run it under a debugger to get more
> >> information (./waf --run <program> --command-template="gdb
> --args %s
> >> <args>").
> >
> > Use the gdb command then type "run", then "bt", to get a stack
> trace of
> > the issue.
> >
> > Best regards,
> > Klaus
> >
> >
> >
> > On 7/16/19 12:17 PM, bouchrit leila wrote:
> >> thank you very much Klaus Schneider for the answer,
> >>
> >> Here are the different files:/
> >> */Test file using the strategy:
> >>
> https://drive.google.com/drive/folders/1DgNXvyRz4Xdd6BVPv5-Sexb-d1V1NtAS
> >> * /The Custom Strategy files:
> >>
> https://drive.google.com/drive/folders/1DgNXvyRz4Xdd6BVPv5-Sexb-d1V1NtAS
> >> https://drive.google.com/open?id=1HLzBq8Mcq6Dwd48BPfm5Z4dHCdiA3j8Y
> >>
> >> ///
> >>
> >> when i run with ndn.Producer it shows me this:
> >> https://drive.google.com/open?id=1RTyVdOgORVIZuK6MNMyosMeraRRM7pLL
> >>
> >> but when i put my custom producer:
> >> https://drive.google.com/open?id=11hqpr04710H_LR_7t0RZFPYQL3YRGaM8
> >>
> >> he displays this message:
> >> https://drive.google.com/open?id=1oqvns-4L5JLliHjZtDH7ss_ueEvET_6G
> >>
> >> besides I try to debug my strategy it does not show anything,
> can you
> >> help me to solve it. thank you very much for your time and listen.
> >>
> >>
> >> Le mar. 16 juil. 2019 à 00:32, Klaus Schneider
> <klaus at cs.arizona.edu <mailto:klaus at cs.arizona.edu>
> >> <mailto:klaus at cs.arizona.edu <mailto:klaus at cs.arizona.edu>>> a
> écrit :
> >>
> >> Dear Bouchrit,
> >>
> >> Maybe if you can post your strategy file and simulation script,
> >> people
> >> will be able to help.
> >>
> >> It may also help to enable debug logging
> >> (https://www.nsnam.org/docs/manual/html/logging.html) and
> post the
> >> output.
> >>
> >>
> >> Best regards,
> >> Klaus
> >>
> >>
> >>
> >> On 7/15/19 12:33 AM, bouchrit leila via ndnSIM wrote:
> >> > Hi all,
> >> >
> >> > Hi, can anyone answer to this question please? I'm still
> unable
> >> to solve it.
> >> >
> >> >
> >> > Le dim. 7 juil. 2019 à 12:08, bouchrit leila
> >> <bouchritleila at gmail.com <mailto:bouchritleila at gmail.com>
> <mailto:bouchritleila at gmail.com <mailto:bouchritleila at gmail.com>>
> >> > <mailto:bouchritleila at gmail.com
> <mailto:bouchritleila at gmail.com>
> >> <mailto:bouchritleila at gmail.com
> <mailto:bouchritleila at gmail.com>>>> a écrit :
> >> >
> >> > Hi all,
> >> >
> >> > I tried to implement my new custom strategy, I
> followed the
> >> > instructions mentionned in the below link:
> >> >
> >>
> >>
> https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/fw/multicast-strategy.cpp#L32-L33
>
> >>
> >> >
> >> > It compiled but the problem is always in the execution
> >> step, so I
> >> > think that the question is how to link my strategy in
> such
> >> scenario?
> >> > I used this instruction
> >> > "ndn::StrategyChoiceHelper::InstallAll("/prefix",
> >> > "/localhost/nfd/strategy/HashStrategy");" but
> without result.
> >> >
> >> > Please, I need your help, would you please send me all
> >> details to
> >> > get the solution?
> >> >
> >> > Thank you in advance,
> >> > Best regards,
> >> >
> >> >
> >> > _______________________________________________
> >> > ndnSIM mailing list
> >> > ndnSIM at lists.cs.ucla.edu
> <mailto:ndnSIM at lists.cs.ucla.edu> <mailto:ndnSIM at lists.cs.ucla.edu
> <mailto:ndnSIM at lists.cs.ucla.edu>>
> >> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> >> >
> >>
>
More information about the ndnSIM
mailing list