@@ -58,36 +58,32 @@ ScenarioImpl::DestroyTrace (EvaluationTopology et)
58
58
void
59
59
ScenarioImpl::ConfigureQueueDisc (uint32_t limit, uint32_t pktsize, std::string linkbw, std::string linkdel, std::string mode)
60
60
{
61
- Config::SetDefault (" ns3::PfifoFastQueueDisc::Limit " , UintegerValue ( limit));
61
+ Config::SetDefault (" ns3::PfifoFastQueueDisc::MaxSize " , StringValue ( std::to_string ( limit) + " p " ));
62
62
63
- Config::SetDefault (" ns3::RedQueueDisc::Mode" , StringValue (mode));
64
63
Config::SetDefault (" ns3::RedQueueDisc::MeanPktSize" , UintegerValue (pktsize));
65
64
Config::SetDefault (" ns3::RedQueueDisc::LinkBandwidth" , StringValue (linkbw));
66
65
Config::SetDefault (" ns3::RedQueueDisc::LinkDelay" , StringValue (linkdel));
67
66
68
- Config::SetDefault (" ns3::CoDelQueueDisc::Mode" , StringValue (mode));
69
- Config::SetDefault (" ns3::CoDelQueueDisc::MaxPackets" , UintegerValue (limit));
70
- Config::SetDefault (" ns3::CoDelQueueDisc::MaxBytes" , UintegerValue (limit * pktsize));
67
+ Config::SetDefault (" ns3::CoDelQueueDisc::MaxSize" , StringValue (std::to_string (limit) + " p" ));
71
68
Config::SetDefault (" ns3::CoDelQueueDisc::MinBytes" , UintegerValue (pktsize));
72
69
73
- Config::SetDefault (" ns3::PieQueueDisc::Mode" , StringValue (mode));
74
70
Config::SetDefault (" ns3::PieQueueDisc::MeanPktSize" , UintegerValue (pktsize));
75
71
76
72
if (mode == " QUEUE_DISC_MODE_PACKETS" )
77
73
{
78
- Config::SetDefault (" ns3::RedQueueDisc::QueueLimit " , UintegerValue ( limit));
74
+ Config::SetDefault (" ns3::RedQueueDisc::MaxSize " , StringValue ( std::to_string ( limit) + " p " ));
79
75
Config::SetDefault (" ns3::RedQueueDisc::MinTh" , DoubleValue (5 ));
80
76
Config::SetDefault (" ns3::RedQueueDisc::MaxTh" , DoubleValue (15 ));
81
77
82
- Config::SetDefault (" ns3::PieQueueDisc::QueueLimit " , UintegerValue ( limit));
78
+ Config::SetDefault (" ns3::PieQueueDisc::MaxSize " , StringValue ( std::to_string ( limit) + " p " ));
83
79
}
84
80
else
85
81
{
86
- Config::SetDefault (" ns3::RedQueueDisc::QueueLimit " , UintegerValue (limit * pktsize));
82
+ Config::SetDefault (" ns3::RedQueueDisc::MaxSize " , StringValue ( std::to_string (limit * pktsize) + " B " ));
87
83
Config::SetDefault (" ns3::RedQueueDisc::MinTh" , DoubleValue (5 * pktsize));
88
84
Config::SetDefault (" ns3::RedQueueDisc::MaxTh" , DoubleValue (15 * pktsize));
89
85
90
- Config::SetDefault (" ns3::PieQueueDisc::QueueLimit " , UintegerValue ( limit * pktsize));
86
+ Config::SetDefault (" ns3::PieQueueDisc::MaxSize " , StringValue ( std::to_string ( limit * pktsize) + " B " ));
91
87
}
92
88
}
93
89
0 commit comments