NS-2.27 and Leach

Saturday, May 01, 2004

Does ns-packet.tcl need to have changes?

Observation:
'tcl/lib/ns-packet.tcl' format has changed. now you can specify which protocols to load.

"# By default, ns includes ALL packet headers of ALL protocols in ns in
# EVERY packet in your simulation. This is a LOT, and will increase as more
# protocols are added into ns. For "packet-intensive" simulations, this could
# be a huge overhead."
......
# NOTICE THAT ADD-PACKET-HEADER{} MUST GO BEFORE THE SIMULATOR IS CREATED.
#
# To include only a specific set of headers in your simulation, e.g., AODV
# and ARP, follow this pattern:
#
# remove-all-packet-headers
# add-packet-header AODV ARP
# ...
# set ns [new Simulator]


0 Comments:

Post a Comment

<< Home