Topics in this domain

TCP/IP and Common Protocols

Operations · 3 min read

The internet’s rulebook

The OSI model is the textbook version of networking. TCP/IP is what the internet actually runs on, and it squashes the seven OSI layers into four.

The four TCP/IP layers and their OSI equivalents.
TCP/IP layerWhat it doesExamples
ApplicationServices for applicationsHTTP, HTTPS, SMTP, DNS, FTP, SSH, SNMP
TransportEnd-to-end deliveryTCP, UDP
InternetAddressing and routingIP, ICMP, IPsec
Network accessGetting bits across the local networkEthernet, Wi-Fi, ARP

TCP vs UDP

TCP is recorded delivery; UDP is a postcard. With recorded delivery, both sides confirm, every item is tracked, and anything lost is sent again. A postcard is quicker and cheaper, but if it gets lost, nobody knows.

TCP is reliable like recorded delivery; UDP is fast like a postcard.
  • TCP sets up a connection with a three-way handshake (SYN, SYN-ACK, ACK), numbers each segment, acknowledges what arrives and resends what doesn’t. Reliable and in order. Used for web, email and file transfer.
  • UDP just sends, with no connection and no receipts. Faster. Used for voice, video and quick lookups such as DNS.

UDP isn’t “insecure” by design; it’s unreliable (no delivery guarantee). Security comes from other controls.

Ports identify the service on a machine, for example 443 for HTTPS. Firewalls filter on addresses and ports.

Addresses and NAT

  • IPv4 addresses are 32-bit (like 192.168.1.10); IPv6 addresses are 128-bit.
  • Private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are used inside organisations.
  • NAT (network address translation) swaps private addresses for a public one at the edge of the network. It hides internal addressing, but it isn’t a firewall.
  • Subnetting splits a network into segments, which supports segregation.

Clear text vs secure

Several older protocols send everything, passwords included, in clear text. Anyone who can capture the traffic can read them.

Clear-text protocols and their secure replacements with port numbers.
ProtocolPortUseSecurity note
HTTP / HTTPS80 / 443WebUse HTTPS (TLS)
SMTP25 (587 for sending)EmailUse TLS; SPF, DKIM and DMARC against spoofing
DNS53Turns names into addressesDNSSEC; protect against poisoning
FTP / SFTP20-21 / 22File transferFTP is clear text
Telnet / SSH23 / 22Remote administrationTelnet is clear text
SNMP161-162Monitoring and managing devicesUse SNMPv3; change default community strings
LDAP / LDAPS389 / 636Directory servicesUse the encrypted version
RDP3389Remote desktopNever expose to the internet; use MFA
NTP123Clock synchronisationAccurate time is needed to line up logs
DHCP67-68Hands out IP addressesRogue DHCP servers

SNMP deserves a special mention: it can change device settings, not just read them. Default community strings (“public”, “private”) work like a well-known password and are a common finding.

Example. A network review finds switches and routers are managed with Telnet and SNMPv2 using the community string “public”. Anyone who can capture traffic on the management network can read device passwords and change configurations. The recommendation: SSH and SNMPv3, plus a separate management network.

How the exam asks about it

If the question asks…The answer is usually…
Protocol that guarantees deliveryTCP
Risk of using Telnet or FTPCredentials sent in clear text
Secure replacement for TelnetSSH
Why NTP matters for securityAccurate timestamps for log correlation
Risk with default SNMP settingsUnauthorised reading or changing of device configuration

In short

  • TCP/IP has four layers: network access, internet, transport and application.
  • TCP is connection-oriented and reliable (handshake, acknowledgements, retransmission); UDP is connectionless and faster, without delivery guarantees.
  • IP addresses identify hosts; private address ranges are used internally and translated with NAT.
  • Insecure protocols (Telnet, FTP, HTTP, SNMPv1/v2) send data, including credentials, in clear text; secure alternatives are SSH, SFTP/FTPS, HTTPS and SNMPv3.
  • DNS translates names to addresses; DHCP assigns addresses automatically; both are critical and attack targets.
  • Network management protocols such as SNMP need strong authentication because they can change device settings.

Exam traps

  • Telnet and FTP transmit passwords in clear text. Replace with SSH and SFTP.
  • UDP isn't 'insecure' by design; it's unreliable (no delivery guarantee). Security comes from other controls.
  • NAT hides internal addresses but isn't a substitute for a firewall.
  • Default SNMP community strings ('public', 'private') are a common finding.

Slides

Click the slide and use the arrow keys. F toggles full screen.

CISA · Domain 4 · Operations

TCP/IP and Common Protocols

How the internet's own model works, the difference between TCP and UDP, IP addresses and NAT, and the protocols and ports that come up in security questions.

1 / 9