114 "Verify that we can actually set the attribute MinTh");
117 "Verify that we can actually set the attribute MaxTh");
121 "Verify that we can actually set the attribute MaxSize");
124 "Verify that we can actually set the attribute QW");
128 if (mode == QueueSizeUnit::BYTES)
134 queue->SetTh(minTh * modeSize, maxTh * modeSize);
135 queue->SetMaxSize(
QueueSize(mode, qSize * modeSize));
158 "There should be no packets in there");
162 "There should be one packet in there");
166 "There should be two packets in there");
175 "There should be eight packets in there");
179 item = queue->Dequeue();
183 "There should be seven packets in there");
186 item = queue->Dequeue();
190 "There should be six packet in there");
193 "Was this the second packet ?");
195 item = queue->Dequeue();
199 "There should be five packets in there");
202 item = queue->Dequeue();
203 item = queue->Dequeue();
204 item = queue->Dequeue();
205 item = queue->Dequeue();
206 item = queue->Dequeue();
208 item = queue->Dequeue();
213 minTh = 70 * modeSize;
214 maxTh = 150 * modeSize;
215 qSize = 300 * modeSize;
218 "Verify that we can actually set the attribute MinTh");
221 "Verify that we can actually set the attribute MaxTh");
225 "Verify that we can actually set the attribute MaxSize");
231 "There should be zero unforced drops");
234 "There should be zero forced dropps");
237 "There should be zero drops due to queue limit");
256 "Verify that we can actually set the attribute MinTh");
259 "Verify that we can actually set the attribute MaxTh");
263 "Verify that we can actually set the attribute MaxSize");
266 "Verify that we can actually set the attribute QW");
269 st = queue->GetStats();
276 maxTh = 100 * modeSize;
280 "Verify that we can actually set the attribute MinTh");
283 "Verify that we can actually set the attribute MaxTh");
287 "Verify that we can actually set the attribute MaxSize");
290 "Verify that we can actually set the attribute QW");
293 st = queue->GetStats();
300 maxTh = 150 * modeSize;
304 "Verify that we can actually set the attribute MinTh");
307 "Verify that we can actually set the attribute MaxTh");
311 "Verify that we can actually set the attribute MaxSize");
314 "Verify that we can actually set the attribute QW");
317 "Verify that we can actually set the attribute LInterm");
320 st = queue->GetStats();
330 "Verify that we can actually set the attribute MinTh");
333 "Verify that we can actually set the attribute MaxTh");
337 "Verify that we can actually set the attribute MaxSize");
340 "Verify that we can actually set the attribute QW");
343 "Verify that we can actually set the attribute Gentle");
346 st = queue->GetStats();
356 "Verify that we can actually set the attribute MinTh");
359 "Verify that we can actually set the attribute MaxTh");
363 "Verify that we can actually set the attribute MaxSize");
366 "Verify that we can actually set the attribute QW");
369 "Verify that we can actually set the attribute Wait");
372 st = queue->GetStats();
380 minTh = 30 * modeSize;
381 maxTh = 90 * modeSize;
384 "Verify that we can actually set the attribute MinTh");
387 "Verify that we can actually set the attribute MaxTh");
391 "Verify that we can actually set the attribute MaxSize");
394 "Verify that we can actually set the attribute QW");
397 "Verify that we can actually set the attribute LInterm");
400 "Verify that we can actually set the attribute Gentle");
403 "Verify that we can actually set the attribute UseECN");
406 st = queue->GetStats();
410 "There should be some unforced drops");
413 "There should be no unforced marks");
419 "Verify that we can actually set the attribute MinTh");
422 "Verify that we can actually set the attribute MaxTh");
426 "Verify that we can actually set the attribute MaxSize");
429 "Verify that we can actually set the attribute QW");
432 "Verify that we can actually set the attribute LInterm");
435 "Verify that we can actually set the attribute Gentle");
438 "Verify that we can actually set the attribute UseECN");
441 st = queue->GetStats();
445 "There should be some unforced drops");
448 "There should be no unforced marks");
454 "Verify that we can actually set the attribute MinTh");
457 "Verify that we can actually set the attribute MaxTh");
461 "Verify that we can actually set the attribute MaxSize");
464 "Verify that we can actually set the attribute QW");
467 "Verify that we can actually set the attribute LInterm");
470 "Verify that we can actually set the attribute Gentle");
473 "Verify that we can actually set the attribute UseECN");
476 st = queue->GetStats();
481 "There should be no unforced drops");
484 "There should be some unforced marks");
488 minTh = 30 * modeSize;
489 maxTh = 90 * modeSize;
492 "Verify that we can actually set the attribute MinTh");
495 "Verify that we can actually set the attribute MaxTh");
499 "Verify that we can actually set the attribute MaxSize");
502 "Verify that we can actually set the attribute QW");
505 "Verify that we can actually set the attribute LInterm");
508 "Verify that we can actually set the attribute Gentle");
511 st = queue->GetStats();
515 "There should some dropped packets due to probability mark");
521 "Verify that we can actually set the attribute MinTh");
524 "Verify that we can actually set the attribute MaxTh");
528 "Verify that we can actually set the attribute MaxSize");
531 "Verify that we can actually set the attribute QW");
534 "Verify that we can actually set the attribute LInterm");
537 "Verify that we can actually set the attribute Gentle");
540 "Verify that we can actually set the attribute FengAdaptive");
543 st = queue->GetStats();
547 "Test 12 should have less drops due to probability mark than test 11");
551 minTh = 30 * modeSize;
552 maxTh = 90 * modeSize;
555 "Verify that we can actually set the attribute MinTh");
558 "Verify that we can actually set the attribute MaxTh");
562 "Verify that we can actually set the attribute MaxSize");
565 "Verify that we can actually set the attribute QW");
568 "Verify that we can actually set the attribute LInterm");
571 "Verify that we can actually set the attribute Gentle");
574 "Verify that we can actually set the attribute NLRED");
577 st = queue->GetStats();
581 "Test 13 should have less drops due to probability mark than test 11");