← Back to quizzesFree quiz

Fundamentals of Computer Networks and Systems

The TCP/IP model is the foundation of modern networking. It consists of four logical layers, each responsible for specific functions. Knowing which layer adds the IP address header is…

10 questions~5 min
Fundamentals of Computer Networks and Systems — Qwi
0 / 10
Score: 0%
1

Which layer of the TCP/IP model adds the IP address header to a packet?

2

In a lossless compression scheme, which of the following statements is true?

3

A network uses circuit switching for a voice call. Which of the following is a direct consequence of this method?

4

Which protocol provides reliable, ordered delivery of a stream of packets?

5

A file is transferred using FTP. Which of the following security properties does FTP guarantee by itself?

6

When a router forwards a packet, which piece of information in the packet header is primarily used to determine the next hop?

7

A student claims that a switch and a hub perform the same function because both connect multiple devices. Which statement best refutes this claim?

8

Which storage technology is described as having high speed, being very portable, but relatively expensive per gigabyte?

9

During the Fetch phase of the FDE cycle, which register holds the address of the next instruction to be executed?

10

Which DNS query result is returned to the client after the DNS server resolves a domain name?

Understanding the TCP/IP Model and Its Layers

The TCP/IP model is the foundation of modern networking. It consists of four logical layers, each responsible for specific functions. Knowing which layer adds the IP address header is crucial for grasping how data moves across networks.

  • Link Layer – Handles physical transmission and MAC addressing.
  • Network LayerAdds the IP address header to each packet, enabling routing across multiple networks.
  • Transport Layer – Provides end‑to‑end communication services such as TCP and UDP.
  • Application Layer – Hosts protocols like HTTP, FTP, and DNS that interact directly with users.

When a device sends data, the Network layer encapsulates the payload with an IP header containing the source and destination IP addresses. Routers then read this header to forward the packet toward its destination.

Lossless Compression: Preserving Data Integrity

Compression reduces the size of data for storage or transmission. Lossless compression guarantees that the original data can be perfectly reconstructed after decompression.

  • It records patterns of data—such as repeated sequences—so that the exact original content can be restored.
  • Common lossless algorithms include ZIP, PNG (for images), and LZW (used in GIF files).
  • Unlike lossy methods, lossless compression does not discard any information, making it essential for text files, executable programs, and any data where accuracy is paramount.

Understanding the distinction between lossless and lossy techniques helps you choose the right method for a given application.

Circuit Switching vs. Packet Switching

Network communication can be established using different switching techniques. Circuit switching creates a dedicated, exclusive path for the duration of a communication session, such as a traditional telephone call.

  • Because the path is reserved, the bandwidth is guaranteed and remains constant throughout the call.
  • There is no need for reassembly of out‑of‑order packets, as data travels along a single, continuous circuit.
  • However, the dedicated channel can be inefficient when the line is idle, since the reserved resources cannot be used by other traffic.

In contrast, packet‑switched networks (like the Internet) break data into packets that may travel different routes, sharing bandwidth among many users.

Reliable Data Transport: TCP vs. UDP

Transport‑layer protocols determine how data is delivered between hosts. The two most widely used protocols are:

  • TCP (Transmission Control Protocol) – Provides reliable, ordered delivery of a stream of packets. It uses acknowledgments, retransmissions, and flow control to ensure data integrity.
  • UDP (User Datagram Protocol) – Offers a connectionless service with no guarantee of delivery or order, making it faster but less reliable.

When an application requires guaranteed delivery—such as file transfers, email, or web page loading—TCP is the appropriate choice.

FTP Security Basics

File Transfer Protocol (FTP) is a classic method for moving files between a client and a server. By itself, FTP provides:

  • Authentication – Users must supply a username and password to gain access.
  • It does not encrypt data, compress files, or verify integrity automatically.

Because FTP transmits credentials and data in clear text, it is vulnerable to eavesdropping. For secure transfers, consider using FTPS (FTP over TLS) or SFTP (SSH File Transfer Protocol).

Routing Decisions: The Role of the Destination IP Address

Routers forward packets based on information in the packet header. The primary field used for this decision is the Destination IP address. Here’s how it works:

  1. The router examines the destination IP address.
  2. It consults its routing table to find the best matching network prefix.
  3. It then forwards the packet to the next hop associated with that prefix.

Other header fields—such as source IP, MAC addresses, or transport‑layer ports—may be used for additional processing (e.g., NAT or firewall rules) but are not the primary criteria for routing.

Switches vs. Hubs: Understanding the Difference

Both switches and hubs connect multiple devices, yet they operate at different layers and behave fundamentally differently.

  • Hub – A physical‑layer device that simply repeats incoming electrical signals to all ports. It creates a single collision domain, meaning every attached device competes for the same bandwidth.
  • Switch – A data‑link‑layer device that reads MAC addresses and forwards frames only to the port where the destination device resides. This isolates collision domains, reduces unnecessary traffic, and improves overall network efficiency.

The key refutation to the claim that “switches and hubs do the same thing” is that a hub forwards frames to all ports, while a switch forwards frames only to the destination port. This distinction dramatically impacts performance and scalability.

Storage Technologies: Speed, Portability, and Cost

Choosing the right storage medium depends on three main factors: speed, portability, and cost per gigabyte.

  • SSD (Solid‑State Drive) – Flash storage
    • High speed: rapid read/write operations with low latency.
    • Very portable: no moving parts, resistant to shock.
    • Relatively expensive per gigabyte compared to traditional HDDs.
  • HDD (Hard Disk Drive) – Magnetic storage
    • Slower than SSDs due to mechanical components.
    • Less portable; more vulnerable to physical damage.
    • Cheaper per gigabyte, making it suitable for bulk storage.
  • Magnetic tape and optical discs are typically used for archival purposes, offering high capacity but lower speed and portability.

Understanding these trade‑offs helps you select the appropriate storage solution for different workloads, from high‑performance computing to long‑term backup.

Key Takeaways

  • The Network layer adds the IP header, enabling routing across networks.
  • Lossless compression records data patterns for exact reconstruction.
  • Circuit switching reserves a dedicated path, guaranteeing constant bandwidth.
  • TCP provides reliable, ordered delivery; UDP is faster but unreliable.
  • FTP authenticates users but does not encrypt or verify data integrity.
  • Routers use the destination IP address to determine the next hop.
  • Switches forward frames selectively using MAC addresses, unlike hubs that broadcast to all ports.
  • SSDs offer high speed and portability at a higher cost per gigabyte.

Further Reading and Resources

To deepen your knowledge, explore the following resources:

  • Cisco – What is a Network?
  • GeeksforGeeks – TCP vs UDP
  • IETF – Internet Standards
  • How-To Geek – SSD Basics