The focus of this research is to protect computer networks by implementing port security to limit port access on switches in order to improve performance on switches and prevent unauthorized access to network connections and reduce data theft on computer networks. In this study, three test scenarios were carried out: (i) port security violation protect data packets from the device or device wil…