Use RateErrorModel in ns3-dce

376 views
Skip to first unread message

Igor Lopez Orbe

unread,
Sep 20, 2013, 8:44:41 AM9/20/13
to ns-3-...@googlegroups.com
Hello,

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)?

Thanks in advance,

Igor

Hajime Tazaki

unread,
Sep 25, 2013, 3:27:54 AM9/25/13
to ns-3-...@googlegroups.com

At Fri, 20 Sep 2013 05:44:41 -0700 (PDT),
Igor Lopez Orbe wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
I think this is out of DCE issue; ns3::Node class has no
implementation of ErrorModel handling. You can use
ns3::PointToPointNetDevice class as tcp-nsc-lfn.cc example
does.

p2pInterfaces.Get (0)->SetAttribute ("ReceiveErrorModel", PointerValue (em1));

hope this will help.

-- Hajime

Igorlor

unread,
Sep 25, 2013, 3:46:49 AM9/25/13
to ns-3-...@googlegroups.com
Hello,

az., 2013.eko iraren 25a 09:27(e)an, Hajime Tazaki(e)k idatzi zuen:
Finally I used the dce-mptcp-lte-wifi model as a guide:

devices2 = pointToPoint.Install (nodes.Get (1), pgw);
devices2.Get (0)->SetAttribute ("ReceiveErrorModel", PointerValue (em1));

Anyway thank you very much for your answer.

Regards,

Igor
Reply all
Reply to author
Forward
0 new messages