Adding queue models to bottleneck nodes (see example)

82 views
Skip to first unread message

KeNn Lin

unread,
Nov 14, 2012, 1:50:58 AM11/14/12
to ns-3-...@googlegroups.com
Dear all,

I have set up my topology as follows:

n1 -
      -
       - n3 --- n4 --- n5
      -
     -
n2-

I have 2 tcp flow from n1 to n5 and n2 to n5 and i want to add queue models RED at n3 and droptail at n4

I understand that i can add queue using pointtopointhelper, so i have tried the following:
p2p.SetQueue ("ns3::DropTailQueue");
NetDeviceContainer devn1n3 = p2p.Install (n1n3);
NetDeviceContainer devn2n3 = p2p.Install (n2n3);
p2p.SetQueue ("ns3::RedQueue");
NetDeviceContainer devn1n3 = p2p.Install (n3n4);
NetDeviceContainer devn2n3 = p2p.Install (n4n5);

May I know if this is correct?


KeNn Lin

unread,
Nov 14, 2012, 6:51:32 AM11/14/12
to ns-3-...@googlegroups.com
Any ideas??
Reply all
Reply to author
Forward
0 new messages