[ndnSIM] ndn-cxx api with multithreading

中村真也 nakamura at c.info.eng.osaka-cu.ac.jp
Tue Nov 21 19:25:36 PST 2017


Thank you for replying.

yes, I know ndnSIM supports MPI but this is for speeding up.

For achive my purpose, is there a way to send some interest simultaneously.
e.g. send Interest /A,/B,/C at the same time and receive data.

 
--------------------------------------------------- 
大阪市立大学 工学部 電子情報系専攻
情報通信領域 M1
中村 真也(Masaya Nakamura )
nakamura at c.info.eng.osaka-cu.ac.jp 
---------------------------------------------------


> 2017/11/22 2:00、Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu>のメール:
> 
> Hi,
> 
> In general, NS-3 (and as a result ndnSIM too) is single-threaded. Multi-threading is only supported in NS-3 through the MPI framework:
> 
> http://ndnsim.net/2.4/parallel-simulations.html <http://ndnsim.net/2.4/parallel-simulations.html>
> https://stackoverflow.com/questions/35543906/parallel-simulations-using-ns3-and-stdthread <https://stackoverflow.com/questions/35543906/parallel-simulations-using-ns3-and-stdthread>
> http://ndnsim.net/2.4/parallel-simulations.html#simple-scenario-with-mpi-support <http://ndnsim.net/2.4/parallel-simulations.html#simple-scenario-with-mpi-support>
> 
> I am not sure though how (and whether) it would be possible to parallelize an ndn-cxx app in ndnSIM.
> 
> Thanks,
> 
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
> Internet Research Laboratory
> Computer Science Department
> UCLA
> 
>> On Nov 21, 2017, at 1:02 AM, 中村真也 <nakamura at c.info.eng.osaka-cu.ac.jp <mailto:nakamura at c.info.eng.osaka-cu.ac.jp>> wrote:
>> 
>> hi all. im new to ndnSIM. And i’d like to simulate my ndn-cxx app that generate multithread.
>> but ndnSIM does not support thread.
>> Actually, simulation called "terminate called without an active exception”
>> Let me know the way to run functions in parallel.
>> 
>> also, I want to know the details on how. If possible, let me see sample code.
>> 
>> best
>> --------------------------------------------------- 
>> Osaka City University
>> 中村 真也(Masaya Nakamura )
>> nakamura at c.info.eng.osaka-cu.ac.jp <mailto:nakamura at c.info.eng.osaka-cu.ac.jp> 
>> ---------------------------------------------------
> 

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


More information about the ndnSIM mailing list