A network is a structured system of interconnected nodes or components that facilitate the exchange of information, resources, or services.…