Fundamentals of Computer Networks
Welcome to this comprehensive course on the Fundamentals of Computer Networks . Whether you are a beginner in computer science or looking to refresh your knowledge, this module covers the…

A device needs to determine whether an IP address belongs to its own subnet. Which network component is used for this purpose?
If a network uses the address 192.168.10.0/24, how many usable host addresses are available?
Which of the following statements best describes the difference between a MAC address and an IP address?
A packet is encapsulated within which structure before being transmitted on a local Ethernet network?
Which device forwards packets based on IP addresses rather than MAC addresses?
In a client–server model, which software component initiates a request for a web page?
Which of the following is a valid private IPv4 address range?
During data transmission, why are packets sent in short bursts rather than a continuous stream?
Which layer adds source and destination MAC addresses to data before it is placed on the physical medium?
A network administrator configures a device with the IP address 10.0.0.5 and subnet mask 255.255.255.0. Which address is the broadcast address for this subnet?
Which of the following best explains why MAC addresses are considered globally unique?
In the TCP/IP stack, which layer provides services that allow users and applications to exchange data?
A LAN uses a hub to interconnect devices. Which of the following statements about hub operation is correct?
Which of the following best describes the purpose of a subnet mask in IPv4 networking?
When a computer requests a web page, which protocol is primarily used to retrieve the page from the server?
Which of the following statements about the Transport Layer is accurate?
A packet includes source and destination IP addresses, source and destination ports, and data. Which layer adds the port numbers?
Which network type is defined as a collection of LANs tied together by routers?
Which of the following best explains why a packet size of 1500 bytes is commonly used?
In the client–server model, which of the following statements is true about server software?
Which of the following best describes the function of a router in a network?
Fundamentals of Computer Networks
Welcome to this comprehensive course on the Fundamentals of Computer Networks. Whether you are a beginner in computer science or looking to refresh your knowledge, this module covers the essential concepts that underpin modern networking. The content is organized around key topics that appear frequently in quizzes and real‑world scenarios, ensuring you not only memorize facts but also understand the underlying principles.
1. The TCP/IP Model and Its Layers
The TCP/IP model is the foundation of Internet communication. It consists of four layers, each with distinct responsibilities:
- Link Layer – Handles physical transmission of bits over a medium and includes Ethernet, Wi‑Fi, and other link‑level protocols.
- Internet Layer – Responsible for routing packets across different networks. This is where the Internet Protocol (IP) operates.
- Transport Layer – Provides end‑to‑end communication services. The most common protocols are TCP (reliable) and UDP (unreliable).
- Application Layer – Hosts high‑level protocols such as HTTP, FTP, and DNS that applications directly use.
When asked, "Which layer of the TCP/IP model is responsible for routing data across different networks?", the correct answer is the Internet Layer. Routers operate at this layer, examining the destination IP address and forwarding the packet toward its final network.
2. Understanding Subnetting and the Subnet Mask
Subnetting divides a larger IP network into smaller, more manageable pieces. The subnet mask is the crucial component that tells a device how many bits of an IP address represent the network versus the host.
- For IPv4, a common mask is
255.255.255.0(or/24), meaning the first 24 bits identify the network. - When a device receives an IP address, it performs a bitwise AND operation with the subnet mask to determine if the address belongs to its own subnet.
Thus, the answer to the question "A device needs to determine whether an IP address belongs to its own subnet. Which network component is used for this purpose?" is the Subnet mask.
3. Calculating Usable Host Addresses
One of the most common practical tasks is determining how many hosts can exist in a given subnet. The formula is:
Usable hosts = 2^(number of host bits) – 2
The subtraction of 2 accounts for the network address (all host bits 0) and the broadcast address (all host bits 1).
For the network 192.168.10.0/24:
- Host bits = 32 – 24 = 8
- Usable hosts = 2^8 – 2 = 256 – 2 = 254
This matches the quiz answer of 254 usable host addresses.
4. MAC Address vs. IP Address
Both MAC and IP addresses identify devices, but they operate at different layers and serve distinct purposes:
- MAC address – A 48‑bit hardware identifier assigned by the device manufacturer. It is used at the Link Layer for local network communication.
- IP address – A logical address assigned by a network administrator or DHCP server. It can change as a device moves between networks.
The best description among the options is: "MAC addresses are assigned by manufacturers, IP addresses are assigned dynamically or manually."
5. Ethernet Frames and Encapsulation
When data travels over an Ethernet network, it is encapsulated inside a frame. The encapsulation process follows a hierarchy:
- Application data → payload
- Transport segment (TCP/UDP) → segment
- Network datagram (IP) → datagram
- Link frame (Ethernet) → frame
Therefore, the correct answer to the question "A packet is encapsulated within which structure before being transmitted on a local Ethernet network?" is a Frame.
6. Routing Devices: Switches vs. Routers
Understanding the role of networking hardware is essential:
- Repeater – Regenerates signals but does not inspect addresses.
- Hub – Broadcasts incoming frames to all ports; no address awareness.
- Switch – Operates at the Link Layer, forwarding frames based on MAC addresses.
- Router – Operates at the Internet Layer, forwarding packets based on IP addresses.
Thus, the device that forwards packets based on IP addresses is the Router.
7. Client‑Server Interaction
In the client‑server model, the client software initiates requests (e.g., a web browser requesting a page). The server software listens for those requests and responds with the requested resources.
Consequently, the answer to "In a client–server model, which software component initiates a request for a web page?" is Client software.
8. Private IPv4 Address Ranges
Private IP ranges are reserved for internal networks and are not routable on the public Internet. The three official ranges are:
- 10.0.0.0 – 10.255.255.255 (Class A)
- 172.16.0.0 – 172.31.255.255 (Class B)
- 192.168.0.0 – 192.168.255.255 (Class C)
When the quiz asks for a valid private range and offers "Both A and C," the correct choice is indeed Both A and C (10.0.0.0/8 and 192.168.0.0/16).
9. Summary of Key Concepts
Below is a quick reference table that consolidates the main points covered in this course:
- Internet Layer – Handles routing; routers operate here.
- Subnet Mask – Determines network vs. host portion of an IP address.
- Usable Hosts – Calculated as 2^(host bits) – 2.
- MAC vs. IP – MAC is hardware‑assigned, IP is logical and can change.
- Ethernet Frame – The encapsulation unit for local transmission.
- Router – Forwards based on IP; Switch forwards based on MAC.
- Client Software – Initiates requests in a client‑server model.
- Private IP Ranges – 10/8, 172.16/12, 192.168/16.
10. Frequently Asked Questions (FAQ)
What is the difference between a packet and a frame?
A packet (or datagram) refers to the unit of data at the Network Layer (IP). A frame is the encapsulated unit at the Link Layer (Ethernet) that includes MAC addresses and error‑checking information.
Can a device have multiple IP addresses?
Yes. A single network interface can be assigned multiple IP addresses (known as IP aliasing) for purposes such as virtual hosting or network segmentation.
Why are private IP addresses not routable on the Internet?
Private ranges are reserved by IANA to avoid address collisions and to conserve public address space. Routers on the public Internet are configured to drop packets with private source or destination addresses.
11. Further Reading and Resources
To deepen your understanding, explore the following resources:
- RFC 791 – Internet Protocol
- Cisco IP Addressing Guide
- Subnetting Tutorial
- Networking Fundamentals
By mastering these fundamentals, you will be well‑prepared for more advanced topics such as routing protocols, network security, and cloud networking. Keep practicing with quizzes, labs, and real‑world configurations to solidify your knowledge.
