Skip to main content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Connected Networks StudioNetworking and CommunicationExperimentsWorkspaces
ENGINEERING WORKSPACE
Home/Engineering Workspaces/N13 · SDN & edge routing policy
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Communication Networks · offline engineering
Networking and Communication

SDN & edge routing policy

Ask Dr. Mohammad · N13 →

Compare controller-computed route and link failure; evaluate cost-based policy.

Design experiment & verify evidence →
N13 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
Learning workflow · Advanced networksN13 · SDN & edge routing policy

Related course access: IoT Security and Privacy — same laboratory, notebook and completion record.

N13 · Academic orientation

Scope and objectives

Scope of the experiment

Compare controller-computed route and link failure; evaluate cost-based policy.

The focus of this experiment is to trace SDN flow matching and edge routing policy. Students then evaluate priorities and path decisions under specified traffic, and verify forwarding behavior and default-policy handling. 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 SDN flow matching and edge routing policy.
  • Evaluate priorities and path decisions under specified traffic.
  • Verify forwarding behavior and default-policy handling.
  • Identify the configured inputs (Failed links; Latency per cost unit (ms); Controller policy) 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 SDN flow matching and edge routing policy, evaluate priorities and path decisions under specified traffic, and verify forwarding behavior and default-policy handling.

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 forwarding behavior and default-policy handling. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the following catalogue prerequisites before starting. After completion, continue to IPv6 Addressing & Subnetting.

Environment and experimental methodology

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.

N13 · learning outcome

Understand the experiment

Scientific architecture · SDN & edge routing policy

SDN flow rule installation — Switch; Controller; Destination; Packet misses flow table / 0>0; Packet-in / 0>1; Flow-mod / 1>0; Forward matching packet / 0>2
Scientific concept map: Packet arrival — Flow fields; SDN switch — Match flow rule; Controller — Policy decision; Action — Forward / drop / edge; Path — Latency budget.

Scientific foundations and analytical reasoning

An SDN controller computes policy paths from topology/cost; switches apply installed rules. Control-plane delay and data-plane reachability differ.

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 · SDN control and forwarding planes

A controller uses topology and policy to compute paths and install forwarding rules. Switches forward according to installed matches and actions. A link event can invalidate a route before the controller finishes updating all switches. Control-plane success and data-plane reachability are separate observations.

Worked example and engineering interpretation

For path costs 3 and 7, choose the cost-3 path under a least-cost policy. If a required link fails, recompute the route and install the alternative before testing delivery. A policy may deliberately exclude the shorter path; verify both topology and constraints.

Engineering principles · additional worked teaching example

SDN separates control-plane path decision from data-plane forwarding. With paths cost3 and5, default min-cost chooses3; policy may deliberately choose5 for isolation or capacity. Installed rules can be stale after link failure.

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 SDN & edge routing policy

Compare controller-computed route and link failure; evaluate cost-based policy.

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 controller-computed route and link failure; evaluate cost-based policy.

  1. Set Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default. Observe the calculated results and trace.
  2. Change Controller policy = lowcost. Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.
  3. Restore the reference values. Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

Reference check:

Model boundary:

Independent task and submission evidence

2. Change Controller policy = lowcost. Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. 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.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

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 controller-computed route and link failure; evaluate cost-based policy.

Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default. In the classroom model, Path = Sensor → A → Gateway; Cost = 4; Hops = 2; Modeled latency = 20 ms. Controller recomputes a weighted route; no OpenFlow or real switch programming. Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

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 · topology and link dependencies

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.

SDN & edge routing policy: topology and link dependenciesSensorGatewayAB

Step 1 of 5 · Connection 1

Connection 1

Link 1
Sensor → A · 2

Teaching example only; inspect live calculations or real practical evidence separately.

Recall the concept before revealing its explanation.

0 / 3 revealed
N13 · 01 / 08What route cost and reachability result from low-cost SDN policy and link failures?Reveal explanation
Engineering explanation

Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.

N13 · 02 / 08Why are graph weights not measured link latency or OpenFlow forwarding state?Reveal explanation
Engineering explanation

Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

N13 · 03 / 08How can you verify SDN graph recovery after both links fail?Reveal explanation
Engineering explanation

Restore links and default controller policy; the reference route must be reachable at cost 4.

N13 · 04 / 08What does a routing policy change in the model?Reveal explanation
Engineering reasoning

