Network security aims to protect networks from unauthorized access, data loss, and viruses. There are two main types of network security: physical security and logical security. Key goals of network security are confidentiality, integrity, and availability of data. While network security safeguards data through encryption, firewalls, and anti-virus software, it also has disadvantages such as cost and potential for a false sense of security.