I am trying to use the RateErrorModel with the configuration seen at tcp-nsc-lfn.cc example but when I try to run it (with no compilation problem) I get the following error:
msg="Attribute name=ReceiveErrorModel does not exist for this object: tid=ns3::Node", file=../src/core/model/object-base.cc, line=167
terminate called without an active exception
The code bellow generates the problem:
// Left link
pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("100Mbps"));
pointToPoint.SetChannelAttribute ("Delay", StringValue ("1ns"));
nodes.Get (0)->SetAttribute ("ReceiveErrorModel", PointerValue (em1));
devices1 = pointToPoint.Install (nodes.Get (0), routers.Get (i));
By the way, I am using the dce-iperf-mptcp.cc example which uses the network stack of a Linux kernel for nodes, could be this the problem? In case of being the problem how could I simulate a link with an error rate (to generate packet loss)?