Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 37 ยท Getting Started

What Is Network Security?

Learn what network security is, what it protects, the main kinds of controls, and how this course teaches defence safely with runnable Python stand-ins.

Network security is the practice of protecting the devices, links and data that make up a network from misuse, theft and disruption. A network is any set of computers that exchange data: a home Wi-Fi router and three phones, an office with two hundred laptops, or a cloud region with thousands of virtual machines. Wherever data moves between machines, someone can try to read it, change it, block it or pretend to be one of the parties. Network security is the set of controls and habits that make those attempts hard, visible and short-lived.

This course teaches defence. You will learn how attackers think because you cannot defend against what you do not understand, but every example is aimed at building, testing and monitoring your own systems. Nothing in this course targets third parties, and nothing here is a working attack tool. You will meet the real tools (firewalls, VPNs, intrusion detection systems) as read-only examples with realistic output, and you will run small Python programs that simulate what those tools do, so the ideas are concrete.

What are we protecting?

A network has three kinds of assets, and a good security plan names all of them.

  • Data in transit. Messages crossing cables, radio links and the internet: web requests, emails, database queries, login credentials.
  • Devices and services. Routers, switches, servers, laptops, printers, cameras and the software they run. If an attacker controls a device, they control what it sends and receives.
  • The network's own plumbing. Names (DNS), addresses (DHCP), routes (BGP and internal routing) and time (NTP). These are easy to overlook, and many attacks bend them to redirect traffic.

Think of a building. The data is the people and goods moving through it, the devices are the rooms and machines, and the plumbing is the corridors, doors and signs. You would not guard only the vault and leave the signs unlocked for anyone to rewrite.

The main families of controls

Security professionals group controls by what they do:

Family Goal Examples in this course
Preventive Stop an attack from succeeding Firewalls, segmentation, encryption, strong authentication
Detective Notice an attack in progress Intrusion detection, log monitoring, flow analysis
Corrective Limit damage and recover Incident response, backups, blocking rules
Deterrent / administrative Discourage and govern Policies, training, legal warnings, audits

No single family is enough. Prevention fails sometimes, so you need detection; detection is useless without a way to respond. Later lessons return to this idea as defence in depth.

Four jobs of a network defender

Prevent Block what should never happen
Detect Spot what slipped through
Respond Contain and fix quickly
Learn Improve the controls

Each job feeds the next one

1 / 2

A first look at exposure

Every network service that listens on a port is a door. The fewer doors you have open, the less there is to attack. The easiest way to feel this is to write down what a host exposes and then judge each item. The program below models a small server's listening ports and flags the ones that deserve a question. It is a plain data exercise: no network access, just a table and some rules of thumb.

Python Review a host's exposed services

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice that "HTTP is open to the internet" is not automatically wrong: a public website must be reachable. The point of a review is to make every open door a deliberate decision, with a reason you can write down.

Security is a trade-off, not a switch

You can make any network almost perfectly safe by unplugging it, and almost perfectly useless at the same time. Real security balances three forces: protection, usability and cost. A rule that blocks every unknown connection protects well but may break the video call your colleague needs in five minutes. Good defenders ask: what is the realistic threat, how bad would the impact be, and what is the cheapest control that reduces the risk enough?

That last question is risk thinking. A simple model multiplies how likely something is by how much it would hurt. The next program ranks a few made-up risks so you can see how the ordering changes when likelihood or impact changes.

Python Rank risks by likelihood times impact

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A score is only a conversation starter. Two risks with the same score can need very different responses, and a low-likelihood, catastrophic risk often deserves attention too. What matters is that you decided on purpose.

How this course is organised

  1. Getting Started gives you vocabulary, the CIA triad, a defender's map of the network layers, and the rules for practising legally.
  2. Threats and Models covers who attacks, how common attacks work, threat modelling and packet analysis.
  3. Firewalls and Segmentation and VPNs and Tunnelling cover the main preventive controls.
  4. Later chapters add detection, wireless and zero trust, secure protocols, design, and projects.

If you want the underlying networking basics, the separate Computer Networks track explains addressing, routing and protocols from scratch. You do not need it to start, because the next lessons recap the parts defenders care about.

Everything in this course assumes you act with permission, on systems you own or are explicitly authorised to test. Legal and ethical ground rules explains exactly what that means.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which of these is a preventive control?

    Preventive controls stop an attack from succeeding. A firewall rule blocking the connection is preventive; monitoring is detective, and restores and reports are corrective or administrative.
  2. 2. Why does a security plan have to include the network's own plumbing such as DNS and routing?

    DNS, DHCP and routing decide where traffic goes. Tampering with them can send users to the wrong place without touching the servers themselves.
  3. 3. A risk has likelihood 2 and impact 5, another has likelihood 4 and impact 3. Using likelihood times impact, which ranks higher?

    2 x 5 = 10 and 4 x 3 = 12, so the second ranks higher. The score is a starting point; a rare but catastrophic risk may still deserve attention.
  4. 4. Which statement about this course is true?

    The course is defensive and legal by design. Real tools appear as labelled example output, and the runnable code simulates ideas safely.

Summary

  • Network security protects data in transit, devices and services, and the plumbing (DNS, DHCP, routing, time).
  • Controls are preventive, detective, corrective or administrative, and you need all four.
  • Every listening port is a door: keep only the ones you can justify.
  • Security balances protection, usability and cost; risk thinking helps you pick what to fix first.
  • This course is defensive: simulations and labelled examples, never attacks on third parties.

Next: The CIA Triad and Security Goals