Observe complete UDP message boundaries, deliberate loss and out-of-order delivery.
The focus of this experiment is to trace UDP datagrams and broadcast scope. Students then calculate unique delivery and distinguish loss, duplicate and reordered datagrams, and verify a local exchange without assuming reliability. 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 UDP datagrams and broadcast scope.
Calculate unique delivery and distinguish loss, duplicate and reordered datagrams.
Verify a local exchange without assuming reliability.
Identify the configured inputs (Datagram count; Drop every N (0=none); Reverse arrival order; Receive buffer bytes) 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 UDP datagrams and broadcast scope, calculate unique delivery and distinguish loss, duplicate and reordered datagrams, and verify a local exchange without assuming reliability.
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 verify a local exchange without assuming reliability. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the following catalogue prerequisites before starting. After completion, continue to Lab 39 · Internet services · HTTP and NTP.
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.
P38 / PREPARE
Before starting
Follow the setup guide and use the named terminal or editor. A browser model is not a real GPIO measurement or a running service.
First run receiver then sender for positive control. Stop receiver; send once and restart receiver for the negative test. Wait briefly, then send again to prove recovery. Stop receiver with Ctrl+C.
CONCEPTS / ACTIVE RECALL
Understand the experiment
UDP datagrams · delivery and loss
Datagram boundaries are preserved, but delivery/order are not guaranteed
Scientific architecture · UDP datagram boundaries and delivery
Scientific concept map: UDP sender — One datagram; IP network — Loss / broadcast model; UDP receiver — Preserve datagram boundary; Sequence inspection — Missing or reordered datagrams; Observation — Delivery ratio.
Scientific foundations and analytical reasoning
UDP preserves datagram boundaries but does not guarantee delivery, order or duplicate suppression. A short receive buffer may truncate a datagram.
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 · UDP message semantics
UDP sends discrete datagrams with source and destination ports. It has no connection establishment, automatic retransmission or in-order delivery. The application can attach a sequence number to identify gaps and duplicates. IPv4 broadcast delivery is constrained by network topology and policy.
Worked example and engineering interpretation
If datagram sequence 1,2,3,4 is sent and 1,3,3,4 is received, record one missing unique sequence and one duplicate. Receiving four datagrams is not proof that all four distinct samples arrived. A small receive buffer can truncate the payload.
Engineering principles · additional worked teaching example
UDP preserves datagram boundaries but does not promise delivery, ordering or retransmission. Five sent, four received gives delivery ratio 80% and loss20%. Sequence IDs help detect gaps but do not themselves recover them.
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 Lab 38 · UDP datagrams and broadcast
Compare UDP delivery with a running, stopped and restarted receiver.
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 UDP delivery with a running, stopped and restarted receiver.
Send eight numbered datagrams and inspect sequence/payload.
Drop every second datagram and compute delivery ratio.
Set receive buffer to 2 bytes and inspect truncation without merging datagrams.
Reverse arrival order; compare the actual UDP source and its sequence handling.
Reference check:
Model boundary:
Independent task and submission evidence
2. Drop every second datagram and compute delivery ratio. 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.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Datagram count = 8; Drop every N (0=none) = 0; Reverse arrival order = false; Receive buffer bytes = 64. In the classroom model, Delivered datagrams = 8; Lost datagrams = 0; Truncated datagrams = 0; PDR = 100 %. No datagrams are transmitted by this browser model. A closed, deterministic browser model. The existing practical instructions and source files provide independent execution; browser results are not hardware measurements.
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.
Mathematical representation and interpretation
Unique datagram delivery ratio
Count each sequence number once. Duplicates and out-of-order delivery should be reported separately.
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 1
Observation 1
Sequence received
1
Observation 2
Sequence received
2
Observation 3
Sequence received
3
Observation 5
Sequence received
5
Observation 6
Sequence received
6
Observation 7
Sequence received
7
Observation 8
Sequence received
8
Teaching example only; inspect live calculations or real practical evidence separately.
Recall the concept before revealing its explanation.
0 / 3 revealed
P38 · 01 / 08What is a UDP datagram?Reveal explanation
Engineering explanation
A separate message without connection establishment or delivery acknowledgment.
P38 · 02 / 08Why send before a receiver as a test?Reveal explanation
Engineering explanation
A datagram sent without a listening receiver is not retained for later delivery by this program.
P38 · 03 / 08What receiving conditions are required for the UDP datagram trial?Reveal explanation
Engineering explanation
First run receiver then sender for positive control. Stop receiver; send once and restart receiver for the negative test. Wait briefly, then send again to prove recovery. Stop receiver with Ctrl+C.
P38 · 04 / 08How does UDP differ from TCP when a receiver is absent?Reveal explanation
Engineering reasoning
UDP has no connection handshake or delivery guarantee; a local send result alone does not establish receipt.
P38 · 05 / 08Why separate broadcast from unicast testing?Reveal explanation
Engineering reasoning
They use different destination addressing and scope; local unicast success does not establish broadcast delivery across networks.
P38 · 06 / 08A UDP receiver is stopped during a transmission. Select every technically valid statement.
A. UDP does not guarantee delivery.
B. Measure received datagrams independently of sends.
C. UDP automatically replays every lost datagram when the receiver restarts.
D. A successful send call proves remote receipt.Reveal explanation
Applied scenario
Correct: A. UDP does not guarantee delivery.; B. Measure received datagrams independently of sends.
P38 · 07 / 08In UDP datagrams and broadcast, which command or code executes Terminal 2: sender?Reveal explanation
Implementation recall
source ~/psut-wsl/activate.sh
cd ~/psut-wsl/labs/python/lab38 && python udp_sender.py
P38 · 08 / 08For UDP datagrams and broadcast, which actual output or state confirms the prescribed practical run succeeded, and what does it not establish?Reveal explanation
Evidence & acceptance
Start receiver in A before sender in B. A should print both room-101,24.5 and room-102,26.1. Stop A, run B again: a successful send does not establish delivery. Restart A and repeat B as positive recovery. Record actual observations; do not infer packet loss from an inactive receiver.
Execution boundary · Real on WSL. Browser simulation below is a teaching model, not execution of Python or firmware. The real commands run in VS Code/WSL; Wokwi is used for Arduino/ESP32 where indicated.
Network performance laboratory
Investigate seeded abstract queueing, traffic scalability and QoS trade-offs separately from actual service deployment.
Use the scenario selector to explore reference, failure and recovery. The animation is explanatory, separate from the actual terminal exercise. Animation timing is for learning, not measured protocol latency.
Recent trace eventsShared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery researchLoading experiment-specific apparatus…Previous model / additional reference tools
Simulation task
Compare UDP delivery with a running, stopped and restarted receiver.
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 workbenchP38 · Existing model
Original virtual instrument; model signals and execution trace.
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.
Run & verify — acceptance checklist
Build verification: Actual loopback UDP two-datagram exchange passed.
Start receiver in A before sender in B. A should print both room-101,24.5 and room-102,26.1. Stop A, run B again: a successful send does not establish delivery. Restart A and repeat B as positive recovery. Record actual observations; do not infer packet loss from an inactive receiver.
Record the actual output, source (mock/model or physical), and any error. A missing tool, timeout or untested external service is not a pass.
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
For 8 numbered datagrams with every third dropped, list delivered IDs, loss ratio and reverse arrival order.
Engineering method — UDP preserves datagram boundaries but does not promise delivery, ordering or retransmission. Five sent, four received gives delivery ratio 80% and loss20%. Sequence IDs help detect gaps but do not themselves recover them. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
If a datagram carries 80 bytes and the receive buffer is 64 bytes, calculate the maximum copied bytes and explain why missing bytes cannot be reconstructed from the truncated record.
Engineering method — UDP preserves datagram boundaries but does not promise delivery, ordering or retransmission. Five sent, four received gives delivery ratio 80% and loss20%. Sequence IDs help detect gaps but do not themselves recover them. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Data analysis
Data analysis · Independent work
Sender emits IDs 1–7; received 5,1,7,3,2. Compute missing IDs, delivery ratio and whether ordering is preserved.
Data analysis — UDP preserves datagram boundaries but does not promise delivery, ordering or retransmission. Five sent, four received gives delivery ratio 80% and loss20%. Sequence IDs help detect gaps but do not themselves recover them. 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 · P38-01
Use the reference configuration (Datagram count = 8; Drop every N (0=none) = 0; Reverse arrival order = false; Receive buffer bytes = 64), but change Datagram count = 10. The model reports Delivered datagrams = 10. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · P38-02
Two model observations of Delivered datagrams are 8 (reference) and 10 (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 · P38-03
For Drop every N (0=none) = 2, the model supplies this excerpt from Datagram arrivals:
Sequence · Payload read · Status
1 · msg-1 · Complete
3 · msg-3 · Complete
5 · msg-5 · Complete
7 · msg-7 · Complete
Count rows whose Payload read value is exactly “msg-1”, and identify the displayed row numbers. Explain what the count describes.
Advanced · Reverse reasoning
Independent theoretical exercise · P38-04
An observation is Delivered datagrams = 4. Candidate A uses Datagram count = 8; Drop every N (0=none) = 0; Reverse arrival order = false; Receive buffer bytes = 64. Candidate B changes the listed settings (Drop every N (0=none) = 2) 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 · P38-05
A student configures Receive buffer bytes = 2 while preserving all other reference settings, but copies the reference report of Truncated datagrams = 0. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · P38-06
Design a controlled comparison for Lab 38 · UDP datagrams and broadcast using reference Datagram count = 8; Drop every N (0=none) = 0; Reverse arrival order = false; Receive buffer bytes = 64 and test Datagram count = 10. Specify the changed setting(s), measured metric Delivered datagrams, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Challenging numerical variant 1
Calculation · Independent work
A sender generates 21 unique datagrams. 4 unique IDs are never received. 2 duplicates of received IDs also arrive. What is unique packet delivery percentage, rounded to nearest integer?
Challenging numerical variant 2
Calculation · Independent work
A sender generates 19 unique datagrams. 2 unique IDs are never received. 5 duplicates of received IDs also arrive. What is unique packet delivery percentage, rounded to nearest integer?
Challenging numerical variant 3
Calculation · Independent work
A sender generates 16 unique datagrams. 7 unique IDs are never received. 3 duplicates of received IDs also arrive. What is unique packet delivery percentage, rounded to nearest integer?
Step-by-step experimental procedure
Observe complete UDP message boundaries, deliberate loss and out-of-order delivery.
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.
Datagram count8
Drop every N (0=none)0
Reverse arrival orderNo
Receive buffer bytes64
2 · Perform the investigation in order
Send eight numbered datagrams and inspect sequence/payload.
Drop every second datagram and compute delivery ratio.
Set receive buffer to 2 bytes and inspect truncation without merging datagrams.
Reverse arrival order; compare the actual UDP source and its sequence handling.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Reference
Use reference inputs above
Delivered datagrams: 8
Record actual result
Drop every 2
Drop every N (0=none) = 2
Delivered datagrams: 4
Record actual result
Tiny receive buffer
Receive buffer bytes = 2
Truncated datagrams: 8
Record actual result
4 · Analyze and report
UDP does not provide reliable delivery or ordering; one receive generally returns one datagram.
Required evidence: Record the named metrics and trace for the reference and changed cases, then attach the corresponding practical command output or device evidence if available.
Model boundary: A closed, deterministic browser model. The existing practical instructions and source files provide independent execution; browser results are not hardware measurements.
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
Drop every 2
Drop every N (0=none) = 2
Record actual outcome and units
Tiny receive buffer
Receive buffer bytes = 2
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.
Loading laboratory-specific procedure…
Python / Google Colab notebook
Actual local loopback exchange with bounded sockets; no external network. Validated locally in a fresh Jupyter kernel. Download, then upload to Google Colab.
First run receiver then sender for positive control. Stop receiver; send once and restart receiver for the negative test. Wait briefly, then send again to prove recovery. Stop receiver with Ctrl+C.
Complete one-time setup first. Copy one command block at a time into the indicated environment. Do not copy prompt characters. Open new terminals where named; variables are terminal-specific. Ctrl+C stops a running foreground command.
01
Terminal 1: receiver
WSL · Bash
source ~/psut-wsl/activate.sh
cd ~/psut-wsl/labs/python/lab38 &&python udp_receiver.py
✓ Expected: Normally no output. pwd should show the requested directory. A missing path produces an error; do not continue until corrected. If successful, waits.Expected result for each action (2)
source ~/psut-wsl/activate.shThe toolkit virtual environment is selected in this terminal, usually with (.venv) in the prompt. Verify which python points into ~/psut-wsl/.venv.
cd ~/psut-wsl/labs/python/lab38 &&python udp_receiver.pyNormally no output. pwd should show the requested directory. A missing path produces an error; do not continue until corrected. If successful, waits.
Checkpoint waits.
02
Terminal 2: sender
WSL · Bash
source ~/psut-wsl/activate.sh
cd ~/psut-wsl/labs/python/lab38 &&python udp_sender.py
✓ Expected: Normally no output. pwd should show the requested directory. A missing path produces an error; do not continue until corrected. If successful, receiver: from 127.0.0.1 room-101,24.5 and from 127.0.0.1 room-102,26.1 .Expected result for each action (2)
source ~/psut-wsl/activate.shThe toolkit virtual environment is selected in this terminal, usually with (.venv) in the prompt. Verify which python points into ~/psut-wsl/.venv.
cd ~/psut-wsl/labs/python/lab38 &&python udp_sender.pyNormally no output. pwd should show the requested directory. A missing path produces an error; do not continue until corrected. If successful, receiver: from 127.0.0.1 room-101,24.5 and from 127.0.0.1 room-102,26.1 .
Checkpoint receiver: from 127.0.0.1 room-101,24.5 and from 127.0.0.1 room-102,26.1 .
03
Start the sender BEFORE the receiver
Stop the receiver, run the sender, then the receiver.
Checkpoint nothing arrives: UDP has no connection and no retry (the lesson of the lab).
After restarting the receiver, wait briefly, then rerun the original sender command in Terminal 2. Two newly sent datagrams should arrive. This is the positive recovery control.
04
Stop background processes
After the client finishes, press Ctrl+C in each server/receiver terminal. If a port is busy, inspect it with ss -ltnp or ss -lunp; stop your own earlier terminal, not an unrelated service.
Checkpoint Complete the action before continuing.
Experimental notebook
Record your own results. Values are not prefilled or independently verified.
Save the actual terminal output from the checkpoints above. For simulated inputs explicitly record browser model, fakepi, mock or Wokwi. Never present those data as physical measurements. If a checkpoint fails, see the troubleshooting guide.
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
# p38 · Lab 38 · UDP datagrams and broadcast
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## Introduction
Compare UDP delivery with a running, stopped and restarted receiver.
## How to run
1. Download this notebook from the laboratory page. Open Google Colab → File → Upload notebook.
2. Select a Python CPU runtime. Run cells from top to bottom using Shift+Enter, or Runtime → Run all.
3. Read the printed observations and assertions. Change one parameter at a time and rerun the relevant cell.
4. Save your own outputs and compare them to the portal Experiment tab.
**Execution boundary:** Actual local loopback exchange with bounded sockets; no external network. Do not run the hardware or service commands in Colab. No real credentials are needed. The notebook is self-contained.
02Instructions · Markdown
## Experiment-specific preparation
Compare UDP delivery with a running, stopped and restarted receiver.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Send eight numbered datagrams and inspect sequence/payload.
2. Drop every second datagram and compute delivery ratio.
3. Set receive buffer to 2 bytes and inspect truncation without merging datagrams.
4. Reverse arrival order; compare the actual UDP source and its sequence handling.
**Evidence:**
**Boundary:**
03Instructions · Markdown
## 1. Objectives and reference condition
- Reproduce the specific computational mechanism in this laboratory.
- Inspect the output, compare the reference condition with a changed or rejected condition where implemented, and explain any discrepancy.
- Distinguish actual local Python execution from mock, physical and external-service observations.
## 2. Environment check
04Python · executable cell
PYTHON · Code cell
# =====================================================================
# P38 | Code cell 01 | Lab 38 · UDP datagrams and broadcast
# Purpose: 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implem
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import sys
print("Python",sys.version.split()[0])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sys.version_info >= (3,10)
## 3. Implementation
Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
06Python · executable cell
PYTHON · Code cell
# =====================================================================
# P38 | Code cell 02 | Lab 38 · UDP datagrams and broadcast
# Purpose: 3. Implementation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import socket
# Limit resource lifetime to this block so files, sockets or temporary state are cleaned up.
with socket.socket(socket.AF_INET,socket.SOCK_DGRAM) as receiver, socket.socket(socket.AF_INET,socket.SOCK_DGRAM) as sender:
receiver.bind(('127.0.0.1',0));receiver.settimeout(3)
expected=[b'room-101,24.5',b'room-102,26.1']
for packet in expected:sender.sendto(packet,receiver.getsockname())
observed=[receiver.recvfrom(1024)[0] for _ in expected]
print(observed);assert observed==expected
## 4. Results and analysis
Record the actual output and whether the assertions pass. Identify a parameter to vary, state your prediction, repeat the reference calculation, then explain the changed result.
| Trial | Configuration | Observation | Interpretation |
|---|---|---|---|
| A | Reference | | |
| B | One controlled change | | |
| C | Reference repeat | | |
**Limitations:** Actual local loopback exchange with bounded sockets; no external network. Notebook success does not certify external equipment or services.
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. Drop every second datagram and compute delivery ratio. 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.