// Default Network Topology// emu{i}// |// +------------+// | tap-bridge |// +--------+ +------------+// | Server | | Csma ghost |// +--------+ +------------+// | |2// | 10.1.{i}.0// | | 1// | +--------------+// emu0 | Csma ghost |// +----------+ +------------+// | tap | | p2p |// | bridge | +------------+// +----------+ +---------+ 1 10.3.{i}.0 2 |// | CSMA0 | | p2p | -------------------------+// +----------+ +---------+ 1// | |CSMA0 |// | +---------+// |0 10.1.100.0 5 |// +-------------------------+//
NodeContainer outputNodes,p2ppeer{i},csmapeer{i};outputNodes.Create (noutputNodes);p2ppeer{i}.Add( outputNodes.Get (0));p2ppeer{i}.Create (1);csmapeer{i}.Add( p2ppeer{i}.Get (1));csmapeer{i}.Create (1);NetDeviceContainer outputDevices,p2ppeer{i}Devices,csmapeer{i}Devices;// CSMA channelCsmaHelper csma;csma.SetChannelAttribute ("DataRate", StringValue ("1Gbps"));csma.SetChannelAttribute ("Delay", TimeValue (NanoSeconds (1)));outputDevices = csma.Install (outputNodes);csmapeer{i}Devices = csma.Install (csmapeer{i});Ptr<NetDevice> devicepeer{i} = outputDevices.Get (0);devicepeer{i}->SetAddress (Mac48Address ("aa:ff:00:00:00:{I}"));// point-to-point channelsPointToPointHelper pointToPoint;pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("2Mbps"));pointToPoint.SetChannelAttribute ("Delay", StringValue ("1ms"));p2ppeer{i}Devices = pointToPoint.Install (p2ppeer{i});
Whenever I start uploading and downloading at the same time, the download bandwidth is dropped, and when I stop uplading the bandwidth goes back to 2Mbps
Then that's ally surprising !
I am using the 3.29 version. I also changed the queue maxSize to 25 packets. then added BQL where I got the best performance !
OK, with ns-3.30, FqCoDel with BQL is now the default.
- Tom