...
PointToPointHelper p2p;
p2p.SetDeviceAttribute ("DataRate", DataRateValue (DataRate (3000000)));
p2p.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (10)));
p2p.SetQueue("ns3::DropTailQueue", "Mode", StringValue ("QUEUE_MODE_PACKETS"));
NetDeviceContainer d1d3 = p2p.Install (n1n3);
NetDeviceContainer d4d5 = p2p.Install (n4n5);
PointToPointHelper bottleneck;
bottleneck.SetDeviceAttribute ("DataRate", DataRateValue (DataRate (1500000)));
bottleneck.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (10)));
//bottleneck.SetQueue("ns3::DropTailQueue", "Mode", StringValue ("QUEUE_MODE_PACKETS"), "MaxPackets", UintegerValue (1));
bottleneck.SetQueue("ns3::DropTailQueue", "MaxPackets", UintegerValue (1));
NetDeviceContainer d3d4 = bottleneck.Install (n3n4);
TrafficControlHelper tch;
//tch.SetRootQueueDisc ("ns3::RedQueueDisc");
tch.SetRootQueueDisc ("ns3::PfifoFastQueueDisc", "Limit", UintegerValue (1));
QueueDiscContainer qdiscs = tch.Install (d3d4);
...