Limited-time offer! Save up to 50% Off | Solutions starting at $6 each  

Assignment. These 2 questions are in Python, but you ar

Added on - 16 Sep 2019

Trusted by 2+ million users,
1000+ happy students everyday
Showing pages 1 to 1 of 2 pages
AssignmentThese 2 questions are in Python, but you are welcome to complete the assessment in any language youprefer.1. We have several routers in our inventory, numbered 1, 2, 3, ... The routers that are multiple of five (5,10, 15, 20, ...) have 5 interfaces. The other routers have 10 interfaceseach. Define ONE function called RouterInterfaces that returns the number of interfaces you’ll have ifyou have 1, 2, 3, ... n routers, without using loops or multiplication.E.g.RouterInterfaces (0) → 0RouterInterfaces (1) → 10RouterInterfaces (2) → 20RouterInterfaces (3) → 30RouterInterfaces (4) → 40RouterInterfaces (5) → 45RouterInterfaces (6) → 552. You have to code a system that will manage the different types of ports that can be created in anetwork and the traffic types that those ports will allow or deny. You have two different ports:a. Fiber: Use light for communicationb. Copper: Use electricity for communicationAll the port types will have an Id. Fiber ports will also need to store the wavelength that they use. Eachport is associated to just one device, and the name of that device must be stored as well.The system needs to manage the traffic that is allowed in the ports. To identify the traffic, you must savethe protocol name (e.g. HTTML, SMTP, etc.), type (UDP or TCP) and the UDP or TCP port number (e.g.80, 25, etc.). When you assign traffic to the ports (fiber or copper), you must save the action that theport should take when that traffic appears (drop or allow). Be aware that a specific traffic type can beassigned to different ports, and a port can be assigned to different traffic types.A system engineer already did the class diagram for you:
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document