Overview

11 Networking Fundamentals

Computer networks connect devices of all sizes, from small home setups to the global Internet, so they can share data, resources, and services. The chapter emphasizes that networks are built from endpoints, network devices, and communication links, and that they rely on addressing and standardized protocols to move information reliably. It also highlights why networking knowledge matters for cybersecurity: the same connectivity that enables collaboration can also expose systems to interception, unauthorized access, traffic manipulation, and disruption.

The text explains how data travels across a network using a web request as an example, showing the roles of switches, routers, firewalls, proxies, DNS, and servers in directing and controlling traffic. It then introduces core network components such as NICs, hubs, repeaters, switches, routers, wireless access points, proxy servers, and firewalls, describing how each contributes to communication and security. The chapter also compares network types like LANs, MANs, and WANs, and discusses wired versus wireless networking, including the security implications of each.

Finally, the chapter covers addressing, networking models, ports, and segmentation as foundational concepts for secure communication. MAC addresses identify hardware locally, while IP addresses and DNS support routing across networks; DHCP automates address assignment, and IPv4, IPv6, and special-purpose addresses are explained in security context. The OSI and TCP/IP models show how data is encapsulated and handled across layers, logical ports distinguish services on the same device, and segmentation methods such as VLANs, subnetting, DMZs, micro-segmentation, and VPNs help isolate traffic, reduce attack spread, and protect data in transit.

Illustration of a request from the network of a small company traveling through the internet to the server located in the “Big company”.
The main components of networks
Illustration of LANs, and MANs interconnect by a WAN
Illustration of the main types of IoT setups connected to the Internet
Structure of a 48-bit MAC address with 24-bit Organizationally Unique Identifier (OUI) prefix plus 24-bit vendor-assigned device identifier
Illustration IPv4 address as 32 bits grouped as four bytes in dotted decimal notation
Illustration of Network Address Translation (NAT)
Illustration of a sequence DNS queries to translate a domain name to an IP address
A side-by-side illustration of the layers of the OSI and TCP/IP network stack models
Illustration of the connectionless functioning of the UDP protocol
The TCP connection lifecycle including 3-way handshake, bidirectional data with ACKs, and the FIN/ACK termination.
Illustration of encapsulation and decapsulation across OSI layers during data transmission
Ports of well-known TCP/IP application protocols grouped by functionality
Network topology diagram showing segmented VLANs spanning distinct physical spaces
Network topology diagram showing a buffer zone, known as a demilitarized zone (DMZ)
Illustration of a VPN remote access connection
Site-to-Site VPN network using an encrypted tunnel to connect two trusted networks

Answers to Review Questions

  1. The correct answer is C. The role of a hub in a network is to connect multiple devices. It serves as a common connection point for devices on a network, receiving incoming data packets and forwarding them to all other connected devices. For example, in a small office network, a hub might be used to connect all the computers so that they can communicate and share resources.
  2. The correct answer is A. A router is a networking device whose primary objective is to determine the most efficient path for traffic to flow across a network. Routers connect two or more networks and forward data packets between them according to their destination address
  3. The correct answer is A. A local area network (LAN) typically covers a single floor or building. Long-distance connections between geographically-distant networks form something called a wide area network (WAN).
  4. The correct answer is A. All network devices have a 48-bit Media Access Control (MAC) address, represented as six groups of 8 bits values in hexadecimal. An example of a MAC address would be 00-51-02-1F-58-F6. An IPv4 address is a 32-bit address represented as a sequence of four 8-bit integers, an example of which would be 10.23.19.49.
  5. The correct answer is D. A MAC address belongs to the Data Link layer of the OSI model. The Data Link layer is responsible for providing error-free transfer of data between nodes on the same local network, and it is where network interface cards (NICs) and MAC addresses are defined. The MAC address is a unique identifier assigned to a network interface card, and it is used for communication within the local network.
  6. The correct answer is D. The Open Systems Interconnection (OSI) model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. Each layer performs a specific function in the process of communicating over a network.
  7. The correct answer is A. TCP uses a three-way handshake to establish a reliable connection by exchanging three packets with the SYN, SYN/ACK and ACK flags. Although SYN, ACK and FIN are valid TCP packet flags, the sequence SYN → ACK → FIN is not the TCP handshake. Both the sequences Discover → Offer → Request and Offer → Request → ACK are used in DHCP (but are still incomplete, since DHCP is a four-way handshake).
  8. The correct answer is D. The TCP/IP model, which is the foundation of the Internet Protocol suite, does not include a layer called "physical." Instead, the TCP/IP model has four layers: Application layer (Determines the protocols for the Transport layer); [2] Transport layer (Allows for data to move among devices); [3] Internet layer (Creates and inserts packets); [4] Network Interface Layer (Governs how data will move through the network)
  9. The correct answer is C. SMTP, or Simple Mail Transfer Protocol, uses port 25 to transfer e-mail messages over networks. This port allows email to be sent (unencrypted) from a client to a server or between servers.
  10. The correct answer is C. Port 443 is used for Hypertext Transfer Protocol Secure (HTTPS) communications, which ensures that data transmitted between a Web browser and a server is encrypted and secure. This encryption is typically achieved through the use of SSL/TLS protocols.

FAQ

What is a computer network?A computer network is a collection of connected devices that can communicate and exchange information, share resources, and support collaboration.
What is the difference between an endpoint and a network device?An endpoint is a device that initiates or receives communication, such as a laptop, phone, server, or printer. A network device, such as a switch, router, or firewall, mainly helps move, direct, or control the traffic between endpoints.
How do switches, routers, and firewalls differ?A switch forwards traffic within a local network to the intended device, a router directs traffic between different networks using IP addresses, and a firewall inspects traffic and allows or blocks it based on security rules.
What is the difference between a MAC address and an IP address?A MAC address is a fixed hardware identifier used to identify a device on a local network, while an IP address is a logical address used to locate and route a device across networks.
What is the role of DNS in networking?DNS translates human-readable domain names, such as www.example.com, into numeric IP addresses so devices can find and connect to the correct server.
What are the main layers of the OSI model?The OSI model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. Each layer has specific responsibilities in moving and processing data.
What is the difference between TCP and UDP?TCP is connection-oriented and provides reliable, ordered delivery with acknowledgments and retransmissions. UDP is connectionless and faster, but it does not guarantee delivery or ordering.
What is logical port addressing used for?Logical ports help direct incoming traffic to the correct application or service on a device. For example, different services on the same server can listen on different port numbers.
What is network segmentation and why is it important?Network segmentation divides a network into smaller parts to improve security and performance. It helps limit lateral movement during attacks and reduces unnecessary traffic.
What is a VPN and how does it help secure communication?A VPN creates an encrypted tunnel over an untrusted network like the internet, protecting data in transit from interception and helping users or networks communicate securely.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Fundamentals of Cybersecurity ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Fundamentals of Cybersecurity ebook for free