tcp: Update ns3-tcp-cubic-test and tcp-validation example validations

This commit is contained in:
Aniket Singh
2024-09-18 11:25:05 +05:30
committed by Tom Henderson
parent 2fbb5de93a
commit 748b784346
2 changed files with 5 additions and 5 deletions

View File

@@ -231,10 +231,10 @@ TraceFirstDctcp(std::ofstream* ofStream, uint32_t bytesMarked, uint32_t bytesAck
NS_LOG_WARN("now " << Now().As(Time::S) << " alpha " << alpha << " (expected <= 0.1)");
g_validationFailed = true;
}
if ((now > 7) && ((alpha > 0.09) || (alpha < 0.055)))
if ((now > 7) && ((alpha > 0.09) || (alpha < 0.049)))
{
NS_LOG_WARN("now " << Now().As(Time::S) << " alpha " << alpha
<< " (expected 0.09 <= alpha <= 0.055)");
<< " (expected 0.09 <= alpha <= 0.049)");
g_validationFailed = true;
}
}

View File

@@ -348,7 +348,7 @@ Ns3TcpCubicTestCase::DoRun()
if (m_prefix == "ns3-tcp-cubic-no-heuristic")
{
// Check overall min and max
NS_TEST_ASSERT_MSG_EQ(CheckValues(Seconds(1), Seconds(19), 50, 90),
NS_TEST_ASSERT_MSG_EQ(CheckValues(Seconds(1), Seconds(19), 60, 98),
true,
"cwnd outside range");
// Time just before a reduction does not have much variation
@@ -359,7 +359,7 @@ Ns3TcpCubicTestCase::DoRun()
else if (m_prefix == "ns3-tcp-cubic-fast-conv")
{
// Check overall min and max
NS_TEST_ASSERT_MSG_EQ(CheckValues(Seconds(1), Seconds(19), 50, 90),
NS_TEST_ASSERT_MSG_EQ(CheckValues(Seconds(1), Seconds(19), 60, 98),
true,
"cwnd outside range");
// Initial convex region does not have much variation
@@ -375,7 +375,7 @@ Ns3TcpCubicTestCase::DoRun()
true,
"cwnd outside range");
// After time 17.5, cwnd should have grown much higher
NS_TEST_ASSERT_MSG_EQ(CheckValues(Seconds(17.5), Seconds(18.5), 170, 215),
NS_TEST_ASSERT_MSG_EQ(CheckValues(Seconds(17.5), Seconds(18.5), 169, 215),
true,
"cwnd outside range");
}