Compare slow start, additive increase and timeout in an RTT-round model.
The focus of this experiment is to trace congestion-window evolution in the stated TCP model. Students then compare window, loss response and round-trip assumptions, and explain model limitations and distinguish cwnd from measured throughput. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Trace congestion-window evolution in the stated TCP model.
Compare window, loss response and round-trip assumptions.
Explain model limitations and distinguish cwnd from measured throughput.
Identify the configured inputs (Initial ssthresh (MSS); Timeout RTT (0 = none)) and record the corresponding observed outputs with units where applicable.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can trace congestion-window evolution in the stated TCP model, compare window, loss response and round-trip assumptions, and explain model limitations and distinguish cwnd from measured throughput.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing explain model limitations and distinguish cwnd from measured throughput. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the following catalogue prerequisites before starting. After completion, continue to Wireless contention & Wi-Fi performance concepts.
The browser instrument and the specified local software or network environment. Use the experiment’s documented topology and distinguish modeled values from actual packet observations.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
N06 · learning outcome
Understand the experiment
TCP congestion window · slow start and timeout
Simplified RTT model · initial ssthresh 8 MSS; timeout at round 8
TCP congestion-window dynamics use acknowledgments and loss signals. In this RTT model slow start doubles up to threshold; congestion avoidance increases by one MSS per RTT.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
Scientific theory · Congestion window and throughput
TCP congestion control limits outstanding bytes through a congestion window, which is distinct from receiver flow control. Slow start grows the window rapidly with ACKs; congestion avoidance increases more gradually. The laboratory models growth by RTT and a timeout reset, rather than every real implementation detail.
Worked example and engineering interpretation
At cwnd=8 MSS, MSS=1460 bytes and RTT=0.1 s, ideal window-limited rate is about 116800 bytes/s (0.9344 Mbit/s) before overhead and other limits. If cwnd halves, this estimate halves. Inspect the time series rather than equating the model's loss events with a physical network trace.
Engineering principles · additional worked teaching example
Congestion window limits outstanding bytes; in a simplified slow-start model it doubles per RTT until threshold, then grows approximately one MSS per RTT. Starting1 with threshold4 gives 1,2,4,5,6. Real TCP depends on ACK timing and algorithm.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
How to investigate TCP congestion window
Compare slow start, additive increase and timeout in an RTT-round model.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Compare slow start, additive increase and timeout in an RTT-round model.
Set Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0. Observe the calculated results and trace.
Change Timeout RTT (0 = none) = 8. Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
Restore the reference values. Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
Reference check:
Model boundary:
Independent task and submission evidence
2. Change Timeout RTT (0 = none) = 8. Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
Compare slow start, additive increase and timeout in an RTT-round model.
Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0. In the classroom model, Final window = 21 MSS; Final ssthresh = 8 MSS; Modeled RTTs = 16; Timeout round = None. Slow start increases by round; congestion avoidance adds one MSS per round; timeout resets cwnd. Not a full TCP implementation. Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Concept animation · progressive data plot
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 7 · Observation RTT 1
Observation RTT 1
Congestion window (MSS)
1
Observation RTT 3
Congestion window (MSS)
4
Observation RTT 6
Congestion window (MSS)
10
Observation RTT 9
Congestion window (MSS)
13
Observation RTT 11
Congestion window (MSS)
15
Observation RTT 13
Congestion window (MSS)
17
Observation RTT 16
Congestion window (MSS)
20
Teaching example only; inspect live calculations or real practical evidence separately.
Recall the concept before revealing its explanation.
0 / 3 revealed
N06 · 01 / 08How does the TCP teaching congestion window grow and respond to a timeout at RTT 8?Reveal explanation
Engineering explanation
Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
N06 · 02 / 08Which TCP recovery mechanisms are omitted by the RTT-round model?Reveal explanation
Engineering explanation
Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
N06 · 03 / 08What must the congestion window do after restoring the no-timeout reference?Reveal explanation
Engineering explanation
Restore timeout=0 and initial threshold; confirm 1, 2, 4, 8 MSS followed by additive growth, without a timeout reset.
N06 · 04 / 08Why express cwnd in MSS units in this model?Reveal explanation
Engineering reasoning
It abstracts the amount of outstanding data in maximum-segment-sized units rather than modeling individual byte sequences.
N06 · 05 / 08Why compare the window before and after a timeout?Reveal explanation
Engineering reasoning
The timeout changes the modeled congestion state and threshold; compare the recurrence against the reference sequence.
N06 · 06 / 08A simplified TCP congestion window is plotted by RTT. Select every technically valid statement.
A. Slow start increases the modeled window more rapidly than additive increase.
B. A timeout can trigger a congestion-window reduction.
C. TCP congestion window equals the receiver application buffer at all times.
D. A timeout proves packet size exceeded the MTU.Reveal explanation
Applied scenario
Correct: A. Slow start increases the modeled window more rapidly than additive increase.; B. A timeout can trigger a congestion-window reduction.
N06 · 07 / 08In TCP congestion window, which reference and changed settings are prescribed for Timeout RTT (0 = none)?Reveal explanation
Controlled configuration
Timeout RTT (0 = none): 0 → 8; hold the remaining settings fixed.
N06 · 08 / 08What expected result distinguishes the reference and changed trials in TCP congestion window?Reveal explanation
Expected observation
Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
Interactive networking and security instrument
Loading experiment-specific apparatus…Previous model / additional reference tools
Simulation task
Compare slow start, additive increase and timeout in an RTT-round model.
Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.
Interactive engineering workbenchN06 · Existing model
Interactive computational experiment
Configure and observe
Model-linked protocol trace
Animated TCP congestion window
Change the controls above; the trace and numerical summary update from the computed model results. Animation timing is for learning, not measured protocol latency.
Recent trace eventsInspect numerical or encoded protocol details
Readout from the original computational model; not physical measurements.
Loading instrument…
Awaiting model display.
Experimental instrumentation · A/B
Compare two model conditions
Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.
Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.
Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.
Prepare a contextual AI prompt
0 characters
Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.
Prepare → review → copy & open your selected provider → paste and submit there.
Independent theoretical exercises
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
Starting cwnd=1 MSS and ssthresh=8, list cwnd for first six RTT starts without loss under the teaching model.
Engineering method — Congestion window limits outstanding bytes; in a simplified slow-start model it doubles per RTT until threshold, then grows approximately one MSS per RTT. Starting1 with threshold4 gives 1,2,4,5,6. Real TCP depends on ACK timing and algorithm. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
For MSS=1460 and RTT=50 ms calculate window-limited rate at cwnd=8; explain timeout recovery and why this is not a complete TCP implementation.
Engineering method — Congestion window limits outstanding bytes; in a simplified slow-start model it doubles per RTT until threshold, then grows approximately one MSS per RTT. Starting1 with threshold4 gives 1,2,4,5,6. Real TCP depends on ACK timing and algorithm. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Trace
Trace · Independent work
Under the teaching model with cwnd1 and ssthresh=4, list six RTT-start windows with no loss. Then explain the qualitative effect of a timeout after the fourth RTT.
Trace — Congestion window limits outstanding bytes; in a simplified slow-start model it doubles per RTT until threshold, then grows approximately one MSS per RTT. Starting1 with threshold4 gives 1,2,4,5,6. Real TCP depends on ACK timing and algorithm. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Intermediate · Explain a changed-input result
Independent theoretical exercise · N06-01
Use the reference configuration (Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0), but change Initial ssthresh (MSS) = 4. The model reports Final window = 18 MSS. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · N06-02
Two model observations of Final window are 21 MSS (reference) and 18 MSS (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.
Intermediate · Interpret a technical trace
Independent theoretical exercise · N06-03
For Timeout RTT (0 = none) = 4, the model supplies this excerpt from Calculated trace:
Item · Value · Explanation
RTT 1 · 1 · ACK round
RTT 2 · 2 · ACK round
RTT 3 · 4 · ACK round
RTT 4 · 8 · Timeout
RTT 5 · 1 · ACK round
Compute the range (maximum minus minimum) of the Value column in these rows. Identify the maximum observation. Do not extrapolate beyond these rows.
Advanced · Reverse reasoning
Independent theoretical exercise · N06-04
An observation is Final window = 14 MSS. Candidate A uses Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0. Candidate B changes the listed settings (Timeout RTT (0 = none) = 4) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.
Advanced · Diagnose a reported mismatch
Independent theoretical exercise · N06-05
A student configures Timeout RTT (0 = none) = 8 while preserving all other reference settings, but copies the reference report of Final window = 21 MSS. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · N06-06
Design a controlled comparison for TCP congestion window using reference Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0 and test Initial ssthresh (MSS) = 4. Specify the changed setting(s), measured metric Final window, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Compare slow start, additive increase and timeout in an RTT-round model.
1 · Reference workbench configuration
Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.
Initial ssthresh (MSS)8
Timeout RTT (0 = none)0
2 · Perform the investigation in order
Set Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0. Observe the calculated results and trace.
Change Timeout RTT (0 = none) = 8. Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
Restore the reference values. Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Reference
Use reference inputs above
Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
Record actual result
Controlled change
Timeout RTT (0 = none) = 8
Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
Record actual result
4 · Analyze and report
Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
Required evidence: Record the tcp congestion window comparison and justify the changed outcome from the calculated trace.
Model boundary: Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
Controlled investigation · reproducible evidence
Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.
Trial
Independent change
Dependent observation
Reference
Use reference inputs above
Record actual outcome and units
Controlled change
Timeout RTT (0 = none) = 8
Record actual outcome and units
Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.
Restore reference and enter your prediction. Select Save baseline.
Apply controlled change. Inspect metrics and protocol details. Compare the results with the following verification conditions.
✓ Expected: Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
Restore reference. Confirm the same baseline results, then vary one field at a time. Record the changed configuration and explain any difference.
Export both baseline and changed evidence before leaving. Do not infer physical execution from model output.
Model-only experiment
No shell command or external service is required. Use the computational experiment above. Do not interpret its values as live network measurements.
Experimental notebook
Record your own results. Values are not prefilled or independently verified.
Record, discuss & verify
Notebook imports use the related core lab P37 and retain N06 in the method and attachment. The supplemental labs do not change the core prerequisite graph or graded completion counters.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# N06 · TCP congestion window
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Compare slow start, additive increase and timeout in an RTT-round model.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Compare slow start, additive increase and timeout in an RTT-round model.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Set Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0. Observe the calculated results and trace.
2. Change Timeout RTT (0 = none) = 8. Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
3. Restore the reference values. Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
**Evidence:**
**Boundary:**
03Instructions · Markdown
## 2. Reference configuration and investigation
1. Set Initial ssthresh (MSS) = 8; Timeout RTT (0 = none) = 0. Observe the calculated results and trace.
2. Change Timeout RTT (0 = none) = 8. Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore.
3. Restore the reference values. Simplified RTT rounds inspired by RFC 5681; no duplicate ACKs, fast recovery, bytes-in-flight or actual TCP implementation.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Compute an RTT-round teaching congestion-window trace.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# N06 | Code cell 01 | TCP congestion window
# Purpose: 3. Compute an RTT-round teaching congestion-window trace.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Define the reusable operation trace; keep its logic separate from the trial.
def trace(threshold=8,timeout=0,rounds=12):
w=1; result=[]
for i in range(1,rounds+1):
result.append((i,w,threshold))
if i==timeout:threshold=max(2,w//2);w=1
else:w=min(2*w,threshold) if w<threshold else w+1
return result
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert [x[1] for x in trace()[:4]]==[1,2,4,8]
# =====================================================================
# N06 | Code cell 02 | TCP congestion window
# Purpose: 4. Compare timeout and no-timeout traces.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert trace(timeout=8)[8][1]==1
# Repeat the same operation for each configured input so observations are comparable.
for a,b in zip(trace(),trace(timeout=8)):print(a,b)
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
09Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 2. Change Timeout RTT (0 = none) = 8. Baseline window begins 1, 2, 4, 8 MSS, then adds one per round. Timeout at RTT 8 resets next window to 1 MSS, reduces threshold to half sent window (minimum 2). Restore. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research