[help] having error in SetQueue

73 views
Skip to first unread message

DUO CHENG

unread,
Nov 6, 2021, 8:33:55 PM11/6/21
to ns-3-users
Hi all,

I'm receiving a error message like this:

  • msg="Invalid attribute set (MaxPackets) on ns3::DropTailQueue<Packet>", +0.000000000s -1 file=../src/core/model/object-factory.cc, line=78

and I think this is the line of code causing the error:
  •  pointToPoint.SetQueue("ns3::DropTailQueue<Packet>","MaxPackets",StringValue("1000p"));
How should I modify this? I'm using the latest version of ns3. 

Thanks!

Tom Henderson

unread,
Nov 6, 2021, 8:50:03 PM11/6/21
to ns-3-...@googlegroups.com, DUO CHENG
On 11/6/21 5:33 PM, DUO CHENG wrote:
> Hi all,
>
> I'm receiving a error message like this:
>
> * msg="Invalid attribute set (MaxPackets) on
> ns3::DropTailQueue<Packet>", +0.000000000s -1
> file=../src/core/model/object-factory.cc, line=78
>
>
> and I think this is the line of code causing the error:
>
> *  pointToPoint.SetQueue("ns3::DropTailQueue<Packet>","MaxPackets",StringValue("1000p"));
>
> How should I modify this? I'm using the latest version of ns3.

Try:

pointToPoint.SetQueue ("ns3::DropTailQueue", "MaxSize", StringValue
("1000p"));
Reply all
Reply to author
Forward
0 new messages