Assignment. These 2 questions are in Python, but you ar
Added on -2019-09-16
| 2 pages
| 473 words
| 166 views
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 you prefer.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 if you 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 a network 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. Each port 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 the port should take when that traffic appears (drop or allow). Be aware that a specific traffic type can be assigned to different ports, and a port can be assigned to different traffic types.A system engineer already did the class diagram for you:
Found this document preview useful?
You are reading a preview Upload your documents to download or Become a Desklib member to get accesss