quiz Computer Science · 16 questions

Fundamentals of Computer Networks

help_outline 16 questions
timer ~8 min
auto_awesome AI-generated
0 / 16
Score : 0%
1

Which layer of the TCP/IP model is responsible for assigning IP addresses to packets?

2

A computer on a LAN has MAC address D8:D3:85:EB:12:E3. Which of the following statements is true about this address?

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 function of a network frame?

5

In the client–server model, which component typically runs the Apache software?

6

A packet size of 1500 bytes is most commonly used. Which layer adds the MAC addresses to this packet?

7

Which of the following IP address ranges is reserved for private networks?

8

When a computer sends a request to a web server, which protocol stack is primarily used to deliver the data?

9

Which statement correctly distinguishes MAC and IP addresses?

10

A network administrator wants to limit broadcast traffic to a specific LAN segment. Which device should be used?

11

If a packet is lost during transmission, which layer is primarily responsible for detecting the loss and requesting retransmission?

12

Which of the following best explains why data is sent in short bursts (packets) rather than a continuous stream?

13

Which type of network connects multiple LANs over a large geographic area using third‑party providers?

14

A device needs to forward frames based on MAC addresses. Which network device performs this function?

15

Which of the following statements about private IP addresses is correct?

16

During the encapsulation process, which piece of information is added to a data unit at the link layer?

menu_book

Fundamentals of Computer Networks

Review key concepts before taking the quiz

Fundamentals of Computer Networks: Overview

Computer networks form the backbone of modern digital communication. Understanding the TCP/IP model, addressing schemes, and data encapsulation is essential for anyone studying Computer Science or preparing for networking certifications. This course translates the key concepts behind a typical quiz into a comprehensive, SEO‑friendly guide that will help you master the fundamentals of computer networks.

1. The TCP/IP Model and Its Layers

The TCP/IP model is a four‑layer framework that standardizes how data moves from one device to another across the internet. Each layer has a distinct responsibility:

  • Link Layer – Handles physical addressing (MAC addresses) and media access control.
  • Internet Layer – Manages logical addressing (IP addresses) and routing.
  • Transport Layer – Provides end‑to‑end communication services such as TCP and UDP.
  • Application Layer – Hosts protocols like HTTP, FTP, and SMTP that applications use.

When a device needs to assign an IP address to a packet, the Internet Layer is responsible. This layer adds the source and destination IP addresses, enabling routers to forward the packet across multiple networks.

Key Quiz Connection

In the quiz, the question "Which layer of the TCP/IP model is responsible for assigning IP addresses to packets?" highlights the Internet Layer as the correct answer, reinforcing its central role in logical addressing.

2. MAC Addresses: The Physical Identifier

A Media Access Control (MAC) address is a 48‑bit identifier burned into a network interface card (NIC) by the manufacturer. It is globally unique and remains constant for the lifetime of the hardware, unless manually overridden.

  • Format: Six hexadecimal pairs separated by colons (e.g., D8:D3:85:EB:12:E3).
  • Purpose: Enables devices on the same local area network (LAN) to locate each other at the data link level.
  • Scope: MAC addresses are only relevant within a single broadcast domain; they are not used for routing between subnets.

Because MAC addresses are fixed, they are ideal for network management tools that track devices over time.

Key Quiz Connection

The statement "It is globally unique and assigned by the NIC manufacturer" correctly describes the nature of a MAC address, as reflected in the quiz.

3. Subnetting and Host Capacity

Subnet masks divide an IP network into smaller, manageable sub‑networks. The most common mask, 255.255.255.0, allocates the first three octets for the network portion and the last octet for host addresses.

To calculate usable host addresses:

  • Identify the number of host bits: 32 – (number of 1s in the mask). For 255.255.255.0, there are 8 host bits.
  • Compute total addresses: 2^8 = 256.
  • Subtract the network address and broadcast address, leaving 254 usable hosts.

Key Quiz Connection

The quiz asks, "Given the subnet mask 255.255.255.0, how many usable host IP addresses are available?" The correct answer, 254, demonstrates the practical application of subnet calculations.

4. Network Frames: Encapsulation at the Link Layer

Before a packet can travel over a physical medium, it must be wrapped in a network frame. The frame adds essential information such as source and destination MAC addresses, a frame type field, and a checksum for error detection.

  • Encapsulation: Data → Packet (Internet Layer) → Frame (Link Layer).
  • Purpose: Ensures that devices on the same LAN can correctly receive and validate the data.
  • Error Detection: Typically performed using a Frame Check Sequence (FCS) at the end of the frame.

Frames do not carry IP routing information; that responsibility remains with the packet inside the frame.

Key Quiz Connection

The quiz question "Which of the following best describes the function of a network frame?" points to the encapsulation role of the Link Layer, reinforcing the concept of data link framing.

5. The Client‑Server Model and Apache

In the client‑server architecture, the server provides resources or services, while the client initiates requests. Apache HTTP Server is a widely used web server software that runs on the server side, handling HTTP/HTTPS requests from client browsers.

  • Server Role: Listens on port 80 (HTTP) or 443 (HTTPS), processes incoming requests, and returns HTML, CSS, JavaScript, or other resources.
  • Client Role: Sends a request using a web browser or other HTTP client, then renders the response.
  • Network Flow: Client → Router → Switch → Server (Apache) → Response back to client.

Key Quiz Connection

The quiz asks, "In the client–server model, which component typically runs the Apache software?" The answer is the server computer, highlighting the division of responsibilities.

6. Adding MAC Addresses: The Link Layer’s Responsibility

When a packet of 1500 bytes is ready for transmission, the Link Layer appends the source and destination MAC addresses, forming a complete Ethernet frame. This step occurs after the packet has been constructed by the Internet Layer.

Typical Ethernet frame structure:

  • Destination MAC (6 bytes)
  • Source MAC (6 bytes)
  • EtherType/Length (2 bytes)
  • Payload (up to 1500 bytes)
  • Frame Check Sequence (4 bytes)

Key Quiz Connection

The quiz’s "A packet size of 1500 bytes is most commonly used. Which layer adds the MAC addresses to this packet?" correctly identifies the Link Layer as the answer.

7. Private IP Address Ranges

Private IP addresses are reserved for use within internal networks and are not routable on the public internet. The most common private ranges are defined by RFC 1918:

  • 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)

These ranges enable organizations to create isolated networks without consuming public IP space.

Key Quiz Connection

The quiz asks which range is reserved for private networks; the correct answer is 192.168.0.0 – 192.168.255.255, reinforcing the importance of recognizing private address blocks.

8. The TCP/IP Protocol Stack in Web Communication

When a user accesses a website, the data travels through the TCP/IP protocol stack. The typical flow is:

  1. Application Layer: Browser generates an HTTP request.
  2. Transport Layer: TCP segments the request, ensuring reliable delivery.
  3. Internet Layer: IP adds source and destination IP addresses.
  4. Link Layer: Ethernet frames encapsulate the packet with MAC addresses.

Each layer adds its own header, creating a layered packet that traverses routers and switches until it reaches the destination web server.

Key Quiz Connection

The quiz question "When a computer sends a request to a web server, which protocol stack is primarily used to deliver the data?" correctly identifies the TCP/IP protocol stack as the underlying framework.

9. Putting It All Together: A Real‑World Example

Imagine a laptop on a home LAN requesting the homepage of example.com:

  1. The browser creates an HTTP GET request (Application Layer).
  2. TCP wraps the request in a segment with a sequence number (Transport Layer).
  3. IP adds the laptop’s private IP (e.g., 192.168.1.10) and the destination public IP (e.g., 93.184.216.34) (Internet Layer).
  4. Ethernet adds the laptop’s MAC address (D8:D3:85:EB:12:E3) and the router’s MAC address (Link Layer).
  5. The frame travels across the home switch, reaches the router, which strips the frame, forwards the IP packet to the ISP, and eventually to the web server.
  6. The server (running Apache) processes the request and sends a response back through the same layered process.

This end‑to‑end journey illustrates how each concept covered in this course interacts in a practical scenario.

10. Review and Study Tips

To solidify your understanding of computer networks, consider the following study strategies:

  • Flashcards: Create cards for each TCP/IP layer, private IP ranges, and MAC address characteristics.
  • Lab Exercises: Use tools like Wireshark to capture frames and identify MAC addresses, IP headers, and transport‑layer ports.
  • Subnet Calculators: Practice converting between CIDR notation and dotted‑decimal masks to reinforce host‑address calculations.
  • Diagram Drawing: Sketch the encapsulation process from application data down to the physical layer; visualizing the stack aids memory retention.

By repeatedly applying these concepts in hands‑on labs and quizzes, you’ll develop the intuition needed for advanced networking topics such as routing protocols, VLANs, and network security.

Conclusion

The fundamentals covered here—TCP/IP layering, MAC addressing, subnetting, framing, client‑server interactions, private IP ranges, and the overall protocol stack—form the core knowledge required for any aspiring network professional. Mastery of these topics not only prepares you for certification exams but also equips you to design, troubleshoot, and optimize real‑world networks.

Stop highlighting.
Start learning.

Join students who have already generated over 50,000 quizzes on Quizly. It's free to get started.