maahmed24712 / Comparison-of-Manet-Routing-Protocols

The NS3 project analyses mobile ad hoc networks (MANETs) by varying node count and routing protocols. Using NS3, it evaluates packet delivery rate, throughput, and packet loss. Users input node count and routing protocol (AODV, DSDV, or OLSR) for the simulation.
GNU Lesser General Public License v2.1
6 stars 2 forks source link

error while executing #1

Open sai-kumar2413 opened 10 months ago

sai-kumar2413 commented 10 months ago

i am getting an error while executing the code ns3.39

aborted. cond="ndi->second.m_rootQueueDisc", msg="Cannot install a root queue disc on a device already having one. Delete the existing queue disc first.", +0.000000000s -1 file=/home/sai/ns-allinone-3.39/ns-3.39/src/traffic-control/model/traffic-control-layer.cc, line=233 NS_FATAL, terminating terminate called without an active exception Command 'build/scratch/ns3.39-source-code-default' died with <Signals.SIGABRT: 6>.

can resolve it? Screenshot 2023-11-08 190631

maahmed24712 commented 10 months ago

I went to the ‘ns-3.29/src/traffic-control/model’ directory and opened the ‘traffic-control-layer.cc’ file. I commented out lines 209-211, which then allowed me to change the existing ‘DropTail’ queue to a FIFO queue.

Kikashii commented 5 months ago

which lines did you comment? Can you paste them here?

Superdog-ccr commented 2 months ago

U can try to uninstall the existing queue before install a root queue and it will work:

TrafficControlHelper tch;
tch.Uninstall(devices);
tch.SetRootQueueDisc("ns3::FifoQueueDisc");
tch.Install(devices);