Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please Use Python for this program**** and explain steps so I can understand :).

ID: 3881452 • Letter: P

Question

Please Use Python for this program**** and explain steps so I can understand :). Help is appreciated!

3. 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 a. Fiber: Use light for communication b. Copper: Use electricity for communication All the port types will have an ld. 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 save the 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:

Explanation / Answer

class Device:
    def __init__(self, name=None ):
        self.name = name


class PhysicalPort:
    def __init__(self, id=None):
        self.id = id


class Copper(PhysicalPort):
    def __init__(self):
        return


class Fiber(PhysicalPort):
    def __init__(self, wlength=None):
        self.wavelength=wlength


class Traffic:
    def __init__(self, name=None, type=None, layer4_port=None):
        self.name = name
        self.type = type
        self.layer4_port = layer4_port


class TrafficXPort:
    def __init__(self, traffic_i=None, port=None, action=None):
        self.traffic_i = traffic_i
        self.port = port
self.action = action

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote