Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/wireless-communications/matlab-simulate-wireless-network

matlab-simulate-wireless-network

Verified

Set up and run wireless network simulations using the Wireless Network Toolbox. Use this skill when creating system-level simulations with wirelessNetworkSimulator, adding traffic sources (networkTrafficOnOff, networkTrafficFTP, networkTrafficVoIP, networkTrafficVideoConference), configuring node mobility, logging events or IQ samples, visualizing traffic, scheduling actions during simulation, running parametric sweeps, writing PCAP files with pcapWriter or technology-specific PCAP writers, registering event callbacks on wireless nodes, accessing event data fields, or combining multiple capture/visualization tools in a simulation.

references/traffic-models.md

View on GitHub
# Traffic Models Reference

## networkTrafficOnOff

Constant-rate or exponential on/off traffic pattern generator.

| Property | Default | Description |
|----------|---------|-------------|
| `DataRate` | 5 | Packet generation rate in **Kbps** during On state |
| `PacketSize` | 1500 | Packet size in **bytes** |
| `OnTime` | `[]` (exponential) | Fixed On duration in seconds; `Inf` = always on |
| `OffTime` | `[]` (exponential) | Fixed Off duration in seconds; `0` = never off |
| `OnExponentialMean` | 1 | Mean for exponential On duration (used when `OnTime=[]`) |
| `OffExponentialMean` | 2 | Mean for exponential Off duration (used when `OffTime=[]`) |
| `ApplicationData` | ones(1500,1) | Custom payload bytes [0-255] |

### Inter-Packet Timing

`generate()` returns `[dt, packet]` where `dt` is in **milliseconds**:

```
dt_ms = PacketSize_bytes × 8 / DataRate_Kbps
```

### Usage Pattern

```matlab
traffic = networkTrafficOnOff(DataRate=100, PacketSize=27, OnTime=Inf);
addTrafficSource(sourceNode, traffic, nvPairs);
```

## networkTrafficFTP

Models FTP file transfer with reading time between downloads.

| Property | Default | Description |
|----------|---------|-------------|
| `FileSize` | 2e6 | File size in bytes |
| `ReadingTimeMean` | 180 | Mean reading time in seconds |

## networkTrafficVoIP

Models VoIP traffic with silence detection.

| Property | Default | Description |
|----------|---------|-------------|
| `HasSilenceDetection` | true | Enable/disable silence periods |
| `VoiceEncoder` | "G.711" | Encoder type |

## networkTrafficVideoConference

Models video conference traffic based on IEEE 802.11ax Evaluation Methodology. Frames are fragmented into max 1500-byte packets.

| Property | Default | Description |
|----------|---------|-------------|
| `FrameInterval` | 40 | Time between video frames in **ms** (40 ms = 25 fps, 33 ms = 30 fps) |
| `FrameSizeMethod` | `"WeibullDistribution"` | `"WeibullDistribution"` or `"FixedSize"` |
| `FixedFrameSize` | 5000 | Frame size in bytes (when `FrameSizeMethod="FixedSize"`) |
| `WeibullScale` | 6950 | Scale parameter for Weibull distribution, range (0, 54210] |
| `WeibullShape` | 0.8099 | Shape parameter for Weibull distribution, range (0, 1] |
| `HasJitter` | true | Model network jitter via Gamma distribution |
| `GammaShape` | 0.2463 | Jitter Gamma shape, range (0, 5] |
| `GammaScale` | 60.227 | Jitter Gamma scale, range (0, 100] |
| `ProtocolOverhead` | 28 | Protocol overhead bytes added per packet, range [0, 60] |

`generate()` returns `[dt_ms, packetSize_bytes]`. Continuation fragments of the same frame have `dt=0`.

```matlab
videoTraffic = networkTrafficVideoConference(FrameInterval=40, HasJitter=true);
addTrafficSource(sourceNode, videoTraffic, DestinationNode=destNode);
```

**Note:** Packet sizes exceed 251 bytes — not suitable for BLE nodes directly. Use with WLAN, 5G NR, or custom nodes.

<!-- Copyright 2026 The MathWorks, Inc. -->
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 470kUpdated Claude CodeCodexUnverifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall