I set the transmission range of node A to 3500m, but sometimes the nodes outside 4000m receive requests directly sent by node A. Every time node A sends a request packet, I print its transmission range , which is always 3500m, but that's what happened. Here is my code.
AquaSimChannelHelper channel = AquaSimChannelHelper::Default();
if (range>0){
channel.SetPropagation("ns3::AquaSimRangePropagation");
}
AquaSimHelper asHelper = AquaSimHelper::Default();
Ptr c = channel.Create();
asHelper.SetChannel(c);
....
if (range>0){
sink->GetPhy()->SetTransRange(range);
dev1->GetPhy()->SetTransRange(range);
dev2->GetPhy()->SetTransRange(range);
dev3->GetPhy()->SetTransRange(range);
dev4->GetPhy()->SetTransRange(range);
I set the transmission range of node A to 3500m, but sometimes the nodes outside 4000m receive requests directly sent by node A. Every time node A sends a request packet, I print its transmission range , which is always 3500m, but that's what happened. Here is my code.
AquaSimChannelHelper channel = AquaSimChannelHelper::Default(); if (range>0){ channel.SetPropagation("ns3::AquaSimRangePropagation"); } AquaSimHelper asHelper = AquaSimHelper::Default(); Ptr c = channel.Create();
asHelper.SetChannel(c);
....
if (range>0){
sink->GetPhy()->SetTransRange(range);
dev1->GetPhy()->SetTransRange(range);
dev2->GetPhy()->SetTransRange(range);
dev3->GetPhy()->SetTransRange(range);
dev4->GetPhy()->SetTransRange(range);