Network security refers to the set of rules, technologies, and processes used to protect computer networks. It aims to preserve the confidentiality, integrity, and availability of network data and resources. Network security works through physical, technical, and administrative controls. Physical controls restrict access to network infrastructure. Technical controls protect data in transit and storage through measures like antivirus software, firewalls, and virtual private networks. Administrative controls govern user authentication, access levels, and system changes through security policies. Together these layers safeguard networks from both internal and external cyber threats.