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

Added on - 16 Sep 2019

  • Dissertation

    type

  • 2

    pages

  • 473

    words

  • 38

    views

  • 0

    downloads

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:
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document