A tool for simulating telecommunications networks and its application in networking courses