CS 43 — Quiz Study Guides
Study guides in this course are not meant to be a point-by-point list of exactly the questions that will appear on the quiz. Rather, they are a list of the Learning Objectives (LOs) covered by the relevant lectures, labs, and readings. They say what you should be able to do if you’ve gained a solid understanding of the concepts. Each quiz will assess its LOs, drawing on how they were covered in lecture, lab, and the reading.
Quizzes are taken on paper at the start of class, with a mix of multiple choice and short answer questions. Please show up on time.
Quiz 1: Protocols and Layering
Wednesday, September 9 (in class)
Last updated: September 3, 2026
Covers: Lectures 1 and 2, and the assigned reading (Kurose & Ross sections 1.1 and 1.5).
Duration: 15 minutes
Learning Objectives
Students should be able to…
-
List and define the five layers of the Internet Model in order from top to bottom.
-
Describe the core responsibility of each layer.
-
Match the name of the data unit: message, segment, datagram, and frame, to its layer.
-
Define what a protocol is.
-
Explain the advantages and disadvantages of protocol layering.
-
Illustrate the process of encapsulation.
-
Explain why every device on the Internet must implement the IP protocol, while transport and application protocols run only on end hosts.
-
Design a simple protocol for a new application (example: a basic chat service), defining the message format (headers and payload) and the rules for message exchange.
Practice Problems
From the end of Chapter 1 in the textbook: K&R (page 52-53): R1, R3, R22, R23, R24, R25, P1
I will not provide exact answers to the textbook problems, though I’m happy to discuss your answers on Ed or in office hours. Sometimes there is also no "one" right answer.
There are also links to interactive practice problems on the publisher’s website which tell you when your answer is correct or incorrect and give you hints. These are really good!
Quiz 2: The Web and HTTP
Last updated: September 10, 2026
Covers: Lecture 3, Lab 1 Week 1, and K&R sections 2.1.1, 2.1.2, 2.1.5 and 2.2.1-2.2.6
Duration: 15 minutes
Learning objectives
Students should be able to…
-
Trace the high-level steps of a web request, from a user click to receiving data.
-
Identify the host name and the path name in a URL.
-
Define the role of HTTP, web browser and web servers in Web browsing.
-
Explain why web servers are always on at well-known addresses.
-
Deconstruct a basic HTTP GET request, identifying the request line, headers (including Host header) and the terminating blank line.
-
Explain why an HTTP request needs a Host header and why header lines end in CRLF.
-
Deconstruct a basic HTTP response, identifying the status line, headers (example: Content-Type, Content-Length, Date, Last-Modified), and the message body containing the requested object.
-
Interpret common status codes (200, 404) in terms of what happened at the server.
-
Explain why HTTP is considered a stateless protocol and what that means for server design.
-
Explain the purpose of cookies and trace an HTTP request and response that includes cookies.
-
Calculate the time to load a page of N objects under non-persistent HTTP and persistent HTTP.
-
Explain how HTTP/1.1 improved the latency performance of HTTP/1.0.
-
Explain head-of-line blocking, why parallel TCP connections are an incomplete fix, and how HTTP/2 improved the performance of HTTP/1.1.
-
Explain how browser caching and conditional GET (304 Not Modified) reduce response time and load on the origin server.
-
Given the number and relative sizes of the objects on a web page, evaluate which HTTP performance technique helps most.
Not on this quiz
These come up in the reading or in lecture, but you will not be asked about them:
-
Cookie privacy, third-party tracking, and GDPR
-
Bandwidth and throughput. Any timing question will be expressed in round trip times (RTT) and per-object transmission time only.
-
HTTP methods other than GET
-
User-Agent header
Practice
Interactive exercises:
-
HTTP response You can skip the questions about the Server header and about ETag.
Knowledge checks:
-
Knowledge check 2.2 You can skip the question about Accept-language quality factors.
-
Knowledge check 2.1 Do the client-server and P2P questions only.
Textbook problems and the end of Chapter 2 (K&R page 101-102):
-
R3, R4, R5
-
P1 parts (a), (b), (c), and (e)
-
P4, parts (a), (b), (c) and (d)
-
P5
-
P6 (Bonus, for fun)
Quiz 3: Sockets and Concurrency
Last updated: September 17, 2026
Covers: Lecture 4 (Sockets), Lecture 5 (Sockets & Concurrency), Lab 1, Computer Networks: A Systems Approach sections 1.4, Beej’s Guide section 7.1, and the non-blocking I/O and select() reading.
Duration: 15 minutes
Learning objectives
Students should be able to…
-
Define what a socket is and what
socket()returns. -
List, in order, the socket calls a TCP client and a TCP server make, and state what each call does.
-
Given a sequence of
send()orrecv()calls and the state of the socket buffer before each, determine what each call does and returns, on a blocking socket and on a non-blocking socket. -
Given client or server socket code, check whether it uses the socket calls correctly, including
send()andrecv(), explain what goes wrong when it runs, and describe the correct usage. -
Given a server’s connections, determine how many sockets it has open and the role of each.
-
Given a timeline of client actions, trace when a server with no concurrency serves each client.
-
Explain how processes, threads, and
select()each let a server handle multiple clients, and compare their overhead. -
Given a server loop that uses non-blocking sockets, determine where the loop spends its time and whether it serves every client.
Not on this quiz
These come up in the reading or in lecture, but you will not be asked about them:
-
UDP sockets
-
Byte order and
htons() -
Address structures,
gethostbyname(), andgetaddrinfo() -
Exact function signatures. Function signatures will be given to you if needed
-
poll()andepoll
Practice
-
Sockets worksheet from Lecture 4. Work through it on your own.
-
Completing Lab 1
Knowledge checks:
-
Knowledge Check 2.7 (skip UDP questions)
Quiz 4: DNS
Last updated: September 24, 2026
Covers: Lecture 6 (Distributed Systems and DNS), Lecture 7 (Naming and DNS), the Lecture 7 DNS worksheet, and Computer Networking: A Top-Down Approach sections 2.4.1 to 2.4.3.
Duration: 15 minutes
Learning objectives
Students should be able to…
-
Explain partial failure in a distributed system. Given a scenario, describe what each component can observe when another component fails.
-
Define the three properties of the CAP theorem. Given how a system behaves during a network partition, determine whether it chose consistency or availability.
-
Identify the key services provided by DNS.
-
Given a hostname, identify the root, TLD, and authoritative DNS servers involved in resolving it and the role of each.
-
Given a proposed DNS design, such as a centralized one, identify its advantages and disadvantages compared to the current hierarchical design.
-
Trace the sequence of DNS messages that must occur before a browser can send an HTTP request, given what the local DNS server has cached. Identify each query as iterative or recursive and compute how long the lookup takes.
-
Given a set of DNS resource records (A / AAAA, NS, CNAME, MX), determine the answer to a DNS query.
-
Interpret the output of the dig command, identifying what each section of the DNS message (header, QUESTION, ANSWER, AUTHORITY, ADDITIONAL) contains.
-
From a dig response with no answer, determine the next server to query in an iterative lookup.
-
Explain which transport protocol DNS uses and why.
-
Define Time-to-Live (TTL) for a DNS record. Given a timeline of queries, determine which ones the local DNS server answers from its cache.
-
Given a scenario, choose between a short and a long TTL and justify the trade-off.
Not on this quiz
These come up in the reading or in lecture, but you will not be asked about them:
-
Registering a new domain and inserting records (next week)
-
DNS-based load balancing and CDNs (next week)
-
Attacks on DNS: DDoS, man-in-the-middle, cache poisoning (next week)
-
DNSSEC (next week)
-
The binary format of a DNS message (field sizes and positions)
-
Header flags in dig output (
qr,aa,rd,ra) -
digcommand-line options. Commands will be given to you if needed
Practice
-
DNS worksheet from Lecture 7, Q2-Q4
-
Interactive Problems:
-
Knowledge Checks:
-
Textbook End of Chapter Problems: R19, P18, P19, P20
-
P18 only works off campus. ITS blocks direct DNS queries to the root servers and TLD servers.
-
On campus, you can see the delegation chain by asking for the name servers one level at a time. Also try these for some other websites.
dig NS . dig NS edu dig NS swarthmore.edu dig NS cs.swarthmore.edu dig A www.cs.swarthmore.edu
-
Quiz 5: DNS, Email, and Network Performance
Last updated: October 1, 2026
Covers: Lectures 8 (DNS, Email) and 9 (Network Performance), and K&R sections 1.4, 2.3, and 2.4.3
Duration: 15 minutes
Learning objectives
Students should be able to…
-
Identify the four components of nodal delay and name what each depends on (packet size, link rate, link length, traffic, or none of these).
-
Given link and packet parameters, calculate transmission and propagation delay, and predict how each changes when one parameter changes.
-
Given a packet’s delays on a path of store-and-forward links, determine where its bits are at a given instant and when the last bit reaches the destination.
-
Given a new domain, determine which resource records must be created, and at which server (registrar/TLD vs. authoritative), for the domain’s web and mail servers to be reachable.
-
Explain how DNS can be used to implement load balancing.
-
Given a description of an attack on DNS, classify it as DDoS, man-in-the-middle, or cache poisoning, identify which part of the resolution process it exploits, and determine whether DNSSEC prevents it and why or why not.
-
Identify the components of the Internet mail system and the role of each in delivering a message.
-
Trace the path of an email message from the sender’s user agent to the recipient’s user agent, identifying the protocol used at each step and which components must be reachable at that moment.
-
Given a proposed mail architecture (for example, user agents sending directly to the recipient’s mail server), identify what fails and when.
-
Given a step in mail delivery, determine whether it is push or pull and which protocol carries it.
-
Given an SMTP transcript and the delivered message’s headers, identify which addresses come from the envelope and which from the header, which the receiving server uses for delivery, and what the recipient can and cannot trust about the sender.
-
Trace the sequence of a simple SMTP client-server interaction, identifying the purpose of the HELO, MAIL FROM, RCPT TO, DATA, and QUIT commands.
Not on this quiz
These come up in the reading or in lecture, but you will not be asked about them:
-
Packet loss and finite router buffers (next week)
-
Throughput and bottleneck links (next week)
-
Mail access protocols (IMAP) in any detail beyond their role in retrieval
Practice
Interactive exercises:
Knowledge checks:
-
Knowledge Check 1.4 (Skip Throughput/Utilization questions)
Textbook End of Chapter Problems:
-
Chapter 1: R16-R18, P6, P18 (for fun)
-
Chapter 2: R19, R20, P14-P16
Quiz 6: Network Performance, Video Streaming, and CDNS
Last updated: October 9, 2026
Covers: End of Lecture 8 (throughput, K&R 1.4.3), Lecture 9 (Video Streaming), Lecture 10 (Video Streaming and CDNs), K&R sections 1.4, 2.5, and posted readings
Duration: 15 minutes
Learning objectives
Students should be able to…
-
Given file size, link rates, the number of clients sharing a link, and propagation delays, compute the time to transfer a file and identify the bottleneck link.
-
Given packet arrival rate, packet length, and the outgoing link rate, compute traffic intensity, and predict how average queuing delay changes with traffic intensity and with burstiness.
-
Explain when and why a router drops packets.
-
Define video bitrate, constant bitrate, and variable bitrate, and explain how resolution, motion, and encoding affect a video’s bitrate.
-
Given fill rate, playout rate, and buffer level, determine whether playback stalls, and explain what the client-side buffer is for.
-
Explain the advantages of adaptive bitrate streaming over streaming a single fixed bitrate.
-
Given a client’s buffer level and recent throughput measurements, decide what a throughput-based player and a buffer-based player would each request next, and judge which choice is better and why.
-
Describe the components of DASH and the role of each: manifest, video segments at multiple bitrates, the client, and the server.
-
Explain the advantages of delivering content through a CDN rather than from a single server.
Not on this quiz
These are in the reading, but we did not get to them in lecture:
-
How CDN caching works (next week)
-
How a CDN uses DNS to direct a client to one of its servers (next week)
-
"Enter deep" versus "bring home" CDN server placement (next week)
Practice
Interactive exercises:
Knowledge checks:
-
Knowledge Check 1.4 (Throughput/Utilization questions)
Textbook End of Chapter Problems:
-
Chapter 1: R19, R21, P20, P21, P24, P31a-c
-
Chapter 2: P21
Quiz 7: CDNS, Transport Layer Services, and UDP
Last updated: October 22, 2026
Covers: End of Lecture 11 (CDNs), Lecture 12 (Transport Layer and UDP), K&R 2.6.3 and 3.1 to 3.3.
Duration: 10 minutes.
Learning objectives
Students should be able to…
-
Given a place to cache content (client, server side, ISP), identify what caching there saves and for whom.
-
Describe how Netflix caches content: where its cache servers sit and how a viewer’s request ends up at one of them.
-
Explain why a cache that holds only a small fraction of a site’s content can still serve most of its requests.
-
Trace how a CDN uses DNS to direct a request to a content server: which DNS server answers at each step, what record each one returns (CNAME or A), and what the CDN’s DNS server knows when it picks a replica.
-
Compare and contrast metrics for a CDN choosing a replica server.
-
Describe the service the network layer gives the transport layer, the service the transport layer gives applications, and the transport layer extends host-to-host delivery to process-to-process delivery.
-
Distinguish segments, datagrams, and frames.
-
Given a list of services, sort them into ones UDP provides, ones TCP provides, ones a transport protocol could provide but neither does, and ones no transport protocol can provide.
-
Explain what multiplexing at the sender and demultiplexing at the receiver do, and identify the header fields the transport layer uses for them.
-
Given hosts, processes, and segments labeled with IP addresses and ports, determine which socket each segment is delivered to under TCP and under UDP, and how many sockets each host has open.
-
Compare the UDP and TCP socket call sequences.
Not on this quiz
These come up in the reading or on the slides, but you will not be asked about them:
-
How the UDP checksum is computed or checked (Next week)
-
The UDP header layout and field sizes (Next week)
-
Which applications use UDP, beyond DNS as an example
-
"Enter deep" versus "bring home" CDN server placement
Practice
Interactive exercises:
Knowledge checks:
-
Knowledge Check 3.3 (only first question)
Textbook End of Chapter Problems:
-
Chapter 3: R3-R8, P2
Quiz 8: UDP and Reliable Transport
Last updated: October 29, 2026
Covers: Lecture 13 (UDP and Reliable Transport), Lecture 14 (Reliable Transport and TCP) through slide 69, and K&R 3.3, 3.4.3, 3.4.4, 3.5.1, 3.5.2, 3.5.6.
Duration: 15 minutes.
Learning objectives
Students should be able to…
-
Identify the fields of the UDP and TCP headers and the purpose of each.
-
Compute and check an Internet checksum, and explain which errors it detects and which it can miss.
-
Explain why UDP’s
sendto()does not need to block when TCP’ssend()does. -
Describe the mechanisms in ARQ protocols (checksums, timeouts, ACKs/NACKs, sequence numbers, pipelining), the problem each solves, and the new problem each introduces.
-
Calculate link utilization under stop-and-wait and describe how pipelining can improve performance.
-
Compare Go-Back-N and Selective Repeat: whether ACKs are cumulative or per-segment, what the receiver does with an out-of-order segment, what the sender retransmits after a loss, what each side must track, and when you would choose one over the other.
-
Given a sequence of sent segments, losses, and ACKs, predict the sender’s or receiver’s next action under GBN and SR.
-
Trace sequence and acknowledgment numbers in a TCP exchange, including after a loss, and state what a cumulative ACK tells the sender.
-
Trace the three-way handshake and connection teardown: the segments and their flags, the state each side is in, and the socket call on each side. Explain what TIME_WAIT is for.
-
Predict what goes wrong when a retransmission timeout is much shorter or much longer than the RTT.
-
Choose between TCP and UDP for a given application, and justify the choice.
Not on this quiz
These come up in the reading or on the slides, but you will not be asked about them:
-
The RTT estimation and timeout formulas (next week)
-
Fast retransmit and flow control (next week)
-
The Two Generals problem (reference slides at the end of Lecture 13)
-
SYN cookies (K&R 3.5.6)
-
Erasure coding
Practice
Animations:
Interactive exercises:
Knowledge Check
-
Knowledge Check 3.4, question 1 and 6 through 14 (skip 2 through 5)
-
Knowledge Check 3.5, questions 1 through 4 and 8 (skip 5 through 7 and 9)
Textbook End of Chapter Problems:
-
Chapter 3: R9, R10, R12, R13, R14 (parts a, g, d), R15, P3, P4, P14, P22, P24 (parts a,b), P25, P27
Quiz 9: TCP Flow Control and Congestion Control
Last updated: November 5, 2026
Covers: Lecture 15 (TCP and Flow Control), Lecture 16 (TCP Congestion Control) K&R 3.5, 3.6.1, 3.7
Duration: 15 minutes.
Learning objectives
Students should be able to…
-
Calculate
EstimatedRTT,DevRTT, andTimeoutIntervalfrom a sequence of RTT samples. -
Explain why TCP smooths its RTT samples and ignores samples from retransmitted segments.
-
Compare flow control and congestion control: the problem each solves and how the sender learns its limit.
-
Determine how much data a sender may have in flight given
rwndandcwnd. -
Explain the costs of congestion and how they lead to congestion collapse.
-
Interpret a graph of goodput or delay against offered load, identifying the knee and the cliff.
-
Explain how fast retransmit works and why it speeds up loss recovery.
-
Trace
cwndandssthreshover time under TCP Tahoe and TCP Reno, given timeouts and triple duplicate ACKs. -
Identify the phases and the loss events on a graph of
cwndover time. -
Justify why TCP Reno responds differently to three duplicate ACKs than to a timeout.
-
Calculate a TCP connection’s throughput from its window size and RTT.
-
Predict whether two competing flows converge to a fair share under a given increase/decrease rule.
-
Critique the claim that TCP’s fairness prevents an application from hogging a bottleneck link.
-
Compare CUBIC’s window growth with AIMD and explain why it achieves higher throughput.
Not on this quiz
These come up in the reading or on the slides, but you will not be asked about them:
-
Fast recovery details and the TCP Reno detailed state machine
-
The mathematical details of the CUBIC growth formula and constants
-
TCP variants other than Tahoe, Reno, and CUBIC
-
Network-assisted congestion control, ECN, and delay-based congestion control
-
Synchronization of flows
Practice
Interactive exercises:
Knowledge checks:
-
Knowledge Check 3.5, questions 5, 6, 7, 9
-
Knowledge Check 3.6, questions 1 and 2 (skip 3 through 5)
-
Knowledge Check 3.7, questions 1 through 5 (skip 6)
Textbook End of Chapter Problems:
-
Chapter 3: R17, R18, P31, P32a-b, P33, P36, P37, P40, P41, P44 (hard), P48, P52 (hard)
Quiz 10: Network Layer, IPv4, and DHCP
Last updated: November 11, 2026
Covers: Lecture 17 (The Network Layer Introduction), Lecture 18 (IPv4 Addressing and DHCP), K&R 4.1, 4.2.1 (and the beginning of 4.2), 4.3.1, 4.3.2, 4.5.
Duration: 15 minutes.
Learning objectives
Students should be able to…
-
Identify the services the network layer provides to the transport layer and where it is implemented, and explain how the end-to-end principle justifies leaving other functions to the hosts.
-
Describe IP’s datagram service (connectionless, stateless routers) and explain why IP is called the “narrow waist” of the Internet protocol stack.
-
Differentiate between the two primary functions of the network layer: forwarding (data plane) and routing (control plane), and identify which plane each router component belongs to.
-
Compare traditional per-router routing with software-defined networking.
-
Identify the fields in the IPv4 datagram header and explain the purpose of each.
-
Define a subnet and identify the subnets in a network diagram.
-
Explain how CIDR generalizes classful addressing, and give the range of addresses a CIDR prefix (a.b.c.d/x) covers.
-
Calculate the subnet address, broadcast address, and number of hosts for a given host IP address and subnet mask.
-
Explain the purpose of DHCP and trace the four messages a new client exchanges.
-
Apply the longest prefix matching rule to forward a datagram at a router.
-
Explain how route aggregation keeps forwarding tables small, and how an organization can change ISPs without changing its addresses.
Not on this quiz
These come up in the reading or on the slides, but you will not be asked about them:
-
The fragmentation fields (identifier, flags, offset) and options in the IPv4 header
-
Middleboxes
Practice
Interactive exercises:
Knowledge checks:
-
Knowledge Check 4.1, questions 1 through 5
-
Knowledge Check 4.2, questions 1 and 4
-
Knowledge Check 4.3, questions 2 through 9 and 11 (skip 1 and 10)
-
Knowledge Check 4.5, questions 2 through 4 (skip 1 and 5)
Textbook End of Chapter Problems:
-
Chapter 4: R1-R5, R17-R22, R24, R25, R27, P1, P8-P11, P13-P17
Quiz 11: NAT, IPv6, and Routing Algorithms
Last updated: November 19, 2026
Covers: Lecture 19 (NATs and IPv6), Lecture 20 (Routing Algorithms), K&R 4.3.3, 4.3.4, 5.1, 5.2, 5.3.
Duration: 15 minutes.
Learning objectives
Students should be able to…
-
Explain the motivation for Network Address Translation and trace how a NAT router uses its translation table to rewrite outgoing and incoming datagrams.
-
Discuss the objections to NAT, including how it violates the end-to-end argument.
-
Identify the motivation for IPv6 and compare the IPv4 and IPv6 header formats, including which fields IPv6 removed and why.
-
Trace an IPv6 datagram through a tunnel, identifying the datagram type and the addresses in each header on each link.
-
Explain how the choice of link weights determines which paths a routing algorithm picks.
-
Compare link-state and distance-vector routing in terms of what each router knows, what it sends, and who it sends to.
-
Describe how link-state routers flood link-state advertisements so that every router learns the full topology.
-
Run Dijkstra’s algorithm from a source router and build that router’s forwarding table from the result.
-
Use the Bellman-Ford equation to compute a router’s distance vector from its neighbors' distance vectors.
-
Trace how distance vectors change after a link cost changes, and explain the count-to-infinity problem.
-
Identify OSPF as a link-state routing protocol.
Not on this quiz
These come up in the reading or on the slides, but you will not be asked about them:
-
ICMP and traceroute
-
OSPF features beyond being a link-state protocol (areas, authentication, equal-cost paths)
-
NAT traversal
Practice
Worksheets from class:
-
Redo the NAT worksheet and the Dijkstra worksheet without looking at your notes. Solutions are posted on the schedule.
Interactive exercises:
Knowledge checks:
-
Knowledge Check 4.3, questions 8 and 10
Textbook End of Chapter Problems:
-
Chapter 4: R30-R31, P19
-
Chapter 5: R2-R7, P1-P5, P7-P9, P11