Computer Networking Basics
Learn computer networking with multiple-choice questions: the OSI reference model and TCP/IP, IP addressing and subnet calculations, ARP and routing, TCP and UDP, DNS, DHCP and TLS, transfer-time calculations, wireless LAN, firewalls and VPNs.
Data Transfer Time Calculator →
Image, Audio and Video Data Size Calculator →
Dijkstra's algorithm calculator →
Computer Networking Basics: key points
Even opening a single web page sets many mechanisms to work in turn: looking up an address from a name, choosing a route, delivering data reliably and protecting it with encryption. Computer networks organize these functions into layers, with each layer taking care of its own role only.
This topic covers the OSI reference model and the TCP/IP layers, MAC addresses and switches, IP addresses and subnet mask calculations, ARP and routing, TCP's three-way handshake, flow control and congestion control, and DNS, DHCP and TLS. It also covers calculating transfer times from bandwidth and latency, and the basics of wireless LAN, firewalls and VPNs, which helps with the network section of IT certification exams such as Japan's Fundamental Information Technology Engineer Examination.
All Computer Networking Basics questions (40)
- In the OSI reference model, which layer uses logical addresses such as IP addresses to relay packets between different networks until they reach their destination?
- In the four-layer TCP/IP model, which layer do TCP and UDP belong to?
- When a web page's data is sent, what happens on the sending side each time the data is passed from an upper layer to a lower layer?
- Which statement about MAC addresses is correct?
- Compared with a hub (repeater hub), which correctly describes how an L2 switch operates?
- On one L2 switch, VLANs are configured so that ports 1–4 are in VLAN 10 and ports 5–8 are in VLAN 20. Which statement about its operation is correct?
- Which correctly shortens the IPv6 address 2001:0db8:0000:0000:0000:0000:0000:0001 according to the abbreviation rules?
- A host has IP address 192.168.1.10 and subnet mask 255.255.255.0. What is the network address of the network it belongs to?
- In the network 192.168.5.0/26, how many IP addresses can be assigned to hosts (end devices or router interfaces)?
- A host has IP address 192.168.10.77/27. What is the broadcast address of its subnet?
- You want to fit 500 hosts in one subnet. Of the subnets that can do this, which is the smallest (has the longest prefix)?
- Which subnet mask is equivalent to /20 in CIDR notation?
- Which of the following IPv4 addresses falls within a private address range?
- Home broadband routers perform NAPT (IP masquerading), a form of NAT (Network Address Translation). What does NAPT make possible?
- Host A (192.168.1.10), inside a router performing NAPT whose outside global address is 198.51.100.7, connects from source port 50000 to port 443 on web server 203.0.113.5. The router translates the source to port 61000 on 198.51.100.7. What is the destination of the response packets the web server sends back?
- Which correctly describes the role of ARP?
- A host (192.168.1.10/24, default gateway 192.168.1.1) sends a packet to server 203.0.113.80 on a different network. With an empty ARP cache, whose MAC address does the host look up with ARP?
- A router's routing table has four routes: 0.0.0.0/0 (next hop router A), 10.0.0.0/8 (router B), 10.1.0.0/16 (router C) and 10.1.2.0/24 (router D). To which router is a packet for 10.1.5.9 sent?
- What is the role of the TTL (Time To Live) field in the IPv4 header?
- Which correctly describes dynamic routing?
- Which correctly describes UDP?
- In the three-way handshake that establishes a TCP connection, what is the correct order of the packets exchanged?
- A client makes a new HTTPS connection (TLS 1.3 over TCP) to a web server with a round-trip time (RTT) of 100 ms. Roughly how long does it take until the response to the first request starts to arrive? Assume DNS resolution is already done, and ignore server processing time and data transfer time.
- Which correctly pairs protocols with the standard port numbers their servers use?
- In TCP flow control, what is the purpose of the receiver advertising its window size (receive window) to the sender?
- A TCP connection has a fixed receive window of 65536 bytes and an RTT of 10 ms. The link bandwidth is ample and there is no loss. Which is closest to the upper limit on this connection's throughput?
- Which correctly describes the basic idea of TCP congestion control?
- What triggers a TCP sender to decide that a segment was lost and retransmit it?
- What is the main role of DNS (Domain Name System)?
- A full-service resolver (caching DNS server) with an empty cache looks up the IP address of www.example.com. In what order does it query servers?
- When a device obtains an IP address with DHCP, what is the correct order of messages?
- Which of the following does HTTPS (HTTP protected by TLS) protect?
- In TLS, why can a browser conclude that the server it connects to is not an impostor?
- Roughly how long does it take to send a 100 MB file over a 100 Mbps link? Ignore overhead such as headers and latency, and take 1 MB = 10^6 bytes.
- On 1 Gbps Ethernet, TCP data is sent continuously with IP packets filling the 1500-byte MTU. Taking the IPv4 header as 20 bytes, the TCP header as 20 bytes, the Ethernet header and FCS together as 18 bytes, and the preamble and inter-frame gap together as 20 bytes, which is closest to the upper limit on application-data throughput?
- Over a link with an RTT of 50 ms and a bandwidth of 100 Mbps, a request that returns a 10 KB response is repeated 100 times, each sent only after the previous response has been fully received. Which is closest to the total time? Take the time per request as the RTT plus the response transfer time (data size ÷ bandwidth), 1 KB = 1000 bytes, and ignore server processing time.
- What is the main reason wireless LAN uses CSMA/CA rather than CSMA/CD, which has been used in wired Ethernet?
- Which correctly describes a general difference between the 2.4 GHz and 5 GHz bands of wireless LAN?
- Which correctly describes the basic function of a (packet-filtering) firewall?
- Which correctly describes an internet VPN?
Books on Computer Networking Basics Ad
As an Amazon Associate I earn from qualifying purchases.
Other topics in Computer systems
- Computer Arithmetic IEEE 754, fixed point, rounding error
- Probability, Statistics and Queueing Counting, distributions, estimation and testing, M/M/1
- ISA & Assembly RISC-V, addressing modes, calling conventions
- Compilers Parsing, SSA, optimizations, register allocation
- Linkers, Loaders & Executables ELF, symbols, relocation, dynamic linking
- OS & Hardware Interrupts, system calls, page faults
- Linux and Command-Line Basics Shell, permissions, pipes, scripts
- Memory Hierarchy Caches, replacement policies, 3 types of misses
- Multicore & Synchronization MESI, atomic instructions, memory barriers
- GPU Programming Warps, shared memory, coalescing, occupancy
- AI Hardware & Software Stack Inference vs training, quantization, roofline
- Machine Learning Basics Learning types, evaluation metrics and neural networks
- Embedded Systems & Firmware GPIO, UART/SPI/I2C, RTOS
- HDL & Verification Verilog, latches, state machines, testbenches
- I/O Interfaces & Buses PCIe, USB, SerDes, CXL
- Web Technology Basics HTTP, cookies, REST, CORS, caching
- Wireless Communication Basics Modulation, OFDM, MIMO and RF circuits
- Information Security Basics Crypto, authentication, web attacks
- Database Basics SQL, normalization, transactions
- Data Structures and Algorithms Complexity, search, sorting and graphs
- Programming Basics (Pseudocode Tracing) Pseudocode, tracing, arrays and recursion
- C Programming Basics Pointers, memory, undefined behavior
- Software Development and Project Management Processes, testing, schedule and cost control
- Business Strategy and Accounting Basics Accounting, break-even, strategy, marketing
- IT Service Management and Systems Audit SLAs, incidents and problems, audits and internal control
- System Architecture and Reliability Redundancy, RAID, backups and cloud
- Cloud and Container Basics Docker, Kubernetes, shared responsibility, IaC
- Performance Analysis Amdahl's law, CPI, bottlenecks
- Hardware Security Side channels, secure boot, TEE, PUF
- Power Management DVFS, power gating, sleep states