Skip to main content

Posts

Simulation of TCP NewReno vs. TCP Cubic with Varying Round Trip Time (RTT) and Throughput Analysis using NS-3

Recent posts

Study the Effect of Buffer Size on Packet Loss in a Point-to-Point Router with UDP CBR Traffic

Study the Effect of Buffer Size on Packet Loss in a Point-to-Point Router with UDP CBR Traffic Problem Statement: Study the effect of buffer size on packet loss in a point-to-point router with UDP CBR traffic. Source Code: #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" #include "ns3/netanim-module.h" #include <fstream> // Required for writing data to the text file using namespace ns3; int main ( int argc, char *argv[]) { // 1. Default Variables and Command Line Parsing uint32_t bufferSize = 10 ; // Default buffer size in packets CommandLine cmd; cmd.AddValue ( "bufferSize" , "Max number of packets in Queue" , bufferSize); cmd.Parse (argc, argv); // 2. Node Creation NodeC...

Simulate TCP Variant Comparison Under Bursty ON/OFF Traffic Model

Simulate TCP Variant Comparison Under Bursty ON/OFF Traffic Model In this assignment, we simulate and compare TCP NewReno and TCP Vegas using NS-3 under a bursty ON/OFF traffic pattern. A congested network is created to observe how both variants behave in terms of throughput, delay, and packet loss. This helps in understanding the difference between loss-based and delay-based congestion control and how each performs in real network conditions. Using TCP NewReno Code: (24BPS1039.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/netanim-module.h" #include "ns3/flow-monitor-module.h" using namespace ns3; int main () { Config::SetDefault( "ns3::TcpL4Protocol::SocketType" , TypeIdValue(TypeId::LookupByName( "ns3::TcpNewReno" ))...