Posts

To study the impact of channel error rate on Stop-and-Wait vs. GBN efficiency in a point-to-point link | NS3 Project 27

Image
To s tudy the impact of channel error rate on Stop-and-Wait vs. GBN efficiency in a point-to-point link. 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/error- model.h " #include "ns3/flow-monitor- module.h "   using namespace ns3;   NS_LOG_COMPONENT_DEFINE (" StopWaitVsGBN ");   int main (int argc , char * argv [ ]) {     double errorRate = 0.00001; // change this for experiment     uint32_t packetSize = 1024;     std:: string dataRate = "5Mbps";       CommandLine cmd ;     cmd.AddValue (" errorRate ", "Bit error rate", errorRate );     cmd.Parse ( argc , argv );       NodeContainer nodes;     nodes.Create (2);       PointToPointHelper p2p;     p2p.Se...