Chapter 3: Network Fundamentals for Security Professionals

Learn TCP/IP, DNS, DHCP, HTTP, HTTPS, FTP, SSH, VPN, and network architecture for cyber security analysis.

TCP/IPDNSDHCPHTTP/HTTPSSSHVPN
Network
Architecture
Protocols
& Ports
Traffic
Analysis
Security
Controls

3.1 Chapter Overview

Networks allow devices to communicate, share resources and access services. Cyber security professionals must understand how networks work because most attacks, investigations and defenses involve network communication.

Security analysts use network knowledge to investigate suspicious traffic, understand logs, detect unauthorized access, review firewall rules, analyze DNS activity, identify risky services and support incident response.

Learning Outcome: By the end of this chapter, learners should be able to explain TCP/IP, DNS, DHCP, common protocols, ports, VPNs and network architecture from a cyber security perspective.
Client Device
Switch / Router
Firewall
Server / Cloud
Logs & Monitoring

3.2 Learning Objectives

  • Explain the purpose of computer networks in cyber security.
  • Understand TCP/IP and the network communication process.
  • Identify IP addresses, subnets, gateways and ports.
  • Explain DNS and DHCP roles in enterprise networks.
  • Differentiate HTTP, HTTPS, FTP, SSH and VPN.
  • Understand common ports and their security relevance.
  • Recognize network architecture components such as LAN, WAN, DMZ and firewall.
  • Use basic network commands for security investigation.

3.3 Why Networking Matters in Cyber Security

Threat Detection

Unusual traffic patterns may indicate malware, scanning or data exfiltration.

Incident Response

Analysts trace attacker IPs, affected hosts and communication paths.

Access Control

Firewalls, VPNs and segmentation control who can communicate.

Log Analysis

Network logs contain IP addresses, ports, protocols and timestamps.

3.4 TCP/IP Model

The TCP/IP model explains how data moves across networks. It helps security professionals understand where attacks and controls may occur.

LayerPurposeExamplesSecurity Relevance
ApplicationUser-facing protocols and services.HTTP, HTTPS, DNS, FTP, SSHWeb attacks, DNS abuse, weak services.
TransportControls end-to-end communication.TCP, UDPPort scanning, session analysis.
InternetRoutes packets between networks.IP, ICMPIP spoofing, ping scans, routing attacks.
Network AccessLocal network communication.Ethernet, Wi-Fi, MACARP spoofing, rogue devices, wireless attacks.

TCP vs UDP

TCPUDP
Connection-orientedConnectionless
Reliable deliveryFaster but less reliable
Used by HTTPS, SSH, FTPUsed by DNS, DHCP, streaming
Three-way handshakeNo handshake
TCP/IP Communication = Source IP + Destination IP + Protocol + Port + Data

3.5 IP Addressing and Ports

An IP address identifies a device on a network. A port identifies a service running on that device.

TermMeaningExample
IP AddressNetwork address of a device.192.168.1.10
Subnet MaskDefines network and host portion.255.255.255.0
GatewayRouter used to reach other networks.192.168.1.1
PortService endpoint on a host.443 for HTTPS
Public IPRoutable on the internet.ISP-assigned IP
Private IPUsed inside local networks.10.x.x.x, 172.16-31.x.x, 192.168.x.x

Common Ports

PortProtocolServiceSecurity Note
20/21TCPFTPOften insecure because credentials may be exposed.
22TCPSSHSecure remote administration; protect with strong authentication.
53UDP/TCPDNSImportant for domain resolution and threat detection.
67/68UDPDHCPAssigns IP addresses automatically.
80TCPHTTPUnencrypted web traffic.
443TCPHTTPSEncrypted web traffic.
3389TCPRDPHigh-risk if exposed to internet.

3.6 Network Commands for Investigation

Windows Commands

ipconfig /all
ping 8.8.8.8
tracert google.com
nslookup perakskills.com
netstat -ano

Linux Commands

ip addr
ping 8.8.8.8
traceroute google.com
dig perakskills.com
ss -tulnp
CommandPurpose
pingChecks basic network reachability.
tracert / tracerouteShows route path to destination.
nslookup / digChecks DNS resolution.
netstat / ssShows network connections and listening ports.
ipconfig / ip addrShows local IP configuration.

3.7 DNS - Domain Name System

DNS converts domain names into IP addresses. Without DNS, users would need to remember IP addresses instead of website names.

1User types domain
2DNS query sent
3DNS server replies
4Browser connects to IP

Common DNS Records

RecordPurposeExample
AMaps domain to IPv4 address.example.com → 93.184.216.34
AAAAMaps domain to IPv6 address.IPv6 address mapping
CNAMEAlias for another domain.www → main domain
MXMail server record.Email routing
TXTText data for verification/security.SPF, DKIM, domain verification

DNS Security Concerns

  • Malware may contact command-and-control domains.
  • Phishing sites use deceptive domains.
  • DNS tunneling may hide data exfiltration.
  • Incorrect DNS records can affect availability.

3.8 DHCP - Dynamic Host Configuration Protocol

