Networking Basics
- 127Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a computer network?
127 questions
- 1
What is a computer network?
Model answer
A network is a collection of connected devices that can share information.
Explanation
Devices communicate through wired or wireless connections to exchange data.
- 2
What do devices, cables or Wi-Fi signals, and data represent in the neighborhood analogy for networking?
Model answer
Devices are like houses, cables or Wi-Fi signals are like roads, and data is like a package traveling between them.
Explanation
The analogy illustrates how data moves from one connected device to another.
- 3
What types of devices can participate in a network?
Model answer
Almost any device with a chip and a network connection can participate, including laptops, phones, servers, printers, cameras, and smart appliances.
Explanation
A network is defined by connected communication-capable devices, not by a specific device type.
- 4
Why are networks important to cybersecurity?
Model answer
Most attacks enter or operate through networks by exploiting protocols, open ports, or misconfigured services.
Explanation
Understanding networks helps security professionals identify the paths attackers use.
- 5
How does an IP address identify a device?
Model answer
An IP address identifies a device and tells the network where to deliver data.
Explanation
It functions like a destination address for network communication.
- 6
What is a port, and what problem does it solve?
Model answer
A port is a numbered communication endpoint that directs incoming data to the correct service or application on a device.
Explanation
One device can run many services simultaneously, so ports distinguish among them.
- 7
What is a protocol?
Model answer
A protocol is a set of rules that defines how devices format, begin, conduct, manage, and end communication.
Explanation
Protocols ensure that both sides follow compatible communication procedures.
- 8
What are HTTP, DNS, and TCP examples of?
Model answer
They are protocols: HTTP governs web-page communication, DNS governs name resolution, and TCP governs reliable data delivery.
Explanation
Each protocol defines rules for a different networking function.
- 9
What is a LAN?
Model answer
A local area network is a small network covering a limited area such as a home, school laboratory, or small office.
Explanation
LAN devices are usually close together and connected within one building or local area.
- 10
Why are LANs usually fast and relatively private?
Model answer
LANs are fast because devices are close together, and they are relatively private because an organization or household controls access.
Explanation
Short distances reduce transmission demands, while local administration limits membership.
- 11
Why is network segmentation important inside a LAN?
Model answer
Segmentation divides a LAN into isolated zones, limiting what an attacker can access after entering the network.
Explanation
Isolation reduces the attacker's ability to move laterally between devices.
- 12
What is a WAN?
Model answer
A wide area network connects devices or smaller networks across a large geographic area.
Explanation
The internet is the largest example, while companies may use private WANs to connect distant offices.
- 13
Why is encryption especially important on a WAN?
Model answer
WAN traffic passes through many ISPs, routers, and data centers, creating more opportunities for interception.
Explanation
Encryption protects data while it travels across infrastructure that the sender does not fully control.
- 14
Compare MAN, PAN, WLAN, and VPN.
Model answer
A MAN covers a city, a PAN connects nearby personal devices, a WLAN is a wireless LAN, and a VPN creates an encrypted private tunnel through a public network.
Explanation
These terms describe different geographic scopes or methods of creating protected connectivity.
- 15
What is the primary function of a router?
Model answer
A router connects different networks and forwards traffic between them by examining destination IP addresses.
Explanation
For example, a home router connects a local network to the internet.
- 16
Why are routers important security targets?
Model answer
A compromised router can give an attacker control over the traffic flowing through it, and weak router passwords are a common vulnerability.
Explanation
The router sits at a central point between internal devices and external networks.
- 17
What is the function of a network switch?
Model answer
A switch connects multiple devices within the same network and forwards each message to its intended device.
Explanation
Unlike a router, a switch primarily connects devices inside one network.
- 18
How does a switch differ from a hub?
Model answer
A hub broadcasts every message to all connected devices, whereas a switch sends a message only to the intended device.
Explanation
Switches reduce unnecessary exposure and traffic compared with hubs.
- 19
How can MAC flooding create a security problem?
Model answer
MAC flooding can overwhelm a switch and force it to broadcast traffic like a hub, allowing an attacker to capture traffic intended for other devices.
Explanation
The attack exploits the switch's inability to maintain its normal MAC-address table.
- 20
What does a firewall do?
Model answer
A firewall monitors and controls incoming and outgoing traffic according to security rules.
Explanation
It acts as a gatekeeper that permits approved traffic and blocks disallowed traffic.
- 21
What characteristics can a firewall use to allow or block traffic?
Model answer
A firewall can filter by IP address, port number, protocol, or more complex behavioral patterns.
Explanation
These rules allow administrators to control which communications are permitted.
- 22
What is a wireless access point?
Model answer
A wireless access point broadcasts a Wi-Fi network that devices can join.
Explanation
Home routers often contain built-in access points, while large buildings may use separate ceiling-mounted units.
- 23
Why are wireless networks more exposed than wired networks?
Model answer
Wireless data is broadcast through the air, so devices within range can attempt to capture it.
Explanation
Encryption such as WPA2 or WPA3 helps protect wireless communications.
- 24
What is a network interface card?
Model answer
A network interface card is the hardware that enables a device to communicate over a network, such as an Ethernet port or Wi-Fi radio.
Explanation
Every network-connected device has a network interface, and each interface has a unique MAC address.
- 25
What is a packet?
Model answer
A packet is a small piece of data sent across a network as part of a larger transmission.
Explanation
Large files are divided into packets so they can be transmitted efficiently.
- 26
What information can a packet contain besides its data payload?
Model answer
A packet can contain source and destination IP addresses, reassembly information, and error-checking information.
Explanation
Headers help deliver, reconstruct, and validate the transmitted data.
- 27
What is packet switching?
Model answer
Packet switching divides data into packets that travel independently, possibly along different routes, and are reassembled at the destination.
Explanation
This is the fundamental method used by the modern internet.
- 28
Why might packets from one file take different routes?
Model answer
Each packet is routed independently, so network devices may send different packets along different available paths.
Explanation
The packets are later reordered and reassembled at the destination.
- 29
What is a packet-sniffing attack?
Model answer
A packet-sniffing attack captures and inspects network packets as they travel, potentially revealing unencrypted data.
Explanation
Tools such as Wireshark can be used to analyze captured packets.
- 30
Compare the client-server and peer-to-peer network models.
Model answer
In a client-server model, clients request services from centralized servers; in a peer-to-peer model, each device can act as both client and server without a central server.
Explanation
The models differ mainly in whether control and data are centralized.
- 31
Why are servers attractive targets for attackers?
Model answer
Servers often store data for many clients, so compromising one server can expose information belonging to large numbers of users.
Explanation
Their centralized role gives them high value to attackers.
- 32
Why can peer-to-peer networks be difficult to control?
Model answer
Peer-to-peer networks lack a central server, and malware can use device-to-device communication to spread without a command server that can be shut down.
Explanation
Decentralization makes monitoring and disruption more difficult.
- 33
What is bandwidth?
Model answer
Bandwidth is the maximum amount of data that can be transferred through a connection per unit of time, commonly measured in Mbps or Gbps.
Explanation
Bandwidth is analogous to the number of lanes on a highway.
- 34
What is latency?
Model answer
Latency is the time required for data to travel from a source to a destination, usually measured in milliseconds.
Explanation
Unlike bandwidth, latency describes delay rather than capacity.
- 35
How can bandwidth and latency help identify attacks?
Model answer
Unusual bandwidth consumption or sudden latency changes can indicate an attack such as a denial-of-service flood.
Explanation
Monitoring these measurements is part of intrusion detection.
- 36
How does a denial-of-service attack affect bandwidth?
Model answer
A denial-of-service attack floods a network with traffic until its bandwidth is consumed, preventing legitimate users from communicating.
Explanation
The attack makes the service unavailable by overwhelming network capacity.
- 37
Why was the OSI model created?
Model answer
The OSI model was created to provide a common framework that would allow networking hardware and software from different vendors to work together.
Explanation
Earlier systems often worked only with products from the same company.
- 38
What does OSI stand for, and what is it?
Model answer
OSI stands for Open Systems Interconnection and is a seven-layer conceptual framework for describing network communication.
Explanation
Each layer has a specific responsibility and interacts with the layers above and below it.
- 39
What is the role of the physical layer?
Model answer
The physical layer transmits raw bits over physical media such as copper, fiber, or radio waves.
Explanation
It defines physical properties such as signals, voltages, speeds, and connectors.
- 40
What are examples of physical-layer attacks?
Model answer
Examples include cutting cables, tapping cables to intercept signals, and jamming wireless frequencies.
Explanation
These attacks target the physical transmission medium rather than higher-level protocols.
- 41
What is the role of the data link layer?
Model answer
The data link layer organizes raw bits into frames, uses MAC addresses for local delivery, and performs error detection.
Explanation
Switches and network interface cards operate primarily at this layer.
- 42
How does ARP spoofing work?
Model answer
An attacker sends false ARP messages that associate the attacker's MAC address with another device's IP address, redirecting traffic through the attacker.
Explanation
This can establish a man-in-the-middle position at the local-network level.
- 43
What is the role of the network layer?
Model answer
The network layer handles logical addressing and routing packets between different networks using IP addresses.
Explanation
Routers use this layer to determine the next path toward a destination.
- 44
What is IP spoofing?
Model answer
IP spoofing is the forging of a packet's source IP address to hide or misrepresent its true origin.
Explanation
Attackers may use it in denial-of-service attacks to disguise themselves.
- 45
What is the role of the transport layer?
Model answer
The transport layer provides end-to-end communication between applications and handles segmentation, flow control, error recovery, and port numbers.
Explanation
TCP and UDP are the primary transport-layer protocols.
- 46
What are session-layer responsibilities?
Model answer
The session layer establishes, manages, and ends communication sessions and can provide authentication and synchronization checkpoints.
Explanation
Checkpoints allow long transfers to resume after interruption.
- 47
What is session hijacking?
Model answer
Session hijacking occurs when an attacker steals an active session token and impersonates a logged-in user without needing the user's password.
Explanation
The attacker takes over an already authenticated communication session.
- 48
What are the responsibilities of the presentation layer?
Model answer
The presentation layer translates data formats, performs encryption and decryption, and compresses data.
Explanation
It ensures that data is represented in a form the receiving system can use.
- 49
What is the role of the application layer in the OSI model?
Model answer
The application layer contains protocols used directly by applications, including HTTP, HTTPS, FTP, DNS, SMTP, and SSH.
Explanation
It refers to communication protocols rather than the user-facing applications themselves.
- 50
Why is the application layer highly exposed to attacks?
Model answer
Users interact directly with application-layer services, and attacks such as SQL injection, cross-site scripting, phishing, and malware command-and-control operate there.
Explanation
Human interaction and exposed services create many opportunities for exploitation.
- 51
What is encapsulation?
Model answer
Encapsulation is the process in which each networking layer adds its own header or wrapping as data moves down the protocol stack.
Explanation
The headers provide information such as ports, IP addresses, and local-delivery addresses.
- 52
What is decapsulation?
Model answer
Decapsulation is the process in which each receiving layer removes and processes its own header before passing the remaining data upward.
Explanation
It reverses the encapsulation process performed by the sender.
- 53
What is DNS tunneling?
Model answer
DNS tunneling hides data inside DNS traffic to bypass restrictions or secretly exfiltrate information.
Explanation
Malware may use DNS packets because networks often permit DNS communication.
- 54
How does the TCP/IP model differ from the OSI model?
Model answer
The TCP/IP model is the practical model used by the internet and traditionally has four layers, while the OSI model is a seven-layer conceptual framework.
Explanation
TCP/IP combines some OSI responsibilities into broader layers.
- 55
How do TCP/IP layers map to OSI layers?
Model answer
TCP/IP application corresponds to OSI application, presentation, and session; TCP/IP transport corresponds to OSI transport; internet corresponds to OSI network; and network access corresponds to OSI data link and physical.
Explanation
The TCP/IP model uses fewer, broader categories.
- 56
What are the four classic TCP/IP layers?
Model answer
They are network access, internet, transport, and application.
Explanation
Some versions show five layers, but the classic model contains four.
- 57
What functions belong to the TCP/IP network access layer?
Model answer
It handles local physical transmission, data-link framing, and MAC addressing over technologies such as Ethernet and Wi-Fi.
Explanation
This layer combines the functions of the OSI physical and data link layers.
- 58
What protocols and functions belong to the TCP/IP internet layer?
Model answer
The internet layer handles IP addressing and routing and includes protocols such as IPv4, IPv6, ICMP, and ARP.
Explanation
Ping uses ICMP, while ARP maps local IP addresses to MAC addresses.
- 59
Why should security professionals learn both the OSI and TCP/IP models?
Model answer
OSI provides a framework for thinking about and troubleshooting problems, while TCP/IP describes the protocols and implementation used by the real internet.
Explanation
Both perspectives are useful in security analysis and network diagnosis.
- 60
What two functions does an IP address provide?
Model answer
An IP address identifies a device and indicates its location for routing data.
Explanation
It tells the network both who the device is and where to deliver traffic.
- 61
What is an IPv4 address?
Model answer
IPv4 is a 32-bit address written as four dot-separated numbers, with each number ranging from 0 to 255.
Explanation
Each of the four numbers represents 8 bits.
- 62
Why did IPv4 addresses become scarce?
Model answer
IPv4 provides roughly 4.3 billion possible addresses, which is insufficient for the world's many people and connected devices.
Explanation
Address exhaustion became a major problem around 2011, leading to techniques such as NAT.
- 63
What is IPv6, and how large is an IPv6 address?
Model answer
IPv6 is the newer Internet Protocol version with addresses that are 128 bits long.
Explanation
Its address space is vastly larger than IPv4's and is intended to prevent address exhaustion.
- 64
What is dual-stack networking?
Model answer
Dual-stack networking runs IPv4 and IPv6 simultaneously on the same network.
Explanation
Security controls must support both protocols because attackers may exploit an IPv6 blind spot.
- 65
Compare public and private IP addresses.
Model answer
A public IP address is globally unique and reachable from the internet, while a private IP address is used inside a local network and is not directly internet-routable.
Explanation
Home devices commonly use private addresses while the router uses a public address externally.
- 66
What are the three private IPv4 address ranges?
Model answer
They are 10.0.0.0β10.255.255.255, 172.16.0.0β172.31.255.255, and 192.168.0.0β192.168.255.255.
Explanation
These ranges are reserved for internal network use.
- 67
What is NAT?
Model answer
Network address translation converts private IP addresses to a public IP address so multiple internal devices can communicate over the internet.
Explanation
The router records each translation and reverses it when responses return.
- 68
Why can NAT complicate forensic investigations?
Model answer
One public IP may represent hundreds of internal devices, so investigators need NAT-device logs to identify the original internal source.
Explanation
The external address alone may not identify the individual device responsible for traffic.
- 69
What is the difference between a static and a dynamic IP address?
Model answer
A static IP is manually assigned and remains the same, while a dynamic IP is automatically assigned and may change over time.
Explanation
Servers commonly use static addresses, while home devices commonly use dynamic addresses.
- 70
What is DHCP starvation?
Model answer
DHCP starvation floods a network with false requests until available IP addresses are exhausted, preventing legitimate devices from connecting.
Explanation
An attacker may then introduce a rogue DHCP server to redirect traffic.
- 71
How can a rogue DHCP server enable a man-in-the-middle attack?
Model answer
After exhausting legitimate DHCP addresses, an attacker can assign victims false network settings and route their traffic through the attacker's system.
Explanation
The attacker can then intercept or manipulate communications.
- 72
What is the loopback address used for?
Model answer
The loopback address 127.0.0.1 refers to the local device itself.
Explanation
Connecting to localhost communicates with services running on the same machine.
- 73
What is a default gateway?
Model answer
A default gateway is usually the local router's IP address and receives traffic destined for networks outside the device's local network.
Explanation
Common home-network gateway addresses include 192.168.1.1 and 192.168.0.1.
- 74
What is a broadcast address, and how can it be abused?
Model answer
A broadcast address sends traffic to every device on a local network; attacks such as Smurf attacks can abuse it to amplify traffic toward a victim.
Explanation
A single broadcast request can cause many devices to respond.
- 75
What is a MAC address?
Model answer
A MAC address is a hardware identifier assigned to a network interface, usually written as six hexadecimal pairs.
Explanation
MAC addresses operate at the data link layer and support local-network communication.
- 76
How do IP and MAC addresses behave differently when traffic crosses networks?
Model answer
The MAC address changes for each local network segment, while the destination IP address generally remains the same end-to-end.
Explanation
MAC addresses support local delivery, whereas IP addresses support routing across networks.
- 77
What is MAC spoofing?
Model answer
MAC spoofing changes a device's MAC address to impersonate another device, bypass restrictions, or conceal identity.
Explanation
MAC addresses are relatively easy to alter in software.
- 78
What is subnetting?
Model answer
Subnetting divides a larger network into smaller networks called subnets.
Explanation
It improves organization, performance, and security by separating systems into zones.
- 79
What does a subnet mask identify?
Model answer
A subnet mask identifies which portion of an IP address represents the network and which portion represents individual devices.
Explanation
For example, 255.255.255.0 leaves the final octet for device addresses.
- 80
What does the notation 192.168.1.0/24 mean?
Model answer
It describes a network in which 24 bits identify the network, equivalent to the subnet mask 255.255.255.0.
Explanation
The network provides addresses from 192.168.1.1 through 192.168.1.254 for usable devices.
- 81
How does subnetting reduce the security blast radius?
Model answer
Subnetting places systems such as web servers, databases, and employee devices in separate zones and restricts traffic between them.
Explanation
A compromise in one subnet therefore does not automatically expose every other system.
- 82
What is a port, and what is its numerical range?
Model answer
A port is a numbered communication endpoint, and port numbers range from 0 through 65,535.
Explanation
The IP address identifies the device, while the port identifies the service on that device.
- 83
What are well-known ports?
Model answer
Well-known ports range from 0 through 1,023 and are reserved for standard services such as HTTP, HTTPS, SSH, DNS, and FTP.
Explanation
Using these ports commonly requires administrator privileges.
- 84
What are registered ports?
Model answer
Registered ports range from 1,024 through 49,151 and are assigned to specific applications such as MySQL, PostgreSQL, RDP, and alternate web services.
Explanation
Examples include MySQL on port 3306, PostgreSQL on 5432, RDP on 3389, and alternate HTTP on 8080.
- 85
What are dynamic or ephemeral ports?
Model answer
Dynamic or ephemeral ports range from 49,152 through 65,535 and are used temporarily, such as by a client connecting to a web server.
Explanation
The temporary client port gives the server a return destination for its response.
- 86
Which ports are associated with common network services?
Model answer
FTP uses 20 and 21, SSH uses 22, Telnet uses 23, SMTP uses 25, DNS uses 53, DHCP uses 67 and 68, HTTP uses 80, POP3 uses 110, IMAP uses 143, HTTPS uses 443, MySQL uses 3306, RDP uses 3389, and alternate HTTP commonly uses 8080.
Explanation
Recognizing common ports helps identify running services during network analysis.
- 87
Why do attackers perform port scans?
Model answer
Attackers scan ports to discover open services that may contain exploitable vulnerabilities.
Explanation
An open port indicates that a service is listening and may increase the system's attack surface.
- 88
What is the security principle behind closing unnecessary ports?
Model answer
Closing unnecessary ports reduces the attack surface by eliminating services that attackers could target.
Explanation
A service that is not needed should not remain unnecessarily exposed.
- 89
What does DNS do?
Model answer
The Domain Name System translates human-readable domain names into IP addresses.
Explanation
It allows users to enter names such as google.com instead of numerical addresses.
- 90
What steps occur during a typical DNS lookup?
Model answer
The device checks its DNS cache, asks a resolver, and, if necessary, the resolver queries root, top-level-domain, and authoritative servers before returning and caching the IP address.
Explanation
The browser then uses the returned address to connect to the destination.
- 91
What is DNS spoofing?
Model answer
DNS spoofing supplies a false IP address for a legitimate domain, potentially sending a victim to an attacker-controlled website.
Explanation
A victim may believe they are visiting a bank while actually communicating with a fake site.
- 92
Compare HTTP and HTTPS.
Model answer
HTTP sends web traffic without encryption, while HTTPS uses TLS to encrypt the traffic and authenticate the server with a digital certificate.
Explanation
Unencrypted HTTP can expose usernames, passwords, session data, and other content to interceptors.
- 93
What are the roles of SMTP, IMAP, and POP3?
Model answer
SMTP sends email, IMAP reads and synchronizes email while keeping it on the server, and POP3 downloads email to a device and commonly removes it from the server.
Explanation
They support different parts of email delivery and access.
- 94
Why are SPF, DKIM, and DMARC used?
Model answer
They help verify that email actually comes from the domain or sender it claims to represent.
Explanation
These protections help defend against email spoofing and phishing.
- 95
What is SSH, and why is it safer than Telnet?
Model answer
SSH provides secure remote command-line access and encrypts communications, while Telnet sends commands and passwords in plain text.
Explanation
SSH runs on port 22 and can also use cryptographic key-based authentication.
- 96
What security practices help protect SSH?
Model answer
Recommended practices include disabling password login, using key-based authentication, changing the default port, and blocking repeated failed attempts.
Explanation
These measures reduce the effectiveness of automated password attacks against SSH.
- 97
Compare FTP, SFTP, and FTPS.
Model answer
FTP sends data in plain text, SFTP transfers files over an encrypted SSH connection, and FTPS adds TLS encryption to FTP.
Explanation
SFTP and FTPS are safer alternatives to unencrypted FTP.
- 98
Why is anonymous FTP a serious misconfiguration?
Model answer
Anonymous FTP allows users to log in without credentials and may expose sensitive files or permit unauthorized access.
Explanation
An open FTP service, especially one permitting anonymous access, is a significant security warning.
- 99
Why are both TCP and UDP needed?
Model answer
TCP prioritizes reliable, ordered delivery, while UDP prioritizes speed and low overhead when occasional loss is acceptable.
Explanation
Different applications require different trade-offs between reliability and delay.
- 100
What are the main characteristics of TCP?
Model answer
TCP is connection-oriented, reliable, ordered, and able to acknowledge, retransmit, and regulate data flow.
Explanation
These features ensure that application data arrives completely and in the correct order.
- 101
Describe the TCP three-way handshake.
Model answer
The client sends SYN, the server responds with SYN-ACK, and the client replies with ACK to establish the connection.
Explanation
The exchange confirms that both sides are ready to communicate.
- 102
How does TCP terminate a connection?
Model answer
TCP performs a clean shutdown using a four-step FIN and ACK exchange.
Explanation
The process allows both sides to finish sending and acknowledge the connection's closure.
- 103
How do TCP acknowledgments and retransmissions improve reliability?
Model answer
The receiver acknowledges received data, and TCP retransmits segments that appear to have been lost.
Explanation
Together with sequencing, these mechanisms provide complete and ordered delivery.
- 104
What is TCP flow control?
Model answer
TCP flow control prevents one communicating device from sending data faster than the other device can handle.
Explanation
It helps prevent the receiver from being overwhelmed.
- 105
When is TCP preferred?
Model answer
TCP is preferred when accuracy and complete delivery matter more than speed, such as for web browsing, email, file transfers, databases, and secure remote access.
Explanation
Missing data in these applications could cause incomplete or unusable results.
- 106
How does a SYN flood attack work?
Model answer
An attacker sends many SYN requests but does not complete the handshakes, causing the server to maintain large numbers of half-open connections until resources are exhausted.
Explanation
Legitimate users may then be unable to connect, producing a denial of service.
- 107
How do SYN cookies and rate limiting help defend against SYN floods?
Model answer
SYN cookies reduce the need to store incomplete connection state, while rate limiting restricts the number of connection requests accepted from a source or over a period.
Explanation
Both techniques reduce resource exhaustion caused by excessive SYN requests.
- 108
What is a TCP stealth scan?
Model answer
A TCP stealth scan sends a SYN, observes the response to determine whether a port is open, and then cancels the connection before completing it.
Explanation
It can reveal open ports while leaving fewer traces than a completed connection.
- 109
What are the main characteristics of UDP?
Model answer
UDP is connectionless, fast, lightweight, and does not guarantee delivery, ordering, acknowledgment, or retransmission.
Explanation
It sends data immediately without the setup and reliability overhead of TCP.
- 110
When is UDP preferred?
Model answer
UDP is preferred when low delay matters more than perfect delivery, such as for DNS, streaming, voice calls, online gaming, DHCP, SNMP, and TFTP.
Explanation
A small loss or glitch is often better than waiting for retransmission.
- 111
How can QUIC combine UDP speed with reliability?
Model answer
QUIC runs over UDP but adds application-level mechanisms for ordering, error handling, and recovery of lost packets.
Explanation
It aims to provide TCP-like reliability with more flexible UDP-based operation.
- 112
Why is UDP useful for reflection and amplification attacks?
Model answer
UDP has no connection handshake, making source-address spoofing easier; a small spoofed request can cause a much larger response to be sent to the victim.
Explanation
The response is reflected from another server and amplified in volume.
- 113
What is a DNS amplification attack?
Model answer
In a DNS amplification attack, an attacker spoofs a victim's IP address in small DNS requests, causing DNS servers to send larger responses to the victim.
Explanation
Many responding servers can flood the victim with traffic.
- 114
What is the central trade-off between TCP and UDP?
Model answer
TCP provides reliable, ordered delivery with more overhead, while UDP provides faster, lower-overhead delivery without guarantees.
Explanation
Applications choose between correctness and speed according to their requirements.
- 115
What happens during DNS resolution when a user enters a URL?
Model answer
The browser or device requests the destination IP from a resolver, which may query the DNS hierarchy before returning the address.
Explanation
The browser needs an IP address before it can establish communication with the web server.
- 116
What happens when a destination is outside the local network?
Model answer
The device sends the packet to its default gateway, and routers forward it through successive next hops toward the destination IP.
Explanation
Each router examines the IP header and makes a routing decision.
- 117
What happens when a browser connects to an HTTPS server on port 443?
Model answer
The client performs a TCP three-way handshake with port 443, followed by a TLS handshake that negotiates encryption, verifies certificates, and exchanges keys.
Explanation
Only after these steps does the browser send protected application data.
- 118
What is the purpose of the TLS handshake?
Model answer
The TLS handshake selects cryptographic algorithms, verifies the server's identity through certificates, and establishes encryption keys.
Explanation
Afterward, captured traffic should be unreadable without the session keys.
- 119
What is an SSL-stripping attack?
Model answer
An SSL-stripping attack attempts to downgrade a user's HTTPS connection to unencrypted HTTP.
Explanation
HSTS helps prevent this by instructing browsers to use HTTPS consistently.
- 120
What is contained in a typical HTTP request?
Model answer
It can contain a method such as GET, a requested path, the HTTP version, the host, the user agent, cookies, tokens, and other headers.
Explanation
Headers can reveal useful information during reconnaissance and may require protection.
- 121
How can security headers protect web applications?
Model answer
Headers such as Content Security Policy and X-Frame-Options help reduce risks such as cross-site scripting and clickjacking.
Explanation
They provide browser-enforced restrictions on content and framing behavior.
- 122
What does TCP do when the web server's response reaches the client?
Model answer
TCP reassembles the segments in the correct order and requests retransmission of missing data.
Explanation
This ensures the received webpage is complete before the application uses it.
- 123
What happens after a browser receives the initial HTML?
Model answer
The browser parses the HTML and requests additional resources such as CSS, JavaScript, and images.
Explanation
Each resource can generate additional DNS lookups and HTTP requests.
- 124
Identify security risks at several stages of loading a webpage.
Model answer
DNS can be poisoned, routing can be hijacked, TCP can be flooded, encryption can be downgraded, headers can leak information, applications can be exploited, servers can be misconfigured, and physical links can be tapped.
Explanation
The complete request path contains attack surfaces across multiple layers.
- 125
What is defense in depth?
Model answer
Defense in depth uses multiple layers of security so that the failure of one control does not cause the entire system to fail.
Explanation
The strategy mirrors the layered structure of network communication and the OSI model.
- 126
Why does securing network transport not eliminate application security risks?
Model answer
Even if traffic is delivered securely, the server or application may still contain SQL injection vulnerabilities, unpatched software, or misconfigured permissions.
Explanation
Network protection and application protection address different parts of the attack surface.
- 127
What tools can be used to practice network analysis and reconnaissance?
Model answer
Wireshark can capture traffic, Nmap can scan hosts and ports, ping can test reachability, and traceroute can show the path traffic takes.
Explanation
Hands-on observation helps connect networking concepts to real traffic and services.

Ask anything
We've read this whole study set, so questions about it get the best answers.