Skip to content

Commit

Permalink
Merged multiple flow setup into the new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
charliebarber committed Apr 6, 2024
1 parent a824f83 commit cae8828
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
1 change: 0 additions & 1 deletion src/combined-baseline-no-udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ int main(int argc, char* argv[])
Ipv4GlobalRoutingHelper::PopulateRoutingTables();
// Receiver address
Ipv4Address receiver_addr = interfaces_3_5.GetAddress(1);
std::cout << receiver_addr << std::endl;
// UDP Congestion traffic setup
uint16_t udp_port = 50001;
OnOffHelper udp_source("ns3::UdpSocketFactory",
Expand Down
24 changes: 0 additions & 24 deletions src/combined-baseline-udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,31 +324,7 @@ int main(int argc, char* argv[])
ApplicationContainer udp_sink_app = udp_sink.Install(nodes.Get(4));
udp_sink_app.Start(Seconds(0.0));
udp_sink_app.Stop(Seconds(20.0));
// SimulationQueue::sinkAddress =
// Mac48Address::ConvertFrom(getDevice<1>(devices_3_5)->GetAddress());
// NOTE: Is TrafficControlHelper needed here?

// CalculateExpectedPackets(10000, DataRate("1Mbps"));

// LFA Alternate Path setup
// Set up an alternate forwarding target, assuming you have an alternate
// path configured

// TODO: Need some help with setting alternate target
// setAlternateTarget<0>(
// devices_2_3, getDevice<0, ns3::PointToPointNetDevice>(devices_2_4));
// setAlternateTarget<1>(
// devices_2_3, getDevice<1, ns3::PointToPointNetDevice>(devices_4_3));
// setAlternateTarget<0>(devices01, getDevice<0>(devices02));
// setAlternateTarget<0>(devices02, getDevice<0>(devices01));

// setAlternateTarget<0>(devices12, getDevice<1>(devices01));
// setAlternateTarget<1>(devices01, getDevice<0>(devices12));

// setAlternateTarget<1>(devices02, getDevice<1>(devices12));
// setAlternateTarget<1>(devices12, getDevice<1>(devices02));

// enableRerouting(getQueue<0>(devices_2_3));
p2p_traffic.EnablePcapAll(dir);
p2p_congestion.EnablePcapAll(dir);

Expand Down
1 change: 1 addition & 0 deletions src/combined-frr-no-udp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ int main(int argc, char* argv[])
PacketSinkHelper udp_sink(
"ns3::UdpSocketFactory",
InetSocketAddress(Ipv4Address::GetAny(), udp_port));

ApplicationContainer udp_sink_app = udp_sink.Install(nodes.Get(4));
udp_sink_app.Start(Seconds(2.0));
udp_sink_app.Stop(Seconds(10.0));
Expand Down

0 comments on commit cae8828

Please sign in to comment.