How to change the data rate between two nodes during the simulation in NS-3?
问题 A Server is connected to an Access point via point to point link of 10Mb/s. PointToPointHelper p2p; p2p.SetDeviceAttribute ("DataRate", StringValue("10Mbps")); wanIpDevices = p2p.Install (ServerNode, ApNode); //only relevant code added How can I change the data rate of this link to 5Mb/s after 100 seconds of simulation. I tried the code below but it didn't work. double timeNow = Simulator::Now().GetSeconds(); Simulator::Run(); if (timeNow==100.0) { p2p.SetDeviceAttribute ("DataRate",