An abstracted plugin framework for NS2