Learning Objectives

By the end of this chapter, you will be able to:

  • Define network security.
  • Describe the function of a firewall.
  • Define encryption and decryption.

Network Security

Network security consists of the policies and practices adopted to prevent and monitor unauthorized access, misuse, modification, or denial of a computer network and network-accessible resources.

Firewalls

A firewall is a network security device that monitors incoming and outgoing network traffic and decides whether to allow or block specific traffic based on a defined set of security rules. A firewall acts as a barrier between a trusted internal network and an untrusted external network, such as the internet.

Encryption and Decryption

Encryption is the process of converting plain text into a coded, unreadable format called ciphertext. This is done using an algorithm and a key. Decryption is the process of converting the ciphertext back into plain text, which can only be done with the correct key.

Encryption is the most effective way to protect the confidentiality of data both when it is being stored and when it is being transmitted over a network.

sequenceDiagram
  participant Ext as External Network
  participant FW as Firewall
  participant Int as Internal Network
  participant App as Application
  Ext->>FW: Incoming traffic
  FW->>FW: Apply security rules
  alt Allowed traffic
    FW->>Int: Forward request
    Int->>App: Encrypted data in transit
    App->>App: Decrypt with key
  else Blocked traffic
    FW-->>Ext: Drop connection
  end

Figure 1: Firewall Filtering and Encryption in Transit

Summary

Network security is essential for protecting data and systems from attack. Two of the most fundamental security tools are firewalls and encryption. A firewall acts as a barrier, filtering network traffic to block malicious activity. Encryption is the process of scrambling data so that it can only be read by authorized parties, protecting the confidentiality of the information as it travels across the network.

Key Takeaways

  • Network security aims to prevent unauthorized access and misuse of a network.
  • A firewall is a barrier that filters network traffic based on security rules.
  • Encryption scrambles data to make it unreadable; decryption unscrambles it.

Discussion Questions

  1. Using an analogy, explain the function of a firewall.
  2. Why is encryption so important for online activities like banking and shopping?
  3. Where is the firewall that protects your home computer likely located?