c++ - How does "ErrorRate" works in NS3? -
i want set error rate in ns3, 1%-10%, following correct?
ptr<rateerrormodel> em = createobjectwithattributes<rateerrormodel> ( "ranvar", randomvariablevalue (uniformvariable (0., 1.)), "errorrate", doublevalue (0.1)); netdevices.get(0)->setattribute("receiveerrormodel", pointervalue (em)); i think it's ok, result not want. explain me how "errorrate" works in ns3?
Comments
Post a Comment