It modifies selected link costs or availability, causing the path-selection algorithm to recompute the route.

N13 · 05 / 08Why distinguish the model from an SDN switch installation?Reveal explanation
Engineering reasoning

The browser computes policy decisions; it does not install flow rules or forward real packets.

N13 · 06 / 08An SDN controller selects a route. Select every technically valid statement. A. Policy cost can change the selected path. B. Recompute the route when a relevant link fails. C. A computed route proves forwarding rules were installed physically. D. An SDN controller eliminates all packet loss.Reveal explanation
Applied scenario

Correct: A. Policy cost can change the selected path.; B. Recompute the route when a relevant link fails.

N13 · 07 / 08In SDN & edge routing policy, which reference and changed settings are prescribed for Controller policy?Reveal explanation
Controlled configuration

Controller policy: default → lowcost; hold the remaining settings fixed.

N13 · 08 / 08What expected result distinguishes the reference and changed trials in SDN & edge routing policy?Reveal explanation
Expected observation

Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.

Interactive networking and security instrument

Loading experiment-specific apparatus…
Previous model / additional reference tools
Simulation task

Compare controller-computed route and link failure; evaluate cost-based policy.

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 workbenchN13 · Existing model
Interactive computational experiment

Configure and observe

Model-linked protocol trace

Animated SDN & edge routing policy

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 events

    Inspect numerical or encoded protocol details
    N13 · Model-linked instrumentation

    Visual observation lens

    Back to controls ↑

    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.

    Open simulation view
    Baseline A
    Not captured
    Comparison B
    Not captured

    Capture a baseline to begin.

    Evidence portfolio →
    V19.0 · Contextual AI workspace

    Ask your engineering assistants

    N13 · current context

    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.

    Dr. Mohammad · offline
    Dr. Mohammad

    Offline curriculum-grounded assistance.

    Open local tutor
    SDN & edge routing policy

    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

    Using lab topology, calculate total cost of two candidate paths and choose default minimum-cost path.

    02 · Compare or justify using evidence

    Remove one link and recompute route; compare latency under 5 ms/cost. Explain when stale installed rules can differ from controller decision.

    03 · Policy analysis

    Policy analysis · Independent work

    A-B-D costs2+2, A-C-D costs3+3. Policy excludes B; determine selected route and cost. What if C-D fails?

    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 · N13-01

    Use the reference configuration (Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default), but change Failed links = primary. The model reports Path = Sensor → B → Gateway. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.

    Intermediate · Interpret a state transition

    Independent theoretical exercise · N13-02

    The reference model reports Path: Sensor → A → Gateway. Under Failed links = primary it reports Sensor → B → Gateway. Explain which configured condition changed and what the two outputs establish, and what they do not establish.

    Intermediate · Interpret a technical trace

    Independent theoretical exercise · N13-03

    For Latency per cost unit (ms) = 2, the model supplies this excerpt from Calculated trace: Item · Value · Explanation Sensor ↔ A · 2 · A ↔ Gateway · 2 · Sensor ↔ B · 3 · B ↔ Gateway · 3 · A ↔ B · 1 · 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 · N13-04

    An observation is Modeled latency = 8 ms. Candidate A uses Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default. Candidate B changes the listed settings (Latency per cost unit (ms) = 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 · N13-05

    A student configures Controller policy = lowcost while preserving all other reference settings, but copies the reference report of Path = Sensor → A → Gateway. Evaluate whether the report is justified. Identify the first configuration/output check to perform.

    Challenging · Design a controlled verification

    Independent theoretical exercise · N13-06

    Design a controlled comparison for SDN & edge routing policy using reference Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default and test Failed links = primary. Specify the changed setting(s), measured metric Path, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.

    Step-by-step experimental procedure

    Compare controller-computed route and link failure; evaluate cost-based policy.

    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.

    Failed linksnone
    Latency per cost unit (ms)5
    Controller policydefault

    2 · Perform the investigation in order

    1. Set Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default. Observe the calculated results and trace.
    2. Change Controller policy = lowcost. Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.
    3. Restore the reference values. Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

    3 · Compare controlled trials

    TrialIndependent changeExpected checkObservation
    ReferenceUse reference inputs aboveBaseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.Record actual result
    Controlled changeController policy = lowcostBaseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.Record actual result

    4 · Analyze and report

    Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

    Required evidence: Record the sdn & edge routing policy comparison and justify the changed outcome from the calculated trace.

    Model boundary: Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency.

    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.

    TrialIndependent changeDependent observation
    ReferenceUse reference inputs aboveRecord actual outcome and units
    Controlled changeController policy = lowcostRecord 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…

    Practical procedure & acceptance

    1. Restore reference and enter your prediction. Select Save baseline.
    2. Apply controlled change. Inspect metrics and protocol details. Compare the results with the following verification conditions.
    3. ✓ Expected: Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore.
    4. Restore reference. Confirm the same baseline results, then vary one field at a time. Record the changed configuration and explain any difference.
    5. 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 P40 and retain N13 in the method and attachment. The supplemental labs do not change the core prerequisite graph or graded completion counters.

    Experimental Verification Center · Technical reference (online) · Download model source

    Learning progress

    Mark complete only after documenting your observations. This is not a verified result or official grade.

    View prerequisites and related learning

    Python / Google Colab laboratory

    N13 · 9 notebook cells · 2 executable Python cells

    Complete the theoretical investigation first. Run the cells in order, record actual outputs and compare against your prediction.

    How to execute

    1. Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
    2. Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
    3. 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
    # N13 · SDN & edge routing policy **PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh** ## 1. Scientific objective Compare controller-computed route and link failure; evaluate cost-based policy. 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 controller-computed route and link failure; evaluate cost-based policy. **Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):** 1. Set Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default. Observe the calculated results and trace. 2. Change Controller policy = lowcost. Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore. 3. Restore the reference values. Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency. **Evidence:** **Boundary:**
    03Instructions · Markdown
    ## 2. Reference configuration and investigation 1. Set Failed links = none; Latency per cost unit (ms) = 5; Controller policy = default. Observe the calculated results and trace. 2. Change Controller policy = lowcost. Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. Restore. 3. Restore the reference values. Graph computation is a control-plane teaching abstraction, not a real OpenFlow controller or switch. Cost is an assumed weight, not physical latency. Run cells in order; do not substitute model results for physical measurements.
    04Instructions · Markdown
    ## 3. Compare two modeled weighted routes.
    05Python · executable cell
    PYTHON · Code cell
    # =====================================================================
    # N13 | Code cell 01 | SDN & edge routing policy
    # Purpose: 3. Compare two modeled weighted routes.
    # Inputs: the explicit fixture/settings below and any preceding cell state.
    # Output: inspect printed values, returned records or assertions; record evidence.
    # =====================================================================
    # Set routes for the next computation or reference condition.
    routes={"A":4,"B":6}
    # Define the reusable operation choose; keep its logic separate from the trial.
    def choose(failed=(),costs=routes):
        choices=[(cost,k) for k,cost in costs.items() if k not in failed]
        return min(choices) if choices else None
    # Check the expected invariant so a mismatch fails visibly instead of appearing successful.
    assert choose()==(4,"A")
    # Check the expected invariant so a mismatch fails visibly instead of appearing successful.
    assert choose(("A",))==(6,"B")
    # Check the expected invariant so a mismatch fails visibly instead of appearing successful.
    assert choose(("A","B")) is None
    
    Ask Dr. Mohammad about this cell
    06Instructions · Markdown
    ## 4. Change controller policy and convert cost to latency.
    07Python · executable cell
    PYTHON · Code cell
    # =====================================================================
    # N13 | Code cell 02 | SDN & edge routing policy
    # Purpose: 4. Change controller policy and convert cost to latency.
    # Inputs: the explicit fixture/settings below and any preceding cell state.
    # Output: inspect printed values, returned records or assertions; record evidence.
    # =====================================================================
    # Set lowcost for the next computation or reference condition.
    lowcost={"A":4,"B":4}
    # Repeat the same operation for each configured input so observations are comparable.
    for failed in ((),("A",),("A","B")):
        result=choose(failed,lowcost);print(failed,None if result is None else (result[1],result[0]*5))
    
    Ask Dr. Mohammad about this cell
    08Instructions · Markdown
    ## 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 Controller policy = lowcost. Baseline cost 4; low-cost policy reduces Sensor–B cost and gives total cost 4 (tie resolved deterministically). Primary failure under low-cost policy routes via B at cost 4. Both links failed: unreachable. 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 studies
    Concurrent-device simulation & Monte Carlo research
    Distributed digital twin · topology, protocol & battery research