Design and implementation of switch module for NS-3