NS-3 network simulator basics and applications