Compare idle, success and collision counts with the independent slotted-access probability.
The focus of this experiment is to interpret independent slotted contention and collision assumptions. Students then calculate idle, success and collision probabilities, and compare node-load conditions without equating the model to full Wi-Fi MAC behavior. 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
Interpret independent slotted contention and collision assumptions.
Calculate idle, success and collision probabilities.
Compare node-load conditions without equating the model to full Wi-Fi MAC behavior.
Identify the configured inputs (Contending nodes; Per-slot attempt probability (%); Random seed) 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 interpret independent slotted contention and collision assumptions, calculate idle, success and collision probabilities, and compare node-load conditions without equating the model to full Wi-Fi MAC behavior.
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 compare node-load conditions without equating the model to full Wi-Fi MAC behavior. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the following catalogue prerequisites before starting. After completion, continue to Bluetooth LE discovery timing.
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.
Scientific concept map: Stations — Shared channel; Carrier sensing — Busy or idle; Random backoff — Contention window; Transmission — Collision or success; Performance — Delay / throughput.
Scientific foundations and analytical reasoning
Independent slotted contenders have P(idle)=(1−p)^N and P(one success)=Np(1−p)^(N−1). Real Wi-Fi contention uses carrier sensing and backoff.
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 · Random access and contention
In an independent slotted model with N devices and transmit probability p per slot, idle probability is (1−p)^N, success probability is Np(1−p)^(N−1), and collision probability is the remainder. Actual Wi-Fi uses carrier sensing, random backoff and acknowledgments; the model isolates contention rather than implementing 802.11.
Worked example and engineering interpretation
For N=4 and p=0.25, idle≈0.3164, success≈0.4219 and collision≈0.2617. Compare empirical proportions over many slots; finite runs vary. Increasing traffic probability can increase collisions and reduce goodput.
Engineering principles · additional worked teaching example
Independent slotted attempts: idle=(1−p)^N, one success=Np(1−p)^(N−1), collision=1−idle−success. With N=2,p=.5, idle=.25, success=.5, collision=.25. This is not full 802.11 CSMA/CA.
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 Wireless contention & Wi-Fi performance concepts
Compare idle, success and collision counts with the independent slotted-access probability.
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 idle, success and collision counts with the independent slotted-access probability.
Set Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42. Observe the calculated results and trace.
Change Contending nodes = 16. Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
Restore the reference values. Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
Reference check:
Model boundary:
Independent task and submission evidence
2. Change Contending nodes = 16. Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial. 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 idle, success and collision counts with the independent slotted-access probability.
Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42. In the classroom model, Success slots = 85; Collision slots = 47; Idle slots = 68; Analytic success probability = 0.4219. Independent slotted access is a contention abstraction, not Wi-Fi DCF (no backoff, capture or carrier sensing). Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
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
Independent slotted access
N nodes independently transmit in a slot with probability p. Exactly one transmission succeeds in this ideal model.
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 3 · Idle
Idle
Idle
68
Successful
Idle
68
Successful
85
Collision
Idle
68
Successful
85
Collision
47
Teaching example only; inspect live calculations or real practical evidence separately.
Recall the concept before revealing its explanation.
0 / 3 revealed
N07 · 01 / 08For four independent contenders with p=0.25, what is the single-slot success probability?Reveal explanation
Engineering explanation
Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
N07 · 02 / 08Why does the independent slotted model not reproduce IEEE 802.11 DCF?Reveal explanation
Engineering explanation
Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
N07 · 03 / 08How do you verify reproducibility of wireless contention counts?Reveal explanation
Engineering explanation
Restore four nodes, p=0.25, 200 slots and the original seed; idle, success and collision counts sum to 200 and reproduce the same trace.
N07 · 04 / 08What is the probability of exactly one independent attempt by N nodes at probability p?Reveal explanation
Engineering reasoning
N p (1−p)^(N−1). It is the slot success probability in this simplified model.
Finite seeded runs vary; count conservation and agreement across repeated seeds validate the model better than a single exact equality.
N07 · 06 / 08Independent stations attempt transmission in slots. Select every technically valid statement.
A. An idle slot contains zero attempts.
B. A slot with multiple simultaneous attempts is a collision in the model.
C. Every busy slot is a successful transmission.
D. The probability of a collision is independent of the number of stations.Reveal explanation
Applied scenario
Correct: A. An idle slot contains zero attempts.; B. A slot with multiple simultaneous attempts is a collision in the model.
N07 · 07 / 08In Wireless contention & Wi-Fi performance concepts, which reference and changed settings are prescribed for Contending nodes?Reveal explanation
Controlled configuration
Contending nodes: 4 → 16; hold the remaining settings fixed.
N07 · 08 / 08What expected result distinguishes the reference and changed trials in Wireless contention & Wi-Fi performance concepts?Reveal explanation
Expected observation
Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
Interactive networking and security instrument
Loading experiment-specific apparatus…Previous model / additional reference tools
Simulation task
Compare idle, success and collision counts with the independent slotted-access probability.
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 workbenchN07 · Existing model
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
For N=4,p=0.25 calculate idle, success and collision probabilities; expected counts in 100 slots.
Engineering method — Independent slotted attempts: idle=(1−p)^N, one success=Np(1−p)^(N−1), collision=1−idle−success. With N=2,p=.5, idle=.25, success=.5, collision=.25. This is not full 802.11 CSMA/CA. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Repeat for N=8 at same p; explain why observed seeded simulation counts vary and why the model is not 802.11 MAC emulation.
Engineering method — Independent slotted attempts: idle=(1−p)^N, one success=Np(1−p)^(N−1), collision=1−idle−success. With N=2,p=.5, idle=.25, success=.5, collision=.25. This is not full 802.11 CSMA/CA. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Calculation
Calculation · Independent work
For N=3,p=0.2, calculate probabilities and expected counts over 1000 independent slots.
Calculation — Independent slotted attempts: idle=(1−p)^N, one success=Np(1−p)^(N−1), collision=1−idle−success. With N=2,p=.5, idle=.25, success=.5, collision=.25. This is not full 802.11 CSMA/CA. 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 · N07-01
Use the reference configuration (Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42), but change Contending nodes = 1. The model reports Success slots = 46. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · N07-02
Two model observations of Success slots are 85 (reference) and 46 (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 · N07-03
For Per-slot attempt probability (%) = 0, the model supplies this excerpt from Calculated trace:
Item · Value · Explanation
Idle · 200 ·
Success · 0 ·
Collision · 0 ·
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 · N07-04
An observation is Success slots = 0. Candidate A uses Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42. Candidate B changes the listed settings (Per-slot attempt probability (%) = 0) 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 · N07-05
A student configures Random seed = 1 while preserving all other reference settings, but copies the reference report of Success slots = 85. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · N07-06
Design a controlled comparison for Wireless contention & Wi-Fi performance concepts using reference Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42 and test Contending nodes = 1. Specify the changed setting(s), measured metric Success slots, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Compare idle, success and collision counts with the independent slotted-access probability.
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.
Contending nodes4
Per-slot attempt probability (%)25
Random seed42
2 · Perform the investigation in order
Set Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42. Observe the calculated results and trace.
Change Contending nodes = 16. Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
Restore the reference values. Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Reference
Use reference inputs above
Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
Record actual result
Controlled change
Contending nodes = 16
Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
Record actual result
4 · Analyze and report
Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
Required evidence: Record the wireless contention & wi-fi performance concepts comparison and justify the changed outcome from the calculated trace.
Model boundary: Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
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
Contending nodes = 16
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 analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
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 P38 and retain N07 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
# N07 · Wireless contention & Wi-Fi performance concepts
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Compare idle, success and collision counts with the independent slotted-access probability.
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 idle, success and collision counts with the independent slotted-access probability.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Set Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42. Observe the calculated results and trace.
2. Change Contending nodes = 16. Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
3. Restore the reference values. Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
**Evidence:**
**Boundary:**
03Instructions · Markdown
## 2. Reference configuration and investigation
1. Set Contending nodes = 4; Per-slot attempt probability (%) = 25; Random seed = 42. Observe the calculated results and trace.
2. Change Contending nodes = 16. Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial.
3. Restore the reference values. Slotted independent access is not IEEE 802.11 DCF. Carrier sensing, exponential backoff, hidden terminals and physical rates are not implemented.
Run cells in order; do not substitute model results for physical measurements.
# =====================================================================
# N07 | Code cell 02 | Wireless contention & Wi-Fi performance concepts
# Purpose: 4. Run a deterministic 200-slot experiment.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import random
# Set rng for the next computation or reference condition.
rng=random.Random(42); counts=[0,0,0]
# Repeat the same operation for each configured input so observations are comparable.
for _ in range(200):
k=sum(rng.random()<.25 for _ in range(4));counts[min(k,2)]+=1
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sum(counts)==200
print(counts,probabilities(4,.25),probabilities(16,.25))
## 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 Contending nodes = 16. Baseline analytic success probability = 4×0.25×0.\(75^{3}\) = 0.421875. Counts sum to 200. Change to 16 nodes: theoretical success probability decreases. Restore; use seed 99 for independent deterministic trial. 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