Config::SetDefault ("ns3::TcpSocket::SegmentSize", UintegerValue (1024)); // 1024-byte packet for easier reading
Config::SetDefault ("ns3::TcpSocket::DelAckCount", UintegerValue (1));
Config::SetDefault ("ns3::TcpSocket::SegmentSize", UintegerValue (1024)); // 1024-byte packet for easier reading
Config::SetDefault ("ns3::TcpSocket::DelAckCount", UintegerValue (1));
XBT_DEBUG("Assign IP Addresses %s to CSMA.",adr);
Ipv4AddressHelper ipv4;
ipv4.SetBase (adr, "255.255.0.0");
XBT_DEBUG("Assign IP Addresses %s to CSMA.",adr);
Ipv4AddressHelper ipv4;
ipv4.SetBase (adr, "255.255.0.0");
pointToPoint.SetChannelAttribute ("Delay", StringValue (lat));
//pointToPoint.EnablePcapAll("test_ns3_trace"); //DEBUG
pointToPoint.SetChannelAttribute ("Delay", StringValue (lat));
//pointToPoint.EnablePcapAll("test_ns3_trace"); //DEBUG
netA.Add(pointToPoint.Install (a, type_src, b, type_dst));
netA.Add(pointToPoint.Install (a, type_src, b, type_dst));
char * adr = bprintf("%d.%d.0.0",number_of_networks,number_of_links);
address.SetBase (adr, "255.255.0.0");
char * adr = bprintf("%d.%d.0.0",number_of_networks,number_of_links);
address.SetBase (adr, "255.255.0.0");