A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
tcp-fack-test.cc File Reference

Unit test for the TCP Forward Acknowledgment (FACK) implementation. More...

#include "tcp-error-model.h"
#include "tcp-general-test.h"
#include "ns3/assert.h"
#include "ns3/log.h"
#include "ns3/node.h"
#include "ns3/simple-channel.h"
#include "ns3/tcp-header.h"
#include "ns3/tcp-tx-buffer.h"
#include "ns3/test.h"
Include dependency graph for tcp-fack-test.cc:

Go to the source code of this file.

Classes

class  TcpFackTest
 Test case for Forward Acknowledgment(FACK). More...
class  TcpFackTestSuite
 Test suite for verifying the behavior of the TCP FACK implementation under controlled packet loss scenarios. More...

Variables

static TcpFackTestSuite g_tcpFackTestSuite
 Static variable for test initialization.

Detailed Description

Unit test for the TCP Forward Acknowledgment (FACK) implementation.

This unit test creates a short packet flow and forces four consecutive lost segments, and verifies that the snd.fack variable is updated to the highest sequence number present in the incoming SACK blocks, and that its external calculation of awnd matches the internal state variable.

Definition in file tcp-fack-test.cc.

Variable Documentation

◆ g_tcpFackTestSuite

TcpFackTestSuite g_tcpFackTestSuite
static

Static variable for test initialization.

Definition at line 193 of file tcp-fack-test.cc.