Creating Switch

Job ID: 36521163

Budget: $250 – $750 AUD

The switch acts like a network router. It can take three forms: local, global and mixed. Local switches open
a listening socket on UDP to serve adapters and can connect to global and mixed switches. Global switches
open a listening port on TCP to service incoming connections with other switches, and can also create outgoing
connections to other global/mixed switches. Mixed open listening sockets on both UDP and TCP for servicing
incoming connections from adapters and switches respectively, and can also create outgoing connections to
global/mixed switches. By connecting adapters to local and mixed switches, we can simulate a local area
network, and by connecting global and mixed switches, we can simulate large scale wide area networks with
geographical proximity.
Switches use virtual IP addresses to identify themselves. Local and global switches have one IP address and
mixed switches have two IP addresses; one for their local UDP side and one for their global (TCP) side.
Marks will be awarded according to the following breakdown:
Validating commandline arguments 3 marks
Greeting Protocol 9 marks
Location Exchange and Distance Relaying 8 marks
Data Forwarding 7 marks
Switch Routing 8 marks
Complete Communication 15 marks
Related categories: Python Network Engineering