Install vanetrbc1. Make a subdirectory for the files. Go to the ns-2.35 directory, then type the following.
Find the line that says "static packet_t PT_NTYPE =" and add your line before the line that must be the last line. See below. Now add a line that says
name_[PT_VANETRBC]="VanetRBC"; Save and close packet.h.
4. Edit ns-allinone-2.35/ns-2.35/tcl/lib/ns-packet.tcl. After the line, "set protolist {", insert the following:
VanetRBC # Vanet protocol |
5. Edit ns-allinone-2.35/ns-2.35/tcl/lib/ns-default.tcl. Insert three lines at the very end of the file. Make sure you have a space after each underbar (_).
Agent/VanetRBC set interval_ 1 Agent/VanetRBC set jitterFactor_ 0.005 Agent/VanetRBC set crypto_delay_ 0 6. Edit ns-allinone-2.35/ns-2.35/Makefile. Under OBJ_CC, insert:
vanetrbc/vanetrbc.o vanetrbc/vanetrbc_rxdatadb.o \ I inserted the code at the very bottom of the section.
Now you are done editing files.
Recompile (Make)Recompile ns with the new protocol. Change your directory to .../ns-allinone-2.35/ns-2.35/ then type
You will probably need to enter your administrator password. Verify (Run vntest.tcl)
If it works you should be good to go. |
VANETRBC Source: Daniel Jungels, EPFL, VANET-Skeleton for ns2, December 23, 2005 (PDF) (Source Code)
Another tool: TraNS - Traffic and Network Simulation Framework. Ada Lezama Lugo, Michal Piorkowski, Maxim Raya, Bogdan Stroe, LCA-ISC-I&C, EPFL. February 3, 2009 (HTML) (HTML)
Another tool: TraNS - Traffic and Network Simulation Framework. Ada Lezama Lugo, Michal Piorkowski, Maxim Raya, Bogdan Stroe, LCA-ISC-I&C, EPFL. February 3, 2009 (HTML) (HTML)