[ndnSIM] ndnSIM compatibility with packet loss simulation

Saran Tarnoi sarantarnoi at gmail.com
Sun Apr 14 21:18:09 PDT 2013

Dear Alex,

I spent some time this morning to implement a simple link-error-rate
configuration ability in Topology file.
As you have told me, it's quite simple.
I added several lines to AnnotatedTopologyReader.cc.
Would you kindly check it.
The usage is just adding some loss rate data in the most right column of
the link section in the Topology file.
I will added more functions and let you consider binding it to the
official branch of ndnSIM in the future.

Saran Tarnoi

2013/4/13 Saran Tarnoi <sarantarnoi at gmail.com>

> Hi Alex,
> The simulation of different error rates on different links is my intention.
> I think It does make sense to create a solution that fits well any of
> error model.
> Once ndnSim is used for the simulation of multimedia streaming, the
> different error models may result in different quality of the received data
> at a destination.
> I think It is positive to have this function, though it is not necessary
> for my case now.
> Thanks,
> Saran
> On Apr 13, 2013 2:40 AM, "Alex Afanasyev" <alexander.afanasyev at ucla.edu>
> wrote:
>> Hi Saran,
>> Do you need a precise control over which error rate is set on which link,
>> or you want to just set the same error rate on all links?
>> I think, it could be possible and relatively simple to add this function
>> to AnnotatedTopologyReader.  Are there just two parameters you mentioned or
>> there is something else to be configured?  I see that there are also other
>> error models available in NS-3 (BinaryErrorModel, ListErrorModel, and
>> ReceiveListErrorModel).  Would it make sense to create a solution to allow
>> any of these models?   I'm not quite sure how exactly to extend the reader,
>> so the solution is general enough...
>> ---
>> Alex
>> On Apr 11, 2013, at 11:12 PM, Saran Tarnoi <sarantarnoi at gmail.com> wrote:
>> > Dear Alex and All,
>> >
>> > I see an example code in ns-3 that simulates simple packet loss by
>> setting an attribute of RateErrorMode in Netdevice.
>> > I guest that ndnSIM also support this.
>> >
>> > There will be hundreds of links in my simulating networks.
>> > I cannot do manually link configuration, so using topology file is my
>> choice.
>> > However, I have no idea how to set the ErrorRate and ErrorUnit of each
>> link in the topology file that will be later read by using
>> AnnotatedTopologyReader.
>> >
>> > If you know the solution, please give me some ideas.
>> > Thanks a lot in advance for your time.
>> >
>> > --
>> > Regards,
>> > Saran
>> >
>> > _______________________________________________
>> > ndnSIM mailing list
>> > ndnSIM at lists.cs.ucla.edu
>> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

Saran Tarnoi
Graduate Student
Department of Informatics
The Graduate University for Advanced Studies (Sokendai)
Tokyo, Japan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130415/c6b52e0a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotated-topology-reader.cc
Type: application/octet-stream
Size: 13953 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130415/c6b52e0a/attachment.obj>

More information about the ndnSIM mailing list