Posts

Study the effect of delayed ACKs on TCP throughput in a point-to-point link | NS3 Project 26

Image
  Study the effect of delayed ACKs on TCP throughput in a point-to-point link. tcp-delayed-ack.cc #include "ns3/core-module.h"   #include "ns3/network-module.h"  #include "ns3/internet-module.h"  #include "ns3/point-to-point-module.h"  #include "ns3/applications-module.h"  #include "ns3/flow-monitor-module.h"    using namespace ns3;    NS_LOG_COMPONENT_DEFINE("TcpDelayedAckStudy");    int mai n(int argc, char *argv[]) {      bool delayedAck = true;      uint32_t delayedAckCount = 2;   // ACK every N segments      std::string tcpVariant = "TcpNewReno";      double simTime = 10.0;        CommandLine cmd;      cmd.AddValue("delayedAck", "Enable delayed A CKs", delayedAck);      cmd.AddValue("delayedAckCount", "Segments before ACK", delayedAckCount);      c...

Simulate Multiple Concurrent FTP Sessions and Analyze Aggregate Throughput | NS3 Project 25

Image
      Simulate Multiple Concurrent FTP Sessions and Analyze Aggregate Throughput Simulation Environment: ns-3  |  Tool s Used : FlowMonitor, NetAnim, TraceMetrics   1. Objective The primary objective of this experiment is to simulate a network scenario in which multiple concurrent File Transfer Protocol (FTP)-like sessions operate simultaneously over a shared network infrastructure. Using the ns-3 discrete-event network simulator, the study models seven independent TCP bulk-send flows that traverse a common bottleneck link. The experiment aims to measure and analyze the individual throughput of each flow as well as the aggregate throughput delivered to the single receiver node. By configuring access links w ith high capacity and constraining the router-to-receiver link to a narrow bandwidth, the simulation deliberately induces congestion to study how TCP's congestion control mechanisms influence flow behavior, resource sharing, and overall network effici...