@@ -78,15 +78,15 @@ main (int argc, char *argv[])
7878 uint16_t pktSize = 1000 ; // in Bytes. 1458 to prevent fragments, default 512
7979
8080 // h1 -> h3 with 2.0Mbps, h2 -> h4 with 1.0Mbps
81- std::string appDataRate[] = {" 2.0Mbps " , " 1.0Mbps " };
81+ std::string appDataRate[] = {" 20Mbps " , " 10Mbps " };
8282
83- P4GlobalVar::g_switchBottleNeck = 2430 ; // 1 / 445 = 2247 2450
83+ P4GlobalVar::g_switchBottleNeck = 200 ; // f
8484 double global_start_time = 1.0 ;
8585 double sink_start_time = global_start_time + 1.0 ;
8686 double client_start_time = global_start_time + 2.0 ;
8787 double client_stop_time = client_start_time + 10 ;
88- double sink_stop_time = client_stop_time + 10 ;
89- double global_stop_time = client_stop_time + 10 ;
88+ double sink_stop_time = client_stop_time + 5 ;
89+ double global_stop_time = client_stop_time + 5 ;
9090
9191 // P4 simulation paths
9292 // P4GlobalVar::HomePath = "/home/p4/workdir/";
@@ -369,7 +369,7 @@ main (int argc, char *argv[])
369369 onOff1.SetAttribute (" DataRate" , StringValue (appDataRate[0 ]));
370370 onOff1.SetAttribute (" OnTime" , StringValue (" ns3::ConstantRandomVariable[Constant=1]" ));
371371 onOff1.SetAttribute (" OffTime" , StringValue (" ns3::ConstantRandomVariable[Constant=0]" ));
372- onOff1.SetAttribute (" MaxBytes" , UintegerValue (3000 ));
372+ // onOff1.SetAttribute ("MaxBytes", UintegerValue (3000));
373373
374374 ApplicationContainer app1 = onOff1.Install (terminals.Get (clientI));
375375 app1.Start (Seconds (client_start_time));
@@ -395,7 +395,7 @@ main (int argc, char *argv[])
395395 onOff2.SetAttribute (" DataRate" , StringValue (appDataRate[0 ]));
396396 onOff2.SetAttribute (" OnTime" , StringValue (" ns3::ConstantRandomVariable[Constant=1]" ));
397397 onOff2.SetAttribute (" OffTime" , StringValue (" ns3::ConstantRandomVariable[Constant=0]" ));
398- onOff2.SetAttribute (" MaxBytes" , UintegerValue (5000 ));
398+ // onOff2.SetAttribute ("MaxBytes", UintegerValue (5000));
399399
400400 ApplicationContainer app2 = onOff2.Install (terminals.Get (clientI));
401401 app2.Start (Seconds (client_start_time));
0 commit comments