DHCP automatically assigns IP configuration to devices. It provides IP address, subnet mask, gateway and DNS server details.

1Discover
2Offer
3Request
4Acknowledge

DHCP Security Risks

RiskDescriptionControl
Rogue DHCP ServerUnauthorized server gives wrong network settings.DHCP snooping on switches.
IP ExhaustionAttacker consumes available IP addresses.Network access control and monitoring.
Wrong DNS AssignmentClients may be sent to malicious DNS server.Monitor DHCP configuration.

3.9 HTTP and HTTPS

HTTP and HTTPS are web protocols. HTTP sends data in clear text, while HTTPS encrypts communication using TLS.

FeatureHTTPHTTPS
Default Port80443
EncryptionNo encryptionEncrypted with TLS
SecurityData can be interceptedProtects data in transit
UseLegacy or non-sensitive sitesLogin, banking, portals, business systems

HTTP Methods

MethodPurposeSecurity Relevance
GETRequest data.Sensitive data should not be placed in URL.
POSTSubmit data.Used for forms and login.
PUTUpdate resource.Should be restricted.
DELETEDelete resource.High-risk if exposed.

3.10 FTP, SSH and VPN

FTP - File Transfer Protocol

FTP is used to transfer files but is generally insecure because it may transmit credentials and data without encryption.

SSH - Secure Shell

SSH provides secure remote command-line access, commonly used for Linux server administration.

VPN - Virtual Private Network

A VPN creates an encrypted tunnel between a user and a private network. It is commonly used for remote work and secure access.

ProtocolDefault PortPurposeSecurity Note
FTP21File transferPrefer SFTP or FTPS.
SSH22Secure remote accessUse keys, MFA and disable weak passwords.
SFTP22Secure file transfer over SSHSafer than FTP.
VPNVariesEncrypted remote accessRequires strong authentication.

3.11 Network Architecture

Network architecture describes how devices, servers, users and security controls are arranged.

Internet
Firewall
DMZ Web Server
Internal Firewall
Internal Network
Architecture ComponentDescriptionSecurity Purpose
LANLocal Area Network inside office or building.Connects internal devices.
WANConnects networks across locations.Supports branches and remote sites.
DMZSeparated zone for public-facing servers.Protects internal network from internet exposure.
FirewallControls allowed and blocked traffic.Enforces network access rules.
IDS/IPSDetects or blocks suspicious traffic.Threat detection and prevention.
ProxyIntermediary for web access.Filtering, logging and control.
SIEMCentral log and alert system.Security monitoring and investigation.

3.12 Network Segmentation

Network segmentation separates systems into zones. It reduces the impact of compromise and limits attacker movement.

User Network

Workstations and user devices.

Server Network

Business application and database servers.

Guest Network

Internet access for visitors without internal access.

DMZ

Public-facing systems separated from internal assets.

Security Benefit: If one segment is compromised, segmentation helps prevent attackers from easily reaching all systems.

3.13 Basic Network Threats

ThreatDescriptionExample Control
Port ScanningAttacker checks open services.Firewall and monitoring.
DNS AbuseMalicious domains or DNS tunneling.DNS filtering and logs.
Man-in-the-MiddleAttacker intercepts communication.HTTPS, VPN, secure Wi-Fi.
Rogue DeviceUnauthorized device connects to network.NAC and switch security.
Data ExfiltrationUnauthorized data transfer out of network.DLP, proxy logs and traffic monitoring.

3.14 Interactive Port Risk Checker

Enter a port number to see its common service and security note.

Click Check Port.

3.15 Practical Activities

Activity 1: IP Configuration

Run ipconfig /all on Windows or ip addr on Linux. Identify IP address, gateway and DNS server.

Activity 2: DNS Lookup

Use nslookup or dig to check DNS records for a domain.

Activity 3: Port Identification

Create a table of 10 common ports and their services.

Activity 4: Network Diagram

Draw a simple network architecture showing internet, firewall, DMZ, internal network and servers.

Mini Project

Create a network security checklist covering open ports, DNS, DHCP, firewall rules, VPN access and network segmentation.

3.16 Interactive Final Assessment Quiz

Each correct answer gives +1 mark. Each wrong answer gives -0.5 mark.

1. TCP/IP explains how devices communicate over networks.

2. DNS is used to:

3. DHCP automatically assigns IP configuration to devices.

4. HTTPS commonly uses which port?

5. FTP is generally safer than SFTP.

6. SSH commonly uses port 22.

7. A VPN creates an encrypted tunnel for secure access.

8. A DMZ is used for:

9. Network segmentation can limit attacker movement.

10. Port 80 is commonly used by HTTP.

Your Score: 0

3.17 Chapter Summary

In this chapter, learners studied network fundamentals for security professionals, including TCP/IP, IP addressing, ports, DNS, DHCP, HTTP, HTTPS, FTP, SSH, VPN and network architecture. These concepts are essential for cyber security monitoring, investigation and defense.

Remember: Cyber security analysts must understand network traffic because many attacks, alerts and investigations begin with IP addresses, ports, protocols and logs.