Networking essentials: 50 must-know concepts
Computer networking fundamentals: OSI and TCP/IP layers, TCP vs UDP, common port numbers, subnetting and CIDR, DNS, DHCP and ARP, and IPv6 basics.
Practice now
Study without an account
Scheduled with the default Askesis timings. Progress is saved in this browser.
All 50 cards
- 1The seven OSI layers, from bottom to top1 Physical, 2 Data link, 3 Network, 4 Transport, 5 Session, 6 Presentation, 7 ApplicationMnemonic: Please Do Not Throw Sausage Pizza Away.
- 2The four layers of the TCP/IP modelLink (network access), Internet, Transport, ApplicationOSI layers 5–7 all map to the TCP/IP application layer.
- 3What is the unit of data called at layers 2, 3 and 4?Frame (data link), packet (network), segment for TCP or datagram for UDP (transport)
- 4At which OSI layers do switches and routers work?Switches at layer 2, forwarding frames by MAC address; routers at layer 3, forwarding packets by IP addressLayer 3 switches can also route.
- 5What is a MAC address?A 48-bit hardware address written as six hex pairs, like
00:1a:2b:3c:4d:5e; the first 24 bits identify the vendor (OUI) - 6TCP vs UDPTCP is connection-oriented, with reliable, ordered delivery plus flow and congestion control; UDP is connectionless and best-effort, with less overheadUDP suits DNS queries, streaming, voice calls and games.
- 7The TCP three-way handshakeSYN → SYN-ACK → ACK
- 8How is a TCP connection closed?Each side sends a FIN that the other acknowledges (FIN, ACK, FIN, ACK); an RST aborts the connection immediately
- 9Well-known, registered and dynamic port ranges0–1023 well-known, 1024–49151 registered, 49152–65535 dynamic (ephemeral)Linux uses 32768–60999 for ephemeral ports by default.
- 10Port 22SSH (also used by SFTP and SCP)
- 11Port 53DNS: UDP for most queries, TCP for zone transfers and large responses
- 12Ports 80 and 443HTTP and HTTPSHTTP/3 runs over QUIC on UDP port 443.
- 13Ports 67 and 68DHCP over UDP: 67 for the server, 68 for the client
- 14Ports 20 and 21FTP: 21 for control, 20 for data in active mode
- 15Ports 25, 587 and 465SMTP: 25 between mail servers, 587 for client submission with STARTTLS, 465 for submission over implicit TLS
- 16Ports 110, 143, 993 and 995POP3 (110), IMAP (143), IMAP over TLS (993), POP3 over TLS (995)
- 17Port 123NTP (UDP)
- 18Ports 161 and 162SNMP over UDP: 161 for queries to agents, 162 for traps sent to the manager
- 19Port 3389RDP (Remote Desktop Protocol)
- 20How many bits are in an IPv4 address?32, written as four decimal octets like
192.168.1.10billion addresses. - 21What does
/24mean in192.168.1.0/24?The first 24 bits are the network prefix: mask255.255.255.0, 256 addresses, 254 usable hosts - 22Usable hosts in a subnet with host bitsThe network and broadcast addresses can’t be assigned. A /31 point-to-point link is the exception, with both usable.
- 23Usable hosts in a /26
- 24Subnet mask of a /27
255.255.255.224: 32 addresses, 30 usable hosts - 25Network and broadcast address of
192.168.10.77/26Network192.168.10.64, broadcast192.168.10.127; hosts.65to.126A /26 splits the last octet into blocks of 64: .0, .64, .128, .192. - 26The private IPv4 ranges (RFC 1918)
10.0.0.0/8,172.16.0.0/12and192.168.0.0/16 - 27What is
127.0.0.0/8?Loopback: traffic never leaves the host.127.0.0.1is localhost - 28What does an address in
169.254.0.0/16tell you?It is link-local (APIPA): the host assigned itself an address, usually because DHCP failed - 29Default gatewayThe router a host sends packets to when the destination is outside its own subnet
- 30NAT vs PATNAT rewrites private source addresses to a public one; PAT (NAT overload) also rewrites ports, so many hosts share one public IP
- 31CIDRClassless Inter-Domain Routing: prefixes of any length (
/22,/27) instead of fixed class A, B and C networks, which also allows route summarization - 32What does ARP do?Resolves an IPv4 address to a MAC address on the local network, with a broadcast request and a unicast replyOn Linux,
ip neighshows the ARP cache. - 33DNS A vs AAAA recordA maps a name to an IPv4 address; AAAA maps it to an IPv6 address
- 34DNS CNAME recordAn alias that points one name at another, canonical nameA name with a CNAME can’t have other records, so the bare domain (zone apex) can’t be a CNAME.
- 35DNS MX recordThe mail servers for a domain, each with a preference number; lower numbers are tried first
- 36DNS PTR recordReverse DNS: maps an IP address back to a name, under
in-addr.arpafor IPv4 orip6.arpafor IPv6 - 37Recursive vs iterative DNS resolutionThe client asks a recursive resolver to do the whole lookup; the resolver then queries iteratively: a root server, then the TLD server, then the authoritative server, each referring it onward
- 38TTL on a DNS recordHow many seconds resolvers may cache the record before asking again
- 39The four steps of getting a DHCP lease (DORA)Discover, Offer, Request, AcknowledgeDiscover is a broadcast, because the client has no address yet.
- 40What is ICMP used for?Network-layer control and error messages: echo request and reply (ping), destination unreachable, time exceeded
- 41How does traceroute work?It sends packets with TTL 1, 2, 3…; each router that drops one when its TTL runs out replies with ICMP Time Exceeded, revealing the path
- 42VLANA logical layer 2 network that splits a switch into separate broadcast domains; trunk links tag frames with an 802.1Q header carrying a 12-bit VLAN ID
- 43How many bits are in an IPv6 address?128, written as eight groups of four hex digits separated by colons
- 44Shorten
2001:0db8:0000:0000:0000:0000:0000:00012001:db8::1Drop leading zeros in each group, and replace one run of all-zero groups with::(only once per address). - 45IPv6 loopback address and link-local prefixLoopback
::1; link-localfe80::/10 - 46What replaces ARP in IPv6?Neighbor Discovery Protocol (NDP), with ICMPv6 Neighbor Solicitation and Neighbor Advertisement messages
- 47SLAACStateless Address Autoconfiguration: a host builds its own address from the /64 prefix in a router advertisement plus an interface IDThe interface ID is random (privacy addresses) or derived from the MAC address (EUI-64).
- 48Does IPv6 have broadcast?No. It uses multicast instead;
ff02::1reaches all nodes on the local link - 49IPv6 unique local addresses
fc00::/7(in practicefd00::/8), the IPv6 counterpart of private IPv4 ranges - 50IPv6 global unicast range
2000::/32001:db8::/32is reserved for documentation and examples.
Frequently asked questions
Does this deck help with CompTIA Network+ or CCNA?
It covers fundamentals both exams test, such as the OSI model, ports, subnetting, DNS, DHCP and IPv6 basics. Both go further, so use it alongside a full course.
How do I get faster at subnetting?
Memorize the masks and host counts for /24 to /30 and the block size of each, then practice finding network and broadcast addresses until it is automatic.
Why does a /24 have 254 usable hosts, not 256?
The first address is the network address and the last is the broadcast address, so neither can be assigned to a host.
More in IT & DevOps
Linux command line
Linux commands and files for sysadmins and LPIC-1 candidates: find and grep, permissions and special bits, fstab, systemd targets, package managers, users, cron and more.
50 cardsLinux filesystem basics
Learn the Linux directory tree: what /etc, /var, /usr, /proc and /dev are for, plus passwd, shadow, fstab and hosts. Free flashcards, no signup.
50 cardsIntermediate Linux filesystem
Linux paths admins use daily: /usr/local, /var/lib, /run, /sys, /etc/skel, sudoers, Bash startup files, SSH keys, resolv.conf and /proc. Free flashcards.
50 cardsAdvanced Linux filesystem
Deeper Linux files for LPIC-1: profile.d, sudoers.d, systemd units, GRUB config, nsswitch.conf, ld.so.conf, distro logs and /lib/modules. Free flashcards.
50 cardsBash scripting
Bash scripting flashcards: shebangs, quoting, exit codes, tests, loops, functions, arrays, parameter expansion, redirection, set -euo pipefail and traps.
50 cardsVim
Learn Vim from the keyboard up: modes, motions, operators and text objects, search and :s substitutions, registers, macros, visual mode and windows.
50 cardsCyber security
Cyber security flashcards: the CIA triad, phishing, XSS, CSRF, SQL injection, MITM, hashing vs encryption, TLS, MFA, least privilege, OWASP and zero trust.
50 cardsDocker
Learn Docker from images and layers to multi-stage builds, volumes, networks and Compose, with the commands and best practices you use daily.
50 cardsKubernetes
Kubernetes fundamentals for developers and CKA or CKAD candidates: Pods, Deployments, Services, storage, probes, resources and scheduling, plus the kubectl commands you use daily.
50 cardsAWS
AWS flashcards: regions and AZs, EC2, S3 storage classes, IAM users, roles and policies, VPC networking, RDS, Lambda, CloudWatch and Route 53.
50 cardsTerraform
Terraform flashcards: HCL, providers, resources, variables and outputs, state and remote backends, plan and apply, modules, count, for_each, drift and import.
50 cards