Hello All,

I have added new functionality where the first node broadcasts packet and
the rest of the nodes passes the packets transmitted by the first node.
Retransmission feature is available for nodes which is defined as
"Repeater".

Please copy and replace the attached pbc.{h,cc} files at
~/ns-allinone-2.34/ns2.34/apps/ folder. I am using “Fedora 20 – Heisenberg”
so I had to copy paste the files at that location and from the command
terminal
   1. cd <your_location>/ns-allinone-2.34/ns2.34/apps/
   2. make; sudo make install
   3. <provide password if asked>
   4. Then go to the folder where the tcl file is, which in my case is at
~/ns-allinone-2.34/my_scripts/
   5. ns <tclfilename>.tcl

The line added is "$agent_($i) Repeater ON 3". You can take a look at the
tcl file.

It might not be the most efficient or the most perfect way for coding but i
really needed help and inspiration. Special thanks to Hana Amira
(djanahana) and knudfl for being a great help. Thank you guys.

Please take a look into it and provide me feedback.

-- 
*Regards,*
*Pratik*

Reply via email to