Networking Fundamentals

Networking Concepts

Essential networking knowledge for cybersecurity professionals. Understand protocols, the OSI model, and network security fundamentals.

The OSI (Open Systems Interconnection) model is a conceptual framework that describes how data moves through a network in seven distinct layers.

7
ApplicationLayer 7

User interface and application services

Protocols: HTTP, FTP, SMTP, DNS

6
PresentationLayer 6

Data formatting and encryption

Protocols: SSL/TLS, JPEG, ASCII

5
SessionLayer 5

Session management and control

Protocols: NetBIOS, RPC

4
TransportLayer 4

End-to-end communication and reliability

Protocols: TCP, UDP

3
NetworkLayer 3

Routing and logical addressing

Protocols: IP, ICMP, ARP

2
Data LinkLayer 2

Physical addressing and framing

Protocols: Ethernet, PPP, MAC

1
PhysicalLayer 1

Physical transmission of data

Protocols: Cables, Hubs, NICs

Network protocols define rules for communication between devices. Understanding these is crucial for security analysis.

ProtocolPortDescriptionSecurity
TCPVariousConnection-oriented, reliable data transferCan be secured with TLS
UDPVariousConnectionless, fast but unreliableCan use DTLS for security
HTTP80Web page transfer protocolUse HTTPS (443) for security
HTTPS443Secure web communicationTLS encryption enabled
SSH22Secure shell remote accessEncrypted by default
FTP21File transfer protocolUse SFTP or FTPS instead
DNS53Domain name resolutionUse DNSSEC for integrity
SMTP25Email sending protocolUse STARTTLS or port 587

Firewalls are essential network security devices that monitor and control incoming and outgoing network traffic based on predetermined security rules.

Packet Filtering

Examines packet headers and filters based on rules

+ Fast, low overhead- Limited inspection

Stateful Inspection

Tracks connection state and context

+ More secure than packet filtering- Higher resource usage

Application Layer

Deep packet inspection at Layer 7

+ Content-aware filtering- Performance impact

Next-Gen (NGFW)

Combines traditional firewall with IPS, DPI

+ Comprehensive protection- Complex, expensive

Virtual Private Networks create secure, encrypted tunnels over public networks to protect data in transit.

IPSec

Industry standard for site-to-site VPNs, operates at network layer

Best for: Enterprise networks, site-to-site connections

OpenVPN

Open-source VPN using SSL/TLS, highly configurable

Best for: Remote access, cross-platform compatibility

WireGuard

Modern, fast, and lean VPN protocol

Best for: High-performance needs, mobile devices

SSL/TLS VPN

Browser-based VPN access using HTTPS

Best for: Clientless remote access, web applications

DNS (Domain Name System) translates domain names to IP addresses. Securing DNS is critical to prevent various attacks.

Common DNS Attacks

  • -DNS Spoofing: Corrupting DNS cache to redirect traffic
  • -DNS Tunneling: Using DNS to exfiltrate data or bypass firewalls
  • -DNS Amplification: DDoS attack using DNS servers as amplifiers

DNS Security Solutions

  • +DNSSEC: Cryptographic authentication of DNS responses
  • +DoH/DoT: DNS over HTTPS/TLS for encrypted queries
  • +DNS Filtering: Block malicious domains at the DNS level