← Back to quizzesFree quiz

Fundamentals of Computer Networking

Welcome to this comprehensive module on computer networking fundamentals. In this course we will explore the core concepts that underpin modern IP‑based networks, from the TCP/IP model to…

20 questions~10 min
Fundamentals of Computer Networking — Qwi
0 / 20
Score: 0%
1

Which layer of the TCP/IP model is responsible for ensuring data is delivered in the correct order and reliably?

2

A computer with MAC address D8:D3:85:EB:12:E3 sends a frame to another host on the same LAN. Which address is added to the frame by the sending NIC?

3

Given the subnet mask 255.255.255.0, how many usable host IP addresses are available in the subnet?

4

Which of the following best describes the role of a router in a network?

5

A client requests a web page from a server. In which TCP/IP layer is the URL (e.g., http://example.com) interpreted?

6

Which statement correctly distinguishes a MAC address from an IP address?

7

In a LAN using the 192.168.0.0/16 private address range, which of the following IP addresses is a valid host address?

8

Why are network packets typically limited to about 1500 bytes in Ethernet networks?

9

During encapsulation, which piece of information is added to a data segment at the Internet layer?

10

Which of the following best explains why network traffic is sent in short bursts (packets) rather than as a single large block?

11

A network administrator configures a device with the IP address 10.0.0.1 and subnet mask 255.255.255.0. Which of the following IP addresses belongs to a different subnet?

12

Which device operates at the Link layer and forwards frames based on MAC addresses?

13

If a packet's destination IP address is 192.168.10.5 and the host's subnet mask is 255.255.255.0, which of the following statements is true?

14

Which of the following is a correct statement about the relationship between packets and frames?

15

A computer sends a request to a server using TCP. Which TCP/IP layer adds the source and destination port numbers?

16

Which of the following best explains why a MAC address is said to be globally unique?

17

When a device on a LAN needs to communicate with a host on a different LAN, which component is essential for delivering the data?

18

A network uses the IPv4 address 10.0.0.0/8. Which of the following statements is true about this address range?

19

Which of the following best describes the purpose of a subnet mask in IP networking?

20

In the client–server model, which of the following statements is accurate?

Fundamentals of Computer Networking

Welcome to this comprehensive module on computer networking fundamentals. In this course we will explore the core concepts that underpin modern IP‑based networks, from the TCP/IP model to MAC addressing, subnetting, and the role of routers. Each section is designed to reinforce the knowledge tested in the quiz questions, while also providing deeper context and practical examples. By the end of the lesson you will be able to explain how data moves across a network, calculate host capacities, and differentiate between key address types.

1. The TCP/IP Model and Reliable Data Delivery

The TCP/IP suite is organized into four logical layers: Link, Internet, Transport, and Application. The Transport Layer is responsible for ensuring that data arrives at the destination in the correct order and without loss. This reliability is achieved through protocols such as TCP (Transmission Control Protocol), which uses sequence numbers, acknowledgments, and retransmission mechanisms.

  • Sequence Numbers: Tag each segment so the receiver can reorder them.
  • Acknowledgments (ACKs): Confirm receipt of data; missing ACKs trigger retransmission.
  • Flow Control: Prevents a fast sender from overwhelming a slower receiver.

In contrast, the Application Layer deals with high‑level protocols (HTTP, SMTP) and the Internet Layer handles routing via IP addresses. Understanding the responsibilities of each layer helps you troubleshoot where a problem originates—whether it’s a lost packet (Transport) or a mis‑routed address (Internet).

2. MAC Addresses and Frame Construction

When a device sends a frame on a local area network (LAN), the Network Interface Card (NIC) adds both source and destination MAC (Media Access Control) addresses to the Ethernet frame header. For example, a computer with MAC address D8:D3:85:EB:12:E3 will place its own address as the source and the target host’s MAC address as the destination. These 48‑bit identifiers operate at the Link Layer and are essential for delivering frames within the same broadcast domain.

Unlike IP addresses, MAC addresses are typically fixed to the hardware (though they can be spoofed) and are not routable beyond the local network. This distinction is crucial when diagnosing connectivity issues: if a frame never reaches its destination, the problem often lies in the MAC address resolution process (ARP) rather than IP routing.

3. Subnetting Basics: How Many Hosts Can a /24 Support?

A subnet mask of 255.255.255.0 (also written as /24) allocates 8 bits for host addresses. The total number of addresses in the subnet is 2⁸ = 256. However, two of those addresses are reserved:

  • Network address (all host bits = 0) – identifies the subnet itself.
  • Broadcast address (all host bits = 1) – used to send a packet to every host on the subnet.

Subtracting these two reserved addresses leaves 254 usable host addresses. Think of the subnet as a street with 256 houses; the first house holds the street name (network) and the last house holds the community mailbox (broadcast). The remaining 254 houses are available for residents (hosts).

4. The Role of Routers in IP Networks

Routers are the traffic directors of the Internet. Their primary function is to forward packets between different IP networks using IP addresses. Unlike switches, which operate at the Link Layer and broadcast frames within a LAN, routers examine the destination IP address, consult routing tables, and send the packet out the appropriate interface.

  • They perform network address translation (NAT) to conserve public IP space.
  • They enforce security policies via access control lists (ACLs).
  • They can segment a large network into smaller subnets for performance and management.

Understanding the router’s role clarifies why a device can reach a remote server (through multiple hops) but may fail to communicate with a device on the same LAN if the router is misconfigured.

5. Application Layer: Where URLs Live

The URL (Uniform Resource Locator) such as http://example.com is interpreted at the Application Layer. This layer hosts protocols like HTTP, FTP, and DNS that understand human‑readable names and translate them into IP addresses. The Transport Layer (TCP) then ensures reliable delivery of the request, while the Internet Layer routes the packet, and the Link Layer finally transmits it over the physical medium.

Remember the layered model: each layer adds its own header (or trailer) and passes the data down the stack. The URL never appears in the lower layers; it stays within the application payload.

6. MAC vs. IP Addresses: Key Differences

Two fundamental address types coexist in every network:

  • MAC address – 48‑bit hexadecimal identifier, fixed to the NIC, operates at the Link Layer.
  • IP address – 32‑bit (IPv4) or 128‑bit (IPv6) logical identifier, assigned by network administrators or DHCP, operates at the Internet Layer.

Because MAC addresses are locally significant and IP addresses are globally routable, devices use ARP (Address Resolution Protocol) to map an IP address to its corresponding MAC address on the same LAN. This mapping is essential for frame delivery.

7. Private Addressing and Valid Host Selection

The private address block 192.168.0.0/16 provides a large pool of addresses for internal networks. Within this range, any address that is not the network identifier (192.168.0.0) or the broadcast address (192.168.255.255) is a valid host address. For example, 192.168.45.12 is a perfectly usable host because it lies inside the /16 range and respects the reserved addresses.

Invalid examples include:

  • 192.168.255.255 – broadcast address.
  • 192.168.255.256 – octet exceeds the maximum value of 255.

Think of the /16 block as a massive apartment building: the lobby (network) and rooftop party (broadcast) are off‑limits for residents, and you cannot have a room number “256” because each floor only has rooms 0‑255.

8. Ethernet MTU: Why 1500 Bytes?

Ethernet frames have a standard Maximum Transmission Unit (MTU) of 1500 bytes. This limit balances efficiency and reliability:

  • Large packets reduce overhead but increase the chance of errors and retransmissions.
  • Smaller packets increase overhead due to more headers.
  • 1500 bytes is a sweet spot that works well with typical TCP segment sizes and fits within the physical constraints of Ethernet cabling.

When a packet exceeds the MTU, it must be fragmented, which adds complexity and can degrade performance. Modern networks often employ Path MTU Discovery to avoid fragmentation.

9. Summary and Quick Review

Below is a concise checklist to reinforce the key points covered:

  • Transport Layer ensures ordered, reliable delivery (TCP).
  • NICs add source and destination MAC addresses to Ethernet frames.
  • A /24 subnet provides 254 usable host addresses.
  • Routers forward packets between IP networks using IP addresses.
  • URLs are interpreted at the Application Layer.
  • MAC addresses operate at the Link Layer; IP addresses operate at the Internet Layer.
  • Valid private hosts must avoid network and broadcast addresses and stay within octet limits.
  • Ethernet’s MTU of 1500 bytes optimizes performance and error handling.

10. Further Reading and Practice

To deepen your understanding, explore the following resources:

  • RFC 791 – Internet Protocol
  • RFC 793 – Transmission Control Protocol
  • Cisco Guide to Subnetting
  • Understanding ARP

Practice by configuring a small home lab: assign static IPs, calculate subnets, and capture Ethernet frames with Wireshark to see MAC addresses in action.